⬆️ Update version

This commit is contained in:
Aicirou 2020-08-29 19:00:27 +08:00
parent a014e81b77
commit 29c2a92cb5
2 changed files with 26 additions and 15 deletions

View File

@ -1,7 +1,7 @@
// =======Options START======= // =======Options START=======
var authConfig = { var authConfig = {
siteName: "GoIndex-theme-acrou", // 网站名称 siteName: "GoIndex-theme-acrou", // 网站名称
version: "1.1.1", // 程序版本 version: "1.1.2", // 程序版本
theme: "acrou", theme: "acrou",
// 强烈推荐使用自己的 client_id 和 client_secret // 强烈推荐使用自己的 client_id 和 client_secret
client_id: "202264815644.apps.googleusercontent.com", client_id: "202264815644.apps.googleusercontent.com",
@ -67,7 +67,7 @@ var authConfig = {
var themeOptions = { var themeOptions = {
cdn: "https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou", cdn: "https://cdn.jsdelivr.net/gh/Aicirou/goindex-theme-acrou",
// 主题版本号 // 主题版本号
version: "2.0.5", version: "2.0.8",
//可选默认系统语言:en/zh-chs/zh-cht //可选默认系统语言:en/zh-chs/zh-cht
languages: "en", languages: "en",
render: { render: {
@ -88,16 +88,22 @@ var themeOptions = {
desc: false, desc: false,
}, },
/** /**
* 播放器选项 * 视频播放器选项
* Player options * Video player options
*/ */
player: { video: {
/** /**
* 播放器api不指定则使用浏览器默认播放器 * 播放器api不指定则使用默认播放器
* Player api(Use browser default player if not specified) * Player api(Use default player if not specified)
*/ */
api: "https://api.jsonpop.cn/demo/blplyaer/?url=", api: "",
autoplay: true,
}, },
/**
* 音频播放器选项
* Audio player options
*/
audio: {},
}; };
// =======Options END======= // =======Options END=======
@ -307,7 +313,12 @@ async function handleRequest(request) {
}) })
); );
} else { } else {
if (path.split("/").pop().toLowerCase() == ".password") { if (
path
.split("/")
.pop()
.toLowerCase() == ".password"
) {
return basic_auth_res || new Response("", { status: 404 }); return basic_auth_res || new Response("", { status: 404 });
} }
let file = await gd.file(path); let file = await gd.file(path);

View File

@ -1,7 +1,7 @@
{ {
"name": "go2index-theme-acrou", "name": "go2index-theme-acrou",
"version": "2.0.5", "version": "2.0.8",
"g2index": "1.1.1", "g2index": "1.1.2",
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",