diff --git a/deploy/docker/Dockerfile b/deploy/docker/Dockerfile index 5d8fd7c..06081d9 100644 --- a/deploy/docker/Dockerfile +++ b/deploy/docker/Dockerfile @@ -2,7 +2,7 @@ FROM node:20-alpine AS frontend WORKDIR /frontend-build COPY ./frontend . -RUN npm config set registry https://registry.npmmirror.com && npm install -g pnpm --registry=https://registry.npmmirror.com && pnpm i && pnpm build +RUN npm install -g pnpm && pnpm i && pnpm build FROM golang:1.23-alpine AS backend LABEL anther="github.com/Sakurasan" diff --git a/frontend/src/components/LineSegmentFlow_dot.vue b/frontend/src/components/LineSegmentFlow_dot.vue new file mode 100644 index 0000000..539f46d --- /dev/null +++ b/frontend/src/components/LineSegmentFlow_dot.vue @@ -0,0 +1,243 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/components/LineSegmentFlow_svg.vue b/frontend/src/components/LineSegmentFlow_svg.vue new file mode 100644 index 0000000..d01988f --- /dev/null +++ b/frontend/src/components/LineSegmentFlow_svg.vue @@ -0,0 +1,251 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/stores/webauth.js b/frontend/src/stores/webauth.js index a2e5f9c..4558b87 100644 --- a/frontend/src/stores/webauth.js +++ b/frontend/src/stores/webauth.js @@ -20,7 +20,7 @@ export const useWebAuthStore = defineStore("webauth", () => { try { // 1. 从后端获取注册选项 (Creation Options) const res = await request.get("/profile/passkey"); - console.log("begin:", res.data.data.publicKey); + // console.log("begin:", res.data.data.publicKey); const options = res.data.data.publicKey; // 调用 Web Authentication API 进行注册 @@ -44,7 +44,7 @@ export const useWebAuthStore = defineStore("webauth", () => { // 3. 将注册结果 (Attestation) 发送到后端进行验证和保存 const res2 = await request.post("/profile/passkey", attestation); - console.log("end:", res2); + // console.log("end:", res2); return res2; } catch (err) { error.value =err.response?.data?.error || "添加 Passkey 失败,请稍后重试。"; diff --git a/frontend/src/views/DashBoard.vue b/frontend/src/views/DashBoard.vue index 1f6c19b..2830709 100644 --- a/frontend/src/views/DashBoard.vue +++ b/frontend/src/views/DashBoard.vue @@ -73,7 +73,7 @@ -
+
diff --git a/frontend/src/views/dashboard/KeyNew.vue b/frontend/src/views/dashboard/KeyNew.vue index 8c6287f..f94e892 100644 --- a/frontend/src/views/dashboard/KeyNew.vue +++ b/frontend/src/views/dashboard/KeyNew.vue @@ -1,5 +1,5 @@