sr-npm 1.7.518 → 2.0.8
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.
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Update Sites After Release Main
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
packages: write
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
update-sites:
|
|
18
|
+
uses: psdevteamenterprise/ci-workflows/.github/workflows/publish-and-notify.yml@main
|
|
19
|
+
with:
|
|
20
|
+
sites_to_update: "['psdevteamenterprise/tests-site', 'psdevteamenterprise/external-template', 'psdevteamenterprise/internal']"
|
|
21
|
+
|
|
22
|
+
secrets:
|
|
23
|
+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
24
|
+
NPM_TOKEN: ${{ secrets.PS_NPM_TOKEN }}
|
|
25
|
+
GH_APP_ID: ${{ secrets.GH_APP_ID }}
|
|
26
|
+
GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
27
|
+
WIX_CLI_API_KEY: ${{ secrets.WIX_CLI_TOKEN }}
|
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -3,8 +3,7 @@ const {wixData} = require('wix-data');
|
|
|
3
3
|
const { window } = require('@wix/site-window');
|
|
4
4
|
const { query,queryParams,onChange} = require("wix-location-frontend");
|
|
5
5
|
const { location } = require("@wix/site-location");
|
|
6
|
-
const { COLLECTIONS
|
|
7
|
-
const { getTokenFromCMS } = require('../backend/secretsData');
|
|
6
|
+
const { COLLECTIONS } = require('../backend/collectionConsts');
|
|
8
7
|
|
|
9
8
|
const {
|
|
10
9
|
debounce,
|
|
@@ -496,23 +495,13 @@ async function updateMapMarkers(_$w){
|
|
|
496
495
|
|
|
497
496
|
}
|
|
498
497
|
|
|
499
|
-
async function handleBrandDropdown(_$w)
|
|
500
|
-
const brands
|
|
501
|
-
|
|
502
|
-
try {
|
|
503
|
-
disableMultiBrand = await getTokenFromCMS(TOKEN_NAME.DISABLE_MULTI_BRAND);
|
|
504
|
-
} catch (e) {
|
|
505
|
-
if (e.message !== "[getTokenFromCMS], No disableMultiBrand found") throw e;
|
|
506
|
-
console.log("disableMultiBrand token wasn't found");
|
|
507
|
-
|
|
508
|
-
}
|
|
509
|
-
console.log("disableMultiBrand: ", disableMultiBrand);
|
|
510
|
-
if (brands.items.length > 1 && disableMultiBrand !== 'true') {
|
|
498
|
+
async function handleBrandDropdown(_$w){
|
|
499
|
+
const brands=await wixData.query(COLLECTIONS.BRANDS).find();
|
|
500
|
+
if(brands.items.length>1){
|
|
511
501
|
console.log("showing brand dropdown");
|
|
512
502
|
_$w('#dropdownBrand').show();
|
|
513
503
|
}
|
|
514
504
|
}
|
|
515
|
-
|
|
516
505
|
module.exports = {
|
|
517
506
|
careersPageOnReady,
|
|
518
507
|
};
|