goindex-theme-r/public/setting.js

45 lines
877 B
JavaScript
Raw Permalink Normal View History

2020-06-30 19:02:11 +08:00
var authConfig = {
2020-07-04 21:19:31 +08:00
version: "1.1.1",
roots: [
{
id: "",
name: "TeamDrive",
pass: "",
2020-06-30 19:02:11 +08:00
},
2020-07-04 21:19:31 +08:00
{
id: "root",
name: "PriveDrive",
pass: "",
},
{
id: "",
name: "folder1",
pass: "",
},
],
};
var themeOptions = {
// en/zh-chs/zh-cht
languages: "en",
render: {
head_md: true,
readme_md: true,
// 是否显示文件/文件夹描述(默认不显示)
// Show file/folder description or not (not shown by default)
desc: true,
},
video: {
api: "",
autoplay: true,
},
audio: {
autoplay: false,
},
2020-07-04 21:19:31 +08:00
};
window.gdconfig = JSON.parse(
JSON.stringify({ version: authConfig.version, themeOptions: themeOptions })
);
window.themeOptions = themeOptions;
window.gds = JSON.parse(JSON.stringify(authConfig.roots.map((it) => it.name)));
window.current_drive_order = 0;