From a67c51eb1288b47b2eecb6549d7004859f15101b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Gabriel?= Date: Thu, 14 Mar 2024 16:20:05 -0300 Subject: [PATCH] Apply several changes --- src/Monambike.Links/App.razor | 12 ++++ src/Monambike.Links/Layout/MainLayout.razor | 3 + .../Monambike.Links.Client.csproj | 15 ---- .../Monambike.Links.Client/Program.cs | 5 -- src/Monambike.Links/Monambike.Links.csproj | 20 ++++++ .../Monambike.Links/Components/App.razor | 27 -------- .../Components/Layout/MainLayout.razor | 9 --- .../Components/Layout/MainLayout.razor.css | 18 ----- .../Components/Pages/Error.razor | 36 ---------- .../Monambike.Links/Components/Routes.razor | 6 -- .../Monambike.Links/Components/_Imports.razor | 11 --- .../Monambike.Links/Monambike.Links.csproj | 19 ------ .../Monambike.Links/Program.cs | 32 --------- .../Properties/launchSettings.json | 41 ----------- .../appsettings.Development.json | 8 --- .../Monambike.Links/appsettings.json | 9 --- .../Components => }/Pages/Home.razor | 7 +- src/Monambike.Links/Program.cs | 11 +++ .../Properties/launchSettings.json | 41 +++++++++++ .../_Imports.razor | 5 +- .../wwwroot => wwwroot/css}/app.css | 64 +++++++++++++++--- .../wwwroot => wwwroot/css}/main.css | 2 +- .../wwwroot/images/background.jpg | Bin .../wwwroot/images/favicon.ico | Bin 0 -> 67646 bytes .../wwwroot/images/favicon.png | Bin 0 -> 6155 bytes .../wwwroot/images/profile-picture.jpg | Bin .../wwwroot/images/social/discord.svg | 0 .../wwwroot/images/social/github.svg | 0 .../wwwroot/images/social/instagram.svg | 0 .../wwwroot/images/social/itch-io.svg | 0 .../wwwroot/images/social/linkedin.svg | 0 .../wwwroot/images/social/steam.svg | 0 .../wwwroot/images/social/youtube.svg | 0 src/Monambike.Links/wwwroot/index.html | 44 ++++++++++++ .../wwwroot/manifest.webmanifest | 17 +++++ src/Monambike.Links/wwwroot/service-worker.js | 4 ++ .../wwwroot/service-worker.published.js | 55 +++++++++++++++ 37 files changed, 271 insertions(+), 250 deletions(-) create mode 100644 src/Monambike.Links/App.razor create mode 100644 src/Monambike.Links/Layout/MainLayout.razor delete mode 100644 src/Monambike.Links/Monambike.Links.Client/Monambike.Links.Client.csproj delete mode 100644 src/Monambike.Links/Monambike.Links.Client/Program.cs create mode 100644 src/Monambike.Links/Monambike.Links.csproj delete mode 100644 src/Monambike.Links/Monambike.Links/Components/App.razor delete mode 100644 src/Monambike.Links/Monambike.Links/Components/Layout/MainLayout.razor delete mode 100644 src/Monambike.Links/Monambike.Links/Components/Layout/MainLayout.razor.css delete mode 100644 src/Monambike.Links/Monambike.Links/Components/Pages/Error.razor delete mode 100644 src/Monambike.Links/Monambike.Links/Components/Routes.razor delete mode 100644 src/Monambike.Links/Monambike.Links/Components/_Imports.razor delete mode 100644 src/Monambike.Links/Monambike.Links/Monambike.Links.csproj delete mode 100644 src/Monambike.Links/Monambike.Links/Program.cs delete mode 100644 src/Monambike.Links/Monambike.Links/Properties/launchSettings.json delete mode 100644 src/Monambike.Links/Monambike.Links/appsettings.Development.json delete mode 100644 src/Monambike.Links/Monambike.Links/appsettings.json rename src/Monambike.Links/{Monambike.Links/Components => }/Pages/Home.razor (95%) create mode 100644 src/Monambike.Links/Program.cs create mode 100644 src/Monambike.Links/Properties/launchSettings.json rename src/Monambike.Links/{Monambike.Links.Client => }/_Imports.razor (71%) rename src/Monambike.Links/{Monambike.Links/wwwroot => wwwroot/css}/app.css (61%) rename src/Monambike.Links/{Monambike.Links/wwwroot => wwwroot/css}/main.css (98%) rename src/Monambike.Links/{Monambike.Links => }/wwwroot/images/background.jpg (100%) create mode 100644 src/Monambike.Links/wwwroot/images/favicon.ico create mode 100644 src/Monambike.Links/wwwroot/images/favicon.png rename src/Monambike.Links/{Monambike.Links => }/wwwroot/images/profile-picture.jpg (100%) rename src/Monambike.Links/{Monambike.Links => }/wwwroot/images/social/discord.svg (100%) rename src/Monambike.Links/{Monambike.Links => }/wwwroot/images/social/github.svg (100%) rename src/Monambike.Links/{Monambike.Links => }/wwwroot/images/social/instagram.svg (100%) rename src/Monambike.Links/{Monambike.Links => }/wwwroot/images/social/itch-io.svg (100%) rename src/Monambike.Links/{Monambike.Links => }/wwwroot/images/social/linkedin.svg (100%) rename src/Monambike.Links/{Monambike.Links => }/wwwroot/images/social/steam.svg (100%) rename src/Monambike.Links/{Monambike.Links => }/wwwroot/images/social/youtube.svg (100%) create mode 100644 src/Monambike.Links/wwwroot/index.html create mode 100644 src/Monambike.Links/wwwroot/manifest.webmanifest create mode 100644 src/Monambike.Links/wwwroot/service-worker.js create mode 100644 src/Monambike.Links/wwwroot/service-worker.published.js diff --git a/src/Monambike.Links/App.razor b/src/Monambike.Links/App.razor new file mode 100644 index 00000000..6fd3ed1b --- /dev/null +++ b/src/Monambike.Links/App.razor @@ -0,0 +1,12 @@ + + + + + + + Not found + +

Sorry, there's nothing at this address.

+
+
+
diff --git a/src/Monambike.Links/Layout/MainLayout.razor b/src/Monambike.Links/Layout/MainLayout.razor new file mode 100644 index 00000000..e1a9a756 --- /dev/null +++ b/src/Monambike.Links/Layout/MainLayout.razor @@ -0,0 +1,3 @@ +@inherits LayoutComponentBase + +@Body diff --git a/src/Monambike.Links/Monambike.Links.Client/Monambike.Links.Client.csproj b/src/Monambike.Links/Monambike.Links.Client/Monambike.Links.Client.csproj deleted file mode 100644 index b1214ce9..00000000 --- a/src/Monambike.Links/Monambike.Links.Client/Monambike.Links.Client.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - net8.0 - enable - enable - true - Default - - - - - - - diff --git a/src/Monambike.Links/Monambike.Links.Client/Program.cs b/src/Monambike.Links/Monambike.Links.Client/Program.cs deleted file mode 100644 index 519269f2..00000000 --- a/src/Monambike.Links/Monambike.Links.Client/Program.cs +++ /dev/null @@ -1,5 +0,0 @@ -using Microsoft.AspNetCore.Components.WebAssembly.Hosting; - -var builder = WebAssemblyHostBuilder.CreateDefault(args); - -await builder.Build().RunAsync(); diff --git a/src/Monambike.Links/Monambike.Links.csproj b/src/Monambike.Links/Monambike.Links.csproj new file mode 100644 index 00000000..06a3f46c --- /dev/null +++ b/src/Monambike.Links/Monambike.Links.csproj @@ -0,0 +1,20 @@ + + + + net8.0 + enable + enable + service-worker-assets.js + + + + + + + + + + + + + diff --git a/src/Monambike.Links/Monambike.Links/Components/App.razor b/src/Monambike.Links/Monambike.Links/Components/App.razor deleted file mode 100644 index e0701c94..00000000 --- a/src/Monambike.Links/Monambike.Links/Components/App.razor +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Monambike.Links/Monambike.Links/Components/Layout/MainLayout.razor b/src/Monambike.Links/Monambike.Links/Components/Layout/MainLayout.razor deleted file mode 100644 index 0fd1b20e..00000000 --- a/src/Monambike.Links/Monambike.Links/Components/Layout/MainLayout.razor +++ /dev/null @@ -1,9 +0,0 @@ -@inherits LayoutComponentBase - -@Body - -
- An unhandled error has occurred. - Reload - 🗙 -
diff --git a/src/Monambike.Links/Monambike.Links/Components/Layout/MainLayout.razor.css b/src/Monambike.Links/Monambike.Links/Components/Layout/MainLayout.razor.css deleted file mode 100644 index df8c10ff..00000000 --- a/src/Monambike.Links/Monambike.Links/Components/Layout/MainLayout.razor.css +++ /dev/null @@ -1,18 +0,0 @@ -#blazor-error-ui { - background: lightyellow; - bottom: 0; - box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); - display: none; - left: 0; - padding: 0.6rem 1.25rem 0.7rem 1.25rem; - position: fixed; - width: 100%; - z-index: 1000; -} - - #blazor-error-ui .dismiss { - cursor: pointer; - position: absolute; - right: 0.75rem; - top: 0.5rem; - } diff --git a/src/Monambike.Links/Monambike.Links/Components/Pages/Error.razor b/src/Monambike.Links/Monambike.Links/Components/Pages/Error.razor deleted file mode 100644 index 576cc2d2..00000000 --- a/src/Monambike.Links/Monambike.Links/Components/Pages/Error.razor +++ /dev/null @@ -1,36 +0,0 @@ -@page "/Error" -@using System.Diagnostics - -Error - -

Error.

-

An error occurred while processing your request.

- -@if (ShowRequestId) -{ -

- Request ID: @RequestId -

-} - -

Development Mode

-

- Swapping to Development environment will display more detailed information about the error that occurred. -

-

- The Development environment shouldn't be enabled for deployed applications. - It can result in displaying sensitive information from exceptions to end users. - For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development - and restarting the app. -

- -@code{ - [CascadingParameter] - private HttpContext? HttpContext { get; set; } - - private string? RequestId { get; set; } - private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); - - protected override void OnInitialized() => - RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; -} diff --git a/src/Monambike.Links/Monambike.Links/Components/Routes.razor b/src/Monambike.Links/Monambike.Links/Components/Routes.razor deleted file mode 100644 index d39c7e89..00000000 --- a/src/Monambike.Links/Monambike.Links/Components/Routes.razor +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/Monambike.Links/Monambike.Links/Components/_Imports.razor b/src/Monambike.Links/Monambike.Links/Components/_Imports.razor deleted file mode 100644 index 427318ea..00000000 --- a/src/Monambike.Links/Monambike.Links/Components/_Imports.razor +++ /dev/null @@ -1,11 +0,0 @@ -@using System.Net.Http -@using System.Net.Http.Json -@using Microsoft.AspNetCore.Components.Forms -@using Microsoft.AspNetCore.Components.Routing -@using Microsoft.AspNetCore.Components.Web -@using static Microsoft.AspNetCore.Components.Web.RenderMode -@using Microsoft.AspNetCore.Components.Web.Virtualization -@using Microsoft.JSInterop -@using Monambike.Links -@using Monambike.Links.Client -@using Monambike.Links.Components diff --git a/src/Monambike.Links/Monambike.Links/Monambike.Links.csproj b/src/Monambike.Links/Monambike.Links/Monambike.Links.csproj deleted file mode 100644 index 5fcff75b..00000000 --- a/src/Monambike.Links/Monambike.Links/Monambike.Links.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - net8.0 - enable - enable - - - - - - - - - - - - - diff --git a/src/Monambike.Links/Monambike.Links/Program.cs b/src/Monambike.Links/Monambike.Links/Program.cs deleted file mode 100644 index 78a32928..00000000 --- a/src/Monambike.Links/Monambike.Links/Program.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Monambike.Links.Components; - -var builder = WebApplication.CreateBuilder(args); - -// Add services to the container. -builder.Services.AddRazorComponents() - .AddInteractiveWebAssemblyComponents(); - -var app = builder.Build(); - -// Configure the HTTP request pipeline. -if (app.Environment.IsDevelopment()) -{ - app.UseWebAssemblyDebugging(); -} -else -{ - app.UseExceptionHandler("/Error", createScopeForErrors: true); - // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. - app.UseHsts(); -} - -app.UseHttpsRedirection(); - -app.UseStaticFiles(); -app.UseAntiforgery(); - -app.MapRazorComponents() - .AddInteractiveWebAssemblyRenderMode() - .AddAdditionalAssemblies(typeof(Monambike.Links.Client._Imports).Assembly); - -app.Run(); diff --git a/src/Monambike.Links/Monambike.Links/Properties/launchSettings.json b/src/Monambike.Links/Monambike.Links/Properties/launchSettings.json deleted file mode 100644 index 68143014..00000000 --- a/src/Monambike.Links/Monambike.Links/Properties/launchSettings.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "$schema": "http://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:10431", - "sslPort": 44363 - } - }, - "profiles": { - "http": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", - "applicationUrl": "http://localhost:5299", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "https": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", - "applicationUrl": "https://localhost:7035;http://localhost:5299", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - } - } diff --git a/src/Monambike.Links/Monambike.Links/appsettings.Development.json b/src/Monambike.Links/Monambike.Links/appsettings.Development.json deleted file mode 100644 index 0c208ae9..00000000 --- a/src/Monambike.Links/Monambike.Links/appsettings.Development.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} diff --git a/src/Monambike.Links/Monambike.Links/appsettings.json b/src/Monambike.Links/Monambike.Links/appsettings.json deleted file mode 100644 index 10f68b8c..00000000 --- a/src/Monambike.Links/Monambike.Links/appsettings.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "AllowedHosts": "*" -} diff --git a/src/Monambike.Links/Monambike.Links/Components/Pages/Home.razor b/src/Monambike.Links/Pages/Home.razor similarity index 95% rename from src/Monambike.Links/Monambike.Links/Components/Pages/Home.razor rename to src/Monambike.Links/Pages/Home.razor index 25554663..ea0bb79c 100644 --- a/src/Monambike.Links/Monambike.Links/Components/Pages/Home.razor +++ b/src/Monambike.Links/Pages/Home.razor @@ -7,9 +7,10 @@ Photo from Vinicius Gabriel.

Vinícius Gabriel

@@monambike

- Hello :) I'm a Software Developer now willing to be a Game Designer and 3D model animator. +

Hello :) I'm a Software Developer now willing to be a Game Designer and 3D model animator.

+ @Emails.Contact -
+

Links Gamers