From 63b09844826fbdc4fff27c37d20cca5103595573 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Sat, 21 Apr 2018 23:01:17 +0200 Subject: [PATCH] feat(ui): ProjectNavMore + About view --- .../@vue/cli-ui/src/components/ProjectNav.vue | 18 +++++ .../src/components/ProjectNavButton.vue | 9 --- .../cli-ui/src/components/ProjectNavMore.vue | 22 ++++++ packages/@vue/cli-ui/src/locales/en.json | 7 ++ packages/@vue/cli-ui/src/views/About.vue | 72 +++++++++++++++++++ 5 files changed, 119 insertions(+), 9 deletions(-) create mode 100644 packages/@vue/cli-ui/src/components/ProjectNavMore.vue diff --git a/packages/@vue/cli-ui/src/components/ProjectNav.vue b/packages/@vue/cli-ui/src/components/ProjectNav.vue index 5479edf840..e54cd18031 100644 --- a/packages/@vue/cli-ui/src/components/ProjectNav.vue +++ b/packages/@vue/cli-ui/src/components/ProjectNav.vue @@ -12,6 +12,8 @@ :route="route" /> + + @@ -105,10 +107,26 @@ export default { .content v-box() + height 100% + + .vue-ui-group + flex auto 1 1 + height 0 + overflow hidden + + >>> .v-popover .trigger, + >>> .vue-ui-dropdown + display block !important >>> .vue-ui-button button-colors(rgba($vue-ui-color-light, .7), transparent) border-radius 0 + padding-left 0 + padding-right @padding-left + h-box() + box-center() + width 100% + &:hover, &:active $bg = darken($vue-ui-color-dark, 70%) button-colors($vue-ui-color-light, $bg) diff --git a/packages/@vue/cli-ui/src/components/ProjectNavButton.vue b/packages/@vue/cli-ui/src/components/ProjectNavButton.vue index 116037a3c7..4c5339dca6 100644 --- a/packages/@vue/cli-ui/src/components/ProjectNavButton.vue +++ b/packages/@vue/cli-ui/src/components/ProjectNavButton.vue @@ -78,9 +78,6 @@ $bg = darken($vue-ui-color-dark, 70%) .project-nav-button position relative - .v-popover >>> .trigger - display block !important - .bullet position absolute width 6px @@ -111,12 +108,6 @@ $bg = darken($vue-ui-color-dark, 70%) .bullet border-color darken($bg, 8%) - .icon-button - padding-left 0 - padding-right @padding-left - h-box() - box-center() - .image-icon max-width 24px max-height @width diff --git a/packages/@vue/cli-ui/src/components/ProjectNavMore.vue b/packages/@vue/cli-ui/src/components/ProjectNavMore.vue new file mode 100644 index 0000000000..3cd97001f5 --- /dev/null +++ b/packages/@vue/cli-ui/src/components/ProjectNavMore.vue @@ -0,0 +1,22 @@ + diff --git a/packages/@vue/cli-ui/src/locales/en.json b/packages/@vue/cli-ui/src/locales/en.json index 125e179563..7c1cd31825 100644 --- a/packages/@vue/cli-ui/src/locales/en.json +++ b/packages/@vue/cli-ui/src/locales/en.json @@ -303,6 +303,13 @@ "parameters": "Parameters", "more-info": "More Info", "output": "Output" + }, + "about": { + "title": "About", + "description": "@vue/cli-ui is a built-in package of vue-cli which opens a full-blown UI.", + "quote": "Vue-cli 3.x is a complete rewrite, with a lot of new awesome features. You will be to select features like routing, Vuex or Typescript, then add and upgrade building blocks called \"vue-cli plugins\". But having so much more options also means the tool is now more complex and harder to start using. That's why we thought having a full-blown GUI would help discover the new features, search and install vue-cli plugins and unlock more possibilities overall while not being limited by a terminal interface. To sum up, vue-cli will not only allow you to bootstrap a new project easily, but it will also remain useful for ongoing work afterwards!", + "links": "Useful links", + "back": "Go back" } } } diff --git a/packages/@vue/cli-ui/src/views/About.vue b/packages/@vue/cli-ui/src/views/About.vue index bfc3daecf5..6ce8e977c6 100644 --- a/packages/@vue/cli-ui/src/views/About.vue +++ b/packages/@vue/cli-ui/src/views/About.vue @@ -1,5 +1,77 @@ + + + +