decidim 0.4.2 → 0.4.3
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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +13 -13
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +16 -2
- data/Dockerfile +4 -7
- data/Gemfile.lock +42 -42
- data/README.md +2 -2
- data/Rakefile +6 -7
- data/decidim-admin/app/commands/decidim/admin/update_participatory_process.rb +2 -1
- data/decidim-admin/app/controllers/decidim/admin/categories_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/dashboard_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/feature_permissions_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/features_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/moderations_controller.rb +1 -1
- data/decidim-admin/app/controllers/decidim/admin/organization_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_copies_controller.rb +1 -9
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_groups_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_publications_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_step_activations_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_step_ordering_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_steps_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +2 -4
- data/decidim-admin/app/controllers/decidim/admin/participatory_processes_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/scopes_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/static_pages_controller.rb +1 -3
- data/decidim-admin/app/controllers/decidim/admin/users_controller.rb +1 -3
- data/decidim-admin/app/forms/decidim/admin/participatory_process_form.rb +1 -0
- data/decidim-admin/app/views/decidim/admin/participatory_processes/_form.html.erb +4 -0
- data/decidim-admin/spec/commands/update_participatory_process_spec.rb +2 -1
- data/decidim-admin/spec/factories.rb +0 -1
- data/decidim-admin/spec/features/admin_manages_participatory_processes_spec.rb +1 -1
- data/decidim-admin/spec/forms/participatory_process_form_spec.rb +5 -3
- data/decidim-admin/spec/forms/participatory_process_group_form_spec.rb +2 -2
- data/decidim-admin/spec/shared/participatory_admin_shared_context.rb +6 -11
- data/decidim-admin/spec/spec_helper.rb +0 -6
- data/decidim-budgets/lib/decidim/budgets/feature.rb +9 -2
- data/decidim-budgets/spec/factories.rb +3 -2
- data/decidim-comments/README.md +3 -3
- data/decidim-comments/app/assets/javascripts/decidim/comments/bundle.js +0 -0
- data/decidim-comments/app/frontend/comments/down_vote_button.component.tsx +3 -3
- data/decidim-comments/app/frontend/comments/up_vote_button.component.tsx +3 -3
- data/decidim-comments/lib/decidim/comments/test/factories.rb +0 -3
- data/decidim-comments/spec/factories.rb +1 -0
- data/decidim-dev/lib/decidim/dev.rb +5 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/helpers.rb +6 -0
- data/decidim-dev/lib/decidim/dev/test/rspec_support/wisper.rb +1 -1
- data/decidim-dev/lib/generators/decidim/dummy_generator.rb +1 -1
- data/decidim-dev/lib/tasks/test_app.rake +0 -1
- data/decidim-meetings/lib/decidim/meetings/feature.rb +1 -1
- data/decidim-meetings/spec/factories.rb +0 -1
- data/decidim-pages/lib/decidim/pages/feature.rb +8 -1
- data/decidim-proposals/lib/decidim/proposals/feature.rb +1 -1
- data/decidim-proposals/lib/decidim/proposals/test/factories.rb +0 -7
- data/decidim-proposals/spec/factories.rb +6 -0
- data/decidim-results/lib/decidim/results/feature.rb +1 -1
- data/decidim-results/spec/factories.rb +2 -2
- data/decidim-surveys/bin/rails +0 -0
- data/decidim-surveys/lib/decidim/surveys/feature.rb +16 -1
- data/decidim-surveys/lib/decidim/surveys/test/factories.rb +0 -3
- data/decidim-surveys/spec/factories.rb +2 -0
- data/decidim-system/app/controllers/decidim/system/admins_controller.rb +1 -3
- data/decidim-system/app/controllers/decidim/system/dashboard_controller.rb +1 -3
- data/decidim-system/app/controllers/decidim/system/organizations_controller.rb +1 -3
- data/docs/how_to_create_a_plugin.md +20 -10
- data/lib/generators/decidim/app_generator.rb +0 -4
- data/lib/generators/decidim/install_generator.rb +0 -3
- data/package-lock.json +6965 -0
- data/package.json +7 -7
- metadata +25 -33
- data/.travis.yml +0 -70
- data/decidim-admin/lib/decidim/admin/test/factories.rb +0 -9
- data/decidim-admin/lib/tasks/decidim/admin_tasks.rake +0 -5
- data/decidim-admin/spec/support/processes_menu_links_helpers.rb +0 -13
- data/decidim-api/lib/tasks/decidim/api_tasks.rake +0 -5
- data/decidim-pages/lib/tasks/decidim/pages_tasks.rake +0 -1
- data/decidim-system/lib/tasks/decidim/system_tasks.rake +0 -5
- data/run_ci.sh +0 -10
- data/yarn.lock +0 -5860
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4967577009dee595cd0f4e2b433af4dfc09ac61
|
4
|
+
data.tar.gz: 952054cd021780bbe7c36af4a6e9a082f7513414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20de3c5a3f538c661d40b14dc79efbba4ee8d3829b2f21c70c4a8078c5f881fc418b1c7d2fb772901976b2e4c577636435e7bdb7650b09fd3f30078fd82c15b3
|
7
|
+
data.tar.gz: 5f549fe406ca1b9ef7d7ddec5784af29edc25b9e2b89f9587b1552b8fe6370f25d87e5b769460a00dcd5886dfd2053667b98220d6794c41eee11ac4e9e2360d9
|
data/.circleci/config.yml
CHANGED
@@ -25,7 +25,7 @@ jobs:
|
|
25
25
|
name: Install app dependencies
|
26
26
|
command: |
|
27
27
|
bundle install
|
28
|
-
|
28
|
+
npm i
|
29
29
|
- run:
|
30
30
|
name: Generate test app
|
31
31
|
command: bundle exec rake decidim:generate_test_app
|
@@ -34,34 +34,34 @@ jobs:
|
|
34
34
|
command: |
|
35
35
|
case $CIRCLE_NODE_INDEX in
|
36
36
|
0)
|
37
|
-
(cd /code &&
|
38
|
-
(cd /code &&
|
37
|
+
(cd /code && npm run lint && bundle exec rspec spec) &&
|
38
|
+
(cd /code && npm test -- decidim-api) &&
|
39
39
|
(cd /code/decidim-api && bundle exec rake) &&
|
40
|
-
(cd /code &&
|
40
|
+
(cd /code && npm test -- decidim-core) &&
|
41
41
|
(cd /code/decidim-core && bundle exec rake)
|
42
42
|
;;
|
43
43
|
1)
|
44
|
-
(cd /code &&
|
44
|
+
(cd /code && npm test -- decidim-admin) &&
|
45
45
|
(cd /code/decidim-admin && bundle exec rake) &&
|
46
|
-
(cd /code &&
|
46
|
+
(cd /code && npm test -- decidim-meetings) &&
|
47
47
|
(cd /code/decidim-meetings && bundle exec rake)
|
48
48
|
;;
|
49
49
|
2)
|
50
|
-
(cd /code &&
|
50
|
+
(cd /code && npm test -- decidim-proposals) &&
|
51
51
|
(cd /code/decidim-proposals && bundle exec rake) &&
|
52
|
-
(cd /code &&
|
52
|
+
(cd /code && npm test -- decidim-comments) &&
|
53
53
|
(cd /code/decidim-comments && bundle exec rake)
|
54
54
|
;;
|
55
55
|
3)
|
56
|
-
(cd /code &&
|
56
|
+
(cd /code && npm test -- decidim-pages) &&
|
57
57
|
(cd /code/decidim-pages && bundle exec rake) &&
|
58
|
-
(cd /code &&
|
58
|
+
(cd /code && npm test -- decidim-system) &&
|
59
59
|
(cd /code/decidim-system && bundle exec rake) &&
|
60
|
-
(cd /code &&
|
60
|
+
(cd /code && npm test -- decidim-results) &&
|
61
61
|
(cd /code/decidim-results && bundle exec rake) &&
|
62
|
-
(cd /code &&
|
62
|
+
(cd /code && npm test -- decidim-budgets) &&
|
63
63
|
(cd /code/decidim-budgets && bundle exec rake) &&
|
64
|
-
(cd /code &&
|
64
|
+
(cd /code && npm test -- decidim-surveys) &&
|
65
65
|
(cd /code/decidim-surveys && bundle exec rake)
|
66
66
|
;;
|
67
67
|
esac
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,22 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
3
|
## [Unreleased](https://github.com/decidim/decidim/tree/HEAD)
|
4
|
+
[Full Changelog](https://github.com/decidim/decidim/compare/v0.4.3...HEAD)
|
4
5
|
|
5
|
-
[
|
6
|
+
## [v0.4.3](https://github.com/decidim/decidim/tree/v0.4.3) (2017-07-25)
|
7
|
+
[Full Changelog](https://github.com/decidim/decidim/compare/v0.4.2...v0.4.3)
|
8
|
+
|
9
|
+
**Added**
|
10
|
+
|
11
|
+
- **decidim-core**: Added `show_statistics` flag to participatory processes. This flag enable/disable statistics per participatory process in the participatory public page. [\#1526](https://github.com/decidim/decidim/pull/1526)
|
12
|
+
|
13
|
+
**Changed**
|
14
|
+
|
15
|
+
- **decidim**: Replaced `yarn` with `npm` (v5) to handle js dependencies. [\#1628](https://github.com/decidim/decidim/pull/1628)
|
16
|
+
|
17
|
+
**Fixed**
|
18
|
+
|
19
|
+
- **decidim-core**: Fixed active option in main menu being incorrect sometimes [\#1638](https://githu.com/decidim/decidim/pull/1638).
|
6
20
|
|
7
21
|
## [v0.4.2](https://github.com/decidim/decidim/tree/v0.4.2) (2017-07-21)
|
8
22
|
[Full Changelog](https://github.com/decidim/decidim/compare/v0.4.1...v0.4.2)
|
@@ -1630,4 +1644,4 @@
|
|
1630
1644
|
|
1631
1645
|
|
1632
1646
|
|
1633
|
-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
1647
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/Dockerfile
CHANGED
@@ -3,12 +3,9 @@ MAINTAINER david.morcillo@codegram.com
|
|
3
3
|
|
4
4
|
ENV APP_HOME /decidim
|
5
5
|
|
6
|
-
RUN curl https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
7
|
-
echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
8
|
-
|
9
6
|
RUN apt-get update
|
10
|
-
RUN curl -sL https://deb.nodesource.com/
|
11
|
-
apt-get install -y nodejs
|
7
|
+
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash && \
|
8
|
+
apt-get install -y nodejs
|
12
9
|
|
13
10
|
ADD Gemfile /tmp/Gemfile
|
14
11
|
ADD Gemfile.lock /tmp/Gemfile.lock
|
@@ -29,9 +26,9 @@ ADD decidim-budgets/decidim-budgets.gemspec /tmp/decidim-proposals/decidim-budge
|
|
29
26
|
ADD decidim-surveys/decidim-surveys.gemspec /tmp/decidim-surveys/decidim-surveys.gemspec
|
30
27
|
|
31
28
|
ADD package.json /tmp/package.json
|
32
|
-
ADD
|
29
|
+
ADD package-lock.json /tmp/package-lock.json
|
33
30
|
|
34
|
-
RUN cd /tmp && bundle install &&
|
31
|
+
RUN cd /tmp && bundle install && npm i
|
35
32
|
|
36
33
|
RUN mkdir -p $APP_HOME
|
37
34
|
WORKDIR $APP_HOME
|
data/Gemfile.lock
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
decidim (0.4.
|
5
|
-
decidim-admin (= 0.4.
|
6
|
-
decidim-api (= 0.4.
|
7
|
-
decidim-budgets (= 0.4.
|
8
|
-
decidim-comments (= 0.4.
|
9
|
-
decidim-core (= 0.4.
|
10
|
-
decidim-meetings (= 0.4.
|
11
|
-
decidim-pages (= 0.4.
|
12
|
-
decidim-proposals (= 0.4.
|
13
|
-
decidim-results (= 0.4.
|
14
|
-
decidim-surveys (= 0.4.
|
15
|
-
decidim-system (= 0.4.
|
16
|
-
decidim-admin (0.4.
|
4
|
+
decidim (0.4.3)
|
5
|
+
decidim-admin (= 0.4.3)
|
6
|
+
decidim-api (= 0.4.3)
|
7
|
+
decidim-budgets (= 0.4.3)
|
8
|
+
decidim-comments (= 0.4.3)
|
9
|
+
decidim-core (= 0.4.3)
|
10
|
+
decidim-meetings (= 0.4.3)
|
11
|
+
decidim-pages (= 0.4.3)
|
12
|
+
decidim-proposals (= 0.4.3)
|
13
|
+
decidim-results (= 0.4.3)
|
14
|
+
decidim-surveys (= 0.4.3)
|
15
|
+
decidim-system (= 0.4.3)
|
16
|
+
decidim-admin (0.4.3)
|
17
17
|
active_link_to (~> 1.0.0)
|
18
|
-
decidim-core (= 0.4.
|
18
|
+
decidim-core (= 0.4.3)
|
19
19
|
devise (~> 4.2)
|
20
20
|
devise-i18n (~> 1.1.0)
|
21
21
|
devise_invitable (~> 1.7.0)
|
@@ -24,29 +24,29 @@ PATH
|
|
24
24
|
rails (~> 5.1.1)
|
25
25
|
rectify (~> 0.9.1)
|
26
26
|
sassc-rails (~> 1.3.0)
|
27
|
-
decidim-api (0.4.
|
27
|
+
decidim-api (0.4.3)
|
28
28
|
graphiql-rails (~> 1.4.2)
|
29
29
|
graphql (~> 1.6.0)
|
30
30
|
rack-cors (~> 0.4.0)
|
31
31
|
rails (~> 5.1.1)
|
32
32
|
sprockets-es6 (~> 0.9.2)
|
33
|
-
decidim-budgets (0.4.
|
34
|
-
decidim-comments (= 0.4.
|
35
|
-
decidim-core (= 0.4.
|
33
|
+
decidim-budgets (0.4.3)
|
34
|
+
decidim-comments (= 0.4.3)
|
35
|
+
decidim-core (= 0.4.3)
|
36
36
|
kaminari (~> 1.0.1)
|
37
37
|
rectify (~> 0.9.1)
|
38
38
|
searchlight (~> 4.1.0)
|
39
|
-
decidim-comments (0.4.
|
40
|
-
decidim-core (= 0.4.
|
39
|
+
decidim-comments (0.4.3)
|
40
|
+
decidim-core (= 0.4.3)
|
41
41
|
jquery-rails (~> 4.0)
|
42
42
|
rails (~> 5.1.1)
|
43
|
-
decidim-core (0.4.
|
43
|
+
decidim-core (0.4.3)
|
44
44
|
active_link_to (~> 1.0.4)
|
45
45
|
autoprefixer-rails (~> 7.1.1)
|
46
46
|
cancancan (~> 2.0.0)
|
47
47
|
carrierwave (~> 1.1.0)
|
48
48
|
date_validator (~> 0.9.0)
|
49
|
-
decidim-api (= 0.4.
|
49
|
+
decidim-api (= 0.4.3)
|
50
50
|
devise (~> 4.3)
|
51
51
|
devise-i18n (~> 1.1.0)
|
52
52
|
file_validators (~> 2.1.0)
|
@@ -74,36 +74,36 @@ PATH
|
|
74
74
|
sprockets-es6 (~> 0.9.2)
|
75
75
|
truncato (~> 0.7.9)
|
76
76
|
wisper (~> 2.0.0)
|
77
|
-
decidim-meetings (0.4.
|
77
|
+
decidim-meetings (0.4.3)
|
78
78
|
date_validator (~> 0.9)
|
79
|
-
decidim-core (= 0.4.
|
79
|
+
decidim-core (= 0.4.3)
|
80
80
|
httparty (~> 0.15.0)
|
81
81
|
jquery-tmpl-rails (~> 1.1.0)
|
82
82
|
kaminari (~> 1.0.1)
|
83
83
|
rectify (~> 0.8)
|
84
84
|
searchlight (~> 4.1.0)
|
85
|
-
decidim-pages (0.4.
|
86
|
-
decidim-comments (= 0.4.
|
87
|
-
decidim-core (= 0.4.
|
85
|
+
decidim-pages (0.4.3)
|
86
|
+
decidim-comments (= 0.4.3)
|
87
|
+
decidim-core (= 0.4.3)
|
88
88
|
rectify (~> 0.9.1)
|
89
|
-
decidim-proposals (0.4.
|
90
|
-
decidim-comments (= 0.4.
|
91
|
-
decidim-core (= 0.4.
|
89
|
+
decidim-proposals (0.4.3)
|
90
|
+
decidim-comments (= 0.4.3)
|
91
|
+
decidim-core (= 0.4.3)
|
92
92
|
kaminari (~> 1.0.1)
|
93
93
|
rectify (~> 0.9.1)
|
94
94
|
social-share-button (~> 0.10.0)
|
95
|
-
decidim-results (0.4.
|
96
|
-
decidim-comments (= 0.4.
|
97
|
-
decidim-core (= 0.4.
|
95
|
+
decidim-results (0.4.3)
|
96
|
+
decidim-comments (= 0.4.3)
|
97
|
+
decidim-core (= 0.4.3)
|
98
98
|
kaminari (~> 1.0.1)
|
99
99
|
rectify (~> 0.9.1)
|
100
100
|
searchlight (~> 4.1.0)
|
101
|
-
decidim-surveys (0.4.
|
102
|
-
decidim-core (= 0.4.
|
101
|
+
decidim-surveys (0.4.3)
|
102
|
+
decidim-core (= 0.4.3)
|
103
103
|
jquery-tmpl-rails (~> 1.1.0)
|
104
|
-
decidim-system (0.4.
|
104
|
+
decidim-system (0.4.3)
|
105
105
|
active_link_to (~> 1.0.0)
|
106
|
-
decidim-core (= 0.4.
|
106
|
+
decidim-core (= 0.4.3)
|
107
107
|
devise (~> 4.2)
|
108
108
|
devise-i18n (~> 1.1.0)
|
109
109
|
devise_invitable (~> 1.7.1)
|
@@ -116,14 +116,14 @@ PATH
|
|
116
116
|
PATH
|
117
117
|
remote: decidim-dev
|
118
118
|
specs:
|
119
|
-
decidim-dev (0.4.
|
119
|
+
decidim-dev (0.4.3)
|
120
120
|
byebug
|
121
121
|
capybara (~> 2.14.0)
|
122
122
|
capybara-screenshot (~> 1.0.14)
|
123
123
|
codecov (~> 0.1.9)
|
124
124
|
database_cleaner (~> 1.6.0)
|
125
125
|
db-query-matchers (~> 0.9.0)
|
126
|
-
decidim (= 0.4.
|
126
|
+
decidim (= 0.4.3)
|
127
127
|
factory_girl_rails
|
128
128
|
faker (~> 1.7.3)
|
129
129
|
i18n-tasks (= 0.9.15)
|
@@ -270,7 +270,7 @@ GEM
|
|
270
270
|
railties (>= 3.0.0)
|
271
271
|
faker (1.7.3)
|
272
272
|
i18n (~> 0.5)
|
273
|
-
faraday (0.12.
|
273
|
+
faraday (0.12.2)
|
274
274
|
multipart-post (>= 1.2, < 3)
|
275
275
|
ffi (1.9.18)
|
276
276
|
file_validators (2.1.0)
|
@@ -297,7 +297,7 @@ GEM
|
|
297
297
|
high_voltage (3.0.0)
|
298
298
|
highline (1.7.8)
|
299
299
|
htmlentities (4.3.4)
|
300
|
-
httparty (0.15.
|
300
|
+
httparty (0.15.6)
|
301
301
|
multi_xml (>= 0.5.2)
|
302
302
|
i18n (0.8.6)
|
303
303
|
i18n-tasks (0.9.15)
|
@@ -522,7 +522,7 @@ GEM
|
|
522
522
|
thor (0.19.4)
|
523
523
|
thread (0.2.2)
|
524
524
|
thread_safe (0.3.6)
|
525
|
-
tilt (2.0.
|
525
|
+
tilt (2.0.8)
|
526
526
|
truncato (0.7.9)
|
527
527
|
htmlentities (~> 4.3.1)
|
528
528
|
nokogiri (~> 1.7.0)
|
data/README.md
CHANGED
@@ -62,7 +62,7 @@ In order to develop on decidim, you'll need:
|
|
62
62
|
|
63
63
|
* **PostgreSQL** 9.4+
|
64
64
|
* **Ruby** 2.4.1
|
65
|
-
* **NodeJS**
|
65
|
+
* **NodeJS** 8.x.x
|
66
66
|
* **ImageMagick**
|
67
67
|
* **PhantomJS**
|
68
68
|
|
@@ -72,7 +72,7 @@ The easiest way to work on decidim is to clone decidim's repository and install
|
|
72
72
|
$ git clone git@github.com:decidim/decidim.git
|
73
73
|
$ cd decidim
|
74
74
|
$ bundle install
|
75
|
-
$
|
75
|
+
$ npm install
|
76
76
|
```
|
77
77
|
|
78
78
|
You have several rake tasks available for you:
|
data/Rakefile
CHANGED
@@ -53,13 +53,12 @@ task :development_app do
|
|
53
53
|
end
|
54
54
|
|
55
55
|
Decidim::Generators::AppGenerator.start(
|
56
|
-
["development_app", "--path", ".."]
|
56
|
+
["development_app", "--path", "..", "--recreate_db"]
|
57
57
|
)
|
58
58
|
|
59
59
|
Dir.chdir("#{__dir__}/development_app") do
|
60
60
|
Bundler.with_clean_env do
|
61
61
|
sh "bundle exec spring stop"
|
62
|
-
sh "bundle exec rake db:drop db:create db:migrate"
|
63
62
|
sh "bundle exec rake db:seed"
|
64
63
|
sh "bundle exec rails generate decidim:demo"
|
65
64
|
end
|
@@ -80,11 +79,11 @@ task :docker_development_app do
|
|
80
79
|
end
|
81
80
|
|
82
81
|
desc "Build webpack bundle files"
|
83
|
-
task webpack: ["
|
84
|
-
sh "
|
82
|
+
task webpack: ["npm:install"] do
|
83
|
+
sh "npm run build:prod"
|
85
84
|
end
|
86
85
|
|
87
|
-
desc "Install
|
88
|
-
task "
|
89
|
-
sh "
|
86
|
+
desc "Install npm dependencies"
|
87
|
+
task "npm:install" do
|
88
|
+
sh "npm i"
|
90
89
|
end
|
@@ -63,7 +63,8 @@ module Decidim
|
|
63
63
|
participatory_structure: form.participatory_structure,
|
64
64
|
meta_scope: form.meta_scope,
|
65
65
|
end_date: form.end_date,
|
66
|
-
participatory_process_group: form.participatory_process_group
|
66
|
+
participatory_process_group: form.participatory_process_group,
|
67
|
+
show_statistics: form.show_statistics
|
67
68
|
}
|
68
69
|
end
|
69
70
|
end
|
@@ -1,12 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_dependency "decidim/admin/application_controller"
|
4
|
-
|
5
3
|
module Decidim
|
6
4
|
module Admin
|
7
5
|
# Controller that allows managing categories.
|
8
6
|
#
|
9
|
-
class CategoriesController < ApplicationController
|
7
|
+
class CategoriesController < Decidim::Admin::ApplicationController
|
10
8
|
include Concerns::ParticipatoryProcessAdmin
|
11
9
|
|
12
10
|
def index
|
@@ -1,12 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_dependency "decidim/admin/application_controller"
|
4
|
-
|
5
3
|
module Decidim
|
6
4
|
module Admin
|
7
5
|
# Controller that shows a simple dashboard.
|
8
6
|
#
|
9
|
-
class DashboardController < ApplicationController
|
7
|
+
class DashboardController < Decidim::Admin::ApplicationController
|
10
8
|
authorize_resource :admin_dashboard, class: false
|
11
9
|
end
|
12
10
|
end
|
@@ -1,12 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_dependency "decidim/admin/application_controller"
|
4
|
-
|
5
3
|
module Decidim
|
6
4
|
module Admin
|
7
5
|
# Controller that allows managing feature permissions.
|
8
6
|
#
|
9
|
-
class FeaturePermissionsController < ApplicationController
|
7
|
+
class FeaturePermissionsController < Decidim::Admin::ApplicationController
|
10
8
|
include Concerns::ParticipatoryProcessAdmin
|
11
9
|
helper_method :authorizations, :feature
|
12
10
|
|
@@ -1,13 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_dependency "decidim/admin/application_controller"
|
4
|
-
|
5
3
|
module Decidim
|
6
4
|
module Admin
|
7
5
|
# Controller that allows managing the Participatory Process' Features in the
|
8
6
|
# admin panel.
|
9
7
|
#
|
10
|
-
class FeaturesController < ApplicationController
|
8
|
+
class FeaturesController < Decidim::Admin::ApplicationController
|
11
9
|
include Concerns::ParticipatoryProcessAdmin
|
12
10
|
|
13
11
|
helper_method :manifest
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Decidim
|
4
4
|
module Admin
|
5
5
|
# This controller allows admins to manage moderations in a participatory process.
|
6
|
-
class ModerationsController < Admin::ApplicationController
|
6
|
+
class ModerationsController < Decidim::Admin::ApplicationController
|
7
7
|
include Concerns::ParticipatoryProcessAdmin
|
8
8
|
|
9
9
|
helper_method :moderations
|
@@ -1,12 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_dependency "decidim/admin/application_controller"
|
4
|
-
|
5
3
|
module Decidim
|
6
4
|
module Admin
|
7
5
|
# Controller that allows managing the user organization.
|
8
6
|
#
|
9
|
-
class OrganizationController < ApplicationController
|
7
|
+
class OrganizationController < Decidim::Admin::ApplicationController
|
10
8
|
layout "decidim/admin/settings"
|
11
9
|
|
12
10
|
def edit
|