-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): fix beta.12 feedback (#1386)
* fix(ui): npm/yarn installing only dependencies * fix(ui): add all dependencies to package.json * fix(Service): give priority to devDependencies plugins * feat(ui): connection status banner * fix(ui): don't display disconnected banner for initial app load * fix(ui): default value for prompt type=checkbox * feat: builtin prompts default values * fix(ui): circular dep
- Loading branch information
Showing
18 changed files
with
219 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,8 @@ module.exports = { | |
], | ||
globals: { | ||
ClientAddonApi: false | ||
} | ||
}, | ||
plugins: [ | ||
'graphql' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<template> | ||
<ApolloQuery | ||
:query="require('../graphql/connected.gql')" | ||
class="connection-status" | ||
> | ||
<template slot-scope="{ result: { data: { connected } } }"> | ||
<transition duration="1000"> | ||
<div | ||
v-if="!connected" | ||
class="banner" | ||
> | ||
<div class="content disconnected"> | ||
<VueIcon icon="cloud_off" class="medium"/> | ||
<span>{{ $t('components.connection-status.disconnected') }}</span> | ||
</div> | ||
<div class="content connected"> | ||
<VueIcon icon="wifi" class="medium"/> | ||
<span>{{ $t('components.connection-status.connected') }}</span> | ||
</div> | ||
</div> | ||
</transition> | ||
</template> | ||
</ApolloQuery> | ||
</template> | ||
|
||
<style lang="stylus" scoped> | ||
@import "~@/style/imports" | ||
.content | ||
display flex | ||
align-items center | ||
justify-content center | ||
position absolute | ||
top 0 | ||
left 0 | ||
width 100% | ||
height 100% | ||
.banner | ||
background $vue-ui-color-danger | ||
color $md-white | ||
height 45px | ||
position relative | ||
.vue-ui-icon | ||
margin-right $padding-item | ||
>>> svg | ||
fill @color | ||
&.v-enter-active, | ||
&.v-leave-active | ||
overflow hidden | ||
&.v-enter-active | ||
transition height .15s ease-out | ||
.vue-ui-icon | ||
animation icon .5s | ||
&.v-leave-active | ||
transition height .15s .85s ease-out, background .15s | ||
.disconnected | ||
animation slide-to-bottom .15s forwards | ||
.connected | ||
animation slide-from-top .15s | ||
&:not(.v-leave-active) | ||
.connected | ||
display none | ||
&.v-enter, | ||
&.v-leave-to | ||
height 0 | ||
&.v-leave-to | ||
background $vue-ui-color-success | ||
@keyframes icon | ||
0% | ||
transform scale(.8) | ||
opacity 0 | ||
30% | ||
transform scale(.8) | ||
opacity 1 | ||
50% | ||
transform scale(1.3) | ||
100% | ||
transform scale(1) | ||
@keyframes slide-to-bottom | ||
0% | ||
transform none | ||
opacity 1 | ||
100% | ||
transform translateY(45px) | ||
opacity 0 | ||
@keyframes slide-from-top | ||
0% | ||
transform translateY(-45px) | ||
opacity 0 | ||
100% | ||
transform none | ||
opacity 1 | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
// GraphQL directives here | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
query connected { | ||
connected @client | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mutation connectedSet ($value: Boolean!) { | ||
connectedSet (value: $value) @client | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default { | ||
connected: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export default { | ||
Mutation: { | ||
connectedSet: (root, { value }, { cache }) => { | ||
const data = { | ||
connected: value | ||
} | ||
cache.writeData({ data }) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.