Skip to content

Commit 30918d4

Browse files
committed
wip: Provide ready-made configuration snippets to help set up the app's configuration file #1140
1 parent 51af4a6 commit 30918d4

File tree

3 files changed

+44
-1
lines changed

3 files changed

+44
-1
lines changed

core/client/i18n/core_en.json

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
"NEED_HELP": "Help needed ?",
3232
"READ_MORE": "Read more",
3333
"BACK": "Return",
34+
"LEGAL_NOTICE": "Legal notice",
35+
"PRIVACY_POLICY": "Privacy policy",
3436
"layout": {
3537
"SETTINGS": "My settings",
3638
"ABOUT": "About",

core/client/i18n/core_fr.json

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
"NEED_HELP": "Besoin d'aide ?",
3232
"READ_MORE": "En savoir plus",
3333
"BACK": "Retour",
34+
"LEGAL_NOTICE": "Mentions légales",
35+
"PRIVACY_POLICY": "Politique de confidentialité",
3436
"layout": {
3537
"SETTINGS": "Mes paramètres",
3638
"ABOUT": "A propos",

extras/configs/panes.left.js

+40-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,46 @@ module.exports = {
3131
component: 'app/KAbout', title: 'ABOUT', okAction: 'CLOSE'
3232
}
3333
},
34-
onlineHelp: (url) => {
34+
PLATFORM_INFO: {
35+
id: 'platform-info',
36+
icon: 'las la-desktop',
37+
label: 'KAbout.PLATFORM_INFO',
38+
stack: true,
39+
dialog: {
40+
title: 'KAbout.PLATFORM_INFO',
41+
component: 'app/KPlatform',
42+
okAction: 'CLOSE',
43+
widthPolicy: 'narrow'
44+
}
45+
},
46+
REPORT_BUG: {
47+
id: 'report-bug',
48+
icon: 'las la-bug',
49+
label: 'KAbout.BUG_REPORT',
50+
stack: true,
51+
component: 'action/KBugReportAction'
52+
},
53+
legalNotice: (options) => {
54+
return Object.assign({
55+
id: 'legal-notice',
56+
icon: 'las la-gavel',
57+
label: 'LEGAL_NOTICE',
58+
dialog: {
59+
title: 'LEGAL_NOTICE',
60+
component: 'document/KHtml',
61+
'component.url': 'legal-notice.html',
62+
okAction: 'CLOSE'
63+
}
64+
}, options)
65+
},
66+
privacyPolicy: (options) => {
67+
return Object.assign({
68+
id: 'privacy-policy',
69+
icon: 'las la-shield-alt',
70+
label: 'PRIVACY_POLICY'
71+
}, options)
72+
},
73+
onlineHelp: (options) => {
3574
return {
3675
id: 'online-help-action',
3776
icon: 'las la-book',

0 commit comments

Comments
 (0)