From 074a712fac8c63a6fddb21da2ab754458796b6fa Mon Sep 17 00:00:00 2001 From: Dimitrie Stefanescu Date: Sun, 20 Dec 2020 22:34:18 +0200 Subject: [PATCH] feat(frontend): various improvements branches edit/delete/create; fixed and removed dupe apollo queries and minimised requests; fixed dialog operations --- frontend/src/AppFrontend.vue | 122 +++------- .../ListItemPersonalAccessToken.vue | 2 +- frontend/src/components/SidebarStream.vue | 34 ++- frontend/src/components/UserAccessTokens.vue | 19 +- frontend/src/components/UserApps.vue | 19 +- frontend/src/components/UserInfoCard.vue | 28 +-- .../src/components/dialogs/BranchDialog.vue | 186 --------------- .../components/dialogs/BranchEditDialog.vue | 158 +++++++++++++ .../components/dialogs/BranchNewDialog.vue | 80 +++++++ .../components/dialogs/EditStreamDialog.vue | 11 +- .../dialogs/StreamDescriptionDialog.vue | 62 +++-- .../components/dialogs/StreamShareDialog.vue | 2 +- frontend/src/graphql/stream.gql | 9 - frontend/src/graphql/streamBranches.gql | 16 ++ frontend/src/graphql/streamCommits.gql | 2 +- frontend/src/views/Branch.vue | 121 +++++----- frontend/src/views/Help.vue | 16 +- frontend/src/views/Home.vue | 2 +- frontend/src/views/Profile.vue | 17 +- frontend/src/views/Stream.vue | 67 +----- frontend/src/views/StreamMain.vue | 214 ++++++++---------- 21 files changed, 560 insertions(+), 627 deletions(-) delete mode 100644 frontend/src/components/dialogs/BranchDialog.vue create mode 100644 frontend/src/components/dialogs/BranchEditDialog.vue create mode 100644 frontend/src/components/dialogs/BranchNewDialog.vue create mode 100644 frontend/src/graphql/streamBranches.gql diff --git a/frontend/src/AppFrontend.vue b/frontend/src/AppFrontend.vue index d09a5df24..c23e5a8c7 100644 --- a/frontend/src/AppFrontend.vue +++ b/frontend/src/AppFrontend.vue @@ -3,12 +3,7 @@ - +
@@ -38,12 +33,7 @@ - + @@ -52,11 +42,7 @@
- + @@ -75,22 +61,22 @@ + diff --git a/frontend/src/components/UserAccessTokens.vue b/frontend/src/components/UserAccessTokens.vue index 86989409a..b8c7c4955 100644 --- a/frontend/src/components/UserAccessTokens.vue +++ b/frontend/src/components/UserAccessTokens.vue @@ -2,17 +2,16 @@ Personal Access Tokens - Personal Access Tokens can be used to access the Speckle API on this - server; they function like ordinary OAuth access tokens. Use them in your - scripts or apps! + Personal Access Tokens can be used to access the Speckle API on this server; they function + like ordinary OAuth access tokens. Use them in your scripts or apps! - Treat them like a password: do not post them anywhere where they could - be accessed by others (e.g., public repos). + Treat them like a password: do not post them anywhere where they could be accessed by others + (e.g., public repos). Loading... - + You have no api tokens. - new token + new token @@ -31,9 +30,9 @@ diff --git a/frontend/src/components/dialogs/BranchEditDialog.vue b/frontend/src/components/dialogs/BranchEditDialog.vue new file mode 100644 index 000000000..fd1532ae4 --- /dev/null +++ b/frontend/src/components/dialogs/BranchEditDialog.vue @@ -0,0 +1,158 @@ + + diff --git a/frontend/src/components/dialogs/BranchNewDialog.vue b/frontend/src/components/dialogs/BranchNewDialog.vue new file mode 100644 index 000000000..f545ec873 --- /dev/null +++ b/frontend/src/components/dialogs/BranchNewDialog.vue @@ -0,0 +1,80 @@ + + diff --git a/frontend/src/components/dialogs/EditStreamDialog.vue b/frontend/src/components/dialogs/EditStreamDialog.vue index 06db9bffa..f6709ba52 100644 --- a/frontend/src/components/dialogs/EditStreamDialog.vue +++ b/frontend/src/components/dialogs/EditStreamDialog.vue @@ -34,11 +34,11 @@ - - Delete Stream + + Delete Stream -

Deleting Stream {{ internalName }}

+

Deleting Stream {{ internalName }}

Type the name of the stream below to confirm you really want to delete it. You cannot undo this action. @@ -48,6 +48,9 @@ label="confirm stream name" class="pr-5" > +
+ + Cancel - +
- diff --git a/frontend/src/views/StreamMain.vue b/frontend/src/views/StreamMain.vue index 29f1f336f..19e476672 100644 --- a/frontend/src/views/StreamMain.vue +++ b/frontend/src/views/StreamMain.vue @@ -1,14 +1,17 @@