workspace: upgrade to mantine@9 and cordis@4-rc

This commit is contained in:
undefined committed 2026-04-04 06:47:46 +08:00
1 parent 19d278f6ef
commit d01dbc6e20
23 files changed
+93 -90

No files matched your search

+17 -16
View File
@@ -17,6 +17,7 @@
"@aws-sdk/s3-presigned-post": "3.726.1",
"@aws-sdk/s3-request-presigner": "3.726.1",
"@babel/code-frame": "^7.29.0",
"@cordisjs/plugin-logger": "^1.0.1",
"@cordisjs/plugin-timer": "1.1.1",
"@hydrooj/common": "workspace:^",
"@hydrooj/framework": "workspace:^",
@@ -24,29 +25,29 @@
"@mongodb-js/saslprep": "^1.4.6",
"@simplewebauthn/server": "13.2.2",
"@undefined-moe/require-resolve-hook": "^1.1.0",
"@zip.js/zip.js": "^2.8.21",
"@zip.js/zip.js": "^2.8.26",
"adm-zip": "0.5.16",
"cac": "^6.7.14",
"cordis": "4.0.0-beta.5",
"csv-stringify": "^6.6.0",
"cac": "^7.0.0",
"cordis": "4.0.0-rc.0",
"csv-stringify": "^6.7.0",
"emoji-regex": "^10.6.0",
"emojis-list": "2.1.0",
"fs-extra": "^11.3.3",
"fs-extra": "^11.3.4",
"js-yaml": "^4.1.1",
"koa-proxies": "^0.12.4",
"koa-static-cache": "^5.1.4",
"lodash": "^4.17.23",
"lru-cache": "^11.2.6",
"lodash": "^4.18.1",
"lru-cache": "^11.2.7",
"mime-types": "^3.0.2",
"moment-timezone": "^0.6.0",
"mongodb": "^7.1.0",
"moment-timezone": "^0.6.1",
"mongodb": "^7.1.1",
"mongodb-uri": "^0.9.7",
"nanoid": "^5.1.6",
"nodemailer": "^8.0.1",
"nanoid": "^5.1.7",
"nodemailer": "^8.0.4",
"notp": "^2.0.3",
"p-queue": "^9.1.0",
"sanitize-filename": "^1.6.3",
"schemastery": "^3.17.2",
"p-queue": "^9.1.1",
"sanitize-filename": "^1.6.4",
"schemastery": "^3.18.0",
"semver": "^7.7.4",
"shorty.js": "^1.0.1",
"superagent": "^10.3.0",
@@ -55,7 +56,7 @@
"ua-parser-js": "1.0.41"
},
"devDependencies": {
"@types/adm-zip": "^0.5.7",
"@types/adm-zip": "^0.5.8",
"@types/babel__code-frame": "^7.27.0",
"@types/fs-extra": "^11.0.4",
"@types/js-yaml": "^4.0.9",
@@ -68,7 +69,7 @@
"@types/semver": "^7.7.1",
"@types/superagent": "^8.1.9",
"@types/ua-parser-js": "^0.7.39",
"chokidar": "^4.0.3",
"chokidar": "^5.0.0",
"moment": "^2.30.1"
}
}
+1 -1
View File
@@ -48,7 +48,7 @@ export default class OauthModel extends Service {
this.coll = ctx.db.collection('oauth');
}
async [Context.init]() {
async [Service.init]() {
await this.ctx.db.ensureIndexes(this.coll,
{ key: { platform: 1, id: 1 }, name: 'platform_id', unique: true },
{ key: { uid: 1, platform: 1 }, name: 'uid_platform' },
+1 -1
View File
@@ -55,7 +55,7 @@ export class MongoService extends Service {
return mongourl;
}
async *[Context.init]() {
async *[Service.init]() {
const mongourl = await MongoService.getUrl();
const url = mongoUri.parse(mongourl);
this.client = await MongoClient.connect(mongourl);
+1 -1
View File
@@ -44,7 +44,7 @@ export class SettingService extends Service {
super(ctx, 'setting');
}
async [Context.init]() {
async [Service.init]() {
const payload = await this.ctx.db.collection('system').find({}).toArray();
this.initialValues = Object.fromEntries(payload.map((v) => [v._id, v.value]));
return await this.loadConfig();