athena-ui-js 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,66 +1,66 @@
1
- //config for Athena UI
2
- //Author: Csaba Tóth https://github.com/csabatibortoth/
3
- //LICENCE: MIT
4
- //Repository: https://github.com/csabatibortoth/athena-ui
5
-
6
- export const BORDERED_CLASS = "default-cointainer-bordered";
7
-
8
- export const defaults = Object.freeze({
9
- version: "2.5.0",
10
- container_class: "container",
11
- header_class: "header-container",
12
- header_menu_class: "header-menu menu",
13
- wrapper_class: "wrapper-container",
14
- footer_class: "footer-container",
15
- footer_menu_class: "footer-menu menu",
16
- loginForm_class: "login-form form",
17
- registrationForm_class: "registration-form form",
18
- lostPasswordForm_class: "lost-password-form form",
19
- changePasswordForm_class: "change-password-form form",
20
-
21
- bordered: true,
22
- generateHeader: true,
23
- generateFooter: true,
24
- generateHeadercontent: true,
25
- generateFooterContent: true,
26
- generateWrappercontent: true,
27
- login_enabled: false,
28
- registration_enabled: false,
29
- lost_password_enabled: false,
30
- change_password_enabled: false,
31
- login_remember_me: false,
32
-
33
- header_title_text: "Athena UI",
34
- header_img_url: undefined,
35
- copyright: "Here is the bottom Copyright Text for website",
36
-
37
- // Language of the generated texts, see core/i18n.js
38
- locale: "en",
39
-
40
- // Cookie that keeps the session, and the lifetime (days) of a remembered session
41
- session_cookie: "athena_session",
42
- session_days: 7,
43
-
44
- // URL (relative to the page) of an extra classic script, loaded before the layout is generated
45
- customLoader: undefined
46
- });
47
-
48
- const config = { ...defaults };
49
-
50
- export default config;
51
-
52
- // Copies every known setting that is defined in the given sources onto the live config.
53
- export function applyConfig(...sources) {
54
- for (const source of sources) {
55
- if (!source) continue;
56
- for (const key of Object.keys(defaults)) {
57
- if (source[key] !== undefined) config[key] = source[key];
58
- }
59
- }
60
- return config;
61
- }
62
-
63
- // Appends the border class to a class list when borders are enabled.
64
- export function withBorder(className) {
65
- return config.bordered ? `${className} ${BORDERED_CLASS}` : className;
66
- }
1
+ //config for Athena UI
2
+ //Author: Csaba Tóth https://github.com/csabatibortoth/
3
+ //LICENCE: MIT
4
+ //Repository: https://github.com/csabatibortoth/athena-ui
5
+
6
+ export const BORDERED_CLASS = "default-cointainer-bordered";
7
+
8
+ export const defaults = Object.freeze({
9
+ version: "2.5.1",
10
+ container_class: "container",
11
+ header_class: "header-container",
12
+ header_menu_class: "header-menu menu",
13
+ wrapper_class: "wrapper-container",
14
+ footer_class: "footer-container",
15
+ footer_menu_class: "footer-menu menu",
16
+ loginForm_class: "login-form form",
17
+ registrationForm_class: "registration-form form",
18
+ lostPasswordForm_class: "lost-password-form form",
19
+ changePasswordForm_class: "change-password-form form",
20
+
21
+ bordered: true,
22
+ generateHeader: true,
23
+ generateFooter: true,
24
+ generateHeadercontent: true,
25
+ generateFooterContent: true,
26
+ generateWrappercontent: true,
27
+ login_enabled: false,
28
+ registration_enabled: false,
29
+ lost_password_enabled: false,
30
+ change_password_enabled: false,
31
+ login_remember_me: false,
32
+
33
+ header_title_text: "Athena UI",
34
+ header_img_url: undefined,
35
+ copyright: "Here is the bottom Copyright Text for website",
36
+
37
+ // Language of the generated texts, see core/i18n.js
38
+ locale: "en",
39
+
40
+ // Cookie that keeps the session, and the lifetime (days) of a remembered session
41
+ session_cookie: "athena_session",
42
+ session_days: 7,
43
+
44
+ // URL (relative to the page) of an extra classic script, loaded before the layout is generated
45
+ customLoader: undefined
46
+ });
47
+
48
+ const config = { ...defaults };
49
+
50
+ export default config;
51
+
52
+ // Copies every known setting that is defined in the given sources onto the live config.
53
+ export function applyConfig(...sources) {
54
+ for (const source of sources) {
55
+ if (!source) continue;
56
+ for (const key of Object.keys(defaults)) {
57
+ if (source[key] !== undefined) config[key] = source[key];
58
+ }
59
+ }
60
+ return config;
61
+ }
62
+
63
+ // Appends the border class to a class list when borders are enabled.
64
+ export function withBorder(className) {
65
+ return config.bordered ? `${className} ${BORDERED_CLASS}` : className;
66
+ }