removed unused code
Massimo Melina committed
Mar 4, 2023 at 11:31 UTC
34645ea449682773469613b59c814fa8b3d54a0e
2 files changed
-10
frontend/src/state.ts
-6
@@ -26,7 +26,6 @@ export const state = proxy<{
26
sortNumerics: boolean,
27
theme: string,
28
adminUrl?: string,
29
- serverConfig?: any,
29
loginRequired?: boolean, // force user to login before proceeding
30
messageOnly?: string, // no gui, just show this message
31
can_upload?: boolean
@@ -62,11 +61,6 @@ loadSettings()
61
for (const k of SETTINGS_TO_STORE)
62
subscribeKey(state, k, storeSettings)
63
65
-// load server config
66
-setTimeout(() =>
67
- apiCall('config', {}, { noModal: true }).then(res =>
68
- state.serverConfig = res) )
69
-
64
function loadSettings() {
65
const json = localStorage.getItem(SETTINGS_KEY)
66
if (!json) return
src/frontEndApis.ts
-4
@@ -26,10 +26,6 @@ export const frontEndApis: ApiHandlers = {
26
file_list,
27
...api_auth,
28
29
- config() {
30
- return Object.fromEntries([customHeader].map(x => [x.key(), x.get()]))
31
- },
32
-
29
get_notifications({ channel }, ctx) {
30
apiAssertTypes({ string: { channel } })
31
const list = new SendListReadable()