From 0f94d282539647c7f3dfd01f739d9bb510821e70 Mon Sep 17 00:00:00 2001 From: Theo RENAUD Date: Wed, 23 Nov 2022 19:16:23 +0100 Subject: [PATCH] =?UTF-8?q?mise=20en=20forme=20pour=20d=C3=A9buter=20le=20?= =?UTF-8?q?projet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BlazorApp1/Dockerfile | 26 ---------- BlazorApp1/Pages/Counter.razor | 18 ------- BlazorApp1/Pages/Episodes.razor | 26 ---------- BlazorApp1/Pages/FetchData.razor | 48 ------------------- BlazorApp1/Shared/DoctorWhoLayout.razor | 24 ---------- BlazorApp1/Shared/NavMenu.razor | 12 +---- .../Properties/launchSettings.json | 23 +++++---- 7 files changed, 12 insertions(+), 165 deletions(-) delete mode 100644 BlazorApp1/Dockerfile delete mode 100644 BlazorApp1/Pages/Counter.razor delete mode 100644 BlazorApp1/Pages/Episodes.razor delete mode 100644 BlazorApp1/Pages/FetchData.razor delete mode 100644 BlazorApp1/Shared/DoctorWhoLayout.razor diff --git a/BlazorApp1/Dockerfile b/BlazorApp1/Dockerfile deleted file mode 100644 index 6205ea6..0000000 --- a/BlazorApp1/Dockerfile +++ /dev/null @@ -1,26 +0,0 @@ -#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. - -#Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed. -#For more information, please see https://aka.ms/containercompat - -FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base -WORKDIR /app -EXPOSE 80 -EXPOSE 443 - -FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build -WORKDIR /src -COPY ["nuget.config", "."] -COPY ["BlazorApp1/BlazorApp1.csproj", "BlazorApp1/"] -RUN dotnet restore "BlazorApp1/BlazorApp1.csproj" -COPY . . -WORKDIR "/src/BlazorApp1" -RUN dotnet build "BlazorApp1.csproj" -c Release -o /app/build - -FROM build AS publish -RUN dotnet publish "BlazorApp1.csproj" -c Release -o /app/publish - -FROM base AS final -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "BlazorApp1.dll"] \ No newline at end of file diff --git a/BlazorApp1/Pages/Counter.razor b/BlazorApp1/Pages/Counter.razor deleted file mode 100644 index 54d3a80..0000000 --- a/BlazorApp1/Pages/Counter.razor +++ /dev/null @@ -1,18 +0,0 @@ -@page "/counter" - -Counter - -

Counter

- -

Current count: @currentCount

- - - -@code { - private int currentCount = 0; - - private void IncrementCount() - { - currentCount=currentCount+8000; - } -} diff --git a/BlazorApp1/Pages/Episodes.razor b/BlazorApp1/Pages/Episodes.razor deleted file mode 100644 index 4444c50..0000000 --- a/BlazorApp1/Pages/Episodes.razor +++ /dev/null @@ -1,26 +0,0 @@ -@page "/episodes" -@layout DoctorWhoLayout - -

Episodes

- - -
- -
- \ No newline at end of file diff --git a/BlazorApp1/Pages/FetchData.razor b/BlazorApp1/Pages/FetchData.razor deleted file mode 100644 index b0feea3..0000000 --- a/BlazorApp1/Pages/FetchData.razor +++ /dev/null @@ -1,48 +0,0 @@ -@page "/fetchdata" - -Weather forecast - -@using BlazorApp1.Data -@inject WeatherForecastService ForecastService - -

Weather forecast

- -

This component demonstrates fetching data from a service.

- -@if (forecasts == null) -{ -

Loading...

-} -else -{ - - - - - - - - - - - @foreach (var forecast in forecasts) - { - - - - - - - } - -
DateTemp. (C)Temp. (F)Summary
@forecast.Date.ToShortDateString()@forecast.TemperatureC@forecast.TemperatureF@forecast.Summary
-} - -@code { - private WeatherForecast[]? forecasts; - - protected override async Task OnInitializedAsync() - { - forecasts = await ForecastService.GetForecastAsync(DateTime.Now); - } -} diff --git a/BlazorApp1/Shared/DoctorWhoLayout.razor b/BlazorApp1/Shared/DoctorWhoLayout.razor deleted file mode 100644 index a258080..0000000 --- a/BlazorApp1/Shared/DoctorWhoLayout.razor +++ /dev/null @@ -1,24 +0,0 @@ -@inherits LayoutComponentBase -@layout MainLayout - -
-

Doctor Who™ Episode Database

-
- - - -@Body - - - -@code { - public string TrademarkMessage { get; set; } = - "Doctor Who is a registered trademark of the BBC. " + - "https://www.doctorwho.tv/"; -} diff --git a/BlazorApp1/Shared/NavMenu.razor b/BlazorApp1/Shared/NavMenu.razor index 44e0cbb..99c320f 100644 --- a/BlazorApp1/Shared/NavMenu.razor +++ b/BlazorApp1/Shared/NavMenu.razor @@ -21,17 +21,7 @@ - - diff --git a/Minecraft.Crafting.Api/Properties/launchSettings.json b/Minecraft.Crafting.Api/Properties/launchSettings.json index 53872a0..e3b6e67 100644 --- a/Minecraft.Crafting.Api/Properties/launchSettings.json +++ b/Minecraft.Crafting.Api/Properties/launchSettings.json @@ -1,14 +1,22 @@ { + "$schema": "https://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:51530", + "sslPort": 44598 + } + }, "profiles": { "Minecraft.Crafting.Api": { "commandName": "Project", - "launchBrowser": true, "launchUrl": "swagger", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, - "dotnetRunMessages": true, - "applicationUrl": "https://localhost:7234;http://localhost:5234" + "applicationUrl": "https://localhost:7234;http://localhost:5234", + "dotnetRunMessages": true }, "IIS Express": { "commandName": "IISExpress", @@ -25,14 +33,5 @@ "publishAllPorts": true, "useSSL": true } - }, - "$schema": "https://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:51530", - "sslPort": 44598 - } } } \ No newline at end of file