diff --git a/Aurora.Admin/.editorconfig b/Aurora.Admin/.editorconfig new file mode 100644 index 0000000000000000000000000000000000000000..7ddb907d8acaaab2176c1abcf4cadfb98ae6775f --- /dev/null +++ b/Aurora.Admin/.editorconfig @@ -0,0 +1,149 @@ +# To learn more about .editorconfig see https://aka.ms/editorconfigdocs +############################### +# Core EditorConfig Options # +############################### +root = true + +# All files +[*] +indent_style = space +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +# Code files +[*.{cs,csx,vb,vbx}] +indent_size = 4 + +[*.{cs,css,js,json,*html,razor,txt,log}] +charset = utf-8-bom + +[*.{xml,config,*proj,nuspec,props,resx,targets,yml,tasks}] +indent_size = 2 + +# Xml config files +[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}] +indent_size = 2 + +[*.json] +indent_size = 2 + +[*.{ps1,psm1}] +indent_size = 4 + +[*.sh] +indent_size = 4 +end_of_line = lf + +############################### +# .NET Coding Conventions # +############################### +[*.{cs,vb}] +# Organize usings +dotnet_sort_system_directives_first = false +# this. preferences +dotnet_style_qualification_for_field = false:silent +dotnet_style_qualification_for_property = false:silent +dotnet_style_qualification_for_method = false:silent +dotnet_style_qualification_for_event = false:silent +# Language keywords vs BCL types preferences +dotnet_style_predefined_type_for_locals_parameters_members = true:silent +dotnet_style_predefined_type_for_member_access = true:silent +# Parentheses preferences +dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent +dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent +dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent +dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent +# Modifier preferences +dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent +dotnet_style_readonly_field = true:suggestion +# Expression-level preferences +dotnet_style_object_initializer = true:suggestion +dotnet_style_collection_initializer = true:suggestion +dotnet_style_explicit_tuple_names = true:suggestion +dotnet_style_null_propagation = true:suggestion +dotnet_style_coalesce_expression = true:suggestion +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent +dotnet_prefer_inferred_tuple_names = true:suggestion +dotnet_prefer_inferred_anonymous_type_member_names = true:suggestion +dotnet_style_prefer_auto_properties = true:silent +dotnet_style_prefer_conditional_expression_over_assignment = true:silent +dotnet_style_prefer_conditional_expression_over_return = true:silent +############################### +# Naming Conventions # +############################### +# Style Definitions +dotnet_naming_style.pascal_case_style.capitalization = pascal_case +# Use PascalCase for constant fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion +dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style +dotnet_naming_symbols.constant_fields.applicable_kinds = field +dotnet_naming_symbols.constant_fields.applicable_accessibilities = * +dotnet_naming_symbols.constant_fields.required_modifiers = const +############################### +# C# Coding Conventions # +############################### +[*.cs] +# var preferences +csharp_style_var_for_built_in_types = true:silent +csharp_style_var_when_type_is_apparent = true:silent +csharp_style_var_elsewhere = true:silent +# Expression-bodied members +csharp_style_expression_bodied_methods = false:silent +csharp_style_expression_bodied_constructors = false:silent +csharp_style_expression_bodied_operators = false:silent +csharp_style_expression_bodied_properties = true:silent +csharp_style_expression_bodied_indexers = true:silent +csharp_style_expression_bodied_accessors = true:silent +# Pattern matching preferences +csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion +csharp_style_pattern_matching_over_as_with_null_check = true:suggestion +# Null-checking preferences +csharp_style_throw_expression = true:suggestion +csharp_style_conditional_delegate_call = true:suggestion +# Modifier preferences +csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion +# Expression-level preferences +csharp_prefer_braces = true:silent +csharp_style_deconstructed_variable_declaration = true:suggestion +csharp_prefer_simple_default_expression = true:suggestion +csharp_style_pattern_local_over_anonymous_function = true:suggestion +csharp_style_inlined_variable_declaration = true:suggestion +############################### +# C# Formatting Rules # +############################### +# New line preferences +csharp_new_line_before_open_brace = all +csharp_new_line_before_else = true +csharp_new_line_before_catch = true +csharp_new_line_before_finally = true +csharp_new_line_before_members_in_object_initializers = true +csharp_new_line_before_members_in_anonymous_types = true +csharp_new_line_between_query_expression_clauses = true +# Indentation preferences +csharp_indent_case_contents = true +csharp_indent_switch_labels = true +csharp_indent_labels = flush_left +# Space preferences +csharp_space_after_cast = false +csharp_space_after_keywords_in_control_flow_statements = true +csharp_space_between_method_call_parameter_list_parentheses = false +csharp_space_between_method_declaration_parameter_list_parentheses = false +csharp_space_between_parentheses = false +csharp_space_before_colon_in_inheritance_clause = true +csharp_space_after_colon_in_inheritance_clause = true +csharp_space_around_binary_operators = before_and_after +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false +csharp_space_between_method_call_name_and_opening_parenthesis = false +csharp_space_between_method_call_empty_parameter_list_parentheses = false +# Wrapping preferences +csharp_preserve_single_line_statements = true +csharp_preserve_single_line_blocks = true +############################### +# VB Coding Conventions # +############################### +[*.vb] +# Modifier preferences +visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion +[*.cs] diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/BootstrapBlazorApp.Server.csproj b/Aurora.Admin/BootstrapBlazorApp.Server/BootstrapBlazorApp.Server.csproj new file mode 100644 index 0000000000000000000000000000000000000000..a4438a5fc383cb4e448c273464f9497f825bb62a --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Server/BootstrapBlazorApp.Server.csproj @@ -0,0 +1,15 @@ + + + + net5.0 + + + + + + + + + + + diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/Pages/Error.cshtml b/Aurora.Admin/BootstrapBlazorApp.Server/Pages/Error.cshtml new file mode 100644 index 0000000000000000000000000000000000000000..85ddaf945816aff6650fe5d508ea57ef323fec34 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Server/Pages/Error.cshtml @@ -0,0 +1,16 @@ +@page + + +

Error.

+

An error occurred while processing your request.

+ +

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. +

diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/Pages/_Host.cshtml b/Aurora.Admin/BootstrapBlazorApp.Server/Pages/_Host.cshtml new file mode 100644 index 0000000000000000000000000000000000000000..858f03f11e045432f761921912940fbf63cce0cd --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Server/Pages/_Host.cshtml @@ -0,0 +1,39 @@ +@page "/" +@namespace BootstrapBlazorApp.Server.Pages +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@using BootstrapBlazorApp.Shared +@{ + Layout = null; +} + + + + + + + Bootstrap Blazor Server App + + + + + + + + + + +
+ + An error has occurred. This application may no longer respond until reloaded. + + + An unhandled exception has occurred. See browser dev tools for details. + + Reload + 🗙 +
+ + + + + diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/Program.cs b/Aurora.Admin/BootstrapBlazorApp.Server/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..c9786720add37bfd7e7e22d120b909388e7582fd --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Server/Program.cs @@ -0,0 +1,20 @@ +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Hosting; + +namespace BootstrapBlazorApp.Server +{ + public class Program + { + public static void Main(string[] args) + { + CreateHostBuilder(args).Build().Run(); + } + + public static IHostBuilder CreateHostBuilder(string[] args) => + Host.CreateDefaultBuilder(args) + .ConfigureWebHostDefaults(webBuilder => + { + webBuilder.UseStartup(); + }); + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/Properties/launchSettings.json b/Aurora.Admin/BootstrapBlazorApp.Server/Properties/launchSettings.json new file mode 100644 index 0000000000000000000000000000000000000000..4e1eebda143ad399186ce2da41d5015b05dc6751 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Server/Properties/launchSettings.json @@ -0,0 +1,27 @@ +{ + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:53189", + "sslPort": 0 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "BlazorApp1": { + "commandName": "Project", + "launchBrowser": true, + "applicationUrl": "http://localhost:5000", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/Startup.cs b/Aurora.Admin/BootstrapBlazorApp.Server/Startup.cs new file mode 100644 index 0000000000000000000000000000000000000000..6dc35f0540fa30b59c61da3d946329c90c01aa60 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Server/Startup.cs @@ -0,0 +1,72 @@ +using BootstrapBlazor.Components; +using BootstrapBlazorApp.Shared.Data; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Options; + +namespace BootstrapBlazorApp.Server +{ + public class Startup + { + public Startup(IConfiguration configuration) + { + Configuration = 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.AddBootstrapBlazor(setupAction: options => + { + options.AdditionalJsonAssemblies = new[] { GetType().Assembly }; + }); + + services.AddRequestLocalization>((localizerOption, blazorOption) => + { + var supportedCultures = blazorOption.Value.GetSupportedCultures(); + + localizerOption.SupportedCultures = supportedCultures; + localizerOption.SupportedUICultures = supportedCultures; + }); + + services.AddSingleton(); + + // 增加 Table 数据服务操作类 + services.AddTableDemoDataService(); + } + + // 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()) + { + app.UseDeveloperExceptionPage(); + } + else + { + app.UseExceptionHandler("/Error"); + } + + app.UseRequestLocalization(app.ApplicationServices.GetService>().Value); + + app.UseStaticFiles(); + + app.UseRouting(); + + app.UseEndpoints(endpoints => + { + endpoints.MapBlazorHub(); + endpoints.MapFallbackToPage("/_Host"); + }); + } + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/_Imports.razor b/Aurora.Admin/BootstrapBlazorApp.Server/_Imports.razor new file mode 100644 index 0000000000000000000000000000000000000000..ac9c2c995cced9d8254a2f546b33235b63d09040 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Server/_Imports.razor @@ -0,0 +1,13 @@ +@using BootstrapBlazor.Components +@using BootstrapBlazorApp.Server +@using BootstrapBlazorApp.Shared +@using BootstrapBlazorApp.Shared.Shared +@using Microsoft.AspNetCore.Authorization +@using Microsoft.AspNetCore.Components.Authorization +@using Microsoft.AspNetCore.Components.Forms +@using Microsoft.AspNetCore.Components.Routing +@using Microsoft.AspNetCore.Components.Web +@using Microsoft.JSInterop +@using System.ComponentModel +@using System.ComponentModel.DataAnnotations +@using System.Net.Http diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/appsettings.json b/Aurora.Admin/BootstrapBlazorApp.Server/appsettings.json new file mode 100644 index 0000000000000000000000000000000000000000..d9d9a9bff6fd6f3ee7ea00de958f135a4a28c6e6 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Server/appsettings.json @@ -0,0 +1,10 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "AllowedHosts": "*" +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/favicon.ico b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..eb3bb5901cdde8ad86dcd3f7c20e88a08063bdd4 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/favicon.ico differ diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/favicon.png b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..05a4ed7ff621451c62c2c09a17d6ce0fee48c911 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/favicon.png differ diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/css/font-awesome.min.css b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/css/font-awesome.min.css new file mode 100644 index 0000000000000000000000000000000000000000..540440ce89f2a408aa699b65100e18f15e0f09ca --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/css/font-awesome.min.css @@ -0,0 +1,4 @@ +/*! + * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.7.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto} diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/FontAwesome.otf b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/FontAwesome.otf new file mode 100644 index 0000000000000000000000000000000000000000..401ec0f36e4f73b8efa40bd6f604fe80d286db70 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/FontAwesome.otf differ diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.eot b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.eot new file mode 100644 index 0000000000000000000000000000000000000000..e9f60ca953f93e35eab4108bd414bc02ddcf3928 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.eot differ diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.svg b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.svg new file mode 100644 index 0000000000000000000000000000000000000000..855c845e538b65548118279537a04eab2ec6ef0d --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.svg @@ -0,0 +1,2671 @@ + + + + +Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 + By ,,, +Copyright Dave Gandy 2016. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.ttf b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.ttf new file mode 100644 index 0000000000000000000000000000000000000000..35acda2fa1196aad98c2adf4378a7611dd713aa3 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.ttf differ diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.woff b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.woff new file mode 100644 index 0000000000000000000000000000000000000000..400014a4b06eee3d0c0d54402a47ab2601b2862b Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.woff differ diff --git a/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.woff2 b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..4d13fc60404b91e398a37200c4a77b645cfd9586 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.Server/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.woff2 differ diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/App.razor b/Aurora.Admin/BootstrapBlazorApp.Shared/App.razor new file mode 100644 index 0000000000000000000000000000000000000000..0b190a2c9ff3c50f6b2c02781b013472d712a03f --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/App.razor @@ -0,0 +1,10 @@ + + + + + + +

Sorry, there's nothing at this address.

+
+
+
diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/App.razor.cs b/Aurora.Admin/BootstrapBlazorApp.Shared/App.razor.cs new file mode 100644 index 0000000000000000000000000000000000000000..c9b356f3a14676c11d7c4cc56ee22806daf8a43e --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/App.razor.cs @@ -0,0 +1,33 @@ +using Microsoft.AspNetCore.Components; +using Microsoft.JSInterop; +using System; +using System.Threading.Tasks; + +namespace BootstrapBlazorApp.Shared +{ + /// + /// + /// + public sealed partial class App + { + /// + /// + /// + [Inject] + private IJSRuntime JSRuntime { get; set; } + + /// + /// + /// + /// + protected override async Task OnAfterRenderAsync(bool firstRender) + { + await base.OnAfterRenderAsync(firstRender); + + if (firstRender && OperatingSystem.IsBrowser()) + { + await JSRuntime.InvokeVoidAsync("$.loading"); + } + } + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/BootstrapBlazorApp.Shared.csproj b/Aurora.Admin/BootstrapBlazorApp.Shared/BootstrapBlazorApp.Shared.csproj new file mode 100644 index 0000000000000000000000000000000000000000..53564281c074a9e7856607bb815b6a154a5942f0 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/BootstrapBlazorApp.Shared.csproj @@ -0,0 +1,24 @@ + + + + net5.0 + + + + + + + + + + + + + + + + + + + + diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Data/TableDemoDataServiceCollectionExtensions.cs b/Aurora.Admin/BootstrapBlazorApp.Shared/Data/TableDemoDataServiceCollectionExtensions.cs new file mode 100644 index 0000000000000000000000000000000000000000..539f6aeaf24698df5282656737b4629eeaf0bbbb --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Data/TableDemoDataServiceCollectionExtensions.cs @@ -0,0 +1,167 @@ +using BootstrapBlazor.Components; +using BootstrapBlazorApp.Shared.Pages; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection.Extensions; +using Microsoft.Extensions.Localization; +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace BootstrapBlazorApp.Shared.Data +{ + /// + /// BootstrapBlazor 服务扩展类 + /// + public static class TableDemoDataServiceCollectionExtensions + { + /// + /// 增加 PetaPoco 数据库操作服务 + /// + /// + /// + public static IServiceCollection AddTableDemoDataService(this IServiceCollection services) + { + services.AddScoped(typeof(IDataService<>), typeof(TableDemoDataService<>)); + return services; + } + } + + /// + /// 演示网站示例数据注入服务实现类 + /// + internal class TableDemoDataService : DataServiceBase where TModel : class, new() + { + private static readonly ConcurrentDictionary, string, SortOrder, IEnumerable>> SortLambdaCache = new(); + + private List Items { get; set; } + + private IStringLocalizer Localizer { get; set; } + + public TableDemoDataService(IStringLocalizer localizer) + { + Localizer = localizer; + } + + /// + /// 查询操作方法 + /// + /// + /// + public override Task> QueryAsync(QueryPageOptions options) + { + // 此处代码实战中不可用,仅仅为演示而写防止数据全部被删除 + if (Items == null || Items.Count == 0) + { + Items = Foo.GenerateFoo(Localizer).Cast().ToList(); + } + + var items = Items.AsEnumerable(); + var isSearched = false; + // 处理高级查询 + if (options.SearchModel is Foo model) + { + if (!string.IsNullOrEmpty(model.Name)) items = items.Cast().Where(item => item.Name?.Contains(model.Name, StringComparison.OrdinalIgnoreCase) ?? false).Cast(); + if (!string.IsNullOrEmpty(model.Address)) items = items.Cast().Where(item => item.Address?.Contains(model.Address, StringComparison.OrdinalIgnoreCase) ?? false).Cast(); + isSearched = !string.IsNullOrEmpty(model.Name) || !string.IsNullOrEmpty(model.Address); + } + + if (options.Searchs.Any()) + { + // 针对 SearchText 进行模糊查询 + items = items.Where(options.Searchs.GetFilterFunc(FilterLogic.Or)); + } + + // 过滤 + var isFiltered = false; + if (options.Filters.Any()) + { + items = items.Where(options.Filters.GetFilterFunc()); + isFiltered = true; + } + + // 排序 + var isSorted = false; + if (!string.IsNullOrEmpty(options.SortName)) + { + // 外部未进行排序,内部自动进行排序处理 + var invoker = SortLambdaCache.GetOrAdd(typeof(Foo), key => LambdaExtensions.GetSortLambda().Compile()); + items = invoker(items, options.SortName, options.SortOrder); + isSorted = true; + } + + var total = items.Count(); + + return Task.FromResult(new QueryData() + { + Items = items.Skip((options.PageIndex - 1) * options.PageItems).Take(options.PageItems).ToList(), + TotalCount = total, + IsFiltered = isFiltered, + IsSorted = isSorted, + IsSearch = isSearched + }); + } + + /// + /// + /// + /// + /// + public override Task SaveAsync(TModel model) + { + var ret = false; + if (model is Foo foo) + { + var item = Items?.FirstOrDefault(item => + { + var f = item as Foo; + return f.Id == foo.Id; + }); + if (item == null) + { + var id = Items!.Count + 1; + while (Items.FirstOrDefault(item => (item as Foo)!.Id == id) != null) + { + id++; + } + item = new Foo() + { + Id = id, + Name = foo.Name, + Address = foo.Address, + Complete = foo.Complete, + Count = foo.Count, + DateTime = foo.DateTime, + Education = foo.Education, + Hobby = foo.Hobby + } as TModel; + Items?.Add(item!); + } + else + { + var f = item as Foo; + f.Name = foo.Name; + f.Address = foo.Address; + f.Complete = foo.Complete; + f.Count = foo.Count; + f.DateTime = foo.DateTime; + f.Education = foo.Education; + f.Hobby = foo.Hobby; + } + ret = true; + } + return Task.FromResult(ret); + } + + public override Task DeleteAsync(IEnumerable models) + { + foreach (var model in models) + { + Items?.Remove(model); + } + + return base.DeleteAsync(models); + } + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Data/WeatherForecast.cs b/Aurora.Admin/BootstrapBlazorApp.Shared/Data/WeatherForecast.cs new file mode 100644 index 0000000000000000000000000000000000000000..f2b80285caf9c084782b78129fa303dbb1754d23 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Data/WeatherForecast.cs @@ -0,0 +1,30 @@ +using System; + +namespace BootstrapBlazorApp.Shared.Data +{ + /// + /// + /// + public class WeatherForecast + { + /// + /// + /// + public DateTime Date { get; set; } + + /// + /// + /// + public int TemperatureC { get; set; } + + /// + /// + /// + public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); + + /// + /// + /// + public string Summary { get; set; } = ""; + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Data/WeatherForecastService.cs b/Aurora.Admin/BootstrapBlazorApp.Shared/Data/WeatherForecastService.cs new file mode 100644 index 0000000000000000000000000000000000000000..2868e1ee089a57f6721b0641fc3292ef73bce6a3 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Data/WeatherForecastService.cs @@ -0,0 +1,33 @@ +using System; +using System.Linq; +using System.Threading.Tasks; + +namespace BootstrapBlazorApp.Shared.Data +{ + /// + /// + /// + public class WeatherForecastService + { + private static readonly string[] Summaries = new[] + { + "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" + }; + + /// + /// + /// + /// + /// + public Task GetForecastAsync(DateTime startDate) + { + var rng = new Random(); + return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast + { + Date = startDate.AddDays(index), + TemperatureC = rng.Next(-20, 55), + Summary = Summaries[rng.Next(Summaries.Length)] + }).ToArray()); + } + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Locales/en.json b/Aurora.Admin/BootstrapBlazorApp.Shared/Locales/en.json new file mode 100644 index 0000000000000000000000000000000000000000..8986f3dff17d72e7f38ef41d870fa818dfee588d --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Locales/en.json @@ -0,0 +1,26 @@ +{ + "BootstrapBlazorApp.Shared.Pages.Foo": { + "Name": "Name", + "DateTime": "DateTime", + "Address": "Address", + "Count": "Count", + "Complete": "Complete", + "Education": "Education", + "Hobby": "Hobby", + "Name.Required": "{0} is required.", + "Address.Required": "{0} is required.", + "Education.Required": "{0} is required.", + "Hobby.Required": "{0} is required.", + "Name.PlaceHolder": "required", + "Hobbys": "Swimming,Climb,Shoot,Chess", + "Foo.Name": "Zhangsan {0}", + "Foo.Address": "Lane {0} of Jinshajiang Road, Putuo District, Shanghai", + "Foo.Address2": "Earth, China, Lane {0} of Jinshajiang Road, Putuo District, Shanghai. Here is an example of super long cell", + "Foo.BindValue": "BindValue" + }, + "BootstrapBlazorApp.Shared.Pages.EnumEducation": { + "PlaceHolder": "Click to select ...", + "Primary": "Primary", + "Middel": "Middel" + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Locales/zh.json b/Aurora.Admin/BootstrapBlazorApp.Shared/Locales/zh.json new file mode 100644 index 0000000000000000000000000000000000000000..f41b3b8a906d574d9fea6619970170fbeef1bf76 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Locales/zh.json @@ -0,0 +1,26 @@ +{ + "BootstrapBlazorApp.Shared.Pages.Foo": { + "Name": "姓名", + "DateTime": "日期", + "Address": "地址", + "Count": "数量", + "Complete": "是/否", + "Education": "学历", + "Hobby": "爱好", + "Name.Required": "{0}是必填项", + "Address.Required": "{0}是必填项", + "Education.Required": "{0}是必选项", + "Hobby.Required": "请选择一种{0}", + "Name.PlaceHolder": "不可为空", + "Hobbys": "游泳,登山,打球,下棋", + "Foo.Name": "张三 {0}", + "Foo.Address": "上海市普陀区金沙江路 {0} 弄", + "Foo.Address2": "地球、中国、上海市普陀区金沙江路 {0} 弄 这里是超长单元格示例", + "Foo.BindValue": "绑定值" + }, + "BootstrapBlazorApp.Shared.Pages.EnumEducation": { + "PlaceHolder": "请选择 ...", + "Primary": "小学", + "Middel": "中学" + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/Counter.razor b/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/Counter.razor new file mode 100644 index 0000000000000000000000000000000000000000..bd823e5efae4b585e79887c4cff4ae0294095944 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/Counter.razor @@ -0,0 +1,16 @@ +@page "/counter" + +

Counter

+ +

Current count: @currentCount

+ + + +@code { + private int currentCount = 0; + + private void IncrementCount() + { + currentCount++; + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/FetchData.razor b/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/FetchData.razor new file mode 100644 index 0000000000000000000000000000000000000000..f12c027b67f9a4235c28facc9b4b18192066e1e2 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/FetchData.razor @@ -0,0 +1,46 @@ +@page "/fetchdata" + +@using BootstrapBlazorApp.Shared.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/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/Foo.cs b/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/Foo.cs new file mode 100644 index 0000000000000000000000000000000000000000..8494a36f39e837bf1cd4cb2c420164f6bb47a940 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/Foo.cs @@ -0,0 +1,154 @@ +// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// Website: https://www.blazor.zone or https://argozhang.github.io/ + +using BootstrapBlazor.Components; +using Microsoft.Extensions.Localization; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; + +namespace BootstrapBlazorApp.Shared.Pages +{ + /// + /// + /// + public class Foo + { + // 列头信息支持 Display DisplayName 两种标签 + + /// + /// + /// + [Display(Name = "主键")] + [AutoGenerateColumn(Ignore = true)] + public int Id { get; set; } + + /// + /// + /// + [Required(ErrorMessage = "{0}不能为空")] + [AutoGenerateColumn(Order = 10, Filterable = true, Searchable = true)] + [Display(Name = "姓名")] + public string Name { get; set; } + + /// + /// + /// + [AutoGenerateColumn(Order = 1, FormatString = "yyyy-MM-dd", Width = 180)] + [Display(Name = "日期")] + public DateTime DateTime { get; set; } + + /// + /// + /// + [Display(Name = "地址")] + [Required(ErrorMessage = "{0}不能为空")] + [AutoGenerateColumn(Order = 20, Filterable = true, Searchable = true)] + public string Address { get; set; } + + /// + /// + /// + [Display(Name = "数量")] + [Required] + [AutoGenerateColumn(Order = 40, Sortable = true)] + public int Count { get; set; } + + /// + /// + /// + [Display(Name = "是/否")] + [AutoGenerateColumn(Order = 50, ComponentType = typeof(Switch))] + public bool Complete { get; set; } + + /// + /// + /// + [Required(ErrorMessage = "请选择学历")] + [Display(Name = "学历")] + [AutoGenerateColumn(Order = 60)] + public EnumEducation? Education { get; set; } + + /// + /// + /// + [Required(ErrorMessage = "请选择一种{0}")] + [Display(Name = "爱好")] + [AutoGenerateColumn(Order = 70)] + public IEnumerable Hobby { get; set; } = new List(); + + private static readonly Random random = new(); + + /// + /// + /// + /// + /// + public static Foo Generate(IStringLocalizer localizer) => new() + { + Id = 1, + Name = localizer["Foo.Name", "1000"], + DateTime = System.DateTime.Now, + Address = localizer["Foo.Address", $"{random.Next(1000, 2000)}"], + Count = random.Next(1, 100), + Complete = random.Next(1, 100) > 50, + Education = random.Next(1, 100) > 50 ? EnumEducation.Primary : EnumEducation.Middel + }; + + /// + /// + /// + /// + public static List GenerateFoo(IStringLocalizer localizer) => Enumerable.Range(1, 80).Select(i => new Foo() + { + Id = i, + Name = localizer["Foo.Name", $"{i:d4}"], + DateTime = System.DateTime.Now.AddDays(i - 1), + Address = localizer["Foo.Address", $"{random.Next(1000, 2000)}"], + Count = random.Next(1, 100), + Complete = random.Next(1, 100) > 50, + Education = random.Next(1, 100) > 50 ? EnumEducation.Primary : EnumEducation.Middel + }).ToList(); + + /// + /// + /// + /// + public static List GenerateWrapFoo(IStringLocalizer localizer) => Enumerable.Range(1, 4).Select(i => new Foo() + { + Id = i, + Name = localizer["Foo.Name", $"{i:d4}"], + DateTime = System.DateTime.Now.AddDays(i - 1), + Address = localizer["Foo.Address2", $"{random.Next(1000, 2000)}"], + Count = random.Next(1, 100), + Complete = random.Next(1, 100) > 50, + Education = random.Next(1, 100) > 50 ? EnumEducation.Primary : EnumEducation.Middel + }).ToList(); + + /// + /// + /// + /// + public static IEnumerable GenerateHobbys(IStringLocalizer localizer) => localizer["Hobbys"].Value.Split(",").Select(i => new SelectedItem(i, i)).ToList(); + } + + /// + /// + /// + public enum EnumEducation + { + /// + /// + /// + [Display(Name = "小学")] + Primary, + + /// + /// + /// + [Display(Name = "中学")] + Middel + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/Index.razor b/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/Index.razor new file mode 100644 index 0000000000000000000000000000000000000000..8ee11438f23078076d7f5db6184d67ccc524077d --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/Index.razor @@ -0,0 +1,7 @@ +@page "/" + +

Hello, world!

+ +Welcome to your new app. + + diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/TableDemo.razor b/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/TableDemo.razor new file mode 100644 index 0000000000000000000000000000000000000000..0d7f2daa9aa9b8c1cd428d28849f8954b4257ea7 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/TableDemo.razor @@ -0,0 +1,12 @@ +@page "/table" + +

Table

+ + + + + +
diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/TableDemo.razor.cs b/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/TableDemo.razor.cs new file mode 100644 index 0000000000000000000000000000000000000000..f6ea9be0fb397cfcb35dc7a583c7b591d2e295cd --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Pages/TableDemo.razor.cs @@ -0,0 +1,34 @@ +using BootstrapBlazor.Components; +using Microsoft.AspNetCore.Components; +using Microsoft.Extensions.Localization; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace BootstrapBlazorApp.Shared.Pages +{ + /// + /// + /// + public partial class TableDemo : ComponentBase + { + [Inject] + private IStringLocalizer Localizer { get; set; } + + private IEnumerable Hobbys { get; set; } + + /// + /// + /// + protected override async Task OnInitializedAsync() + { + await base.OnInitializedAsync(); + + Hobbys = Foo.GenerateHobbys(Localizer); + } + + /// + /// + /// + private static IEnumerable PageItemsSource => new int[] { 4, 10, 20 }; + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Shared/MainLayout.razor b/Aurora.Admin/BootstrapBlazorApp.Shared/Shared/MainLayout.razor new file mode 100644 index 0000000000000000000000000000000000000000..bed51d0bfd3aef34d4518f031c74d5b4751e9d14 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Shared/MainLayout.razor @@ -0,0 +1,146 @@ +@inherits LayoutComponentBase + + +
+ Bootstrap of Blazor + + + 超级管理员 +
+
+ +
+ +
+ 后台管理 +
+
+
+ +
+ 管理员 +
+
+
+
+
+ + @Body + +
+ +
+ + +
+
点击关闭
+
+

布局调整

+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+ +
+

固定调整

+
+
+ +
+
+ 固定页头 +
+
+
+
+ +
+
+ 固定页脚 +
+
+
+
+ +
+
+ 显示页脚 +
+
+
+ +
+

主题配色

+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ +
+

更多设置

+
+
+ +
+
+ @(UseTabSet ? "多标签" : "单页") +
+
+
+
+
+ + + + + + diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Shared/MainLayout.razor.cs b/Aurora.Admin/BootstrapBlazorApp.Shared/Shared/MainLayout.razor.cs new file mode 100644 index 0000000000000000000000000000000000000000..b96a618e78ede8467b251f670750b9579775555f --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Shared/MainLayout.razor.cs @@ -0,0 +1,63 @@ +using BootstrapBlazor.Components; +using Microsoft.AspNetCore.Components.Routing; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace BootstrapBlazorApp.Shared.Shared +{ + /// + /// + /// + public sealed partial class MainLayout + { + private bool UseTabSet { get; set; } = true; + + private string Theme { get; set; } = ""; + + private bool IsOpen { get; set; } + + private bool IsFixedHeader { get; set; } = true; + + private bool IsFixedFooter { get; set; } = true; + + private bool IsFullSide { get; set; } = true; + + private bool ShowFooter { get; set; } = true; + + private List Menus { get; set; } + + private Dictionary TabItemTextDictionary { get; set; } + + /// + /// OnInitialized 方法 + /// + protected override async Task OnInitializedAsync() + { + await base.OnInitializedAsync(); + + // 模拟异步线程切换,正式代码中删除此行代码 + await Task.Yield(); + + // 菜单获取可以通过数据库获取,此处为示例直接拼装的菜单集合 + TabItemTextDictionary = new() + { + [""] = "Index" + }; + Menus = GetIconSideMenuItems(); + } + + private static List GetIconSideMenuItems() + { + var menus = new List + { + new MenuItem() { Text = "返回组件库", Icon = "fa fa-fw fa-home", Url = "https://www.blazor.zone/components" }, + new MenuItem() { Text = "Index", Icon = "fa fa-fw fa-fa", Url = "/" , Match = NavLinkMatch.All}, + new MenuItem() { Text = "Counter", Icon = "fa fa-fw fa-check-square-o", Url = "/counter" }, + new MenuItem() { Text = "FetchData", Icon = "fa fa-fw fa-database", Url = "fetchdata" }, + new MenuItem() { Text = "Table", Icon = "fa fa-fw fa-table", Url = "table" } + }; + + return menus; + } + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Shared/SurveyPrompt.razor b/Aurora.Admin/BootstrapBlazorApp.Shared/Shared/SurveyPrompt.razor new file mode 100644 index 0000000000000000000000000000000000000000..415ee1673cbd8ab04a5bce16847cf02a066ef058 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Shared/SurveyPrompt.razor @@ -0,0 +1,16 @@ + + +@code { + // Demonstrates how a parent component can supply parameters + [Parameter] + public string Title { get; set; } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/Shared/Widget.razor b/Aurora.Admin/BootstrapBlazorApp.Shared/Shared/Widget.razor new file mode 100644 index 0000000000000000000000000000000000000000..d00f3206e726df13c9925e9a59f85663b4bcb90d --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/Shared/Widget.razor @@ -0,0 +1,75 @@ + + + + 您有 4 个未读消息 + + + @for (var index = 0; index < 4; index++) + { + +
+ +
+
+
+

Argo Zhang

+ @(4 + index) mins +
+
Why not buy a new awesome theme?
+
+
+ } +
+ + 查看所有消息 + +
+ + + 您有 10 个未读通知 + + + @for (var index = 0; index < 10; index++) + { + + +
5 new members joined
+
+ } +
+ + 查看所有通知 + +
+ + + 您有 3 个任务 + + + +

+ Design some buttons + 20% +

+ +
+ +

+ Create a nice theme + 40% +

+ +
+ +

+ Some task I need to do + 60% +

+ +
+
+ + 查看所有任务 + +
+
diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/_Imports.razor b/Aurora.Admin/BootstrapBlazorApp.Shared/_Imports.razor new file mode 100644 index 0000000000000000000000000000000000000000..58b1fe9cbc9a086ec041cbbbf8d36a7a514c30bb --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/_Imports.razor @@ -0,0 +1,14 @@ +@using BootstrapBlazor.Components +@using BootstrapBlazorApp.Shared.Shared + +@using Microsoft.AspNetCore.Authorization +@using Microsoft.AspNetCore.Components.Forms +@using Microsoft.AspNetCore.Components.Routing +@using Microsoft.AspNetCore.Components.Web +@using Microsoft.Extensions.Localization +@using Microsoft.JSInterop + +@using System.ComponentModel +@using System.ComponentModel.DataAnnotations +@using System.Net.Http +@using System.Globalization diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/wwwroot/css/site.css b/Aurora.Admin/BootstrapBlazorApp.Shared/wwwroot/css/site.css new file mode 100644 index 0000000000000000000000000000000000000000..46d7c080416c7e558f81a729d2eacd2896f402e3 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.Shared/wwwroot/css/site.css @@ -0,0 +1,312 @@ +#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: 1080; +} + + #blazor-error-ui .dismiss { + cursor: pointer; + position: absolute; + right: 0.75rem; + top: 0.5rem; + } + +.page-layout-demo-footer-link { + color: #ebeef5; +} + + .page-layout-demo-footer-link:hover { + color: #fff; + } + +.page-layout-demo-option { + margin-top: 1.5rem; + border: 1px solid rgba(0,0,0,.125); + border-radius: 4px; + padding: 1.5rem 1rem 1rem 1rem; + position: relative; +} + + .page-layout-demo-option > p { + position: absolute; + top: -10px; + padding: 0 0.5rem; + background: #fff; + } + + .page-layout-demo-option .page-layout-demo-option-height { + display: flex; + align-items: center; + justify-content: space-between; + } + + .page-layout-demo-option .tabs-body-content { + margin: 0 -1rem -2rem -1rem; + } + +.layout-drawer { + padding: 13px; + margin-right: -1rem; + cursor: pointer; +} + + .layout-drawer:hover { + background-color: #1893a7; + } + +.layout-drawer-body { + padding: 1rem; +} + +.layout-item { + cursor: pointer; + border: 2px solid #e9ecef; + padding: 4px; + border-radius: 4px; + height: 80px; + width: 120px; + transition: border .3s linear; +} + + .layout-item:hover, + .layout-item.active { + border: 2px solid #28a745; + } + + .layout-item .layout-left { + width: 30%; + } + + .layout-item .layout-left .layout-left-header { + height: 16px; + background-color: #367fa9; + } + + .layout-item .layout-left .layout-left-body, + .layout-item .layout-body .layout-left { + background-color: #2f4050; + } + + .layout-item .layout-right .layout-right-header, + .layout-item .layout-top { + background-color: #17a2b8; + height: 16px; + } + + .layout-item .layout-right .layout-right-footer, + .layout-item .layout-footer { + background-color: #5b6e84; + height: 12px; + } + + .layout-item .layout-top, + .layout-item .layout-body, + .layout-item .layout-footer { + width: 100%; + } + +.layout.is-page .layout-right, +.layout.is-page .layout-main { + background-color: #fff; +} + +.color { + width: 1.5rem; + height: 1.5rem; + display: block; + cursor: pointer; + border: 2px solid #e9ecef; + border-radius: 4px; + transition: border .3s linear; +} + + .color:hover { + border: 2px solid #28a745; + } + +.color1, +.layout.is-page.color1 .layout-header { + background-color: #409eff; +} + +.layout.is-page.color1 .layout-side .layout-banner { + background-color: #3e84d0 +} + +.layout.is-page.color1 .layout-side { + background-color: #212529; + color: #ebeef5; +} + +.layout.is-page.color1 .layout-footer { + background-color: #343a40; +} + +.layout.is-page.color1 .layout-header-bar { + background-color: #2b7cd0; + border-color: #014186; +} + +.layout.is-page.color1 .layout-drawer:hover { + background-color: #3184dc; +} + +.color2, +.layout.is-page.color2 .layout-header { + background-color: #28a745; +} + +.layout.is-page.color2 .layout-side .layout-banner { + background-color: #24903d +} + +.layout.is-page.color2 .layout-side { + background-color: #212529; + color: #ebeef5; +} + +.layout.is-page.color2 .layout-footer { + background-color: #343a40; +} + +.layout.is-page.color2 .layout-header-bar { + background-color: #258c3c; + border-color: #014186; +} + +.layout.is-page.color2 .layout-drawer:hover { + background-color: #24903d; +} + +.color3, +.layout.is-page.color3 .layout-header { + background-color: #e83e8c; +} + +.layout.is-page.color3 .layout-side .layout-banner { + background-color: #c5417e +} + +.layout.is-page.color3 .layout-side { + background-color: #212529; + color: #ebeef5; +} + +.layout.is-page.color3 .layout-footer { + background-color: #343a40; +} + +.layout.is-page.color3 .layout-header-bar { + background-color: #c73477; + border-color: #014186; +} + +.layout.is-page.color3 .layout-drawer:hover { + background-color: #c5417e; +} + +.color4, +.layout.is-page.color4 .layout-header { + background-color: #ffc107; +} + +.layout.is-page.color4 .layout-side .layout-banner { + background-color: #e4af10 +} + +.layout.is-page.color4 .layout-side { + background-color: #212529; + color: #ebeef5; +} + +.layout.is-page.color4 .layout-footer { + background-color: #343a40; +} + +.layout.is-page.color4 .layout-header-bar { + background-color: #e2b221; + border-color: #014186; +} + +.layout.is-page.color4 .layout-drawer:hover { + background-color: #e4af10; +} + +.color5, +.layout.is-page.color5 .layout-header { + background-color: #17a2b8; +} + +.color6, +.layout.is-page.color6 .layout-header { + background-color: #6610f2; +} + +.layout.is-page.color6 .layout-side .layout-banner { + background-color: #4b0cb3 +} + +.layout.is-page.color6 .layout-side { + background-color: #212529; + color: #ebeef5; +} + +.layout.is-page.color6 .layout-footer { + background-color: #343a40; +} + +.layout.is-page.color6 .layout-header-bar { + background-color: #4b0ab5; + border-color: #014186; +} + +.layout.is-page.color6 .layout-drawer:hover { + background-color: #4b0cb3; +} + +.widget .dropdown-body h3 { + color: #666666; + font-size: 14px; + margin-bottom: 10px; +} + +.widget .dropdown-body h4 { + color: #444444; + font-size: 15px; + margin: 0; +} + +.widget .dropdown-body small { + color: #999999; + font-size: 10px; + position: absolute; + top: 0; + right: 0; +} + +.widget .dropdown-item > div:not(.progress):last-child { + width: calc(100% - 40px); +} + +.widget .dropdown-item { + padding: 0.5rem 1rem; +} + +.widget .progress { + height: 7px; +} + +.widget .dropdown-item.active, +.widget .dropdown-item:active { + color: inherit; +} + +.widget .dropdown-item:not(:nth-of-type(odd)):active { + background-color: inherit; +} diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/wwwroot/images/Argo-C.png b/Aurora.Admin/BootstrapBlazorApp.Shared/wwwroot/images/Argo-C.png new file mode 100644 index 0000000000000000000000000000000000000000..47eb84692409432211ddd3ec543554b5d61cf51c Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.Shared/wwwroot/images/Argo-C.png differ diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/wwwroot/images/Argo.png b/Aurora.Admin/BootstrapBlazorApp.Shared/wwwroot/images/Argo.png new file mode 100644 index 0000000000000000000000000000000000000000..ba51e0a55a57cb10073b5ac5d70634ed0954a59c Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.Shared/wwwroot/images/Argo.png differ diff --git a/Aurora.Admin/BootstrapBlazorApp.Shared/wwwroot/images/brand.png b/Aurora.Admin/BootstrapBlazorApp.Shared/wwwroot/images/brand.png new file mode 100644 index 0000000000000000000000000000000000000000..05a4ed7ff621451c62c2c09a17d6ce0fee48c911 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.Shared/wwwroot/images/brand.png differ diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/BootstrapBlazorApp.WebAssembly.csproj b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/BootstrapBlazorApp.WebAssembly.csproj new file mode 100644 index 0000000000000000000000000000000000000000..3b8596fa20398c835cf479dff05266e0873d2208 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/BootstrapBlazorApp.WebAssembly.csproj @@ -0,0 +1,22 @@ + + + + net5.0 + service-worker-assets.js + + + + + + + + + + + + + + + + + diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/Program.cs b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..d63eefa14c3c90937a7a2924674d2e055c835712 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/Program.cs @@ -0,0 +1,42 @@ +using BootstrapBlazorApp.Shared; +using BootstrapBlazorApp.Shared.Data; +using Microsoft.AspNetCore.Components.WebAssembly.Hosting; +using Microsoft.Extensions.DependencyInjection; +using System; +using System.Net.Http; +using System.Threading.Tasks; + +namespace BootstrapBlazorApp.WebAssembly +{ + /// + /// + /// + public class Program + { + /// + /// + /// + /// + /// + public static async Task Main(string[] args) + { + var builder = WebAssemblyHostBuilder.CreateDefault(args); + + builder.RootComponents.Add("app"); + + builder.Services.AddTransient(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); + + // 增加 BootstrapBlazor 组件 + builder.Services.AddBootstrapBlazor(); + + builder.Services.AddSingleton(); + + // 增加 Table 数据服务操作类 + builder.Services.AddTableDemoDataService(); + + var host = builder.Build(); + + await host.RunAsync(); + } + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/Properties/launchSettings.json b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/Properties/launchSettings.json new file mode 100644 index 0000000000000000000000000000000000000000..a21f555dcce7c14e82d5d10c9b7ea476f611ca2b --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/Properties/launchSettings.json @@ -0,0 +1,29 @@ +{ + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:50855", + "sslPort": 0 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "BootstrapBlazor.WebAssembly.ClientHost": { + "commandName": "Project", + "launchBrowser": true, + "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", + "applicationUrl": "http://localhost:5000", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/_Imports.razor b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/_Imports.razor new file mode 100644 index 0000000000000000000000000000000000000000..16632af5c9cbb07752840f3495bfd1fe8008802c --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/_Imports.razor @@ -0,0 +1,12 @@ +@using BootstrapBlazor.Components +@using BootstrapBlazorApp.WebAssembly +@using BootstrapBlazorApp.Shared.Shared +@using Microsoft.AspNetCore.Components.Forms +@using Microsoft.AspNetCore.Components.Routing +@using Microsoft.AspNetCore.Components.Web +@using Microsoft.AspNetCore.Components.WebAssembly.Http +@using Microsoft.JSInterop +@using System.ComponentModel +@using System.ComponentModel.DataAnnotations +@using System.Net.Http +@using System.Net.Http.Json diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/favicon.ico b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..eb3bb5901cdde8ad86dcd3f7c20e88a08063bdd4 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/favicon.ico differ diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/favicon.png b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..05a4ed7ff621451c62c2c09a17d6ce0fee48c911 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/favicon.png differ diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/icon-512.png b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/icon-512.png new file mode 100644 index 0000000000000000000000000000000000000000..f49cb0f13853ffc1fc4a0784521c86cfb725f274 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/icon-512.png differ diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/index.html b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/index.html new file mode 100644 index 0000000000000000000000000000000000000000..9bf315ebf20747a2cd5ea82e938bd75c72554393 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/index.html @@ -0,0 +1,61 @@ + + + + + + Bootstrap Blazor Wasm App + + + + + + + + + + + + + + + + + +
+ +
+ + 精彩即将呈现 +
+
+
+
+
+ +
+ + An error has occurred. This application may no longer respond until reloaded. + + + An unhandled exception has occurred. See browser dev tools for details. + + Reload + +
+ + + + + + + + diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/js/common.js b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/js/common.js new file mode 100644 index 0000000000000000000000000000000000000000..02e57ef5979805dd38bde0c794473f15db5abd9d --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/js/common.js @@ -0,0 +1,15 @@ +(function ($) { + $.extend({ + loading: function () { + var $loader = $("#loading"); + if ($loader.length > 0) { + $loader.addClass("is-done"); + var handler = window.setTimeout(function () { + window.clearTimeout(handler); + $loader.remove(); + $('body').removeClass('overflow-hidden'); + }, 300); + } + }, + }); +})(jQuery); diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/css/font-awesome.min.css b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/css/font-awesome.min.css new file mode 100644 index 0000000000000000000000000000000000000000..540440ce89f2a408aa699b65100e18f15e0f09ca --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/css/font-awesome.min.css @@ -0,0 +1,4 @@ +/*! + * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.7.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto} diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/FontAwesome.otf b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/FontAwesome.otf new file mode 100644 index 0000000000000000000000000000000000000000..401ec0f36e4f73b8efa40bd6f604fe80d286db70 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/FontAwesome.otf differ diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.eot b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.eot new file mode 100644 index 0000000000000000000000000000000000000000..e9f60ca953f93e35eab4108bd414bc02ddcf3928 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.eot differ diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.svg b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.svg new file mode 100644 index 0000000000000000000000000000000000000000..855c845e538b65548118279537a04eab2ec6ef0d --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.svg @@ -0,0 +1,2671 @@ + + + + +Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 + By ,,, +Copyright Dave Gandy 2016. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.ttf b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.ttf new file mode 100644 index 0000000000000000000000000000000000000000..35acda2fa1196aad98c2adf4378a7611dd713aa3 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.ttf differ diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.woff b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.woff new file mode 100644 index 0000000000000000000000000000000000000000..400014a4b06eee3d0c0d54402a47ab2601b2862b Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.woff differ diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.woff2 b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..4d13fc60404b91e398a37200c4a77b645cfd9586 Binary files /dev/null and b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/libs/font-awesome/fonts/fontawesome-webfont.woff2 differ diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/manifest.json b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..6ca0578b970a49bd2b991d688e671efcddfa4b06 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/manifest.json @@ -0,0 +1,15 @@ +{ + "name": "Bootstrap-Blazor", + "short_name": "Bootstrap-Blazor", + "start_url": "./", + "display": "standalone", + "background_color": "#ffffff", + "theme_color": "#03173d", + "icons": [ + { + "src": "icon-512.png", + "type": "image/png", + "sizes": "512x512" + } + ] +} diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/service-worker-register.js b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/service-worker-register.js new file mode 100644 index 0000000000000000000000000000000000000000..c34f7932ccc6423b28dcdb214d8247ca2f8afb41 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/service-worker-register.js @@ -0,0 +1,65 @@ +const serviceWorkerFileName = 'service-worker.js'; +const swInstalledEvent = 'installed'; +const staticCachePrefix = 'blazor-cache-v'; +const updateAlertMessage = 'Update available. Reload the page when convenient.'; +const blazorAssembly = 'BootstrapBlazor.Shared'; +const blazorInstallMethod = 'PWAInstallable'; + +window.updateAvailable = new Promise(function (resolve, reject) { + if ('serviceWorker' in navigator) { + navigator.serviceWorker.register(serviceWorkerFileName) + .then(function (registration) { + console.log('Registration successful, scope is:', registration.scope); + registration.onupdatefound = () => { + const installingWorker = registration.installing; + installingWorker.onstatechange = () => { + switch (installingWorker.state) { + case swInstalledEvent: + if (navigator.serviceWorker.controller) { + resolve(true); + } else { + resolve(false); + } + break; + default: + } + }; + }; + }) + .catch(error => + console.log('Service worker registration failed, error:', error)); + } +}); + +window['updateAvailable'] + .then(isAvailable => { + if (isAvailable) { + alert(updateAlertMessage); + } + }); + +function showAddToHomeScreen() { + DotNet.invokeMethodAsync(blazorAssembly, blazorInstallMethod) + .then(function () { }, function (er) { setTimeout(showAddToHomeScreen, 1000); }); +} + +window.BlazorPWA = { + installPWA: function () { + if (window.PWADeferredPrompt) { + window.PWADeferredPrompt.prompt(); + window.PWADeferredPrompt.userChoice + .then(function (choiceResult) { + window.PWADeferredPrompt = null; + }); + } + } +}; + +window.addEventListener('beforeinstallprompt', function (e) { + // Prevent Chrome 67 and earlier from automatically showing the prompt + e.preventDefault(); + // Stash the event so it can be triggered later. + window.PWADeferredPrompt = e; + + showAddToHomeScreen(); +}); \ No newline at end of file diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/service-worker.js b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/service-worker.js new file mode 100644 index 0000000000000000000000000000000000000000..fe614daee090c3308424ce6733afdeb094840740 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/service-worker.js @@ -0,0 +1,4 @@ +// In development, always fetch from the network and do not enable offline support. +// This is because caching would make development more difficult (changes would not +// be reflected on the first load after each change). +self.addEventListener('fetch', () => { }); diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/service-worker.published.js b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/service-worker.published.js new file mode 100644 index 0000000000000000000000000000000000000000..15ffb07bb27fef8194549873b6b1523717462526 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/service-worker.published.js @@ -0,0 +1,48 @@ +// Caution! Be sure you understand the caveats before publishing an application with +// offline support. See https://aka.ms/blazor-offline-considerations + +self.importScripts('./service-worker-assets.js'); +self.addEventListener('install', event => event.waitUntil(onInstall(event))); +self.addEventListener('activate', event => event.waitUntil(onActivate(event))); +self.addEventListener('fetch', event => event.respondWith(onFetch(event))); + +const cacheNamePrefix = 'offline-cache-'; +const cacheName = `${cacheNamePrefix}${self.assetsManifest.version}`; +const offlineAssetsInclude = [ /\.dll$/, /\.pdb$/, /\.wasm/, /\.html/, /\.js$/, /\.json$/, /\.css$/, /\.woff$/, /\.png$/, /\.jpe?g$/, /\.gif$/, /\.ico$/ ]; +const offlineAssetsExclude = [ /^service-worker\.js$/ ]; + +async function onInstall(event) { + console.info('Service worker: Install'); + + // Fetch and cache all matching items from the assets manifest + const assetsRequests = self.assetsManifest.assets + .filter(asset => offlineAssetsInclude.some(pattern => pattern.test(asset.url))) + .filter(asset => !offlineAssetsExclude.some(pattern => pattern.test(asset.url))) + .map(asset => new Request(asset.url, { integrity: asset.hash })); + await caches.open(cacheName).then(cache => cache.addAll(assetsRequests)); +} + +async function onActivate(event) { + console.info('Service worker: Activate'); + + // Delete unused caches + const cacheKeys = await caches.keys(); + await Promise.all(cacheKeys + .filter(key => key.startsWith(cacheNamePrefix) && key !== cacheName) + .map(key => caches.delete(key))); +} + +async function onFetch(event) { + let cachedResponse = null; + if (event.request.method === 'GET') { + // For all navigation requests, try to serve index.html from cache + // If you need some URLs to be server-rendered, edit the following check to exclude those URLs + const shouldServeIndexHtml = event.request.mode === 'navigate'; + + const request = shouldServeIndexHtml ? 'index.html' : event.request; + const cache = await caches.open(cacheName); + cachedResponse = await cache.match(request); + } + + return cachedResponse || fetch(event.request); +} diff --git a/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/style/loading.css b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/style/loading.css new file mode 100644 index 0000000000000000000000000000000000000000..f8e112ce60c799a7a62ad28e64787ad2ff02c08e --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.WebAssembly/wwwroot/style/loading.css @@ -0,0 +1,397 @@ +.loader { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #161B29; + transition: opacity .5s linear; + z-index: 2050; + display: flex; + flex-flow: column; +} + + .loader.is-done { + opacity: 0; + } + + .loader .logo { + width: 200px; + height: 200px; + position: relative; + margin: 0 auto; + } + +@keyframes logo { + 0%, 100% { + box-shadow: 1px 1px 25px 10px rgba(146, 148, 248, 0.4); + } + + 50% { + box-shadow: none; + } +} + +.loader .intro { + width: 250px; + color: #fff; + font-size: 1.5rem; + text-align: center; + margin: 3rem auto; + display: inline-flex; + justify-content: center; + align-items: center; + padding: 0.5rem 1rem; + position: relative; + overflow: hidden; + border: 1px solid rgb(146, 148, 248); + animation: intro 3s linear infinite +} + +@keyframes intro { + 0%, 100% { + box-shadow: 0px 0px 25px 10px rgba(146, 148, 248, 0.4); + } + + 40%, 60% { + box-shadow: 0px 0px 25px 0px rgba(146, 148, 248, 0.4); + } +} + +.loader .intro:before { + content: ""; + position: absolute; + top: 0; + left: -100%; + width: 100%; + height: 100%; + background: linear-gradient( 120deg, transparent, rgba(146, 148, 248, 0.4), transparent ); + animation: flash 2.5s linear infinite; +} + +@keyframes flash { + 0%, 100% { + } + + 10%, 90% { + left: 100%; + } +} + +.loader .intro img { + border-radius: 3px; + width: 40px; + margin-right: 1rem; +} + +.loader .intro span { + color: #fff; + animation: title 3s linear infinite; +} + +@keyframes title { + 0%, 100% { + color: #fff; + } + + 60% { + color: #666; + } +} + +.loader .bar { + width: 50%; + height: 4px; + border-radius: 2px; + margin: auto; + background: #E645D0; +} + + .loader .bar .progress { + width: 0%; + height: 4px; + margin: auto; + background: #17E1E6; + } + +.loader .logo { + animation: logo 5s linear infinite; + -moz-animation: logo 5s linear infinite; + /* Firefox */ + -webkit-animation: logo 5s linear infinite; + /* Safari and Chrome */ + -o-animation: logo 5s linear infinite; + /* Opera */ +} + +@keyframes logo { + from { + transform: rotate(0deg); + } + + to { + transform: rotate(-360deg); + } +} + +.loader .progress { + animation: progress 12s linear; + -moz-animation: progress 12s linear; + /* Firefox */ + -webkit-animation: progress 12s linear; + /* Safari and Chrome */ + -o-animation: progress 12s linear; + /* Opera */ + animation: progress 12s linear infinite; +} + +@keyframes progress { + 0%, 100% { + width: 0%; + background-color: #17e1e6; + } + + 50% { + width: 100%; + background-color: #28a745; + } +} + +.loader .common { + height: 5vw; + max-height: 100%; + overflow: auto; + width: 2vw; + margin: auto; + max-width: 100%; + position: absolute; + border-radius: 0vw 10vw 0vw 10vw; + box-shadow: inset 0vw 0vw 0vw .1vw #E645D0, 0vw 0vw 1.5vw 0vw #E645D0; +} + +.loader .one { + transform: rotate(45deg); + left: 0; + right: 0; + top: 0; + bottom: 7.5vw; +} + +.loader .two { + transform: rotate(90deg); + left: 5.5vw; + right: 0; + top: 0; + bottom: 5.5vw; +} + +.loader .three { + transform: rotate(135deg); + left: 7.5vw; + right: 0; + top: 0; + bottom: 0; +} + +.loader .four { + transform: rotate(180deg); + left: 5.5vw; + right: 0; + top: 5.5vw; + bottom: 0; +} + +.loader .five { + transform: rotate(225deg); + left: 0; + right: 0; + top: 7.5vw; + bottom: 0; +} + +.loader .six { + transform: rotate(270deg); + left: 0; + right: 5.5vw; + top: 5.5vw; + bottom: 0; +} + +.loader .seven { + transform: rotate(315deg); + left: 0; + right: 7.5vw; + top: 0; + bottom: 0; +} + +.loader .eight { + transform: rotate(360deg); + left: 0; + right: 5.5vw; + top: 0; + bottom: 5.5vw; +} + +.loader .one { + animation: one 1s ease infinite; + -moz-animation: one 1s ease infinite; + /* Firefox */ + -webkit-animation: one 1s ease infinite; + /* Safari and Chrome */ + -o-animation: one 1s ease infinite; + /* Opera */ +} + +@keyframes one { + 0%, 100% { + } + + 50% { + box-shadow: inset 0vw 0vw 0vw .1vw #17E1E6, 0vw 0vw 1.5vw 0vw #17E1E6; + } +} + +.loader .two { + animation: two 1s .125s ease infinite; + -moz-animation: two 1s .125s ease infinite; + /* Firefox */ + -webkit-animation: two 1s .125s ease infinite; + /* Safari and Chrome */ + -o-animation: two 1s .125s ease infinite; + /* Opera */ +} + +@keyframes two { + 0%, 100% { + } + + 50% { + box-shadow: inset 0vw 0vw 0vw .1vw #17E1E6, 0vw 0vw 1.5vw 0vw #17E1E6; + } +} + +.loader .three { + animation: three 1s .25s ease infinite; + -moz-animation: three 1s .25s ease infinite; + /* Firefox */ + -webkit-animation: three 1s .25s ease infinite; + /* Safari and Chrome */ + -o-animation: three 1s .25s ease infinite; + /* Opera */ +} + +@keyframes three { + 0%, 100% { + } + + 50% { + background:; + box-shadow: inset 0vw 0vw 0vw .1vw #17E1E6, 0vw 0vw 1.5vw 0vw #17E1E6; + } +} + +.loader .four { + animation: four 1s .375s ease infinite; + -moz-animation: four 1s .375s ease infinite; + /* Firefox */ + -webkit-animation: four 1s .375s ease infinite; + /* Safari and Chrome */ + -o-animation: four 1s .375s ease infinite; + /* Opera */ +} + +@keyframes four { + 0%, 100% { + } + + 50% { + box-shadow: inset 0vw 0vw 0vw .1vw #17E1E6, 0vw 0vw 1.5vw 0vw #17E1E6; + } +} + +.loader .five { + animation: five 1s .5s ease infinite; + -moz-animation: five 1s .5s ease infinite; + /* Firefox */ + -webkit-animation: five 1s .5s ease infinite; + /* Safari and Chrome */ + -o-animation: five 1s .5s ease infinite; + /* Opera */ +} + +@keyframes five { + 0%, 100% { + } + + 50% { + box-shadow: inset 0vw 0vw 0vw .1vw #17E1E6, 0vw 0vw 1.5vw 0vw #17E1E6; + } +} + +.loader .six { + animation: six 1s .625s ease infinite; + -moz-animation: six 1s .625s ease infinite; + /* Firefox */ + -webkit-animation: six 1s .625s ease infinite; + /* Safari and Chrome */ + -o-animation: six 1s .625s ease infinite; + /* Opera */ +} + +@keyframes six { + 0%, 100% { + } + + 50% { + box-shadow: inset 0vw 0vw 0vw .1vw #17E1E6, 0vw 0vw 1.5vw 0vw #17E1E6; + } +} + +.loader .seven { + animation: seven 1s .750s ease infinite; + -moz-animation: seven 1s .750s ease infinite; + /* Firefox */ + -webkit-animation: seven 1s .750s ease infinite; + /* Safari and Chrome */ + -o-animation: seven 1s .750s ease infinite; + /* Opera */ +} + +@keyframes seven { + 0%, 100% { + } + + 50% { + box-shadow: inset 0vw 0vw 0vw .1vw #17E1E6, 0vw 0vw 1.5vw 0vw #17E1E6; + } +} + +.loader .eight { + animation: eight 1s .875s ease infinite; + -moz-animation: eight 1s .875s ease infinite; + /* Firefox */ + -webkit-animation: eight 1s .875s ease infinite; + /* Safari and Chrome */ + -o-animation: eight 1s .875s ease infinite; + /* Opera */ +} + +@keyframes eight { + 0%, 100% { + } + + 50% { + box-shadow: inset 0vw 0vw 0vw .1vw #17E1E6, 0vw 0vw 1.5vw 0vw #17E1E6; + } +} + +@media (min-width: 768px) { + .loader { + padding-top: 8rem; + } + + .loader .intro { + margin-top: 6rem; + } +} diff --git a/Aurora.Admin/BootstrapBlazorApp.sln b/Aurora.Admin/BootstrapBlazorApp.sln new file mode 100644 index 0000000000000000000000000000000000000000..819ae08db5812cf1f2dca8981bbf053057afdf58 --- /dev/null +++ b/Aurora.Admin/BootstrapBlazorApp.sln @@ -0,0 +1,37 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30621.155 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BootstrapBlazorApp.Server", "BootstrapBlazorApp.Server\BootstrapBlazorApp.Server.csproj", "{DDC07B5C-7455-46A6-ADCD-FFF9023DE976}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BootstrapBlazorApp.WebAssembly", "BootstrapBlazorApp.WebAssembly\BootstrapBlazorApp.WebAssembly.csproj", "{8F9288F6-E444-4B9F-8B8A-7C099980EE4D}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BootstrapBlazorApp.Shared", "BootstrapBlazorApp.Shared\BootstrapBlazorApp.Shared.csproj", "{AB04595F-4692-4CA9-9D18-3F4C640AC028}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DDC07B5C-7455-46A6-ADCD-FFF9023DE976}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DDC07B5C-7455-46A6-ADCD-FFF9023DE976}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DDC07B5C-7455-46A6-ADCD-FFF9023DE976}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DDC07B5C-7455-46A6-ADCD-FFF9023DE976}.Release|Any CPU.Build.0 = Release|Any CPU + {8F9288F6-E444-4B9F-8B8A-7C099980EE4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8F9288F6-E444-4B9F-8B8A-7C099980EE4D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8F9288F6-E444-4B9F-8B8A-7C099980EE4D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8F9288F6-E444-4B9F-8B8A-7C099980EE4D}.Release|Any CPU.Build.0 = Release|Any CPU + {AB04595F-4692-4CA9-9D18-3F4C640AC028}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AB04595F-4692-4CA9-9D18-3F4C640AC028}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AB04595F-4692-4CA9-9D18-3F4C640AC028}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AB04595F-4692-4CA9-9D18-3F4C640AC028}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {BFC48E48-51AB-48D3-8242-DC4823B978E4} + EndGlobalSection +EndGlobal diff --git a/Aurora.AdminHost/Aurora.AdminHost.csproj b/Aurora.AdminHost/Aurora.AdminHost.csproj index aa1123153cef38037a62c1a918bc40f830739ac1..d9e6133a91598dcf2f2dd1aa0b5f4bed9a0ad4ee 100644 --- a/Aurora.AdminHost/Aurora.AdminHost.csproj +++ b/Aurora.AdminHost/Aurora.AdminHost.csproj @@ -5,6 +5,7 @@ + diff --git a/Aurora.AdminHost/Pages/Index.razor b/Aurora.AdminHost/Pages/Index.razor index e54d914390e1d84037c618ed12048b7915a8beeb..fc3c0e76c40615bf5ae2d9a3be791c7c01149635 100644 --- a/Aurora.AdminHost/Pages/Index.razor +++ b/Aurora.AdminHost/Pages/Index.razor @@ -1,7 +1,4 @@ @page "/" -

Hello, world!

- -Welcome to your new app. - - +

Dashboard!

+ diff --git a/Aurora.AdminHost/Shared/NavMenu.razor b/Aurora.AdminHost/Shared/NavMenu.razor index 75a42c450e3cbd5119939ef2dc5f0284ce57e476..da311d26dd985e58c2fb589f679743ca5ada2010 100644 --- a/Aurora.AdminHost/Shared/NavMenu.razor +++ b/Aurora.AdminHost/Shared/NavMenu.razor @@ -9,7 +9,7 @@