This commit is contained in:
Randall 2024-08-04 12:45:11 +08:00
parent 00f6d24359
commit 96aa9a493c
5 changed files with 16 additions and 9 deletions

2
dist/app.js vendored
View File

@ -1,5 +1,5 @@
var scripts = ["https://cdn.jsdelivr.net/gh/RandallAnjie/goindex-theme-r@v2.0.8/dist/js/app.9b02a6f8.js","https://cdn.jsdelivr.net/gh/RandallAnjie/goindex-theme-r@v2.0.8/dist/js/chunk-vendors.d0ca61b8.js"]; var scripts = ["https://cdn.jsdelivr.net/gh/RandallAnjie/goindex-theme-r@v2.0.9/dist/js/app.c7041ad3.js","https://cdn.jsdelivr.net/gh/RandallAnjie/goindex-theme-r@v2.0.9/dist/js/chunk-vendors.d0ca61b8.js"];
var cdnjs = ["https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js","https://cdn.jsdelivr.net/npm/vue-i18n@8.17.3/dist/vue-i18n.min.js","https://cdn.jsdelivr.net/npm/vue-router@3.1.6/dist/vue-router.min.js","https://cdn.jsdelivr.net/npm/vuex@3.4.0/dist/vuex.js","https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js","https://cdn.jsdelivr.net/npm/element-ui@2.13.1/lib/index.js","https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js","https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js","https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/low.min.js","https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/LocalStorage.min.js","https://at.alicdn.com/t/font_1760192_8add3xcxs4u.js"]; var cdnjs = ["https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js","https://cdn.jsdelivr.net/npm/vue-i18n@8.17.3/dist/vue-i18n.min.js","https://cdn.jsdelivr.net/npm/vue-router@3.1.6/dist/vue-router.min.js","https://cdn.jsdelivr.net/npm/vuex@3.4.0/dist/vuex.js","https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js","https://cdn.jsdelivr.net/npm/element-ui@2.13.1/lib/index.js","https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js","https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js","https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/low.min.js","https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/LocalStorage.min.js","https://at.alicdn.com/t/font_1760192_8add3xcxs4u.js"];
cdnjs.forEach((item) => { cdnjs.forEach((item) => {
document.write('<script src="' + item + '"></script>'); document.write('<script src="' + item + '"></script>');

2
dist/index.html vendored
View File

@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=https://cdn.jsdelivr.net/gh/RandallAnjie/goindex-theme-r@v2.0.8/dist/favicon.ico><link href=https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css rel=preload as=style><link href=https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css rel=stylesheet><link href=https://cdn.jsdelivr.net/npm/font-awesome-animation@0.2.1/dist/font-awesome-animation.min.css rel=preload as=style><link href=https://cdn.jsdelivr.net/npm/font-awesome-animation@0.2.1/dist/font-awesome-animation.min.css rel=stylesheet><title>go2index-theme-acrou</title><script src=/setting.js></script><script src=https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js></script><script src=https://cdn.jsdelivr.net/npm/vue-i18n@8.17.3/dist/vue-i18n.min.js></script><script src=https://cdn.jsdelivr.net/npm/vue-router@3.1.6/dist/vue-router.min.js></script><script src=https://cdn.jsdelivr.net/npm/vuex@3.4.0/dist/vuex.js></script><script src=https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js></script><script src=https://cdn.jsdelivr.net/npm/element-ui@2.13.1/lib/index.js></script><script src=https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js></script><script src=https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js></script><script src=https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/low.min.js></script><script src=https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/LocalStorage.min.js></script><script src=https://at.alicdn.com/t/font_1760192_8add3xcxs4u.js></script></head><body><div id=app></div><script src=/app.js></script></body></html> <!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=https://cdn.jsdelivr.net/gh/RandallAnjie/goindex-theme-r@v2.0.9/dist/favicon.ico><link href=https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css rel=preload as=style><link href=https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css rel=stylesheet><link href=https://cdn.jsdelivr.net/npm/font-awesome-animation@0.2.1/dist/font-awesome-animation.min.css rel=preload as=style><link href=https://cdn.jsdelivr.net/npm/font-awesome-animation@0.2.1/dist/font-awesome-animation.min.css rel=stylesheet><title>go2index-theme-acrou</title><script src=/setting.js></script><script src=https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js></script><script src=https://cdn.jsdelivr.net/npm/vue-i18n@8.17.3/dist/vue-i18n.min.js></script><script src=https://cdn.jsdelivr.net/npm/vue-router@3.1.6/dist/vue-router.min.js></script><script src=https://cdn.jsdelivr.net/npm/vuex@3.4.0/dist/vuex.js></script><script src=https://cdn.jsdelivr.net/npm/axios@0.19.2/dist/axios.min.js></script><script src=https://cdn.jsdelivr.net/npm/element-ui@2.13.1/lib/index.js></script><script src=https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js></script><script src=https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js></script><script src=https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/low.min.js></script><script src=https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/LocalStorage.min.js></script><script src=https://at.alicdn.com/t/font_1760192_8add3xcxs4u.js></script></head><body><div id=app></div><script src=/app.js></script></body></html>

2
dist/style.css vendored
View File

@ -1,4 +1,4 @@
@import url(https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css); @import url(https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css);
@import url(https://cdn.jsdelivr.net/npm/font-awesome-animation@0.2.1/dist/font-awesome-animation.min.css); @import url(https://cdn.jsdelivr.net/npm/font-awesome-animation@0.2.1/dist/font-awesome-animation.min.css);
@import url(css/chunk-vendors.9b14a1cb.css); @import url(css/chunk-vendors.9b14a1cb.css);
@import url(css/app.dde41999.css); @import url(css/app.6010ebeb.css);

View File

@ -1,6 +1,6 @@
// =======Options START======= // =======Options START=======
var authConfig = { var authConfig = {
siteName: "GoIndex-theme-r", // 网站名称 siteName: "GoIndex-theme-acrou", // 网站名称
version: "1.1.2", // 程序版本 version: "1.1.2", // 程序版本
theme: "acrou", theme: "acrou",
// 强烈推荐使用自己的 client_id 和 client_secret // 强烈推荐使用自己的 client_id 和 client_secret
@ -55,7 +55,7 @@ var authConfig = {
*/ */
search_result_list_page_size: 50, search_result_list_page_size: 50,
// 确认有 cors 用途的可以开启 // 确认有 cors 用途的可以开启
enable_cors_file_down: true, enable_cors_file_down: false,
/** /**
* 上面的 basic auth 已经包含了盘内全局保护的功能所以默认不再去认证 .password 文件内的密码; * 上面的 basic auth 已经包含了盘内全局保护的功能所以默认不再去认证 .password 文件内的密码;
* 如果在全局认证的基础上仍需要给某些目录单独进行 .password 文件内的密码验证的话将此选项设置为 true; * 如果在全局认证的基础上仍需要给某些目录单独进行 .password 文件内的密码验证的话将此选项设置为 true;
@ -65,7 +65,9 @@ var authConfig = {
}; };
var themeOptions = { var themeOptions = {
cdn: "https://git.randallanjie.com/Randall/goindex-theme-r/raw/branch/master", cdn: "https://cdn.jsdelivr.net/gh/RandallAnjie/goindex-theme-r",
// 主题版本号
version: "v2.0.9",
//可选默认系统语言:en/zh-chs/zh-cht //可选默认系统语言:en/zh-chs/zh-cht
languages: "zh-chs", languages: "zh-chs",
render: { render: {
@ -142,6 +144,9 @@ const CONSTS = new (class {
var gds = []; var gds = [];
function html(current_drive_order = 0, model = {}) { function html(current_drive_order = 0, model = {}) {
if (themeOptions.version && themeOptions.version !== '') {
themeOptions.version = '@' + themeOptions.version;
}
return ` return `
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@ -150,7 +155,7 @@ function html(current_drive_order = 0, model = {}) {
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/> <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>
<title>${authConfig.siteName}</title> <title>${authConfig.siteName}</title>
<style> <style>
@import url(${themeOptions.cdn}/dist/style.css); @import url(${themeOptions.cdn}${themeOptions.version}/dist/style.css);
</style> </style>
<script> <script>
window.gdconfig = JSON.parse('${JSON.stringify({ window.gdconfig = JSON.parse('${JSON.stringify({
@ -167,7 +172,9 @@ function html(current_drive_order = 0, model = {}) {
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<script src="${themeOptions.cdn}/dist/app.js"></script> <script src="${themeOptions.cdn}${
themeOptions.version
}/dist/app.js"></script>
</body> </body>
</html> </html>
`; `;

View File

@ -1,6 +1,6 @@
{ {
"name": "go2index-theme-acrou", "name": "go2index-theme-acrou",
"version": "2.0.8", "version": "2.0.9",
"g2index": "1.1.2", "g2index": "1.1.2",
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",