From af8fc537040573a7e8417b8b0a0891ae93b302c9 Mon Sep 17 00:00:00 2001 From: Redblueflame Date: Wed, 31 Mar 2021 19:09:18 +0200 Subject: [PATCH] Layout refactor (#150) * Revert recent commits * Move things around, and do preparation work for nested page systems. * Fixed issue on side bar not appearing --- .github/ISSUE_TEMPLATE/bug_report.md | 24 ------------ .github/ISSUE_TEMPLATE/feature_request.md | 20 ---------- assets/styles/components.scss | 12 ++++++ components/{ui => }/Advertisement.vue | 0 components/{wrapper => layout}/ModPage.vue | 11 +++--- components/ui/ConfirmPopup.vue | 5 --- components/ui/{search => }/Pagination.vue | 6 +-- components/ui/Popup.vue | 1 + components/ui/ProjectCard.vue | 8 +++- components/ui/{ => search}/Categories.vue | 0 middleware/auth.js | 6 +-- package-lock.json | 1 + .../DashboardPage.vue => pages/dashboard.vue | 19 ++++------ pages/dashboard/follows.vue | 38 ++++++++----------- pages/dashboard/misc/revoke-token.vue | 24 ++++++------ pages/dashboard/moderation.vue | 27 +++++++------ pages/dashboard/notifications.vue | 11 +++--- pages/dashboard/projects.vue | 7 +--- pages/dashboard/settings.vue | 8 ++-- pages/mod/_id/edit.vue | 2 +- pages/mod/_id/index.vue | 2 +- pages/mod/_id/newversion.vue | 2 +- pages/mod/_id/settings.vue | 2 +- pages/mod/_id/version/_version/edit.vue | 2 +- pages/mod/_id/version/_version/index.vue | 4 +- pages/mod/_id/versions.vue | 2 +- pages/mod/create.vue | 2 +- pages/mods.vue | 4 +- pages/user/_id.vue | 2 +- 29 files changed, 100 insertions(+), 152 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md rename components/{ui => }/Advertisement.vue (100%) rename components/{wrapper => layout}/ModPage.vue (98%) rename components/ui/{search => }/Pagination.vue (94%) rename components/ui/{ => search}/Categories.vue (100%) rename components/wrapper/DashboardPage.vue => pages/dashboard.vue (84%) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index fb57da5f8..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve labrinth -title: '' -labels: bug -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index e301d68ce..000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: feature request -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/assets/styles/components.scss b/assets/styles/components.scss index 85a731baa..6edba8b63 100644 --- a/assets/styles/components.scss +++ b/assets/styles/components.scss @@ -408,3 +408,15 @@ } } + +.section-header { + @extend %card; + padding: var(--spacing-card-md) var(--spacing-card-lg); + margin-bottom: var(--spacing-card-md); + h3 { + margin: auto 0; + color: var(--color-text-dark); + font-weight: var(--font-weight-extrabold); + } +} + diff --git a/components/ui/Advertisement.vue b/components/Advertisement.vue similarity index 100% rename from components/ui/Advertisement.vue rename to components/Advertisement.vue diff --git a/components/wrapper/ModPage.vue b/components/layout/ModPage.vue similarity index 98% rename from components/wrapper/ModPage.vue rename to components/layout/ModPage.vue index a3c3a3a7e..658288904 100644 --- a/components/wrapper/ModPage.vue +++ b/components/layout/ModPage.vue @@ -8,7 +8,7 @@ :src=" mod.icon_url ? mod.icon_url - : 'https://cdn.modrinth.com/placeholder.svg' + : 'https://cdn.modrinth.com/placeholder.svg?inline' " alt="mod - icon" /> @@ -38,7 +38,7 @@
@@ -346,7 +346,7 @@