Skip to content

Commit cc1f047

Browse files
authored
fix: replace api (#2)
* Temporary api and docs https://alist-docs.voidval.com
1 parent b3875b7 commit cc1f047

File tree

9 files changed

+45
-49
lines changed

9 files changed

+45
-49
lines changed

docs/.vuepress/components/api/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
export const apis: Record<string, string> = {
22
cf: "https://api.nn.ci",
33
cn: "https://api.xhofe.top",
4-
de: "http://api-my-api-5hw5ou-b810d8-80-75-218-107.traefik.me"
4+
de: "http://api-my-api-5hw5ou-b810d8-80-75-218-107.traefik.me",
5+
NodeseekDev: "https://alist-api.voidval.com"
56
};
67

78
if (typeof location !== "undefined") {
@@ -13,7 +14,7 @@ if (typeof location !== "undefined") {
1314
}
1415
}
1516

16-
export const defaultApi = "cf";
17+
export const defaultApi = "NodeseekDev";
1718
export const api = (path?: string) => {
1819
let _api = "";
1920
if (typeof localStorage === "undefined") {

docs/.vuepress/components/google/Request.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts" setup>
22
import { NButton, NSpace, NInput, NCard, NText } from 'naive-ui';
33
import { reactive } from 'vue';
4+
import {api} from "../api";
45
56
function createClient() {
67
window.open("https://console.developers.google.com/", "_blank");
@@ -15,7 +16,7 @@ const rclone = {
1516
redirect_uri: 'http://127.0.0.1:53682/',
1617
}
1718
18-
const alist_redirect_uri = "https://alist.nn.ci/tool/google/callback"
19+
const alist_redirect_uri = `${api()}/tool/google/callback`
1920
2021
const data = reactive({
2122
client_id: "",

docs/.vuepress/components/onedrive/Request.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const getToken = () => {
6060
url.searchParams.set("response_type", "code");
6161
url.searchParams.set(
6262
"redirect_uri",
63-
"https://alist.nn.ci/tool/onedrive/callback"
63+
"https://alist-docs.voidval.com/tool/onedrive/callback"
6464
);
6565
url.searchParams.set(
6666
"scope",

docs/.vuepress/components/wopan/Token.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const token = ref()
1818
1919
async function getVerifyCode() {
2020
loading1.value = true
21-
const res = await fetch(`${api()}/alist/wopan/login`, {
21+
const res = await fetch(`${api()}/alist/wopan/verify_code`, {
2222
method: 'POST',
2323
headers: {
2424
'Content-Type': 'application/json'
@@ -34,7 +34,7 @@ async function getVerifyCode() {
3434
}
3535
async function getToken() {
3636
loading2.value = true
37-
const res = await fetch(`${api()}/alist/wopan/verify_code`, {
37+
const res = await fetch(`${api()}/alist/wopan/login`, {
3838
method: 'POST',
3939
headers: {
4040
'Content-Type': 'application/json'

docs/.vuepress/components/yandex/Callback.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<script lang="ts" setup>
22
import { NAlert, NSpace, NSpin, NInput } from 'naive-ui';
33
import { ref } from 'vue';
4+
import {api} from "../api";
45
5-
const client_id = "a78d5a69054042fa936f6c77f9a0ae8b";
6-
const client_secret = "9c119bbb04b346d2a52aa64401936b2b";
7-
const callback_uri = "https://alist.nn.ci/tool/yandex/callback";
6+
const client_id = "4f966c143be4471e8e512e6f77a34d69";
7+
const client_secret = "c52e9d32c3134ef29b025729427b3334";
8+
const callback_uri = `${api()}/tool/yandex/callback`;
89
910
const url = new URL(window.location.href);
1011
const code = url.searchParams.get("code");

docs/.vuepress/config.ts

Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ export default defineUserConfig({
99
theme,
1010
base: "/",
1111
head: [
12-
[
13-
"script",
14-
{
15-
type: "text/javascript",
16-
charset: "UTF-8",
17-
src: "https://cdn.wwads.cn/js/makemoney.js",
18-
// async: true,
19-
},
20-
],
2112
[
2213
"link",
2314
{
@@ -39,37 +30,37 @@ export default defineUserConfig({
3930
{},
4031
`!function(p){"use strict";!function(t){var s=window,e=document,i=p,c="".concat("https:"===e.location.protocol?"https://":"http://","sdk.51.la/js-sdk-pro.min.js"),n=e.createElement("script"),r=e.getElementsByTagName("script")[0];n.type="text/javascript",n.setAttribute("charset","UTF-8"),n.async=!0,n.src=c,n.id="LA_COLLECT",i.d=n;var o=function(){s.LA.ids.push(i)};s.LA?s.LA.ids&&o():(s.LA=p,s.LA.ids=[],o()),r.parentNode.insertBefore(n,r)}()}({id:"JopjiIsNYEbnNVF2",ck:"JopjiIsNYEbnNVF2",hashMode:false});`,
4132
],
42-
[
43-
"script",
44-
{},
45-
`var _hmt = _hmt || [];
46-
(function() {
47-
var hm = document.createElement("script");
48-
hm.src = "https://hm.baidu.com/hm.js?6c8a68035d2804b5cfeafe6d96df4c75";
49-
var s = document.getElementsByTagName("script")[0];
50-
s.parentNode.insertBefore(hm, s);
51-
})();`,
52-
],
53-
[
54-
"script",
55-
{
56-
src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6488351372249466",
57-
async: true,
58-
crossorigin: "anonymous",
59-
},
60-
],
33+
// [
34+
// "script",
35+
// {},
36+
// `var _hmt = _hmt || [];
37+
// (function() {
38+
// var hm = document.createElement("script");
39+
// hm.src = "https://hm.baidu.com/hm.js?6c8a68035d2804b5cfeafe6d96df4c75";
40+
// var s = document.getElementsByTagName("script")[0];
41+
// s.parentNode.insertBefore(hm, s);
42+
// })();`,
43+
// ],
44+
// [
45+
// "script",
46+
// {
47+
// src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6488351372249466",
48+
// async: true,
49+
// crossorigin: "anonymous",
50+
// },
51+
// ],
6152
],
6253

6354
locales: {
6455
"/": {
6556
lang: "en-US",
66-
title: "AList Docs",
67-
description: "Documentation for alist v3",
57+
title: "nlist Docs",
58+
description: "Documentation for nlist v3",
6859
},
6960
"/zh/": {
7061
lang: "zh-CN",
71-
title: "AList文档",
72-
description: "AList v3的文档",
62+
title: "nlist 文档",
63+
description: "nlist v3 的文档",
7364
},
7465
},
7566
markdown: {

docs/zh/guide/drivers/dropbox.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ Dropbox官网:https://www.dropbox.com/
2525

2626
## **获取刷新令牌**
2727

28-
前往:**https://alist.nn.ci/tool/dropbox/request.html**
28+
前往:**https://alist-docs.voidval.com/tool/dropbox/request.html**
2929

30-
- 有两种方式,一种是直接使用AList提供的,一种是自己新建应用
31-
- 获取方式如下(推荐使用第二种^{右侧的}^因为AList提供的已经无法新建用户了
30+
- 有两种方式,一种是直接使用OpenList提供的,一种是自己新建应用
31+
- 获取方式如下(推荐使用第二种^{右侧的}^因为OpenList提供的已经无法新建用户了
3232
- 使用右侧自建`客户端ID``秘钥`时,记得授权^{第三张图}^
3333

3434
<div class="image-preview">
@@ -42,7 +42,7 @@ Dropbox官网:https://www.dropbox.com/
4242

4343
- 获取方式如上图右图(创建应用链接:**https://www.dropbox.com/developers/apps**
4444

45-
- 回调参数链接:**https://alist.nn.ci/tool/dropbox/callback**
45+
- 回调参数链接:**https://alist-docs.voidval.com/tool/dropbox/callback.html**
4646

4747
参考链接:[**点击查看**](https://github.com/alist-org/alist/commit/cfee536b96f38e5ba3f3575fab4e89f6c0e1bc5b#commitcomment-119688700)
4848

docs/zh/guide/drivers/onedrive.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ headerDepth: 5
3131
如果你的账号不支持 API,(比如学校账号没有验证管理员,或者管理员禁用了 API),那么你也可以通过 WebDAV 挂载。 有关详细信息,请参阅 [WebDAV 页面](webdav.md)
3232
:::
3333

34-
首先打开 https://alist.nn.ci/tool/onedrive/request
34+
可选工具
35+
- https://api.oplist.org/[OpenList Team](https://github.com/openlistteam)维护
36+
- https://alist-docs.voidval.com/zh/tool/onedrive/request.html[NodeseekDev](https://github.com/nodeseekdev) 维护
3537

3638
### **创建应用**
3739

3840
> 你也可以选择跳过此步,使用默认提供的client,但是需要组织管理员批准。
3941
4042
- 在打开的页面,选择所在区域,点击创建应用
41-
- 登陆后选择"注册应用程序",输入"名称",选择"任何组织目录中的账户和个人"(注意这里不要看位置选择而是看文字,部分人可能是中间那个选项,不要选成单一租户或者其他选项,否则会导致登陆时出现问题),输入重定向 URL 为 <https://alist.nn.ci/tool/onedrive/callback> ,点击注册即可,然后可以得到 `client_id`
43+
- 登陆后选择"注册应用程序",输入"名称",选择"任何组织目录中的账户和个人"(注意这里不要看位置选择而是看文字,部分人可能是中间那个选项,不要选成单一租户或者其他选项,否则会导致登陆时出现问题),输入重定向 URL 为 <https://alist-docs.voidval.com/tool/onedrive/callback> ,点击注册即可,然后可以得到 `client_id`
4244
![client_id](/img/drivers/onedrive-register-app.png)
4345
- 注册好应用程序之后,选择"证书和密码",点击"新客户端密码",输入一串密码,选择时间为最长的那个,点击"添加"
4446
(注:在添加之后输入的密码之后会消失,请记录下来 `client_secret` 的值)
@@ -50,7 +52,7 @@ headerDepth: 5
5052

5153
### **获取刷新令牌**
5254

53-
将上一步骤中获得的 `client_id``client_secret` 填入 https://alist.nn.ci/tool/onedrive/request ,点击"获取刷新令牌"即可
55+
将上一步骤中获得的 `client_id``client_secret` 填入 https://alist-docs.voidval.com/zh/tool/onedrive/request.html ,点击"获取刷新令牌"即可
5456

5557

5658

docs/zh/guide/drivers/yandex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ star: true
2020
# Yandex云盘
2121

2222
### **刷新令牌**
23-
[点击这里](https://oauth.yandex.com/authorize?response_type=code&client_id=a78d5a69054042fa936f6c77f9a0ae8b) 来获取刷新令牌。
23+
[点击这里](https://oauth.yandex.com/authorize?response_type=code&client_id=4f966c143be4471e8e512e6f77a34d69) 来获取刷新令牌。
2424

2525
### **根文件夹ID**
2626
要挂载的根文件夹,默认为 `/`

0 commit comments

Comments
 (0)