weg-shared-layout 0.0.24 → 0.0.25
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.
- package/dist/cjs/weg-footer_2.cjs.entry.js +218 -193
- package/dist/collection/components/weg-footer/weg-footer.css +97 -45
- package/dist/collection/components/weg-footer/weg-footer.js +22 -26
- package/dist/collection/components/weg-header/weg-header.css +33 -32
- package/dist/collection/components/weg-header/weg-header.js +142 -138
- package/dist/collection/styles/shared.css +3 -3
- package/dist/collection/utils/layout.js +57 -9
- package/dist/components/p-BnMIy-A5.js +1 -0
- package/dist/components/weg-footer.js +1 -1
- package/dist/components/weg-header.js +1 -1
- package/dist/esm/weg-footer_2.entry.js +218 -193
- package/dist/types/components/weg-footer/weg-footer.d.ts +2 -2
- package/dist/types/components/weg-header/weg-header.d.ts +14 -11
- package/dist/types/components.d.ts +6 -6
- package/dist/types/types/layout-data.d.ts +13 -27
- package/dist/types/utils/layout.d.ts +9 -1
- package/dist/weg-shared-layout/p-d74a58cf.entry.js +1 -0
- package/dist/weg-shared-layout/weg-shared-layout.esm.js +1 -1
- package/docs/angular-integration-guide.md +81 -103
- package/docs/angular.md +9 -27
- package/docs/nextjs.md +11 -10
- package/docs/react.md +3 -3
- package/docs/vanilla.md +8 -10
- package/package.json +1 -1
- package/readme.md +16 -42
- package/src/assets/dummy-data.json +221 -147
- package/dist/collection/components/weg-header/signed-in-layout.js +0 -13
- package/dist/collection/constants/weg-urls.js +0 -18
- package/dist/components/p-DbIEJ3IT.js +0 -1
- package/dist/types/components/weg-header/signed-in-layout.d.ts +0 -18
- package/dist/types/constants/weg-urls.d.ts +0 -18
- package/dist/weg-shared-layout/p-c6ec3888.entry.js +0 -1
- package/src/constants/weg-urls.ts +0 -23
package/readme.md
CHANGED
|
@@ -18,73 +18,47 @@ Load layout JSON from your CMS/API (e.g. [`GET /api/layout`](https://weg-payload
|
|
|
18
18
|
|
|
19
19
|
### Layout shape (abbreviated)
|
|
20
20
|
|
|
21
|
-
Full reference: [`src/assets/dummy-data.json`](src/assets/dummy-data.json).
|
|
21
|
+
Full reference: [`src/assets/dummy-data.json`](src/assets/dummy-data.json). Sign-in is a normal `header.menu` entry labelled **Sign in**; it fires `wegAuthClick`. Signed-in nav is built into `<weg-header>` when `signed-in` is true.
|
|
22
22
|
|
|
23
23
|
```json
|
|
24
24
|
{
|
|
25
25
|
"header": {
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
"menu": [
|
|
27
|
+
{ "label": "Find a job", "items": [{ "label": "Graduates", "href": "…" }] },
|
|
28
|
+
{ "label": "Career advice", "href": "…" },
|
|
29
|
+
{ "label": "Sign in", "href": "…" }
|
|
30
|
+
]
|
|
30
31
|
},
|
|
31
32
|
"footer": {
|
|
33
|
+
"menu": [[{ "label": "About WEG", "href": "…" }]],
|
|
32
34
|
"social": [{ "platform": "LinkedIn", "href": "…" }],
|
|
33
|
-
"columns": [{ "links": [{ "label": "About WEG", "href": "…" }] }],
|
|
34
35
|
"credits": "…",
|
|
35
36
|
"copyright": "…"
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
```
|
|
39
40
|
|
|
40
|
-
Use **`dummy-data.json`** for full production URLs. In your app, keep sign-in/out URLs in a local constants file:
|
|
41
|
-
|
|
42
|
-
```ts
|
|
43
|
-
// auth.ts (host app — example)
|
|
44
|
-
export const HEADER_SIGN_IN = {
|
|
45
|
-
label: 'Sign in',
|
|
46
|
-
href: 'https://account.warwickemploymentgroup.com/account/login',
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export const ACCOUNT_LOGIN_HREF = HEADER_SIGN_IN.href;
|
|
50
|
-
```
|
|
51
|
-
|
|
52
41
|
| Field | Used when | Notes |
|
|
53
42
|
| --- | --- | --- |
|
|
54
|
-
| `header.
|
|
55
|
-
| `header.
|
|
56
|
-
| `
|
|
57
|
-
| `
|
|
58
|
-
| `footer
|
|
43
|
+
| `header.logoSrc` | Signed out | Optional CMS logo URL; bundled PNG if omitted |
|
|
44
|
+
| `header.menu` | Signed out | Groups use `items`; flat links use `href` |
|
|
45
|
+
| `footer.menu` | Always | `LayoutLink[][]` — one column per inner array |
|
|
46
|
+
| `footer.social` | Always | LinkedIn, Instagram, TikTok, or YouTube |
|
|
47
|
+
| `footer.credits` / `footer.copyright` | Always | Legal copy |
|
|
59
48
|
|
|
60
49
|
### Auth (Sign in / Sign out)
|
|
61
50
|
|
|
62
|
-
**Signed out
|
|
63
|
-
|
|
64
|
-
**Signed in** (`signed-in` true): **ignores** CMS nav and shows built-in links:
|
|
65
|
-
|
|
66
|
-
- Find a job
|
|
67
|
-
- Dashboard
|
|
68
|
-
- Manage Account (profile icon + `user-name`, or "Manage Account" if omitted)
|
|
69
|
-
- Sign out (with icon)
|
|
51
|
+
**Signed out**: renders `header.menu`. The Sign in entry fires `wegAuthClick` with action `sign-in`.
|
|
70
52
|
|
|
71
|
-
|
|
53
|
+
**Signed in** (`signed-in` true): ignores CMS `header.menu` and shows built-in Find a job, Dashboard, Manage Account, and Sign out.
|
|
72
54
|
|
|
73
|
-
|
|
55
|
+
Set **`signed-in`** from your app session state. Pass **`user-name`** for Manage Account.
|
|
74
56
|
|
|
75
57
|
```js
|
|
76
|
-
// auth.ts
|
|
77
|
-
const HEADER_SIGN_IN = {
|
|
78
|
-
label: 'Sign in',
|
|
79
|
-
href: 'https://account.warwickemploymentgroup.com/account/login',
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
header.signedIn = true;
|
|
83
|
-
header.userName = 'Alex';
|
|
84
58
|
header.addEventListener('wegAuthClick', (event) => {
|
|
85
59
|
event.preventDefault();
|
|
86
60
|
if (event.detail.action === 'sign-out') logout();
|
|
87
|
-
else window.location.href =
|
|
61
|
+
else window.location.href = HEADER_SIGN_IN.href;
|
|
88
62
|
});
|
|
89
63
|
```
|
|
90
64
|
|
|
@@ -1,147 +1,221 @@
|
|
|
1
|
-
{
|
|
2
|
-
"header": {
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
1
|
+
{
|
|
2
|
+
"header": {
|
|
3
|
+
"menu": [
|
|
4
|
+
{
|
|
5
|
+
"label": "Find a job",
|
|
6
|
+
"items": [
|
|
7
|
+
{
|
|
8
|
+
"label": "Professional & operational services",
|
|
9
|
+
"href": "https://www.warwickemploymentgroup.com/find-a-job/professional-and-operational-services"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"label": "Engineering & technology",
|
|
13
|
+
"href": "https://www.warwickemploymentgroup.com/find-a-job/engineering-and-technology"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"label": "Graduates",
|
|
17
|
+
"href": "https://www.warwickemploymentgroup.com/find-a-job/graduates"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"label": "Senior & leadership",
|
|
21
|
+
"href": "https://www.warwickemploymentgroup.com/find-a-job/senior-and-leadership"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"label": "Hire talent",
|
|
27
|
+
"items": [
|
|
28
|
+
{
|
|
29
|
+
"label": "Professional & operational services",
|
|
30
|
+
"href": "https://www.warwickemploymentgroup.com/hire-talent/professional-and-operational-services"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"label": "Engineering & technology",
|
|
34
|
+
"href": "https://www.warwickemploymentgroup.com/hire-talent/engineering-and-technology"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"label": "Graduates",
|
|
38
|
+
"href": "https://www.warwickemploymentgroup.com/hire-talent/graduates"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"label": "Executive search & selection",
|
|
42
|
+
"href": "https://www.warwickemploymentgroup.com/hire-talent/executive-search-and-selection"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"label": "HE solutions",
|
|
48
|
+
"items": [
|
|
49
|
+
{
|
|
50
|
+
"label": "Franchise solution",
|
|
51
|
+
"href": "https://www.warwickemploymentgroup.com/he-solutions/unitemps-franchise"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"label": "Disability support solution",
|
|
55
|
+
"href": "https://www.warwickemploymentgroup.com/he-solutions/disabillity-support"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"label": "Payroll bureau",
|
|
59
|
+
"href": "https://www.warwickemploymentgroup.com/he-solutions/payroll-bureau"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"label": "Career advice",
|
|
65
|
+
"href": "https://www.warwickemploymentgroup.com/career-advice"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"label": "Register",
|
|
69
|
+
"href": "https://account.warwickemploymentgroup.com/account/register"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"label": "Sign in",
|
|
73
|
+
"href": "https://account.warwickemploymentgroup.com/account/login"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"footer": {
|
|
78
|
+
"menu": [
|
|
79
|
+
[
|
|
80
|
+
{
|
|
81
|
+
"label": "Find a job",
|
|
82
|
+
"href": "https://www.warwickemploymentgroup.com/find-a-job"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"label": "Professional & operational services",
|
|
86
|
+
"href": "https://www.warwickemploymentgroup.com/find-a-job/professional-and-operational-services"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"label": "Engineering & technology",
|
|
90
|
+
"href": "https://www.warwickemploymentgroup.com/find-a-job/engineering-and-technology"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"label": "Graduates",
|
|
94
|
+
"href": "https://www.warwickemploymentgroup.com/find-a-job/graduates"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"label": "Senior & leadership",
|
|
98
|
+
"href": "https://www.warwickemploymentgroup.com/find-a-job/senior-and-leadership"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
{
|
|
103
|
+
"label": "Hire talent",
|
|
104
|
+
"href": "https://www.warwickemploymentgroup.com/hire-talent"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"label": "Professional & operational services",
|
|
108
|
+
"href": "https://www.warwickemploymentgroup.com/hire-talent/professional-and-operational-services"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"label": "Engineering & technology",
|
|
112
|
+
"href": "https://www.warwickemploymentgroup.com/hire-talent/engineering-and-technology"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"label": "Graduates",
|
|
116
|
+
"href": "https://www.warwickemploymentgroup.com/hire-talent/graduates"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"label": "Executive search & selection",
|
|
120
|
+
"href": "https://www.warwickemploymentgroup.com/hire-talent/executive-search-and-selection"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
[
|
|
124
|
+
{
|
|
125
|
+
"label": "HE solutions",
|
|
126
|
+
"href": "https://www.warwickemploymentgroup.com/he-solutions"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"label": "Franchise solution",
|
|
130
|
+
"href": "https://www.warwickemploymentgroup.com/he-solutions/unitemps-franchise"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"label": "Payroll bureau",
|
|
134
|
+
"href": "https://www.warwickemploymentgroup.com/he-solutions/payroll-bureau"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"label": "Disability support solution",
|
|
138
|
+
"href": "https://www.warwickemploymentgroup.com/he-solutions/disabillity-support"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
[
|
|
142
|
+
{
|
|
143
|
+
"label": "Career advice",
|
|
144
|
+
"href": "https://www.warwickemploymentgroup.com/career-advice"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"label": "News & events",
|
|
148
|
+
"href": "https://www.warwickemploymentgroup.com/news"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"label": "Insights",
|
|
152
|
+
"href": "https://www.warwickemploymentgroup.com/insights"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
[
|
|
156
|
+
{
|
|
157
|
+
"label": "About WEG",
|
|
158
|
+
"href": "https://www.warwickemploymentgroup.com/about"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"label": "Our brands",
|
|
162
|
+
"href": "https://www.warwickemploymentgroup.com/brands"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"label": "Careers at WEG",
|
|
166
|
+
"href": "https://www.warwickemploymentgroup.com/careers"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"label": "Contact us",
|
|
170
|
+
"href": "https://www.warwickemploymentgroup.com/contact"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
[
|
|
174
|
+
{
|
|
175
|
+
"label": "Privacy policy",
|
|
176
|
+
"href": "https://www.warwickemploymentgroup.com/privacy"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"label": "Terms of use",
|
|
180
|
+
"href": "https://www.warwickemploymentgroup.com/terms"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"label": "Cookie policy",
|
|
184
|
+
"href": "https://www.warwickemploymentgroup.com/cookies"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"label": "Accessibility statement",
|
|
188
|
+
"href": "https://www.warwickemploymentgroup.com/accessibility"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"label": "Diversity & inclusion",
|
|
192
|
+
"href": "https://www.warwickemploymentgroup.com/diversity"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"label": "Modern slavery",
|
|
196
|
+
"href": "https://www.warwickemploymentgroup.com/modern-slavery"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
],
|
|
200
|
+
"social": [
|
|
201
|
+
{
|
|
202
|
+
"platform": "LinkedIn",
|
|
203
|
+
"href": "https://www.linkedin.com/company/warwickemploymentgroup/"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"platform": "TikTok",
|
|
207
|
+
"href": "https://www.tiktok.com/@weg_updates"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"platform": "Instagram",
|
|
211
|
+
"href": "https://www.instagram.com/warwickemploymentgroup/"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"platform": "YouTube",
|
|
215
|
+
"href": "https://www.youtube.com/@WarwickEmploymentGroup"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"credits": "Warwick Employment Group is a department of the Campus and Commercial Services Group at the University of Warwick.",
|
|
219
|
+
"copyright": "Copyright © Warwick Employment Group."
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ACCOUNT_DASHBOARD_HREF, ACCOUNT_MANAGE_HREF, DEFAULT_LOGO_HREF, FIND_A_JOB_HREF, HEADER_SIGN_OUT, } from "../../constants/weg-urls";
|
|
2
|
-
export { DEFAULT_LOGO_HREF } from '../../constants/weg-urls';
|
|
3
|
-
export const SIGNED_IN_HEADER = {
|
|
4
|
-
logoHref: DEFAULT_LOGO_HREF,
|
|
5
|
-
links: [
|
|
6
|
-
{ label: 'Find a job', href: FIND_A_JOB_HREF },
|
|
7
|
-
{ label: 'Dashboard', href: ACCOUNT_DASHBOARD_HREF },
|
|
8
|
-
],
|
|
9
|
-
manageAccount: {
|
|
10
|
-
href: ACCOUNT_MANAGE_HREF,
|
|
11
|
-
},
|
|
12
|
-
signOut: HEADER_SIGN_OUT,
|
|
13
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** Canonical WEG site and account URLs — single source of truth for components, docs, and host apps. */
|
|
2
|
-
export const WEG_SITE_ORIGIN = 'https://www.warwickemploymentgroup.com';
|
|
3
|
-
export const ACCOUNT_ORIGIN = 'https://account.warwickemploymentgroup.com';
|
|
4
|
-
export const DEFAULT_LOGO_HREF = `${WEG_SITE_ORIGIN}/`;
|
|
5
|
-
export const FIND_A_JOB_HREF = `${WEG_SITE_ORIGIN}/find-a-job`;
|
|
6
|
-
export const CAREER_ADVICE_HREF = `${WEG_SITE_ORIGIN}/career-advice`;
|
|
7
|
-
export const ACCOUNT_LOGIN_HREF = `${ACCOUNT_ORIGIN}/account/login`;
|
|
8
|
-
export const ACCOUNT_REGISTER_HREF = `${ACCOUNT_ORIGIN}/account/register`;
|
|
9
|
-
export const ACCOUNT_DASHBOARD_HREF = `${ACCOUNT_ORIGIN}/dashboard`;
|
|
10
|
-
export const ACCOUNT_MANAGE_HREF = `${ACCOUNT_ORIGIN}/account/manage`;
|
|
11
|
-
export const HEADER_SIGN_IN = {
|
|
12
|
-
label: 'Sign in',
|
|
13
|
-
href: ACCOUNT_LOGIN_HREF,
|
|
14
|
-
};
|
|
15
|
-
export const HEADER_SIGN_OUT = {
|
|
16
|
-
label: 'Sign out',
|
|
17
|
-
href: ACCOUNT_LOGIN_HREF,
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t){if("string"!=typeof t)return t;const n=t.trim();if(n)try{return JSON.parse(n)}catch{return}}function n(t){return"string"==typeof t&&t.trim().length>0}function r(t){if(!Array.isArray(t))return[];const r=[];for(const o of t){if(!o||"object"!=typeof o)continue;const t=o.label,e=o.href;n(t)&&n(e)&&r.push({label:t.trim(),href:e.trim()})}return r}export{n as i,r as n,t as p}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { DEFAULT_LOGO_HREF } from '../../constants/weg-urls';
|
|
2
|
-
export declare const SIGNED_IN_HEADER: {
|
|
3
|
-
readonly logoHref: "https://www.warwickemploymentgroup.com/";
|
|
4
|
-
readonly links: readonly [{
|
|
5
|
-
readonly label: "Find a job";
|
|
6
|
-
readonly href: "https://www.warwickemploymentgroup.com/find-a-job";
|
|
7
|
-
}, {
|
|
8
|
-
readonly label: "Dashboard";
|
|
9
|
-
readonly href: "https://account.warwickemploymentgroup.com/dashboard";
|
|
10
|
-
}];
|
|
11
|
-
readonly manageAccount: {
|
|
12
|
-
readonly href: "https://account.warwickemploymentgroup.com/account/manage";
|
|
13
|
-
};
|
|
14
|
-
readonly signOut: {
|
|
15
|
-
readonly label: "Sign out";
|
|
16
|
-
readonly href: "https://account.warwickemploymentgroup.com/account/login";
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** Canonical WEG site and account URLs — single source of truth for components, docs, and host apps. */
|
|
2
|
-
export declare const WEG_SITE_ORIGIN = "https://www.warwickemploymentgroup.com";
|
|
3
|
-
export declare const ACCOUNT_ORIGIN = "https://account.warwickemploymentgroup.com";
|
|
4
|
-
export declare const DEFAULT_LOGO_HREF = "https://www.warwickemploymentgroup.com/";
|
|
5
|
-
export declare const FIND_A_JOB_HREF = "https://www.warwickemploymentgroup.com/find-a-job";
|
|
6
|
-
export declare const CAREER_ADVICE_HREF = "https://www.warwickemploymentgroup.com/career-advice";
|
|
7
|
-
export declare const ACCOUNT_LOGIN_HREF = "https://account.warwickemploymentgroup.com/account/login";
|
|
8
|
-
export declare const ACCOUNT_REGISTER_HREF = "https://account.warwickemploymentgroup.com/account/register";
|
|
9
|
-
export declare const ACCOUNT_DASHBOARD_HREF = "https://account.warwickemploymentgroup.com/dashboard";
|
|
10
|
-
export declare const ACCOUNT_MANAGE_HREF = "https://account.warwickemploymentgroup.com/account/manage";
|
|
11
|
-
export declare const HEADER_SIGN_IN: {
|
|
12
|
-
readonly label: "Sign in";
|
|
13
|
-
readonly href: "https://account.warwickemploymentgroup.com/account/login";
|
|
14
|
-
};
|
|
15
|
-
export declare const HEADER_SIGN_OUT: {
|
|
16
|
-
readonly label: "Sign out";
|
|
17
|
-
readonly href: "https://account.warwickemploymentgroup.com/account/login";
|
|
18
|
-
};
|