From 376e4bbbf0548373e5a88849ae1cd37c58f68f5a Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Mon, 5 Mar 2018 16:05:59 +0100 Subject: [PATCH] feat(ui): FolderExplorer favorites + Project select page --- packages/@vue/cli-ui/package.json | 7 +- packages/@vue/cli-ui/public/index.html | 2 +- packages/@vue/cli-ui/src/apollo.js | 10 +- .../cli-ui/src/components/FolderExplorer.vue | 102 +++++++-- .../@vue/cli-ui/src/components/ProjectNav.vue | 58 +++++ .../src/components/ProjectSelectList.vue | 19 ++ .../@vue/cli-ui/src/components/StatusBar.vue | 45 ++++ .../src/graphql-api/connectors/folders.js | 31 ++- .../@vue/cli-ui/src/graphql-api/resolvers.js | 7 +- .../@vue/cli-ui/src/graphql-api/type-defs.js | 3 + .../@vue/cli-ui/src/graphql-api/utils/db.js | 3 +- packages/@vue/cli-ui/src/graphql/cwd.gql | 2 +- .../@vue/cli-ui/src/graphql/cwdChanged.gql | 2 +- .../cli-ui/src/graphql/featureFragment.gql | 7 + .../@vue/cli-ui/src/graphql/folderCurrent.gql | 2 +- .../src/graphql/folderCurrentFragment.gql | 3 + .../@vue/cli-ui/src/graphql/folderOpen.gql | 2 +- .../cli-ui/src/graphql/folderOpenParent.gql | 2 +- .../cli-ui/src/graphql/folderSetFavorite.gql | 7 + .../cli-ui/src/graphql/foldersFavorite.gql | 5 + .../cli-ui/src/graphql/pluginFragment.gql | 11 + .../cli-ui/src/graphql/projectCurrent.gql | 7 + .../src/graphql/projectCurrentFragment.gql | 15 ++ packages/@vue/cli-ui/src/graphql/projects.gql | 8 + packages/@vue/cli-ui/src/main.js | 12 +- packages/@vue/cli-ui/src/router.js | 34 ++- packages/@vue/cli-ui/src/state/defaults.js | 3 + packages/@vue/cli-ui/src/state/resolvers.js | 3 + packages/@vue/cli-ui/src/store.js | 16 -- packages/@vue/cli-ui/src/style/colors.styl | 1 + packages/@vue/cli-ui/src/style/imports.styl | 1 + packages/@vue/cli-ui/src/style/main.styl | 6 + packages/@vue/cli-ui/src/views/Home.vue | 32 ++- .../@vue/cli-ui/src/views/ProjectSelect.vue | 106 +++++++++ yarn.lock | 211 ++++++++++-------- 35 files changed, 623 insertions(+), 162 deletions(-) create mode 100644 packages/@vue/cli-ui/src/components/ProjectNav.vue create mode 100644 packages/@vue/cli-ui/src/components/ProjectSelectList.vue create mode 100644 packages/@vue/cli-ui/src/components/StatusBar.vue create mode 100644 packages/@vue/cli-ui/src/graphql/featureFragment.gql create mode 100644 packages/@vue/cli-ui/src/graphql/folderSetFavorite.gql create mode 100644 packages/@vue/cli-ui/src/graphql/foldersFavorite.gql create mode 100644 packages/@vue/cli-ui/src/graphql/pluginFragment.gql create mode 100644 packages/@vue/cli-ui/src/graphql/projectCurrent.gql create mode 100644 packages/@vue/cli-ui/src/graphql/projectCurrentFragment.gql create mode 100644 packages/@vue/cli-ui/src/graphql/projects.gql create mode 100644 packages/@vue/cli-ui/src/state/defaults.js create mode 100644 packages/@vue/cli-ui/src/state/resolvers.js delete mode 100644 packages/@vue/cli-ui/src/store.js create mode 100644 packages/@vue/cli-ui/src/style/colors.styl create mode 100644 packages/@vue/cli-ui/src/views/ProjectSelect.vue diff --git a/packages/@vue/cli-ui/package.json b/packages/@vue/cli-ui/package.json index e8de720291..0445ea4618 100644 --- a/packages/@vue/cli-ui/package.json +++ b/packages/@vue/cli-ui/package.json @@ -20,6 +20,7 @@ "apollo-link-context": "^1.0.5", "apollo-link-http": "^1.0.0", "apollo-link-persisted-queries": "^0.1.0", + "apollo-link-state": "^0.4.0", "apollo-link-ws": "^1.0.0", "apollo-upload-client": "^7.0.0-alpha.4", "apollo-utilities": "^1.0.1", @@ -36,8 +37,7 @@ "vue-apollo": "^3.0.0-alpha.1", "vue-cli-plugin-apollo": "^0.4.1", "vue-router": "^3.0.1", - "vue-template-compiler": "^2.5.13", - "vuex": "^3.0.1" + "vue-template-compiler": "^2.5.13" }, "browserslist": [ "> 1%", @@ -62,5 +62,8 @@ "vue-cli-service lint", "git add" ] + }, + "dependencies": { + "eslint": "^4.16.0" } } diff --git a/packages/@vue/cli-ui/public/index.html b/packages/@vue/cli-ui/public/index.html index 7bd4154690..96098ec9c7 100644 --- a/packages/@vue/cli-ui/public/index.html +++ b/packages/@vue/cli-ui/public/index.html @@ -5,7 +5,7 @@ - cli-ui + Vue CLI