Skip to content

Commit

Permalink
feat(web): add notification for sealaf
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 committed May 14, 2024
1 parent 9c6721b commit 8d7f3d7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,12 @@
"i18n-ally.keysInUse": [
"description.part2_whatever"
],
"jest.rootPath": "e2e"
"jest.rootPath": "e2e",
"typescript.tsdk": "node_modules/typescript/lib",
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
}
13 changes: 13 additions & 0 deletions server/src/initializer/initializer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,19 @@ export class InitializerService {
value: 'true',
desc: 'Whether to enable WebPromoPage',
},
{
public: true,
key: SettingKey.SealafNotification,
value: 'off',
desc: 'home page enable sealaf notification',
metadata: {
message: {
zh: '',
en: '',
},
gotoSite: '',
},
},
])

this.logger.verbose('Created default settings')
Expand Down
1 change: 1 addition & 0 deletions server/src/setting/entities/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export enum SettingKey {
LafDocUrl = 'laf_doc_url',

EnableWebPromoPage = 'enable_web_promo_page',
SealafNotification = 'sealaf_notification',
}

export class Setting {
Expand Down

0 comments on commit 8d7f3d7

Please sign in to comment.