From 3f5cfd34a8eb96c22017f91809d99f44cdf02b2c Mon Sep 17 00:00:00 2001 From: Twilight Date: Tue, 10 Sep 2024 16:47:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E9=A6=96=E6=AC=A1?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 76 +++++++++++++++++++++++++++++++++++++------ src/config/config.ts | 4 +-- src/main.ts | 4 --- src/plugins/router.ts | 4 +-- 4 files changed, 70 insertions(+), 18 deletions(-) diff --git a/index.html b/index.html index 8e7aa1d..66bfd00 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,69 @@ - + - - - + + + amber-wails - - -
- - + + + +
+
+
+ + + + + + +

Amber AI

+
+
+
+ + - diff --git a/src/config/config.ts b/src/config/config.ts index 1c42bff..7618aff 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -2,8 +2,8 @@ const config = { app_name: "Amber", oauth_discovery_url: "https://auth.leaflow.cn/.well-known/openid-configuration", - oauth_client_id: "90020", - oauth_callback_url: "amber-desktop://auth_callback", + oauth_client_id: "60021", + oauth_callback_url: "http://localhost:5173/auth/callback", oauth_storage_key: "code_verifier", oauth_scope: "openid profile", backend: "http://localhost:8080", diff --git a/src/main.ts b/src/main.ts index b037554..9b74ecd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2,7 +2,6 @@ const meta = document.createElement("meta"); meta.name = "naive-ui-style"; document.head.appendChild(meta); - import "./style.css"; import { createApp } from "vue"; @@ -14,12 +13,9 @@ import "vfonts/Lato.css"; // 等宽字体 import "vfonts/FiraCode.css"; - import App from "./App.vue"; import router from "./plugins/router"; - - const pinia = createPinia(); pinia.use(piniaPluginPersistedstate); diff --git a/src/plugins/router.ts b/src/plugins/router.ts index 25ccf72..52b8093 100644 --- a/src/plugins/router.ts +++ b/src/plugins/router.ts @@ -1,9 +1,9 @@ -import { createRouter, createWebHashHistory } from 'vue-router' +import { createRouter, createWebHistory } from "vue-router"; import { routes } from 'vue-router/auto-routes' import { setupLayouts } from 'virtual:generated-layouts' const router = createRouter({ - history: createWebHashHistory(), + history: createWebHistory(), routes: setupLayouts(routes) })