Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update blazor sample for .Net Core 3.0.100 release
- Loading branch information
1 parent
0632d23
commit 42a01ef
Showing
953 changed files
with
95,888 additions
and
95,892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bin | ||
obj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
<CascadingAuthenticationState> | ||
<Router AppAssembly="typeof(Startup).Assembly"> | ||
<NotFoundContent> | ||
<Router AppAssembly="@typeof(Program).Assembly"> | ||
<Found Context="routeData"> | ||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" /> | ||
</Found> | ||
<NotFound> | ||
<LayoutView Layout="@typeof(MainLayout)"> | ||
<p>Sorry, there's nothing at this address.</p> | ||
</NotFoundContent> | ||
</Router> | ||
</CascadingAuthenticationState> | ||
</LayoutView> | ||
</NotFound> | ||
</Router> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
@using System.Net.Http | ||
@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 BlazorWebViewerServer | ||
@using BlazorWebViewerServer.Shared |
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
wwwroot/css/open-iconic/font/css/open-iconic-bootstrap.min.css
100755 → 100644
Empty file.
Empty file.
Empty file.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 26 additions & 26 deletions
52
wwwroot/WebViewer/lib/core/.htaccess → wwwroot/lib/core/.htaccess
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
AddType image/vnd.microsoft.icon .cur | ||
AddType application/json .json | ||
AddType text/cache-manifest .appcache | ||
AddType application/octet-stream .mem | ||
AddType application/octet-stream .res | ||
AddType application/x-pnacl .pexe | ||
AddType application/octet-stream .nmf | ||
AddType application/wasm .wasm | ||
|
||
<IfModule mod_headers.c> | ||
<FilesMatch ".*\.(gz)\..*"> | ||
# Serve correct encoding type. | ||
# We make the assumption that gzip is always supported. | ||
Header set Content-Encoding gzip | ||
# Force proxies to cache gzipped & non-gzipped files separately. | ||
Header set Vary Accept-Encoding | ||
</FilesMatch> | ||
|
||
<FilesMatch ".*\.(br)\..*"> | ||
# Serve correct encoding type. | ||
# Note that we only serve the brotli file with Content-Encoding: br if the client told us it supports it. | ||
SetEnvIf Accept-Encoding ".*br.*" SUPPORT_BROTLI | ||
Header set Content-Encoding br env=SUPPORT_BROTLI | ||
# Force proxies to cache brotli encoded & non-brotli encoded files separately. | ||
Header set Vary Accept-Encoding | ||
</FilesMatch> | ||
AddType image/vnd.microsoft.icon .cur | ||
AddType application/json .json | ||
AddType text/cache-manifest .appcache | ||
AddType application/octet-stream .mem | ||
AddType application/octet-stream .res | ||
AddType application/x-pnacl .pexe | ||
AddType application/octet-stream .nmf | ||
AddType application/wasm .wasm | ||
|
||
<IfModule mod_headers.c> | ||
<FilesMatch ".*\.(gz)\..*"> | ||
# Serve correct encoding type. | ||
# We make the assumption that gzip is always supported. | ||
Header set Content-Encoding gzip | ||
# Force proxies to cache gzipped & non-gzipped files separately. | ||
Header set Vary Accept-Encoding | ||
</FilesMatch> | ||
|
||
<FilesMatch ".*\.(br)\..*"> | ||
# Serve correct encoding type. | ||
# Note that we only serve the brotli file with Content-Encoding: br if the client told us it supports it. | ||
SetEnvIf Accept-Encoding ".*br.*" SUPPORT_BROTLI | ||
Header set Content-Encoding br env=SUPPORT_BROTLI | ||
# Force proxies to cache brotli encoded & non-brotli encoded files separately. | ||
Header set Vary Accept-Encoding | ||
</FilesMatch> | ||
</IfModule> |
38 changes: 19 additions & 19 deletions
38
wwwroot/WebViewer/lib/core/CORSWorker.js → wwwroot/lib/core/CORSWorker.js
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
/* eslint-env worker */ | ||
function getWorkerParams(src) { | ||
var params = {}; | ||
var search = decodeURIComponent(src.slice(1)); | ||
var definitions = search.split('&'); | ||
definitions.forEach(function(val) { | ||
var parts = val.split('=', 2); | ||
params[parts[0]] = parts[1]; | ||
}); | ||
return params; | ||
} | ||
|
||
var params = getWorkerParams(self.location.hash); | ||
if (params.path) { | ||
self.workerBasePath = params.path; | ||
self.pdfWorkerPath = params.path + 'pdf/'; | ||
self.officeWorkerPath = params.path + 'office/'; | ||
} | ||
|
||
/* eslint-env worker */ | ||
function getWorkerParams(src) { | ||
var params = {}; | ||
var search = decodeURIComponent(src.slice(1)); | ||
var definitions = search.split('&'); | ||
definitions.forEach(function(val) { | ||
var parts = val.split('=', 2); | ||
params[parts[0]] = parts[1]; | ||
}); | ||
return params; | ||
} | ||
|
||
var params = getWorkerParams(self.location.hash); | ||
if (params.path) { | ||
self.workerBasePath = params.path; | ||
self.pdfWorkerPath = params.path + 'pdf/'; | ||
self.officeWorkerPath = params.path + 'office/'; | ||
} | ||
|
||
importScripts(params.file); |
Oops, something went wrong.