refactor: 视频接口改用 R2 直连,移除 openlist 依赖
This commit is contained in:
@@ -25,20 +25,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "some",
|
||||
"path": "/some/",
|
||||
"items": [
|
||||
{
|
||||
"text": "概述",
|
||||
"link": "/some/"
|
||||
},
|
||||
{
|
||||
"text": "some",
|
||||
"link": "/some/some"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "vue",
|
||||
"path": "/vue/",
|
||||
@@ -72,6 +58,10 @@
|
||||
{
|
||||
"text": "概述",
|
||||
"link": "/杂谈/"
|
||||
},
|
||||
{
|
||||
"text": "程序员的日常思考",
|
||||
"link": "/杂谈/thoughts"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export function getVideoUrl(name: string): string {
|
||||
return `https://openlist.wufangzhen.com/d/139/wufangzhen.com/mp4/${name}`
|
||||
return `https://pub-7d4a6640bc77480c99842eea19bb2b69.r2.dev/${name}`
|
||||
}
|
||||
|
||||
export function clamp(value: number, min: number, max: number): number {
|
||||
|
||||
Reference in New Issue
Block a user