From 6ea487919099b4973453c15469a801c1e91a557f Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 15 Nov 2022 19:54:07 +0800 Subject: [PATCH] chore: wip oauth --- constants/index.ts | 6 ++++++ package.json | 3 ++- pages/index.vue | 1 + pages/login.vue | 31 +++++++++++++++++++++++++++++++ plugins/masto.ts | 10 ++++++++-- pnpm-lock.yaml | 6 ++++++ server/api/[server]/oauth.ts | 21 +++++++++++++++++++++ server/api/pageview.ts | 7 ------- 8 files changed, 75 insertions(+), 10 deletions(-) create mode 100644 constants/index.ts create mode 100644 server/api/[server]/oauth.ts delete mode 100644 server/api/pageview.ts diff --git a/constants/index.ts b/constants/index.ts new file mode 100644 index 00000000..0090e756 --- /dev/null +++ b/constants/index.ts @@ -0,0 +1,6 @@ +export const APP_NAME = 'Nuxtodon' + +export const HOST_DOMAIN = process.dev + ? 'http://localhost:3000' + : 'https://nuxtodon.netlify.app' + diff --git a/package.json b/package.json index ca74fe51..3768f683 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "postcss-nested": "^6.0.0", "rollup-plugin-node-polyfills": "^0.2.1", "sanitize-html": "^2.7.3", - "typescript": "^4.8.4" + "typescript": "^4.8.4", + "ufo": "^1.0.0" } } diff --git a/pages/index.vue b/pages/index.vue index 0881ab82..30e92df6 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,6 +1,7 @@