diff options
Diffstat (limited to 'TJLaskuri.Web')
| -rw-r--r-- | TJLaskuri.Web/Modules/Index.fs | 31 | ||||
| -rw-r--r-- | TJLaskuri.Web/Program.fs | 23 | ||||
| -rw-r--r-- | TJLaskuri.Web/Properties/launchSettings.json | 23 | ||||
| -rw-r--r-- | TJLaskuri.Web/TJLaskuri.Web.fsproj | 28 | ||||
| -rw-r--r-- | TJLaskuri.Web/appsettings.Development.json | 8 | ||||
| -rw-r--r-- | TJLaskuri.Web/appsettings.json | 9 | ||||
| -rw-r--r-- | TJLaskuri.Web/wwwroot/styles.css | 72 |
7 files changed, 0 insertions, 194 deletions
diff --git a/TJLaskuri.Web/Modules/Index.fs b/TJLaskuri.Web/Modules/Index.fs deleted file mode 100644 index 7623779..0000000 --- a/TJLaskuri.Web/Modules/Index.fs +++ /dev/null @@ -1,31 +0,0 @@ -module TJLaskuri.Web.Modules.Index - -open System -open Falco -open TJLaskuri.Core - -[<AutoOpen>] -module Views = - open TJLaskuri.Core.Views - - type Model = { - Counter : Main.Model - } - - let view model = - Main.view model.Counter - |> Document.view - -let get : HttpHandler = - fun ctx -> - let time = DateTime.Now - let kontingent = kontingent 2 2025 - let timeLeft = Domain.getTimeLeft kontingent ThreeFourSeven time |> Option.get - let completed = Domain.getTimeCompleted kontingent time |> Option.get - - view { - Counter = { - TimeLeft = timeLeft - TimeCompleted = completed - } - } |> Response.ofHtml <| ctx diff --git a/TJLaskuri.Web/Program.fs b/TJLaskuri.Web/Program.fs deleted file mode 100644 index 831d8a8..0000000 --- a/TJLaskuri.Web/Program.fs +++ /dev/null @@ -1,23 +0,0 @@ -open Microsoft.AspNetCore.Builder -open Microsoft.Extensions.Hosting -open Falco -open Falco.Routing -open TJLaskuri.Web.Modules - -let endpoints = [ - get "/" Index.get - ] - -[<EntryPoint>] -let main args = - let builder = WebApplication.CreateBuilder(args) - let app = builder.Build() - - app.MapStaticAssets() |> ignore - - app - .UseRouting() - .UseFalco(endpoints) - .Run() - - 0 // Exit code diff --git a/TJLaskuri.Web/Properties/launchSettings.json b/TJLaskuri.Web/Properties/launchSettings.json deleted file mode 100644 index 6d3fec3..0000000 --- a/TJLaskuri.Web/Properties/launchSettings.json +++ /dev/null @@ -1,23 +0,0 @@ -{
- "$schema": "https://json.schemastore.org/launchsettings.json",
- "profiles": {
- "http": {
- "commandName": "Project",
- "dotnetRunMessages": true,
- "launchBrowser": true,
- "applicationUrl": "http://localhost:5270",
- "environmentVariables": {
- "ASPNETCORE_ENVIRONMENT": "Development"
- }
- },
- "https": {
- "commandName": "Project",
- "dotnetRunMessages": true,
- "launchBrowser": true,
- "applicationUrl": "https://localhost:7106;http://localhost:5270",
- "environmentVariables": {
- "ASPNETCORE_ENVIRONMENT": "Development"
- }
- }
- }
-}
diff --git a/TJLaskuri.Web/TJLaskuri.Web.fsproj b/TJLaskuri.Web/TJLaskuri.Web.fsproj deleted file mode 100644 index 6cd0654..0000000 --- a/TJLaskuri.Web/TJLaskuri.Web.fsproj +++ /dev/null @@ -1,28 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk.Web"> - - <PropertyGroup> - <TargetFramework>net9.0</TargetFramework> - </PropertyGroup> - - <ItemGroup> - <Compile Include="Modules/Index.fs" /> - <Compile Include="Program.fs" /> - </ItemGroup> - - <ItemGroup> - <ProjectReference Include="..\TJLaskuri.Core\TJLaskuri.Core.fsproj" /> - </ItemGroup> - - <ItemGroup> - <PackageReference Include="Falco" Version="5.0.2" /> - </ItemGroup> - - <Target Name="CopyStaticAssets" BeforeTargets="Build"> - <Message Text="Copying static assets" /> - <Copy - SourceFiles="../TJLaskuri.Frontend/dist/index.js" - DestinationFiles="wwwroot/js/app.js" - /> - </Target> - -</Project> diff --git a/TJLaskuri.Web/appsettings.Development.json b/TJLaskuri.Web/appsettings.Development.json deleted file mode 100644 index ff66ba6..0000000 --- a/TJLaskuri.Web/appsettings.Development.json +++ /dev/null @@ -1,8 +0,0 @@ -{
- "Logging": {
- "LogLevel": {
- "Default": "Information",
- "Microsoft.AspNetCore": "Warning"
- }
- }
-}
diff --git a/TJLaskuri.Web/appsettings.json b/TJLaskuri.Web/appsettings.json deleted file mode 100644 index 4d56694..0000000 --- a/TJLaskuri.Web/appsettings.json +++ /dev/null @@ -1,9 +0,0 @@ -{
- "Logging": {
- "LogLevel": {
- "Default": "Information",
- "Microsoft.AspNetCore": "Warning"
- }
- },
- "AllowedHosts": "*"
-}
diff --git a/TJLaskuri.Web/wwwroot/styles.css b/TJLaskuri.Web/wwwroot/styles.css deleted file mode 100644 index 66a6ef5..0000000 --- a/TJLaskuri.Web/wwwroot/styles.css +++ /dev/null @@ -1,72 +0,0 @@ -* { - box-sizing: border-box; - max-width: none; -} - -html { - font-size: 100%; -} - -@font-face { - font-family: 'Cooper Black'; - font-weight: normal; - font-style: normal; - font-display: swap; - src: - local('Cooper Black'), - url('https://cdn.jsdelivr.net/npm/fonts-archive-cooper-black/CooperBlack-Regular.woff2') format('woff2'), - url('https://cdn.jsdelivr.net/npm/fonts-archive-cooper-black/CooperBlack-Regular.woff') format('woff'), - url('https://cdn.jsdelivr.net/npm/fonts-archive-cooper-black/CooperBlack-Regular.otf') format('opentype'), - url('https://cdn.jsdelivr.net/npm/fonts-archive-cooper-black/CooperBlack-Regular.ttf') format('truetype'); -} - -body { - font-family: "Cooper Black", serif; - font-weight: bold; - max-width: 50rem; - margin: 0 auto; - padding: 1rem; -} - -.counter { - padding: 2rem; - text-align: center; - font-size: 2.5rem; - font-weight: 900; -} - -.counter_title { - display: block; - font-size: 1.2em; -} - -.counter_value { - display: block; - margin: 0; - font-weight: 900; - font-size: 2.5em; -} - -.counter_mornings { - display: block; -} - -.progress-bar { - height: 25px; - border-radius: 5px; - border: 1px solid black; - background-color: lightgrey; -} - -.progress-bar_value { - color: white; - height: 100%; - display: flex; - padding: 0 10px; - justify-content: flex-end; - align-items: center; - white-space: nowrap; - text-align: center; - border-radius: 5px; - min-width: 0; -} |
