File tree 6 files changed +18
-65
lines changed
6 files changed +18
-65
lines changed Original file line number Diff line number Diff line change 4
4
< meta charset ="utf-8 ">
5
5
< meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
6
< meta name ="viewport " content ="width=device-width,initial-scale=1.0 ">
7
+ <!-- REPLACE FOR LOCAL DEV -->
8
+ <!-- <meta name="schema" content="/api/v1/schema.json"> -->
9
+ < meta name ="schema " content ="__SCHEMA_PATH__ ">
7
10
< link rel ="stylesheet " href ="https://use.fontawesome.com/releases/v5.4.1/css/all.css " integrity ="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz " crossorigin ="anonymous ">
8
11
< title > vandal</ title >
9
12
</ head >
12
15
< strong > We're sorry but vandal doesn't work properly without JavaScript enabled. Please enable it to continue.</ strong >
13
16
</ noscript >
14
17
< div id ="app "> </ div >
18
+
19
+ < script >
20
+ if ( window . location . href . indexOf ( '#' ) === - 1 ) {
21
+ window . location . href = window . location . href + '/#/'
22
+ }
23
+ </ script >
24
+
15
25
<!-- built files will be auto injected -->
16
26
</ body >
17
- </ html >
27
+ </ html >
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ $list-group-bg: $darkCard;
108
108
109
109
body {
110
110
// height:100vh;
111
- background : url (' / assets/img/squares.png' );
111
+ background : url (' assets/img/squares.png' );
112
112
113
113
.left-rail {
114
114
flex-grow : 1 ;
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
2
import Router from 'vue-router'
3
3
import All from './views/All.vue'
4
- import Demo from './views/Demo.vue'
5
4
6
5
Vue . use ( Router )
7
6
8
7
export default new Router ( {
9
- mode : 'history' ,
10
- base : '/vandal' ,
8
+ base : '' ,
11
9
routes : [
12
10
{
13
11
path : '/' ,
14
12
name : 'vandal' ,
15
13
component : All
16
- } ,
17
- {
18
- path : '/demo' ,
19
- name : 'demo' ,
20
- component : Demo
21
14
}
22
15
]
23
- } )
16
+ } )
Original file line number Diff line number Diff line change @@ -162,7 +162,6 @@ export default Vue.extend({
162
162
}
163
163
},
164
164
created() {
165
- console .log (' all created' )
166
165
this .fetchSchema ()
167
166
let doneCreating = () => { this .creating = false }
168
167
setTimeout (doneCreating , 1000 )
@@ -192,7 +191,8 @@ export default Vue.extend({
192
191
headers .append (' pragma' , ' no-cache' )
193
192
headers .append (' cache-control' , ' no-cache' )
194
193
let init = { method: ' GET' , headers }
195
- let request = new Request (' /schema.json' )
194
+ let schemaPath = document .querySelector (" meta[name='schema']" ).getAttribute (" content" );
195
+ let request = new Request (schemaPath )
196
196
let schemaJson = await (await fetch (request )).json ()
197
197
this .schema = new Schema (schemaJson )
198
198
},
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ module.exports = {
3
3
devServer : {
4
4
proxy : process . env . PROXY
5
5
} ,
6
- baseUrl : '/vandal '
7
- }
6
+ baseUrl : ''
7
+ }
You can’t perform that action at this time.
0 commit comments