goindex-theme-r/public/setting.js
2020-06-30 19:02:11 +08:00

41 lines
916 B
JavaScript

var authConfig = {
version: '1.1.1',
roots: [
{
id: "",
name: "TeamDrive",
pass: "",
},
{
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,
},
player: {
api: "",
autoplay: true
}
}
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;