From 89ebce79b2b12f7c3a73ba72539c2464f45a370b Mon Sep 17 00:00:00 2001 From: Jai A Date: Wed, 21 Oct 2020 13:43:49 -0700 Subject: [PATCH] Add versions section --- components/ModPage.vue | 359 +++++++++++++++++++++++++ nuxt.config.js | 24 -- pages/dashboard/projects.vue | 8 +- pages/mod/_id/index.vue | 408 ++++------------------------- pages/mod/_id/version/_version.vue | 96 +++++++ pages/mod/_id/versions.vue | 212 +++++++++++++++ pages/mods.vue | 2 +- 7 files changed, 732 insertions(+), 377 deletions(-) create mode 100644 components/ModPage.vue create mode 100644 pages/mod/_id/version/_version.vue diff --git a/components/ModPage.vue b/components/ModPage.vue new file mode 100644 index 00000000..79b7e74c --- /dev/null +++ b/components/ModPage.vue @@ -0,0 +1,359 @@ + + + + + diff --git a/nuxt.config.js b/nuxt.config.js index 415fbb79..36a44df3 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -45,30 +45,6 @@ export default { name: 'og:image', content: 'https://cdn.modrinth.com/modrinth.png', }, - - // Twitter - { - hid: 'twitter:card', - name: 'twitter:card', - content: 'summary', - }, - { hid: 'twitter:site', name: 'twitter:site', content: '@modrinth' }, - { hid: 'twitter:creator', name: 'twitter:creator', content: '@modrinth' }, - { - hid: 'twitter:title', - name: 'twitter:title', - content: 'Modrinth', - }, - { - hid: 'twitter:description', - name: 'twitter:description', - content: 'An open source modding platform', - }, - { - hid: 'twitter:image', - name: 'twitter:image', - content: 'https://cdn.modrinth.com/modrinth.png', - }, ], link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, diff --git a/pages/dashboard/projects.vue b/pages/dashboard/projects.vue index a9ade23c..96614c25 100644 --- a/pages/dashboard/projects.vue +++ b/pages/dashboard/projects.vue @@ -24,7 +24,11 @@ - {{ mod.title }} + + + {{ mod.title }} + + Owner @@ -80,7 +84,7 @@ export default { } - diff --git a/pages/mod/_id/version/_version.vue b/pages/mod/_id/version/_version.vue new file mode 100644 index 00000000..6ab2a5b6 --- /dev/null +++ b/pages/mod/_id/version/_version.vue @@ -0,0 +1,96 @@ + + + + diff --git a/pages/mod/_id/versions.vue b/pages/mod/_id/versions.vue index e69de29b..a2d7212c 100644 --- a/pages/mod/_id/versions.vue +++ b/pages/mod/_id/versions.vue @@ -0,0 +1,212 @@ + + + + diff --git a/pages/mods.vue b/pages/mods.vue index bed6ea57..85bd714c 100644 --- a/pages/mods.vue +++ b/pages/mods.vue @@ -395,7 +395,7 @@ export default { if (this.selectedVersions.length > 0) { const versionFacets = [] for (const facet of this.selectedVersions) { - versionFacets.push('versions:' + facet) + versionFacets.push('version:' + facet) } formattedFacets.push(versionFacets) }