@madgex/fert 7.0.3 → 7.0.5

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.
@@ -26,7 +26,7 @@ export async function getConfig(cpid, configNames = []) {
26
26
  for (let config of configNames) {
27
27
  const url = CONFIG_API.replace('{cpid}', cpid).replace('{config}', config);
28
28
  const { data } = await fetch(url).then((response) => response.json());
29
- const { value } = data[0];
29
+ const { value } = data?.[0] || {};
30
30
 
31
31
  result[config] = value;
32
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madgex/fert",
3
- "version": "7.0.3",
3
+ "version": "7.0.5",
4
4
  "description": "Tool to help build the V6 branding",
5
5
  "bin": {
6
6
  "fert": "./bin/cli.js"
@@ -61,7 +61,7 @@
61
61
  <div class="wrapper cf">
62
62
  <div class="primary-logo">
63
63
  <a href="/" aria-label="{{ translations.header["homepage"] }}">
64
- <img src="/_/jobseekers-frontend/assets/images/logo.png" title="bigworkbag.com" alt="bigworkbag.com logo"/>
64
+ <img src="/public/images/logo.png" title="bigworkbag.com" alt="bigworkbag.com logo"/>
65
65
  </a>
66
66
  </div>
67
67
  </div>
@@ -16,7 +16,7 @@
16
16
  {# Main Navigation #}
17
17
  <mds-dropdown-nav target="primary-nav_mobile" aria-label="{{ translations["primary-nav-button"] }}" class="toggle-nav_button toggle-nav--primary-nav">
18
18
  <svg aria-hidden="true" focusable="false" class="icon" alt="">
19
- <use href="/_/recruiterservices-frontend/assets/icons/icons.svg#icon-menu"></use>
19
+ <use href="/public/icons/icons.svg#icon-menu"></use>
20
20
  </svg>
21
21
  </mds-dropdown-nav>
22
22
  <div id="primary-nav_mobile" class="toggle-nav_content">
@@ -27,7 +27,7 @@
27
27
  {%- if isAuthenticated -%}
28
28
  <mds-dropdown-nav target="basket-nav_mobile" aria-label="{{ translations["basket-nav-button"] }}" class="toggle-nav_button toggle-nav--basket-nav">
29
29
  <svg aria-hidden="true" focusable="false" class="icon" alt="">
30
- <use href="/_/recruiterservices-frontend/assets/icons/icons.svg#icon-cart"></use>
30
+ <use href="/public/icons/icons.svg#icon-cart"></use>
31
31
  </svg>
32
32
  </mds-dropdown-nav>
33
33
  <div id="basket-nav_mobile" class="toggle-nav_content">
@@ -38,7 +38,7 @@
38
38
  {# User Navigation #}
39
39
  <mds-dropdown-nav target="user-nav_mobile" aria-label="{{ translations["user-nav-button"] }}" class="toggle-nav_button toggle-nav--user-nav">
40
40
  <svg aria-hidden="true" focusable="false" class="icon" alt="">
41
- <use href="/_/recruiterservices-frontend/assets/icons/icons.svg#icon-user"></use>
41
+ <use href="/public/icons/icons.svg#icon-user"></use>
42
42
  </svg>
43
43
  </mds-dropdown-nav>
44
44
  <div id="user-nav_mobile" class="toggle-nav_content">
@@ -53,7 +53,7 @@
53
53
  {# Primary Logo #}
54
54
  <div class="primary-logo">
55
55
  <a href="/">
56
- <img src="/_/recruiterservices-frontend/assets/images/logo.png" alt="{{ translations["logo-alt"] }}"/>
56
+ <img src="/public/images/logo.png" alt="{{ translations["logo-alt"] }}"/>
57
57
  </a>
58
58
  </div>
59
59
 
@@ -3,7 +3,7 @@
3
3
  <li class="nav_item">
4
4
  {%- set basketText -%}
5
5
  <svg aria-hidden="true" focusable="false" alt="" class="icon icon--inline">
6
- <use href="/_/recruiterservices-frontend/assets/icons/mds-icons.svg#icon-cart"></use>
6
+ <use href="/public/icons/mds-icons.svg#icon-cart"></use>
7
7
  </svg>
8
8
  {{ translations["basket"] }} {{ primaryRecruiter.basketCount }}
9
9
  {%- endset -%}
@@ -1,11 +1,10 @@
1
1
  {%- from templatePath + 'context/links.njk' import socialLinks -%}
2
-
3
2
  <ul class="social-links">
4
3
  {%- for item in socialLinks -%}
5
4
  <li class="social-links_item social-links_item--{{ item.label | lower }}">
6
5
  <a rel="nofollow" href="{{ item.href }}" target="_blank">
7
6
  <svg focusable="false" class="icon icon--inline" alt="">
8
- <use href="/_/recruiterservices-frontend/assets/icons/icons.svg#{{ item.icon }}"></use>
7
+ <use href="/public/icons/icons.svg#{{ item.icon }}"></use>
9
8
  </svg>
10
9
  <span class="hidden">{{ item.label }}</span>
11
10
  <span class="hidden">{{ translations["link-new-window"] }}</span>
@@ -2,7 +2,7 @@
2
2
  <li class="nav_item">
3
3
  <a href="/company">{{ params.primaryRecruiter.name | safe }}
4
4
  <svg aria-hidden="true" focusable="false" class="icon icon--inline" alt="">
5
- <use href="/_/recruiterservices-frontend/assets/icons/icons.svg#icon-settings"></use>
5
+ <use href="/public/icons/icons.svg#icon-settings"></use>
6
6
  </svg>
7
7
  </a>
8
8
  </li>
@@ -23,7 +23,7 @@
23
23
  <li class="nav_item">
24
24
  <a href="/account">{{ auth.credentials.username | safe }}
25
25
  <svg aria-hidden="true" focusable="false" class="icon icon--inline" alt="">
26
- <use href="/_/recruiterservices-frontend/assets/icons/icons.svg#icon-settings"></use>
26
+ <use href="/public/icons/icons.svg#icon-settings"></use>
27
27
  </svg>
28
28
  </a>
29
29
  </li>
@@ -33,4 +33,4 @@
33
33
  <li class="nav_item">
34
34
  <a href="/JOBSEEKERS-LINK">{{ translations["jobseekers-link"] }}</a>
35
35
  </li>
36
- </ul>
36
+ </ul>