refactor: 视频接口改用 R2 直连,移除 openlist 依赖
This commit is contained in:
@@ -8,7 +8,7 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'https://openlist.wufangzhen.com',
|
target: 'https://wufangzhen.com',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false
|
secure: false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,20 +25,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"title": "some",
|
|
||||||
"path": "/some/",
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"text": "概述",
|
|
||||||
"link": "/some/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"text": "some",
|
|
||||||
"link": "/some/some"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"title": "vue",
|
"title": "vue",
|
||||||
"path": "/vue/",
|
"path": "/vue/",
|
||||||
@@ -72,6 +58,10 @@
|
|||||||
{
|
{
|
||||||
"text": "概述",
|
"text": "概述",
|
||||||
"link": "/杂谈/"
|
"link": "/杂谈/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "程序员的日常思考",
|
||||||
|
"link": "/杂谈/thoughts"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export function getVideoUrl(name: string): string {
|
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 {
|
export function clamp(value: number, min: number, max: number): number {
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "home",
|
"name": "web-home",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|||||||
Reference in New Issue
Block a user