Skip to content

Commit 4a1aebc

Browse files
committed
optimized changes
1 parent 137b219 commit 4a1aebc

File tree

560 files changed

+2969
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

560 files changed

+2969
-44
lines changed

Diff for: Skclusive.Blazor.Dashboard/Dashboard.Host.Browser/wwwroot/.nojekyll

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Skclusive-UI Docs</title>
6+
<script type="text/javascript">
7+
// Single Page Apps for GitHub Pages
8+
// https://github.com/rafrex/spa-github-pages
9+
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
10+
// ----------------------------------------------------------------------
11+
// This script takes the current url and converts the path and query
12+
// string into just a query string, and then redirects the browser
13+
// to the new url with only a query string and hash fragment,
14+
// e.g. http://www.foo.tld/one/two?a=b&c=d#qwe, becomes
15+
// http://www.foo.tld/?p=/one/two&q=a=b~and~c=d#qwe
16+
// Note: this 404.html file must be at least 512 bytes for it to work
17+
// with Internet Explorer (it is currently > 512 bytes)
18+
19+
// If you're creating a Project Pages site and NOT using a custom domain,
20+
// then set segmentCount to 1 (enterprise users may need to set it to > 1).
21+
// This way the code will only replace the route part of the path, and not
22+
// the real directory in which the app resides, for example:
23+
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
24+
// https://username.github.io/repo-name/?p=/one/two&q=a=b~and~c=d#qwe
25+
// Otherwise, leave segmentCount as 0.
26+
var segmentCount = 1;
27+
28+
var l = window.location;
29+
l.replace(
30+
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
31+
l.pathname.split('/').slice(0, 1 + segmentCount).join('/') + '/?p=/' +
32+
l.pathname.slice(1).split('/').slice(segmentCount).join('/').replace(/&/g, '~and~') +
33+
(l.search ? '&q=' + l.search.slice(1).replace(/&/g, '~and~') : '') +
34+
l.hash
35+
);
36+
37+
</script>
38+
</head>
39+
<body>
40+
</body>
41+
</html>
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

Diff for: Skclusive.Blazor.Dashboard/Dashboard.Host.Browser/wwwroot/decode.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

Diff for: Skclusive.Blazor.Dashboard/Dashboard.Host.Browser/wwwroot/index.html

+97-18
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,111 @@
33

44
<head>
55
<meta charset="utf-8" />
6-
<meta name="viewport" content="width=device-width" />
6+
<meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width" />
77
<title>Skclusive.Dashboard.Host.Browser</title>
88
<base href="/" />
9-
</head>
9+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
10+
<link href="manifest.json" rel="manifest" />
11+
<link rel="apple-touch-icon" sizes="512x512" href="android/android-launchericon-512-512.png" />
12+
<!-- Start Single Page Apps for GitHub Pages -->
13+
<script type="text/javascript">
14+
// Single Page Apps for GitHub Pages
15+
// https://github.com/rafrex/spa-github-pages
16+
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
17+
// ----------------------------------------------------------------------
18+
// This script checks to see if a redirect is present in the query string
19+
// and converts it back into the correct url and adds it to the
20+
// browser's history using window.history.replaceState(...),
21+
// which won't cause the browser to attempt to load the new url.
22+
// When the single page app is loaded further down in this file,
23+
// the correct url will be waiting in the browser's history for
24+
// the single page app to route accordingly.
25+
(function (l) {
26+
if (l.search) {
27+
var q = {};
28+
l.search.slice(1).split('&').forEach(function (v) {
29+
var a = v.split('=');
30+
q[a[0]] = a.slice(1).join('=').replace(/~and~/g, '&');
31+
});
32+
if (q.p !== undefined) {
33+
window.history.replaceState(null, null,
34+
l.pathname.slice(0, -1) + (q.p || '') +
35+
(q.q ? ('?' + q.q) : '') +
36+
l.hash
37+
);
38+
}
39+
}
40+
}(window.location))
41+
</script>
42+
<!-- End Single Page Apps for GitHub Pages -->
43+
<style>
44+
#blazor-error-ui {
45+
background: lightyellow;
46+
bottom: 0;
47+
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
48+
display: none;
49+
left: 0;
50+
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
51+
position: fixed;
52+
width: 100%;
53+
z-index: 1000;
54+
}
55+
56+
#blazor-error-ui .dismiss {
57+
cursor: pointer;
58+
position: absolute;
59+
right: 0.75rem;
60+
top: 0.5rem;
61+
}
62+
</style>
63+
</head>
1064

1165
<body>
1266
<div id="app">
1367
<!--Blazor:{"type":"webassembly","assembly":"Skclusive.Dashboard.App.View","typeName":"Skclusive.Dashboard.App.View.DashboardView","parameterDefinitions":"W10=","parameterValues":"W10="}-->
68+
<div style="height: 100vh; width: 100%; display: flex; justify-content: center;">
69+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin:auto;background:#fff;display:block;" width="200px" height="200px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">
70+
<circle cx="50" cy="50" r="31.5331" fill="none" stroke="#e90c59" stroke-width="2">
71+
<animate attributeName="r" repeatCount="indefinite" dur="1s" values="0;40" keyTimes="0;1" keySplines="0 0.2 0.8 1" calcMode="spline" begin="-0.5s"></animate>
72+
<animate attributeName="opacity" repeatCount="indefinite" dur="1s" values="1;0" keyTimes="0;1" keySplines="0.2 0 0.8 1" calcMode="spline" begin="-0.5s"></animate>
73+
</circle>
74+
<circle cx="50" cy="50" r="11.0409" fill="none" stroke="#46dff0" stroke-width="2">
75+
<animate attributeName="r" repeatCount="indefinite" dur="1s" values="0;40" keyTimes="0;1" keySplines="0 0.2 0.8 1" calcMode="spline"></animate>
76+
<animate attributeName="opacity" repeatCount="indefinite" dur="1s" values="1;0" keyTimes="0;1" keySplines="0.2 0 0.8 1" calcMode="spline"></animate>
77+
</circle>
78+
</svg>
79+
</div>
1480
</div>
1581

16-
<script src="_framework/blazor.webassembly.js"></script>
17-
18-
<!-- Reference the included moment.js javascript file. -->
19-
<!-- <script src="_content/ChartJs.Blazor/moment-with-locales.min.js" type="text/javascript" language="javascript"></script> -->
20-
21-
<!-- Reference the included ChartJs javascript file. -->
22-
<!-- <script src="_content/ChartJs.Blazor/Chart.min.js" type="text/javascript" language="javascript"></script> -->
23-
24-
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment-with-locales.min.js"></script>
25-
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"></script> -->
26-
27-
<!-- This is the glue between the C# code and the ChartJs charts -->
28-
<!-- <script src="_content/ChartJs.Blazor/ChartJsBlazorInterop.js" type="text/javascript" language="javascript"></script> -->
29-
30-
<!-- Some styling ChartJs charts -->
31-
<!-- <link rel="stylesheet" href="_content/ChartJs.Blazor/ChartJSBlazor.css" /> -->
82+
<div id="blazor-error-ui">
83+
An unhandled error has occurred.
84+
<a href="" class="reload">Reload</a>
85+
<a class="dismiss">🗙</a>
86+
</div>
87+
<script src="decode.js"></script>
88+
<script src="_framework/blazor.webassembly.js" autostart="false"></script>
89+
<script>
90+
Blazor.start({
91+
loadBootResource: function (type, name, defaultUri, integrity) {
92+
// For framework resources, use the precompressed .br files for faster downloads
93+
// This is needed only because GitHub pages doesn't natively support Brotli (or even gzip for .dll files)
94+
if (type !== 'dotnetjs' && location.hostname !== 'localhost') {
95+
return (async function () {
96+
const response = await fetch(defaultUri + '.br', { cache: 'no-cache' });
97+
if (!response.ok) {
98+
throw new Error(response.statusText);
99+
}
100+
const originalResponseBuffer = await response.arrayBuffer();
101+
const originalResponseArray = new Int8Array(originalResponseBuffer);
102+
const decompressedResponseArray = BrotliDecode(originalResponseArray);
103+
const contentType = type === 'dotnetwasm' ? 'application/wasm' : 'application/octet-stream';
104+
return new Response(decompressedResponseArray, { headers: { 'content-type': contentType } });
105+
})();
106+
}
107+
}
108+
});
109+
</script>
110+
<script>navigator.serviceWorker.register('service-worker.js');</script>
32111
</body>
33112

34113
</html>
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)