From e61a1080f737d4c4ebe0f7687fd1439de3ea71a4 Mon Sep 17 00:00:00 2001 From: Jai A Date: Tue, 30 Mar 2021 21:38:12 -0700 Subject: [PATCH] Organize components, switch auth to not use session --- .github/ISSUE_TEMPLATE/bug_report.md | 24 + .github/ISSUE_TEMPLATE/feature_request.md | 20 + components/DashboardPage.vue | 75 --- components/ModPage.vue | 685 -------------------- components/Popup.vue | 48 -- components/{ => layout}/MFooter.vue | 0 components/{ => ui}/Advertisement.vue | 0 components/{ => ui}/Categories.vue | 28 +- components/{ => ui}/ConfirmPopup.vue | 0 components/{ => ui}/FileInput.vue | 0 components/{ => ui}/ProjectCard.vue | 10 +- components/{ => ui/search}/Pagination.vue | 6 +- components/{ => ui/search}/SearchFilter.vue | 0 components/wrapper/ModPage.vue | 8 +- layouts/error.vue | 2 +- middleware/auth.js | 6 +- pages/about.vue | 2 +- pages/dashboard/follows.vue | 4 +- pages/dashboard/misc/revoke-token.vue | 2 +- pages/dashboard/moderation.vue | 4 +- pages/dashboard/notifications.vue | 3 +- pages/dashboard/projects.vue | 5 +- pages/dashboard/settings.vue | 2 +- pages/index.vue | 2 +- pages/legal/privacy.vue | 2 +- pages/legal/terms.vue | 2 +- pages/mod/_id/edit.vue | 4 +- 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 | 6 +- pages/mod/_id/versions.vue | 2 +- pages/mod/create.vue | 4 +- pages/mods.vue | 10 +- pages/user/_id.vue | 6 +- 36 files changed, 111 insertions(+), 869 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 components/DashboardPage.vue delete mode 100644 components/ModPage.vue delete mode 100644 components/Popup.vue rename components/{ => layout}/MFooter.vue (100%) rename components/{ => ui}/Advertisement.vue (100%) rename components/{ => ui}/Categories.vue (85%) rename components/{ => ui}/ConfirmPopup.vue (100%) rename components/{ => ui}/FileInput.vue (100%) rename components/{ => ui}/ProjectCard.vue (95%) rename components/{ => ui/search}/Pagination.vue (94%) rename components/{ => ui/search}/SearchFilter.vue (100%) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 000000000..fb57da5f8 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,24 @@ +--- +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 new file mode 100644 index 000000000..e301d68ce --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +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/components/DashboardPage.vue b/components/DashboardPage.vue deleted file mode 100644 index efce252e7..000000000 --- a/components/DashboardPage.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - - diff --git a/components/ModPage.vue b/components/ModPage.vue deleted file mode 100644 index 9cef42232..000000000 --- a/components/ModPage.vue +++ /dev/null @@ -1,685 +0,0 @@ - - - - - diff --git a/components/Popup.vue b/components/Popup.vue deleted file mode 100644 index 299b55c37..000000000 --- a/components/Popup.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - - - diff --git a/components/MFooter.vue b/components/layout/MFooter.vue similarity index 100% rename from components/MFooter.vue rename to components/layout/MFooter.vue diff --git a/components/Advertisement.vue b/components/ui/Advertisement.vue similarity index 100% rename from components/Advertisement.vue rename to components/ui/Advertisement.vue diff --git a/components/Categories.vue b/components/ui/Categories.vue similarity index 85% rename from components/Categories.vue rename to components/ui/Categories.vue index 6b7fc3aff..7a617ba8a 100644 --- a/components/Categories.vue +++ b/components/ui/Categories.vue @@ -60,21 +60,21 @@