Skip to content

Commit

Permalink
Setup new demo/docs samples
Browse files Browse the repository at this point in the history
  • Loading branch information
zHaytam committed Jun 13, 2020
1 parent fd59605 commit bd12aa4
Show file tree
Hide file tree
Showing 2,528 changed files with 183,891 additions and 1,088 deletions.
2 changes: 1 addition & 1 deletion Blazor.Diagrams.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wasm", "samples\Wasm\Wasm.c
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blazor.Diagrams", "src\Blazor.Diagrams\Blazor.Diagrams.csproj", "{A1A4F8A5-7C97-41A8-9ADD-54E9D1725B56}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestComponents", "samples\TestComponents\TestComponents.csproj", "{1CBCC8E6-111C-4364-9882-50881E4CC8B4}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharedDemo", "samples\SharedDemo\SharedDemo.csproj", "{1CBCC8E6-111C-4364-9882-50881E4CC8B4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServerSide", "samples\ServerSide\ServerSide.csproj", "{B9EE910B-8FE7-490C-B20C-CEC27A2890D6}"
EndProject
Expand Down
6 changes: 3 additions & 3 deletions samples/ServerSide/App.razor
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Router AppAssembly="@typeof(Program).Assembly" AdditionalAssemblies="new[] { typeof(TestComponents.Simple).Assembly }">
<Router AppAssembly="@typeof(Program).Assembly" AdditionalAssemblies="new[] { typeof(SharedDemo.Home).Assembly }">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<RouteView RouteData="@routeData" DefaultLayout="@typeof(SharedDemo.Layouts.DocsLayout)" />
</Found>
<NotFound>
<LayoutView Layout="@typeof(MainLayout)">
<LayoutView Layout="@typeof(SharedDemo.Layouts.DocsLayout)">
<p>Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
Expand Down
15 changes: 0 additions & 15 deletions samples/ServerSide/Data/WeatherForecast.cs

This file was deleted.

25 changes: 0 additions & 25 deletions samples/ServerSide/Data/WeatherForecastService.cs

This file was deleted.

7 changes: 0 additions & 7 deletions samples/ServerSide/Pages/Index.razor

This file was deleted.

20 changes: 15 additions & 5 deletions samples/ServerSide/Pages/_Host.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ServerSide</title>
<base href="~/" />
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
<link href="css/site.css" rel="stylesheet" />
<link href="_content/Blazor.Diagrams/style.css" rel="stylesheet" />
<link href="_content/Blazor.Diagrams/default.styles.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" type="text/css">
<script defer="" src="_content/SharedDemo/fontawesome/js/all.js"></script>
<link rel="stylesheet" href="_content/SharedDemo/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="_content/SharedDemo/plugins/prism/prism.css">
<link rel="stylesheet" href="_content/SharedDemo/plugins/elegant_font/css/style.css">
<link id="theme-style" rel="stylesheet" href="_content/SharedDemo/css/styles.css">
<link href="_content/Z.Blazor.Diagrams/style.css" rel="stylesheet" />
<link href="_content/Z.Blazor.Diagrams/default.styles.css" rel="stylesheet" />
</head>
<body>
<app>
Expand All @@ -34,6 +38,12 @@
</div>

<script src="_framework/blazor.server.js"></script>
<script src="_content/Blazor.Diagrams/script.js"></script>
<script type="text/javascript" src="_content/SharedDemo/plugins/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="_content/SharedDemo/plugins/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="_content/SharedDemo/plugins/prism/prism.js"></script>
<script type="text/javascript" src="_content/SharedDemo/plugins/jquery-scrollTo/jquery.scrollTo.min.js"></script>
<script type="text/javascript" src="_content/SharedDemo/plugins/stickyfill/dist/stickyfill.min.js"></script>
<script type="text/javascript" src="_content/SharedDemo/js/main.js"></script>
<script src="_content/Z.Blazor.Diagrams/script.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion samples/ServerSide/ServerSide.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\TestComponents\TestComponents.csproj" />
<ProjectReference Include="..\SharedDemo\SharedDemo.csproj" />
</ItemGroup>

</Project>
15 changes: 0 additions & 15 deletions samples/ServerSide/Shared/MainLayout.razor

This file was deleted.

16 changes: 0 additions & 16 deletions samples/ServerSide/Shared/SurveyPrompt.razor

This file was deleted.

14 changes: 2 additions & 12 deletions samples/ServerSide/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using ServerSide.Data;
using SharedDemo;

namespace ServerSide
{
Expand All @@ -22,16 +16,13 @@ public Startup(IConfiguration configuration)

public IConfiguration Configuration { get; }

// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
services.AddServerSideBlazor();
services.AddSingleton<WeatherForecastService>();
services.AddSingleton<LayoutData>();
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
Expand All @@ -41,7 +32,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
else
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}

Expand Down
3 changes: 1 addition & 2 deletions samples/ServerSide/_Imports.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.JSInterop
@using ServerSide
@using ServerSide.Shared
@using TestComponents
@using SharedDemo
7 changes: 0 additions & 7 deletions samples/ServerSide/wwwroot/css/bootstrap/bootstrap.min.css

This file was deleted.

This file was deleted.

86 changes: 0 additions & 86 deletions samples/ServerSide/wwwroot/css/open-iconic/FONT-LICENSE

This file was deleted.

Loading

0 comments on commit bd12aa4

Please sign in to comment.