From eb022c92e86d44e95c5ff382fb59ba7b08fd133c Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 4 Dec 2022 19:56:33 +0000 Subject: [PATCH] feat: make internal app URLs permalinks (#329) --- components/account/AccountMoreButton.vue | 2 +- components/status/StatusActionsMore.vue | 6 +-- components/status/StatusNotFound.vue | 2 +- composables/content.ts | 5 +- composables/masto.ts | 20 +++++--- composables/users.ts | 20 ++++++-- middleware/auth.ts | 4 +- middleware/permalink.global.ts | 51 +++++++++++++++++++ pages/[...permalink].vue | 40 ++++----------- .../{ => [[server]]}/@[account]/[status].vue | 0 pages/{ => [[server]]}/@[account]/index.vue | 0 .../@[account]/index/followers.vue | 0 .../@[account]/index/following.vue | 0 .../@[account]/index/index.vue | 0 pages/{ => [[server]]}/explore.vue | 0 pages/{ => [[server]]}/public/index.vue | 0 pages/{ => [[server]]}/public/local.vue | 0 pages/{ => [[server]]}/status/[status].vue | 0 pages/{ => [[server]]}/tags/[tag].vue | 0 19 files changed, 99 insertions(+), 51 deletions(-) create mode 100644 middleware/permalink.global.ts rename pages/{ => [[server]]}/@[account]/[status].vue (100%) rename pages/{ => [[server]]}/@[account]/index.vue (100%) rename pages/{ => [[server]]}/@[account]/index/followers.vue (100%) rename pages/{ => [[server]]}/@[account]/index/following.vue (100%) rename pages/{ => [[server]]}/@[account]/index/index.vue (100%) rename pages/{ => [[server]]}/explore.vue (100%) rename pages/{ => [[server]]}/public/index.vue (100%) rename pages/{ => [[server]]}/public/local.vue (100%) rename pages/{ => [[server]]}/status/[status].vue (100%) rename pages/{ => [[server]]}/tags/[tag].vue (100%) diff --git a/components/account/AccountMoreButton.vue b/components/account/AccountMoreButton.vue index 5f2f638a..fcb477f5 100644 --- a/components/account/AccountMoreButton.vue +++ b/components/account/AccountMoreButton.vue @@ -44,7 +44,7 @@ const toggleBlockDomain = async () => {