Email tempaltes (#853)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2022-01-24 10:35:58 +01:00
committed by GitHub
parent 390a4b28d1
commit 52baf5444d
64 changed files with 1816 additions and 125 deletions
+29 -3
View File
@@ -42,6 +42,19 @@ export interface Integration extends Doc {
value: string
}
/**
* @public
*/
export interface SettingsCategory extends Doc {
name: string
label: IntlString
icon: Asset
component: AnyComponent
// If defined, will sort using order.
order?: number
}
/**
* @public
*/
@@ -49,13 +62,23 @@ export const settingId = 'setting' as Plugin
export default plugin(settingId, {
ids: {
SettingApp: '' as Ref<Doc>
SettingApp: '' as Ref<Doc>,
Profile: '' as Ref<Doc>,
Password: '' as Ref<Doc>,
Setting: '' as Ref<Doc>,
Integrations: '' as Ref<Doc>,
ManageStatuses: '' as Ref<Doc>,
Support: '' as Ref<Doc>,
Privacy: '' as Ref<Doc>,
Terms: '' as Ref<Doc>
},
class: {
SettingsCategory: '' as Ref<Class<SettingsCategory>>,
Integration: '' as Ref<Class<Integration>>,
IntegrationType: '' as Ref<Class<IntegrationType>>
},
component: {
Settings: '' as AnyComponent,
Profile: '' as AnyComponent,
Password: '' as AnyComponent,
Setting: '' as AnyComponent,
@@ -66,6 +89,7 @@ export default plugin(settingId, {
Terms: '' as AnyComponent
},
string: {
Settings: '' as IntlString,
Setting: '' as IntlString,
Integrations: '' as IntlString,
ManageStatuses: '' as IntlString,
@@ -87,7 +111,8 @@ export default plugin(settingId, {
Saved: '' as IntlString,
EnterCurrentPassword: '' as IntlString,
EnterNewPassword: '' as IntlString,
RepeatNewPassword: '' as IntlString
RepeatNewPassword: '' as IntlString,
Signout: '' as IntlString
},
icon: {
EditProfile: '' as Asset,
@@ -96,6 +121,7 @@ export default plugin(settingId, {
Integrations: '' as Asset,
Support: '' as Asset,
Privacy: '' as Asset,
Terms: '' as Asset
Terms: '' as Asset,
Signout: '' as Asset
}
})