diff --git a/src/api/oauth/gitee.ts b/src/api/oauth/gitee.ts
new file mode 100644
index 0000000..1f9025b
--- /dev/null
+++ b/src/api/oauth/gitee.ts
@@ -0,0 +1,18 @@
+import {service} from "@/utils/alova/service.ts";
+
+/**
+ * 获取Gitee登录链接
+ */
+export const getGiteeUrl = () => {
+ return service.Get('/api/oauth/gitee/get_url',
+ {
+ meta: {
+ ignoreToken: true,
+ },
+ cacheFor: {
+ mode: "restore",
+ expire: 1000 * 60 * 60 * 24 * 30 // 30 days
+ }
+ }
+ );
+};
diff --git a/src/api/oauth/github.ts b/src/api/oauth/github.ts
new file mode 100644
index 0000000..85f7252
--- /dev/null
+++ b/src/api/oauth/github.ts
@@ -0,0 +1,18 @@
+import {service} from "@/utils/alova/service.ts";
+
+/**
+ * Get Github OAuth URL
+ */
+export const getGithubUrl = () => {
+ return service.Get('/api/oauth/github/get_url',
+ {
+ meta: {
+ ignoreToken: true,
+ },
+ cacheFor: {
+ mode: "restore",
+ expire: 1000 * 60 * 60 * 24 * 30 // 30 days
+ }
+ }
+ );
+};
diff --git a/src/api/oauth/index.ts b/src/api/oauth/wechat.ts
similarity index 79%
rename from src/api/oauth/index.ts
rename to src/api/oauth/wechat.ts
index 3c07cf6..7bf5e1f 100644
--- a/src/api/oauth/index.ts
+++ b/src/api/oauth/wechat.ts
@@ -48,15 +48,3 @@ export const closeWebsocket = (clientId: string) => {
}
);
};
-export const sendSocketMessage = (clientId: string) => {
- return service.Get('/api/ws/send',
- {
- params: {
- client_id: clientId
- },
- meta: {
- ignoreToken: true,
- },
- }
- );
-};
diff --git a/src/locales/index.ts b/src/locales/index.ts
index fb92634..a464683 100644
--- a/src/locales/index.ts
+++ b/src/locales/index.ts
@@ -1,4 +1,4 @@
-// index.ts
+// wechat.ts
import {createI18n} from 'vue-i18n';
import zh from './language/zh.ts';
import en from './language/en.ts';
diff --git a/src/utils/websocket/websocket.ts b/src/utils/websocket/websocket.ts
index 9885314..b801a3b 100644
--- a/src/utils/websocket/websocket.ts
+++ b/src/utils/websocket/websocket.ts
@@ -27,7 +27,7 @@ class WebSocketService {
this.ws.addEventListener('close', this.handleClose);
setInterval(() => {
if (this.ws && this.ws.readyState === WebSocket.OPEN) {
- this.send('ping');
+ this.send("ping");
}
}, this.heartbeatIntervalMs);
}
diff --git a/src/views/Login/LoginFooter.vue b/src/views/Login/LoginFooter.vue
index 54bde68..d87c0fe 100644
--- a/src/views/Login/LoginFooter.vue
+++ b/src/views/Login/LoginFooter.vue
@@ -6,19 +6,107 @@
router.push('/qrlogin')
}" class="login-form-bottom-button" :icon="h(QrcodeOutlined)">{{ t("login.qrLogin") }}
-
-
+
+