Skip to content

Commit

Permalink
依存関係を更新し、不要なコメントを削除しました。設定のデフォルト値を改善しました。
Browse files Browse the repository at this point in the history
  • Loading branch information
taisan11 committed Oct 30, 2024
1 parent 690af32 commit bc327da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 27 deletions.
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"dev": "bun run --hot src/server.ts"
},
"dependencies": {
"@hono/valibot-validator": "^0.4.0",
"@hono/valibot-validator": "^0.4.1",
"drizzle-orm": "^0.35.3",
"hono": "^4.6.6",
"hono": "^4.6.8",
"iconv-cp932": "^1.2.2",
"nanoid": "^5.0.7",
"nanoid": "^5.0.8",
"pathe": "^1.1.2",
"std-env": "^3.7.0",
"unenv": "^1.10.0",
Expand Down
27 changes: 3 additions & 24 deletions src/module/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ export type Config = {
description: string;
};
};
// user?: {
// [key:string]: {
// name: string;
// password: string;
// fullname: string;
// admin: boolean;
// };
// };
/**
* サイトの設定
*/
Expand Down Expand Up @@ -52,19 +44,6 @@ export type Config = {
};
saveformat: string;
};
// display?: {
// PRtext: string;
// PRlink: string;
// kokuti: {
// inIndex: boolean;
// inOther: boolean;
// };
// };
// kisei?: {
// "2jyuu": boolean;
// ShortPostRegulationSec: number;
// sinTorip: boolean;
// };
};
};

Expand All @@ -73,10 +52,10 @@ import { RuntimeName, runtimeInfo } from "std-env";
import { Plugin } from "./plugin";
import { driver } from "./storage";
export async function config():Promise<Config>{
configa.preference.site.use = runtimeInfo?.name ||"other"|| configa.preference.site.use;
configa.preference.site.use = runtimeInfo?.name ?? configa.preference.site.use ?? "other";
if (configa.preference.limit) {
configa.preference.limit.MaxSubject = configa.preference.limit.MaxSubject || 20;
configa.preference.limit.MaxSubject = configa.preference.limit.MaxSubject ?? 20;
}

return configa
return configa;
}

0 comments on commit bc327da

Please sign in to comment.