This repository was archived by the owner on Apr 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 12 files changed +80
-17
lines changed Expand file tree Collapse file tree 12 files changed +80
-17
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ var prodEnv = require('./prod.env')
3
3
4
4
module . exports = merge ( prodEnv , {
5
5
NODE_ENV : '"development"' ,
6
- CLIENT_ID : '" 116bed3e72c3aab96b76" ' ,
7
- CALLBACK_URL : '" http://localhost:8080/auth" '
6
+ CLIENT_ID : '116bed3e72c3aab96b76' ,
7
+ CALLBACK_URL : 'http://localhost:8080/auth'
8
8
} )
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ module.exports = {
27
27
autoOpenBrowser : true ,
28
28
assetsSubDirectory : 'static' ,
29
29
assetsPublicPath : '/' ,
30
+ // Development backend server
30
31
proxyTable : {
31
32
'/api' : {
32
33
target : 'http://localhost:5000' ,
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
NODE_ENV : '"production"' ,
3
- CLIENT_ID : '" be437b3a1e6ac9b93c05" ' ,
4
- CALLBACK_URL : '" https://vuegg.now.sh/auth" '
3
+ CLIENT_ID : 'be437b3a1e6ac9b93c05' ,
4
+ CALLBACK_URL : 'https://vuegg.now.sh/auth'
5
5
}
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ var devEnv = require('./dev.env')
3
3
4
4
module . exports = merge ( devEnv , {
5
5
NODE_ENV : '"testing"' ,
6
- CLIENT_ID : '"116bed3e72c3aab96b76" ' ,
7
- CALLBACK_URL : '" http://localhost:8080 /auth" '
6
+ CLIENT_ID : '5e8f72ec1e4a789d8632 ' ,
7
+ CALLBACK_URL : 'http://localhost:5000 /auth'
8
8
} )
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div id =" layout-container" class =" mdc-theme--background" >
3
3
<div id =" app" >
4
+ <mdc-linear-progress v-show =" loading" class =" linear-loader" accent indeterminate ></mdc-linear-progress >
4
5
<headegg :scroll0 =" notScrolled" ></headegg >
5
6
6
7
<drawegg ></drawegg >
9
10
<router-view ></router-view >
10
11
</main >
11
12
12
- <mdc-linear-progress v-show =" loading" class =" loader" accent indeterminate ></mdc-linear-progress >
13
13
<page-dialog ></page-dialog >
14
14
<block-loader ></block-loader >
15
15
<mdc-snackbar :dismisses-on-action =" false" />
@@ -73,13 +73,13 @@ export default {
73
73
height : 100% ;
74
74
}
75
75
76
- .loader {
76
+ .linear- loader {
77
77
top : 0 ;
78
78
left : 0 ;
79
- height : 2px ;
80
79
width : 100% ;
81
- position : absolute ;
82
80
z-index : 1001 ;
81
+ height : 2px !important ;
82
+ position : absolute !important ;
83
83
}
84
84
85
85
#app {
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" not-found" >
3
+ 404 - Not found
4
+ </div >
5
+ </template >
6
+
7
+
8
+ <script >
9
+ export default { name: ' not-found' }
10
+ </script >
11
+
12
+
13
+ <style scoped>
14
+ .not-found {
15
+ font-size : 47px ;
16
+ text-align : center ;
17
+ margin : 0 57px ;
18
+ width : 100% ;
19
+ height : 100% ;
20
+ }
21
+ </style >
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 Mainegg from '@/components/main'
4
+ import NotFound from '@/components/404'
4
5
5
6
Vue . use ( Router )
6
7
@@ -13,8 +14,10 @@ export default new Router({
13
14
component : Mainegg
14
15
} , {
15
16
path : '/auth' ,
16
- name : 'auth' ,
17
- component : Mainegg
17
+ redirect : { name : 'main' }
18
+ } , {
19
+ path : '*' ,
20
+ component : NotFound
18
21
}
19
22
]
20
23
} )
Original file line number Diff line number Diff line change 1
1
const inquirer = require ( 'inquirer' )
2
2
const shell = require ( 'shelljs' )
3
-
4
- require ( 'dotenv' ) . config ( )
3
+ const dotenv = require ( 'dotenv' )
5
4
6
5
const setupQuestions = [
7
6
{
@@ -11,13 +10,19 @@ const setupQuestions = [
11
10
choices : [
12
11
'client' ,
13
12
'server' ,
14
- 'start' ,
15
- 'vuegg'
13
+ new inquirer . Separator ( ) ,
14
+ 'vuegg:test '
16
15
]
17
16
}
18
17
]
19
18
20
19
inquirer . prompt ( setupQuestions ) . then ( answers => {
20
+ if ( answers . runScript === 'vuegg:test' ) {
21
+ dotenv . config ( { path : '.env.test' } )
22
+ } else {
23
+ dotenv . config ( { path : '.env.dev' } )
24
+ }
25
+
21
26
const execCommand = 'CLIENT_ID=' . concat ( process . env . CLIENT_ID )
22
27
. concat ( ' CLIENT_SECRET=' ) . concat ( process . env . CLIENT_SECRET )
23
28
. concat ( ' CALLBACK_URL=' ) . concat ( process . env . CALLBACK_URL )
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"oauth" : " node oauth-config.js" ,
8
8
"vuegg" : " npm run install:all && npm run build && npm run start" ,
9
+ "vuegg:test" : " npm run build && npm run start" ,
9
10
"install:all" : " npm run install:client && npm run install:server" ,
10
11
"install:client" : " cd client && npm install" ,
11
12
"install:server" : " cd server && npm install" ,
You can’t perform that action at this time.
0 commit comments