sr-npm 1.7.701 → 1.7.702
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/eslint.config.mjs +22 -3
- package/package.json +2 -1
- package/pages/careersMultiBoxesPage.js +7 -6
- package/pages/careersPage.js +4 -2
package/eslint.config.mjs
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import globals from "globals";
|
|
2
|
+
import js from "@eslint/js";
|
|
2
3
|
import { defineConfig } from "eslint/config";
|
|
3
4
|
|
|
4
5
|
export default defineConfig([
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// Core recommended rules (includes no-undef, no-unused-vars, etc.)
|
|
7
|
+
js.configs.recommended,
|
|
8
|
+
|
|
9
|
+
// Node backend files
|
|
10
|
+
{
|
|
11
|
+
files: ["backend/**/*.js"],
|
|
12
|
+
languageOptions: {
|
|
13
|
+
sourceType: "commonjs",
|
|
14
|
+
globals: { ...globals.node },
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
// Browser/frontend files
|
|
19
|
+
{
|
|
20
|
+
files: ["pages/**/*.js", "public/**/*.js"],
|
|
21
|
+
languageOptions: {
|
|
22
|
+
sourceType: "commonjs",
|
|
23
|
+
globals: { ...globals.browser },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sr-npm",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.702",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"tests-utils": "^1.0.7"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
+
"@eslint/js": "^9.39.0",
|
|
31
32
|
"eslint": "^9.38.0",
|
|
32
33
|
"globals": "^16.4.0",
|
|
33
34
|
"prettier": "^3.6.2"
|
|
@@ -16,8 +16,9 @@ const pagination = {
|
|
|
16
16
|
pageSize: 10,
|
|
17
17
|
currentPage: 1,
|
|
18
18
|
};
|
|
19
|
-
async function careersMultiBoxesPageOnReady(_$w,
|
|
20
|
-
console.log("
|
|
19
|
+
async function careersMultiBoxesPageOnReady(_$w,urlParams,my_obj) {
|
|
20
|
+
console.log("urlParams: ", urlParams);
|
|
21
|
+
console.log("my_obj: ", my_obj);
|
|
21
22
|
await loadData(_$w);
|
|
22
23
|
await loadJobsRepeater(_$w);
|
|
23
24
|
await loadFilters(_$w);
|
|
@@ -29,12 +30,12 @@ async function careersMultiBoxesPageOnReady(_$w,queryParams) {
|
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
32
|
await loadPaginationButtons(_$w);
|
|
32
|
-
await handleUrlParams(_$w,
|
|
33
|
+
await handleUrlParams(_$w,urlParams);
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
async function handleUrlParams(_$w,
|
|
36
|
-
if(
|
|
37
|
-
const brandValue = decodeURIComponent(
|
|
36
|
+
async function handleUrlParams(_$w,urlParams) {
|
|
37
|
+
if(urlParams.Brand) {
|
|
38
|
+
const brandValue = decodeURIComponent(urlParams.Brand);
|
|
38
39
|
console.log("brandValue: ", brandValue);
|
|
39
40
|
console.log("selectedByField: ", selectedByField);
|
|
40
41
|
console.log("optionsByFieldId: ", optionsByFieldId);
|
package/pages/careersPage.js
CHANGED
|
@@ -25,14 +25,16 @@ const {
|
|
|
25
25
|
let searchInputBlurredFirstTime=true;
|
|
26
26
|
let siteconfig;
|
|
27
27
|
|
|
28
|
-
async function careersPageOnReady(_$w,thisObject=null,queryParams=null) {
|
|
28
|
+
async function careersPageOnReady(_$w,thisObject=null,queryParams=null,my_obj) {
|
|
29
29
|
if(siteconfig===undefined) {
|
|
30
30
|
const queryResult = await wixData.query(COLLECTIONS.SITE_CONFIGS).find();
|
|
31
31
|
siteconfig = queryResult.items[0];
|
|
32
32
|
}
|
|
33
|
+
console.log("queryParams inside careers: ", queryParams);
|
|
34
|
+
console.log("my_obj inside careers: ", my_obj);
|
|
33
35
|
if(siteconfig.customFields==="true") {
|
|
34
36
|
console.log("queryParams$@#@$#@#$#$: ", queryParams);
|
|
35
|
-
await careersMultiBoxesPageOnReady(_$w,queryParams);
|
|
37
|
+
await careersMultiBoxesPageOnReady(_$w,queryParams,my_obj);
|
|
36
38
|
}
|
|
37
39
|
else{
|
|
38
40
|
console.log("queryParams: ", queryParams);
|