Skip to content

Commit 5d08312

Browse files
authored
Detached mode (#6)
* use min version of vue scripts * add self hosted files * add vuetify * replace roboto font
1 parent eac892f commit 5d08312

11 files changed

+63
-7
lines changed
108 KB
Binary file not shown.
318 KB
Binary file not shown.
15.5 KB
Binary file not shown.

static/scripts/axios.min.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/scripts/vue.min.js

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/scripts/vuetify.min.js

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/styles/material-icons.css

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* fallback */
2+
@font-face {
3+
font-family: 'Material Icons';
4+
font-style: normal;
5+
font-weight: 400;
6+
src: url('../fonts/MaterialIcons-Regular.woff2') format('woff2');
7+
}
8+
9+
10+
.material-icons {
11+
font-family: 'Material Icons';
12+
font-weight: normal;
13+
font-style: normal;
14+
font-size: 24px;
15+
line-height: 1;
16+
letter-spacing: normal;
17+
text-transform: none;
18+
display: inline-block;
19+
white-space: nowrap;
20+
word-wrap: normal;
21+
direction: ltr;
22+
-webkit-font-feature-settings: 'liga';
23+
-webkit-font-smoothing: antialiased;
24+
}

static/styles/materialdesignicons.css

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

static/styles/roboto.css

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* roboto-regular - latin */
2+
/* https://google-webfonts-helper.herokuapp.com/fonts/roboto?subsets=latin */
3+
@font-face {
4+
font-family: 'Roboto';
5+
font-style: normal;
6+
font-weight: 400;
7+
src: url('../fonts/roboto-v27-latin-500.woff2') format('woff2');
8+
}

static/styles/vuetify.min.css

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/index.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
<meta name="msapplication-TileImage" content="{{.WebExternalUrl}}/static/icons/ms-icon-144x144.png">
2525
<meta name="theme-color" content="#ffffff">
2626

27-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
28-
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
29-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css">
30-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css">
27+
<link rel="stylesheet" href="{{.WebExternalUrl}}/static/styles/roboto.css">
28+
<link rel="stylesheet" href="{{.WebExternalUrl}}/static/styles/material-icons.css">
29+
<link rel="stylesheet" href="{{.WebExternalUrl}}/static/styles/materialdesignicons.css">
30+
<link rel="stylesheet" href="{{.WebExternalUrl}}/static/styles/vuetify.min.css">
3131
</head>
3232
<body>
3333
<div id="app">
@@ -97,9 +97,9 @@
9797
</v-app>
9898
</div>
9999

100-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
101-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.js"></script>
102-
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
100+
<script src="{{.WebExternalUrl}}/static/scripts/vue.min.js"></script>
101+
<script src="{{.WebExternalUrl}}/static/scripts/vuetify.min.js"></script>
102+
<script src="{{.WebExternalUrl}}/static/scripts/axios.min.js"></script>
103103
<script src="{{.WebExternalUrl}}/static/ace/ace.js"></script>
104104
<script>
105105
const INITIAL_SECRET = "{{.InitialSecret}}"

0 commit comments

Comments
 (0)