From b905fc46179c35276a77bee84d3f0c5cb7f90e67 Mon Sep 17 00:00:00 2001 From: Simon Schulze Date: Tue, 11 Apr 2023 05:53:04 +0200 Subject: [PATCH 1/4] remove card design from league home --- src/iRLeagueManager.Web/Pages/LeagueHome.razor | 4 ++-- src/iRLeagueManager.Web/appsettings.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/iRLeagueManager.Web/Pages/LeagueHome.razor b/src/iRLeagueManager.Web/Pages/LeagueHome.razor index be8f89a1..71d24fa0 100644 --- a/src/iRLeagueManager.Web/Pages/LeagueHome.razor +++ b/src/iRLeagueManager.Web/Pages/LeagueHome.razor @@ -5,8 +5,8 @@ @inherits LeagueComponentBase
-
-
+
+
@if (string.IsNullOrEmpty(Shared.LeagueInfo?.Description)) {

diff --git a/src/iRLeagueManager.Web/appsettings.json b/src/iRLeagueManager.Web/appsettings.json index 8813a99e..bc04f2c2 100644 --- a/src/iRLeagueManager.Web/appsettings.json +++ b/src/iRLeagueManager.Web/appsettings.json @@ -9,8 +9,8 @@ } }, "AllowedHosts": "*", - "APIServer": "http://localhost:5000", - //"APIServer": "https://irleaguemanager.net/api/", + //"APIServer": "http://localhost:5000", + "APIServer": "https://irleaguemanager.net/api/", "DefaultUser": "testuser", "DefaultPassword": "TestPass123!" } From c3222bc2262630f0092bb41b6b648e89f94eebe9 Mon Sep 17 00:00:00 2001 From: Simon Schulze Date: Tue, 11 Apr 2023 06:11:53 +0200 Subject: [PATCH 2/4] Add doc link Add Display of league name on smaller screens --- src/iRLeagueManager.Web/Shared/Header.razor | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/iRLeagueManager.Web/Shared/Header.razor b/src/iRLeagueManager.Web/Shared/Header.razor index aeb014f9..a0a2d9b0 100644 --- a/src/iRLeagueManager.Web/Shared/Header.razor +++ b/src/iRLeagueManager.Web/Shared/Header.razor @@ -12,6 +12,9 @@
+
+

+
@@ -119,6 +122,11 @@ +
  • + + + +
  • From 0b8ed9aaed17c4aef9458def5376b0bbae989dd7 Mon Sep 17 00:00:00 2001 From: Simon Schulze Date: Tue, 11 Apr 2023 06:44:16 +0200 Subject: [PATCH 3/4] Configure material theme for docs --- docs/getting-started/create-account.md | 2 +- docs/getting-started/create-league.md | 4 +-- docs/getting-started/events-and-results.md | 24 +++++++++--------- docs/index.md | 4 +-- mkdocs.yml | 25 ++++++++++++++++++- .../iRLeagueManager.Web.csproj | 1 + 6 files changed, 42 insertions(+), 18 deletions(-) diff --git a/docs/getting-started/create-account.md b/docs/getting-started/create-account.md index 93ae55c2..d865de44 100644 --- a/docs/getting-started/create-account.md +++ b/docs/getting-started/create-account.md @@ -1,6 +1,6 @@ # Getting started -## Create an Account +### Create an Account Before you can host your league in iRLeagueManager you need to set-up a personal user account. diff --git a/docs/getting-started/create-league.md b/docs/getting-started/create-league.md index b4ff691b..d4854042 100644 --- a/docs/getting-started/create-league.md +++ b/docs/getting-started/create-league.md @@ -1,12 +1,12 @@ # Create League -## Create your own league +### Create your own league !!! warning Creating your league is not possible through the UI yet. If you want to have a league created please write a request to [simon@irleaguemanager.net](mailto:simon@irleaguemanager.net) -## First season and schedule +### First season and schedule By default a new league already has a default season and schedule configured: > ![Screenshot](img/Screenshot 2023-04-03 153420.png) diff --git a/docs/getting-started/events-and-results.md b/docs/getting-started/events-and-results.md index 153c2c1f..0c6784d2 100644 --- a/docs/getting-started/events-and-results.md +++ b/docs/getting-started/events-and-results.md @@ -1,6 +1,6 @@ # Events and Results -## Create Events +### Create Events Events are Created on the **Schedule** section. ![Screenshot](img/Screenshot 2023-04-03 160800.png) @@ -8,7 +8,7 @@ Events are Created on the **Schedule** section. To add an event to the Schedule click the **"Add Event"** Button below and a modal window will open to configure the event settings. -### Name, Date & Time +#### Name, Date & Time At first you need to fill in the basic event information like date and time of event. Optionally you may also specify an Event name for easier identifiaction. @@ -16,13 +16,13 @@ Optionally you may also specify an Event name for easier identifiaction. The date and time will be set in your local time zone so you should not have to worry about conversions. The start time should ideally coincide with the start of the session in iRacing. -### Track & Config +#### Track & Config Next step is to select the track and config. You can search for tracks by name and/or select them from the dropdown. For each track the available configurations will be shown and can be selected after the track selection. > ![Screenshot](img/Screenshot 2023-04-03 161853.png){width="500"} -### Sessions +#### Sessions And event is divided into multiple sessions that run in succession. @@ -30,7 +30,7 @@ And event is divided into multiple sessions that run in succession. Each session can be individually configured by duration and maximum number of laps. -#### Practice and Qualifying +##### Practice and Qualifying You can optionally define attached practice and qualifying sessions for your event. Just check the box for either practice/qualy and then enter the desired duration time or the number of laps (or both) @@ -41,7 +41,7 @@ Just check the box for either practice/qualy and then enter the desired duration configuration for either practice or qualifiying it is still recommended to use the same configuration as in iRacing so the start and duration times match. -#### Race Session(s) +##### Race Session(s) Finally configure the race mode of your event. Typically there is two main constellations that you want to run your race in: @@ -51,24 +51,24 @@ Finally configure the race mode of your event. Typically there is two main const Both can be configured the same in iRLeagueManager by simply adding the desired number of race sessions for the event. > ![Screenshot](img/Screenshot 2023-04-03 171649.png){width="500"} -### Event Result Configurations +#### Event Result Configurations In order to produce the correct results for your event you need to select the according result configurations. Read more about managing result configurations visit -> [Result Configurations](settings/championships#result-configurations) -### Creating multiple Events +#### Creating multiple Events !!! note If you are creating multiple events in succession the settings from the previous event will be copied to the new event automatically. That way you will not have to type everything again and can reuse the settings. -## Upload Results +### Upload Results !!! note This section shows how to the result files from iracing and upload them into iRLeagueManager. A direct import using the iracing data API is currently in the works and will be available in the future. -### Export Results from iRacing +#### Export Results from iRacing iRLeagueManager uses the `json` export feature from **iRacing** to import the results into the tool. To get the results you need to open the **iRacing UI** and go to the result you want to export and click *Export Results* @@ -76,7 +76,7 @@ To get the results you need to open the **iRacing UI** and go to the result you Save the json file some where you can find it. -### Upload to iRLeagueManager +#### Upload to iRLeagueManager 1. Go to the **Results** section of your league ![Screenshot](img/Screenshot 2023-04-03 174621.png){width="500"} @@ -89,7 +89,7 @@ Save the json file some where you can find it. 4. You may need to refresh the page before the event results should show up -### Re-Calculate Results +#### Re-Calculate Results Sometime the recalculation of a result is needed, for example after you made some changes to the championship or to apply penalties from reviews. You can simply do this by clicking on the *Calculate* button displayed above the result diff --git a/docs/index.md b/docs/index.md index 59730fd1..d2fc9799 100644 --- a/docs/index.md +++ b/docs/index.md @@ -8,7 +8,7 @@ built in stewarding system. Registration has not opened yet but you can already try it out if you join my discord and shoot me a message: [https://discord.gg/XUG2kad](https://discord.gg/XUG2kad) -## Description +### Description Online sim racing has gained strong popularity among hobbyists and professionals alike and iRacing is one of the leading platforms for competitive racing. Many people choose to organize private hosted races in leagues to stir up the competition, recreate historical championships or just to have fun with friends. @@ -28,7 +28,7 @@ you can generate extensive statistics and metrics spanning over years of races w system gives a home to after race discussions about incidents and can also apply automatic penalty points based on a incident category system. Finally you can either use the webapp directly to share the results with the world or if you already have a league webpage use the API to publish the data in real time. -## Features +### Features A list of supported features by now. The app is in constant development and more features will be added over time. If you miss something for your league don't hesitate to open up a feature request. - Automated scoring and standings calculation diff --git a/mkdocs.yml b/mkdocs.yml index 87068266..61d7de70 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -10,10 +10,33 @@ nav: - 'General': settings/general.md - 'Users': settings/users.md - 'Championships': settings/championships.md -theme: readthedocs + markdown_extensions: - admonition - def_list - attr_list - pymdownx.tasklist: custom_checkbox: true + +theme: + name: material + features: + - navigation.path + - navigation.top + palette: + + # Palette toggle for light mode + - media: "(prefers-color-scheme: light)" + scheme: default + toggle: + icon: material/brightness-7 + name: Switch to dark mode + + # Palette toggle for dark mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + toggle: + icon: material/brightness-4 + name: Switch to light mode + + diff --git a/src/iRLeagueManager.Web/iRLeagueManager.Web.csproj b/src/iRLeagueManager.Web/iRLeagueManager.Web.csproj index 45098813..27b65d38 100644 --- a/src/iRLeagueManager.Web/iRLeagueManager.Web.csproj +++ b/src/iRLeagueManager.Web/iRLeagueManager.Web.csproj @@ -131,6 +131,7 @@ + From ea264f18ce0a90f069a88b9dfd61de37078c5b66 Mon Sep 17 00:00:00 2001 From: Simon Schulze <57634354+SSchulze1989@users.noreply.github.com> Date: Thu, 20 Apr 2023 01:16:57 +0200 Subject: [PATCH 4/4] Bump version to 0.6.3 --- src/iRLeagueManager.Web/iRLeagueManager.Web.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iRLeagueManager.Web/iRLeagueManager.Web.csproj b/src/iRLeagueManager.Web/iRLeagueManager.Web.csproj index 27b65d38..e45c6ef1 100644 --- a/src/iRLeagueManager.Web/iRLeagueManager.Web.csproj +++ b/src/iRLeagueManager.Web/iRLeagueManager.Web.csproj @@ -2,7 +2,7 @@ net7.0 - 0.6.2 + 0.6.3 enable enable aspnet-iRLeagueManager.Web-2B05F9DC-55A3-49D1-BD64-31507000EDF3