From 74645d7ca463177cb4ca9c58d46c954813d4ff71 Mon Sep 17 00:00:00 2001 From: Soitora Date: Mon, 3 Aug 2020 02:37:43 +0200 Subject: [PATCH] Enhance download page (#277) --- package-lock.json | 19 +- package.json | 2 + src/.vuepress/components/DownloadButtons.vue | 191 +++++++-------- src/.vuepress/components/ReleaseDate.vue | 31 +++ src/.vuepress/components/ReleaseNotes.vue | 29 --- src/.vuepress/components/VersionTag.vue | 11 +- src/.vuepress/components/WhatsNew.vue | 41 ++++ src/.vuepress/enhanceApp.js | 2 + src/.vuepress/styles/index.styl | 2 +- src/.vuepress/theme/components/Home.vue | 231 +------------------ src/README.md | 1 + src/download/README.md | 13 +- 12 files changed, 198 insertions(+), 375 deletions(-) create mode 100644 src/.vuepress/components/ReleaseDate.vue delete mode 100644 src/.vuepress/components/ReleaseNotes.vue create mode 100644 src/.vuepress/components/WhatsNew.vue diff --git a/package-lock.json b/package-lock.json index 9e5c29d9..0d44bb14 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9380,6 +9380,11 @@ "minimist": "^1.2.5" } }, + "moment": { + "version": "2.27.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.27.0.tgz", + "integrity": "sha512-al0MUK7cpIcglMv3YF13qSgdAIqxHTO7brRtaz3DlSULbqfazqkc5kEjNrLDOM7fsjshoFIihnU8snrP7zUvhQ==" + }, "move-concurrently": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", @@ -12823,9 +12828,9 @@ } }, "sweetalert2": { - "version": "9.15.2", - "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-9.15.2.tgz", - "integrity": "sha512-evJfoa49s5ZzSmVc62tslNkzlQoCg2GHjB3MQxawfESppvY5AlXKLGQ3nNKxHXKdodKmIHbkl39DgUhcOK7LgQ==" + "version": "9.17.1", + "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-9.17.1.tgz", + "integrity": "sha512-D/VE2lT/bKd64/RBglLUtQ+3nsftzjzIiP2iqN6zPzPwf+2djIY+4k8Bg430zxRUn4DkZzyIuU58q3n0J43lvw==" }, "table": { "version": "5.4.6", @@ -13822,6 +13827,14 @@ "resolved": "https://registry.npmjs.org/vue-material-design-icons/-/vue-material-design-icons-4.8.0.tgz", "integrity": "sha512-NNbwK/a14mk92ofBvJa6oBdWi+SO2f27pimoCWziirrbN5Nmt9q0pzELOfvqyy0ncoMJ2BLkd8KfQuXIAhL3Fw==" }, + "vue-moment": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/vue-moment/-/vue-moment-4.1.0.tgz", + "integrity": "sha512-Gzisqpg82ItlrUyiD9d0Kfru+JorW2o4mQOH06lEDZNgxci0tv/fua1Hl0bo4DozDV2JK1r52Atn/8QVCu8qQw==", + "requires": { + "moment": "^2.19.2" + } + }, "vue-router": { "version": "3.3.4", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.3.4.tgz", diff --git a/package.json b/package.json index 5fd698da..177cb85f 100644 --- a/package.json +++ b/package.json @@ -38,8 +38,10 @@ "lodash.sortby": "^4.7.0", "marked": "^1.1.1", "material-design-icons": "^3.0.1", + "sweetalert2": "^9.17.1", "vue-agile": "^1.1.3", "vue-material-design-icons": "^4.8.0", + "vue-moment": "^4.1.0", "vue-sweetalert2": "^3.0.6", "vuepress-plugin-sitemap": "^2.3.1" } diff --git a/src/.vuepress/components/DownloadButtons.vue b/src/.vuepress/components/DownloadButtons.vue index dba72dbf..ef45478e 100644 --- a/src/.vuepress/components/DownloadButtons.vue +++ b/src/.vuepress/components/DownloadButtons.vue @@ -1,44 +1,27 @@ diff --git a/src/.vuepress/components/ReleaseDate.vue b/src/.vuepress/components/ReleaseDate.vue new file mode 100644 index 00000000..22704861 --- /dev/null +++ b/src/.vuepress/components/ReleaseDate.vue @@ -0,0 +1,31 @@ + + + + + diff --git a/src/.vuepress/components/ReleaseNotes.vue b/src/.vuepress/components/ReleaseNotes.vue deleted file mode 100644 index a7524db4..00000000 --- a/src/.vuepress/components/ReleaseNotes.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - - - diff --git a/src/.vuepress/components/VersionTag.vue b/src/.vuepress/components/VersionTag.vue index b43a4dc0..5a1d287a 100644 --- a/src/.vuepress/components/VersionTag.vue +++ b/src/.vuepress/components/VersionTag.vue @@ -1,12 +1,10 @@ diff --git a/src/.vuepress/components/WhatsNew.vue b/src/.vuepress/components/WhatsNew.vue new file mode 100644 index 00000000..c3a5cdcf --- /dev/null +++ b/src/.vuepress/components/WhatsNew.vue @@ -0,0 +1,41 @@ + + + + + diff --git a/src/.vuepress/enhanceApp.js b/src/.vuepress/enhanceApp.js index adc57b1e..23ece59a 100644 --- a/src/.vuepress/enhanceApp.js +++ b/src/.vuepress/enhanceApp.js @@ -5,6 +5,7 @@ import "vue-material-design-icons/styles.css"; import { VueAgile } from "vue-agile"; import VueSweetalert2 from "vue-sweetalert2"; +import VueMoment from "vue-moment"; export default ({ Vue, // the version of Vue being used in the VuePress app @@ -15,4 +16,5 @@ export default ({ // eslint-disable-next-line vue/match-component-file-name Vue.component("Agile", VueAgile); Vue.use(VueSweetalert2); + Vue.use(VueMoment); }; diff --git a/src/.vuepress/styles/index.styl b/src/.vuepress/styles/index.styl index 1e3f0778..8700f670 100644 --- a/src/.vuepress/styles/index.styl +++ b/src/.vuepress/styles/index.styl @@ -176,4 +176,4 @@ font-feature-settings() // Hotfix Mobile Dropdown .sidebar .dropdown-wrapper .dropdown-title - pointer-events auto \ No newline at end of file + pointer-events auto diff --git a/src/.vuepress/theme/components/Home.vue b/src/.vuepress/theme/components/Home.vue index ae6f1f8e..0b24cae3 100644 --- a/src/.vuepress/theme/components/Home.vue +++ b/src/.vuepress/theme/components/Home.vue @@ -1,21 +1,14 @@