decidim 0.24.3 → 0.25.0.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim might be problematic. Click here for more details.

Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -6
  3. data/babel.config.json +30 -0
  4. data/decidim-core/lib/decidim/webpacker/configuration.rb +89 -0
  5. data/decidim-core/lib/decidim/webpacker/postcss.config.js +16 -0
  6. data/decidim-core/lib/decidim/webpacker/runner.rb +24 -0
  7. data/decidim-core/lib/decidim/webpacker/webpack/base.js +6 -0
  8. data/decidim-core/lib/decidim/webpacker/webpack/custom.js +97 -0
  9. data/decidim-core/lib/decidim/webpacker/webpack/development.js +7 -0
  10. data/decidim-core/lib/decidim/webpacker/webpack/production.js +7 -0
  11. data/decidim-core/lib/decidim/webpacker/webpack/test.js +7 -0
  12. data/decidim-core/lib/decidim/webpacker/webpacker.yml +68 -0
  13. data/docs/README.adoc +1 -1
  14. data/docs/modules/configure/pages/initializer.adoc +31 -0
  15. data/docs/modules/customize/assets/images/modified_user_menu.png +0 -0
  16. data/docs/modules/customize/assets/images/original_user_menu.png +0 -0
  17. data/docs/modules/customize/pages/code.adoc +4 -1
  18. data/docs/modules/customize/pages/images.adoc +2 -2
  19. data/docs/modules/customize/pages/javascript.adoc +8 -3
  20. data/docs/modules/customize/pages/menu.adoc +56 -0
  21. data/docs/modules/customize/pages/styles.adoc +6 -3
  22. data/docs/modules/develop/pages/components.adoc +30 -0
  23. data/docs/modules/develop/pages/guide_migrate_webpacker_app.adoc +175 -0
  24. data/docs/modules/develop/pages/guide_migrate_webpacker_module.adoc +121 -0
  25. data/docs/modules/develop/pages/maps.adoc +2 -2
  26. data/docs/modules/develop/pages/newsletter_templates.adoc +1 -1
  27. data/docs/modules/develop/pages/releases.adoc +3 -1
  28. data/docs/modules/develop/pages/testing.adoc +11 -0
  29. data/docs/modules/develop/pages/view_models_aka_cells.adoc +1 -12
  30. data/docs/modules/install/pages/manual.adoc +46 -43
  31. data/docs/modules/services/pages/elections_bulletin_board.adoc +19 -16
  32. data/docs/modules/services/pages/social_providers.adoc +1 -1
  33. data/lib/decidim.rb +0 -4
  34. data/lib/decidim/version.rb +1 -1
  35. data/lib/tasks/decidim_tasks.rake +92 -0
  36. data/package-lock.json +38919 -0
  37. data/package.json +67 -0
  38. data/packages/all/package.json +22 -0
  39. data/packages/browserslist-config/index.js +7 -0
  40. data/packages/browserslist-config/package.json +17 -0
  41. data/packages/core/package.json +53 -0
  42. data/packages/dev/package.json +21 -0
  43. data/packages/elections/package.json +21 -0
  44. data/packages/eslint-config/index.js +278 -0
  45. data/packages/eslint-config/package.json +28 -0
  46. data/packages/stylelint-config/index.js +160 -0
  47. data/packages/stylelint-config/package.json +20 -0
  48. data/packages/webpacker/index.js +6 -0
  49. data/packages/webpacker/package.json +55 -0
  50. data/packages/webpacker/src/override-config.js +50 -0
  51. metadata +75 -45
data/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "decidim",
3
+ "description": "The participatory democracy framework",
4
+ "version": "0.25.0-rc1",
5
+ "repository": {
6
+ "url": "git@github.com:decidim/decidim.git",
7
+ "type": "git"
8
+ },
9
+ "author": "Marc Riera <mrc2407@gmail.com>",
10
+ "license": "AGPL-3.0",
11
+ "engines": {
12
+ "node": "^15.14.0",
13
+ "npm": "^7.7.2"
14
+ },
15
+ "files": [
16
+ "packages/**/*"
17
+ ],
18
+ "browserslist": [
19
+ "extends @decidim/browserslist-config"
20
+ ],
21
+ "scripts": {
22
+ "lint": "eslint -c .eslintrc.json --no-error-on-unmatched-pattern --ext .js,.jsx decidim-*",
23
+ "stylelint": "stylelint decidim-*/**/*.scss",
24
+ "test": "jest",
25
+ "test:watch": "npm run test -- --watch",
26
+ "test:ci": "npm run lint && npm run test"
27
+ },
28
+ "stylelint": {
29
+ "extends": "@decidim/stylelint-config"
30
+ },
31
+ "jest": {
32
+ "testURL": "https://decidim.dev/",
33
+ "setupFiles": [
34
+ "<rootDir>/decidim-core/spec/js/entry_test.js",
35
+ "raf/polyfill"
36
+ ],
37
+ "moduleFileExtensions": [
38
+ "js"
39
+ ],
40
+ "moduleDirectories": [
41
+ "node_modules",
42
+ "decidim-core/app/packs"
43
+ ],
44
+ "moduleNameMapper": {
45
+ "\\.(scss|css|less)$": "identity-obj-proxy"
46
+ },
47
+ "transform": {
48
+ "\\.yml$": "yaml-jest",
49
+ "\\.js$": "babel-jest"
50
+ },
51
+ "testRegex": "\\.(test|spec)\\.js$"
52
+ },
53
+ "dependencies": {
54
+ "@decidim/all": "file:packages/all"
55
+ },
56
+ "devDependencies": {
57
+ "@decidim/dev": "file:packages/dev",
58
+ "babel-jest": "^26.6.3",
59
+ "concat-stream": "^2.0.0",
60
+ "enzyme": "^3.11.0",
61
+ "enzyme-adapter-react-16": "^1.15.4",
62
+ "jest": "^26.6.3",
63
+ "jest-localstorage-mock": "^2.4.3",
64
+ "react-test-renderer": "^16.0.0",
65
+ "yaml-jest": "^1.0.5"
66
+ }
67
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@decidim/all",
3
+ "description": "All dependencies for Decidim",
4
+ "version": "0.25.0-dev",
5
+ "repository": {
6
+ "url": "git@github.com:decidim/decidim.git",
7
+ "type": "git",
8
+ "directory": "packages/all"
9
+ },
10
+ "author": "Decidim Contributors",
11
+ "license": "AGPL-3.0",
12
+ "engines": {
13
+ "node": "^15.14.0",
14
+ "npm": "^7.7.2"
15
+ },
16
+ "dependencies": {
17
+ "@decidim/browserslist-config": "file:../browserslist-config",
18
+ "@decidim/core": "file:../core",
19
+ "@decidim/elections": "file:../elections",
20
+ "@decidim/webpacker": "file:../webpacker"
21
+ }
22
+ }
@@ -0,0 +1,7 @@
1
+ module.exports = [ // eslint-disable-line
2
+ "> 0.5%",
3
+ "last 2 versions",
4
+ "Firefox ESR",
5
+ "IE 11",
6
+ "not dead"
7
+ ]
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@decidim/browserslist-config",
3
+ "description": "The Browserslist configuration for Decidim",
4
+ "version": "0.25.0-dev",
5
+ "repository": {
6
+ "url": "git@github.com:decidim/decidim.git",
7
+ "type": "git",
8
+ "directory": "packages/browserslist-config"
9
+ },
10
+ "author": "Decidim Contributors",
11
+ "license": "AGPL-3.0",
12
+ "engines": {
13
+ "node": "^15.14.0",
14
+ "npm": "^7.7.2"
15
+ },
16
+ "main": "index.js"
17
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@decidim/core",
3
+ "description": "The core dependencies for Decidim",
4
+ "version": "0.25.0-dev",
5
+ "repository": {
6
+ "url": "git@github.com:decidim/decidim.git",
7
+ "type": "git",
8
+ "directory": "packages/core"
9
+ },
10
+ "author": "Decidim Contributors",
11
+ "license": "AGPL-3.0",
12
+ "engines": {
13
+ "node": "^15.14.0",
14
+ "npm": "^7.7.2"
15
+ },
16
+ "dependencies": {
17
+ "@joeattardi/emoji-button": "^4.6.0",
18
+ "@zeitiger/appendaround": "^1.0.0",
19
+ "axios": "^0.21.1",
20
+ "bootstrap-tagsinput": "^0.7.1",
21
+ "classnames": "^2.2.5",
22
+ "d3": "5.4.0",
23
+ "diff": "^5.0.0",
24
+ "foundation-datepicker": "1.5.6",
25
+ "foundation-sites": "^6.6.3",
26
+ "graphiql": "^1.4.2",
27
+ "graphql-docs": "https://github.com/decidim/graphql-docs/raw/master/graphql-docs-0.2.1.tgz",
28
+ "html5sortable": "0.10.0",
29
+ "identity-obj-proxy": "^3.0.0",
30
+ "jquery": "^3.2.1",
31
+ "jquery-serializejson": "2.9.0",
32
+ "jquery.autocomplete": "1.2.0",
33
+ "leaflet": "1.3.1",
34
+ "leaflet-svgicon": "^0.0.2",
35
+ "leaflet-tilelayer-here": "1.0.2",
36
+ "leaflet.markercluster": "1.4.1",
37
+ "moment": "2.29.1",
38
+ "morphdom": "2.6.1",
39
+ "prop-types": "^15.7.2",
40
+ "quill": "1.3.7",
41
+ "raf": "^3.4.1",
42
+ "react": "^16.3.0",
43
+ "react-dom": "^16.3.0",
44
+ "react-i18nify": "^1.8.8",
45
+ "react-select": "^1.2.1",
46
+ "select": "^1.1.2",
47
+ "social-share-button": "2.2.0",
48
+ "svg4everybody": "2.1.9",
49
+ "tributejs": "5.1.3",
50
+ "unfetch": "^3.0.0",
51
+ "uuid": "^3.2.1"
52
+ }
53
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@decidim/dev",
3
+ "description": "The dev dependencies for Decidim",
4
+ "version": "0.25.0-dev",
5
+ "repository": {
6
+ "url": "git@github.com:decidim/decidim.git",
7
+ "type": "git",
8
+ "directory": "packages/dev"
9
+ },
10
+ "author": "Decidim Contributors",
11
+ "license": "AGPL-3.0",
12
+ "engines": {
13
+ "node": "^15.14.0",
14
+ "npm": "^7.7.2"
15
+ },
16
+ "dependencies": {
17
+ "@decidim/eslint-config": "file:../eslint-config",
18
+ "@decidim/stylelint-config": "file:../stylelint-config",
19
+ "axe-core": "^4.1.4"
20
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@decidim/elections",
3
+ "description": "The elections and votings dependencies for Decidim",
4
+ "version": "0.25.0-dev",
5
+ "repository": {
6
+ "url": "git@github.com:decidim/decidim.git",
7
+ "type": "git",
8
+ "directory": "packages/elections"
9
+ },
10
+ "author": "Decidim Contributors",
11
+ "license": "AGPL-3.0",
12
+ "engines": {
13
+ "node": "^15.14.0",
14
+ "npm": "^7.7.2"
15
+ },
16
+ "dependencies": {
17
+ "@codegram/decidim-bulletin_board": "0.21.2",
18
+ "@codegram/voting_schemes-dummy": "0.21.2",
19
+ "@codegram/voting_schemes-electionguard": "0.21.2"
20
+ }
21
+ }
@@ -0,0 +1,278 @@
1
+ module.exports = { // eslint-disable-line
2
+ "env": {
3
+ "browser": true,
4
+ "es6": true
5
+ },
6
+ "extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
7
+ "parser": "@babel/eslint-parser",
8
+ "parserOptions": {
9
+ "ecmaFeatures": {
10
+ "experimentalObjectRestSpread": true,
11
+ "jsx": true
12
+ },
13
+ "sourceType": "module"
14
+ },
15
+ "plugins": [
16
+ "react"
17
+ ],
18
+ "globals": {
19
+ "$": false,
20
+ "jQuery": false,
21
+ "React": false,
22
+ "ReactDOM": false,
23
+ "describe": false,
24
+ "it": false,
25
+ "expect": false,
26
+ "beforeEach": false,
27
+ "afterEach": false,
28
+ "sinon": false,
29
+ "GraphQLDocs": false,
30
+ "Quill": false,
31
+ "SVGInjector": false,
32
+ "require": false,
33
+ "DecidimAdmin": false,
34
+ "L": false,
35
+ "decidimBulletinBoard": false,
36
+ "Rails": false
37
+ },
38
+ "rules": {
39
+ "accessor-pairs": "error",
40
+ "array-bracket-spacing": "error",
41
+ "array-callback-return": "error",
42
+ "arrow-body-style": "off",
43
+ "arrow-parens": [
44
+ "error",
45
+ "always"
46
+ ],
47
+ "arrow-spacing": [
48
+ "error",
49
+ {
50
+ "after": true,
51
+ "before": true
52
+ }
53
+ ],
54
+ "block-scoped-var": "error",
55
+ "block-spacing": "off",
56
+ "callback-return": "error",
57
+ "camelcase": "error",
58
+ "class-methods-use-this": "off",
59
+ "comma-dangle": ["error", "never"],
60
+ "comma-spacing": [
61
+ "error",
62
+ {
63
+ "after": true,
64
+ "before": false
65
+ }
66
+ ],
67
+ "comma-style": [
68
+ "error",
69
+ "last"
70
+ ],
71
+ "complexity": "error",
72
+ "computed-property-spacing": [
73
+ "error",
74
+ "never"
75
+ ],
76
+ "consistent-return": "error",
77
+ "consistent-this": "error",
78
+ "curly": "error",
79
+ "default-case": "error",
80
+ "dot-location": "error",
81
+ "dot-notation": "error",
82
+ "eol-last": "error",
83
+ "eqeqeq": "error",
84
+ "func-call-spacing": "error",
85
+ "func-name-matching": "error",
86
+ "func-names": [
87
+ "error",
88
+ "never"
89
+ ],
90
+ "func-style": "error",
91
+ "generator-star-spacing": "error",
92
+ "global-require": "error",
93
+ "guard-for-in": "error",
94
+ "handle-callback-err": "error",
95
+ "id-blacklist": "error",
96
+ "id-length": "error",
97
+ "id-match": "error",
98
+ "indent": ["error", 2, { "VariableDeclarator": 2 }],
99
+ "init-declarations": "error",
100
+ "jsx-quotes": "error",
101
+ "key-spacing": "error",
102
+ "keyword-spacing": [
103
+ "error",
104
+ {
105
+ "after": true,
106
+ "before": true
107
+ }
108
+ ],
109
+ "line-comment-position": "error",
110
+ "linebreak-style": [
111
+ "error",
112
+ "unix"
113
+ ],
114
+ "lines-around-comment": "error",
115
+ "lines-around-directive": "error",
116
+ "max-depth": "error",
117
+ "max-len": "off",
118
+ "max-lines": "error",
119
+ "max-nested-callbacks": "error",
120
+ "max-params": "error",
121
+ "max-statements": "off",
122
+ "max-statements-per-line": "error",
123
+ "multiline-ternary": "error",
124
+ "new-cap": "error",
125
+ "new-parens": "error",
126
+ "newline-after-var": "off",
127
+ "newline-before-return": "off",
128
+ "newline-per-chained-call": "off",
129
+ "no-alert": "error",
130
+ "no-array-constructor": "error",
131
+ "no-bitwise": "error",
132
+ "no-caller": "error",
133
+ "no-catch-shadow": "error",
134
+ "no-confusing-arrow": "error",
135
+ "no-continue": "error",
136
+ "no-div-regex": "error",
137
+ "no-duplicate-imports": "error",
138
+ "no-else-return": "error",
139
+ "no-eq-null": "error",
140
+ "no-eval": "error",
141
+ "no-extend-native": "error",
142
+ "no-extra-bind": "error",
143
+ "no-extra-label": "error",
144
+ "no-extra-parens": "off",
145
+ "no-floating-decimal": "error",
146
+ "no-implicit-coercion": "error",
147
+ "no-implicit-globals": "error",
148
+ "no-implied-eval": "error",
149
+ "no-inline-comments": "error",
150
+ "no-invalid-this": "error",
151
+ "no-iterator": "error",
152
+ "no-label-var": "error",
153
+ "no-labels": "error",
154
+ "no-lone-blocks": "error",
155
+ "no-lonely-if": "error",
156
+ "no-loop-func": "error",
157
+ "no-magic-numbers": "off",
158
+ "no-mixed-requires": "error",
159
+ "no-multi-spaces": "off",
160
+ "no-multi-str": "error",
161
+ "no-multiple-empty-lines": "error",
162
+ "no-native-reassign": "error",
163
+ "no-negated-condition": "error",
164
+ "no-negated-in-lhs": "error",
165
+ "no-nested-ternary": "error",
166
+ "no-new": "error",
167
+ "no-new-func": "error",
168
+ "no-new-object": "error",
169
+ "no-new-require": "error",
170
+ "no-new-wrappers": "error",
171
+ "no-octal-escape": "error",
172
+ "no-param-reassign": "error",
173
+ "no-path-concat": "error",
174
+ "no-plusplus": "error",
175
+ "no-process-env": "error",
176
+ "no-process-exit": "error",
177
+ "no-proto": "error",
178
+ "no-prototype-builtins": "error",
179
+ "no-restricted-globals": "error",
180
+ "no-restricted-imports": "error",
181
+ "no-restricted-modules": "error",
182
+ "no-restricted-properties": "error",
183
+ "no-restricted-syntax": "error",
184
+ "no-return-assign": "error",
185
+ "no-script-url": "error",
186
+ "no-self-compare": "error",
187
+ "no-sequences": "error",
188
+ "no-shadow": "error",
189
+ "no-shadow-restricted-names": "error",
190
+ "no-spaced-func": "error",
191
+ "no-sync": "error",
192
+ "no-tabs": "error",
193
+ "no-template-curly-in-string": "error",
194
+ "no-ternary": "error",
195
+ "no-throw-literal": "error",
196
+ "no-trailing-spaces": "off",
197
+ "no-undef-init": "error",
198
+ "no-undefined": "error",
199
+ "no-underscore-dangle": "off",
200
+ "no-unmodified-loop-condition": "error",
201
+ "no-unneeded-ternary": "error",
202
+ "no-unused-expressions": "error",
203
+ "no-use-before-define": "error",
204
+ "no-useless-call": "error",
205
+ "no-useless-computed-key": "error",
206
+ "no-useless-concat": "error",
207
+ "no-useless-constructor": "error",
208
+ "no-useless-escape": "error",
209
+ "no-useless-rename": "error",
210
+ "no-var": "error",
211
+ "no-void": "error",
212
+ "no-warning-comments": "error",
213
+ "no-whitespace-before-property": "error",
214
+ "no-with": "error",
215
+ "object-curly-newline": "off",
216
+ "object-curly-spacing": "off",
217
+ "object-property-newline": [
218
+ "error",
219
+ {
220
+ "allowMultiplePropertiesPerLine": true
221
+ }
222
+ ],
223
+ "object-shorthand": "off",
224
+ "one-var": "off",
225
+ "one-var-declaration-per-line": "error",
226
+ "operator-assignment": "error",
227
+ "operator-linebreak": "error",
228
+ "padded-blocks": "off",
229
+ "prefer-arrow-callback": "off",
230
+ "prefer-const": "off",
231
+ "prefer-numeric-literals": "error",
232
+ "prefer-reflect": "error",
233
+ "prefer-rest-params": "error",
234
+ "prefer-spread": "error",
235
+ "prefer-template": "error",
236
+ "quote-props": "off",
237
+ "quotes": ["error", "double", { "avoidEscape": true }],
238
+ "radix": "error",
239
+ "require-jsdoc": "error",
240
+ "rest-spread-spacing": "error",
241
+ "semi": "off",
242
+ "semi-spacing": "error",
243
+ "sort-imports": "off",
244
+ "sort-keys": "off",
245
+ "sort-vars": "error",
246
+ "space-before-blocks": "error",
247
+ "space-before-function-paren": "off",
248
+ "space-in-parens": [
249
+ "error",
250
+ "never"
251
+ ],
252
+ "space-infix-ops": "error",
253
+ "space-unary-ops": "error",
254
+ "spaced-comment": [
255
+ "error",
256
+ "always"
257
+ ],
258
+ "strict": "error",
259
+ "symbol-description": "error",
260
+ "template-curly-spacing": "error",
261
+ "unicode-bom": [
262
+ "error",
263
+ "never"
264
+ ],
265
+ "valid-jsdoc": "error",
266
+ "vars-on-top": "error",
267
+ "wrap-iife": "error",
268
+ "wrap-regex": "error",
269
+ "yield-star-spacing": "error",
270
+ "yoda": "error",
271
+ "import/no-named-as-default": "off",
272
+ "import/no-extraneous-dependencies": "off",
273
+ "react/prefer-stateless-function": "off",
274
+ "react/jsx-filename-extension": "off",
275
+ "react/no-multi-comp": "off",
276
+ "react/sort-comp": "off"
277
+ }
278
+ }