File tree Expand file tree Collapse file tree 18 files changed +219
-21
lines changed Expand file tree Collapse file tree 18 files changed +219
-21
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ module.exports = [
39
39
choices : [
40
40
{
41
41
name : 'Lint on save' ,
42
- value : 'save'
42
+ value : 'save' ,
43
+ checked : true
43
44
} ,
44
45
{
45
46
name : 'Lint and fix on commit' + ( hasGit ( ) ? '' : chalk . red ( ' (requires Git)' ) ) ,
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ module.exports = [
8
8
{
9
9
name : `classComponent` ,
10
10
type : `confirm` ,
11
- message : `Use class-style component syntax?`
11
+ message : `Use class-style component syntax?` ,
12
+ default : true
12
13
} ,
13
14
{
14
15
name : `useTsWithBabel` ,
@@ -28,7 +29,8 @@ module.exports = [
28
29
choices : [
29
30
{
30
31
name : 'Lint on save' ,
31
- value : 'save'
32
+ value : 'save' ,
33
+ checked : true
32
34
} ,
33
35
{
34
36
name : 'Lint and fix on commit' + ( hasGit ( ) ? '' : chalk . red ( ' (requires Git)' ) ) ,
Original file line number Diff line number Diff line change @@ -134,8 +134,8 @@ module.exports = class Service {
134
134
? builtInPlugins . concat ( inlinePlugins )
135
135
: inlinePlugins
136
136
} else {
137
- const projectPlugins = Object . keys ( this . pkg . dependencies || { } )
138
- . concat ( Object . keys ( this . pkg . devDependencies || { } ) )
137
+ const projectPlugins = Object . keys ( this . pkg . devDependencies || { } )
138
+ . concat ( Object . keys ( this . pkg . dependencies || { } ) )
139
139
. filter ( isPlugin )
140
140
. map ( idToPlugin )
141
141
return builtInPlugins . concat ( projectPlugins )
Original file line number Diff line number Diff line change @@ -6,5 +6,8 @@ module.exports = {
6
6
] ,
7
7
globals : {
8
8
ClientAddonApi : false
9
- }
9
+ } ,
10
+ plugins : [
11
+ 'graphql'
12
+ ]
10
13
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"components" : {
3
+ "connection-status" : {
4
+ "disconnected" : " Disconnected from UI server" ,
5
+ "connected" : " Connected!"
6
+ },
3
7
"file-diff" : {
4
8
"binary" : " Binary file not shown" ,
5
9
"actions" : {
Original file line number Diff line number Diff line change 16
16
"test" : " yarn run build && cd ../cli-ui-addon-webpack && yarn run build && cd ../cli-ui && yarn run test:run"
17
17
},
18
18
"dependencies" : {
19
+ "@vue/cli-shared-utils" : " ^3.0.0-beta.12" ,
20
+ "chalk" : " ^2.4.1" ,
19
21
"clone" : " ^2.1.1" ,
20
22
"deepmerge" : " ^2.1.0" ,
23
+ "execa" : " ^0.10.0" ,
21
24
"express-history-api-fallback" : " ^2.2.1" ,
22
25
"fs-extra" : " ^6.0.0" ,
26
+ "globby" : " ^8.0.1" ,
23
27
"graphql" : " ^0.13.0" ,
24
28
"graphql-tag" : " ^2.9.2" ,
25
29
"graphql-type-json" : " ^0.2.0" ,
30
+ "javascript-stringify" : " ^1.6.0" ,
26
31
"js-yaml" : " ^3.11.0" ,
27
32
"launch-editor" : " ^2.2.1" ,
28
33
"lodash.merge" : " ^4.6.1" ,
29
34
"lowdb" : " ^1.0.0" ,
30
35
"lru-cache" : " ^4.1.2" ,
36
+ "node-ipc" : " ^9.1.1" ,
31
37
"node-notifier" : " ^5.2.1" ,
38
+ "portfinder" : " ^1.0.13" ,
32
39
"semver" : " ^5.5.0" ,
33
40
"shortid" : " ^2.2.8" ,
34
41
"terminate" : " ^2.1.0" ,
35
- "vue-cli-plugin-apollo" : " ^0.11 .0" ,
42
+ "vue-cli-plugin-apollo" : " ^0.13 .0" ,
36
43
"watch" : " ^1.0.2"
37
44
},
38
45
"devDependencies" : {
45
52
"ansi_up" : " ^2.0.2" ,
46
53
"cross-env" : " ^5.1.5" ,
47
54
"eslint" : " ^4.16.0" ,
55
+ "eslint-plugin-graphql" : " ^2.1.1" ,
48
56
"file-icons-js" : " ^1.0.3" ,
49
57
"lint-staged" : " ^6.0.0" ,
50
58
"start-server-and-test" : " ^1.4.1" ,
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div id =" app" class =" app" >
3
+ <ConnectionStatus v-if =" ready" />
3
4
<div v-if =" ready" class =" content" >
4
5
<router-view />
5
6
</div >
@@ -39,8 +40,11 @@ export default {
39
40
.app
40
41
display grid
41
42
grid-template-columns 1 fr
42
- grid-template-rows 1 fr auto
43
- grid-template-areas "content" "status"
43
+ grid-template-rows auto 1 fr auto
44
+ grid-template-areas "connection" "content" "status"
45
+
46
+ .connection-status
47
+ grid-area connection
44
48
45
49
.content
46
50
grid-area content
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <ApolloQuery
3
+ :query =" require('../graphql/connected.gql')"
4
+ class =" connection-status"
5
+ >
6
+ <template slot-scope="{ result: { data: { connected } } }">
7
+ <transition duration =" 1000" >
8
+ <div
9
+ v-if =" !connected"
10
+ class =" banner"
11
+ >
12
+ <div class =" content disconnected" >
13
+ <VueIcon icon =" cloud_off" class =" medium" />
14
+ <span >{{ $t('components.connection-status.disconnected') }}</span >
15
+ </div >
16
+ <div class =" content connected" >
17
+ <VueIcon icon =" wifi" class =" medium" />
18
+ <span >{{ $t('components.connection-status.connected') }}</span >
19
+ </div >
20
+ </div >
21
+ </transition >
22
+ </template >
23
+ </ApolloQuery >
24
+ </template >
25
+
26
+ <style lang="stylus" scoped>
27
+ @import "~@/style/imports"
28
+
29
+ .content
30
+ display flex
31
+ align-items center
32
+ justify-content center
33
+ position absolute
34
+ top 0
35
+ left 0
36
+ width 100%
37
+ height 100%
38
+
39
+ .banner
40
+ background $vue-ui-color-danger
41
+ color $md-white
42
+ height 45px
43
+ position relative
44
+ .vue-ui-icon
45
+ margin-right $padding-item
46
+ >>> svg
47
+ fill @color
48
+
49
+ & .v-enter-active ,
50
+ & .v-leave-active
51
+ overflow hidden
52
+ & .v-enter-active
53
+ transition height .15s ease-out
54
+ .vue-ui-icon
55
+ animation icon .5s
56
+ & .v-leave-active
57
+ transition height .15s .85s ease-out , background .15s
58
+ .disconnected
59
+ animation slide-to-bottom .15s forwards
60
+ .connected
61
+ animation slide-from-top .15s
62
+ & :not (.v-leave-active )
63
+ .connected
64
+ display none
65
+
66
+ & .v-enter ,
67
+ & .v-leave-to
68
+ height 0
69
+ & .v-leave-to
70
+ background $vue-ui-color-success
71
+
72
+ @keyframes icon
73
+ 0%
74
+ transform scale (.8 )
75
+ opacity 0
76
+ 30%
77
+ transform scale (.8 )
78
+ opacity 1
79
+ 50%
80
+ transform scale (1.3 )
81
+ 100%
82
+ transform scale (1 )
83
+
84
+ @keyframes slide-to-bottom
85
+ 0%
86
+ transform none
87
+ opacity 1
88
+ 100%
89
+ transform translateY (45px )
90
+ opacity 0
91
+
92
+ @keyframes slide-from-top
93
+ 0%
94
+ transform translateY (- 45px )
95
+ opacity 0
96
+ 100%
97
+ transform none
98
+ opacity 1
99
+ </style >
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ async function getDefaultValue (prompt) {
218
218
}
219
219
220
220
if ( prompt . type === 'checkbox' ) {
221
- const choices = await getChoices ( prompt )
221
+ const choices = prompt . raw . choices
222
222
if ( choices ) {
223
223
return choices . filter (
224
224
c => c . checked
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ // GraphQL directives here
3
+ }
You can’t perform that action at this time.
0 commit comments