Skip to content

Commit

Permalink
feat(web): home page add notification (#1971)
Browse files Browse the repository at this point in the history
* feat(web): add notification for sealaf

---------

Co-authored-by: HUAHUAI23 <lim@outlook.com>
  • Loading branch information
HUAHUAI23 and HUAHUAI23 committed May 14, 2024
1 parent f0c7a58 commit 366649f
Show file tree
Hide file tree
Showing 6 changed files with 8,880 additions and 3 deletions.
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
Loading

0 comments on commit 366649f

Please sign in to comment.