western-world 3.0.650 → 3.0.651

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/.eslintrc.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "node": true,
5
+ "es6": true
6
+ },
7
+ "ignorePatterns": ["dist/**/*"],
8
+ "parserOptions": {
9
+ "sourceType": "module",
10
+ "ecmaVersion": 2020
11
+ },
12
+ "extends": [
13
+ "eslint:recommended",
14
+ "plugin:prettier/recommended"
15
+ ],
16
+ "plugins": [
17
+ "prettier"
18
+ ],
19
+ "rules": {
20
+ "prettier/prettier": [
21
+ "error",
22
+ {
23
+ "trailingComma": "none",
24
+ "arrowParens": "avoid",
25
+ "singleQuote": true,
26
+ "endOfLine": "auto",
27
+ "printWidth": 120,
28
+ "useTabs": false,
29
+ "tabWidth": 2,
30
+ "semi": true,
31
+ "bracketSpacing": true
32
+ }
33
+ ]
34
+ }
35
+ }
@@ -4,11 +4,11 @@ const TerserPlugin = require('terser-webpack-plugin');
4
4
  module.exports = {
5
5
  mode: 'production',
6
6
  entry: {
7
- index: './src/index.js',
7
+ index: './src/index.js'
8
8
  },
9
9
  output: {
10
10
  path: helpers.root('dist'),
11
- filename: '[name].js',
11
+ filename: '[name].js'
12
12
  },
13
13
  optimization: {
14
14
  minimizer: [
@@ -17,18 +17,18 @@ module.exports = {
17
17
  extractComments: true,
18
18
  terserOptions: {
19
19
  keep_classnames: true,
20
- keep_fnames: true,
21
- },
22
- }),
23
- ],
20
+ keep_fnames: true
21
+ }
22
+ })
23
+ ]
24
24
  },
25
25
  resolve: { extensions: ['.js'] },
26
26
  module: {
27
27
  rules: [
28
28
  {
29
29
  test: /\.svg$/,
30
- loader: 'svg-inline-loader',
31
- },
32
- ],
33
- },
30
+ loader: 'svg-inline-loader'
31
+ }
32
+ ]
33
+ }
34
34
  };
@@ -6,25 +6,25 @@ module.exports = {
6
6
  entry: './src/index.js',
7
7
  output: {
8
8
  filename: 'index.js',
9
- path: helpers.root('dist'),
9
+ path: helpers.root('dist')
10
10
  },
11
11
  resolve: { extensions: ['.js'] },
12
12
  module: {
13
13
  rules: [
14
14
  {
15
15
  test: /\.svg$/,
16
- loader: 'svg-inline-loader',
17
- },
18
- ],
16
+ loader: 'svg-inline-loader'
17
+ }
18
+ ]
19
19
  },
20
20
  plugins: [
21
21
  new HtmlWebpackPlugin({
22
- template: 'demo-templates/index.html', // to use demo-templates/index.html for dev mode and open it in the browser;
23
- }),
22
+ template: 'demo-templates/index.html' // to use demo-templates/index.html for dev mode and open it in the browser;
23
+ })
24
24
  ],
25
25
  devServer: {
26
26
  static: helpers.root('dist'),
27
27
  port: 9030,
28
28
  open: true
29
- },
29
+ }
30
30
  };
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "western-world",
3
- "version": "3.0.650",
3
+ "version": "3.0.651",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
7
  "start": "webpack serve --config config/webpack-dev",
8
8
  "build": "webpack --config config/webpack-build",
9
- "npm:publish": "npm run build & npm publish"
9
+ "npm:publish": "npm run build & npm publish",
10
+ "lint": "eslint .",
11
+ "lint:fix": "eslint . --fix"
10
12
  },
11
13
  "repository": {
12
14
  "type": "git",
@@ -20,7 +22,11 @@
20
22
  "homepage": "https://gitlab.com/koriUA/western-world#readme",
21
23
  "devDependencies": {
22
24
  "css-loader": "^5.2.1",
25
+ "eslint": "^8.54.0",
26
+ "eslint-config-prettier": "^9.0.0",
27
+ "eslint-plugin-prettier": "^5.0.1",
23
28
  "html-webpack-plugin": "^5.3.1",
29
+ "prettier": "^3.1.0",
24
30
  "sass": "^1.32.8",
25
31
  "sass-loader": "^11.0.1",
26
32
  "svg-inline-loader": "^0.8.2",
@@ -202,4 +202,4 @@ export const bank_building = `
202
202
  <rect x="4049" y="4526.3" class="bank_building_st12" width="377.4" height="12.3"/>
203
203
  </g>
204
204
  </symbol>
205
- `;
205
+ `;
@@ -15,4 +15,4 @@ export const clock_sign = `
15
15
  <rect class="clock-sign use-clock-sign-arrow use-clock-small-arrow-hour" style="display: var(--small-arrow-display, block)" x="4021.3" y="3895" width="2140" height="400"/>
16
16
  <circle class="clock-sign" cx="4096" cy="4096" r="500"/>
17
17
  </symbol>
18
- `;
18
+ `;
@@ -259,4 +259,4 @@ export const confetti = `
259
259
  </g>
260
260
  </g>
261
261
  </symbol>
262
- `
262
+ `;
@@ -2,4 +2,4 @@ export const dollar_sign = `
2
2
  <symbol id="dollar_sign" viewBox="0 0 8192 8192">
3
3
  <path style="fill: var(--dollar-sign-color, black)" d="M5709.2,2344c0-253.5-167.7-641.2-548-641.2c-380.2,0-637.4,0-637.4,0v1884.4h866.7c1073.6,0,1599.2,816.4,1599.2,1498.6 s0-206.9,0,749.3s-816.4,1448.2-1554.5,1448.2s-928.2,0-928.2,0v699h-659.8v-676.6c0,0-262.8,0-972.9,0s-1465-766.1-1465-1358.8 s0-704.5,0-704.5h1202.2v307.5c0,564.8,162.2,782.8,754.9,782.8s469.7,0,469.7,0V4448.3h-559.2c-849.9,0-1867.6-531.2-1867.6-1722.2 S2180.9,875.2,2991.7,875.2s861.1,0,861.1,0V209.8h687.8v665.4c0,0,72.7,0,917,0s1397.9,849.9,1397.9,1342s-22.4,536.8-22.4,536.8 H5705.7L5709.2,2344z M3258.2,1699.1c-290.8,11.2-712,301.9-712,961.8s518.2,939.4,805.2,939.4s477.2,0,477.2,0V1699.1 C3828.6,1699.1,3549,1687.9,3258.2,1699.1z M4525.6,4431.5v1904.9c0,0,249.8,0,656.1,0c406.3,0,648.6-439.9,648.6-999 s-425-905.8-652.4-905.8C4950.6,4431.5,4525.6,4431.5,4525.6,4431.5z"/>
4
4
  </symbol>
5
- `
5
+ `;
@@ -9,4 +9,4 @@ export const money_with_wings = `
9
9
  <use class="money_with_wings-right-wing" xlink:href="#wing" style="scale: -0.25 0.25; transform-origin: center center; translate: 970px 129px; rotate: -10deg;"></use>
10
10
  </g>
11
11
  </symbol>
12
- `;
12
+ `;
package/src/defs/star.js CHANGED
@@ -8,4 +8,4 @@ export const star = `
8
8
  <path id="star-body" class="star_st1" d="M6887.8,7406.4c194.5-208.6,4.9-707.8-375.2-1300.1c-380.1-592.3-331.8-829.8-305.6-942.1 s220.4-405.5,711.9-737.3c491.5-331.8,839.7-573.4,785.6-747.1c-54.1-173.7-636.5-242.5-1193.6-249.9s-936.3-25.6-1253.4-362.9 c-347.3-369.5-437-861.9-624.2-1332c-149.1-374.4-256-568-297.4-630.8c-20.5-31.1-30.3-34.4-52.4,3.3 c-22.1,37.7-312.1,497.3-518.6,1028.9c-206.4,531.7-457.9,1156.7-457.9,1156.7L883.9,3521.7c0,0,1479.5,1146.9,1583.5,1590.1 c104,443.2,17.2,741.4-176.1,1237c-193.3,495.6-159.7,1057.6-126.2,1143.6c0,0,317.8-20.5,845.4-416.2 c527.6-395.7,1003.5-764.3,1498.3-756.9C5003.7,6326.7,6425.8,7902,6887.8,7406.4z" />
9
9
  <path id="edge" d="M3955.9,652.1c122.1,0,258,239.2,468.6,873.3c210.5,634.1,348.6,996.1,720.9,1276.3 c344.1,258.9,1091.2,199.9,1495,229.4c403.9,29.5,767.6,101.6,834.8,306.4s-149.1,465.3-491.5,709.4 c-342.4,244.1-958.5,670.9-997.8,890.5c-39.3,219.5,93.4,564.4,376,967.5s560.3,1043.7,222.8,1321.4 c-337.5,277.7-876.5-8.2-1435.2-485c-400.2-341.5-809.4-575.9-1035.5-573.4c-226.1,2.5-699.6,216.3-1151,561.2 S1908.7,7440,1752.3,7340s-124.5-695.5-40.1-988.8c84.4-293.3,460.4-1045.3,261.3-1504.9s-664.4-766-917.5-966.7 c-253.1-200.7-606.2-553-563.6-697.1c42.6-144.2,921.6-167.1,1318.9-196.6s1043.7-106.5,1043.7-106.5s435.9-1158.7,693-1671.2 C3666.7,971.6,3815.8,652.1,3955.9,652.1z M3611,1721.1c-92.6,240.8-520.2,1312.4-549.7,1364s-137.6,62.3-137.6,62.3L879.8,3339.1 c92.6,163.8,1244.4,879,1378.7,1459.8c122.6,530.2-201.5,1359.9-286.7,1635.9c-85.2,276.1-41,595.6-41,595.6 s364.5-108.1,778.2-466.1s969.1-677.5,1396.7-669.3c427.6,8.2,1017.4,468.6,1177.2,591.5c159.7,122.9,905.2,793.8,1132.1,533.3 c226.9-260.5-302.3-971.6-436.6-1227.2s-327.7-556.2-240.8-964.2c86.8-408,892.1-900.3,1102.6-1039.6c210.5-139.3,349-271.7,349-326 c0-50-67.2-86-185.1-106.5c-276.4-48-571-29.5-1214.9-86.8s-837.2-267.9-936.3-336.7c-99.1-68.8-424.3-543.9-560.3-1000.2 c-187.7-629.7-340.8-862.6-340.8-862.6S3703.6,1480.3,3611,1721.1z" />
10
10
  </symbol>
11
- `;
11
+ `;
@@ -9,4 +9,4 @@ export const blur_filter = `
9
9
  <feMergeNode in="SourceGraphic"></feMergeNode>
10
10
  </feMerge>
11
11
  </filter>
12
- `
12
+ `;
@@ -54,4 +54,4 @@ export const bricks_pattern = `
54
54
  <rect x="5695.4" y="7220.5" class="brucks_st0" width="2427.2" height="903.8"/>
55
55
  </g>
56
56
  </pattern>
57
- `;
57
+ `;
@@ -11,4 +11,4 @@ export const elephant_pattern = `
11
11
  <path class="elephant_pattern_st1" d="M3287.1,1209.8c-38.7,36.7-451.6-193.4-359.7-325.3s298.4,111.3,298.4,111.3s44.7-191.1,153.4-203.6 C3487.9,779.6,3492.1,1015.3,3287.1,1209.8z"/>
12
12
  <path class="elephant_pattern_st1" d="M7615.8,2329c8.8-128.8-54.7-302.6-258.1-273.8c-203.5,28.8-111.5,611.2-135.1,733 c-23.5,121.8-213.3,99.3-366.3,94.5c-153-4.8-127.2-109.2-152.5-273.9c-25.3-164.7-64.2-470-460.6-458.7 c-519.3,14.7-488.6,519.4-492.4,634.4c-3.8,115-37.7,119.6-167.9,124.9c-130.2,5.3-321.8-31.2-396.5-146.6 c-146.9-226.8-154-868.4-154-868.4c-33.8,62.9-198.7,176.4-268,91.7c-69.3-84.7-40.9-230,41.6-283.9 c82.5-53.9,145.9,15.5,110.4,71.9c-35.5,56.4-77.6,7.7-93.6,20.1s-40.1,172.2,45.9,135.2c106.6-45.9,102.4-25.1,235.1-525 s638-634.3,1169.3-664.7s1218.6-14.8,1497.2,398.3s156.5,1349.9,110.5,1434.4c-46,84.5-93.5,71.9-99.9,54.4 c-6.4-17.5-64.7-23.8-121.2,9.9c-56.5,33.7-76.7,10-78-18.2C7580.6,2596,7606.9,2457.9,7615.8,2329z M7261.8,1381 c-105.2,1.7-96.3,193.9,15.8,177.8C7379.4,1544.2,7367,1379.3,7261.8,1381z"/>
13
13
  </pattern>
14
- `;
14
+ `;