From d83fb24bbddf00566c5565e24c3a886211088bc0 Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 9 Sep 2019 17:55:43 +0000 Subject: [PATCH] Added link sharing (#30) --- package.json | 1 + src/App.vue | 31 +++- src/auth/index.js | 14 +- src/components/lists/EditList.vue | 4 + src/components/lists/ShowList.vue | 2 +- src/components/sharing/linkSharing.vue | 195 +++++++++++++++++++++ src/components/sharing/linkSharingAuth.vue | 40 +++++ src/components/sharing/userTeam.vue | 33 +--- src/main.js | 2 + src/models/authTypes.json | 5 + src/models/linkShare.js | 27 +++ src/router/index.js | 8 +- src/services/linkShare.js | 17 ++ src/styles/list.scss | 31 ++++ src/styles/theme.scss | 12 ++ src/vikunja.scss | 1 + todo.md | 3 +- yarn.lock | 12 ++ 18 files changed, 397 insertions(+), 41 deletions(-) create mode 100644 src/components/sharing/linkSharing.vue create mode 100644 src/components/sharing/linkSharingAuth.vue create mode 100644 src/models/authTypes.json create mode 100644 src/models/linkShare.js create mode 100644 src/services/linkShare.js create mode 100644 src/styles/list.scss diff --git a/package.json b/package.json index 75a3c61a6..c786ceffb 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ }, "dependencies": { "bulma": "^0.7.1", + "copy-to-clipboard": "^3.2.0", "lodash": "^4.17.11", "v-tooltip": "^2.0.0-rc.33", "verte": "^0.0.12", diff --git a/src/App.vue b/src/App.vue index 067185b3a..db5c4c172 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,6 @@ + + diff --git a/src/components/sharing/linkSharingAuth.vue b/src/components/sharing/linkSharingAuth.vue new file mode 100644 index 000000000..7ecb409cf --- /dev/null +++ b/src/components/sharing/linkSharingAuth.vue @@ -0,0 +1,40 @@ + + + diff --git a/src/components/sharing/userTeam.vue b/src/components/sharing/userTeam.vue index 7c7d6df7e..c9b87b064 100644 --- a/src/components/sharing/userTeam.vue +++ b/src/components/sharing/userTeam.vue @@ -1,6 +1,5 @@