54 lines
1.7 KiB
JavaScript
54 lines
1.7 KiB
JavaScript
const name = window.FileBrowser.Name;
|
|
const disableExternal = window.FileBrowser.DisableExternal;
|
|
const externalLinks = window.FileBrowser.ExternalLinks;
|
|
const disableUsedPercentage = window.FileBrowser.DisableUsedPercentage;
|
|
const baseURL = window.FileBrowser.BaseURL;
|
|
const staticURL = window.FileBrowser.StaticURL;
|
|
const darkMode = window.FileBrowser.darkMode;
|
|
const recaptcha = window.FileBrowser.ReCaptcha;
|
|
const recaptchaKey = window.FileBrowser.ReCaptchaKey;
|
|
const signup = window.FileBrowser.Signup;
|
|
const version = window.FileBrowser.Version;
|
|
const commitSHA = window.FileBrowser.CommitSHA;
|
|
const logoURL = `${staticURL}/img/logo.png`;
|
|
const noAuth = window.FileBrowser.NoAuth;
|
|
const authMethod = window.FileBrowser.AuthMethod;
|
|
const loginPage = window.FileBrowser.LoginPage;
|
|
const enableThumbs = window.FileBrowser.EnableThumbs;
|
|
const resizePreview = window.FileBrowser.ResizePreview;
|
|
const enableExec = window.FileBrowser.EnableExec;
|
|
const externalUrl = window.FileBrowser.ExternalUrl
|
|
const origin = window.location.origin;
|
|
|
|
const settings = [
|
|
{ id: 'profile', label: 'Profile Management', component: 'ProfileSettings' },
|
|
{ id: 'shares', label: 'Share Management', component: 'SharesSettings', perm: { share: true } },
|
|
{ id: 'api', label: 'API Keys', component: 'ApiKeys', perm: { api: true } },
|
|
{ id: 'global', label: 'Global', component: 'GlobalSettings', perm: { admin: true } },
|
|
{ id: 'users', label: 'User Management', component: 'UserManagement' },
|
|
]
|
|
|
|
export {
|
|
name,
|
|
externalUrl,
|
|
disableExternal,
|
|
externalLinks,
|
|
disableUsedPercentage,
|
|
baseURL,
|
|
logoURL,
|
|
recaptcha,
|
|
recaptchaKey,
|
|
signup,
|
|
version,
|
|
commitSHA,
|
|
noAuth,
|
|
authMethod,
|
|
loginPage,
|
|
enableThumbs,
|
|
resizePreview,
|
|
enableExec,
|
|
origin,
|
|
darkMode,
|
|
settings
|
|
};
|