Files
Mickael Kerjean 90a2ae2b8e feature (config): make config look nicer
before this, our config.json didn't look user friendly with a massive:
{
    "general": {
        "name": null,
        "port": null,
        "host": "demo.filestash.app",
        "secret_key": "__REDACTED__",
        "force_ssl": null,
        "editor": null,
        "fork_button": null,
        "logout": null,
        "display_hidden": null,
        "refresh_after_upload": null,
        "upload_button": null,
        "upload_pool_size": null,
        "filepage_default_view": null,
        "filepage_default_sort": null,
        "cookie_timeout": null,
        "custom_css": null,
        "auto_connect": null,
        "enable_image": null,
        "remember_me": null
    },
    "features": {
        "api": {
            "enable": null,
            "api_key": "foobar ",
            "enabled": null
        },
        "share": {
            "enable": null,
            "default_access": null,
            "redirect": null
        },
     .....
}

which now translates to a much nicer:
{
    "general": {
         "host": "demo.filestash.app",
         "secret_key": "__REDACTED__"
    },
    "features": {
        "api": {
            "api_key": "foobar "
        },
    ...
}
2022-11-21 08:08:24 +11:00

24 lines
1.1 KiB
JavaScript

export {
URL_HOME, goToHome, URL_FILES, goToFiles, URL_VIEWER, goToViewer, URL_LOGIN,
goToLogin, URL_LOGOUT, goToLogout, urlParams, URL_ADMIN, URL_SHARE, URL_TAGS,
} from "./navigate";
export { opener } from "./mimetype";
export { debounce, throttle } from "./backpressure";
export { event } from "./events";
export { cache, setup_cache } from "./cache";
export { currentShare, currentBackend, findParams, setup_cache_state } from "./cache_state";
export {
pathBuilder, basename, dirname, absoluteToRelative, filetype, appendShareToUrl,
} from "./path";
export { memory } from "./memory";
export { prepare } from "./navigate";
export { invalidate, http_get, http_post, http_delete, http_options } from "./ajax";
export { prompt, alert, confirm } from "./popup";
export { notify } from "./notify";
export { gid, randomString } from "./random";
export { leftPad, format, copyToClipboard, objectGet, nop } from "./common";
export { getMimeType } from "./mimetype";
export { settings_get, settings_put } from "./settings";
export { FormObjToJSON, createFormBackend, autocomplete, JSONStringify } from "./form";
export { upload } from "./upload";