decidim-participatory_documents 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/lint.yml +2 -2
- data/.github/workflows/test.yml +8 -5
- data/.ruby-version +1 -1
- data/.simplecov +15 -9
- data/Gemfile.lock +186 -184
- data/README.md +32 -28
- data/app/commands/decidim/participatory_documents/create_suggestion.rb +3 -1
- data/app/controllers/concerns/decidim/participatory_documents/needs_pdf_document.rb +8 -1
- data/app/controllers/decidim/participatory_documents/admin/documents_controller.rb +5 -3
- data/app/controllers/decidim/participatory_documents/admin/suggestions_controller.rb +21 -1
- data/app/controllers/decidim/participatory_documents/admin/valuation_assignments_controller.rb +5 -1
- data/app/controllers/decidim/participatory_documents/document_suggestions_controller.rb +14 -0
- data/app/controllers/decidim/participatory_documents/section_suggestions_controller.rb +4 -0
- data/app/forms/decidim/participatory_documents/admin/document_form.rb +2 -1
- data/app/jobs/decidim/participatory_documents/export_my_suggestions_job.rb +16 -0
- data/app/models/decidim/participatory_documents/suggestion.rb +12 -0
- data/app/packs/entrypoints/decidim_participatory_documents.scss +8 -0
- data/app/packs/entrypoints/decidim_participatory_documents_editor.js +1 -3
- data/app/packs/entrypoints/decidim_participatory_documents_viewer_off.js +6 -0
- data/app/packs/images/export_suggestions.svg +1 -0
- data/app/packs/src/decidim/participatory_documents/pdf/pdf_modal_manager.js +4 -1
- data/app/packs/src/decidim/participatory_documents/pdf/suggestion_form.js +1 -1
- data/app/packs/src/decidim/participatory_documents/pdf.js +46 -0
- data/app/packs/src/decidim/participatory_documents/pdf_off.js +39 -0
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/admin_modals.scss +9 -5
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/admin_tweaks.scss +0 -21
- data/app/packs/stylesheets/decidim/participatory_documents/{decidim_admin_classes.scss → pdf/decidim_admin_styles.scss} +0 -3
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/modals.scss +49 -0
- data/app/packs/stylesheets/decidim/participatory_documents/pdf/tweaks.scss +76 -7
- data/app/permissions/decidim/participatory_documents/admin/permissions.rb +30 -15
- data/app/permissions/decidim/participatory_documents/permissions.rb +2 -0
- data/app/serializers/decidim/participatory_documents/my_suggestion_serializer.rb +22 -0
- data/app/serializers/decidim/participatory_documents/suggestion_serializer.rb +1 -1
- data/app/uploaders/decidim/participatory_documents/pdf_document_uploader.rb +4 -0
- data/app/views/decidim/participatory_documents/admin/documents/_editor_modal.html.erb +1 -1
- data/app/views/decidim/participatory_documents/admin/documents/pdf_viewer.html.erb +1 -1
- data/app/views/decidim/participatory_documents/admin/sections/_form.html.erb +0 -3
- data/app/views/decidim/participatory_documents/admin/suggestions/_suggestion.html.erb +1 -1
- data/app/views/decidim/participatory_documents/documents/_export_modal.html.erb +25 -0
- data/app/views/decidim/participatory_documents/documents/_pdfjs_base.html.erb +5 -2
- data/app/views/decidim/participatory_documents/documents/pdf_viewer.html.erb +40 -33
- data/config/assets.rb +1 -0
- data/config/locales/ca.yml +259 -0
- data/config/locales/de.yml +259 -0
- data/config/locales/en.yml +13 -0
- data/config/locales/es.yml +259 -0
- data/lib/decidim/participatory_documents/component.rb +6 -4
- data/lib/decidim/participatory_documents/engine.rb +5 -1
- data/lib/decidim/participatory_documents/version.rb +2 -2
- data/lib/decidim/participatory_documents.rb +5 -3
- metadata +12 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 948f2ce3751047c3b4c93d8aabae2162612947b59468315bf241504324132f0e
|
4
|
+
data.tar.gz: 7ca9e90b7d71c5675f42d4a474dd951f24be9dc06f8fa192ef8bcb755ce81482
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae6c812bfb33537c0945e3d0bb1d3fa11c81a86c65d5dde2016fe2965b8f265ed719e0b167c0613e20bc2de0cd223c49dfc503353536e00ca0e963d89a86385c
|
7
|
+
data.tar.gz: 23fb8126196662085bc24f3fb3a74c78ab0dcbc733c011fe3e36685b02c9acd1da5a6f1af735a4baeb1aaaba79f897f540c55f6d58be8aaca9f4b5ddeba8fa8b
|
data/.github/workflows/lint.yml
CHANGED
@@ -7,14 +7,14 @@ on:
|
|
7
7
|
pull_request:
|
8
8
|
|
9
9
|
env:
|
10
|
-
RUBY_VERSION: 3.0.
|
10
|
+
RUBY_VERSION: 3.0.6
|
11
11
|
NODE_VERSION: 16.9.1
|
12
12
|
|
13
13
|
jobs:
|
14
14
|
lint-report:
|
15
15
|
runs-on: ubuntu-latest
|
16
16
|
steps:
|
17
|
-
- uses: actions/checkout@
|
17
|
+
- uses: actions/checkout@v4
|
18
18
|
with:
|
19
19
|
fetch-depth: 1
|
20
20
|
|
data/.github/workflows/test.yml
CHANGED
@@ -7,7 +7,9 @@ on:
|
|
7
7
|
pull_request:
|
8
8
|
|
9
9
|
env:
|
10
|
-
RUBY_VERSION: 3.0.
|
10
|
+
RUBY_VERSION: 3.0.6
|
11
|
+
SIMPLECOV: 1
|
12
|
+
CI: 1
|
11
13
|
NODE_VERSION: 16.9.1
|
12
14
|
|
13
15
|
jobs:
|
@@ -31,7 +33,7 @@ jobs:
|
|
31
33
|
DATABASE_HOST: localhost
|
32
34
|
|
33
35
|
steps:
|
34
|
-
- uses: actions/checkout@
|
36
|
+
- uses: actions/checkout@v4
|
35
37
|
with:
|
36
38
|
fetch-depth: 1
|
37
39
|
|
@@ -49,9 +51,10 @@ jobs:
|
|
49
51
|
|
50
52
|
- name: Run RSpec
|
51
53
|
run: bundle exec rspec
|
52
|
-
|
53
|
-
|
54
|
-
|
54
|
+
|
55
|
+
|
56
|
+
- name: Upload coverage reports to Codecov
|
57
|
+
uses: codecov/codecov-action@v3
|
55
58
|
|
56
59
|
- uses: actions/upload-artifact@v2-preview
|
57
60
|
if: always()
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.6
|
data/.simplecov
CHANGED
@@ -1,13 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
if ENV["SIMPLECOV"]
|
4
|
+
SimpleCov.start do
|
5
|
+
# We ignore some of the files because they are never tested
|
6
|
+
add_filter "/config/"
|
7
|
+
add_filter "/db/"
|
8
|
+
add_filter "lib/decidim/participatory_documents/version.rb"
|
9
|
+
add_filter "lib/decidim/participatory_documents/component.rb"
|
10
|
+
add_filter "/spec"
|
11
|
+
end
|
5
12
|
|
6
|
-
|
7
|
-
add_filter "lib/decidim/participatory_documents/component.rb"
|
8
|
-
add_filter "/spec"
|
9
|
-
end
|
10
|
-
|
11
|
-
SimpleCov.command_name ENV.fetch("COMMAND_NAME", nil) || File.basename(Dir.pwd)
|
13
|
+
SimpleCov.merge_timeout 1800
|
12
14
|
|
13
|
-
|
15
|
+
if ENV["CI"]
|
16
|
+
require "simplecov-cobertura"
|
17
|
+
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
|
18
|
+
end
|
19
|
+
end
|