migrate to "export default"

also, set no-use-before-define in linter
This commit is contained in:
Girish Ramakrishnan
2026-02-14 15:43:24 +01:00
parent ddb46646fa
commit 36aa641cb9
231 changed files with 2846 additions and 2728 deletions
+18 -17
View File
@@ -3,44 +3,36 @@ import apps from './apps.js';
import AuditSource from './auditsource.js';
import BoxError from './boxerror.js';
import blobs from './blobs.js';
import * as branding from './branding.js';
import branding from './branding.js';
import constants from './constants.js';
import crypto from 'node:crypto';
import * as dashboard from './dashboard.js';
import dashboard from './dashboard.js';
import debugModule from 'debug';
import * as dns from './dns.js';
import dns from './dns.js';
import ejs from 'ejs';
import express from 'express';
import eventlog from './eventlog.js';
import fs from 'node:fs';
import * as marked from 'marked';
import * as middleware from './middleware/index.js';
import middleware from './middleware/index.js';
import oidcClients from './oidcclients.js';
import * as passkeys from './passkeys.js';
import passkeys from './passkeys.js';
import path from 'node:path';
import paths from './paths.js';
import http from 'node:http';
import { HttpError } from '@cloudron/connect-lastmile';
import * as jose from 'jose';
import safe from 'safetydance';
import * as settings from './settings.js';
import settings from './settings.js';
import superagent from '@cloudron/superagent';
import * as tokens from './tokens.js';
import tokens from './tokens.js';
import url from 'node:url';
import * as users from './users.js';
import * as groups from './groups.js';
import users from './users.js';
import groups from './groups.js';
import util from 'node:util';
const debug = debugModule('box:oidcserver');
export {
start,
stop,
revokeByUsername,
consumeAuthCode,
cleanupExpired,
};
// 1. Index.vue starts the OIDC flow by navigating to /openid/auth. Webadmin sets callback url to authcallback.html + implicit flow
// 2. oidcserver starts an interaction and redirects to oidc_login.html
@@ -722,3 +714,12 @@ async function stop() {
gHttpServer = null;
gOidcProvider = null;
}
export default {
start,
stop,
revokeByUsername,
consumeAuthCode,
cleanupExpired,
};