1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-29 12:44:20 +00:00

partage de créations

This commit is contained in:
Maxime Moraine 2020-06-11 15:04:52 +02:00
parent 66757c7cf0
commit 2b9c142467
3 changed files with 9 additions and 18 deletions

View file

@ -54,7 +54,7 @@
</v-card-title> </v-card-title>
<v-card-text> <v-card-text>
<v-text-field id="copy-uri" outlined readonly label="Copiez le lien pour partager" :hint="hintCopied" :value="shortenURL($site.themeConfig.domain + '/homebrew/?h=' + $store.state.shareURI)" append-outer-icon="mdi-content-copy" @click:append-outer="copyURI('copy-uri')"></v-text-field> <v-text-field id="copy-uri" outlined readonly label="Copiez le lien pour partager" :hint="hintCopied" :value="$site.themeConfig.domain + '/homebrew/?h=' + $store.state.shareURI" append-outer-icon="mdi-content-copy" @click:append-outer="copyURI('copy-uri')"></v-text-field>
<div class="text-center"> <div class="text-center">
<v-btn color="accent" depressed link :to="{ path: '/homebrew/', query: { h: $store.state.shareURI }}" @click="$store.commit('setIsOpenShareHomebrewDialog', !$store.state.isOpenShareHomebrewDialog)">Voir la page</v-btn> <v-btn color="accent" depressed link :to="{ path: '/homebrew/', query: { h: $store.state.shareURI }}" @click="$store.commit('setIsOpenShareHomebrewDialog', !$store.state.isOpenShareHomebrewDialog)">Voir la page</v-btn>
</div> </div>
@ -175,17 +175,6 @@ export default {
this.$store.commit('setRightDrawer', !this.$store.state.rightDrawer) this.$store.commit('setRightDrawer', !this.$store.state.rightDrawer)
}, },
shortenURL (url) {
// var isgd = require('isgd')
isgd.shorten('http://google.com', function(res) {
console.log(res)
return res
})
return url
},
copyURI (id) { copyURI (id) {
let toCopy = document.getElementById(id) let toCopy = document.getElementById(id)
toCopy.select() toCopy.select()

View file

@ -14,9 +14,9 @@
"@vuepress/plugin-blog": "^1.9.2", "@vuepress/plugin-blog": "^1.9.2",
"@vuepress/plugin-google-analytics": "^1.4.1", "@vuepress/plugin-google-analytics": "^1.4.1",
"@vuepress/plugin-pwa": "^1.4.1", "@vuepress/plugin-pwa": "^1.4.1",
"axios": "^0.19.2",
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"flexsearch": "nextapps-de/flexsearch", "flexsearch": "nextapps-de/flexsearch",
"isgd": "^1.1.3",
"js-cookie": "^2.2.1", "js-cookie": "^2.2.1",
"markdown-it-div": "^1.1.0", "markdown-it-div": "^1.1.0",
"markdown-it-multimd-table": "^4.0.1", "markdown-it-multimd-table": "^4.0.1",

View file

@ -1652,6 +1652,13 @@ axios@^0.18.1:
follow-redirects "1.5.10" follow-redirects "1.5.10"
is-buffer "^2.0.2" is-buffer "^2.0.2"
axios@^0.19.2:
version "0.19.2"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.19.2.tgz#3ea36c5d8818d0d5f8a8a97a6d36b86cdc00cb27"
integrity sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==
dependencies:
follow-redirects "1.5.10"
babel-extract-comments@^1.0.0: babel-extract-comments@^1.0.0:
version "1.0.0" version "1.0.0"
resolved "https://registry.yarnpkg.com/babel-extract-comments/-/babel-extract-comments-1.0.0.tgz#0a2aedf81417ed391b85e18b4614e693a0351a21" resolved "https://registry.yarnpkg.com/babel-extract-comments/-/babel-extract-comments-1.0.0.tgz#0a2aedf81417ed391b85e18b4614e693a0351a21"
@ -4672,11 +4679,6 @@ isexe@^2.0.0:
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=
isgd@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/isgd/-/isgd-1.1.3.tgz#98808dac152a7247497c5d068308012eccfa4351"
integrity sha1-mICNrBUqckdJfF0GgwgBLsz6Q1E=
isobject@^2.0.0: isobject@^2.0.0:
version "2.1.0" version "2.1.0"
resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89"