diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cf3fa8a..9e26982 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,7 +7,7 @@ on: pull_request: env: - RUBY_VERSION: 2.7.5 + RUBY_VERSION: 3.0.2 NODE_VERSION: 16.9.1 jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 55f3581..7fcbb16 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ on: pull_request: env: - RUBY_VERSION: 2.7.5 + RUBY_VERSION: 3.0.2 NODE_VERSION: 16.9.1 jobs: diff --git a/.gitignore b/.gitignore index 1f2c09a..173f5f3 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,6 @@ node_modules /yarn-error.log yarn-debug.log* .yarn-integrity + +public/sw.js +public/sw.js.map diff --git a/.ruby-version b/.ruby-version index 460b6fd..d9c62ed 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.5 \ No newline at end of file +3.0.2 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e2b3860..11df9e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1 +1 @@ -FROM decidim/decidim:0.24.3 +FROM decidim/decidim:0.27.2 diff --git a/Gemfile b/Gemfile index 2140cc6..64db3e0 100644 --- a/Gemfile +++ b/Gemfile @@ -3,20 +3,19 @@ source "https://rubygems.org" ruby RUBY_VERSION -DECIDIM_BRANCH = "release/0.25-stable" +DECIDIM_BRANCH = "release/0.27-stable" DECIDIM_VERSION = { git: "https://github.com/decidim/decidim", branch: DECIDIM_BRANCH }.freeze gem "decidim", DECIDIM_VERSION gem "decidim-conferences", DECIDIM_VERSION -gem "decidim-decidim_awesome", "~> 0.8" -gem "decidim-social_crowdfunding", git: "https://github.com/Platoniq/decidim-module-social_crowdfunding", branch: DECIDIM_BRANCH +gem "decidim-decidim_awesome", git: "https://github.com/decidim-ice/decidim-module-decidim_awesome", branch: "main" +gem "decidim-social_crowdfunding", git: "https://github.com/Platoniq/decidim-module-social_crowdfunding", branch: "main" # gem "decidim-consultations", DECIDIM_VERSION # gem "decidim-elections", DECIDIM_VERSION # gem "decidim-initiatives", DECIDIM_VERSION # gem "decidim-templates", DECIDIM_VERSION -# gem "decidim-peertube", git: "https://github.com/Platoniq/decidim-plataformess.git", branch: "feature/peertube" -gem "decidim-decidim_peertube", path: "./decidim-peertube" +gem "decidim-peertube", git: "https://github.com/Platoniq/decidim-module-peertube", branch: "main" gem "bootsnap", "~> 1.4" diff --git a/Gemfile.lock b/Gemfile.lock index 976f40b..55317cb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,236 +1,246 @@ +GIT + remote: https://github.com/Platoniq/decidim-module-peertube + revision: 71e774a91bf03dc9ca70b018b7a8baf946a6306a + branch: main + specs: + decidim-peertube (0.2.0) + decidim-admin (>= 0.27.0, < 0.28) + decidim-core (>= 0.27.0, < 0.28) + GIT remote: https://github.com/Platoniq/decidim-module-social_crowdfunding - revision: e5c8641e1c52c9fafee20005d0030c01480f1ba6 - branch: release/0.25-stable + revision: 157ce9f8fb7758075cd4aea82de40bbdcbd629e8 + branch: main specs: - decidim-social_crowdfunding (0.1.0) - decidim-admin (>= 0.25.0, < 0.26) - decidim-core (>= 0.25.0, < 0.26) + decidim-social_crowdfunding (0.2.0) + decidim-admin (>= 0.27.0, < 0.28) + decidim-core (>= 0.27.0, < 0.28) + +GIT + remote: https://github.com/decidim-ice/decidim-module-decidim_awesome + revision: 016ab767f6b60eef1632c1a9839e2b1e25924115 + branch: main + specs: + decidim-decidim_awesome (0.9.1) + decidim-admin (>= 0.26.0, < 0.28) + decidim-core (>= 0.26.0, < 0.28) + sassc (~> 2.3) GIT remote: https://github.com/decidim/decidim - revision: 04ca5ebdba87e20577a8ee53f4726e2f73fff798 - branch: release/0.25-stable + revision: e2fe9ae8c436473919ed830ec61164fdd1a27a38 + branch: release/0.27-stable specs: - decidim (0.25.2) - decidim-accountability (= 0.25.2) - decidim-admin (= 0.25.2) - decidim-api (= 0.25.2) - decidim-assemblies (= 0.25.2) - decidim-blogs (= 0.25.2) - decidim-budgets (= 0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - decidim-debates (= 0.25.2) - decidim-forms (= 0.25.2) - decidim-generators (= 0.25.2) - decidim-meetings (= 0.25.2) - decidim-pages (= 0.25.2) - decidim-participatory_processes (= 0.25.2) - decidim-proposals (= 0.25.2) - decidim-sortitions (= 0.25.2) - decidim-surveys (= 0.25.2) - decidim-system (= 0.25.2) - decidim-templates (= 0.25.2) - decidim-verifications (= 0.25.2) - decidim-accountability (0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - decidim-admin (0.25.2) + decidim (0.27.3) + decidim-accountability (= 0.27.3) + decidim-admin (= 0.27.3) + decidim-api (= 0.27.3) + decidim-assemblies (= 0.27.3) + decidim-blogs (= 0.27.3) + decidim-budgets (= 0.27.3) + decidim-comments (= 0.27.3) + decidim-core (= 0.27.3) + decidim-debates (= 0.27.3) + decidim-forms (= 0.27.3) + decidim-generators (= 0.27.3) + decidim-meetings (= 0.27.3) + decidim-pages (= 0.27.3) + decidim-participatory_processes (= 0.27.3) + decidim-proposals (= 0.27.3) + decidim-sortitions (= 0.27.3) + decidim-surveys (= 0.27.3) + decidim-system (= 0.27.3) + decidim-templates (= 0.27.3) + decidim-verifications (= 0.27.3) + decidim-accountability (0.27.3) + decidim-comments (= 0.27.3) + decidim-core (= 0.27.3) + decidim-admin (0.27.3) active_link_to (~> 1.0) - decidim-core (= 0.25.2) + decidim-core (= 0.27.3) devise (~> 4.7) devise-i18n (~> 1.2) devise_invitable (~> 2.0) - decidim-api (0.25.2) - graphql (~> 1.12, >= 1.12.3) + decidim-api (0.27.3) + graphql (~> 1.12, < 1.13) + graphql-docs (~> 2.1.0) rack-cors (~> 1.0) + decidim-assemblies (0.27.3) + decidim-core (= 0.27.3) + decidim-blogs (0.27.3) + decidim-admin (= 0.27.3) + decidim-comments (= 0.27.3) + decidim-core (= 0.27.3) + decidim-budgets (0.27.3) + decidim-comments (= 0.27.3) + decidim-core (= 0.27.3) + decidim-comments (0.27.3) + decidim-core (= 0.27.3) redcarpet (~> 3.5, >= 3.5.1) - decidim-assemblies (0.25.2) - decidim-core (= 0.25.2) - decidim-blogs (0.25.2) - decidim-admin (= 0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - decidim-budgets (0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - decidim-comments (0.25.2) - decidim-core (= 0.25.2) - redcarpet (~> 3.5, >= 3.5.1) - decidim-conferences (0.25.2) - decidim-core (= 0.25.2) - decidim-meetings (= 0.25.2) + decidim-conferences (0.27.3) + decidim-core (= 0.27.3) + decidim-meetings (= 0.27.3) wicked_pdf (~> 2.1) wkhtmltopdf-binary (~> 0.12) - decidim-core (0.25.2) + decidim-core (0.27.3) active_link_to (~> 1.0) acts_as_list (~> 0.9) - anchored (~> 1.1) batch-loader (~> 1.2) browser (~> 2.7) carrierwave (~> 2.2.1) cells-erb (~> 0.1.0) cells-rails (~> 0.1.3) charlock_holmes (~> 0.7) - date_validator (~> 0.9.0) - decidim-api (= 0.25.2) + date_validator (~> 0.12.0) + decidim-api (= 0.27.3) devise (~> 4.7) devise-i18n (~> 1.2) diffy (~> 3.3) doorkeeper (~> 5.1) doorkeeper-i18n (~> 4.0) - etherpad-lite (~> 0.3) - file_validators (~> 2.1) + file_validators (~> 3.0) fog-local (~> 0.6) - foundation_rails_helper - geocoder (~> 1.5) + foundation_rails_helper (~> 4.0) + geocoder (~> 1.8) hashdiff (>= 0.4.0, < 2.0.0) invisible_captcha (~> 0.12) kaminari (~> 1.2, >= 1.2.1) loofah (~> 2.3.1) + mime-types (>= 1.16, < 4.0) mini_magick (~> 4.9) mustache (~> 1.1.0) - nobspw (~> 0.6.0) omniauth (~> 2.0) omniauth-facebook (~> 5.0) omniauth-google-oauth2 (~> 1.0) omniauth-rails_csrf_protection (~> 1.0) omniauth-twitter (~> 1.4) - paper_trail (~> 10.3) + paper_trail (~> 12.0) pg (~> 1.1.4, < 2) pg_search (~> 2.2) premailer-rails (~> 1.10) rack (~> 2.2, >= 2.2.3) rack-attack (~> 6.0) - rails (~> 6.0.4) + rails (~> 6.1.0) rails-i18n (~> 6.0) ransack (~> 2.4.1) - rectify (~> 0.13.0) redis (~> 4.1) request_store (~> 1.5.0) rubyXL (~> 3.4) rubyzip (~> 2.0) - searchlight (~> 4.1) seven_zip_ruby (~> 1.3) social-share-button (~> 1.2, >= 1.2.1) - truncato (~> 0.7) valid_email2 (~> 2.1) webpacker (= 6.0.0.rc.5) + webpush (~> 1.1) wisper (~> 2.0) - decidim-debates (0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - decidim-dev (0.25.2) + decidim-debates (0.27.3) + decidim-comments (= 0.27.3) + decidim-core (= 0.27.3) + decidim-dev (0.27.3) axe-core-rspec (~> 4.1.0) byebug (~> 11.0) capybara (~> 3.24) db-query-matchers (~> 0.10.0) - decidim (= 0.25.2) + decidim (= 0.27.3) erb_lint (~> 0.0.35) factory_bot_rails (~> 4.8) i18n-tasks (~> 0.9.18) mdl (~> 0.5) - nokogiri (~> 1.11, >= 1.11.4) + nokogiri (~> 1.13) + parallel_tests (~> 3.7) puma (~> 5.0) rails-controller-testing (~> 1.0) - rspec-cells (~> 0.3.4) + rspec-cells (~> 0.3.7) rspec-html-matchers (~> 0.9.1) rspec-rails (~> 4.0) rspec-retry (~> 0.6.2) rspec_junit_formatter (~> 0.3.0) - rubocop (~> 0.92.0) - rubocop-rails (~> 2.8) - rubocop-rspec (= 1.43.2) - selenium-webdriver (~> 3.142) - simplecov (~> 0.19.0) - simplecov-cobertura (~> 1.3.1) - system_test_html_screenshots (~> 0.2) + rubocop (~> 1.28.0) + rubocop-rails (~> 2.14) + rubocop-rspec (~> 2.10) + selenium-webdriver (~> 4.1.0) + simplecov (~> 0.21.0) + simplecov-cobertura (~> 2.1.0) w3c_rspec_validators (~> 0.3.0) webmock (~> 3.6) wisper-rspec (~> 1.0) - decidim-forms (0.25.2) - decidim-core (= 0.25.2) + decidim-forms (0.27.3) + decidim-core (= 0.27.3) wicked_pdf (~> 2.1) wkhtmltopdf-binary (~> 0.12) - decidim-generators (0.25.2) - decidim-core (= 0.25.2) - decidim-meetings (0.25.2) - decidim-core (= 0.25.2) - decidim-forms (= 0.25.2) + decidim-generators (0.27.3) + decidim-core (= 0.27.3) + decidim-meetings (0.27.3) + decidim-core (= 0.27.3) + decidim-forms (= 0.27.3) icalendar (~> 2.5) - decidim-pages (0.25.2) - decidim-core (= 0.25.2) - decidim-participatory_processes (0.25.2) - decidim-core (= 0.25.2) - decidim-proposals (0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - doc2text (~> 0.4.3) + decidim-pages (0.27.3) + decidim-core (= 0.27.3) + decidim-participatory_processes (0.27.3) + decidim-core (= 0.27.3) + decidim-proposals (0.27.3) + decidim-comments (= 0.27.3) + decidim-core (= 0.27.3) + doc2text (~> 0.4.5) redcarpet (~> 3.5, >= 3.5.1) - decidim-sortitions (0.25.2) - decidim-admin (= 0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - decidim-proposals (= 0.25.2) - decidim-surveys (0.25.2) - decidim-core (= 0.25.2) - decidim-forms (= 0.25.2) - decidim-templates (= 0.25.2) - decidim-system (0.25.2) + decidim-sortitions (0.27.3) + decidim-admin (= 0.27.3) + decidim-comments (= 0.27.3) + decidim-core (= 0.27.3) + decidim-proposals (= 0.27.3) + decidim-surveys (0.27.3) + decidim-core (= 0.27.3) + decidim-forms (= 0.27.3) + decidim-templates (= 0.27.3) + decidim-system (0.27.3) active_link_to (~> 1.0) - decidim-core (= 0.25.2) + decidim-core (= 0.27.3) devise (~> 4.7) devise-i18n (~> 1.2) devise_invitable (~> 2.0) - decidim-templates (0.25.2) - decidim-core (= 0.25.2) - decidim-forms (= 0.25.2) - decidim-verifications (0.25.2) - decidim-core (= 0.25.2) - -PATH - remote: decidim-peertube - specs: - decidim-decidim_peertube (0.8.0) - decidim-admin (>= 0.25.0, < 0.26) - decidim-core (>= 0.25.0, < 0.26) + decidim-templates (0.27.3) + decidim-core (= 0.27.3) + decidim-forms (= 0.27.3) + decidim-verifications (0.27.3) + decidim-core (= 0.27.3) GEM remote: https://rubygems.org/ specs: - actioncable (6.0.6.1) - actionpack (= 6.0.6.1) + actioncable (6.1.7.3) + actionpack (= 6.1.7.3) + activesupport (= 6.1.7.3) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (6.0.6.1) - actionpack (= 6.0.6.1) - activejob (= 6.0.6.1) - activerecord (= 6.0.6.1) - activestorage (= 6.0.6.1) - activesupport (= 6.0.6.1) + actionmailbox (6.1.7.3) + actionpack (= 6.1.7.3) + activejob (= 6.1.7.3) + activerecord (= 6.1.7.3) + activestorage (= 6.1.7.3) + activesupport (= 6.1.7.3) mail (>= 2.7.1) - actionmailer (6.0.6.1) - actionpack (= 6.0.6.1) - actionview (= 6.0.6.1) - activejob (= 6.0.6.1) + actionmailer (6.1.7.3) + actionpack (= 6.1.7.3) + actionview (= 6.1.7.3) + activejob (= 6.1.7.3) + activesupport (= 6.1.7.3) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 2.0) - actionpack (6.0.6.1) - actionview (= 6.0.6.1) - activesupport (= 6.0.6.1) - rack (~> 2.0, >= 2.0.8) + actionpack (6.1.7.3) + actionview (= 6.1.7.3) + activesupport (= 6.1.7.3) + rack (~> 2.0, >= 2.0.9) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.0.6.1) - actionpack (= 6.0.6.1) - activerecord (= 6.0.6.1) - activestorage (= 6.0.6.1) - activesupport (= 6.0.6.1) + actiontext (6.1.7.3) + actionpack (= 6.1.7.3) + activerecord (= 6.1.7.3) + activestorage (= 6.1.7.3) + activesupport (= 6.1.7.3) nokogiri (>= 1.8.5) - actionview (6.0.6.1) - activesupport (= 6.0.6.1) + actionview (6.1.7.3) + activesupport (= 6.1.7.3) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) @@ -238,34 +248,35 @@ GEM active_link_to (1.0.5) actionpack addressable - activejob (6.0.6.1) - activesupport (= 6.0.6.1) + activejob (6.1.7.3) + activesupport (= 6.1.7.3) globalid (>= 0.3.6) - activemodel (6.0.6.1) - activesupport (= 6.0.6.1) - activerecord (6.0.6.1) - activemodel (= 6.0.6.1) - activesupport (= 6.0.6.1) - activestorage (6.0.6.1) - actionpack (= 6.0.6.1) - activejob (= 6.0.6.1) - activerecord (= 6.0.6.1) + activemodel (6.1.7.3) + activesupport (= 6.1.7.3) + activerecord (6.1.7.3) + activemodel (= 6.1.7.3) + activesupport (= 6.1.7.3) + activestorage (6.1.7.3) + actionpack (= 6.1.7.3) + activejob (= 6.1.7.3) + activerecord (= 6.1.7.3) + activesupport (= 6.1.7.3) marcel (~> 1.0) - activesupport (6.0.6.1) + mini_mime (>= 1.1.0) + activesupport (6.1.7.3) concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - zeitwerk (~> 2.2, >= 2.2.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) acts_as_list (0.9.19) activerecord (>= 3.0) addressable (2.8.4) public_suffix (>= 2.0.2, < 6.0) - airbrussh (1.4.0) + airbrussh (1.4.1) sshkit (>= 1.6.1, != 1.7.0) - anchored (1.1.0) ast (2.4.2) - axe-core-api (4.6.0) + axe-core-api (4.7.0) dumb_delegator virtus axe-core-rspec (4.1.0) @@ -287,21 +298,21 @@ GEM parser (>= 2.4) smart_properties bindex (0.8.1) - bootsnap (1.4.6) - msgpack (~> 1.0) + bootsnap (1.16.0) + msgpack (~> 1.2) browser (2.7.1) builder (3.2.4) byebug (11.1.3) - capistrano (3.16.0) + capistrano (3.17.2) airbrussh (>= 1.0.0) i18n rake (>= 10.0.0) sshkit (>= 1.9.0) - capistrano-bundler (2.0.1) + capistrano-bundler (2.1.0) capistrano (~> 3.1) capistrano-passenger (0.2.1) capistrano (~> 3.0) - capistrano-rails (1.6.1) + capistrano-rails (1.6.2) capistrano (~> 3.1) capistrano-bundler (>= 1.1, < 3) capistrano-rails-console (2.3.0) @@ -310,11 +321,11 @@ GEM capistrano-rbenv (2.2.0) capistrano (~> 3.1) sshkit (~> 1.3) - capistrano-sidekiq (2.0.0) + capistrano-sidekiq (2.3.0) capistrano (>= 3.9.0) capistrano-bundler sidekiq (>= 6.0) - capybara (3.39.0) + capybara (3.39.1) addressable matrix mini_mime (>= 0.1.3) @@ -345,7 +356,7 @@ GEM charlock_holmes (0.7.7) chef-utils (18.2.7) concurrent-ruby - childprocess (3.0.0) + childprocess (4.1.0) coercible (1.0.0) descendants_tracker (~> 0.0.1) coffee-rails (5.0.0) @@ -355,24 +366,21 @@ GEM coffee-script-source execjs coffee-script-source (1.12.2) + commonmarker (0.23.9) concurrent-ruby (1.2.2) - connection_pool (2.2.5) + connection_pool (2.4.0) crack (0.4.5) rexml crass (1.0.6) css_parser (1.14.0) addressable date (3.3.3) - date_validator (0.9.0) - activemodel - activesupport + date_validator (0.12.0) + activemodel (>= 3) + activesupport (>= 3) db-query-matchers (0.10.0) activesupport (>= 4.0, < 7) rspec (~> 3.0) - decidim-decidim_awesome (0.8.3) - decidim-admin (>= 0.25.0, < 0.27) - decidim-core (>= 0.25.0, < 0.27) - sassc (~> 2.3) declarative-builder (0.1.0) declarative-option (< 0.2.0) declarative-option (0.1.0) @@ -386,22 +394,19 @@ GEM warden (~> 1.2.3) devise-i18n (1.11.0) devise (>= 4.9.0) - devise_invitable (2.0.7) + devise_invitable (2.0.8) actionmailer (>= 5.0) devise (>= 4.6) diff-lcs (1.5.0) diffy (3.4.2) - doc2text (0.4.5) - nokogiri (>= 1.13.2, < 1.14.0) + doc2text (0.4.6) + nokogiri (>= 1.13.2, < 1.15.0) rubyzip (~> 2.3.0) docile (1.4.0) - domain_name (0.5.20190701) - unf (>= 0.0.5, < 1.0.0) doorkeeper (5.6.6) railties (>= 5) doorkeeper-i18n (4.0.1) dumb_delegator (1.0.0) - equalizer (0.0.11) erb_lint (0.0.37) activesupport better_html (~> 1.0.7) @@ -413,19 +418,20 @@ GEM erbse (0.1.4) temple erubi (1.12.0) - et-orbi (1.2.6) + escape_utils (1.3.0) + et-orbi (1.2.7) tzinfo - etherpad-lite (0.3.1) - rest-client (>= 1.6) excon (0.99.0) execjs (2.8.1) + extended-markdown-filter (0.7.0) + html-pipeline (~> 2.9) factory_bot (4.11.1) activesupport (>= 3.0.0) factory_bot_rails (4.11.1) factory_bot (~> 4.11.1) railties (>= 3.0.0) - faker (2.14.0) - i18n (>= 1.6, < 2) + faker (2.23.0) + i18n (>= 1.8.11, < 2) faraday (2.7.4) faraday-net_http (>= 2.0, < 3.1) ruby2_keywords (>= 0.0.4) @@ -433,7 +439,7 @@ GEM ffi (1.15.5) figaro (1.2.0) thor (>= 0.14.0, < 2) - file_validators (2.3.0) + file_validators (3.0.0) activemodel (>= 3.2) mime-types (>= 1.0) fog-core (2.3.0) @@ -449,22 +455,32 @@ GEM activemodel (>= 4.1, < 7.1) activesupport (>= 4.1, < 7.1) railties (>= 4.1, < 7.1) - fugit (1.5.2) - et-orbi (~> 1.1, >= 1.1.8) + fugit (1.8.1) + et-orbi (~> 1, >= 1.2.7) raabro (~> 1.4) + gemoji (3.0.1) geocoder (1.8.1) globalid (1.1.0) activesupport (>= 5.0) - graphql (1.13.19) + graphql (1.12.24) + graphql-docs (2.1.0) + commonmarker (~> 0.16) + escape_utils (~> 1.2) + extended-markdown-filter (~> 0.4) + gemoji (~> 3.0) + graphql (~> 1.12) + html-pipeline (~> 2.9) + sass (~> 3.4) hashdiff (1.0.1) hashie (5.0.0) highline (2.1.0) + hkdf (0.3.0) + html-pipeline (2.14.3) + activesupport (>= 2) + nokogiri (>= 1.4) html_tokenizer (0.0.7) htmlentities (4.3.4) - http-accept (1.7.0) - http-cookie (1.0.5) - domain_name (~> 0.5) - i18n (1.12.0) + i18n (1.13.0) concurrent-ruby (~> 1.0) i18n-tasks (0.9.37) activesupport (>= 4.0.2) @@ -503,15 +519,15 @@ GEM rexml kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) - launchy (2.5.0) - addressable (~> 2.7) - letter_opener (1.7.0) - launchy (~> 2.2) - letter_opener_web (1.4.0) + launchy (2.5.2) + addressable (~> 2.8) + letter_opener (1.8.1) + launchy (>= 2.2, < 3) + letter_opener_web (1.4.1) actionmailer (>= 3.2) letter_opener (~> 1.0) railties (>= 3.2) - listen (3.2.1) + listen (3.8.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) loofah (2.3.1) @@ -536,14 +552,14 @@ GEM mime-types-data (3.2023.0218.1) mini_magick (4.12.0) mini_mime (1.1.2) - mini_portile2 (2.8.1) + mini_portile2 (2.8.2) minitest (5.18.0) mixlib-cli (2.1.8) mixlib-config (3.0.27) tomlrb mixlib-shellout (3.2.7) chef-utils - msgpack (1.3.3) + msgpack (1.7.0) multi_xml (0.6.0) mustache (1.1.1) net-imap (0.3.4) @@ -553,15 +569,13 @@ GEM net-protocol net-protocol (0.2.1) timeout - net-scp (3.0.0) - net-ssh (>= 2.6.5, < 7.0.0) + net-scp (4.0.0) + net-ssh (>= 2.6.5, < 8.0.0) net-smtp (0.3.3) net-protocol - net-ssh (6.1.0) - netrc (0.11.0) + net-ssh (7.1.0) nio4r (2.5.9) - nobspw (0.6.2) - nokogiri (1.13.10) + nokogiri (1.14.4) mini_portile2 (~> 2.8.0) racc (~> 1.4) oauth (1.1.0) @@ -601,11 +615,13 @@ GEM omniauth-oauth (~> 1.1) rack orm_adapter (0.5.0) - paper_trail (10.3.1) - activerecord (>= 4.2) + paper_trail (12.3.0) + activerecord (>= 5.2) request_store (~> 1.1) - parallel (1.20.1) - parser (3.0.1.1) + parallel (1.23.0) + parallel_tests (3.13.0) + parallel + parser (3.2.2.1) ast (~> 2.4.1) pg (1.1.4) pg_search (2.3.6) @@ -620,35 +636,35 @@ GEM net-smtp premailer (~> 1.7, >= 1.7.9) public_suffix (5.0.1) - puma (5.3.2) + puma (5.6.5) nio4r (~> 2.0) raabro (1.4.0) racc (1.6.2) - rack (2.2.6.4) + rack (2.2.7) rack-attack (6.6.1) rack (>= 1.0, < 3) rack-cors (1.1.1) rack (>= 2.0.0) - rack-protection (3.0.5) + rack-protection (3.0.6) rack rack-proxy (0.7.6) rack rack-test (2.1.0) rack (>= 1.3) - rails (6.0.6.1) - actioncable (= 6.0.6.1) - actionmailbox (= 6.0.6.1) - actionmailer (= 6.0.6.1) - actionpack (= 6.0.6.1) - actiontext (= 6.0.6.1) - actionview (= 6.0.6.1) - activejob (= 6.0.6.1) - activemodel (= 6.0.6.1) - activerecord (= 6.0.6.1) - activestorage (= 6.0.6.1) - activesupport (= 6.0.6.1) - bundler (>= 1.3.0) - railties (= 6.0.6.1) + rails (6.1.7.3) + actioncable (= 6.1.7.3) + actionmailbox (= 6.1.7.3) + actionmailer (= 6.1.7.3) + actionpack (= 6.1.7.3) + actiontext (= 6.1.7.3) + actionview (= 6.1.7.3) + activejob (= 6.1.7.3) + activemodel (= 6.1.7.3) + activerecord (= 6.1.7.3) + activestorage (= 6.1.7.3) + activesupport (= 6.1.7.3) + bundler (>= 1.15.0) + railties (= 6.1.7.3) sprockets-rails (>= 2.0.0) rails-controller-testing (1.0.5) actionpack (>= 5.0.1.rc1) @@ -662,13 +678,13 @@ GEM rails-i18n (6.0.0) i18n (>= 0.7, < 2) railties (>= 6.0.0, < 7) - railties (6.0.6.1) - actionpack (= 6.0.6.1) - activesupport (= 6.0.6.1) + railties (6.1.7.3) + actionpack (= 6.1.7.3) + activesupport (= 6.1.7.3) method_source - rake (>= 0.8.7) - thor (>= 0.20.3, < 2.0) - rainbow (3.0.0) + rake (>= 12.2) + thor (~> 1.0) + rainbow (3.1.1) rake (13.0.6) ransack (2.4.2) activerecord (>= 5.2.4) @@ -677,25 +693,14 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) - rectify (0.13.0) - activemodel (>= 4.1.0) - activerecord (>= 4.1.0) - activesupport (>= 4.1.0) - virtus (~> 1.0.5) - wisper (>= 1.6.1) redcarpet (3.6.0) redis (4.8.1) - regexp_parser (2.1.1) + regexp_parser (2.8.0) request_store (1.5.1) rack (>= 1.4) responders (3.1.0) actionpack (>= 5.2) railties (>= 5.2) - rest-client (2.1.0) - http-accept (>= 1.7.0, < 2.0) - http-cookie (>= 1.0.2, < 2.0) - mime-types (>= 1.16, < 4.0) - netrc (~> 0.8) rexml (3.2.5) rspec (3.12.0) rspec-core (~> 3.12.0) @@ -704,9 +709,9 @@ GEM rspec-cells (0.3.8) cells (>= 4.0.0, < 6.0.0) rspec-rails (>= 3.0.0, < 6.1.0) - rspec-core (3.12.1) + rspec-core (3.12.2) rspec-support (~> 3.12.0) - rspec-expectations (3.12.2) + rspec-expectations (3.12.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) rspec-html-matchers (0.9.4) @@ -728,27 +733,27 @@ GEM rspec-support (3.12.0) rspec_junit_formatter (0.3.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (0.92.0) + rubocop (1.28.2) parallel (~> 1.10) - parser (>= 2.7.1.5) + parser (>= 3.1.0.0) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.7) + regexp_parser (>= 1.8, < 3.0) rexml - rubocop-ast (>= 0.5.0) + rubocop-ast (>= 1.17.0, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.7.0) - parser (>= 3.0.1.1) + unicode-display_width (>= 1.4.0, < 3.0) + rubocop-ast (1.28.1) + parser (>= 3.2.1.0) rubocop-faker (1.1.0) faker (>= 2.12.0) rubocop (>= 0.82.0) - rubocop-rails (2.9.1) + rubocop-rails (2.15.2) activesupport (>= 4.2.0) rack (>= 1.1) - rubocop (>= 0.90.0, < 2.0) - rubocop-rspec (1.43.2) - rubocop (~> 0.87) - ruby-progressbar (1.11.0) + rubocop (>= 1.7.0, < 2.0) + rubocop-rspec (2.11.1) + rubocop (~> 1.19) + ruby-progressbar (1.13.0) ruby-vips (2.1.4) ffi (~> 1.12) ruby2_keywords (0.0.5) @@ -756,34 +761,43 @@ GEM nokogiri (>= 1.10.8) rubyzip (>= 1.3.0) rubyzip (2.3.2) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) sassc (2.4.0) ffi (~> 1.9) - searchlight (4.1.0) - selenium-webdriver (3.142.7) - childprocess (>= 0.5, < 4.0) + selenium-webdriver (4.1.0) + childprocess (>= 0.5, < 5.0) + rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2) semantic_range (3.0.0) seven_zip_ruby (1.3.0) - sidekiq (6.3.1) - connection_pool (>= 2.2.2) + sidekiq (6.5.8) + connection_pool (>= 2.2.5, < 3) rack (~> 2.0) - redis (>= 4.2.0) - sidekiq-cron (1.2.0) - fugit (~> 1.1) - sidekiq (>= 4.2.1) - simplecov (0.19.1) + redis (>= 4.5.0, < 5) + sidekiq-cron (1.10.1) + fugit (~> 1.8) + globalid (>= 1.0.1) + sidekiq (>= 6) + simplecov (0.21.2) docile (~> 1.1) simplecov-html (~> 0.11) - simplecov-cobertura (1.3.1) - simplecov (~> 0.8) + simplecov_json_formatter (~> 0.1) + simplecov-cobertura (2.1.0) + rexml + simplecov (~> 0.19) simplecov-html (0.12.3) + simplecov_json_formatter (0.1.4) smart_properties (1.17.0) snaky_hash (2.0.1) hashie version_gem (~> 1.1, >= 1.1.1) social-share-button (1.2.4) coffee-rails - spring (2.1.0) + spring (2.1.1) spring-watcher-listen (2.0.1) listen (>= 2.7, < 4.0) spring (>= 1.2, < 3.0) @@ -794,43 +808,34 @@ GEM actionpack (>= 5.2) activesupport (>= 5.2) sprockets (>= 3.0.0) - sshkit (1.21.2) + sshkit (1.21.4) net-scp (>= 1.1.2) net-ssh (>= 2.8.0) sshkit-interactive (0.3.0) sshkit (~> 1.12) ssrf_filter (1.1.1) - system_test_html_screenshots (0.2.0) - actionpack (>= 5.2, < 6.1.a) - temple (0.10.0) + temple (0.10.1) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) - thor (1.2.1) + thor (1.2.2) thread_safe (0.3.6) tilt (2.1.0) timeout (0.3.2) tomlrb (2.0.3) - truncato (0.7.12) - htmlentities (~> 4.3.1) - nokogiri (>= 1.7.0, <= 2.0) - tzinfo (1.2.11) - thread_safe (~> 0.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) uber (0.1.0) uglifier (4.2.0) execjs (>= 0.3.0, < 3) - unf (0.1.4) - unf_ext - unf_ext (0.0.8.2) - unicode-display_width (1.7.0) + unicode-display_width (2.4.2) valid_email2 (2.3.1) activemodel (>= 3.2) mail (~> 2.5) version_gem (1.1.2) - virtus (1.0.5) + virtus (2.0.0) axiom-types (~> 0.1) coercible (~> 1.0) descendants_tracker (~> 0.0, >= 0.0.3) - equalizer (~> 0.0, >= 0.0.9) w3c_rspec_validators (0.3.0) rails rspec @@ -855,6 +860,9 @@ GEM rack-proxy (>= 0.6.1) railties (>= 5.2) semantic_range (>= 2.3.0) + webpush (1.1.0) + hkdf (~> 0.2) + jwt (~> 2.0) websocket-driver (0.7.5) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) @@ -865,7 +873,7 @@ GEM wkhtmltopdf-binary (0.12.6.6) xpath (3.2.0) nokogiri (~> 1.8) - zeitwerk (2.6.7) + zeitwerk (2.6.8) PLATFORMS ruby @@ -882,9 +890,9 @@ DEPENDENCIES capistrano-sidekiq decidim! decidim-conferences! - decidim-decidim_awesome (~> 0.8) - decidim-decidim_peertube! + decidim-decidim_awesome! decidim-dev! + decidim-peertube! decidim-social_crowdfunding! faker (~> 2.14) figaro (~> 1.2) @@ -900,7 +908,7 @@ DEPENDENCIES web-console (~> 3.5) RUBY VERSION - ruby 2.7.5p203 + ruby 3.0.2p107 BUNDLED WITH - 2.3.5 + 2.4.12 diff --git a/app/views/static/api/docs/assets/images/graphiql-headers.png b/app/views/static/api/docs/assets/images/graphiql-headers.png new file mode 100644 index 0000000..8051704 Binary files /dev/null and b/app/views/static/api/docs/assets/images/graphiql-headers.png differ diff --git a/app/views/static/api/docs/assets/images/graphiql-variables.png b/app/views/static/api/docs/assets/images/graphiql-variables.png new file mode 100644 index 0000000..fd76772 Binary files /dev/null and b/app/views/static/api/docs/assets/images/graphiql-variables.png differ diff --git a/app/views/static/api/docs/assets/images/graphiql.png b/app/views/static/api/docs/assets/images/graphiql.png new file mode 100644 index 0000000..e647c79 Binary files /dev/null and b/app/views/static/api/docs/assets/images/graphiql.png differ diff --git a/app/views/static/api/docs/assets/images/menu.png b/app/views/static/api/docs/assets/images/menu.png new file mode 100644 index 0000000..656353d Binary files /dev/null and b/app/views/static/api/docs/assets/images/menu.png differ diff --git a/app/views/static/api/docs/assets/images/navbar.png b/app/views/static/api/docs/assets/images/navbar.png new file mode 100644 index 0000000..df38e90 Binary files /dev/null and b/app/views/static/api/docs/assets/images/navbar.png differ diff --git a/app/views/static/api/docs/assets/style.css b/app/views/static/api/docs/assets/style.css new file mode 100644 index 0000000..7626413 --- /dev/null +++ b/app/views/static/api/docs/assets/style.css @@ -0,0 +1,1115 @@ +@import "//hello.myfonts.net/count/2c4b9d"; +* { + box-sizing: border-box; } + +html, +body, +div, +span, +applet, +object, +iframe, +h1, +h2, +h3, +h4, +h5, +h6, +p, +blockquote, +pre, +a, +abbr, +acronym, +address, +big, +cite, +code, +del, +dfn, +em, +img, +ins, +kbd, +q, +s, +samp, +small, +strike, +strong, +sub, +sup, +tt, +var, +b, +u, +i, +center, +dl, +dt, +dd, +ol, +ul, +li, +fieldset, +form, +label, +legend, +table, +caption, +tbody, +tfoot, +thead, +tr, +th, +td, +article, +aside, +canvas, +details, +embed, +figure, +figcaption, +footer, +header, +hgroup, +menu, +nav, +output, +ruby, +section, +summary, +time, +mark, +audio, +video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; } + +/* HTML5 display-role reset for older browsers */ +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +menu, +nav, +section { + display: block; } + +body { + line-height: 1; } + +ol, +ul { + list-style: none; } + +blockquote, +q { + quotes: none; } + +blockquote:before, +blockquote:after, +q:before, +q:after { + content: ''; + content: none; } + +table { + border-collapse: collapse; + border-spacing: 0; } + +@font-face { + font-family: 'ProximaNova-Light'; + src: url("webfonts/2C4B9D_B_0.eot"); + src: url("webfonts/2C4B9D_B_0.eot?#iefix") format("embedded-opentype"), url("webfonts/2C4B9D_B_0.woff2") format("woff2"), url("webfonts/2C4B9D_B_0.woff") format("woff"), url("webfonts/2C4B9D_B_0.ttf") format("truetype"); } +@font-face { + font-family: 'ProximaNova-Semibold'; + src: url("webfonts/2C4B9D_C_0.eot"); + src: url("webfonts/2C4B9D_C_0.eot?#iefix") format("embedded-opentype"), url("webfonts/2C4B9D_C_0.woff2") format("woff2"), url("webfonts/2C4B9D_C_0.woff") format("woff"), url("webfonts/2C4B9D_C_0.ttf") format("truetype"); } +@font-face { + font-family: 'ProximaNova-Regular'; + src: url("webfonts/2C4B9D_D_0.eot"); + src: url("webfonts/2C4B9D_D_0.eot?#iefix") format("embedded-opentype"), url("webfonts/2C4B9D_D_0.woff2") format("woff2"), url("webfonts/2C4B9D_D_0.woff") format("woff"), url("webfonts/2C4B9D_D_0.ttf") format("truetype"); } +@font-face { + font-family: 'ProximaNova-Bold'; + src: url("webfonts/2C4B9D_E_0.eot"); + src: url("webfonts/2C4B9D_E_0.eot?#iefix") format("embedded-opentype"), url("webfonts/2C4B9D_E_0.woff2") format("woff2"), url("webfonts/2C4B9D_E_0.woff") format("woff"), url("webfonts/2C4B9D_E_0.ttf") format("truetype"); } +body { + font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + font-size: 16px; + font-weight: 400; + color: #444; } + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: 'ProximaNova-Semibold'; + font-weight: 200; } + +em { + font-style: italic; } + +#wrap { + padding-top: 100px; + padding-left: 300px; + height: 100%; } + +#header { + position: fixed; + z-index: 2; + top: 0; + left: 0; + width: 100%; + height: 100px; + font-family: 'ProximaNova-Semibold'; } + +#top-nav { + height: 30px; + line-height: 30px; + background-color: #27272b; } + #top-nav a { + text-decoration: none; } + +#top-nav-links { + list-style-type: none; + position: absolute; + top: 0; + right: 30px; } + #top-nav-links li { + float: left; + margin-left: 20px; } + #top-nav-links a { + display: inline-block; + height: 30px; + padding: 0 5px; + color: #fff; + font-size: 10px; + letter-spacing: 1.5px; + text-transform: uppercase; } + +#site-nav { + position: relative; + height: 70px; + background-color: #fff; + border-bottom: 1px solid #eee; + padding: 14px 30px; } + #site-nav a { + vertical-align: bottom; } + #site-nav span { + vertical-align: bottom; } + #site-nav select { + vertical-align: bottom; } + #site-nav .sub-title { + margin: 0 8px; + position: relative; + top: 1px; } + #site-nav .logo img { + height: 50px; + margin-bottom: -20px; } + #site-nav .search-box { + position: absolute; + right: 30px; + top: 20px; } + +#sidebar { + background-color: #fff; + position: fixed; + z-index: 2; + top: 30px; + left: 0; + bottom: 0; + width: 300px; + padding: 20px 30px; + overflow-x: hidden; + overflow-y: scroll; + -webkit-overflow-scrolling: touch; + -ms-overflow-style: none; + font-family: 'ProximaNova-Semibold'; + border-right: 1px solid #eee; + font-size: 16px; + line-height: 1.1em; } + #sidebar::-webkit-scrollbar { + width: 0 !important; } + #sidebar li { + margin-bottom: 0.6em; } + #sidebar a { + color: #444; + text-decoration: none; } + #sidebar a:hover { + color: #de4f4f; } + #sidebar a.current { + color: #de4f4f; } + #sidebar a.H2 { + font-weight: bold; } + #sidebar .categories > li > p { + margin-top: 1.5em; + border-top: 1px solid #eee; + text-transform: uppercase; + padding-top: 1.2em; + margin-bottom: 1em; + color: #999; + font-size: 0.8em; } + #sidebar .sub-menu { + font-family: 'ProximaNova-Regular'; + padding-left: 20px; + margin: 0.6em 0; + font-size: 14px; } + #sidebar .sub-menu .active { + position: relative; + color: #de4f4f; } + #sidebar .sub-menu .active:before { + content: ""; + position: absolute; + top: 2px; + left: -15px; + display: inline-block; + width: 0; + height: 0; + border-top: 4px solid transparent; + border-bottom: 4px solid transparent; + border-left: 6px solid #de4f4f; } + +#sidebar-mobile { + display: none; + margin-bottom: 20px; } + #sidebar-mobile .search-box { + width: 200px; + margin-bottom: 20px; } + +#content { + padding: 20px 30px; + max-width: 760px; + margin: 0px auto; + -webkit-text-size-adjust: 100%; } + #content em { + font-style: italic; } + #content strong { + font-family: 'ProximaNova-Bold'; } + #content h1 { + margin: 15px 0; + line-height: 1.4em; + font-size: 2em; + margin-top: 0; + margin-bottom: 30px; } + #content h2 { + margin: 15px 0; + line-height: 1.4em; + font-size: 1.5em; + margin-top: 30px; + padding-bottom: 10px; + border-bottom: 1px solid #eee; + position: relative; } + #content h2 .anchor { + opacity: 0; + position: absolute; + font-size: 16px; + top: 2px; + left: -21px; } + #content h2:hover .anchor { + opacity: 1; } + #content h3 { + margin: 15px 0; + line-height: 1.4em; + font-size: 1.2em; + margin-top: 30px; + position: relative; } + #content h3 .anchor { + opacity: 0; + position: absolute; + font-size: 16px; + top: 2px; + left: -21px; } + #content h3:hover .anchor { + opacity: 1; } + #content h4 { + margin: 15px 0; + line-height: 1.4em; } + #content h5 { + margin: 15px 0; + line-height: 1.4em; } + #content h6 { + margin: 15px 0; + line-height: 1.4em; } + #content p { + margin: 15px 0; + line-height: 1.4em; } + #content ul { + margin: 15px 0; + line-height: 1.4em; + padding-left: 1.5em; + list-style-type: disc; } + #content ul li { + margin-bottom: 5px; } + #content ol { + margin: 15px 0; + line-height: 1.4em; + padding-left: 1.5em; + list-style-type: decimal; } + #content ol li { + margin-bottom: 5px; } + #content figure { + margin: 15px 0; + line-height: 1.4em; } + #content a { + color: #de4f4f; } + #content img { + max-width: 100%; } + #content code { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 0.8em; + line-height: 1.6em; + padding: 1px 4px; + background-color: #eee; + margin: 0 2px; } + #content blockquote { + padding-left: 1.3em; + border-left: #eee solid 0.2em; + font-style: italic; } + #content blockquote.warning { + border-color: #f00; + color: #f00; } + #content dl { + margin-left: 1.5em; } + #content dl dt .name { + font-family: monospace; } + #content dl dt .type { + margin-left: 0.5em; } + #content dl dd { + margin-left: 1.5em; } + #content .edit-discuss-links { + margin-top: -25px; + margin-bottom: 40px; } + #content table { + margin-top: 10px; } + #content table th { + text-align: left; + padding: 0 25px 0 25px; } + #content table thead th:first-child { + padding: 0; } + #content table td p { + padding: 0 25px 0 25px; } + #content pre { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + line-height: 1.6em; + margin: 20px 0; + overflow-x: auto; + position: relative; + padding: 20px 30px; } + #content pre table { + width: 100%; + border-collapse: collapse; + padding: 0; + margin: 0; } + #content pre tr { + width: 100%; + border-collapse: collapse; + padding: 0; + margin: 0; } + #content pre td { + width: 100%; + border-collapse: collapse; + padding: 0; + margin: 0; } + #content pre code { + background-color: #272822; + padding: 0; + margin: 0; } + #content pre .gutter { + user-select: none; + width: 1.5em; + padding-right: 30px; } + #content .highlight.html .code:after { + font-family: 'ProximaNova-Semibold'; + position: absolute; + top: 0; + right: 0; + color: #ccc; + text-align: right; + font-size: 0.75em; + padding: 5px 10px 0; + letter-spacing: 1.5px; + line-height: 15px; + height: 15px; + font-weight: 600; } + #content .highlight.js .code:after { + font-family: 'ProximaNova-Semibold'; + position: absolute; + top: 0; + right: 0; + color: #ccc; + text-align: right; + font-size: 0.75em; + padding: 5px 10px 0; + letter-spacing: 1.5px; + line-height: 15px; + height: 15px; + font-weight: 600; } + #content .highlight.bash .code:after { + font-family: 'ProximaNova-Semibold'; + position: absolute; + top: 0; + right: 0; + color: #ccc; + text-align: right; + font-size: 0.75em; + padding: 5px 10px 0; + letter-spacing: 1.5px; + line-height: 15px; + height: 15px; + font-weight: 600; } + #content .highlight.css .code:after { + font-family: 'ProximaNova-Semibold'; + position: absolute; + top: 0; + right: 0; + color: #ccc; + text-align: right; + font-size: 0.75em; + padding: 5px 10px 0; + letter-spacing: 1.5px; + line-height: 15px; + height: 15px; + font-weight: 600; } + #content .highlight.jsx .code:after { + font-family: 'ProximaNova-Semibold'; + position: absolute; + top: 0; + right: 0; + color: #ccc; + text-align: right; + font-size: 0.75em; + padding: 5px 10px 0; + letter-spacing: 1.5px; + line-height: 15px; + height: 15px; + font-weight: 600; } + #content .highlight.html.html .code:after { + content: 'HTML'; } + #content .highlight.js.html .code:after { + content: 'HTML'; } + #content .highlight.bash.html .code:after { + content: 'HTML'; } + #content .highlight.css.html .code:after { + content: 'HTML'; } + #content .highlight.jsx.html .code:after { + content: 'HTML'; } + #content .highlight.html.js .code:after { + content: 'JS'; } + #content .highlight.js.js .code:after { + content: 'JS'; } + #content .highlight.bash.js .code:after { + content: 'JS'; } + #content .highlight.css.js .code:after { + content: 'JS'; } + #content .highlight.jsx.js .code:after { + content: 'JS'; } + #content .highlight.html.bash .code:after { + content: 'Shell'; } + #content .highlight.js.bash .code:after { + content: 'Shell'; } + #content .highlight.bash.bash .code:after { + content: 'Shell'; } + #content .highlight.css.bash .code:after { + content: 'Shell'; } + #content .highlight.jsx.bash .code:after { + content: 'Shell'; } + #content .highlight.html.css .code:after { + content: 'CSS'; } + #content .highlight.js.css .code:after { + content: 'CSS'; } + #content .highlight.bash.css .code:after { + content: 'CSS'; } + #content .highlight.css.css .code:after { + content: 'CSS'; } + #content .highlight.jsx.css .code:after { + content: 'CSS'; } + #content .highlight.html.jsx .code:after { + content: 'JSX'; } + #content .highlight.js.jsx .code:after { + content: 'JSX'; } + #content .highlight.bash.jsx .code:after { + content: 'JSX'; } + #content .highlight.css.jsx .code:after { + content: 'JSX'; } + #content .highlight.jsx.jsx .code:after { + content: 'JSX'; } + #content > table { + width: 100%; + margin: 20px 0; } + #content > table tr { + border-top: 1px solid #eee; } + #content > table tr:nth-child(2n) { + background-color: #f8f8f8; } + #content > table th { + font-family: 'ProximaNova-Semibold'; + padding: 12px 13px; + border: 1px solid #eee; + vertical-align: middle; + text-align: left; } + #content > table td { + border: 1px solid #eee; + vertical-align: middle; + padding: 6px 13px; + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 0.8em; + line-height: 1.6em; } + #content .bottom-nav { + height: 44px; + margin: 30px 0 25px; + border-bottom: 1px solid #eee; + padding-bottom: 25px; } + #content .bottom-nav a { + font-family: 'ProximaNova-Semibold'; + margin: 0 5px; } + #content .edit-link { + text-align: center; } + #content .edit-link a { + color: #aaa; + font-family: 'ProximaNova-Semibold'; } + #content .edit-link a:before { + content: ''; + display: inline-block; + width: 16px; + height: 16px; + background-size: 16px; + opacity: 0.3; + margin-right: 8px; + position: relative; + top: 2px; } + #content .field-name { + font-weight: bold; } + #content .field-entry { + margin-bottom: 4rem; } + #content .description-wrapper > p { + padding-left: 1rem; + margin-bottom: 1rem; } + +#mobile-header { + z-index: 3; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 40px; + background-color: #fff; + display: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); } + #mobile-header .menu-button { + position: absolute; + width: 24px; + height: 24px; + top: 8px; + left: 12px; + background: url("../assets/images/menu.png") center center no-repeat; + background-size: 24px; + opacity: 0.5; } + #mobile-header .logo { + position: absolute; + top: 5px; + left: 50%; + margin-left: -15px; + background-size: 30px; } + #mobile-header .logo img { + width: 30px; + height: 30px; } + +#mobile-shade { + z-index: 1; + display: none; + pointer-events: none; + opacity: 0; + transition: opacity 0.3s ease; + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.4); } + +@media screen and (max-width: 560px) { + body { + font-size: 14px; } + + body.sidebar-open #sidebar { + transform: translate3d(0, 0, 0); } + body.sidebar-open #mobile-shade { + opacity: 1; + pointer-events: auto; } + + #header { + height: 40px; } + + #top-nav { + display: none; } + + #site-nav { + display: none; } + + #mobile-header { + display: block; } + + #mobile-shade { + display: block; } + + #sidebar-mobile { + display: block; } + + #wrap { + padding-top: 40px; + padding-left: 0; } + + #sidebar { + top: 0; + left: 0; + padding-top: 60px; + border-right: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); + transition: transform 0.3s ease; + transform: translate3d(-120%, 0, 0); + display: block; } } +.api { + background: #fafafa; } + .api h3 { + padding: 5px 10px; } + .api h3.api-title { + margin: 0; + overflow: auto; } + .api h4 { + font-weight: normal; + font-style: italic; + margin-bottom: 0.25em; + text-decoration: underline; + margin-left: 20px; } + .api dl { + margin-top: 0.25em; } + .api dl.args { + margin-left: 40px; } + .api dl.constants { + margin-left: 20px; } + .api dt { + margin-top: 1em; } + .api dt .name { + font-weight: bold; } + .api dt .type { + margin-left: 15px; + font-size: 0.9em; + font-weight: 200; + color: #000; } + .api dd { + margin-bottom: 1em; + margin-left: 0; } + .api .desc { + margin: 1em; } + .api pre { + margin-right: 10px; } + +h3.api-title { + padding: 5px 10px; + margin-top: 2em; } + +.api-title .locus { + float: right; + font-weight: normal; + padding-right: 5px; + font-style: italic; } +.api-title .subtext { + font-size: 11px; + text-align: left; + clear: both; + display: block; + font-weight: normal; } + .api-title .subtext > code { + font-size: 11px; + margin-right: 12px; } +.api-title .src-code { + color: #20338a !important; + border-bottom: none !important; } + +.gutter pre { + color: #999; } + +pre { + color: #525252; } + pre .function .keyword { + color: #0092db; } + pre .constant { + color: #0092db; } + pre .keyword { + color: #e96900; } + pre .attribute { + color: #e96900; } + pre .number { + color: #ae81ff; } + pre .literal { + color: #ae81ff; } + pre .tag { + color: #2973b7; } + pre .tag .title { + color: #2973b7; } + pre .tag .value { + color: #90a959; } + pre .change { + color: #2973b7; } + pre .winutils { + color: #2973b7; } + pre .flow { + color: #2973b7; } + pre .lisp .title { + color: #2973b7; } + pre .clojure .built_in { + color: #2973b7; } + pre .nginx .title { + color: #2973b7; } + pre .tex .special { + color: #2973b7; } + pre .tex .command { + color: #90a959; } + pre .tex .formula { + color: #b3b3b3; + opacity: 0.5; } + pre .class .title { + color: #4077bf; } + pre .symbol { + color: #90a959; } + pre .symbol .string { + color: #90a959; } + pre .value { + color: #90a959; } + pre .regexp { + color: #90a959; } + pre .title { + color: #a6e22e; } + pre .string { + color: #90a959; } + pre .subst { + color: #90a959; } + pre .haskell .type { + color: #90a959; } + pre .preprocessor { + color: #90a959; } + pre .ruby .class .parent { + color: #90a959; } + pre .built_in { + color: #90a959; } + pre .sql .aggregate { + color: #90a959; } + pre .django .template_tag { + color: #90a959; } + pre .django .variable { + color: #90a959; } + pre .django .filter .argument { + color: #90a959; } + pre .smalltalk .class { + color: #90a959; } + pre .smalltalk .localvars { + color: #90a959; } + pre .smalltalk .array { + color: #90a959; } + pre .javadoc { + color: #90a959; } + pre .attr_selector { + color: #90a959; } + pre .pseudo { + color: #90a959; } + pre .addition { + color: #90a959; } + pre .stream { + color: #90a959; } + pre .envvar { + color: #90a959; } + pre .apache .tag { + color: #90a959; } + pre .apache .cbracket { + color: #90a959; } + pre .apache .sqbracket { + color: #b3b3b3; } + pre .prompt { + color: #90a959; } + pre .comment { + color: #b3b3b3; } + pre .java .annotation { + color: #b3b3b3; } + pre .python .decorator { + color: #b3b3b3; } + pre .template_comment { + color: #b3b3b3; } + pre .pi { + color: #b3b3b3; } + pre .doctype { + color: #b3b3b3; } + pre .deletion { + color: #b3b3b3; } + pre .shebang { + color: #b3b3b3; } + pre .coffeescript .javascript { + opacity: 0.5; } + pre .javascript .xml { + opacity: 0.5; } + pre .xml .javascript { + opacity: 0.5; } + pre .xml .vbscript { + opacity: 0.5; } + pre .xml .css { + opacity: 0.5; } + pre .xml .cdata { + opacity: 0.5; } + +.highlight .hll { + background-color: #49483e; } + +pre { + background: #272822; + color: #f8f8f2; } + +.highlight .c { + color: #75715e; } + +/* Comment */ +.highlight .err { + color: #960050; + background-color: #1e0010; } + +/* Error */ +.highlight .k { + color: #66d9ef; } + +/* Keyword */ +.highlight .l { + color: #ae81ff; } + +/* Literal */ +.highlight .n { + color: #f8f8f2; } + +/* Name */ +.highlight .o { + color: #f92672; } + +/* Operator */ +.highlight .p { + color: #f8f8f2; } + +/* Punctuation */ +.highlight .cm { + color: #75715e; } + +/* Comment.Multiline */ +.highlight .cp { + color: #75715e; } + +/* Comment.Preproc */ +.highlight .c1 { + color: #75715e; } + +/* Comment.Single */ +.highlight .cs { + color: #75715e; } + +/* Comment.Special */ +.highlight .ge { + font-style: italic; } + +/* Generic.Emph */ +.highlight .gs { + font-weight: bold; } + +/* Generic.Strong */ +.highlight .kc { + color: #66d9ef; } + +/* Keyword.Constant */ +.highlight .kd { + color: #66d9ef; } + +/* Keyword.Declaration */ +.highlight .kn { + color: #f92672; } + +/* Keyword.Namespace */ +.highlight .kp { + color: #66d9ef; } + +/* Keyword.Pseudo */ +.highlight .kr { + color: #66d9ef; } + +/* Keyword.Reserved */ +.highlight .kt { + color: #66d9ef; } + +/* Keyword.Type */ +.highlight .ld { + color: #e6db74; } + +/* Literal.Date */ +.highlight .m { + color: #ae81ff; } + +/* Literal.Number */ +.highlight .s { + color: #e6db74; } + +/* Literal.String */ +.highlight .na { + color: #a6e22e; } + +/* Name.Attribute */ +.highlight .nb { + color: #f8f8f2; } + +/* Name.Builtin */ +.highlight .nc { + color: #a6e22e; } + +/* Name.Class */ +.highlight .no { + color: #66d9ef; } + +/* Name.Constant */ +.highlight .nd { + color: #a6e22e; } + +/* Name.Decorator */ +.highlight .ni { + color: #f8f8f2; } + +/* Name.Entity */ +.highlight .ne { + color: #a6e22e; } + +/* Name.Exception */ +.highlight .nf { + color: #a6e22e; } + +/* Name.Function */ +.highlight .nl { + color: #f8f8f2; } + +/* Name.Label */ +.highlight .nn { + color: #f8f8f2; } + +/* Name.Namespace */ +.highlight .nx { + color: #a6e22e; } + +/* Name.Other */ +.highlight .py { + color: #f8f8f2; } + +/* Name.Property */ +.highlight .nt { + color: #f92672; } + +/* Name.Tag */ +.highlight .nv { + color: #f8f8f2; } + +/* Name.Variable */ +.highlight .ow { + color: #f92672; } + +/* Operator.Word */ +.highlight .w { + color: #f8f8f2; } + +/* Text.Whitespace */ +.highlight .mf { + color: #ae81ff; } + +/* Literal.Number.Float */ +.highlight .mh { + color: #ae81ff; } + +/* Literal.Number.Hex */ +.highlight .mi { + color: #ae81ff; } + +/* Literal.Number.Integer */ +.highlight .mo { + color: #ae81ff; } + +/* Literal.Number.Oct */ +.highlight .sb { + color: #e6db74; } + +/* Literal.String.Backtick */ +.highlight .sc { + color: #e6db74; } + +/* Literal.String.Char */ +.highlight .sd { + color: #e6db74; } + +/* Literal.String.Doc */ +.highlight .s2 { + color: #e6db74; } + +/* Literal.String.Double */ +.highlight .se { + color: #ae81ff; } + +/* Literal.String.Escape */ +.highlight .sh { + color: #e6db74; } + +/* Literal.String.Heredoc */ +.highlight .si { + color: #e6db74; } + +/* Literal.String.Interpol */ +.highlight .sx { + color: #e6db74; } + +/* Literal.String.Other */ +.highlight .sr { + color: #e6db74; } + +/* Literal.String.Regex */ +.highlight .s1 { + color: #e6db74; } + +/* Literal.String.Single */ +.highlight .ss { + color: #e6db74; } + +/* Literal.String.Symbol */ +.highlight .bp { + color: #f8f8f2; } + +/* Name.Builtin.Pseudo */ +.highlight .vc { + color: #f8f8f2; } + +/* Name.Variable.Class */ +.highlight .vg { + color: #f8f8f2; } + +/* Name.Variable.Global */ +.highlight .vi { + color: #f8f8f2; } + +/* Name.Variable.Instance */ +.highlight .il { + color: #ae81ff; } + +/* Literal.Number.Integer.Long */ +.deprecation-notice { + padding-left: 5px; + border-left: 2px solid #e8400d; + background: #fdf2ec; } + .deprecation-notice span { + font-weight: bold; } diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_B_0.eot b/app/views/static/api/docs/assets/webfonts/2C4B9D_B_0.eot new file mode 100644 index 0000000..4ce4d6a Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_B_0.eot differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_B_0.ttf b/app/views/static/api/docs/assets/webfonts/2C4B9D_B_0.ttf new file mode 100644 index 0000000..c99f970 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_B_0.ttf differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_B_0.woff b/app/views/static/api/docs/assets/webfonts/2C4B9D_B_0.woff new file mode 100644 index 0000000..36b8633 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_B_0.woff differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_B_0.woff2 b/app/views/static/api/docs/assets/webfonts/2C4B9D_B_0.woff2 new file mode 100644 index 0000000..0710e2f Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_B_0.woff2 differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_C_0.eot b/app/views/static/api/docs/assets/webfonts/2C4B9D_C_0.eot new file mode 100644 index 0000000..07a0c55 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_C_0.eot differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_C_0.ttf b/app/views/static/api/docs/assets/webfonts/2C4B9D_C_0.ttf new file mode 100644 index 0000000..42d2218 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_C_0.ttf differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_C_0.woff b/app/views/static/api/docs/assets/webfonts/2C4B9D_C_0.woff new file mode 100644 index 0000000..35c7c97 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_C_0.woff differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_C_0.woff2 b/app/views/static/api/docs/assets/webfonts/2C4B9D_C_0.woff2 new file mode 100644 index 0000000..b06af82 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_C_0.woff2 differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_D_0.eot b/app/views/static/api/docs/assets/webfonts/2C4B9D_D_0.eot new file mode 100644 index 0000000..c3cb308 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_D_0.eot differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_D_0.ttf b/app/views/static/api/docs/assets/webfonts/2C4B9D_D_0.ttf new file mode 100644 index 0000000..58a76d5 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_D_0.ttf differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_D_0.woff b/app/views/static/api/docs/assets/webfonts/2C4B9D_D_0.woff new file mode 100644 index 0000000..83c7a01 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_D_0.woff differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_D_0.woff2 b/app/views/static/api/docs/assets/webfonts/2C4B9D_D_0.woff2 new file mode 100644 index 0000000..0267b94 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_D_0.woff2 differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_E_0.eot b/app/views/static/api/docs/assets/webfonts/2C4B9D_E_0.eot new file mode 100644 index 0000000..294d4d6 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_E_0.eot differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_E_0.ttf b/app/views/static/api/docs/assets/webfonts/2C4B9D_E_0.ttf new file mode 100644 index 0000000..7c5f224 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_E_0.ttf differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_E_0.woff b/app/views/static/api/docs/assets/webfonts/2C4B9D_E_0.woff new file mode 100644 index 0000000..70bef2c Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_E_0.woff differ diff --git a/app/views/static/api/docs/assets/webfonts/2C4B9D_E_0.woff2 b/app/views/static/api/docs/assets/webfonts/2C4B9D_E_0.woff2 new file mode 100644 index 0000000..62b6610 Binary files /dev/null and b/app/views/static/api/docs/assets/webfonts/2C4B9D_E_0.woff2 differ diff --git a/app/views/static/api/docs/directive/deprecated/index.html b/app/views/static/api/docs/directive/deprecated/index.html new file mode 100644 index 0000000..f4d4e0b --- /dev/null +++ b/app/views/static/api/docs/directive/deprecated/index.html @@ -0,0 +1,1071 @@ +

+deprecated

+

Marks an element of a GraphQL schema as no longer supported.

+

+Locations

+ +

+Arguments

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
reason + String + +

Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in Markdown.

+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/directive/include/index.html b/app/views/static/api/docs/directive/include/index.html new file mode 100644 index 0000000..57c9e24 --- /dev/null +++ b/app/views/static/api/docs/directive/include/index.html @@ -0,0 +1,1070 @@ +

+include

+

Directs the executor to include this field or fragment only when the if argument is true.

+

+Locations

+ +

+Arguments

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
if + Boolean! + +

Included when true.

+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/directive/index.html b/app/views/static/api/docs/directive/index.html new file mode 100644 index 0000000..9d2f169 --- /dev/null +++ b/app/views/static/api/docs/directive/index.html @@ -0,0 +1,1042 @@ +

+Directives

+

Directives provide a way to describe alternate runtime execution and type validation behavior in a GraphQL document.

+

For more information, see the GraphQL spec.

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/directive/skip/index.html b/app/views/static/api/docs/directive/skip/index.html new file mode 100644 index 0000000..b49176f --- /dev/null +++ b/app/views/static/api/docs/directive/skip/index.html @@ -0,0 +1,1070 @@ +

+skip

+

Directs the executor to skip this field or fragment when the if argument is true.

+

+Locations

+ +

+Arguments

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
if + Boolean! + +

Skipped when true.

+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/enum/__directivelocation/index.html b/app/views/static/api/docs/enum/__directivelocation/index.html new file mode 100644 index 0000000..4e988ae --- /dev/null +++ b/app/views/static/api/docs/enum/__directivelocation/index.html @@ -0,0 +1,1133 @@ +

+__DirectiveLocation

+

A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.

+

+Values

+

+QUERY

+
+

Location adjacent to a query operation.

+
+

+MUTATION

+
+

Location adjacent to a mutation operation.

+
+

+SUBSCRIPTION

+
+

Location adjacent to a subscription operation.

+
+

+FIELD

+
+

Location adjacent to a field.

+
+

+FRAGMENT_DEFINITION

+
+

Location adjacent to a fragment definition.

+
+

+FRAGMENT_SPREAD

+
+

Location adjacent to a fragment spread.

+
+

+INLINE_FRAGMENT

+
+

Location adjacent to an inline fragment.

+
+

+SCHEMA

+
+

Location adjacent to a schema definition.

+
+

+SCALAR

+
+

Location adjacent to a scalar definition.

+
+

+OBJECT

+
+

Location adjacent to an object type definition.

+
+

+FIELD_DEFINITION

+
+

Location adjacent to a field definition.

+
+

+ARGUMENT_DEFINITION

+
+

Location adjacent to an argument definition.

+
+

+INTERFACE

+
+

Location adjacent to an interface definition.

+
+

+UNION

+
+

Location adjacent to a union definition.

+
+

+ENUM

+
+

Location adjacent to an enum definition.

+
+

+ENUM_VALUE

+
+

Location adjacent to an enum value definition.

+
+

+INPUT_OBJECT

+
+

Location adjacent to an input object type definition.

+
+

+INPUT_FIELD_DEFINITION

+
+

Location adjacent to an input object field definition.

+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/enum/__typekind/index.html b/app/views/static/api/docs/enum/__typekind/index.html new file mode 100644 index 0000000..470dc1b --- /dev/null +++ b/app/views/static/api/docs/enum/__typekind/index.html @@ -0,0 +1,1083 @@ +

+__TypeKind

+

An enum describing what kind of type a given __Type is.

+

+Values

+

+SCALAR

+
+

Indicates this type is a scalar.

+
+

+OBJECT

+
+

Indicates this type is an object. fields and interfaces are valid fields.

+
+

+INTERFACE

+
+

Indicates this type is an interface. fields and possibleTypes are valid fields.

+
+

+UNION

+
+

Indicates this type is a union. possibleTypes is a valid field.

+
+

+ENUM

+
+

Indicates this type is an enum. enumValues is a valid field.

+
+

+INPUT_OBJECT

+
+

Indicates this type is an input object. inputFields is a valid field.

+
+

+LIST

+
+

Indicates this type is a list. ofType is a valid field.

+
+

+NON_NULL

+
+

Indicates this type is a non-null. ofType is a valid field.

+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/enum/index.html b/app/views/static/api/docs/enum/index.html new file mode 100644 index 0000000..90674a9 --- /dev/null +++ b/app/views/static/api/docs/enum/index.html @@ -0,0 +1,1042 @@ +

+Enums

+

Enums represent a possible set of values for a field. For example, the Issue object has a field called state. The state of an issue may be OPEN or CLOSED.

+

For more information, see the GraphQL spec.

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/index.html b/app/views/static/api/docs/index.html new file mode 100644 index 0000000..6fbb763 --- /dev/null +++ b/app/views/static/api/docs/index.html @@ -0,0 +1,1539 @@ +

+About the GraphQL API

+

Decidim comes with an API that follows the GraphQL specification. It has a comprehensive coverage of all the public content that can be found on the website.

+

Currently, it is read-only (except for posting comments) but intends to cover anything that is published on the regular website.

+

Typically (although some particular installations may change that) you will find 3 relevant folders:

+ +

+Using the GraphQL APi

+

The GraphQL format is a JSON formatted text that is specified in a query. Response is a JSON object as well. For details about specification check the official GraphQL site.

+

For instance, you can check the version of a Decidim installation by using curl in the terminal:

+
curl -sSH "Content-Type: application/json" \
+-d '{"query": "{ decidim { version } }"}' \
+https://www.decidim.barcelona/api/
+
+

Note that Content-Type needs to be specified.

+

The query can also be used in GraphiQL, in that case you can skip the "query" text:

+
{
+  decidim {
+    version
+  }
+}
+
+

Response (formatted) should look something like this:

+
{
+  "data": {
+    "decidim": {
+      "version": "0.18.1"
+    }
+  }
+}
+
+

The most practical way to experiment with GraphQL, however, is just to use the in-browser IDE GraphiQL. It provides access to the documentation and auto-complete (use CTRL-Space) for writing queries.

+

From now on, we will skip the "query" keyword for the purpose of readability. You can skip it too if you are using GraphiQL, if you are querying directly (by using CURL for instance) you will need to include it.

+

+Usage limits

+

Decidim is just a Rails application, meaning that any particular installation may implement custom limits in order to access the API (and the application in general).

+

By default (particular installations may change that), API uses the same limitations as the whole Decidim website, provided by the Gem Rack::Attack. These are 100 maximum requests per minute per IP to prevent DoS attacks

+

+Decidim structure, Types, collections and Polymorphism

+

There are no endpoints in the GraphQL specification, instead objects are organized according to their "Type".

+

These objects can be grouped in a single, complex query. Also, objects may accept parameters, which are "Types" as well.

+

Each "Type" is just a pre-defined structure with fields, or just an Scalar (Strings, Integers, Booleans, ...).

+

For instance, to obtain all the participatory processes in a Decidim installation published since January 2018 and order them by published date, we could execute the next query:

+
{
+  participatoryProcesses(filter: {publishedSince: "2018-01-01"}, order: {publishedAt: "asc"}) {
+    slug
+    title {
+      translation(locale: "en")
+    }
+  }
+}
+
+

Response should look like:

+
{
+  "data": {
+    "participatoryProcesses": [
+      {
+        "slug": "consectetur-at",
+        "title": {
+          "translation": "Soluta consectetur quos fugit aut."
+        }
+      },
+      {
+        "slug": "nostrum-earum",
+        "title": {
+          "translation": "Porro hic ipsam cupiditate reiciendis."
+        }
+      }
+    ]
+  }
+}
+
+

+What happened?

+

In the former query, each keyword represents a type, the words publishedSince, publishedAt, slug, locale are scalars, all of them Strings.

+

The other keywords however, are objects representing certain entities:

+ +

Finally, note that the returned object is an array, each item of which is a representation of the object we requested.

+
+

*About how filters and sorting are organized

+

There are two types of objects to filter and ordering collections in Decidim, they all work in a similar fashion. The type involved in filtering always have the suffix "Filter", for ordering it has the suffix "Sort".

+

The types used to filter participatory spaces are: ParticipatoryProcessFilter, AssemblyFilter, ConsultationFilter and so on.

+

Other collections (or connections) may have their own filters (i.e. ComponentFilter).

+

Each filter has its own properties, you should check any object in particular for details. The way they work with multi-languages fields, however, is the same:

+

Let's say we have some searchable object with a multi-language field called title, and we have a filter that allows us to search through this field. How should it work? Should we look up content for every language in the field? or should we stick to a specific language?

+

In our case, we've decided to search only one particular language of a multi-language field but we let you choose which language to search. +If no language is specified, the configured as default in the organization will be used. The keyword to specify the language is locale, and it should be provided in the 2 letters ISO 639-1 format (en = English, es = Spanish, ...).

+

Example (this is not a real Decidim query):

+
 some_collection(filter: { locale: "en", title: "ideas"}) {
+   id
+ }
+
+

The same applies to sorting (ParticipatoryProcessSort, AssemblySort, etc.)

+

In this case, the content of the field (title) only allows 2 values: ASC and DESC.

+

Example of ordering alphabetically by the title content in French language:

+
some_collection(order: { locale: "en", title: "asc"}) {
+  id
+}
+
+

Of course, you can combine both filter and order. Also remember to check availability of this type of behaviour for any particular filter/sort.

+
+

+Decidim main types

+

Decidim has 2 main types of objects through which content is provided. These are Participatory Spaces and Components.

+

A participatory space is the first level, currently there are 5 officially supported: Participatory Processes, Assemblies, Consultations, Conferences and Initiatives. For each participatory process there will correspond a collection type and a "single item" type.

+

The previous example uses the collection type for participatory processes. You can try assemblies, conferences, consultations or initiatives for the others. Note that each collection can implement their own filter and order types with different properties.

+

As an example for a single item query, you can run:

+
{
+  participatoryProcess(slug: "consectetur-at") {
+    slug
+    title {
+      translation(locale: "en")
+    }
+  }
+}
+
+

And the response will be:

+
{
+  "data": {
+    "participatoryProcess": {
+      "slug": "consectetur-at",
+      "title": {
+        "translation": "Soluta consectetur quos fugit aut."
+      }
+    }
+  }
+}
+
+

+What's different?

+

First, note that we are querying, in singular, the type participatoryProcess, with a different parameter, slug*, (a String). We can use the id instead if we know it.

+

Second, the response is not an Array, it is just the object we requested. We can expect to return null if the object is not found.

+
+

* The slug is a convenient way to find a participatory space as is (usually) in the URL.

+

For instance, consider this real case from Barcelona:

+

https://www.decidim.barcelona/processes/patrimonigracia

+

The word patrimonigracia indicates the "slug".

+
+

+Components

+

Every participatory space may (and should) have some components. There are 9 official components, these are Proposals, Page, Meetings, Budgets, Surveys, Accountability, Debates, Sortitions and Blog. Plugins may add their own components.

+

If you know the id* of a specific component you can obtain it by querying it directly:

+
{
+  component(id:2) {
+    id
+    name {
+      translation(locale:"en")
+    }
+    __typename
+    participatorySpace {
+      id
+      type
+    }
+  }
+}
+
+

Response:

+
{
+  "data": {
+    "component": {
+      "id": "2",
+      "name": {
+        "translation": "Meetings"
+      },
+      "__typename": "Meetings",
+      "participatorySpace": {
+        "id": "1",
+        "type": "Decidim::ParticipatoryProcess"
+      }
+    }
+  }
+}
+
+

The process is analogue as what has been explained in the case of searching for one specific participatory process.

+
+

*Note that the id of a component is present also in the URL after the letter "f":

+

https://www.decidim.barcelona/processes/patrimonigracia/f/3257/

+

In this case, 3257.

+
+

+What about component's collections?

+

Glad you asked, component's collections cannot be retrieved directly, the are available in the context of a participatory space.

+

For instance, we can query all the components in an particular Assembly as follows:

+
{
+  assembly(id: 3) {
+    components {
+      id
+      name {
+        translation(locale: "en")
+      }
+      __typename
+    }
+  }
+}
+
+

The response will be similar to:

+
{
+  "data": {
+    "assembly": {
+      "components": [
+        {
+          "id": "42",
+          "name": {
+            "translation": "Accountability"
+          },
+          "__typename": "Component"
+        },
+        {
+          "id": "38",
+          "name": {
+            "translation": "Meetings"
+          },
+          "__typename": "Meetings"
+        },
+        {
+          "id": "37",
+          "name": {
+            "translation": "Page"
+          },
+          "__typename": "Pages"
+        },
+        {
+          "id": "39",
+          "name": {
+            "translation": "Proposals"
+          },
+          "__typename": "Proposals"
+        }
+      ]
+    }
+  }
+}
+
+

We can also apply some filters by using the ComponentFilter type. In the next query we would like to find all the components with geolocation enabled in the assembly with id=2:

+
{
+  assembly(id: 2) {
+    components(filter: {withGeolocationEnabled: true}) {
+      id
+      name {
+        translation(locale: "en")
+      }
+      __typename
+    }
+  }
+}
+
+

The response:

+
{
+  "data": {
+    "assembly": {
+      "components": [
+        {
+          "id": "39",
+          "name": {
+            "translation": "Meetings"
+          },
+          "__typename": "Meetings"
+        }
+      ]
+    }
+  }
+}
+
+

Note that, in this case, there is only one component returned, "Meetings". In some cases Proposals can be geolocated too therefore would be returned in this query.

+

+Polymorphism and connections

+

Many relationships between tables in Decidim are polymorphic, this means that the related object can belong to different classes and share just a few properties in common.

+

For instance, components in a participatory space are polymorphic, while the concept of component is generic and all of them share properties like published date, name or weight, they differ in the rest. Proposals have the status field while Meetings have an agenda.

+

Another example are the case of linked resources, these are properties that may link objects of different nature between components or participatory spaces.

+

In a very simplified way (to know more please refer to the official guide), GraphQL polymorphism is handled through the operator ... on. You'll know when a field is polymorphic because the property __typename, which tells you the type of that particular object, will change accordingly.

+

In the previous examples we've queried for this property:

+

Response fragment:

+
...
+      "components": [
+        {
+          "id": "38",
+          "name": {
+            "translation": "Meetings"
+          },
+          "__typename": "Meetings"
+        }
+...
+
+

So, if we want to access the rest of the properties in a polymorphic object, we should do it through the ... on operator as follows:

+
{
+  assembly(id: 2) {
+    components {
+      id
+      ... on Proposals {
+
+      }
+    }
+  }
+}
+
+

Consider this query:

+
{
+  assembly(id: 3) {
+    components(filter: {type: "Proposals"}) {
+      id
+      name {
+        translation(locale: "en")
+      }
+      ... on Proposals {
+        proposals(order: {endorsementCount: "desc"}, first: 2) {
+          edges {
+            node {
+              id
+              endorsements {
+                name
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+}
+
+

The response:

+
{
+  "data": {
+    "assembly": {
+      "components": [
+        {
+          "id": "39",
+          "name": {
+            "translation": "Proposals"
+          },
+          "proposals": {
+            "edges": [
+              {
+                "node": {
+                  "id": "35",
+                  "endorsements": [
+                    {
+                      "name": "Ms. Johnathon Schaefer"
+                    },
+                    {
+                      "name": "Linwood Lakin PhD 3 4 endr1"
+                    },
+                    {
+                      "name": "Gracie Emmerich"
+                    },
+                    {
+                      "name": "Randall Rath 3 4 endr3"
+                    },
+                    {
+                      "name": "Jolene Schmitt MD"
+                    },
+                    {
+                      "name": "Clarence Hammes IV 3 4 endr5"
+                    },
+                    {
+                      "name": "Omar Mayer"
+                    },
+                    {
+                      "name": "Raymundo Jaskolski 3 4 endr7"
+                    }
+                  ]
+                }
+              },
+              {
+                "node": {
+                  "id": "33",
+                  "endorsements": [
+                    {
+                      "name": "Spring Brakus"
+                    },
+                    {
+                      "name": "Reiko Simonis IV 3 2 endr1"
+                    },
+                    {
+                      "name": "Dr. Jim Denesik"
+                    },
+                    {
+                      "name": "Dr. Mack Schoen 3 2 endr3"
+                    }
+                  ]
+                }
+              }
+            ]
+          }
+        }
+      ]
+    }
+  }
+}
+
+

+What's going on?

+

Until the ... on Proposals line, there's nothing new. We are requesting the Assembly participatory space identified by the id=3, then listing all its components with the type "Proposals". All the components share the id and name properties, so we can just add them at the query.

+

After that, we want content specific from the Proposals type. In order to do that we must tell the server that the content we will request shall only be executed if the types matches Proposals. We do that by wrapping the rest of the query in the ... on Proposals clause.

+

The next line is just a property of the type Proposals which is a type of collection called a "connection". A connection works similar as normal collection (such as components) but it can handle more complex cases.

+

Typically, a connection is used to paginate long results, for this purpose the results are not directly available but encapsulated inside the list edges in several node results. Also there are more arguments available in order to navigate between pages. This are the arguments:

+ +

Example:

+
{
+  assembly(id: 3) {
+    components(filter: {type: "Proposals"}) {
+      id
+      name {
+        translation(locale: "en")
+      }
+      ... on Proposals {
+        proposals(first:2,after:"Mg") {
+          pageInfo {
+            endCursor
+            startCursor
+            hasPreviousPage
+            hasNextPage
+          }
+          edges {
+            node {
+              id
+              endorsements {
+                name
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+}
+
+

Being the response:

+
{
+  "data": {
+    "assembly": {
+      "components": [
+        {
+          "id": "39",
+          "name": {
+            "translation": "Proposals"
+          },
+          "proposals": {
+            "pageInfo": {
+              "endCursor": "NA",
+              "startCursor": "Mw",
+              "hasPreviousPage": false,
+              "hasNextPage": true
+            },
+            "edges": [
+              {
+                "node": {
+                  "id": "32",
+                  "endorsements": []
+                }
+              },
+              {
+                "node": {
+                  "id": "31",
+                  "endorsements": [
+                    {
+                      "name": "Mr. Nicolas Raynor"
+                    },
+                    {
+                      "name": "Gerry Fritsch PhD 3 1 endr1"
+                    }
+                  ]
+                }
+              }
+            ]
+          }
+        }
+      ]
+    }
+  }
+}
+
+

As you can see, a part from the edges list, you can access to the object pageInfo which gives you the information needed to navigate through the different pages.

+

For more info on how connections work, you can check the official guide:

+

https://graphql.org/learn/pagination/

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/input_object/categoryfilter/index.html b/app/views/static/api/docs/input_object/categoryfilter/index.html new file mode 100644 index 0000000..b310f51 --- /dev/null +++ b/app/views/static/api/docs/input_object/categoryfilter/index.html @@ -0,0 +1,1049 @@ +

+CategoryFilter

+

A type used for filtering any category objects

+

+Input Fields

+
+ parentId ([ID]) +
+

Returns the sub-categories for the given parent category or top-level categories if set to null

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/input_object/componentfilter/index.html b/app/views/static/api/docs/input_object/componentfilter/index.html new file mode 100644 index 0000000..4fa5d08 --- /dev/null +++ b/app/views/static/api/docs/input_object/componentfilter/index.html @@ -0,0 +1,1085 @@ +

+ComponentFilter

+

A type used for filtering any component parent objects

+

+Input Fields

+
+ publishedBefore (String) +
+

List result published before (and excluding) this date. Expected format YYYY-MM-DD

+
+
+
+ publishedSince (String) +
+

List result published after (and including) this date. Expected format YYYY-MM-DD

+
+
+
+ locale (String) +
+

Specify the locale to use when searching translated fields, otherwise default organization language will be used

+
+
+
+ type (String) +
+

Filters by type of component

+
+
+
+ name (String) +
+

Filters by name of the component, additional locale parameter can be provided to specify in which to search

+
+
+
+ withGeolocationEnabled (Boolean) +
+

Returns components with geolocation activated (may be Proposals or Meetings)

+
+
+
+ withCommentsEnabled (Boolean) +
+

Returns components with comments enabled globally (can still be deactivated in the current step if the component has steps)

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/input_object/componentsort/index.html b/app/views/static/api/docs/input_object/componentsort/index.html new file mode 100644 index 0000000..6f43235 --- /dev/null +++ b/app/views/static/api/docs/input_object/componentsort/index.html @@ -0,0 +1,1073 @@ +

+ComponentSort

+

A type used for sorting any component parent objects

+

+Input Fields

+
+ locale (String) +
+

Specify the locale to use when ordering translated fields, otherwise default organization language will be used

+
+
+
+ id (String) +
+

Sort by ID, valid values are ASC or DESC

+
+
+
+ weight (String) +
+

Sort by weight (order in the website), valid values are ASC or DESC

+
+
+
+ type (String) +
+

Sort by type of component, alphabetically, valid values are ASC or DESC

+
+
+
+ name (String) +
+

Sort by name of the component, alphabetically, valid values are ASC or DESC

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/input_object/index.html b/app/views/static/api/docs/input_object/index.html new file mode 100644 index 0000000..cd617f8 --- /dev/null +++ b/app/views/static/api/docs/input_object/index.html @@ -0,0 +1,1042 @@ +

+Input Objects

+

Input objects are best described as "composable objects" in that they contain a set of input fields that define a particular object. For example, the AuthorInput takes a field called emails. Providing a value for emails will transform the AuthorInput into a list of User objects which contain that email address/

+

For more information, see the GraphQL spec.

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/input_object/participatoryprocessfilter/index.html b/app/views/static/api/docs/input_object/participatoryprocessfilter/index.html new file mode 100644 index 0000000..3d2d99e --- /dev/null +++ b/app/views/static/api/docs/input_object/participatoryprocessfilter/index.html @@ -0,0 +1,1061 @@ +

+ParticipatoryProcessFilter

+

A type used for filtering participatory processes

+

+Input Fields

+
+ publishedBefore (String) +
+

List result published before (and excluding) this date. Expected format YYYY-MM-DD

+
+
+
+ publishedSince (String) +
+

List result published after (and including) this date. Expected format YYYY-MM-DD

+
+
+
+ hashtag (String) +
+

List result having this hashtag

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/input_object/participatoryprocesssort/index.html b/app/views/static/api/docs/input_object/participatoryprocesssort/index.html new file mode 100644 index 0000000..76cad81 --- /dev/null +++ b/app/views/static/api/docs/input_object/participatoryprocesssort/index.html @@ -0,0 +1,1061 @@ +

+ParticipatoryProcessSort

+

A type used for sorting participatory processess

+

+Input Fields

+
+ publishedAt (String) +
+

Sort by date of publication, valid values are ASC or DESC

+
+
+
+ id (String) +
+

Sort by ID, valid values are ASC or DESC

+
+
+
+ startDate (String) +
+

Sort by participatory process starting date, valid values are ASC or DESC

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/input_object/postfilter/index.html b/app/views/static/api/docs/input_object/postfilter/index.html new file mode 100644 index 0000000..c7a048c --- /dev/null +++ b/app/views/static/api/docs/input_object/postfilter/index.html @@ -0,0 +1,1080 @@ +

+PostFilter

+

A type used for filtering posts inside a participatory space.

+

A typical query would look like:

+
  {
+  participatoryProcesses {
+    components {
+      ...on Blogs {
+        posts(filter:{ createdBefore: "2020-01-01" }) {
+          id
+        }
+      }
+    }
+  }
+  }
+
+

+Input Fields

+
+ createdBefore (String) +
+

List result created before (and excluding) this date. Expected format YYYY-MM-DD

+
+
+
+ createdSince (String) +
+

List result created after (and including) this date. Expected format YYYY-MM-DD

+
+
+
+ updatedBefore (String) +
+

List result updated before (and excluding) this date. Expected format YYYY-MM-DD

+
+
+
+ updatedSince (String) +
+

List result updated after (and including) this date. Expected format YYYY-MM-DD

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/input_object/postsort/index.html b/app/views/static/api/docs/input_object/postsort/index.html new file mode 100644 index 0000000..45fcdec --- /dev/null +++ b/app/views/static/api/docs/input_object/postsort/index.html @@ -0,0 +1,1067 @@ +

+PostSort

+

A type used for sorting blog posts

+

+Input Fields

+
+ createdAt (String) +
+

Sort by date of creation, valid values are ASC or DESC

+
+
+
+ updatedAt (String) +
+

Sort by date of last modification, valid values are ASC or DESC

+
+
+
+ endorsementCount (String) +
+

Sort by number of endorsements, valid values are ASC or DESC

+
+
+
+ id (String) +
+

Sort by ID, valid values are ASC or DESC

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/input_object/proposalfilter/index.html b/app/views/static/api/docs/input_object/proposalfilter/index.html new file mode 100644 index 0000000..12bf526 --- /dev/null +++ b/app/views/static/api/docs/input_object/proposalfilter/index.html @@ -0,0 +1,1068 @@ +

+ProposalFilter

+

A type used for filtering proposals inside a participatory space.

+

A typical query would look like:

+
  {
+  participatoryProcesses {
+    components {
+      ...on Proposals {
+        proposals(filter:{ publishedBefore: "2020-01-01" }) {
+          id
+        }
+      }
+    }
+  }
+  }
+
+

+Input Fields

+
+ publishedBefore (String) +
+

List result published before (and excluding) this date. Expected format YYYY-MM-DD

+
+
+
+ publishedSince (String) +
+

List result published after (and including) this date. Expected format YYYY-MM-DD

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/input_object/proposalsort/index.html b/app/views/static/api/docs/input_object/proposalsort/index.html new file mode 100644 index 0000000..0fb23ae --- /dev/null +++ b/app/views/static/api/docs/input_object/proposalsort/index.html @@ -0,0 +1,1067 @@ +

+ProposalSort

+

A type used for sorting proposals

+

+Input Fields

+
+ publishedAt (String) +
+

Sort by date of publication, valid values are ASC or DESC

+
+
+
+ endorsementCount (String) +
+

Sort by number of endorsements, valid values are ASC or DESC

+
+
+
+ id (String) +
+

Sort by ID, valid values are ASC or DESC

+
+
+
+ voteCount (String) +
+

Sort by number of votes, valid values are ASC or DESC. Will be ignored if votes are hidden

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/input_object/userentityfilter/index.html b/app/views/static/api/docs/input_object/userentityfilter/index.html new file mode 100644 index 0000000..1c709a3 --- /dev/null +++ b/app/views/static/api/docs/input_object/userentityfilter/index.html @@ -0,0 +1,1075 @@ +

+UserEntityFilter

+

A type used for filtering any user or group +A typical query would look like: +{ users(filter:{wildcard:"sandy", excludeIds:[2,10,11]}) { id ...on User { groups { name } } ...on UserGroup { members { name } } } }

+

+Input Fields

+
+ type (String) +
+

Filters by type of entity (User or UserGroup)

+
+
+
+ name (String) +
+

Filters by name of the user entity. Searches (case insensitive) any fragment of the provided string

+
+
+
+ nickname (String) +
+

Filters by nickname of the user entity. Searches (case insensitive) any fragment of the provided string

+
+
+
+ wildcard (String) +
+

Filters by nickname or name of the user entity. Searches (case insensitive) any fragment of the provided string

+
+
+
+ excludeIds ([ID!]) +
+

Excludes users contained in given ids. Valid values are one or more IDs (passed as an array)

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/input_object/userentitysort/index.html b/app/views/static/api/docs/input_object/userentitysort/index.html new file mode 100644 index 0000000..a7cb16a --- /dev/null +++ b/app/views/static/api/docs/input_object/userentitysort/index.html @@ -0,0 +1,1067 @@ +

+UserEntitySort

+

A type used for sorting any component parent objects

+

+Input Fields

+
+ id (String) +
+

Sort by ID, valid values are ASC or DESC

+
+
+
+ type (String) +
+

Sort by type of user entity (user or group), alphabetically, valid values are ASC or DESC

+
+
+
+ name (String) +
+

Sort by name of the user entity (user or group), alphabetically, valid values are ASC or DESC

+
+
+
+ nickname (String) +
+

Sort by nickname of the user entity (user or group), alphabetically, valid values are ASC or DESC

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/amendableentityinterface/index.html b/app/views/static/api/docs/interface/amendableentityinterface/index.html new file mode 100644 index 0000000..7a23fb7 --- /dev/null +++ b/app/views/static/api/docs/interface/amendableentityinterface/index.html @@ -0,0 +1,1054 @@ +

+AmendableEntityInterface

+

An interface that can be used in objects with amendments

+

+Implemented by

+ +

+Fields

+
+ id (ID!) +
+

ID of this entity

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/amendableinterface/index.html b/app/views/static/api/docs/interface/amendableinterface/index.html new file mode 100644 index 0000000..75b309a --- /dev/null +++ b/app/views/static/api/docs/interface/amendableinterface/index.html @@ -0,0 +1,1054 @@ +

+AmendableInterface

+

An interface that can be used in objects with amendments

+

+Implemented by

+ +

+Fields

+
+ amendments ([Amendment]!) +
+

This object's amendments

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/attachableinterface/index.html b/app/views/static/api/docs/interface/attachableinterface/index.html new file mode 100644 index 0000000..0536407 --- /dev/null +++ b/app/views/static/api/docs/interface/attachableinterface/index.html @@ -0,0 +1,1060 @@ +

+AttachableInterface

+

An interface that can be used in objects with attachments

+

+Implemented by

+ +

+Fields

+
+ attachments ([Attachment]!) +
+

This object's attachments

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/author/index.html b/app/views/static/api/docs/interface/author/index.html new file mode 100644 index 0000000..b807f21 --- /dev/null +++ b/app/views/static/api/docs/interface/author/index.html @@ -0,0 +1,1097 @@ +

+Author

+

An author

+

+Implemented by

+ +

+Fields

+
+ id (ID!) +
+

The author ID

+
+
+
+ name (String!) +
+

The author's name

+
+
+
+ nickname (String!) +
+

The author's nickname

+
+
+
+ avatarUrl (String!) +
+

The author's avatar url

+
+
+
+ profilePath (String!) +
+

The author's profile path

+
+
+
+ badge (String!) +
+

The author's badge icon

+
+
+
+ organizationName (String!) +
+

The authors's organization name

+
+
+
+ deleted (Boolean!) +
+

Whether the author's account has been deleted or not

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/authorableinterface/index.html b/app/views/static/api/docs/interface/authorableinterface/index.html new file mode 100644 index 0000000..e406dfa --- /dev/null +++ b/app/views/static/api/docs/interface/authorableinterface/index.html @@ -0,0 +1,1057 @@ +

+AuthorableInterface

+

An interface that can be used in authorable objects.

+

+Implemented by

+ +

+Fields

+
+ author (Author) +
+

The resource author

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/categoriescontainerinterface/index.html b/app/views/static/api/docs/interface/categoriescontainerinterface/index.html new file mode 100644 index 0000000..dc522c4 --- /dev/null +++ b/app/views/static/api/docs/interface/categoriescontainerinterface/index.html @@ -0,0 +1,1076 @@ +

+CategoriesContainerInterface

+

An interface that can be used in objects that contain categories.

+

+Implemented by

+ +

+Fields

+
+ categories ([Category]!) +
+

Categories for this space

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
filter + CategoryFilter + +

Provides several methods to filter the results

+
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/categorizableinterface/index.html b/app/views/static/api/docs/interface/categorizableinterface/index.html new file mode 100644 index 0000000..ba75bf1 --- /dev/null +++ b/app/views/static/api/docs/interface/categorizableinterface/index.html @@ -0,0 +1,1059 @@ +

+CategorizableInterface

+

An interface that can be used in categorizable objects.

+

+Implemented by

+ +

+Fields

+
+ category (Category) +
+

The object's category

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/coauthorableinterface/index.html b/app/views/static/api/docs/interface/coauthorableinterface/index.html new file mode 100644 index 0000000..879f90b --- /dev/null +++ b/app/views/static/api/docs/interface/coauthorableinterface/index.html @@ -0,0 +1,1066 @@ +

+CoauthorableInterface

+

An interface that can be used in coauthorable objects.

+

+Implemented by

+ +

+Fields

+
+ authorsCount (Int) +
+

The total amount of co-authors that contributed to the entity. Note that this field may include also non-user authors like meetings or the organization

+
+
+
+ author (Author) +
+

The resource author. Note that this can be null on official proposals or meeting-proposals

+
+
+
+ authors ([Author]!) +
+

The resource co-authors. Include only users or groups of users

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/commentableinterface/index.html b/app/views/static/api/docs/interface/commentableinterface/index.html new file mode 100644 index 0000000..fa889c5 --- /dev/null +++ b/app/views/static/api/docs/interface/commentableinterface/index.html @@ -0,0 +1,1138 @@ +

+CommentableInterface

+

A commentable interface

+

+Implemented by

+ +

+Fields

+
+ id (ID!) +
+

The commentable's ID

+
+
+
+ type (String!) +
+

The commentable's class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ acceptsNewComments (Boolean!) +
+

Whether the object can have new comments or not

+
+
+
+ commentsHaveAlignment (Boolean!) +
+

Whether the object comments have alignment or not

+
+
+
+ commentsHaveVotes (Boolean!) +
+

Whether the object comments have votes or not

+
+
+
+ comments ([Comment!]!) +
+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
orderBy + String + +

Order the comments

+
singleCommentId + String + +

ID of the single comment to look at

+
+
+
+
+ totalCommentsCount (Int!) +
+

The number of comments in all levels this resource holds

+
+
+
+ hasComments (Boolean!) +
+

Check if the commentable has comments

+
+
+
+ userAllowedToComment (Boolean!) +
+

Check if the current user can comment

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/componentinterface/index.html b/app/views/static/api/docs/interface/componentinterface/index.html new file mode 100644 index 0000000..5fcaf79 --- /dev/null +++ b/app/views/static/api/docs/interface/componentinterface/index.html @@ -0,0 +1,1082 @@ +

+ComponentInterface

+

This interface is implemented by all components that belong into a Participatory Space

+

+Implemented by

+ +

+Fields

+
+ id (ID!) +
+

The Component's unique ID

+
+
+
+ name (TranslatedField!) +
+

The name of this component.

+
+
+
+ weight (Int!) +
+

The weight of the component

+
+
+
+ participatorySpace (ParticipatorySpace!) +
+

The participatory space in which this component belongs to.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/endorsableinterface/index.html b/app/views/static/api/docs/interface/endorsableinterface/index.html new file mode 100644 index 0000000..2488a20 --- /dev/null +++ b/app/views/static/api/docs/interface/endorsableinterface/index.html @@ -0,0 +1,1061 @@ +

+EndorsableInterface

+

An interface that can be used in objects with endorsements

+

+Implemented by

+ +

+Fields

+
+ endorsements ([Author]!) +
+

The endorsements of this object.

+
+
+
+ endorsementsCount (Int) +
+

The total amount of endorsements the object has received

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/fingerprintinterface/index.html b/app/views/static/api/docs/interface/fingerprintinterface/index.html new file mode 100644 index 0000000..d6d964e --- /dev/null +++ b/app/views/static/api/docs/interface/fingerprintinterface/index.html @@ -0,0 +1,1054 @@ +

+FingerprintInterface

+

An interface that can be used in fingerprintable objects.

+

+Implemented by

+ +

+Fields

+
+ fingerprint (Fingerprint!) +
+

This object's fingerprint

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/index.html b/app/views/static/api/docs/interface/index.html new file mode 100644 index 0000000..c5e0da8 --- /dev/null +++ b/app/views/static/api/docs/interface/index.html @@ -0,0 +1,1042 @@ +

+Interfaces

+

GraphQL Interfaces are a sort of "parent object" from which other objects can "inherit" from. For example, Stars is considered an interface, because both Repository and Gist can be starred. An interface has its own list of named fields that are shared by implementing objects.

+

For more information, see the GraphQL spec.

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/meetingslinkedresourcesinterface/index.html b/app/views/static/api/docs/interface/meetingslinkedresourcesinterface/index.html new file mode 100644 index 0000000..89087a9 --- /dev/null +++ b/app/views/static/api/docs/interface/meetingslinkedresourcesinterface/index.html @@ -0,0 +1,1054 @@ +

+MeetingsLinkedResourcesInterface

+

An interface that can be used with Resourceable models.

+

+Implemented by

+ +

+Fields

+
+ proposalsFromMeeting ([Proposal]!) +
+

Proposals created in this meeting

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/participatoryspaceinterface/index.html b/app/views/static/api/docs/interface/participatoryspaceinterface/index.html new file mode 100644 index 0000000..0152790 --- /dev/null +++ b/app/views/static/api/docs/interface/participatoryspaceinterface/index.html @@ -0,0 +1,1109 @@ +

+ParticipatorySpaceInterface

+

The interface that all participatory spaces should implement.

+

+Implemented by

+ +

+Fields

+
+ id (ID!) +
+

The participatory space's unique ID

+
+
+
+ title (TranslatedField!) +
+

The graphql_name of this participatory space.

+
+
+
+ type (String!) +
+

The participatory space class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ components ([ComponentInterface!]) +
+

Lists the components this space contains.

+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
filter + ComponentFilter + +

Provides several methods to filter the results

+
order + ComponentSort + +

Provides several methods to order the results

+
+
+
+
+ stats ([Statistic]) +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/participatoryspaceresourceableinterface/index.html b/app/views/static/api/docs/interface/participatoryspaceresourceableinterface/index.html new file mode 100644 index 0000000..c7dc9bc --- /dev/null +++ b/app/views/static/api/docs/interface/participatoryspaceresourceableinterface/index.html @@ -0,0 +1,1055 @@ +

+ParticipatorySpaceResourceableInterface

+

An interface that can be used in objects with participatorySpaceResourceable

+

+Implemented by

+ +

+Fields

+
+ linkedParticipatorySpaces ([ParticipatorySpaceLink!]!) +
+

Lists all linked participatory spaces in a polymorphic way

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/questionnaireentityinterface/index.html b/app/views/static/api/docs/interface/questionnaireentityinterface/index.html new file mode 100644 index 0000000..d5c60e1 --- /dev/null +++ b/app/views/static/api/docs/interface/questionnaireentityinterface/index.html @@ -0,0 +1,1054 @@ +

+QuestionnaireEntityInterface

+

An interface that can be used in objects with questionnaires

+

+Implemented by

+ +

+Fields

+
+ id (ID!) +
+

ID of this entity

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/scopableinterface/index.html b/app/views/static/api/docs/interface/scopableinterface/index.html new file mode 100644 index 0000000..4c39e8d --- /dev/null +++ b/app/views/static/api/docs/interface/scopableinterface/index.html @@ -0,0 +1,1061 @@ +

+ScopableInterface

+

An interface that can be used in scopable objects.

+

+Implemented by

+ +

+Fields

+
+ scope (Scope) +
+

The object's scope

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/servicesinterface/index.html b/app/views/static/api/docs/interface/servicesinterface/index.html new file mode 100644 index 0000000..0be085f --- /dev/null +++ b/app/views/static/api/docs/interface/servicesinterface/index.html @@ -0,0 +1,1054 @@ +

+ServicesInterface

+

An interface that can be used with services.

+

+Implemented by

+ +

+Fields

+
+ services ([MeetingService]!) +
+

The object's services

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/timestampsinterface/index.html b/app/views/static/api/docs/interface/timestampsinterface/index.html new file mode 100644 index 0000000..f92ac02 --- /dev/null +++ b/app/views/static/api/docs/interface/timestampsinterface/index.html @@ -0,0 +1,1064 @@ +

+TimestampsInterface

+

An interface that can be used in objects with created_at and updated_at attributes

+

+Implemented by

+ +

+Fields

+
+ createdAt (DateTime) +
+

The date and time this object was created

+
+
+
+ updatedAt (DateTime) +
+

The date and time this object was updated

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/interface/traceableinterface/index.html b/app/views/static/api/docs/interface/traceableinterface/index.html new file mode 100644 index 0000000..e36cae4 --- /dev/null +++ b/app/views/static/api/docs/interface/traceableinterface/index.html @@ -0,0 +1,1062 @@ +

+TraceableInterface

+

An interface that can be used in objects with traceability (versions)

+

+Implemented by

+ +

+Fields

+
+ versionsCount (Int!) +
+

Total number of versions

+
+
+
+ versions ([TraceVersion]!) +
+

This object's versions

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/mutation/comment/index.html b/app/views/static/api/docs/mutation/comment/index.html new file mode 100644 index 0000000..35fc701 --- /dev/null +++ b/app/views/static/api/docs/mutation/comment/index.html @@ -0,0 +1,1079 @@ +

+comment

+

A comment

+

+Input fields

+
+ id (ID!) +
+

The comment's id

+
+
+
+ locale (String) +
+

The locale for which to get the comments text

+
+
+
+ toggleTranslations (Boolean) +
+

Whether the user asked to toggle the machine translations or not.

+
+
+

+Return fields

+
+ id (ID!) +
+

The Comment's unique ID

+
+
+
+ upVote (Comment) +
+
+
+
+ downVote (Comment) +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/mutation/commentable/index.html b/app/views/static/api/docs/mutation/commentable/index.html new file mode 100644 index 0000000..1f22305 --- /dev/null +++ b/app/views/static/api/docs/mutation/commentable/index.html @@ -0,0 +1,1120 @@ +

+commentable

+

A commentable

+

+Input fields

+
+ id (String!) +
+

The commentable's ID

+
+
+
+ type (String!) +
+

The commentable's class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ locale (String) +
+

The locale for which to get the comments text

+
+
+
+ toggleTranslations (Boolean) +
+

Whether the user asked to toggle the machine translations or not.

+
+
+

+Return fields

+
+ id (ID!) +
+

The Commentable's unique ID

+
+
+
+ addComment (Comment) +
+

Add a new comment to a commentable

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
body + String! + +

The comments's body

+
alignment + Int + +

The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'

+

The default value is 0.

+
userGroupId + ID + +

The comment's user group id. Replaces the author.

+
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/__directive/index.html b/app/views/static/api/docs/object/__directive/index.html new file mode 100644 index 0000000..6faabfa --- /dev/null +++ b/app/views/static/api/docs/object/__directive/index.html @@ -0,0 +1,1111 @@ +

+__Directive

+

A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.

+

In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.

+

+Fields

+
+ name (String!) +
+
+
+
+ description (String) +
+
+
+
+ locations ([__DirectiveLocation!]!) +
+
+
+
+ args ([__InputValue!]!) +
+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
includeDeprecated + Boolean + +

The default value is false.

+
+
+
+
+ onOperation (Boolean!) +
+
+ Deprecation notice +

Use locations.

+
+
+
+
+ onFragment (Boolean!) +
+
+ Deprecation notice +

Use locations.

+
+
+
+
+ onField (Boolean!) +
+
+ Deprecation notice +

Use locations.

+
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/__enumvalue/index.html b/app/views/static/api/docs/object/__enumvalue/index.html new file mode 100644 index 0000000..80775d3 --- /dev/null +++ b/app/views/static/api/docs/object/__enumvalue/index.html @@ -0,0 +1,1063 @@ +

+__EnumValue

+

One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.

+

+Fields

+
+ name (String!) +
+
+
+
+ description (String) +
+
+
+
+ isDeprecated (Boolean!) +
+
+
+
+ deprecationReason (String) +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/__field/index.html b/app/views/static/api/docs/object/__field/index.html new file mode 100644 index 0000000..c56724c --- /dev/null +++ b/app/views/static/api/docs/object/__field/index.html @@ -0,0 +1,1093 @@ +

+__Field

+

Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.

+

+Fields

+
+ name (String!) +
+
+
+
+ description (String) +
+
+
+
+ args ([__InputValue!]!) +
+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
includeDeprecated + Boolean + +

The default value is false.

+
+
+
+
+ type (__Type!) +
+
+
+
+ isDeprecated (Boolean!) +
+
+
+
+ deprecationReason (String) +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/__inputvalue/index.html b/app/views/static/api/docs/object/__inputvalue/index.html new file mode 100644 index 0000000..9e6233b --- /dev/null +++ b/app/views/static/api/docs/object/__inputvalue/index.html @@ -0,0 +1,1074 @@ +

+__InputValue

+

Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.

+

+Fields

+
+ name (String!) +
+
+
+
+ description (String) +
+
+
+
+ type (__Type!) +
+
+
+
+ defaultValue (String) +
+

A GraphQL-formatted string representing the default value for this input value.

+
+
+
+ isDeprecated (Boolean!) +
+
+
+
+ deprecationReason (String) +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/__schema/index.html b/app/views/static/api/docs/object/__schema/index.html new file mode 100644 index 0000000..4658fca --- /dev/null +++ b/app/views/static/api/docs/object/__schema/index.html @@ -0,0 +1,1073 @@ +

+__Schema

+

A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.

+

+Fields

+
+ types ([__Type!]!) +
+

A list of all types supported by this server.

+
+
+
+ queryType (__Type!) +
+

The type that query operations will be rooted at.

+
+
+
+ mutationType (__Type) +
+

If this server supports mutation, the type that mutation operations will be rooted at.

+
+
+
+ subscriptionType (__Type) +
+

If this server support subscription, the type that subscription operations will be rooted at.

+
+
+
+ directives ([__Directive!]!) +
+

A list of all directives supported by this server.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/__type/index.html b/app/views/static/api/docs/object/__type/index.html new file mode 100644 index 0000000..a4a4475 --- /dev/null +++ b/app/views/static/api/docs/object/__type/index.html @@ -0,0 +1,1149 @@ +

+__Type

+

The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the __TypeKind enum.

+

Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.

+

+Fields

+
+ kind (__TypeKind!) +
+
+
+
+ name (String) +
+
+
+
+ description (String) +
+
+
+
+ fields ([__Field!]) +
+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
includeDeprecated + Boolean + +

The default value is false.

+
+
+
+
+ interfaces ([__Type!]) +
+
+
+
+ possibleTypes ([__Type!]) +
+
+
+
+ enumValues ([__EnumValue!]) +
+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
includeDeprecated + Boolean + +

The default value is false.

+
+
+
+
+ inputFields ([__InputValue!]) +
+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
includeDeprecated + Boolean + +

The default value is false.

+
+
+
+
+ ofType (__Type) +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/accountability/index.html b/app/views/static/api/docs/object/accountability/index.html new file mode 100644 index 0000000..87eb12d --- /dev/null +++ b/app/views/static/api/docs/object/accountability/index.html @@ -0,0 +1,1150 @@ +

+Accountability

+

An accountability component of a participatory space.

+

+Implements

+ +

+Connections

+
+ results (ResultConnection) +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
after + String + +

Returns the elements in the list that come after the specified cursor.

+
before + String + +

Returns the elements in the list that come before the specified cursor.

+
first + Int + +

Returns the first n elements from the list.

+
last + Int + +

Returns the last n elements from the list.

+
+
+
+

+Fields

+
+ id (ID!) +
+

The Component's unique ID

+
+
+
+ name (TranslatedField!) +
+

The name of this component.

+
+
+
+ weight (Int!) +
+

The weight of the component

+
+
+
+ participatorySpace (ParticipatorySpace!) +
+

The participatory space in which this component belongs to.

+
+
+
+ result (Result) +
+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/amendment/index.html b/app/views/static/api/docs/object/amendment/index.html new file mode 100644 index 0000000..6f1d23d --- /dev/null +++ b/app/views/static/api/docs/object/amendment/index.html @@ -0,0 +1,1085 @@ +

+Amendment

+

An amendment

+

+Fields

+
+ id (ID!) +
+

The id of this amendment

+
+
+
+ state (String!) +
+

The status of this amendment

+
+
+
+ amender (Author!) +
+

The author of this amendment

+
+
+
+ amendableType (String!) +
+

Type of the amendable object

+
+
+
+ emendationType (String!) +
+

Type of the emendation object

+
+
+
+ amendable (AmendableEntityInterface!) +
+

The original amended resource (currently, a proposal only)

+
+
+
+ emendation (AmendableEntityInterface!) +
+

The emendation (currently, a proposal only)

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/answeroption/index.html b/app/views/static/api/docs/object/answeroption/index.html new file mode 100644 index 0000000..259ca16 --- /dev/null +++ b/app/views/static/api/docs/object/answeroption/index.html @@ -0,0 +1,1061 @@ +

+AnswerOption

+

An answer option for a multi-choice question in a questionnaire

+

+Fields

+
+ id (ID!) +
+

ID of this answer option

+
+
+
+ body (TranslatedField!) +
+

The text answer response option.

+
+
+
+ freeText (Boolean!) +
+

Whether if this answer accepts any free text from the user.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/area/index.html b/app/views/static/api/docs/object/area/index.html new file mode 100644 index 0000000..d473203 --- /dev/null +++ b/app/views/static/api/docs/object/area/index.html @@ -0,0 +1,1073 @@ +

+Area

+

An area.

+

+Fields

+
+ id (ID!) +
+

Internal ID for this area

+
+
+
+ name (TranslatedField!) +
+

The graphql_name of this area.

+
+
+
+ areaType (AreaType) +
+

The area type of this area

+
+
+
+ createdAt (DateTime!) +
+

The time this assembly was created

+
+
+
+ updatedAt (DateTime!) +
+

The time this assembly was updated

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/areatype/index.html b/app/views/static/api/docs/object/areatype/index.html new file mode 100644 index 0000000..2058916 --- /dev/null +++ b/app/views/static/api/docs/object/areatype/index.html @@ -0,0 +1,1061 @@ +

+AreaType

+

An area type.

+

+Fields

+
+ id (ID!) +
+

Internal ID for this area type

+
+
+
+ name (TranslatedField!) +
+

The name of this area type.

+
+
+
+ plural (TranslatedField!) +
+

The plural name of this area type

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/assembliestype/index.html b/app/views/static/api/docs/object/assembliestype/index.html new file mode 100644 index 0000000..9b752ac --- /dev/null +++ b/app/views/static/api/docs/object/assembliestype/index.html @@ -0,0 +1,1073 @@ +

+AssembliesType

+

An assemblies type

+

+Fields

+
+ id (ID!) +
+

The assemblies type's unique ID

+
+
+
+ title (TranslatedField!) +
+

The title of this assemblies type.

+
+
+
+ createdAt (DateTime!) +
+

The time this assemblies type was created

+
+
+
+ updatedAt (DateTime!) +
+

The time this assemblies type was updated

+
+
+
+ assemblies ([Assembly]!) +
+

Assemblies with this assemblies type

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/assembly/index.html b/app/views/static/api/docs/object/assembly/index.html new file mode 100644 index 0000000..312a699 --- /dev/null +++ b/app/views/static/api/docs/object/assembly/index.html @@ -0,0 +1,1423 @@ +

+Assembly

+

An assembly

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+

The internal ID for this assembly

+
+
+
+ title (TranslatedField!) +
+

The graphql_name of this participatory space.

+
+
+
+ type (String!) +
+

The participatory space class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ components ([ComponentInterface!]) +
+

Lists the components this space contains.

+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
filter + ComponentFilter + +

Provides several methods to filter the results

+
order + ComponentSort + +

Provides several methods to order the results

+
+
+
+
+ stats ([Statistic]) +
+
+
+
+ attachments ([Attachment]!) +
+

This object's attachments

+
+
+
+ linkedParticipatorySpaces ([ParticipatorySpaceLink!]!) +
+

Lists all linked participatory spaces in a polymorphic way

+
+
+
+ categories ([Category]!) +
+

Categories for this space

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
filter + CategoryFilter + +

Provides several methods to filter the results

+
+
+
+
+ subtitle (TranslatedField) +
+

The subtitle of this assembly

+
+
+
+ shortDescription (TranslatedField) +
+

The sort description of this assembly

+
+
+
+ description (TranslatedField) +
+

The description of this assembly

+
+
+
+ slug (String!) +
+

The slug of this assembly

+
+
+
+ hashtag (String) +
+

The hashtag for this assembly

+
+
+
+ createdAt (DateTime!) +
+

The time this assembly was created

+
+
+
+ updatedAt (DateTime!) +
+

The time this assembly was updated

+
+
+
+ publishedAt (DateTime!) +
+

The time this assembly was published

+
+
+
+ reference (String!) +
+

Reference for this assembly

+
+
+
+ heroImage (String) +
+

The hero image for this assembly

+
+
+
+ bannerImage (String) +
+

The banner image for this assembly

+
+
+
+ +
+

If this assembly is promoted (therefore in the homepage)

+
+
+
+ developerGroup (TranslatedField) +
+

The promoter group of this assembly

+
+
+
+ metaScope (TranslatedField) +
+

The scope metadata of this assembly

+
+
+
+ localArea (TranslatedField) +
+

The organization area of this assembly

+
+
+
+ target (TranslatedField) +
+

Who participates in this assembly

+
+
+
+ participatoryScope (TranslatedField) +
+

What is decided on this assembly

+
+
+
+ participatoryStructure (TranslatedField) +
+

How it is decided on this assembly

+
+
+
+ showStatistics (Boolean) +
+

If this assembly should show statistics

+
+
+
+ scopesEnabled (Boolean) +
+

If this assembly has scopes enabled

+
+
+
+ privateSpace (Boolean) +
+

If this assembly is a private space

+
+
+
+ area (Area) +
+

Area of this assembly

+
+
+
+ parent (Assembly) +
+

The parent assembly of this assembly

+
+
+
+ parentsPath (String) +
+

Assembly hierarchy representation

+
+
+
+ childrenCount (Int) +
+

Number of children assemblies

+
+
+
+ purposeOfAction (TranslatedField) +
+

Purpose of action

+
+
+
+ composition (TranslatedField) +
+

Composition of this assembly

+
+
+
+ assemblyType (AssembliesType) +
+

Type of the assembly

+
+
+
+ creationDate (Date) +
+

Creation date of this assembly

+
+
+
+ createdBy (String) +
+

The creator of this assembly

+
+
+
+ createdByOther (TranslatedField) +
+

Custom creator

+
+
+
+ duration (Date) +
+

Duration of this assembly

+
+
+
+ includedAt (Date) +
+

Included at

+
+
+
+ closingDate (Date) +
+

Closing date of the assembly

+
+
+
+ closingDateReason (TranslatedField) +
+

Closing date reason of this assembly

+
+
+
+ internalOrganisation (TranslatedField) +
+

Internal organisation of this assembly

+
+
+
+ isTransparent (Boolean) +
+

If this assembly is transparent

+
+
+
+ specialFeatures (TranslatedField) +
+

Special features of this assembly

+
+
+
+ twitterHandler (String) +
+

Twitter handler

+
+
+
+ instagramHandler (String) +
+

Instagram handler

+
+
+
+ facebookHandler (String) +
+

Facebook handler

+
+
+
+ youtubeHandler (String) +
+

Youtube handler

+
+
+
+ githubHandler (String) +
+

Github handler

+
+
+
+ announcement (TranslatedField) +
+

Highlighted announcement for this assembly

+
+
+
+ members ([AssemblyMember]!) +
+

Members of this assembly

+
+
+
+ children ([Assembly]!) +
+

Childrens of this assembly

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/assemblymember/index.html b/app/views/static/api/docs/object/assemblymember/index.html new file mode 100644 index 0000000..3533a8e --- /dev/null +++ b/app/views/static/api/docs/object/assemblymember/index.html @@ -0,0 +1,1115 @@ +

+AssemblyMember

+

An assembly member

+

+Fields

+
+ id (ID!) +
+

Internal ID of the member

+
+
+
+ fullName (String) +
+

Full name of the member

+
+
+
+ position (String) +
+

Position of the member in the assembly

+
+
+
+ user (User) +
+

The corresponding decidim user

+
+
+
+ createdAt (DateTime) +
+

The time this member was created

+
+
+
+ updatedAt (DateTime) +
+

The time this member was updated

+
+
+
+ weight (Int) +
+

Order of appearance in which it should be represented

+
+
+
+ gender (String) +
+

Gender of the member

+
+
+
+ birthplace (String) +
+

Birthplace of the member

+
+
+
+ designationDate (Date) +
+

Date of designation of the member

+
+
+
+ positionOther (String) +
+

Custom position name

+
+
+
+ ceasedDate (Date) +
+

Date of cease for the member

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/attachment/index.html b/app/views/static/api/docs/object/attachment/index.html new file mode 100644 index 0000000..4decdf6 --- /dev/null +++ b/app/views/static/api/docs/object/attachment/index.html @@ -0,0 +1,1061 @@ +

+Attachment

+

A file attachment

+

+Fields

+
+ url (String!) +
+

The url of this attachment

+
+
+
+ type (String!) +
+

The type of this attachment

+
+
+
+ thumbnail (String) +
+

A thumbnail of this attachment, if it's an image.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/blogs/index.html b/app/views/static/api/docs/object/blogs/index.html new file mode 100644 index 0000000..fca5e60 --- /dev/null +++ b/app/views/static/api/docs/object/blogs/index.html @@ -0,0 +1,1171 @@ +

+Blogs

+

A blogs component of a participatory space.

+

+Implements

+ +

+Connections

+
+ posts (PostConnection!) +
+

List all posts

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
after + String + +

Returns the elements in the list that come after the specified cursor.

+
before + String + +

Returns the elements in the list that come before the specified cursor.

+
first + Int + +

Returns the first n elements from the list.

+
last + Int + +

Returns the last n elements from the list.

+
order + PostSort + +

Provides several methods to order the results

+
filter + PostFilter + +

Provides several methods to filter the results

+
+
+
+

+Fields

+
+ id (ID!) +
+

The Component's unique ID

+
+
+
+ name (TranslatedField!) +
+

The name of this component.

+
+
+
+ weight (Int!) +
+

The weight of the component

+
+
+
+ participatorySpace (ParticipatorySpace!) +
+

The participatory space in which this component belongs to.

+
+
+
+ post (Post) +
+

Finds one post

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +

The ID of the post

+
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/budget/index.html b/app/views/static/api/docs/object/budget/index.html new file mode 100644 index 0000000..a83139f --- /dev/null +++ b/app/views/static/api/docs/object/budget/index.html @@ -0,0 +1,1109 @@ +

+Budget

+

A budget

+

+Implements

+ +

+Fields

+
+ scope (Scope) +
+

The object's scope

+
+
+
+ versionsCount (Int!) +
+

Total number of versions

+
+
+
+ versions ([TraceVersion]!) +
+

This object's versions

+
+
+
+ id (ID!) +
+

The internal ID of this budget

+
+
+
+ title (TranslatedField!) +
+

The title for this budget

+
+
+
+ description (TranslatedField!) +
+

The description for this budget

+
+
+
+ total_budget (Int!) +
+

The total budget

+
+
+
+ createdAt (DateTime) +
+

When this budget was created

+
+
+
+ updatedAt (DateTime) +
+

When this budget was updated

+
+
+
+ projects ([Project]!) +
+

The projects for this budget

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/budgetconnection/index.html b/app/views/static/api/docs/object/budgetconnection/index.html new file mode 100644 index 0000000..39f2d72 --- /dev/null +++ b/app/views/static/api/docs/object/budgetconnection/index.html @@ -0,0 +1,1061 @@ +

+BudgetConnection

+

The connection type for Budget.

+

+Fields

+
+ pageInfo (PageInfo!) +
+

Information to aid in pagination.

+
+
+
+ edges ([BudgetEdge]) +
+

A list of edges.

+
+
+
+ nodes ([Budget]) +
+

A list of nodes.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/budgetedge/index.html b/app/views/static/api/docs/object/budgetedge/index.html new file mode 100644 index 0000000..7029532 --- /dev/null +++ b/app/views/static/api/docs/object/budgetedge/index.html @@ -0,0 +1,1055 @@ +

+BudgetEdge

+

An edge in a connection.

+

+Fields

+
+ cursor (String!) +
+

A cursor for use in pagination.

+
+
+
+ node (Budget) +
+

The item at the end of the edge.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/budgets/index.html b/app/views/static/api/docs/object/budgets/index.html new file mode 100644 index 0000000..5eef076 --- /dev/null +++ b/app/views/static/api/docs/object/budgets/index.html @@ -0,0 +1,1150 @@ +

+Budgets

+

A budget component of a participatory space.

+

+Implements

+ +

+Connections

+
+ budgets (BudgetConnection) +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
after + String + +

Returns the elements in the list that come after the specified cursor.

+
before + String + +

Returns the elements in the list that come before the specified cursor.

+
first + Int + +

Returns the first n elements from the list.

+
last + Int + +

Returns the last n elements from the list.

+
+
+
+

+Fields

+
+ id (ID!) +
+

The Component's unique ID

+
+
+
+ name (TranslatedField!) +
+

The name of this component.

+
+
+
+ weight (Int!) +
+

The weight of the component

+
+
+
+ participatorySpace (ParticipatorySpace!) +
+

The participatory space in which this component belongs to.

+
+
+
+ budget (Budget) +
+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/category/index.html b/app/views/static/api/docs/object/category/index.html new file mode 100644 index 0000000..a0f926a --- /dev/null +++ b/app/views/static/api/docs/object/category/index.html @@ -0,0 +1,1066 @@ +

+Category

+

A category that can be applied to other resources.

+

+Fields

+
+ id (ID!) +
+
+
+
+ name (TranslatedField!) +
+

The name of this category.

+
+
+
+ subcategories ([Category]!) +
+

Subcategories of this category.

+
+
+
+ parent (Category) +
+

This category's parent category.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/comment/index.html b/app/views/static/api/docs/object/comment/index.html new file mode 100644 index 0000000..a368622 --- /dev/null +++ b/app/views/static/api/docs/object/comment/index.html @@ -0,0 +1,1202 @@ +

+Comment

+

A comment

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+

The Comment's unique ID

+
+
+
+ type (String!) +
+

The commentable's class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ acceptsNewComments (Boolean!) +
+

Whether the object can have new comments or not

+
+
+
+ commentsHaveAlignment (Boolean!) +
+

Whether the object comments have alignment or not

+
+
+
+ commentsHaveVotes (Boolean!) +
+

Whether the object comments have votes or not

+
+
+
+ comments ([Comment!]!) +
+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
orderBy + String + +

Order the comments

+
singleCommentId + String + +

ID of the single comment to look at

+
+
+
+
+ totalCommentsCount (Int!) +
+

The number of comments in all levels this resource holds

+
+
+
+ hasComments (Boolean!) +
+

Check if the commentable has comments

+
+
+
+ userAllowedToComment (Boolean!) +
+

Check if the current user can comment

+
+
+
+ author (Author!) +
+

The resource author

+
+
+
+ sgid (String!) +
+

The Comment's signed global id

+
+
+
+ body (String!) +
+

The comment message

+
+
+
+ formattedBody (String!) +
+

The comment message ready to display (it is expected to include HTML)

+
+
+
+ createdAt (String!) +
+

The creation date of the comment

+
+
+
+ formattedCreatedAt (String!) +
+

The creation date of the comment in relative format

+
+
+
+ alignment (Int) +
+

The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'

+
+
+
+ upVotes (Int!) +
+

The number of comment's upVotes

+
+
+
+ upVoted (Boolean!) +
+

Check if the current user has upvoted the comment

+
+
+
+ downVotes (Int!) +
+

The number of comment's downVotes

+
+
+
+ downVoted (Boolean!) +
+

Check if the current user has downvoted the comment

+
+
+
+ alreadyReported (Boolean!) +
+

Check if the current user has reported the comment

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/commentable/index.html b/app/views/static/api/docs/object/commentable/index.html new file mode 100644 index 0000000..57a28f3 --- /dev/null +++ b/app/views/static/api/docs/object/commentable/index.html @@ -0,0 +1,1130 @@ +

+Commentable

+

A commentable object

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+

The commentable's ID

+
+
+
+ type (String!) +
+

The commentable's class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ acceptsNewComments (Boolean!) +
+

Whether the object can have new comments or not

+
+
+
+ commentsHaveAlignment (Boolean!) +
+

Whether the object comments have alignment or not

+
+
+
+ commentsHaveVotes (Boolean!) +
+

Whether the object comments have votes or not

+
+
+
+ comments ([Comment!]!) +
+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
orderBy + String + +

Order the comments

+
singleCommentId + String + +

ID of the single comment to look at

+
+
+
+
+ totalCommentsCount (Int!) +
+

The number of comments in all levels this resource holds

+
+
+
+ hasComments (Boolean!) +
+

Check if the commentable has comments

+
+
+
+ userAllowedToComment (Boolean!) +
+

Check if the current user can comment

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/commentablemutation/index.html b/app/views/static/api/docs/object/commentablemutation/index.html new file mode 100644 index 0000000..9de0ca3 --- /dev/null +++ b/app/views/static/api/docs/object/commentablemutation/index.html @@ -0,0 +1,1094 @@ +

+CommentableMutation

+

A commentable which includes its available mutations

+

+Fields

+
+ id (ID!) +
+

The Commentable's unique ID

+
+
+
+ addComment (Comment) +
+

Add a new comment to a commentable

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
body + String! + +

The comments's body

+
alignment + Int + +

The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'

+

The default value is 0.

+
userGroupId + ID + +

The comment's user group id. Replaces the author.

+
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/commentmutation/index.html b/app/views/static/api/docs/object/commentmutation/index.html new file mode 100644 index 0000000..2ae12c0 --- /dev/null +++ b/app/views/static/api/docs/object/commentmutation/index.html @@ -0,0 +1,1059 @@ +

+CommentMutation

+

A comment which includes its available mutations

+

+Fields

+
+ id (ID!) +
+

The Comment's unique ID

+
+
+
+ upVote (Comment) +
+
+
+
+ downVote (Comment) +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/component/index.html b/app/views/static/api/docs/object/component/index.html new file mode 100644 index 0000000..c03da3a --- /dev/null +++ b/app/views/static/api/docs/object/component/index.html @@ -0,0 +1,1072 @@ +

+Component

+

A base component with no particular specificities.

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+

The Component's unique ID

+
+
+
+ name (TranslatedField!) +
+

The name of this component.

+
+
+
+ weight (Int!) +
+

The weight of the component

+
+
+
+ participatorySpace (ParticipatorySpace!) +
+

The participatory space in which this component belongs to.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/conference/index.html b/app/views/static/api/docs/object/conference/index.html new file mode 100644 index 0000000..127399e --- /dev/null +++ b/app/views/static/api/docs/object/conference/index.html @@ -0,0 +1,1285 @@ +

+Conference

+

A conference

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+

Internal ID for this conference

+
+
+
+ title (TranslatedField!) +
+

The graphql_name of this participatory space.

+
+
+
+ type (String!) +
+

The participatory space class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ components ([ComponentInterface!]) +
+

Lists the components this space contains.

+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
filter + ComponentFilter + +

Provides several methods to filter the results

+
order + ComponentSort + +

Provides several methods to order the results

+
+
+
+
+ stats ([Statistic]) +
+
+
+
+ scope (Scope) +
+

The object's scope

+
+
+
+ attachments ([Attachment]!) +
+

This object's attachments

+
+
+
+ categories ([Category]!) +
+

Categories for this space

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
filter + CategoryFilter + +

Provides several methods to filter the results

+
+
+
+
+ shortDescription (TranslatedField) +
+

The short description of this conference

+
+
+
+ description (TranslatedField) +
+

The description of this conference

+
+
+
+ slug (String) +
+

The slug of this conference

+
+
+
+ hashtag (String) +
+

The hashtag for this conference

+
+
+
+ slogan (TranslatedField) +
+

The slogan of the conference

+
+
+
+ location (String) +
+

The location of this conference

+
+
+
+ createdAt (DateTime) +
+

The time this conference was created

+
+
+
+ updatedAt (DateTime) +
+

The time this conference was updated

+
+
+
+ publishedAt (DateTime) +
+

The time this conference was published

+
+
+
+ reference (String) +
+

Reference prefix for this conference

+
+
+
+ heroImage (String) +
+

The hero image for this conference

+
+
+
+ bannerImage (String) +
+

The banner image for this conference

+
+
+
+ +
+

If this conference is promoted (therefore in the homepage)

+
+
+
+ objectives (TranslatedField) +
+

The objectives of the conference

+
+
+
+ showStatistics (Boolean) +
+

If this conference shows the statistics

+
+
+
+ startDate (Date) +
+

The date this conference starts

+
+
+
+ endDate (Date) +
+

The date this conference ends

+
+
+
+ registrationsEnabled (Boolean) +
+

If the registrations are enabled in this conference

+
+
+
+ availableSlots (Int) +
+

The number of available slots in this conference

+
+
+
+ registrationTerms (TranslatedField) +
+

The registration terms of this conference

+
+
+
+ speakers ([ConferenceSpeaker]) +
+

List of speakers in this conference

+
+
+
+ partners ([ConferencePartner]) +
+

List of partners in this conference

+
+
+
+ mediaLinks ([ConferenceMediaLink]) +
+

List of media links in this conference

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/conferencemedialink/index.html b/app/views/static/api/docs/object/conferencemedialink/index.html new file mode 100644 index 0000000..9aa8fd7 --- /dev/null +++ b/app/views/static/api/docs/object/conferencemedialink/index.html @@ -0,0 +1,1085 @@ +

+ConferenceMediaLink

+

A conference media link

+

+Fields

+
+ id (ID!) +
+

Internal ID for this media link

+
+
+
+ title (TranslatedField) +
+

Title for this media link

+
+
+
+ link (String) +
+

URL for this media link

+
+
+
+ date (Date) +
+

Relevant date for the media link

+
+
+
+ weight (Int) +
+

Order of appearance in which it should be presented

+
+
+
+ createdAt (DateTime) +
+

The time this entry was created

+
+
+
+ updatedAt (DateTime) +
+

The time this entry was updated

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/conferencepartner/index.html b/app/views/static/api/docs/object/conferencepartner/index.html new file mode 100644 index 0000000..e929766 --- /dev/null +++ b/app/views/static/api/docs/object/conferencepartner/index.html @@ -0,0 +1,1091 @@ +

+ConferencePartner

+

A conference partner

+

+Fields

+
+ id (ID!) +
+

ID of the resource

+
+
+
+ name (String) +
+

Partner name

+
+
+
+ partnerType (String) +
+

Partner type

+
+
+
+ weight (Int) +
+

Order of appearance in which it should be presented

+
+
+
+ link (String) +
+

Relevant URL for this partner

+
+
+
+ +
+

Link to the partner's logo

+
+
+
+ createdAt (DateTime) +
+

The time this partner was created

+
+
+
+ updatedAt (DateTime) +
+

The time this partner was updated

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/conferencespeaker/index.html b/app/views/static/api/docs/object/conferencespeaker/index.html new file mode 100644 index 0000000..dae4782 --- /dev/null +++ b/app/views/static/api/docs/object/conferencespeaker/index.html @@ -0,0 +1,1109 @@ +

+ConferenceSpeaker

+

A conference speaker

+

+Fields

+
+ id (ID!) +
+

Internal ID of the speaker

+
+
+
+ fullName (String) +
+

Full name of the speaker

+
+
+
+ position (TranslatedField) +
+

Position of the speaker in the conference

+
+
+
+ affiliation (TranslatedField) +
+

Affiliation of the speaker

+
+
+
+ twitterHandle (String) +
+

Twitter handle

+
+
+
+ shortBio (TranslatedField) +
+

Short biography of the speaker

+
+
+
+ personalUrl (String) +
+

Personal URL of the speaker

+
+
+
+ avatar (String) +
+

Avatar of the speaker

+
+
+
+ user (User) +
+

Decidim user corresponding to this speaker

+
+
+
+ createdAt (DateTime) +
+

The time this member was created

+
+
+
+ updatedAt (DateTime) +
+

The time this member was updated

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/coordinates/index.html b/app/views/static/api/docs/object/coordinates/index.html new file mode 100644 index 0000000..51fe4f3 --- /dev/null +++ b/app/views/static/api/docs/object/coordinates/index.html @@ -0,0 +1,1055 @@ +

+Coordinates

+

Physical coordinates for a location

+

+Fields

+
+ latitude (Float!) +
+

Latitude of this coordinate

+
+
+
+ longitude (Float!) +
+

Longitude of this coordinate

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/debate/index.html b/app/views/static/api/docs/object/debate/index.html new file mode 100644 index 0000000..1ac0764 --- /dev/null +++ b/app/views/static/api/docs/object/debate/index.html @@ -0,0 +1,1211 @@ +

+Debate

+

A debate

+

+Implements

+ +

+Fields

+
+ category (Category) +
+

The object's category

+
+
+
+ id (ID!) +
+

The internal ID for this debate

+
+
+
+ type (String!) +
+

The commentable's class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ acceptsNewComments (Boolean!) +
+

Whether the object can have new comments or not

+
+
+
+ commentsHaveAlignment (Boolean!) +
+

Whether the object comments have alignment or not

+
+
+
+ commentsHaveVotes (Boolean!) +
+

Whether the object comments have votes or not

+
+
+
+ comments ([Comment!]!) +
+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
orderBy + String + +

Order the comments

+
singleCommentId + String + +

ID of the single comment to look at

+
+
+
+
+ totalCommentsCount (Int!) +
+

The number of comments in all levels this resource holds

+
+
+
+ hasComments (Boolean!) +
+

Check if the commentable has comments

+
+
+
+ userAllowedToComment (Boolean!) +
+

Check if the current user can comment

+
+
+
+ author (Author) +
+

The resource author

+
+
+
+ scope (Scope) +
+

The object's scope

+
+
+
+ title (TranslatedField) +
+

The title for this debate

+
+
+
+ description (TranslatedField) +
+

The description for this debate

+
+
+
+ instructions (TranslatedField) +
+

The instructions for this debate

+
+
+
+ startTime (DateTime) +
+

The start time for this debate

+
+
+
+ endTime (DateTime) +
+

The end time for this debate

+
+
+
+ image (String) +
+

The image of this debate

+
+
+
+ createdAt (DateTime) +
+

When this debate was created

+
+
+
+ updatedAt (DateTime) +
+

When this debate was updated

+
+
+
+ informationUpdates (TranslatedField) +
+

The information updates for this debate

+
+
+
+ reference (String) +
+

The reference for this debate

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/debateconnection/index.html b/app/views/static/api/docs/object/debateconnection/index.html new file mode 100644 index 0000000..3d5122f --- /dev/null +++ b/app/views/static/api/docs/object/debateconnection/index.html @@ -0,0 +1,1061 @@ +

+DebateConnection

+

The connection type for Debate.

+

+Fields

+
+ pageInfo (PageInfo!) +
+

Information to aid in pagination.

+
+
+
+ edges ([DebateEdge]) +
+

A list of edges.

+
+
+
+ nodes ([Debate]) +
+

A list of nodes.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/debateedge/index.html b/app/views/static/api/docs/object/debateedge/index.html new file mode 100644 index 0000000..16c5512 --- /dev/null +++ b/app/views/static/api/docs/object/debateedge/index.html @@ -0,0 +1,1055 @@ +

+DebateEdge

+

An edge in a connection.

+

+Fields

+
+ cursor (String!) +
+

A cursor for use in pagination.

+
+
+
+ node (Debate) +
+

The item at the end of the edge.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/debates/index.html b/app/views/static/api/docs/object/debates/index.html new file mode 100644 index 0000000..e5a2722 --- /dev/null +++ b/app/views/static/api/docs/object/debates/index.html @@ -0,0 +1,1150 @@ +

+Debates

+

A debates component of a participatory space.

+

+Implements

+ +

+Connections

+
+ debates (DebateConnection) +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
after + String + +

Returns the elements in the list that come after the specified cursor.

+
before + String + +

Returns the elements in the list that come before the specified cursor.

+
first + Int + +

Returns the first n elements from the list.

+
last + Int + +

Returns the last n elements from the list.

+
+
+
+

+Fields

+
+ id (ID!) +
+

The Component's unique ID

+
+
+
+ name (TranslatedField!) +
+

The name of this component.

+
+
+
+ weight (Int!) +
+

The weight of the component

+
+
+
+ participatorySpace (ParticipatorySpace!) +
+

The participatory space in which this component belongs to.

+
+
+
+ debate (Debate) +
+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/decidim/index.html b/app/views/static/api/docs/object/decidim/index.html new file mode 100644 index 0000000..488f882 --- /dev/null +++ b/app/views/static/api/docs/object/decidim/index.html @@ -0,0 +1,1055 @@ +

+Decidim

+

Decidim's framework-related properties.

+

+Fields

+
+ version (String!) +
+

The current decidim's version of this deployment.

+
+
+
+ applicationName (String!) +
+

The current installation's name.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/fingerprint/index.html b/app/views/static/api/docs/object/fingerprint/index.html new file mode 100644 index 0000000..e790c9a --- /dev/null +++ b/app/views/static/api/docs/object/fingerprint/index.html @@ -0,0 +1,1055 @@ +

+Fingerprint

+

A fingerprint object

+

+Fields

+
+ value (String!) +
+

The the hash value for the fingerprint

+
+
+
+ source (String!) +
+

Returns the source String (usually a json) from which the fingerprint is generated.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/hashtagtype/index.html b/app/views/static/api/docs/object/hashtagtype/index.html new file mode 100644 index 0000000..aa54c92 --- /dev/null +++ b/app/views/static/api/docs/object/hashtagtype/index.html @@ -0,0 +1,1049 @@ +

+HashtagType

+

hashtags list

+

+Fields

+
+ name (String!) +
+

The hashtag's name

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/index.html b/app/views/static/api/docs/object/index.html new file mode 100644 index 0000000..0a1d65e --- /dev/null +++ b/app/views/static/api/docs/object/index.html @@ -0,0 +1,1042 @@ +

+Objects

+

Objects in GraphQL represent the resources that you can access. Objects can contain a list of fields, which are specifically typed. For example, the Repository object has a field called name, which is a String.

+

For more information, see the GraphQL spec.

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/localizedstring/index.html b/app/views/static/api/docs/object/localizedstring/index.html new file mode 100644 index 0000000..5757232 --- /dev/null +++ b/app/views/static/api/docs/object/localizedstring/index.html @@ -0,0 +1,1061 @@ +

+LocalizedString

+

Represents a particular translation of a LocalizedStringType

+

+Fields

+
+ locale (String!) +
+

The standard locale of this translation.

+
+
+
+ text (String) +
+

The content of this translation.

+
+
+
+ machineTranslated (Boolean!) +
+

Whether this string is machine translated or not.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/meeting/index.html b/app/views/static/api/docs/object/meeting/index.html new file mode 100644 index 0000000..5f15151 --- /dev/null +++ b/app/views/static/api/docs/object/meeting/index.html @@ -0,0 +1,1354 @@ +

+Meeting

+

A meeting

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+

ID of this meeting

+
+
+
+ type (String!) +
+

The commentable's class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ acceptsNewComments (Boolean!) +
+

Whether the object can have new comments or not

+
+
+
+ commentsHaveAlignment (Boolean!) +
+

Whether the object comments have alignment or not

+
+
+
+ commentsHaveVotes (Boolean!) +
+

Whether the object comments have votes or not

+
+
+
+ comments ([Comment!]!) +
+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
orderBy + String + +

Order the comments

+
singleCommentId + String + +

ID of the single comment to look at

+
+
+
+
+ totalCommentsCount (Int!) +
+

The number of comments in all levels this resource holds

+
+
+
+ hasComments (Boolean!) +
+

Check if the commentable has comments

+
+
+
+ userAllowedToComment (Boolean!) +
+

Check if the current user can comment

+
+
+
+ author (Author) +
+

The resource author

+
+
+
+ category (Category) +
+

The object's category

+
+
+
+ scope (Scope) +
+

The object's scope

+
+
+
+ attachments ([Attachment]!) +
+

This object's attachments

+
+
+
+ createdAt (DateTime) +
+

The date and time this minutes was created

+
+
+
+ updatedAt (DateTime) +
+

The date and time this minutes was updated

+
+
+
+ services ([MeetingService]!) +
+

The object's services

+
+
+
+ proposalsFromMeeting ([Proposal]!) +
+

Proposals created in this meeting

+
+
+
+ reference (String!) +
+

Reference for this meeting

+
+
+
+ title (TranslatedField!) +
+

The title of this meeting.

+
+
+
+ description (TranslatedField) +
+

The description of this meeting.

+
+
+
+ startTime (DateTime!) +
+

The time this meeting starts

+
+
+
+ endTime (DateTime!) +
+

The time this meeting ends

+
+
+
+ agenda (MeetingAgenda) +
+

Agenda for this meeting, if available

+
+
+
+ closed (Boolean!) +
+

Whether this meeting is closed or not.

+
+
+
+ isWithdrawn (Boolean!) +
+

Whether this meeting is withdrawn or not.

+
+
+
+ closingReport (TranslatedField) +
+

The closing report of this meeting.

+
+
+
+ videoUrl (String) +
+

URL for the video of the session, if any

+
+
+
+ audioUrl (String) +
+

URL for the audio of the session, if any

+
+
+
+ attendingOrganizations (String) +
+

list of attending organizations

+
+
+
+ attendeeCount (Int) +
+

Amount of attendees to this meeting

+
+
+
+ contributionCount (Int) +
+

Amount of contributions to this meeting

+
+
+
+ privateMeeting (Boolean!) +
+

Whether the meeting is private or not (it can only be true if transparent)

+
+
+
+ transparent (Boolean!) +
+

For private meetings, information is public if transparent

+
+
+
+ registrationsEnabled (Boolean!) +
+

Whether the registrations are enabled or not

+
+
+
+ registrationTerms (TranslatedField) +
+

The registration terms

+
+
+
+ remainingSlots (Int) +
+

Amount of slots available for this meeting

+
+
+
+ registrationFormEnabled (Boolean!) +
+

Whether the registrations have a form or not

+
+
+
+ registrationForm (Questionnaire) +
+

If registration requires to fill a form, this is the questionnaire

+
+
+
+ location (TranslatedField) +
+

The location of this meeting (free format)

+
+
+
+ locationHints (TranslatedField) +
+

The location of this meeting (free format)

+
+
+
+ address (String) +
+

The physical address of this meeting (used for geolocation)

+
+
+
+ coordinates (Coordinates) +
+

Physical coordinates for this meeting

+
+
+
+ typeOfMeeting (String!) +
+

The type of the meeting (online or in-person)

+
+
+
+ onlineMeetingUrl (String!) +
+

The URL of the meeting (when the type is online)

+
+
+
+ iframeEmbedType (String) +
+

The type of displaying of the online meeting URL

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/meetingagenda/index.html b/app/views/static/api/docs/object/meetingagenda/index.html new file mode 100644 index 0000000..faff3e4 --- /dev/null +++ b/app/views/static/api/docs/object/meetingagenda/index.html @@ -0,0 +1,1073 @@ +

+MeetingAgenda

+

A meeting agenda

+

+Fields

+
+ id (ID!) +
+

The ID for the agenda

+
+
+
+ title (TranslatedField) +
+

The title for the agenda

+
+
+
+ items ([MeetingAgendaItem]!) +
+

Items and sub-items of the agenda

+
+
+
+ createdAt (DateTime) +
+

The date and time this agenda was created

+
+
+
+ updatedAt (DateTime) +
+

The date and time this agenda was updated

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/meetingagendaitem/index.html b/app/views/static/api/docs/object/meetingagendaitem/index.html new file mode 100644 index 0000000..89c936d --- /dev/null +++ b/app/views/static/api/docs/object/meetingagendaitem/index.html @@ -0,0 +1,1103 @@ +

+MeetingAgendaItem

+

A meeting agenda item

+

+Fields

+
+ id (ID!) +
+

The ID for this agenda item

+
+
+
+ title (TranslatedField) +
+

The title for this agenda item

+
+
+
+ description (TranslatedField) +
+

The description for this agenda item

+
+
+
+ items ([MeetingAgendaItem]!) +
+

Sub-items (children) of this agenda item

+
+
+
+ parent (MeetingAgendaItem) +
+

Parent agenda item, if available

+
+
+
+ agenda (MeetingAgenda) +
+

Belonging agenda

+
+
+
+ duration (Int!) +
+

Duration in number of minutes for this item in this agenda

+
+
+
+ position (Int!) +
+

Order position for this agenda item

+
+
+
+ createdAt (DateTime) +
+

The date and time this agenda item was created

+
+
+
+ updatedAt (DateTime) +
+

The date and time this agenda item was updated

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/meetingconnection/index.html b/app/views/static/api/docs/object/meetingconnection/index.html new file mode 100644 index 0000000..e4efd9e --- /dev/null +++ b/app/views/static/api/docs/object/meetingconnection/index.html @@ -0,0 +1,1061 @@ +

+MeetingConnection

+

The connection type for Meeting.

+

+Fields

+
+ pageInfo (PageInfo!) +
+

Information to aid in pagination.

+
+
+
+ edges ([MeetingEdge]) +
+

A list of edges.

+
+
+
+ nodes ([Meeting]) +
+

A list of nodes.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/meetingedge/index.html b/app/views/static/api/docs/object/meetingedge/index.html new file mode 100644 index 0000000..02776bc --- /dev/null +++ b/app/views/static/api/docs/object/meetingedge/index.html @@ -0,0 +1,1055 @@ +

+MeetingEdge

+

An edge in a connection.

+

+Fields

+
+ cursor (String!) +
+

A cursor for use in pagination.

+
+
+
+ node (Meeting) +
+

The item at the end of the edge.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/meetings/index.html b/app/views/static/api/docs/object/meetings/index.html new file mode 100644 index 0000000..ed0b1be --- /dev/null +++ b/app/views/static/api/docs/object/meetings/index.html @@ -0,0 +1,1150 @@ +

+Meetings

+

A meetings component of a participatory space.

+

+Implements

+ +

+Connections

+
+ meetings (MeetingConnection) +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
after + String + +

Returns the elements in the list that come after the specified cursor.

+
before + String + +

Returns the elements in the list that come before the specified cursor.

+
first + Int + +

Returns the first n elements from the list.

+
last + Int + +

Returns the last n elements from the list.

+
+
+
+

+Fields

+
+ id (ID!) +
+

The Component's unique ID

+
+
+
+ name (TranslatedField!) +
+

The name of this component.

+
+
+
+ weight (Int!) +
+

The weight of the component

+
+
+
+ participatorySpace (ParticipatorySpace!) +
+

The participatory space in which this component belongs to.

+
+
+
+ meeting (Meeting) +
+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/meetingservice/index.html b/app/views/static/api/docs/object/meetingservice/index.html new file mode 100644 index 0000000..619e08a --- /dev/null +++ b/app/views/static/api/docs/object/meetingservice/index.html @@ -0,0 +1,1055 @@ +

+MeetingService

+

A meeting service

+

+Fields

+
+ title (TranslatedField) +
+

The title for the service

+
+
+
+ description (TranslatedField) +
+

The description for the service

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/metric/index.html b/app/views/static/api/docs/object/metric/index.html new file mode 100644 index 0000000..72c463c --- /dev/null +++ b/app/views/static/api/docs/object/metric/index.html @@ -0,0 +1,1061 @@ +

+Metric

+

Metric data

+

+Fields

+
+ name (String!) +
+

The graphql_name of the metric

+
+
+
+ count (Int!) +
+

The last value of the metric

+
+
+
+ history ([MetricHistory]!) +
+

The historic values for this metric

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/metrichistory/index.html b/app/views/static/api/docs/object/metrichistory/index.html new file mode 100644 index 0000000..d244a58 --- /dev/null +++ b/app/views/static/api/docs/object/metrichistory/index.html @@ -0,0 +1,1054 @@ +

+MetricHistory

+

+Fields

+
+ key (String!) +
+

The key value

+
+
+
+ value (Int!) +
+

The value for each key

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/organization/index.html b/app/views/static/api/docs/object/organization/index.html new file mode 100644 index 0000000..5634763 --- /dev/null +++ b/app/views/static/api/docs/object/organization/index.html @@ -0,0 +1,1055 @@ +

+Organization

+

The current organization

+

+Fields

+
+ name (String) +
+

The name of the current organization

+
+
+
+ stats ([Statistic]) +
+

The statistics associated to this object

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/page/index.html b/app/views/static/api/docs/object/page/index.html new file mode 100644 index 0000000..a58e46b --- /dev/null +++ b/app/views/static/api/docs/object/page/index.html @@ -0,0 +1,1072 @@ +

+Page

+

A page

+

+Fields

+
+ id (ID!) +
+
+
+
+ title (TranslatedField!) +
+

The title of this page (same as the component name).

+
+
+
+ body (TranslatedField) +
+

The body of this page.

+
+
+
+ createdAt (DateTime!) +
+

The time this page was created

+
+
+
+ updatedAt (DateTime!) +
+

The time this page was updated

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/pageconnection/index.html b/app/views/static/api/docs/object/pageconnection/index.html new file mode 100644 index 0000000..ef5ee26 --- /dev/null +++ b/app/views/static/api/docs/object/pageconnection/index.html @@ -0,0 +1,1061 @@ +

+PageConnection

+

The connection type for Page.

+

+Fields

+
+ pageInfo (PageInfo!) +
+

Information to aid in pagination.

+
+
+
+ edges ([PageEdge]) +
+

A list of edges.

+
+
+
+ nodes ([Page]) +
+

A list of nodes.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/pageedge/index.html b/app/views/static/api/docs/object/pageedge/index.html new file mode 100644 index 0000000..b939953 --- /dev/null +++ b/app/views/static/api/docs/object/pageedge/index.html @@ -0,0 +1,1055 @@ +

+PageEdge

+

An edge in a connection.

+

+Fields

+
+ cursor (String!) +
+

A cursor for use in pagination.

+
+
+
+ node (Page) +
+

The item at the end of the edge.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/pageinfo/index.html b/app/views/static/api/docs/object/pageinfo/index.html new file mode 100644 index 0000000..37818d0 --- /dev/null +++ b/app/views/static/api/docs/object/pageinfo/index.html @@ -0,0 +1,1067 @@ +

+PageInfo

+

Information about pagination in a connection.

+

+Fields

+
+ hasNextPage (Boolean!) +
+

When paginating forwards, are there more items?

+
+
+
+ hasPreviousPage (Boolean!) +
+

When paginating backwards, are there more items?

+
+
+
+ startCursor (String) +
+

When paginating backwards, the cursor to continue.

+
+
+
+ endCursor (String) +
+

When paginating forwards, the cursor to continue.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/pages/index.html b/app/views/static/api/docs/object/pages/index.html new file mode 100644 index 0000000..d7bfb67 --- /dev/null +++ b/app/views/static/api/docs/object/pages/index.html @@ -0,0 +1,1150 @@ +

+Pages

+

A pages component of a participatory space.

+

+Implements

+ +

+Connections

+
+ pages (PageConnection) +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
after + String + +

Returns the elements in the list that come after the specified cursor.

+
before + String + +

Returns the elements in the list that come before the specified cursor.

+
first + Int + +

Returns the first n elements from the list.

+
last + Int + +

Returns the last n elements from the list.

+
+
+
+

+Fields

+
+ id (ID!) +
+

The Component's unique ID

+
+
+
+ name (TranslatedField!) +
+

The name of this component.

+
+
+
+ weight (Int!) +
+

The weight of the component

+
+
+
+ participatorySpace (ParticipatorySpace!) +
+

The participatory space in which this component belongs to.

+
+
+
+ page (Page) +
+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/participatoryprocess/index.html b/app/views/static/api/docs/object/participatoryprocess/index.html new file mode 100644 index 0000000..37dd974 --- /dev/null +++ b/app/views/static/api/docs/object/participatoryprocess/index.html @@ -0,0 +1,1309 @@ +

+ParticipatoryProcess

+

A participatory process

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+

The internal ID for this participatory process

+
+
+
+ title (TranslatedField!) +
+

The graphql_name of this participatory space.

+
+
+
+ type (String!) +
+

The participatory space class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ components ([ComponentInterface!]) +
+

Lists the components this space contains.

+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
filter + ComponentFilter + +

Provides several methods to filter the results

+
order + ComponentSort + +

Provides several methods to order the results

+
+
+
+
+ stats ([Statistic]) +
+
+
+
+ linkedParticipatorySpaces ([ParticipatorySpaceLink!]!) +
+

Lists all linked participatory spaces in a polymorphic way

+
+
+
+ scope (Scope) +
+

The object's scope

+
+
+
+ attachments ([Attachment]!) +
+

This object's attachments

+
+
+
+ categories ([Category]!) +
+

Categories for this space

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
filter + CategoryFilter + +

Provides several methods to filter the results

+
+
+
+
+ slug (String!) +
+
+
+
+ hashtag (String) +
+

The hashtag for this participatory process

+
+
+
+ createdAt (DateTime!) +
+

The time this page was created

+
+
+
+ updatedAt (DateTime!) +
+

The time this page was updated

+
+
+
+ publishedAt (DateTime!) +
+

The time this page was published

+
+
+
+ subtitle (TranslatedField) +
+

The subtitle of this participatory process.

+
+
+
+ description (TranslatedField) +
+

The description of this participatory process.

+
+
+
+ shortDescription (TranslatedField) +
+

The short description of this participatory process.

+
+
+
+ startDate (Date) +
+

This participatory process' start date.

+
+
+
+ endDate (Date) +
+

This participatory process' end date.

+
+
+
+ bannerImage (String) +
+

The banner image for this participatory process

+
+
+
+ heroImage (String) +
+

The hero image for this participatory process

+
+
+
+ +
+

If this participatory process is promoted (therefore in the homepage)

+
+
+
+ developerGroup (TranslatedField) +
+

The promoter group of this participatory process.

+
+
+
+ metaScope (TranslatedField) +
+

The scope metadata of this participatory process.

+
+
+
+ localArea (TranslatedField) +
+

The organization area of this participatory process.

+
+
+
+ target (TranslatedField) +
+

Who participates in this participatory process.

+
+
+
+ participatoryScope (TranslatedField) +
+

What is decided on this participatory process.

+
+
+
+ participatoryStructure (TranslatedField) +
+

How it is decided on this participatory process.

+
+
+
+ showMetrics (Boolean) +
+

If this participatory process should show metrics

+
+
+
+ showStatistics (Boolean) +
+

If this participatory process should show statistics

+
+
+
+ scopesEnabled (Boolean) +
+

If this participatory process has scopes enabled

+
+
+
+ announcement (TranslatedField) +
+

Highlighted announcement for this participatory process.

+
+
+
+ reference (String) +
+

Reference prefix for this participatory process

+
+
+
+ steps ([ParticipatoryProcessStep]!) +
+

All the steps of this process.

+
+
+
+ participatoryProcessGroup (ParticipatoryProcessGroup) +
+

The participatory process group in which this process belong to

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/participatoryprocessgroup/index.html b/app/views/static/api/docs/object/participatoryprocessgroup/index.html new file mode 100644 index 0000000..eae599f --- /dev/null +++ b/app/views/static/api/docs/object/participatoryprocessgroup/index.html @@ -0,0 +1,1073 @@ +

+ParticipatoryProcessGroup

+

A participatory process group

+

+Fields

+
+ id (ID!) +
+

ID of this participatory process group

+
+
+
+ title (TranslatedField) +
+

The title of this participatory process group

+
+
+
+ description (TranslatedField) +
+

The description of this participatory process group

+
+
+
+ participatoryProcesses ([ParticipatoryProcess]!) +
+

Lists all the participatory processes belonging to this group

+
+
+
+ heroImage (String) +
+

The hero image for this participatory process group

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/participatoryprocessstep/index.html b/app/views/static/api/docs/object/participatoryprocessstep/index.html new file mode 100644 index 0000000..137fea8 --- /dev/null +++ b/app/views/static/api/docs/object/participatoryprocessstep/index.html @@ -0,0 +1,1103 @@ +

+ParticipatoryProcessStep

+

A participatory process step

+

+Fields

+
+ id (ID!) +
+

The unique ID of this step.

+
+
+
+ participatoryProcess (ParticipatoryProcess!) +
+

The participatory process in which this step belongs to.

+
+
+
+ title (TranslatedField!) +
+

The title of this step

+
+
+
+ description (TranslatedField) +
+

The description of this step

+
+
+
+ startDate (Date) +
+

This step's start date

+
+
+
+ endDate (Date) +
+

This step's end date

+
+
+
+ callToActionPath (String) +
+

A call to action URL for this step

+
+
+
+ callToActionText (TranslatedField) +
+

The call to action text for this step

+
+
+
+ active (Boolean) +
+

If this step is the active one

+
+
+
+ position (Int) +
+

Ordering position among all the steps

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/participatoryprocesstype/index.html b/app/views/static/api/docs/object/participatoryprocesstype/index.html new file mode 100644 index 0000000..0791236 --- /dev/null +++ b/app/views/static/api/docs/object/participatoryprocesstype/index.html @@ -0,0 +1,1073 @@ +

+ParticipatoryProcessType

+

A participatory process type

+

+Fields

+
+ id (ID!) +
+

Unique ID of this participatory process type

+
+
+
+ title (TranslatedField) +
+

The title of this participatory process type

+
+
+
+ createdAt (DateTime!) +
+

The time this participatory process type was created

+
+
+
+ updatedAt (DateTime!) +
+

The time this participatory process type was updated

+
+
+
+ processes ([ParticipatoryProcess]!) +
+

Lists all the participatory processes belonging to this type

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/participatoryspace/index.html b/app/views/static/api/docs/object/participatoryspace/index.html new file mode 100644 index 0000000..8520b7a --- /dev/null +++ b/app/views/static/api/docs/object/participatoryspace/index.html @@ -0,0 +1,1106 @@ +

+ParticipatorySpace

+

A participatory space

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+

The participatory space's unique ID

+
+
+
+ title (TranslatedField!) +
+

The graphql_name of this participatory space.

+
+
+
+ type (String!) +
+

The participatory space class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ components ([ComponentInterface!]) +
+

Lists the components this space contains.

+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
filter + ComponentFilter + +

Provides several methods to filter the results

+
order + ComponentSort + +

Provides several methods to order the results

+
+
+
+
+ stats ([Statistic]) +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/participatoryspacelink/index.html b/app/views/static/api/docs/object/participatoryspacelink/index.html new file mode 100644 index 0000000..056329f --- /dev/null +++ b/app/views/static/api/docs/object/participatoryspacelink/index.html @@ -0,0 +1,1073 @@ +

+ParticipatorySpaceLink

+

A link representation between participatory spaces

+

+Fields

+
+ id (ID!) +
+

The id of this participatory space link

+
+
+
+ fromType (String!) +
+

The origin participatory space type for this participatory space link

+
+
+
+ toType (String!) +
+

The destination participatory space type for this participatory space link

+
+
+
+ name (String!) +
+

The name (purpose) of this participatory space link

+
+
+
+ participatorySpace (ParticipatorySpaceInterface!) +
+

The linked participatory space (polymorphic)

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/post/index.html b/app/views/static/api/docs/object/post/index.html new file mode 100644 index 0000000..4e31ddc --- /dev/null +++ b/app/views/static/api/docs/object/post/index.html @@ -0,0 +1,1195 @@ +

+Post

+

A post

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+

The internal ID of this post

+
+
+
+ type (String!) +
+

The commentable's class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ acceptsNewComments (Boolean!) +
+

Whether the object can have new comments or not

+
+
+
+ commentsHaveAlignment (Boolean!) +
+

Whether the object comments have alignment or not

+
+
+
+ commentsHaveVotes (Boolean!) +
+

Whether the object comments have votes or not

+
+
+
+ comments ([Comment!]!) +
+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
orderBy + String + +

Order the comments

+
singleCommentId + String + +

ID of the single comment to look at

+
+
+
+
+ totalCommentsCount (Int!) +
+

The number of comments in all levels this resource holds

+
+
+
+ hasComments (Boolean!) +
+

Check if the commentable has comments

+
+
+
+ userAllowedToComment (Boolean!) +
+

Check if the current user can comment

+
+
+
+ attachments ([Attachment]!) +
+

This object's attachments

+
+
+
+ author (Author) +
+

The resource author

+
+
+
+ versionsCount (Int!) +
+

Total number of versions

+
+
+
+ versions ([TraceVersion]!) +
+

This object's versions

+
+
+
+ endorsements ([Author]!) +
+

The endorsements of this object.

+
+
+
+ endorsementsCount (Int) +
+

The total amount of endorsements the object has received

+
+
+
+ createdAt (DateTime) +
+

The date and time this object was created

+
+
+
+ updatedAt (DateTime) +
+

The date and time this object was updated

+
+
+
+ title (TranslatedField) +
+

The title for this post

+
+
+
+ body (TranslatedField) +
+

The body of this post

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/postconnection/index.html b/app/views/static/api/docs/object/postconnection/index.html new file mode 100644 index 0000000..4d8ddcc --- /dev/null +++ b/app/views/static/api/docs/object/postconnection/index.html @@ -0,0 +1,1061 @@ +

+PostConnection

+

The connection type for Post.

+

+Fields

+
+ pageInfo (PageInfo!) +
+

Information to aid in pagination.

+
+
+
+ edges ([PostEdge]) +
+

A list of edges.

+
+
+
+ nodes ([Post]) +
+

A list of nodes.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/postedge/index.html b/app/views/static/api/docs/object/postedge/index.html new file mode 100644 index 0000000..bdecd7c --- /dev/null +++ b/app/views/static/api/docs/object/postedge/index.html @@ -0,0 +1,1055 @@ +

+PostEdge

+

An edge in a connection.

+

+Fields

+
+ cursor (String!) +
+

A cursor for use in pagination.

+
+
+
+ node (Post) +
+

The item at the end of the edge.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/project/index.html b/app/views/static/api/docs/object/project/index.html new file mode 100644 index 0000000..7348586 --- /dev/null +++ b/app/views/static/api/docs/object/project/index.html @@ -0,0 +1,1193 @@ +

+Project

+

A project

+

+Implements

+ +

+Fields

+
+ scope (Scope) +
+

The object's scope

+
+
+
+ attachments ([Attachment]!) +
+

This object's attachments

+
+
+
+ id (ID!) +
+

The internal ID for this project

+
+
+
+ type (String!) +
+

The commentable's class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ acceptsNewComments (Boolean!) +
+

Whether the object can have new comments or not

+
+
+
+ commentsHaveAlignment (Boolean!) +
+

Whether the object comments have alignment or not

+
+
+
+ commentsHaveVotes (Boolean!) +
+

Whether the object comments have votes or not

+
+
+
+ comments ([Comment!]!) +
+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
orderBy + String + +

Order the comments

+
singleCommentId + String + +

ID of the single comment to look at

+
+
+
+
+ totalCommentsCount (Int!) +
+

The number of comments in all levels this resource holds

+
+
+
+ hasComments (Boolean!) +
+

Check if the commentable has comments

+
+
+
+ userAllowedToComment (Boolean!) +
+

Check if the current user can comment

+
+
+
+ category (Category) +
+

The object's category

+
+
+
+ title (TranslatedField) +
+

The title for this project

+
+
+
+ description (TranslatedField) +
+

The description for this project

+
+
+
+ budget_amount (Int) +
+

The budget amount for this project

+
+
+
+ selected (Boolean) +
+

Whether this proposal is selected or not

+
+
+
+ createdAt (DateTime) +
+

When this project was created

+
+
+
+ updatedAt (DateTime) +
+

When this project was updated

+
+
+
+ reference (String) +
+

The reference for this project

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/proposal/index.html b/app/views/static/api/docs/object/proposal/index.html new file mode 100644 index 0000000..f5b6165 --- /dev/null +++ b/app/views/static/api/docs/object/proposal/index.html @@ -0,0 +1,1313 @@ +

+Proposal

+

A proposal

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+
+
+
+ type (String!) +
+

The commentable's class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ acceptsNewComments (Boolean!) +
+

Whether the object can have new comments or not

+
+
+
+ commentsHaveAlignment (Boolean!) +
+

Whether the object comments have alignment or not

+
+
+
+ commentsHaveVotes (Boolean!) +
+

Whether the object comments have votes or not

+
+
+
+ comments ([Comment!]!) +
+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
orderBy + String + +

Order the comments

+
singleCommentId + String + +

ID of the single comment to look at

+
+
+
+
+ totalCommentsCount (Int!) +
+

The number of comments in all levels this resource holds

+
+
+
+ hasComments (Boolean!) +
+

Check if the commentable has comments

+
+
+
+ userAllowedToComment (Boolean!) +
+

Check if the current user can comment

+
+
+
+ authorsCount (Int) +
+

The total amount of co-authors that contributed to the entity. Note that this field may include also non-user authors like meetings or the organization

+
+
+
+ author (Author) +
+

The resource author. Note that this can be null on official proposals or meeting-proposals

+
+
+
+ authors ([Author]!) +
+

The resource co-authors. Include only users or groups of users

+
+
+
+ category (Category) +
+

The object's category

+
+
+
+ scope (Scope) +
+

The object's scope

+
+
+
+ attachments ([Attachment]!) +
+

This object's attachments

+
+
+
+ fingerprint (Fingerprint!) +
+

This object's fingerprint

+
+
+
+ amendments ([Amendment]!) +
+

This object's amendments

+
+
+
+ versionsCount (Int!) +
+

Total number of versions

+
+
+
+ versions ([TraceVersion]!) +
+

This object's versions

+
+
+
+ endorsements ([Author]!) +
+

The endorsements of this object.

+
+
+
+ endorsementsCount (Int) +
+

The total amount of endorsements the object has received

+
+
+
+ createdAt (DateTime) +
+

The date and time this object was created

+
+
+
+ updatedAt (DateTime) +
+

The date and time this object was updated

+
+
+
+ title (TranslatedField) +
+

The title for this title

+
+
+
+ body (TranslatedField) +
+

The description for this body

+
+
+
+ address (String) +
+

The physical address (location) of this proposal

+
+
+
+ coordinates (Coordinates) +
+

Physical coordinates for this proposal

+
+
+
+ reference (String) +
+

This proposal's unique reference

+
+
+
+ state (String) +
+

The answer status in which proposal is in

+
+
+
+ answer (TranslatedField) +
+

The answer feedback for the status for this proposal

+
+
+
+ answeredAt (DateTime) +
+

The date and time this proposal was answered

+
+
+
+ publishedAt (DateTime) +
+

The date and time this proposal was published

+
+
+
+ participatoryTextLevel (String) +
+

If it is a participatory text, the level indicates the type of paragraph

+
+
+
+ position (Int) +
+

Position of this proposal in the participatory text

+
+
+
+ official (Boolean) +
+

Whether this proposal is official or not

+
+
+
+ createdInMeeting (Boolean) +
+

Whether this proposal comes from a meeting or not

+
+
+
+ meeting (Meeting) +
+

If the proposal comes from a meeting, the related meeting

+
+
+
+ voteCount (Int) +
+

The total amount of votes the proposal has received

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/proposalconnection/index.html b/app/views/static/api/docs/object/proposalconnection/index.html new file mode 100644 index 0000000..0e45ee4 --- /dev/null +++ b/app/views/static/api/docs/object/proposalconnection/index.html @@ -0,0 +1,1061 @@ +

+ProposalConnection

+

The connection type for Proposal.

+

+Fields

+
+ pageInfo (PageInfo!) +
+

Information to aid in pagination.

+
+
+
+ edges ([ProposalEdge]) +
+

A list of edges.

+
+
+
+ nodes ([Proposal]) +
+

A list of nodes.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/proposaledge/index.html b/app/views/static/api/docs/object/proposaledge/index.html new file mode 100644 index 0000000..ece083f --- /dev/null +++ b/app/views/static/api/docs/object/proposaledge/index.html @@ -0,0 +1,1055 @@ +

+ProposalEdge

+

An edge in a connection.

+

+Fields

+
+ cursor (String!) +
+

A cursor for use in pagination.

+
+
+
+ node (Proposal) +
+

The item at the end of the edge.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/proposals/index.html b/app/views/static/api/docs/object/proposals/index.html new file mode 100644 index 0000000..2da24b1 --- /dev/null +++ b/app/views/static/api/docs/object/proposals/index.html @@ -0,0 +1,1171 @@ +

+Proposals

+

A proposals component of a participatory space.

+

+Implements

+ +

+Connections

+
+ proposals (ProposalConnection) +
+

List all proposals

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
after + String + +

Returns the elements in the list that come after the specified cursor.

+
before + String + +

Returns the elements in the list that come before the specified cursor.

+
first + Int + +

Returns the first n elements from the list.

+
last + Int + +

Returns the last n elements from the list.

+
order + ProposalSort + +

Provides several methods to order the results

+
filter + ProposalFilter + +

Provides several methods to filter the results

+
+
+
+

+Fields

+
+ id (ID!) +
+

The Component's unique ID

+
+
+
+ name (TranslatedField!) +
+

The name of this component.

+
+
+
+ weight (Int!) +
+

The weight of the component

+
+
+
+ participatorySpace (ParticipatorySpace!) +
+

The participatory space in which this component belongs to.

+
+
+
+ proposal (Proposal) +
+

Finds one proposal

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +

The ID of the proposal

+
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/question/index.html b/app/views/static/api/docs/object/question/index.html new file mode 100644 index 0000000..24b0d8a --- /dev/null +++ b/app/views/static/api/docs/object/question/index.html @@ -0,0 +1,1114 @@ +

+Question

+

A question in a questionnaire

+

+Implements

+ +

+Fields

+
+ createdAt (DateTime) +
+

The date and time this object was created

+
+
+
+ updatedAt (DateTime) +
+

The date and time this object was updated

+
+
+
+ id (ID!) +
+

ID of this question

+
+
+
+ body (TranslatedField!) +
+

What is being asked in this question.

+
+
+
+ description (TranslatedField) +
+

The description of this question.

+
+
+
+ mandatory (Boolean!) +
+

Whether if this question is mandatory.

+
+
+
+ position (Int) +
+

Order position of the question in the questionnaire

+
+
+
+ maxChoices (Int) +
+

On questions with answer options, maximum number of choices the user has

+
+
+
+ maxCharacters (Int!) +
+

On questions with free text answers, maximum number of characters the answer can have (0 if no limit)

+
+
+
+ questionType (String) +
+

Type of question.

+
+
+
+ answerOptions ([AnswerOption]!) +
+

List of answer options in multi-choice questions.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/questionnaire/index.html b/app/views/static/api/docs/object/questionnaire/index.html new file mode 100644 index 0000000..955724d --- /dev/null +++ b/app/views/static/api/docs/object/questionnaire/index.html @@ -0,0 +1,1102 @@ +

+Questionnaire

+

A questionnaire

+

+Implements

+ +

+Fields

+
+ createdAt (DateTime) +
+

The date and time this object was created

+
+
+
+ updatedAt (DateTime) +
+

The date and time this object was updated

+
+
+
+ id (ID!) +
+

ID of this questionnaire

+
+
+
+ title (TranslatedField!) +
+

The title of this questionnaire.

+
+
+
+ description (TranslatedField) +
+

The description of this questionnaire.

+
+
+
+ tos (TranslatedField) +
+

The Terms of Service for this questionnaire.

+
+
+
+ forType (String) +
+

Type of entity using this questionnaire.

+
+
+
+ forEntity (QuestionnaireEntityInterface) +
+

Entity using this questionnaire.

+
+
+
+ questions ([Question]!) +
+

Questions in this questionnaire.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/result/index.html b/app/views/static/api/docs/object/result/index.html new file mode 100644 index 0000000..5b5a981 --- /dev/null +++ b/app/views/static/api/docs/object/result/index.html @@ -0,0 +1,1247 @@ +

+Result

+

A result

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+

The internal ID for this result

+
+
+
+ name (TranslatedField!) +
+

The name of this component.

+
+
+
+ weight (Int!) +
+

The order of this result

+
+
+
+ participatorySpace (ParticipatorySpace!) +
+

The participatory space in which this component belongs to.

+
+
+
+ category (Category) +
+

The object's category

+
+
+
+ type (String!) +
+

The commentable's class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ acceptsNewComments (Boolean!) +
+

Whether the object can have new comments or not

+
+
+
+ commentsHaveAlignment (Boolean!) +
+

Whether the object comments have alignment or not

+
+
+
+ commentsHaveVotes (Boolean!) +
+

Whether the object comments have votes or not

+
+
+
+ comments ([Comment!]!) +
+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
orderBy + String + +

Order the comments

+
singleCommentId + String + +

ID of the single comment to look at

+
+
+
+
+ totalCommentsCount (Int!) +
+

The number of comments in all levels this resource holds

+
+
+
+ hasComments (Boolean!) +
+

Check if the commentable has comments

+
+
+
+ userAllowedToComment (Boolean!) +
+

Check if the current user can comment

+
+
+
+ scope (Scope) +
+

The object's scope

+
+
+
+ title (TranslatedField) +
+

The title for this result

+
+
+
+ description (TranslatedField) +
+

The description for this result

+
+
+
+ reference (String) +
+

The reference for this result

+
+
+
+ startDate (Date) +
+

The start date for this result

+
+
+
+ endDate (Date) +
+

The end date for this result

+
+
+
+ progress (Float) +
+

The progress for this result

+
+
+
+ createdAt (DateTime) +
+

When this result was created

+
+
+
+ updatedAt (DateTime) +
+

When this result was updated

+
+
+
+ childrenCount (Int) +
+

The number of children results

+
+
+
+ externalId (String) +
+

The external ID for this result

+
+
+
+ children ([Result]) +
+

The childrens results

+
+
+
+ parent (Result) +
+

The parent result

+
+
+
+ status (Status) +
+

The status for this result

+
+
+
+ timelineEntries ([TimelineEntry]) +
+

The timeline entries for this result

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/resultconnection/index.html b/app/views/static/api/docs/object/resultconnection/index.html new file mode 100644 index 0000000..eff6659 --- /dev/null +++ b/app/views/static/api/docs/object/resultconnection/index.html @@ -0,0 +1,1061 @@ +

+ResultConnection

+

The connection type for Result.

+

+Fields

+
+ pageInfo (PageInfo!) +
+

Information to aid in pagination.

+
+
+
+ edges ([ResultEdge]) +
+

A list of edges.

+
+
+
+ nodes ([Result]) +
+

A list of nodes.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/resultedge/index.html b/app/views/static/api/docs/object/resultedge/index.html new file mode 100644 index 0000000..1d818d3 --- /dev/null +++ b/app/views/static/api/docs/object/resultedge/index.html @@ -0,0 +1,1055 @@ +

+ResultEdge

+

An edge in a connection.

+

+Fields

+
+ cursor (String!) +
+

A cursor for use in pagination.

+
+
+
+ node (Result) +
+

The item at the end of the edge.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/scope/index.html b/app/views/static/api/docs/object/scope/index.html new file mode 100644 index 0000000..27a1d7d --- /dev/null +++ b/app/views/static/api/docs/object/scope/index.html @@ -0,0 +1,1066 @@ +

+Scope

+

A scope

+

+Fields

+
+ id (ID!) +
+
+
+
+ name (TranslatedField!) +
+

The graphql_name of this scope.

+
+
+
+ children ([Scope]!) +
+

Descendants of this scope

+
+
+
+ parent (Scope) +
+

This scope's parent scope.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/session/index.html b/app/views/static/api/docs/object/session/index.html new file mode 100644 index 0000000..26008c3 --- /dev/null +++ b/app/views/static/api/docs/object/session/index.html @@ -0,0 +1,1055 @@ +

+Session

+

The current session

+

+Fields

+
+ user (User) +
+

The current user

+
+
+
+ verifiedUserGroups ([UserGroup!]!) +
+

The current user verified user groups

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/sortition/index.html b/app/views/static/api/docs/object/sortition/index.html new file mode 100644 index 0000000..d5f9440 --- /dev/null +++ b/app/views/static/api/docs/object/sortition/index.html @@ -0,0 +1,1228 @@ +

+Sortition

+

A sortition

+

+Implements

+ +

+Fields

+
+ author (Author) +
+

The resource author

+
+
+
+ id (ID!) +
+

The internal ID for this sortition

+
+
+
+ type (String!) +
+

The commentable's class name. i.e. Decidim::ParticipatoryProcess

+
+
+
+ acceptsNewComments (Boolean!) +
+

Whether the object can have new comments or not

+
+
+
+ commentsHaveAlignment (Boolean!) +
+

Whether the object comments have alignment or not

+
+
+
+ commentsHaveVotes (Boolean!) +
+

Whether the object comments have votes or not

+
+
+
+ comments ([Comment!]!) +
+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
orderBy + String + +

Order the comments

+
singleCommentId + String + +

ID of the single comment to look at

+
+
+
+
+ totalCommentsCount (Int!) +
+

The number of comments in all levels this resource holds

+
+
+
+ hasComments (Boolean!) +
+

Check if the commentable has comments

+
+
+
+ userAllowedToComment (Boolean!) +
+

Check if the current user can comment

+
+
+
+ category (Category) +
+

The object's category

+
+
+
+ dice (Int) +
+

The dice for this sortition

+
+
+
+ targetItems (Int) +
+

The target items for this sortition

+
+
+
+ requestTimestamp (Date) +
+

The request time stamp for this request

+
+
+
+ selectedProposals ([Int]) +
+

The selected proposals for this sortition

+
+
+
+ createdAt (DateTime) +
+

When this sortition was created

+
+
+
+ updatedAt (DateTime) +
+

When this sortition was updated

+
+
+
+ witnesses (TranslatedField) +
+

The witnesses for this sortition

+
+
+
+ additionalInfo (TranslatedField) +
+

The additional info for this sortition

+
+
+
+ reference (String) +
+

The reference for this sortition

+
+
+
+ title (TranslatedField) +
+

The title for this sortition

+
+
+
+ cancelReason (TranslatedField) +
+

The cancel reason for this sortition

+
+
+
+ cancelledOn (Date) +
+

When this sortition was cancelled

+
+
+
+ cancelledByUser (User) +
+

Who cancelled this sortition

+
+
+
+ candidateProposals ([Int]) +
+

The candidate proposal for this sortition

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/sortitionconnection/index.html b/app/views/static/api/docs/object/sortitionconnection/index.html new file mode 100644 index 0000000..fd0c92f --- /dev/null +++ b/app/views/static/api/docs/object/sortitionconnection/index.html @@ -0,0 +1,1061 @@ +

+SortitionConnection

+

The connection type for Sortition.

+

+Fields

+
+ pageInfo (PageInfo!) +
+

Information to aid in pagination.

+
+
+
+ edges ([SortitionEdge]) +
+

A list of edges.

+
+
+
+ nodes ([Sortition]) +
+

A list of nodes.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/sortitionedge/index.html b/app/views/static/api/docs/object/sortitionedge/index.html new file mode 100644 index 0000000..2112e9d --- /dev/null +++ b/app/views/static/api/docs/object/sortitionedge/index.html @@ -0,0 +1,1055 @@ +

+SortitionEdge

+

An edge in a connection.

+

+Fields

+
+ cursor (String!) +
+

A cursor for use in pagination.

+
+
+
+ node (Sortition) +
+

The item at the end of the edge.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/sortitions/index.html b/app/views/static/api/docs/object/sortitions/index.html new file mode 100644 index 0000000..933a3b2 --- /dev/null +++ b/app/views/static/api/docs/object/sortitions/index.html @@ -0,0 +1,1150 @@ +

+Sortitions

+

A sortition component of a participatory space.

+

+Implements

+ +

+Connections

+
+ sortitions (SortitionConnection) +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
after + String + +

Returns the elements in the list that come after the specified cursor.

+
before + String + +

Returns the elements in the list that come before the specified cursor.

+
first + Int + +

Returns the first n elements from the list.

+
last + Int + +

Returns the last n elements from the list.

+
+
+
+

+Fields

+
+ id (ID!) +
+

The Component's unique ID

+
+
+
+ name (TranslatedField!) +
+

The name of this component.

+
+
+
+ weight (Int!) +
+

The weight of the component

+
+
+
+ participatorySpace (ParticipatorySpace!) +
+

The participatory space in which this component belongs to.

+
+
+
+ sortition (Sortition) +
+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/statistic/index.html b/app/views/static/api/docs/object/statistic/index.html new file mode 100644 index 0000000..e5813e8 --- /dev/null +++ b/app/views/static/api/docs/object/statistic/index.html @@ -0,0 +1,1055 @@ +

+Statistic

+

Represents a single statistic

+

+Fields

+
+ name (String!) +
+

The name of the statistic

+
+
+
+ value (Int!) +
+

The actual value of the statistic

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/status/index.html b/app/views/static/api/docs/object/status/index.html new file mode 100644 index 0000000..8b0bf69 --- /dev/null +++ b/app/views/static/api/docs/object/status/index.html @@ -0,0 +1,1091 @@ +

+Status

+

A status

+

+Fields

+
+ id (ID!) +
+

The internal ID for this status

+
+
+
+ key (String) +
+

The key for this status

+
+
+
+ name (TranslatedField) +
+

The name for this status

+
+
+
+ createdAt (Date) +
+

When this status was created

+
+
+
+ updatedAt (Date) +
+

When this status was updated

+
+
+
+ description (TranslatedField) +
+

The description for this status

+
+
+
+ progress (Int) +
+

The progress for this status

+
+
+
+ results ([Result]) +
+

The results for this status

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/survey/index.html b/app/views/static/api/docs/object/survey/index.html new file mode 100644 index 0000000..25c0ffb --- /dev/null +++ b/app/views/static/api/docs/object/survey/index.html @@ -0,0 +1,1067 @@ +

+Survey

+

A survey

+

+Fields

+
+ id (ID!) +
+

The internal ID for this survey

+
+
+
+ createdAt (DateTime) +
+

The time this survey was created

+
+
+
+ updatedAt (DateTime) +
+

The time this survey was updated

+
+
+
+ questionnaire (Questionnaire) +
+

The questionnaire for this survey

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/surveyconnection/index.html b/app/views/static/api/docs/object/surveyconnection/index.html new file mode 100644 index 0000000..3c3d9c5 --- /dev/null +++ b/app/views/static/api/docs/object/surveyconnection/index.html @@ -0,0 +1,1061 @@ +

+SurveyConnection

+

The connection type for Survey.

+

+Fields

+
+ pageInfo (PageInfo!) +
+

Information to aid in pagination.

+
+
+
+ edges ([SurveyEdge]) +
+

A list of edges.

+
+
+
+ nodes ([Survey]) +
+

A list of nodes.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/surveyedge/index.html b/app/views/static/api/docs/object/surveyedge/index.html new file mode 100644 index 0000000..12c67af --- /dev/null +++ b/app/views/static/api/docs/object/surveyedge/index.html @@ -0,0 +1,1055 @@ +

+SurveyEdge

+

An edge in a connection.

+

+Fields

+
+ cursor (String!) +
+

A cursor for use in pagination.

+
+
+
+ node (Survey) +
+

The item at the end of the edge.

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/surveys/index.html b/app/views/static/api/docs/object/surveys/index.html new file mode 100644 index 0000000..74658a9 --- /dev/null +++ b/app/views/static/api/docs/object/surveys/index.html @@ -0,0 +1,1150 @@ +

+Surveys

+

A surveys component of a participatory space.

+

+Implements

+ +

+Connections

+
+ surveys (SurveyConnection) +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
after + String + +

Returns the elements in the list that come after the specified cursor.

+
before + String + +

Returns the elements in the list that come before the specified cursor.

+
first + Int + +

Returns the first n elements from the list.

+
last + Int + +

Returns the last n elements from the list.

+
+
+
+

+Fields

+
+ id (ID!) +
+

The Component's unique ID

+
+
+
+ name (TranslatedField!) +
+

The name of this component.

+
+
+
+ weight (Int!) +
+

The weight of the component

+
+
+
+ participatorySpace (ParticipatorySpace!) +
+

The participatory space in which this component belongs to.

+
+
+
+ survey (Survey) +
+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/timelineentry/index.html b/app/views/static/api/docs/object/timelineentry/index.html new file mode 100644 index 0000000..879a8ca --- /dev/null +++ b/app/views/static/api/docs/object/timelineentry/index.html @@ -0,0 +1,1085 @@ +

+TimelineEntry

+

A Timeline Entry

+

+Fields

+
+ id (ID!) +
+

The internal ID for this timeline entry

+
+
+
+ entryDate (Date) +
+

The entry date for this timeline entry

+
+
+
+ title (TranslatedField) +
+

The title for this timeline entry

+
+
+
+ description (TranslatedField) +
+

The description for this timeline entry

+
+
+
+ createdAt (DateTime) +
+

When this timeline entry was created

+
+
+
+ updatedAt (DateTime) +
+

When this timeline entry was updated

+
+
+
+ result (Result) +
+

The result for this timeline entry

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/traceversion/index.html b/app/views/static/api/docs/object/traceversion/index.html new file mode 100644 index 0000000..6e7b61c --- /dev/null +++ b/app/views/static/api/docs/object/traceversion/index.html @@ -0,0 +1,1067 @@ +

+TraceVersion

+

A trace version type

+

+Fields

+
+ id (ID!) +
+

The ID of the version

+
+
+
+ createdAt (DateTime) +
+

The date and time this version was created

+
+
+
+ editor (Author) +
+

The editor/author of this version

+
+
+
+ changeset (JSON) +
+

Object with the changes in this version

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/translatedfield/index.html b/app/views/static/api/docs/object/translatedfield/index.html new file mode 100644 index 0000000..584e47e --- /dev/null +++ b/app/views/static/api/docs/object/translatedfield/index.html @@ -0,0 +1,1101 @@ +

+TranslatedField

+

A translated field

+

+Fields

+
+ locales ([String]) +
+

Lists all the locales in which this translation is available

+
+
+
+ translations ([LocalizedString]!) +
+

All the localized strings for this translation.

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
locales + [String!] + +

A list of locales to scope the translations to.

+
+
+
+
+ translation (String) +
+

Returns a single translation given a locale.

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
locale + String! + +

A locale to search for

+
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/user/index.html b/app/views/static/api/docs/object/user/index.html new file mode 100644 index 0000000..b5c0e31 --- /dev/null +++ b/app/views/static/api/docs/object/user/index.html @@ -0,0 +1,1108 @@ +

+User

+

A user

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+

The user's id

+
+
+
+ name (String!) +
+

The user's name

+
+
+
+ nickname (String!) +
+

The user's nickname

+
+
+
+ avatarUrl (String!) +
+

The user's avatar url

+
+
+
+ profilePath (String!) +
+

The user's profile url

+
+
+
+ badge (String!) +
+

A badge for the user group

+
+
+
+ organizationName (String!) +
+

The user's organization name

+
+
+
+ deleted (Boolean!) +
+

Whether the user's account has been deleted or not

+
+
+
+ directMessagesEnabled (String!) +
+

If the user making the request is logged in, it will return whether this recipient accepts a conversation or not. It will return false for non-logged requests.

+
+
+
+ groups ([UserGroup]!) +
+

Groups where this user belongs

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/object/usergroup/index.html b/app/views/static/api/docs/object/usergroup/index.html new file mode 100644 index 0000000..4bc051d --- /dev/null +++ b/app/views/static/api/docs/object/usergroup/index.html @@ -0,0 +1,1108 @@ +

+UserGroup

+

A user group

+

+Implements

+ +

+Fields

+
+ id (ID!) +
+

The user group's id

+
+
+
+ name (String!) +
+

The user group's name

+
+
+
+ nickname (String!) +
+

The user group nickname

+
+
+
+ avatarUrl (String!) +
+

The user's avatar url

+
+
+
+ profilePath (String!) +
+

The user group's profile url

+
+
+
+ badge (String!) +
+

A badge for the user group

+
+
+
+ organizationName (String!) +
+

The user group's organization name

+
+
+
+ deleted (Boolean!) +
+

Whether the user group's has been deleted or not

+
+
+
+ members ([User]!) +
+

Members of this group

+
+
+
+ membersCount (Int!) +
+

Number of members in this group

+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/operation/mutation/index.html b/app/views/static/api/docs/operation/mutation/index.html new file mode 100644 index 0000000..41dfc5e --- /dev/null +++ b/app/views/static/api/docs/operation/mutation/index.html @@ -0,0 +1,1043 @@ +

+Mutations

+

Every GraphQL schema has a root type for both queries and mutations.

+

The mutation type defines how GraphQL operations change data. It is analogous to performing HTTP verbs such as POST, PATCH, and DELETE.

+

For more information, see the GraphQL spec.

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/operation/query/index.html b/app/views/static/api/docs/operation/query/index.html new file mode 100644 index 0000000..93a3062 --- /dev/null +++ b/app/views/static/api/docs/operation/query/index.html @@ -0,0 +1,1566 @@ +

+Query

+

Every GraphQL schema has a root type for both queries and mutations. The query type defines GraphQL operations that retrieve data from the server.

+

+Fields

+
+ commentable (Commentable!) +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + String! + +

The commentable's ID

+
type + String! + +

The commentable's class name. i.e. Decidim::ParticipatoryProcess

+
locale + String! + +

The locale for which to get the comments text

+
toggleTranslations + Boolean! + +

Whether the user asked to toggle the machine translations or not.

+
+
+
+
+ participatoryProcesses ([ParticipatoryProcess!]) +
+

Lists all participatory_processes

+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
filter + ParticipatoryProcessFilter + +

This argument let's you filter the results

+
order + ParticipatoryProcessSort + +

This argument let's you order the results

+
+
+
+
+ participatoryProcess (ParticipatoryProcess) +
+

Finds a participatory_process

+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID + +

The ID of the participatory space

+
slug + String + +

The slug of the participatory process

+
+
+
+
+ component (ComponentInterface) +
+

Lists the components this space contains.

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +

The ID of the component to be found

+
+
+
+
+ session (Session) +
+

Return's information about the logged in user

+
+
+
+ decidim (Decidim) +
+

Decidim's framework properties.

+
+
+
+ organization (Organization) +
+

The current organization

+
+
+
+ hashtags ([HashtagType!]) +
+

The hashtags for current organization

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
name + String + +

The name of the hashtag

+
+
+
+
+ metrics ([Metric!]) +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
names + [String!] + +

The names of the metrics you want to retrieve

+
space_type + String + +

The type of ParticipatorySpace you want to filter with

+
space_id + Int + +

The ID of ParticipatorySpace you want to filter with

+
+
+
+
+ user (Author) +
+

A participant (user or group) in the current organization

+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID + +

The ID of the participant

+
nickname + String + +

The @nickname of the participant

+
+
+
+
+ users ([Author!]) +
+

The participants (users or groups) for the current organization

+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
order + UserEntitySort + +

Provides several methods to order the results

+
filter + UserEntityFilter + +

Provides several methods to filter the results

+
+
+
+
+ participatoryProcessGroups ([ParticipatoryProcessGroup!]!) +
+

Lists all participatory process groups

+
+
+
+ participatoryProcessGroup (ParticipatoryProcessGroup) +
+

Finds a participatory process group

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +

The ID of the Participatory process group

+
+
+
+
+ participatoryProcessTypes ([ParticipatoryProcessType!]!) +
+

List all participatory process types

+
+
+
+ participatoryProcessType (ParticipatoryProcessType) +
+

Finds a participatory process type

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +

The ID of the participatory process type

+
+
+
+
+ assembliesTypes ([AssembliesType!]!) +
+

Lists all assemblies types

+
+
+
+ assembliesType (AssembliesType) +
+

Finds an assemblies type group

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID! + +

The ID of the Assemblies type

+
+
+
+
+ assemblies ([Assembly!]) +
+

Lists all assemblies

+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
filter + ParticipatoryProcessFilter + +

This argument let's you filter the results

+
order + ParticipatoryProcessSort + +

This argument let's you order the results

+
+
+
+
+ assembly (Assembly) +
+

Finds a assembly

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID + +

The ID of the participatory space

+
+
+
+
+ conferences ([Conference!]) +
+

Lists all conferences

+ + + + + + + + + + + + + + + + + + + + +
ArgumentTypeDescription
filter + ParticipatoryProcessFilter + +

This argument lets you filter the results

+
order + ParticipatoryProcessSort + +

This argument lets you order the results

+
+
+
+
+ conference (Conference) +
+

Finds a conference

+ + + + + + + + + + + + + + + +
ArgumentTypeDescription
id + ID + +

The ID of the participatory space

+
+
+
+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/scalar/boolean/index.html b/app/views/static/api/docs/scalar/boolean/index.html new file mode 100644 index 0000000..1ac88c9 --- /dev/null +++ b/app/views/static/api/docs/scalar/boolean/index.html @@ -0,0 +1,1041 @@ +

+Boolean

+

Represents true or false values.

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/scalar/date/index.html b/app/views/static/api/docs/scalar/date/index.html new file mode 100644 index 0000000..05eba21 --- /dev/null +++ b/app/views/static/api/docs/scalar/date/index.html @@ -0,0 +1,1041 @@ +

+Date

+

An ISO8601 date

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/scalar/datetime/index.html b/app/views/static/api/docs/scalar/datetime/index.html new file mode 100644 index 0000000..a1b1c1e --- /dev/null +++ b/app/views/static/api/docs/scalar/datetime/index.html @@ -0,0 +1,1041 @@ +

+DateTime

+

An ISO8601 date with time

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/scalar/float/index.html b/app/views/static/api/docs/scalar/float/index.html new file mode 100644 index 0000000..78aff8d --- /dev/null +++ b/app/views/static/api/docs/scalar/float/index.html @@ -0,0 +1,1041 @@ +

+Float

+

Represents signed double-precision fractional values as specified by IEEE 754.

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/scalar/id/index.html b/app/views/static/api/docs/scalar/id/index.html new file mode 100644 index 0000000..3db3509 --- /dev/null +++ b/app/views/static/api/docs/scalar/id/index.html @@ -0,0 +1,1041 @@ +

+ID

+

Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "VXNlci0xMA==") or integer (such as 4) input value will be accepted as an ID.

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/scalar/index.html b/app/views/static/api/docs/scalar/index.html new file mode 100644 index 0000000..11f116c --- /dev/null +++ b/app/views/static/api/docs/scalar/index.html @@ -0,0 +1,1042 @@ +

+Scalars

+

Scalars are primitive values such as Int or String.

+

For more information, see the GraphQL spec.

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/scalar/int/index.html b/app/views/static/api/docs/scalar/int/index.html new file mode 100644 index 0000000..f9b7c19 --- /dev/null +++ b/app/views/static/api/docs/scalar/int/index.html @@ -0,0 +1,1041 @@ +

+Int

+

Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/scalar/json/index.html b/app/views/static/api/docs/scalar/json/index.html new file mode 100644 index 0000000..945bcd4 --- /dev/null +++ b/app/views/static/api/docs/scalar/json/index.html @@ -0,0 +1,1041 @@ +

+JSON

+

Represents untyped JSON

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/scalar/string/index.html b/app/views/static/api/docs/scalar/string/index.html new file mode 100644 index 0000000..915b098 --- /dev/null +++ b/app/views/static/api/docs/scalar/string/index.html @@ -0,0 +1,1041 @@ +

+String

+

Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.

+ + + +
+ ☰ +
diff --git a/app/views/static/api/docs/union/index.html b/app/views/static/api/docs/union/index.html new file mode 100644 index 0000000..a81a1c8 --- /dev/null +++ b/app/views/static/api/docs/union/index.html @@ -0,0 +1,1042 @@ +

+Unions

+

A union is a type of object that can represent one of many kinds of objects. For example, a field marked as a ReactableUnion could be a CommitComment, an Issue, an IssueComment, or a PullRequestReviewComment, because each of those objects can be reacted on.

+

For more information, see the GraphQL spec.

+ + + +
+ ☰ +
diff --git a/app/workers/data_portability_worker.rb b/app/workers/data_portability_worker.rb index 2d63a9f..2bd776d 100644 --- a/app/workers/data_portability_worker.rb +++ b/app/workers/data_portability_worker.rb @@ -8,7 +8,7 @@ class DataPortabilityWorker include Sidekiq::Worker def perform(*_args) - Rake::Task["decidim:delete_data_portability_files"].invoke + Rake::Task["decidim:delete_download_your_data_files"].invoke Rake::Task["decidim:open_data:export"].invoke end end diff --git a/babel.config.json b/babel.config.json index e5811e1..551d4be 100644 --- a/babel.config.json +++ b/babel.config.json @@ -20,11 +20,9 @@ "corejs": false } ], - [ - "@babel/plugin-transform-regenerator", - { - "async": false - } - ] + [ "@babel/plugin-transform-regenerator", { "async": false }], + [ "@babel/plugin-proposal-private-property-in-object", { "loose": true }], + ["@babel/plugin-proposal-private-methods", { "loose": true }], + ["@babel/plugin-proposal-class-properties", { "loose": true }] ] } diff --git a/config/boot.rb b/config/boot.rb index 4ab87a7..8a216e8 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -5,14 +5,12 @@ require "bundler/setup" # Set up gems listed in the Gemfile. require "bootsnap" -env = ENV["RAILS_ENV"] || "development" +env = ENV.fetch("RAILS_ENV", nil) || "development" Bootsnap.setup( cache_dir: File.expand_path(File.join("..", "tmp", "cache"), __dir__), development_mode: env == "development", load_path_cache: true, - autoload_paths_cache: true, - disable_trace: false, compile_cache_iseq: !ENV["SIMPLECOV"], compile_cache_yaml: true ) diff --git a/config/environments/development.rb b/config/environments/development.rb index 244940c..4a8ba5d 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "active_support/core_ext/integer/time" + Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. @@ -35,13 +37,20 @@ # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false config.action_mailer.delivery_method = :letter_opener_web - config.action_mailer.default_url_options = { port: 3000 } + config.action_mailer.default_url_options = { host: "localhost:3000" } + config.action_mailer.asset_host = "http://localhost:3000" config.action_mailer.perform_caching = false # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log + # Raise exceptions for disallowed deprecations. + config.active_support.disallowed_deprecation = :raise + + # Tell Active Support which deprecation messages to disallow. + config.active_support.disallowed_deprecation_warnings = [] + # Raise an error on page load if there are pending migrations. config.active_record.migration_error = :page_load diff --git a/config/environments/production.rb b/config/environments/production.rb index 9ffe05c..4463b21 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "active_support/core_ext/integer/time" + Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. @@ -32,7 +34,7 @@ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX # Store uploaded files on the local file system (see config/storage.yml for options) - config.active_storage.service = :local + config.active_storage.service = Rails.application.secrets.dig(:storage, :provider) || :local # Mount Action Cable outside main process or domain # config.action_cable.mount_path = nil @@ -44,7 +46,7 @@ # Use the lowest log level to ensure availability of diagnostic information # when problems arise. - config.log_level = :debug + config.log_level = %w(debug info warn error fatal).include?(ENV.fetch("RAILS_LOG_LEVEL", nil)) ? ENV["RAILS_LOG_LEVEL"] : :debug # Prepend all log lines with the following tags. config.log_tags = [:request_id] @@ -69,6 +71,12 @@ # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify + # Log disallowed deprecations. + config.active_support.disallowed_deprecation = :log + + # Tell Active Support which deprecation messages to disallow. + config.active_support.disallowed_deprecation_warnings = [] + # Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new config.action_mailer.smtp_settings = { diff --git a/config/environments/test.rb b/config/environments/test.rb index 5169dda..b1fe11e 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "active_support/core_ext/integer/time" + Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. @@ -43,6 +45,12 @@ # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr + # Raise exceptions for disallowed deprecations. + config.active_support.disallowed_deprecation = :raise + + # Tell Active Support which deprecation messages to disallow. + config.active_support.disallowed_deprecation_warnings = [] + # Raises error for missing translations # config.action_view.raise_on_missing_translations = true end diff --git a/config/initializers/decidim.rb b/config/initializers/decidim.rb index 6cc914a..7d2659c 100644 --- a/config/initializers/decidim.rb +++ b/config/initializers/decidim.rb @@ -2,27 +2,29 @@ Decidim.configure do |config| # The name of the application - config.application_name = "Decidim PESS" + config.application_name = Rails.application.secrets.decidim[:application_name] # The email that will be used as sender in all emails from Decidim - config.mailer_sender = "comunicacio@bitlab.cat" + config.mailer_sender = Rails.application.secrets.decidim[:mailer_sender] # Sets the list of available locales for the whole application. # # When an organization is created through the System area, system admins will # be able to choose the available languages for that organization. That list # of languages will be equal or a subset of the list in this file. - config.available_locales = [:en, :ca, :es] + config.available_locales = Rails.application.secrets.decidim[:available_locales].presence || [:en] + # Or block set it up manually and prevent ENV manipulation: + # config.available_locales = %w(en ca es) # Sets the default locale for new organizations. When creating a new # organization from the System area, system admins will be able to overwrite # this value for that specific organization. - config.default_locale = :en + config.default_locale = Rails.application.secrets.decidim[:default_locale].presence || :en # Restrict access to the system part with an authorized ip list. # You can use a single ip like ("1.2.3.4"), or an ip subnet like ("1.2.3.4/24") # You may specify multiple ip in an array ["1.2.3.4", "1.2.3.4/24"] - # config.system_accesslist_ips = ["127.0.0.1"] + config.system_accesslist_ips = Rails.application.secrets.decidim[:system_accesslist_ips] if Rails.application.secrets.decidim[:system_accesslist_ips].present? # Defines a list of custom content processors. They are used to parse and # render specific tags inside some user-provided content. Check the docs for @@ -30,8 +32,14 @@ # config.content_processors = [] # Whether SSL should be enabled or not. + # if this var is not defined, it is decided automatically per-rails-environment + config.force_ssl = Rails.application.secrets.decidim[:force_ssl].present? unless Rails.application.secrets.decidim[:force_ssl] == "auto" + # or set it up manually and prevent any ENV manipulation: # config.force_ssl = true + # Enable the service worker. By default is disabled in development and enabled in the rest of environments + config.service_worker_enabled = Rails.application.secrets.decidim[:service_worker_enabled].present? + # Map and Geocoder configuration # # == HERE Maps == @@ -98,6 +106,40 @@ # cache: Redis.new, # cache_prefix: "..." # } + if Rails.application.secrets.maps.present? && Rails.application.secrets.maps[:static_provider].present? + static_provider = Rails.application.secrets.maps[:static_provider] + dynamic_provider = Rails.application.secrets.maps[:dynamic_provider] + dynamic_url = Rails.application.secrets.maps[:dynamic_url] + static_url = Rails.application.secrets.maps[:static_url] + static_url = "https://image.maps.ls.hereapi.com/mia/1.6/mapview" if static_provider == "here" && static_url.blank? + config.maps = { + provider: static_provider, + api_key: Rails.application.secrets.maps[:static_api_key], + static: { url: static_url }, + dynamic: { + provider: dynamic_provider, + api_key: Rails.application.secrets.maps[:dynamic_api_key] + } + } + config.maps[:geocoding] = { host: Rails.application.secrets.maps[:geocoding_host], use_https: true } if Rails.application.secrets.maps[:geocoding_host] + config.maps[:dynamic][:tile_layer] = {} + config.maps[:dynamic][:tile_layer][:url] = dynamic_url if dynamic_url + config.maps[:dynamic][:tile_layer][:attribution] = Rails.application.secrets.maps[:attribution] if Rails.application.secrets.maps[:attribution] + if Rails.application.secrets.maps[:extra_vars].present? + vars = URI.decode_www_form(Rails.application.secrets.maps[:extra_vars]) + vars.each do |key, value| + # perform a naive type conversion + config.maps[:dynamic][:tile_layer][key] = case value + when /^true$|^false$/i + value.downcase == "true" + when /\A[-+]?\d+\z/ + value.to_i + else + value + end + end + end + end # Custom resource reference generator method. Check the docs for more info. # config.reference_generator = lambda do |resource, component| @@ -106,14 +148,20 @@ # end # Currency unit - # config.currency_unit = "€" + config.currency_unit = Rails.application.secrets.decidim[:currency_unit] if Rails.application.secrets.decidim[:currency_unit].present? + + # Workaround to enable SVG assets cors + config.cors_enabled = Rails.application.secrets.decidim[:cors_enabled].present? # Defines the quality of image uploads after processing. Image uploads are # processed by Decidim, this value helps reduce the size of the files. - # config.image_uploader_quality = 80 + config.image_uploader_quality = Rails.application.secrets.decidim[:image_uploader_quality].to_i + + config.maximum_attachment_size = Rails.application.secrets.decidim[:maximum_attachment_size].to_i.megabytes + config.maximum_avatar_size = Rails.application.secrets.decidim[:maximum_avatar_size].to_i.megabytes # The number of reports which a resource can receive before hiding it - # config.max_reports_before_hiding = 3 + config.max_reports_before_hiding = Rails.application.secrets.decidim[:max_reports_before_hiding].to_i # Custom HTML Header snippets # @@ -128,22 +176,22 @@ # that an organization's administrator injects malicious scripts to spy on or # take over user accounts. # - config.enable_html_header_snippets = false + config.enable_html_header_snippets = Rails.application.secrets.decidim[:enable_html_header_snippets].present? # Allow organizations admins to track newsletter links. - # config.track_newsletter_links = true + config.track_newsletter_links = Rails.application.secrets.decidim[:track_newsletter_links].present? unless Rails.application.secrets.decidim[:track_newsletter_links] == "auto" - # Amount of time that the data portability files will be available in the server. - # config.data_portability_expiry_time = 7.days + # Amount of time that the download your data files will be available in the server. + config.download_your_data_expiry_time = Rails.application.secrets.decidim[:download_your_data_expiry_time].to_i.days # Max requests in a time period to prevent DoS attacks. Only applied on production. - # config.throttling_max_requests = 100 + config.throttling_max_requests = Rails.application.secrets.decidim[:throttling_max_requests].to_i # Time window in which the throttling is applied. - # config.throttling_period = 1.minute + config.throttling_period = Rails.application.secrets.decidim[:throttling_period].to_i.minutes # Time window were users can access the website even if their email is not confirmed. - # config.unconfirmed_access_for = 2.days + config.unconfirmed_access_for = Rails.application.secrets.decidim[:unconfirmed_access_for].to_i.days # A base path for the uploads. If set, make sure it ends in a slash. # Uploads will be set to `/uploads/`. This can be useful if you @@ -151,7 +199,7 @@ # environments, but in different folders. # # If not set, it will be ignored. - # config.base_uploads_path = nil + config.base_uploads_path = Rails.application.secrets.decidim[:base_uploads_path] if Rails.application.secrets.decidim[:base_uploads_path].present? # SMS gateway configuration # @@ -198,6 +246,7 @@ # end # end # + # # config.timestamp_service = "MyTimestampService" # PDF signature service configuration @@ -226,16 +275,18 @@ # Etherpad configuration # # Only needed if you want to have Etherpad integration with Decidim. See - # Decidim docs at docs/services/etherpad.md in order to set it up. - # - # config.etherpad = { - # server: Rails.application.secrets.etherpad[:server], - # api_key: Rails.application.secrets.etherpad[:api_key], - # api_version: Rails.application.secrets.etherpad[:api_version] - # } + # Decidim docs at https://docs.decidim.org/en/services/etherpad/ in order to set it up. + # + if Rails.application.secrets.etherpad.present? && Rails.application.secrets.etherpad[:server].present? + config.etherpad = { + server: Rails.application.secrets.etherpad[:server], + api_key: Rails.application.secrets.etherpad[:api_key], + api_version: Rails.application.secrets.etherpad[:api_version] + } + end # Sets Decidim::Exporters::CSV's default column separator - # config.default_csv_col_sep = ";" + config.default_csv_col_sep = Rails.application.secrets.decidim[:default_csv_col_sep] if Rails.application.secrets.decidim[:default_csv_col_sep].present? # The list of roles a user can have, not considering the space-specific roles. # config.user_roles = %w(admin user_manager) @@ -251,12 +302,19 @@ # Machine Translation Configuration # + # See Decidim docs at https://docs.decidim.org/en/develop/machine_translations/ + # for more information about how it works and how to set it up. + # # Enable machine translations config.enable_machine_translations = false # # If you want to enable machine translation you can create your own service # to interact with third party service to translate the user content. # + # If you still want to use "Decidim::Dev::DummyTranslator" as translator placeholder, + # add the follwing line at the beginning of this file: + # require "decidim/dev/dummy_translator" + # # An example class would be something like: # # class MyTranslationService @@ -277,7 +335,147 @@ # Defines the name of the cookie used to check if the user allows Decidim to # set cookies. - # config.consent_cookie_name = "decidim-cc" + config.consent_cookie_name = Rails.application.secrets.decidim[:consent_cookie_name] if Rails.application.secrets.decidim[:consent_cookie_name].present? + + # Defines data consent categories and the data stored in each category. + # config.consent_categories = [ + # { + # slug: "essential", + # mandatory: true, + # items: [ + # { + # type: "cookie", + # name: "_session_id" + # }, + # { + # type: "cookie", + # name: Decidim.consent_cookie_name + # } + # ] + # }, + # { + # slug: "preferences", + # mandatory: false + # }, + # { + # slug: "analytics", + # mandatory: false + # }, + # { + # slug: "marketing", + # mandatory: false + # } + # ] + + # Admin admin password configurations + Rails.application.secrets.dig(:decidim, :admin_password, :strong).tap do |strong_pw| + # When the strong password is not configured, default to true + config.admin_password_strong = strong_pw.nil? ? true : strong_pw.present? + end + config.admin_password_expiration_days = Rails.application.secrets.dig(:decidim, :admin_password, :expiration_days).presence || 90 + config.admin_password_min_length = Rails.application.secrets.dig(:decidim, :admin_password, :min_length).presence || 15 + config.admin_password_repetition_times = Rails.application.secrets.dig(:decidim, :admin_password, :repetition_times).presence || 5 + + # Additional optional configurations (see decidim-core/lib/decidim/core.rb) + config.cache_key_separator = Rails.application.secrets.decidim[:cache_key_separator] if Rails.application.secrets.decidim[:cache_key_separator].present? + config.expire_session_after = Rails.application.secrets.decidim[:expire_session_after].to_i.minutes if Rails.application.secrets.decidim[:expire_session_after].present? + config.enable_remember_me = Rails.application.secrets.decidim[:enable_remember_me].present? unless Rails.application.secrets.decidim[:enable_remember_me] == "auto" + if Rails.application.secrets.decidim[:session_timeout_interval].present? + config.session_timeout_interval = Rails.application.secrets.decidim[:session_timeout_interval].to_i.seconds + end + config.follow_http_x_forwarded_host = Rails.application.secrets.decidim[:follow_http_x_forwarded_host].present? + config.maximum_conversation_message_length = Rails.application.secrets.decidim[:maximum_conversation_message_length].to_i + config.password_blacklist = Rails.application.secrets.decidim[:password_blacklist] if Rails.application.secrets.decidim[:password_blacklist].present? + config.allow_open_redirects = Rails.application.secrets.decidim[:allow_open_redirects] if Rails.application.secrets.decidim[:allow_open_redirects].present? +end + +if Decidim.module_installed? :api + Decidim::Api.configure do |config| + config.schema_max_per_page = Rails.application.secrets.dig(:decidim, :api, :schema_max_per_page).presence || 50 + config.schema_max_complexity = Rails.application.secrets.dig(:decidim, :api, :schema_max_complexity).presence || 5000 + config.schema_max_depth = Rails.application.secrets.dig(:decidim, :api, :schema_max_depth).presence || 15 + end +end + +if Decidim.module_installed? :proposals + Decidim::Proposals.configure do |config| + config.similarity_threshold = Rails.application.secrets.dig(:decidim, :proposals, :similarity_threshold).presence || 0.25 + config.similarity_limit = Rails.application.secrets.dig(:decidim, :proposals, :similarity_limit).presence || 10 + config.participatory_space_highlighted_proposals_limit = Rails.application.secrets.dig(:decidim, :proposals, :participatory_space_highlighted_proposals_limit).presence || 4 + config.process_group_highlighted_proposals_limit = Rails.application.secrets.dig(:decidim, :proposals, :process_group_highlighted_proposals_limit).presence || 3 + end +end + +if Decidim.module_installed? :meetings + Decidim::Meetings.configure do |config| + config.upcoming_meeting_notification = Rails.application.secrets.dig(:decidim, :meetings, :upcoming_meeting_notification).to_i.days + if Rails.application.secrets.dig(:decidim, :meetings, :embeddable_services).present? + config.embeddable_services = Rails.application.secrets.dig(:decidim, :meetings, :embeddable_services) + end + unless Rails.application.secrets.dig(:decidim, :meetings, :enable_proposal_linking) == "auto" + config.enable_proposal_linking = Rails.application.secrets.dig(:decidim, :meetings, :enable_proposal_linking).present? + end + end +end + +if Decidim.module_installed? :budgets + Decidim::Budgets.configure do |config| + unless Rails.application.secrets.dig(:decidim, :budgets, :enable_proposal_linking) == "auto" + config.enable_proposal_linking = Rails.application.secrets.dig(:decidim, :budgets, :enable_proposal_linking).present? + end + end +end + +if Decidim.module_installed? :accountability + Decidim::Accountability.configure do |config| + unless Rails.application.secrets.dig(:decidim, :accountability, :enable_proposal_linking) == "auto" + config.enable_proposal_linking = Rails.application.secrets.dig(:decidim, :accountability, :enable_proposal_linking).present? + end + end +end + +if Decidim.module_installed? :consultations + Decidim::Consultations.configure do |config| + config.stats_cache_expiration_time = Rails.application.secrets.dig(:decidim, :consultations, :stats_cache_expiration_time).to_i.minutes + end +end + +if Decidim.module_installed? :initiatives + Decidim::Initiatives.configure do |config| + unless Rails.application.secrets.dig(:decidim, :initiatives, :creation_enabled) == "auto" + config.creation_enabled = Rails.application.secrets.dig(:decidim, :initiatives, :creation_enabled).present? + end + config.similarity_threshold = Rails.application.secrets.dig(:decidim, :initiatives, :similarity_threshold).presence || 0.25 + config.similarity_limit = Rails.application.secrets.dig(:decidim, :initiatives, :similarity_limit).presence || 5 + config.minimum_committee_members = Rails.application.secrets.dig(:decidim, :initiatives, :minimum_committee_members).presence || 2 + config.default_signature_time_period_length = Rails.application.secrets.dig(:decidim, :initiatives, :default_signature_time_period_length).presence || 120 + config.default_components = Rails.application.secrets.dig(:decidim, :initiatives, :default_components) + config.first_notification_percentage = Rails.application.secrets.dig(:decidim, :initiatives, :first_notification_percentage).presence || 33 + config.second_notification_percentage = Rails.application.secrets.dig(:decidim, :initiatives, :second_notification_percentage).presence || 66 + config.stats_cache_expiration_time = Rails.application.secrets.dig(:decidim, :initiatives, :stats_cache_expiration_time).to_i.minutes + config.max_time_in_validating_state = Rails.application.secrets.dig(:decidim, :initiatives, :max_time_in_validating_state).to_i.days + unless Rails.application.secrets.dig(:decidim, :initiatives, :print_enabled) == "auto" + config.print_enabled = Rails.application.secrets.dig(:decidim, :initiatives, :print_enabled).present? + end + config.do_not_require_authorization = Rails.application.secrets.dig(:decidim, :initiatives, :do_not_require_authorization).present? + end +end + +if Decidim.module_installed? :elections + Decidim::Elections.configure do |config| + config.setup_minimum_hours_before_start = Rails.application.secrets.dig(:elections, :setup_minimum_hours_before_start).presence || 3 + config.start_vote_maximum_hours_before_start = Rails.application.secrets.dig(:elections, :start_vote_maximum_hours_before_start).presence || 6 + config.voter_token_expiration_minutes = Rails.application.secrets.dig(:elections, :voter_token_expiration_minutes).presence || 120 + end + + Decidim::Votings.configure do |config| + config.check_census_max_requests = Rails.application.secrets.dig(:elections, :votings, :check_census_max_requests).presence || 5 + config.throttling_period = Rails.application.secrets.dig(:elections, :votings, :throttling_period).to_i.minutes + end + + Decidim::Votings::Census.configure do |config| + config.census_access_codes_export_expiry_time = Rails.application.secrets.dig(:elections, :votings, :census, :access_codes_export_expiry_time).to_i.days + end end Rails.application.config.i18n.available_locales = Decidim.available_locales diff --git a/config/secrets.yml b/config/secrets.yml index 9051e6e..d9a2f07 100644 --- a/config/secrets.yml +++ b/config/secrets.yml @@ -10,43 +10,151 @@ # Make sure the secrets in this file are kept private # if you're sharing your code publicly. +decidim_default: &decidim_default + application_name: <%= Decidim::Env.new("DECIDIM_APPLICATION_NAME", "My Application Name").to_json %> + mailer_sender: <%= Decidim::Env.new("DECIDIM_MAILER_SENDER", "change-me@example.org").to_s %> + available_locales: <%= Decidim::Env.new("DECIDIM_AVAILABLE_LOCALES", "ca,cs,de,en,es,eu,fi,fr,it,ja,nl,pl,pt,ro").to_array.to_json %> + default_locale: <%= Decidim::Env.new("DECIDIM_DEFAULT_LOCALE", "en").to_s %> + force_ssl: <%= Decidim::Env.new("DECIDIM_FORCE_SSL", "auto").default_or_present_if_exists.to_s %> + enable_html_header_snippets: <%= Decidim::Env.new("DECIDIM_ENABLE_HTML_HEADER_SNIPPETS").to_boolean_string %> + currency_unit: <%= Decidim::Env.new("DECIDIM_CURRENCY_UNIT", "€").to_s %> + cors_enabled: <%= Decidim::Env.new("DECIDIM_CORS_ENABLED").to_boolean_string %> + image_uploader_quality: <%= Decidim::Env.new("DECIDIM_IMAGE_UPLOADER_QUALITY", "80").to_i %> + maximum_attachment_size: <%= Decidim::Env.new("DECIDIM_MAXIMUM_ATTACHMENT_SIZE", "10").to_i %> + maximum_avatar_size: <%= Decidim::Env.new("DECIDIM_MAXIMUM_AVATAR_SIZE", "5").to_i %> + max_reports_before_hiding: <%= Decidim::Env.new("DECIDIM_MAX_REPORTS_BEFORE_HIDING", "3").to_i %> + track_newsletter_links: <%= Decidim::Env.new("DECIDIM_TRACK_NEWSLETTER_LINKS", "auto").default_or_present_if_exists.to_s %> + download_your_data_expiry_time: <%= Decidim::Env.new("DECIDIM_DOWNLOAD_YOUR_DATA_EXPIRY_TIME", "7").to_i %> + throttling_max_requests: <%= Decidim::Env.new("DECIDIM_THROTTLING_MAX_REQUESTS", "100").to_i %> + throttling_period: <%= Decidim::Env.new("DECIDIM_THROTTLING_PERIOD", "1").to_i %> + unconfirmed_access_for: <%= Decidim::Env.new("DECIDIM_UNCONFIRMED_ACCESS_FOR", "0").to_i %> + system_accesslist_ips: <%= Decidim::Env.new("DECIDIM_SYSTEM_ACCESSLIST_IPS").to_array.to_json %> + base_uploads_path: <%= Decidim::Env.new("DECIDIM_BASE_UPLOADS_PATH").to_json %> + default_csv_col_sep: <%= Decidim::Env.new("DECIDIM_DEFAULT_CSV_COL_SEP", ";").to_json %> + consent_cookie_name: <%= Decidim::Env.new("DECIDIM_CONSENT_COOKIE_NAME", "decidim-consent").to_json %> + cache_key_separator: <%= Decidim::Env.new("DECIDIM_CACHE_KEY_SEPARATOR", "/").to_json %> + expire_session_after: <%= Decidim::Env.new("DECIDIM_EXPIRE_SESSION_AFTER", "30").to_i %> + session_timeout_interval: <%= Decidim::Env.new("DECIDIM_SESSION_TIMEOUT_INTERVAL", "10").to_i %> + enable_remember_me: <%= Decidim::Env.new("DECIDIM_ENABLE_REMEMBER_ME", "auto").default_or_present_if_exists.to_s %> + follow_http_x_forwarded_host: <%= Decidim::Env.new("DECIDIM_FOLLOW_HTTP_X_FORWARDED_HOST").to_boolean_string %> + maximum_conversation_message_length: <%= Decidim::Env.new("DECIDIM_MAXIMUM_CONVERSATION_MESSAGE_LENGTH", "1000").to_i %> + password_blacklist: <%= Decidim::Env.new("DECIDIM_PASSWORD_BLACKLIST").to_array(separator: ", ").to_json %> + allow_open_redirects: <%= Decidim::Env.new("DECIDIM_ALLOW_OPEN_REDIRECTS").to_boolean_string %> + service_worker_enabled: <%= Decidim::Env.new("DECIDIM_SERVICE_WORKER_ENABLED", Rails.env.exclude?("development")).to_boolean_string %> + admin_password: + expiration_days: <%= Decidim::Env.new("DECIDIM_ADMIN_PASSWORD_EXPIRATION_DAYS", 90).to_i %> + min_length: <%= Decidim::Env.new("DECIDIM_ADMIN_PASSWORD_MIN_LENGTH", 15).to_i %> + repetition_times: <%= Decidim::Env.new("DECIDIM_ADMIN_PASSWORD_REPETITION_TIMES", 5).to_i %> + strong: <%= Decidim::Env.new("DECIDIM_ADMIN_PASSWORD_STRONG", true).to_boolean_string %> + api: + schema_max_per_page: <%= Decidim::Env.new("API_SCHEMA_MAX_PER_PAGE", 50).to_i %> + schema_max_complexity: <%= Decidim::Env.new("API_SCHEMA_MAX_COMPLEXITY", 5000).to_i %> + schema_max_depth: <%= Decidim::Env.new("API_SCHEMA_MAX_DEPTH", 15).to_i %> + proposals: + similarity_threshold: <%= Decidim::Env.new("PROPOSALS_SIMILARITY_THRESHOLD", 0.25).to_f %> + similarity_limit: <%= Decidim::Env.new("PROPOSALS_SIMILARITY_LIMIT", 10).to_i %> + participatory_space_highlighted_proposals_limit: <%= Decidim::Env.new("PROPOSALS_PARTICIPATORY_SPACE_HIGHLIGHTED_PROPOSALS_LIMIT", 4).to_i %> + process_group_highlighted_proposals_limit: <%= Decidim::Env.new("PROPOSALS_PROCESS_GROUP_HIGHLIGHTED_PROPOSALS_LIMIT", 3).to_i %> + meetings: + upcoming_meeting_notification: <%= Decidim::Env.new("MEETINGS_UPCOMING_MEETING_NOTIFICATION", 2).to_i %> + enable_proposal_linking: <%= Decidim::Env.new("MEETINGS_ENABLE_PROPOSAL_LINKING", "auto").default_or_present_if_exists.to_s %> + embeddable_services: <%= Decidim::Env.new("MEETINGS_EMBEDDABLE_SERVICES").to_array(separator: " ").to_json %> + budgets: + enable_proposal_linking: <%= Decidim::Env.new("BUDGETS_ENABLE_PROPOSAL_LINKING", "auto").default_or_present_if_exists.to_s %> + accountability: + enable_proposal_linking: <%= Decidim::Env.new("ACCOUNTABILITY_ENABLE_PROPOSAL_LINKING", "auto").default_or_present_if_exists.to_s %> + consultations: + stats_cache_expiration_time: <%= Decidim::Env.new("CONSULTATIONS_STATS_CACHE_EXPIRATION_TIME", 5).to_i %> + initiatives: + creation_enabled: <%= Decidim::Env.new("INITIATIVES_CREATION_ENABLED", "auto").default_or_present_if_exists.to_s %> + similarity_threshold: <%= Decidim::Env.new("INITIATIVES_SIMILARITY_THRESHOLD", 0.25).to_f %> + similarity_limit: <%= Decidim::Env.new("INITIATIVES_SIMILARITY_LIMIT", 5).to_i %> + minimum_committee_members: <%= Decidim::Env.new("INITIATIVES_MINIMUM_COMMITTEE_MEMBERS", 2).to_i %> + default_signature_time_period_length: <%= Decidim::Env.new("INITIATIVES_DEFAULT_SIGNATURE_TIME_PERIOD_LENGTH", 120).to_i %> + default_components: <%= Decidim::Env.new("INITIATIVES_DEFAULT_COMPONENTS", "pages, meetings").to_array.to_json %> + first_notification_percentage: <%= Decidim::Env.new("INITIATIVES_FIRST_NOTIFICATION_PERCENTAGE", 33).to_i %> + second_notification_percentage: <%= Decidim::Env.new("INITIATIVES_SECOND_NOTIFICATION_PERCENTAGE", 66).to_i %> + stats_cache_expiration_time: <%= Decidim::Env.new("INITIATIVES_STATS_CACHE_EXPIRATION_TIME", 5).to_i %> + max_time_in_validating_state: <%= Decidim::Env.new("INITIATIVES_MAX_TIME_IN_VALIDATING_STATE", 60).to_i %> + print_enabled: <%= Decidim::Env.new("INITIATIVES_PRINT_ENABLED", "auto").default_or_present_if_exists.to_s %> + do_not_require_authorization: <%= Decidim::Env.new("INITIATIVES_DO_NOT_REQUIRE_AUTHORIZATION").to_boolean_string %> + +elections_default: &elections_default + bulletin_board_server: <%= Decidim::Env.new("ELECTIONS_BULLETIN_BOARD_SERVER", 'http://bulletin-board.lvh.me:8000/api').to_s %> + bulletin_board_public_key: {"kty":"RSA","n":"zMXsZpYPKkDlSmezX898y7zNOaJ7ENIN4kj4UhQ95Vm4HlgTpIs2VMMsO0eqynMaOR_G1mXdqbpbaJtXijBe4V8323QwGm6WVAa71E7pDXa5g6-uo5f8GePitN0YER9y2yNQN4uTaNzJiWV2uLBUYfMdj3SIif31YwLULHAOj3B_oleFK8coE_Qr3NzATcYBmsqE8AR4NljxTO6KDmP1SLdf5GBOBhOAIFbnL_Kpj2xkm7MS3hjMVKpiRhqA1UgX5oKZ8ixBv46fNJF0pBsHi3fHNjK9oZzgdx_AI-YFpdE_40-8bh_g9sWzxacqOM2-MdQLHbvRPEVltO3E8tr6I5YWrylcP7l9VD8OJeqjq2qFYHnGYdmLoD2XuXmI9EuBvSb9H4-qcartxZSIQCimKib_fxZvgrG1FSRRhK6YpvIdGv4-G2zfCCRsC4XD80TYI2bf-oYCoy7eU3_eVHFMV2yg4p1Wnuw2Vgq0edPL_bKaV9JvGx7F-U5juxNN0WZR9LzbPl4ReejzN95lyHgbj0nTH_u3bSpZmgJrQF-PwdnPcG46deVjJgUeosrlC4lQxVrRz0GL58BuFunnz2uYDBDrcJCiG60EbdkAFHjOcXU4wrUWATin7je_aqdBXhSnkTafcJAMvL7Y2Ld7vDge8nLqjAVlAi5am3rN0kqKT6M","e":"AQAB","kid":"a8e86f02ca27e1861bfc49e2a9a4614ca9068f8efdb6d42d19d3aab0eb2a31be"} + authority_private_key: {"kty":"RSA","n":"pNgMt8lnPDD3TlWYGhRiV1oZkPQmnLdiUzwyb_-35qKD9k-HU86xo0uSgoOUWkBtnvFscq8zNDPAGAlZVokaN_z9ksZblSce0LEl8lJa3ICgghg7e8vg_7Lz5dyHSQ3PCLgenyFGcL401aglDde1Xo4ujdz33Lklc4U9zoyoLUI2_viYmNOU6n5Mn0sJd30FeICMrLD2gX46pGe3MGug6groT9EvpKcdOoJHKoO5yGSVaeY5-Bo3gngvlgjlS2mfwjCtF4NYwIQSd2al-p4BKnuYAVKRSgr8rYnnjhWfJ4GsCaqiyXNi5NPYRV6gl_cx_1jUcA1rRJqQR32I8c8QbAXm5qNO4URcdaKys9tNcVgXBL1FsSdbrLVVFWen1tfWNfHm-8BjiWCWD79-uk5gI0SjC9tWvTzVvswWXI5weNqqVXqpDydr46AsHE2sG40HRCR3UF3LupT-HwXTcYcOZr5dJClJIsU3Hrvy4wLssub69YSNR1Jxn-KX2vUc06xY8CNIuSMpfufEq5cZopL6O2l1pRsW1FQnF3s078_Y9MaQ1gPyBo0IipLBVUj5IjEIfPuiEk4jxkiUYDeqzf7bAvSFckp94yLkRWTs_pEZs7b_ogwRG6WMHjtcaNYe4CufhIm9ekkKDeAWOPRTHfKNmohRBh09XuvSjqrx5Z7rqb8","e":"AQAB","kid":"b8dba1459df956d60107690c34fa490db681eac4f73ffaf6e4055728c02ddc8e","d":"Uh3KIBe1VJez6pLbBUrYPlmE2N-3CGSWF46qNX62lq6ofB_b8xTJCuaPonJ3iYoE0aPEeVDrefq5m3-0wFXl-LQPgXlMj_1_7UgB9jeuSZ_N1WDK6P2EJPx5YS09O1gkpVxK7Mx_sZQe77wmUUH-eI7tg__qfUrB7E0Yn_cTpBATI2qlYaQsz6-A7e1MVvixq_ilmzVAZvuBrPp5mCZVb6FlXrV_PU9-UPIrD3O1La1lfO6SPBSbSGQkmGHwD2QbkHn9D_R_Vs-z_0TkM_dX71jIPQhrle3pN222KuJ8eQqwr9QP6biQMBuT5eKgr3MVtfUDRpp4sCEq9GIFwSd8LvbmGPrOoz8ueOEQ05nisIBQuOTYiWpYs2CEV062HR1bLFRLDUcSlflGNr0bgiXTUFx4wxRG06OaI-rQ6nG3M8TE0I0phMNCG3c7YyV28z_k2I65oQF9aKtiwFwc0YsUSGPTOFZGWHuCCPLm0lFeebpI_JIYqIv70NJxbSZEBY8DAIqZPqP6y_CRo2_C7piCgsjg9pnF8cp45vz4L6DWZ0Tumc_5aRuqIBkYXXwP9TjqhzxL-2SQHIqUAjj6Y6S35tZT6ekZSbnPIKX_e42y6bDT_Ztf01QfKiTkcx3_I8RwOuh6CzJzr72AykQpU3XKOKF1x1GBtYyrno4jG5LgaGE","p":"1UARZ-rRnpKG5NHKlXTys3irCy-d91edHL3fEIzDKvhMRQCIWh7dt8l0_sIpcBF-EbVilbFKj7yfgZBTr8EkAXHgweayK8rnlMqi2jte1_u-5DBtrGVVUTSQltSLDOZHK5QfUxVK6Bbk8K5ROLvef91oNgnSNWNOeoCZdlS55nMZcAgY_6mxSuuMq54Tgy8o4Ip890-ZEYY6OSFXhU-ieoGO4Jw--c6QzmCa3gGo2oVClidMNaM1jquK4Pj6xaoxR2NWeIX9Ix7k1P2B24pegyHXjSIpQ6JYdn352VViXi2tx7TTJh6ClNVjgoRmL4Gfy_IJNx0GhF5OB3yughUc7w","q":"xePJGBt466qM9F0BPxWFjyWbIs_GNXr-lBGASui0Z94cfgFbsZwqRsWQEf7jDVQsDNVnPSWZ_Wd6UqoQaIxc0tE8gaokPG6A4EUDyoLaZ231ZydDVoWof8FnPDaJwrcPwZ4R6ZLKGmkfytCZuU9I_9B4uuV0dyjEzKfS-Os3UcLumKPlgJ71OZAb49GTqUHuTePcSJjyYOYXx6eE7i_1m8TjU9Ut18BJNQhLqWmerA6X1ijbR2_syY6GXhGSfciSBH8xVkiUnqXb2jt1bE8nwWw-Sam5ikjzNbXqqs978IcCE5HTddQmy99bwuArA8PLqIFj3OOO1CSo8oyn2XDgMQ","dp":"Diky_rOZN-6DBq7nxQT_GOvqb9O5qbMnu8DgDzlJvJDAf9SJOXLTRmEaY9CA7_A5bvOcmFQtn13nObNb20_4FCB7zGSFcGMI_dh2-Ab5RV5yTrTok4onID1dXKbAlRq1ny825U2Eq-TZTyJEQoA3RkZtpSkBzInLrFbd2f3GWodKKSZggpnCLDd4H-1fXlbDYCXSJpoikAdZ1nFgXnnrUDdKRaAajnwpIYtIvXVewSQYR-BULzunUtIRZt8hx_6FRzhRha9gH_TtPTeYZ_vISuz0Y2rhUpx1Q2kaLlR9M8PUxm47l0xvX3LMKN6h6oWxFtn7wq0qwZ-Bjv24mOrOAQ","dq":"nXGD10hURrwk9W7hxP0sjB2Rdnr06iv3THs4JWFL16_h32bZO1BSWoho_chbgYlMmtFXGFFIWVLxAcAI2gWC_MA4cbmapvIMW2LNh1vgxJW5v95_NuGUlECeEEwcAu1-_b7z5XBCmAy3nLem9sbb_5wv0hMpPH0VRvbnZeBO3SBIkO0lddYCqU-8wN9HqkyoexQleSUnAm1O0iy4GIHT2aEmdNaRaKy2EhmNiTZdZeseZueOvyGPtTVONp2ofacMdcN0z39jr22qo9DWtdusd7nVPOpqkllEF6GrGUeHBnGD92n4YjDuxRnqefu8fXxUFrcLav0p8CNSv9ek291woQ","qi":"w6hfKEBLLHRWPkjajgxZyyetj-UFfVkILRT0plOllJ2JV8whcOXRXbiXH2r8zqMeyMFrrMwmuvv4TVQaruKB0ZQOG7Tz5Lw0RZEREOLnBwc3vSi_iLd-jBz01LdExTpqsAHMkaMQR9x62J8DE1ZNxVdn3ELYKik0f1L2r_WErzhvT1uq69HAybUp6WHcFYH0PSqHg4LOneXAdU1_g-ji2Zn9dlA_2oYGQ5S6JXPV7v2IVbEFpxyVD1lPbFT0iKhyZZevictjgD_JGHveIVqsq5w0Csyz08h0oEW9hYEq-4bquMxSf18gjldoS5uQPD7FUECgL8bxsCdc4hP6UEKYGw"} + authority_name: "Decidim Test Authority" + authority_api_key: "89Ht70GZNcicu8WEyagz_rRae6brbqZAGuBEICYBCii-PTV3MAstAtx1aRVe5H5YfODi-JgYPvyf9ZMH7tOeZ15e3mf9B2Ymgw7eknvBFMRP213YFGo1SPn_C4uLK90G" + scheme_name: "dummy" + quorum: 2 + number_of_trustees: 3 + +storage_default: &storage_default + provider: <%= Decidim::Env.new("STORAGE_PROVIDER", "local").to_s %> + cdn_host: <%= ENV["STORAGE_CDN_HOST"] %> + s3: + access_key_id: <%= ENV["AWS_ACCESS_KEY_ID"] %> + secret_access_key: <%= ENV["AWS_SECRET_ACCESS_KEY"] %> + region: <%= ENV["AWS_REGION"] %> + bucket: <%= ENV["AWS_BUCKET"] %> + endpoint: <%= ENV["AWS_ENDPOINT"] %> + azure: + storage_access_key: <%= ENV["AZURE_STORAGE_ACCESS_KEY"] %> + storage_account_name: <%= ENV["AZURE_STORAGE_ACCOUNT_NAME"] %> + container: <%= ENV["AZURE_CONTAINER"] %> + gcs: + project: <%= ENV["GCS_PROJECT"] %> + bucket: <%= ENV["GCS_BUCKET"] %> + type: <%= Decidim::Env.new("GCS_TYPE", "service_account").to_s %> + project_id: <%= Decidim::Env.new("GCS_PROJECT_ID").to_s %> + private_key_id: <%= Decidim::Env.new("GCS_PRIVATE_KEY_ID").to_s %> + private_key: <%= Decidim::Env.new("GCS_PRIVATE_KEY").to_s %> + client_email: <%= Decidim::Env.new("GCS_CLIENT_EMAIL").to_s %> + client_id: <%= Decidim::Env.new("GCS_CLIENT_ID").to_s %> + auth_uri: <%= Decidim::Env.new("GCS_AUTH_URI", "https://accounts.google.com/o/oauth2/auth").to_s %> + token_uri: <%= Decidim::Env.new("GCS_TOKEN_URI", "https://accounts.google.com/o/oauth2/token").to_s %> + auth_provider_x509_cert_url: <%= Decidim::Env.new("GCS_AUTH_PROVIDER_X509_CERT_URL", "https://www.googleapis.com/oauth2/v1/certs").to_s %> + client_x509_cert_url: <%= Decidim::Env.new("GCS_CLIENT_X509_CERT_URL").to_s %> + default: &default + decidim: + <<: *decidim_default omniauth: facebook: - # It must be a boolean. Remember ENV variables doesn't support booleans. - enabled: false + enabled: <%= Decidim::Env.new("OMNIAUTH_FACEBOOK_APP_ID").to_boolean_string %> app_id: <%= ENV["OMNIAUTH_FACEBOOK_APP_ID"] %> app_secret: <%= ENV["OMNIAUTH_FACEBOOK_APP_SECRET"] %> twitter: - enabled: false + enabled: <%= Decidim::Env.new("OMNIAUTH_TWITTER_API_KEY").to_boolean_string %> api_key: <%= ENV["OMNIAUTH_TWITTER_API_KEY"] %> api_secret: <%= ENV["OMNIAUTH_TWITTER_API_SECRET"] %> google_oauth2: - enabled: false + enabled: <%= Decidim::Env.new("OMNIAUTH_GOOGLE_CLIENT_ID").to_boolean_string %> icon_path: decidim/brands/google.svg client_id: <%= ENV["OMNIAUTH_GOOGLE_CLIENT_ID"] %> client_secret: <%= ENV["OMNIAUTH_GOOGLE_CLIENT_SECRET"] %> maps: - api_key: <%= ENV["MAPS_API_KEY"] %> + dynamic_provider: <%= Decidim::Env.new("MAPS_DYNAMIC_PROVIDER", ENV["MAPS_PROVIDER"]).to_s %> + static_provider: <%= Decidim::Env.new("MAPS_STATIC_PROVIDER", ENV["MAPS_PROVIDER"]).to_s %> + static_api_key: <%= Decidim::Env.new("MAPS_STATIC_API_KEY", ENV["MAPS_API_KEY"]).to_s %> + dynamic_api_key: <%= Decidim::Env.new("MAPS_DYNAMIC_API_KEY", ENV["MAPS_API_KEY"]).to_s %> + dynamic_url: <%= ENV["MAPS_DYNAMIC_URL"] %> + static_url: <%= ENV["MAPS_STATIC_URL"] %> + attribution: <%= ENV["MAPS_ATTRIBUTION"].to_json %> + extra_vars: <%= ENV["MAPS_EXTRA_VARS"].to_json %> + geocoding_host: <%= ENV["MAPS_GEOCODING_HOST"] %> etherpad: server: <%= ENV["ETHERPAD_SERVER"] %> api_key: <%= ENV["ETHERPAD_API_KEY"] %> - api_version: "1.2.1" - bulletin_board: - identification_private_key: {"kty":"RSA","n":"pNgMt8lnPDD3TlWYGhRiV1oZkPQmnLdiUzwyb_-35qKD9k-HU86xo0uSgoOUWkBtnvFscq8zNDPAGAlZVokaN_z9ksZblSce0LEl8lJa3ICgghg7e8vg_7Lz5dyHSQ3PCLgenyFGcL401aglDde1Xo4ujdz33Lklc4U9zoyoLUI2_viYmNOU6n5Mn0sJd30FeICMrLD2gX46pGe3MGug6groT9EvpKcdOoJHKoO5yGSVaeY5-Bo3gngvlgjlS2mfwjCtF4NYwIQSd2al-p4BKnuYAVKRSgr8rYnnjhWfJ4GsCaqiyXNi5NPYRV6gl_cx_1jUcA1rRJqQR32I8c8QbAXm5qNO4URcdaKys9tNcVgXBL1FsSdbrLVVFWen1tfWNfHm-8BjiWCWD79-uk5gI0SjC9tWvTzVvswWXI5weNqqVXqpDydr46AsHE2sG40HRCR3UF3LupT-HwXTcYcOZr5dJClJIsU3Hrvy4wLssub69YSNR1Jxn-KX2vUc06xY8CNIuSMpfufEq5cZopL6O2l1pRsW1FQnF3s078_Y9MaQ1gPyBo0IipLBVUj5IjEIfPuiEk4jxkiUYDeqzf7bAvSFckp94yLkRWTs_pEZs7b_ogwRG6WMHjtcaNYe4CufhIm9ekkKDeAWOPRTHfKNmohRBh09XuvSjqrx5Z7rqb8","e":"AQAB","kid":"b8dba1459df956d60107690c34fa490db681eac4f73ffaf6e4055728c02ddc8e","d":"Uh3KIBe1VJez6pLbBUrYPlmE2N-3CGSWF46qNX62lq6ofB_b8xTJCuaPonJ3iYoE0aPEeVDrefq5m3-0wFXl-LQPgXlMj_1_7UgB9jeuSZ_N1WDK6P2EJPx5YS09O1gkpVxK7Mx_sZQe77wmUUH-eI7tg__qfUrB7E0Yn_cTpBATI2qlYaQsz6-A7e1MVvixq_ilmzVAZvuBrPp5mCZVb6FlXrV_PU9-UPIrD3O1La1lfO6SPBSbSGQkmGHwD2QbkHn9D_R_Vs-z_0TkM_dX71jIPQhrle3pN222KuJ8eQqwr9QP6biQMBuT5eKgr3MVtfUDRpp4sCEq9GIFwSd8LvbmGPrOoz8ueOEQ05nisIBQuOTYiWpYs2CEV062HR1bLFRLDUcSlflGNr0bgiXTUFx4wxRG06OaI-rQ6nG3M8TE0I0phMNCG3c7YyV28z_k2I65oQF9aKtiwFwc0YsUSGPTOFZGWHuCCPLm0lFeebpI_JIYqIv70NJxbSZEBY8DAIqZPqP6y_CRo2_C7piCgsjg9pnF8cp45vz4L6DWZ0Tumc_5aRuqIBkYXXwP9TjqhzxL-2SQHIqUAjj6Y6S35tZT6ekZSbnPIKX_e42y6bDT_Ztf01QfKiTkcx3_I8RwOuh6CzJzr72AykQpU3XKOKF1x1GBtYyrno4jG5LgaGE","p":"1UARZ-rRnpKG5NHKlXTys3irCy-d91edHL3fEIzDKvhMRQCIWh7dt8l0_sIpcBF-EbVilbFKj7yfgZBTr8EkAXHgweayK8rnlMqi2jte1_u-5DBtrGVVUTSQltSLDOZHK5QfUxVK6Bbk8K5ROLvef91oNgnSNWNOeoCZdlS55nMZcAgY_6mxSuuMq54Tgy8o4Ip890-ZEYY6OSFXhU-ieoGO4Jw--c6QzmCa3gGo2oVClidMNaM1jquK4Pj6xaoxR2NWeIX9Ix7k1P2B24pegyHXjSIpQ6JYdn352VViXi2tx7TTJh6ClNVjgoRmL4Gfy_IJNx0GhF5OB3yughUc7w","q":"xePJGBt466qM9F0BPxWFjyWbIs_GNXr-lBGASui0Z94cfgFbsZwqRsWQEf7jDVQsDNVnPSWZ_Wd6UqoQaIxc0tE8gaokPG6A4EUDyoLaZ231ZydDVoWof8FnPDaJwrcPwZ4R6ZLKGmkfytCZuU9I_9B4uuV0dyjEzKfS-Os3UcLumKPlgJ71OZAb49GTqUHuTePcSJjyYOYXx6eE7i_1m8TjU9Ut18BJNQhLqWmerA6X1ijbR2_syY6GXhGSfciSBH8xVkiUnqXb2jt1bE8nwWw-Sam5ikjzNbXqqs978IcCE5HTddQmy99bwuArA8PLqIFj3OOO1CSo8oyn2XDgMQ","dp":"Diky_rOZN-6DBq7nxQT_GOvqb9O5qbMnu8DgDzlJvJDAf9SJOXLTRmEaY9CA7_A5bvOcmFQtn13nObNb20_4FCB7zGSFcGMI_dh2-Ab5RV5yTrTok4onID1dXKbAlRq1ny825U2Eq-TZTyJEQoA3RkZtpSkBzInLrFbd2f3GWodKKSZggpnCLDd4H-1fXlbDYCXSJpoikAdZ1nFgXnnrUDdKRaAajnwpIYtIvXVewSQYR-BULzunUtIRZt8hx_6FRzhRha9gH_TtPTeYZ_vISuz0Y2rhUpx1Q2kaLlR9M8PUxm47l0xvX3LMKN6h6oWxFtn7wq0qwZ-Bjv24mOrOAQ","dq":"nXGD10hURrwk9W7hxP0sjB2Rdnr06iv3THs4JWFL16_h32bZO1BSWoho_chbgYlMmtFXGFFIWVLxAcAI2gWC_MA4cbmapvIMW2LNh1vgxJW5v95_NuGUlECeEEwcAu1-_b7z5XBCmAy3nLem9sbb_5wv0hMpPH0VRvbnZeBO3SBIkO0lddYCqU-8wN9HqkyoexQleSUnAm1O0iy4GIHT2aEmdNaRaKy2EhmNiTZdZeseZueOvyGPtTVONp2ofacMdcN0z39jr22qo9DWtdusd7nVPOpqkllEF6GrGUeHBnGD92n4YjDuxRnqefu8fXxUFrcLav0p8CNSv9ek291woQ","qi":"w6hfKEBLLHRWPkjajgxZyyetj-UFfVkILRT0plOllJ2JV8whcOXRXbiXH2r8zqMeyMFrrMwmuvv4TVQaruKB0ZQOG7Tz5Lw0RZEREOLnBwc3vSi_iLd-jBz01LdExTpqsAHMkaMQR9x62J8DE1ZNxVdn3ELYKik0f1L2r_WErzhvT1uq69HAybUp6WHcFYH0PSqHg4LOneXAdU1_g-ji2Zn9dlA_2oYGQ5S6JXPV7v2IVbEFpxyVD1lPbFT0iKhyZZevictjgD_JGHveIVqsq5w0Csyz08h0oEW9hYEq-4bquMxSf18gjldoS5uQPD7FUECgL8bxsCdc4hP6UEKYGw"} - server: http://bulletin-board.lvh.me:8000/api - websocket_url: ws://bulletin-board.lvh.me:8000/cable - api_key: "89Ht70GZNcicu8WEyagz_rRae6brbqZAGuBEICYBCii-PTV3MAstAtx1aRVe5H5YfODi-JgYPvyf9ZMH7tOeZ15e3mf9B2Ymgw7eknvBFMRP213YFGo1SPn_C4uLK90G" - number_of_trustees: 2 - authority_name: "Decidim Test Authority" - scheme: - name: "dummy" - parameters: - quorum: 2 - peertube: - client_id: <%= ENV["PEERTUBE_CLIENT_ID"] %> - client_secret: <%= ENV["PEERTUBE_CLIENT_SECRET"] %> - host: <%= ENV["PEERTUBE_HOST"] %> + api_version: <%= Decidim::Env.new("ETHERPAD_API_VERSION", "1.2.1") %> + elections: + <<: *elections_default + storage: + <<: *storage_default + vapid: + enabled: <%= Decidim::Env.new("VAPID_PUBLIC_KEY").to_boolean_string %> + public_key: <%= ENV["VAPID_PUBLIC_KEY"] %> + private_key: <%= ENV["VAPID_PRIVATE_KEY"] %> development: <<: *default @@ -72,10 +180,10 @@ test: enabled: true client_id: client_secret: - peertube: - client_id: fake-peertube-client-id - client_secret: fake-peertube-client-secret - host: example.org + elections: + <<: *elections_default + bulletin_board_server: <%= Decidim::Env.new("ELECTIONS_BULLETIN_BOARD_SERVER", 'http://bulletin-board.lvh.me:5017/api').to_s %> + # Do not keep production secrets in the repository, # instead read values from the environment. @@ -86,17 +194,23 @@ production: smtp_password: <%= ENV["SMTP_PASSWORD"] %> smtp_address: <%= ENV["SMTP_ADDRESS"] %> smtp_domain: <%= ENV["SMTP_DOMAIN"] %> - smtp_port: "587" - smtp_starttls_auto: true - smtp_authentication: "plain" - bulletin_board: - identification_private_key: <%= ENV["BULLETIN_BOARD_IDENTIFICATION_PRIVATE_KEY"] %> - server: <%= ENV["BULLETIN_BOARD_SERVER"] %> - websocket_url: <%= ENV["BULLETIN_BOARD_WEBSOCKET_URL"] %> - api_key: <%= ENV["BULLETIN_BOARD_API_KEY"] %> - number_of_trustees: <%= ENV["BULLETIN_BOARD_NUMBER_OF_TRUSTEES"] %> - authority_name: <%= ENV["BULLETIN_BOARD_AUTHORITY_NAME"] %> - scheme: - name: <%= ENV["BULLETIN_BOARD_SCHEME_NAME"] %> - parameters: - quorum: <%= ENV["BULLETIN_BOARD_SCHEME_QUORUM"] %> + smtp_port: <%= Decidim::Env.new("SMTP_PORT", 587).to_i %> + smtp_starttls_auto: <%= Decidim::Env.new("SMTP_STARTTLS_AUTO").to_boolean_string %> + smtp_authentication: <%= Decidim::Env.new("SMTP_AUTHENTICATION", "plain").to_s %> + elections: + bulletin_board_server: <%= ENV["BULLETIN_BOARD_SERVER"] %> + bulletin_board_public_key: <%= ENV["BULLETIN_BOARD_PUBLIC_KEY"] %> + authority_api_key: <%= ENV["BULLETIN_BOARD_API_KEY"] %> + authority_name: <%= ENV["AUTHORITY_NAME"] %> + authority_private_key: <%= ENV["AUTHORITY_PRIVATE_KEY"] %> + scheme_name: <%= Decidim::Env.new("ELECTIONS_SCHEME_NAME", "electionguard").to_s %> + number_of_trustees: <%= Decidim::Env.new("ELECTIONS_NUMBER_OF_TRUSTEES").to_i %> + quorum: <%= Decidim::Env.new("ELECTIONS_QUORUM").to_i %> + setup_minimum_hours_before_start: <%= Decidim::Env.new("ELECTIONS_SETUP_MINIMUM_HOURS_BEFORE_START", 3).to_i %> + start_vote_maximum_hours_before_start: <%= Decidim::Env.new("ELECTIONS_START_VOTE_MAXIMUM_HOURS_BEFORE_START", 6).to_i %> + voter_token_expiration_minutes: <%= Decidim::Env.new("ELECTIONS_VOTER_TOKEN_EXPIRATION_MINUTES", 120).to_i %> + votings: + check_census_max_requests: <%= Decidim::Env.new("VOTINGS_CHECK_CENSUS_MAX_REQUESTS", 5).to_i %> + throttling_period: <%= Decidim::Env.new("VOTINGS_THROTTLING_PERIOD", 1).to_i %> + census: + access_codes_export_expiry_time: <%= Decidim::Env.new("VOTINGS_CENSUS_ACCESS_CODES_EXPORT_EXPIRY_TIME", 2).to_i %> diff --git a/config/storage.yml b/config/storage.yml index d32f76e..003068a 100644 --- a/config/storage.yml +++ b/config/storage.yml @@ -6,27 +6,35 @@ local: service: Disk root: <%= Rails.root.join("storage") %> -# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) -# amazon: -# service: S3 -# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %> -# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %> -# region: us-east-1 -# bucket: your_own_bucket +s3: + service: S3 + access_key_id: <%= Rails.application.secrets.dig(:storage, :s3, :access_key_id) %> + secret_access_key: <%= Rails.application.secrets.dig(:storage, :s3, :secret_access_key) %> + bucket: <%= Rails.application.secrets.dig(:storage, :s3, :bucket) %> + <%= "region: #{Rails.application.secrets.dig(:storage, :s3, :region)}" if Rails.application.secrets.dig(:storage, :s3, :region) %> + <%= "endpoint: #{Rails.application.secrets.dig(:storage, :s3, :endpoint)}" if Rails.application.secrets.dig(:storage, :s3, :endpoint) %> -# Remember not to checkin your GCS keyfile to a repository -# google: -# service: GCS -# project: your_project -# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %> -# bucket: your_own_bucket +azure: + service: AzureStorage + storage_account_name: <%= Rails.application.secrets.dig(:storage, :azure, :storage_account_name) %> + storage_access_key: <%= Rails.application.secrets.dig(:storage, :azure, :storage_access_key) %> + container: <%= Rails.application.secrets.dig(:storage, :azure, :container) %> -# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key) -# microsoft: -# service: AzureStorage -# storage_account_name: your_account_name -# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %> -# container: your_container_name +gcs: + service: GCS + project: <%= Rails.application.secrets.dig(:storage, :gcs, :project) %> + bucket: <%= Rails.application.secrets.dig(:storage, :gcs, :bucket) %> + credentials: + type: <%= Rails.application.secrets.dig(:storage, :gcs, :type) %> + project_id: <%= Rails.application.secrets.dig(:storage, :gcs, :project_id) %> + private_key_id: <%= Rails.application.secrets.dig(:storage, :gcs, :private_key_id) %> + private_key: <%= Rails.application.secrets.dig(:storage, :gcs, :private_key) %> + client_email: <%= Rails.application.secrets.dig(:storage, :gcs, :client_email) %> + client_id: <%= Rails.application.secrets.dig(:storage, :gcs, :client_id) %> + auth_uri: <%= Rails.application.secrets.dig(:storage, :gcs, :auth_uri) %> + token_uri: <%= Rails.application.secrets.dig(:storage, :gcs, :token_uri) %> + auth_provider_x509_cert_url: <%= Rails.application.secrets.dig(:storage, :gcs, :auth_provider_x509_cert_url) %> + client_x509_cert_url: <%= Rails.application.secrets.dig(:storage, :gcs, :client_x509_cert_url) %> # mirror: # service: Mirror diff --git a/config/webpack/custom.js b/config/webpack/custom.js index 6c37a83..cac081d 100644 --- a/config/webpack/custom.js +++ b/config/webpack/custom.js @@ -1,7 +1,6 @@ /* eslint-disable */ - -const path = require("path"); const { config } = require("@rails/webpacker"); +const { InjectManifest } = require("workbox-webpack-plugin"); module.exports = { module: { @@ -93,5 +92,18 @@ module.exports = { optimization: { runtimeChunk: false }, - entry: config.entrypoints + entry: config.entrypoints, + plugins: [ + new InjectManifest({ + swSrc: "src/decidim/sw/sw.js", + + /** + * NOTE: + * @rails/webpacker outputs to '/packs', + * in order to make the SW run properly + * they must be put at the project's root folder '/' + */ + swDest: "../sw.js" + }) + ] } diff --git a/config/webpacker.yml b/config/webpacker.yml index 6a1a41f..34b1e91 100644 --- a/config/webpacker.yml +++ b/config/webpacker.yml @@ -33,7 +33,7 @@ development: hmr: false client: # Should we show a full-screen overlay in the browser when there are compiler errors or warnings? - overlay: true + overlay: false # May also be a string # webSocketURL: # hostname: "0.0.0.0" diff --git a/db/migrate/20230412134334_create_decidim_editor_images.decidim.rb b/db/migrate/20230412134334_create_decidim_editor_images.decidim.rb new file mode 100644 index 0000000..b67e129 --- /dev/null +++ b/db/migrate/20230412134334_create_decidim_editor_images.decidim.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20210730112319) + +class CreateDecidimEditorImages < ActiveRecord::Migration[6.0] + def change + create_table :decidim_editor_images do |t| + t.references :decidim_author, null: false, foreign_key: { to_table: :decidim_users }, index: { name: "decidim_editor_images_author" } + t.references :decidim_organization, null: false, foreign_key: true, index: { name: "decidim_editor_images_constraint_organization" } + + t.timestamps + end + end +end diff --git a/db/migrate/20230412134335_add_timestamps_to_content_blocks.decidim.rb b/db/migrate/20230412134335_add_timestamps_to_content_blocks.decidim.rb new file mode 100644 index 0000000..1fb3c76 --- /dev/null +++ b/db/migrate/20230412134335_add_timestamps_to_content_blocks.decidim.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20211126183540) + +class AddTimestampsToContentBlocks < ActiveRecord::Migration[6.0] + def up + add_timestamps :decidim_content_blocks, default: Time.zone.now + change_column_default :decidim_content_blocks, :created_at, nil + change_column_default :decidim_content_blocks, :updated_at, nil + end + + def down + remove_column :decidim_content_blocks, :updated_at + remove_column :decidim_content_blocks, :created_at + end +end diff --git a/db/migrate/20230412134336_remove_designation_mode_from_assembly_members.decidim_assemblies.rb b/db/migrate/20230412134336_remove_designation_mode_from_assembly_members.decidim_assemblies.rb new file mode 100644 index 0000000..7ac770b --- /dev/null +++ b/db/migrate/20230412134336_remove_designation_mode_from_assembly_members.decidim_assemblies.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +# This migration comes from decidim_assemblies (originally 20210907120249) + +class RemoveDesignationModeFromAssemblyMembers < ActiveRecord::Migration[6.0] + def change + remove_column :decidim_assembly_members, :designation_mode, :string + end +end diff --git a/db/migrate/20230412134337_add_comments_availability_columns_to_meetings_table.decidim_meetings.rb b/db/migrate/20230412134337_add_comments_availability_columns_to_meetings_table.decidim_meetings.rb new file mode 100644 index 0000000..a23992e --- /dev/null +++ b/db/migrate/20230412134337_add_comments_availability_columns_to_meetings_table.decidim_meetings.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true +# This migration comes from decidim_meetings (originally 20210519133705) + +class AddCommentsAvailabilityColumnsToMeetingsTable < ActiveRecord::Migration[6.0] + def change + add_column :decidim_meetings_meetings, :comments_enabled, :boolean, default: true + add_column :decidim_meetings_meetings, :comments_start_time, :datetime + add_column :decidim_meetings_meetings, :comments_end_time, :datetime + reversible do |dir| + dir.up do + execute "UPDATE decidim_meetings_meetings set comments_enabled = true" + end + end + end +end diff --git a/db/migrate/20230412134338_add_state_field_to_meeting.decidim_meetings.rb b/db/migrate/20230412134338_add_state_field_to_meeting.decidim_meetings.rb new file mode 100644 index 0000000..54ab50a --- /dev/null +++ b/db/migrate/20230412134338_add_state_field_to_meeting.decidim_meetings.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +# This migration comes from decidim_meetings (originally 20210727085318) + +class AddStateFieldToMeeting < ActiveRecord::Migration[6.0] + def change + add_column :decidim_meetings_meetings, :state, :string, index: true + end +end diff --git a/db/migrate/20230412134339_add_iframe_access_level_to_decidim_meetings.decidim_meetings.rb b/db/migrate/20230412134339_add_iframe_access_level_to_decidim_meetings.decidim_meetings.rb new file mode 100644 index 0000000..5f3a1fd --- /dev/null +++ b/db/migrate/20230412134339_add_iframe_access_level_to_decidim_meetings.decidim_meetings.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +# This migration comes from decidim_meetings (originally 20210903143040) + +class AddIframeAccessLevelToDecidimMeetings < ActiveRecord::Migration[6.0] + def change + add_column :decidim_meetings_meetings, :iframe_access_level, :integer, default: 0 + end +end diff --git a/db/migrate/20230412134340_transform_show_embedded_iframe_column.decidim_meetings.rb b/db/migrate/20230412134340_transform_show_embedded_iframe_column.decidim_meetings.rb new file mode 100644 index 0000000..21da5b5 --- /dev/null +++ b/db/migrate/20230412134340_transform_show_embedded_iframe_column.decidim_meetings.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true +# This migration comes from decidim_meetings (originally 20210922140454) + +class TransformShowEmbeddedIframeColumn < ActiveRecord::Migration[6.0] + def up + add_column :decidim_meetings_meetings, :iframe_embed_type, :integer, default: 0 + execute "UPDATE decidim_meetings_meetings SET iframe_embed_type = 1 WHERE show_embedded_iframe = 't'" + remove_column :decidim_meetings_meetings, :show_embedded_iframe + end + + def down + add_column :decidim_meetings_meetings, :show_embedded_iframe, :boolean, default: false + execute "UPDATE decidim_meetings_meetings SET show_embedded_iframe = 't' WHERE iframe_embed_type = 1" + remove_column :decidim_meetings_meetings, :iframe_embed_type + end +end diff --git a/db/migrate/20230412134341_rename_upcoming_events_content_block_to_upcoming_meetings.decidim_meetings.rb b/db/migrate/20230412134341_rename_upcoming_events_content_block_to_upcoming_meetings.decidim_meetings.rb new file mode 100644 index 0000000..f82f835 --- /dev/null +++ b/db/migrate/20230412134341_rename_upcoming_events_content_block_to_upcoming_meetings.decidim_meetings.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true +# This migration comes from decidim_meetings (originally 20210928095036) + +class RenameUpcomingEventsContentBlockToUpcomingMeetings < ActiveRecord::Migration[6.0] + class ContentBlock < ApplicationRecord + self.table_name = :decidim_content_blocks + end + + def change + # rubocop:disable Rails/SkipsModelValidations + ContentBlock.where(manifest_name: "upcoming_events").update_all(manifest_name: "upcoming_meetings") + # rubocop:enable Rails/SkipsModelValidations + end +end diff --git a/db/migrate/20230412134342_add_comments_availability_columns_to_debates_table.decidim_debates.rb b/db/migrate/20230412134342_add_comments_availability_columns_to_debates_table.decidim_debates.rb new file mode 100644 index 0000000..1363e1f --- /dev/null +++ b/db/migrate/20230412134342_add_comments_availability_columns_to_debates_table.decidim_debates.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true +# This migration comes from decidim_debates (originally 20210519201932) + +class AddCommentsAvailabilityColumnsToDebatesTable < ActiveRecord::Migration[6.0] + def change + add_column :decidim_debates_debates, :comments_enabled, :boolean, default: true + reversible do |dir| + dir.up do + execute "UPDATE decidim_debates_debates set comments_enabled = true" + end + end + end +end diff --git a/db/migrate/20230413115755_add_service_name_to_active_storage_blobs.decidim.rb b/db/migrate/20230413115755_add_service_name_to_active_storage_blobs.decidim.rb new file mode 100644 index 0000000..316952e --- /dev/null +++ b/db/migrate/20230413115755_add_service_name_to_active_storage_blobs.decidim.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20210831181634) + +# This migration comes from active_storage (originally 20190112182829) +class AddServiceNameToActiveStorageBlobs < ActiveRecord::Migration[6.0] + def up + return if column_exists?(:active_storage_blobs, :service_name) + + add_column :active_storage_blobs, :service_name, :string + # rubocop:disable Lint/AssignmentInCondition + # rubocop:disable Rails/SkipsModelValidations + if configured_service = ActiveStorage::Blob.service.name + ActiveStorage::Blob.unscoped.update_all(service_name: configured_service) + end + # rubocop:enable Lint/AssignmentInCondition + # rubocop:enable Rails/SkipsModelValidations + change_column :active_storage_blobs, :service_name, :string, null: false + end + + def down + remove_column :active_storage_blobs, :service_name + end +end diff --git a/db/migrate/20230413115756_create_active_storage_variant_records.decidim.rb b/db/migrate/20230413115756_create_active_storage_variant_records.decidim.rb new file mode 100644 index 0000000..ef13a6c --- /dev/null +++ b/db/migrate/20230413115756_create_active_storage_variant_records.decidim.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20210831181635) + +# This migration comes from active_storage (originally 20191206030411) +class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.0] + def change + create_table :active_storage_variant_records do |t| + t.belongs_to :blob, null: false, index: false + t.string :variation_digest, null: false + + t.index [:blob_id, :variation_digest], name: "index_active_storage_variant_records_uniqueness", unique: true + t.foreign_key :active_storage_blobs, column: :blob_id + end + end +end diff --git a/db/migrate/20230413115757_create_decidim_reminders.decidim.rb b/db/migrate/20230413115757_create_decidim_reminders.decidim.rb new file mode 100644 index 0000000..c3e7594 --- /dev/null +++ b/db/migrate/20230413115757_create_decidim_reminders.decidim.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20211208155453) + +class CreateDecidimReminders < ActiveRecord::Migration[6.0] + def change + create_table :decidim_reminders do |t| + t.belongs_to :decidim_user, index: true, foreign_key: true, null: false + t.belongs_to :decidim_component, index: true, foreign_key: true + t.timestamps + end + end +end diff --git a/db/migrate/20230413115758_create_decidim_reminder_records.decidim.rb b/db/migrate/20230413115758_create_decidim_reminder_records.decidim.rb new file mode 100644 index 0000000..63170c9 --- /dev/null +++ b/db/migrate/20230413115758_create_decidim_reminder_records.decidim.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20211209121025) + +class CreateDecidimReminderRecords < ActiveRecord::Migration[6.0] + def change + create_table :decidim_reminder_records do |t| + t.string :state, :string, index: true, default: "active" + t.belongs_to :decidim_reminder, index: true, foreign_key: true + t.belongs_to :remindable, polymorphic: true, null: false, index: { name: "index_decidim_reminder_records_remindable" } + end + end +end diff --git a/db/migrate/20230413115759_create_decidim_reminder_deliveries.decidim.rb b/db/migrate/20230413115759_create_decidim_reminder_deliveries.decidim.rb new file mode 100644 index 0000000..aae6e2a --- /dev/null +++ b/db/migrate/20230413115759_create_decidim_reminder_deliveries.decidim.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20211209121040) + +class CreateDecidimReminderDeliveries < ActiveRecord::Migration[6.0] + def change + create_table :decidim_reminder_deliveries do |t| + t.belongs_to :decidim_reminder, index: true, foreign_key: true + t.timestamps + end + end +end diff --git a/db/migrate/20230413115760_change_required_description_categories.decidim.rb b/db/migrate/20230413115760_change_required_description_categories.decidim.rb new file mode 100644 index 0000000..65966c9 --- /dev/null +++ b/db/migrate/20230413115760_change_required_description_categories.decidim.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20220118121921) + +class ChangeRequiredDescriptionCategories < ActiveRecord::Migration[6.0] + def change + change_column_null :decidim_categories, :description, true + end +end diff --git a/db/migrate/20230413115761_add_notification_settings_to_users.decidim.rb b/db/migrate/20230413115761_add_notification_settings_to_users.decidim.rb new file mode 100644 index 0000000..f5d061a --- /dev/null +++ b/db/migrate/20230413115761_add_notification_settings_to_users.decidim.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20220127113419) + +class AddNotificationSettingsToUsers < ActiveRecord::Migration[6.0] + def change + add_column :decidim_users, :notification_settings, :jsonb, default: {} + end +end diff --git a/db/migrate/20230413115762_add_notifications_sending_frequency_to_users.decidim.rb b/db/migrate/20230413115762_add_notifications_sending_frequency_to_users.decidim.rb new file mode 100644 index 0000000..02ecfe6 --- /dev/null +++ b/db/migrate/20230413115762_add_notifications_sending_frequency_to_users.decidim.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20220203121137) + +class AddNotificationsSendingFrequencyToUsers < ActiveRecord::Migration[6.0] + def change + add_column :decidim_users, :notifications_sending_frequency, :string, default: "daily", index: true + end +end diff --git a/db/migrate/20230413115763_add_digest_sent_at_to_users.decidim.rb b/db/migrate/20230413115763_add_digest_sent_at_to_users.decidim.rb new file mode 100644 index 0000000..f75a48b --- /dev/null +++ b/db/migrate/20230413115763_add_digest_sent_at_to_users.decidim.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20220215172439) + +class AddDigestSentAtToUsers < ActiveRecord::Migration[6.0] + def change + add_column :decidim_users, :digest_sent_at, :datetime + end +end diff --git a/db/migrate/20230413115764_add_index_to_decidim_users_notifications_sending_frequency.decidim.rb b/db/migrate/20230413115764_add_index_to_decidim_users_notifications_sending_frequency.decidim.rb new file mode 100644 index 0000000..aaa7996 --- /dev/null +++ b/db/migrate/20230413115764_add_index_to_decidim_users_notifications_sending_frequency.decidim.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20220323195258) + +class AddIndexToDecidimUsersNotificationsSendingFrequency < ActiveRecord::Migration[6.0] + def change + add_index :decidim_users, :notifications_sending_frequency + end +end diff --git a/db/migrate/20230413115765_drop_emails_on_notifications_flag_from_user.decidim.rb b/db/migrate/20230413115765_drop_emails_on_notifications_flag_from_user.decidim.rb new file mode 100644 index 0000000..f5048f8 --- /dev/null +++ b/db/migrate/20230413115765_drop_emails_on_notifications_flag_from_user.decidim.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20220427142214) + +class DropEmailsOnNotificationsFlagFromUser < ActiveRecord::Migration[5.1] + class DecidimUser < ApplicationRecord + self.table_name = :decidim_users + end + + def change + # rubocop:disable Rails/SkipsModelValidations + DecidimUser.where(email_on_notification: true).update_all(notifications_sending_frequency: "real_time") + # rubocop:enable Rails/SkipsModelValidations + + remove_column :decidim_users, :email_on_notification + end +end diff --git a/db/migrate/20230413115766_add_previous_passwords_to_users.decidim.rb b/db/migrate/20230413115766_add_previous_passwords_to_users.decidim.rb new file mode 100644 index 0000000..bbd0d9f --- /dev/null +++ b/db/migrate/20230413115766_add_previous_passwords_to_users.decidim.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20220518094535) + +class AddPreviousPasswordsToUsers < ActiveRecord::Migration[6.1] + class User < ApplicationRecord + self.table_name = :decidim_users + end + + def change + add_column :decidim_users, :password_updated_at, :datetime + add_column :decidim_users, :previous_passwords, :string, array: true, default: [] + + reversible do |direction| + direction.up do + # rubocop:disable Rails/SkipsModelValidations + User.update_all("password_updated_at = updated_at") + # rubocop:enable Rails/SkipsModelValidations + end + end + end +end diff --git a/db/migrate/20230413115767_create_decidim_short_links.decidim.rb b/db/migrate/20230413115767_create_decidim_short_links.decidim.rb new file mode 100644 index 0000000..dbdc8a1 --- /dev/null +++ b/db/migrate/20230413115767_create_decidim_short_links.decidim.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true +# This migration comes from decidim (originally 20220524195530) + +class CreateDecidimShortLinks < ActiveRecord::Migration[6.1] + def change + create_table :decidim_short_links do |t| + t.references :decidim_organization, null: false, index: true + t.references :target, polymorphic: true, null: false, index: true + t.string :identifier, limit: 10, null: false + t.string :mounted_engine_name, index: true + t.string :route_name, index: true + t.jsonb :params + + t.timestamps + end + + add_index( + :decidim_short_links, + [:decidim_organization_id, :identifier], + unique: true, + name: "idx_decidim_short_links_organization_id_identifier" + ) + end +end diff --git a/db/migrate/20230413115768_create_decidim_participatory_process_types.decidim_participatory_processes.rb b/db/migrate/20230413115768_create_decidim_participatory_process_types.decidim_participatory_processes.rb new file mode 100644 index 0000000..4b741d5 --- /dev/null +++ b/db/migrate/20230413115768_create_decidim_participatory_process_types.decidim_participatory_processes.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true +# This migration comes from decidim_participatory_processes (originally 20211125202008) + +class CreateDecidimParticipatoryProcessTypes < ActiveRecord::Migration[6.0] + def change + create_table :decidim_participatory_process_types do |t| + t.jsonb :title, null: false + t.references( + :decidim_organization, + foreign_key: true, + index: { name: "index_decidim_process_types_on_decidim_organization_id" } + ) + t.timestamps + end + + add_reference( + :decidim_participatory_processes, + :decidim_participatory_process_type, + foreign_key: true, + index: { name: "index_decidim_processes_on_decidim_process_type_id" } + ) + end +end diff --git a/db/migrate/20230413115769_remove_not_null_on_customize_registration_email.decidim_meetings.rb b/db/migrate/20230413115769_remove_not_null_on_customize_registration_email.decidim_meetings.rb new file mode 100644 index 0000000..b75856c --- /dev/null +++ b/db/migrate/20230413115769_remove_not_null_on_customize_registration_email.decidim_meetings.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +# This migration comes from decidim_meetings (originally 20211105115625) + +class RemoveNotNullOnCustomizeRegistrationEmail < ActiveRecord::Migration[6.0] + def change + change_column_null :decidim_meetings_meetings, :customize_registration_email, true + end +end diff --git a/db/migrate/20230413115770_add_geolocalization_fields_to_projects.decidim_budgets.rb b/db/migrate/20230413115770_add_geolocalization_fields_to_projects.decidim_budgets.rb new file mode 100644 index 0000000..2a7b59f --- /dev/null +++ b/db/migrate/20230413115770_add_geolocalization_fields_to_projects.decidim_budgets.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true +# This migration comes from decidim_budgets (originally 20220428072638) + +class AddGeolocalizationFieldsToProjects < ActiveRecord::Migration[6.1] + def change + add_column :decidim_budgets_projects, :address, :text + add_column :decidim_budgets_projects, :latitude, :float + add_column :decidim_budgets_projects, :longitude, :float + end +end diff --git a/db/migrate/20230413115771_add_title_to_timeline_entries.decidim_accountability.rb b/db/migrate/20230413115771_add_title_to_timeline_entries.decidim_accountability.rb new file mode 100644 index 0000000..d003be8 --- /dev/null +++ b/db/migrate/20230413115771_add_title_to_timeline_entries.decidim_accountability.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +# This migration comes from decidim_accountability (originally 20220331150008) + +class AddTitleToTimelineEntries < ActiveRecord::Migration[6.1] + def change + add_column :decidim_accountability_timeline_entries, :title, :jsonb + end +end diff --git a/db/migrate/20230413115772_move_legacy_description_to_title_of_timeline_entries.decidim_accountability.rb b/db/migrate/20230413115772_move_legacy_description_to_title_of_timeline_entries.decidim_accountability.rb new file mode 100644 index 0000000..ca121c7 --- /dev/null +++ b/db/migrate/20230413115772_move_legacy_description_to_title_of_timeline_entries.decidim_accountability.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true +# This migration comes from decidim_accountability (originally 20220331150155) + +class MoveLegacyDescriptionToTitleOfTimelineEntries < ActiveRecord::Migration[6.1] + class TimelineEntry < ApplicationRecord + self.table_name = :decidim_accountability_timeline_entries + end + + def up + TimelineEntry.find_each do |timeline_entry| + timeline_entry.update!(title: timeline_entry.description, description: nil) + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 7cd2da7..a8cae28 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -2,15 +2,15 @@ # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # -# This file is the source Rails uses to define your schema when running `rails -# db:schema:load`. When creating a new database, `rails db:schema:load` tends to +# This file is the source Rails uses to define your schema when running `bin/rails +# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to # be faster and is potentially less error prone than running all of your # migrations from scratch. Old migrations may fail to apply correctly if those # migrations use external dependencies or application code. # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2023_04_11_043027) do +ActiveRecord::Schema.define(version: 2023_04_13_115772) do # These are extensions that must be enabled in order to support this database enable_extension "ltree" @@ -35,9 +35,16 @@ t.bigint "byte_size", null: false t.string "checksum", null: false t.datetime "created_at", null: false + t.string "service_name", null: false t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true end + create_table "active_storage_variant_records", force: :cascade do |t| + t.bigint "blob_id", null: false + t.string "variation_digest", null: false + t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true + end + create_table "decidim_accountability_results", id: :serial, force: :cascade do |t| t.jsonb "title" t.jsonb "description" @@ -79,6 +86,7 @@ t.integer "decidim_accountability_result_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.jsonb "title" t.index ["decidim_accountability_result_id"], name: "index_decidim_accountability_timeline_entries_on_results_id" t.index ["entry_date"], name: "index_decidim_accountability_timeline_entries_on_entry_date" end @@ -224,7 +232,6 @@ t.date "birthday" t.string "birthplace" t.date "designation_date" - t.string "designation_mode" t.string "position" t.string "position_other" t.date "ceased_date" @@ -376,13 +383,16 @@ t.date "selected_at" t.integer "comments_count", default: 0, null: false t.integer "follows_count", default: 0, null: false + t.text "address" + t.float "latitude" + t.float "longitude" t.index ["decidim_budgets_budget_id"], name: "index_decidim_budgets_projects_on_decidim_budgets_budget_id" t.index ["decidim_scope_id"], name: "index_decidim_budgets_projects_on_decidim_scope_id" end create_table "decidim_categories", id: :serial, force: :cascade do |t| t.jsonb "name", null: false - t.jsonb "description", null: false + t.jsonb "description" t.integer "parent_id" t.integer "decidim_participatory_space_id" t.string "decidim_participatory_space_type" @@ -621,6 +631,8 @@ t.integer "weight" t.jsonb "images", default: {} t.integer "scoped_resource_id" + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false t.index ["decidim_organization_id", "scope_name", "scoped_resource_id", "manifest_name"], name: "idx_decidim_content_blocks_org_id_scope_scope_id_manifest" t.index ["decidim_organization_id"], name: "index_decidim_content_blocks_on_decidim_organization_id" t.index ["manifest_name"], name: "index_decidim_content_blocks_on_manifest_name" @@ -660,6 +672,7 @@ t.string "last_comment_by_type" t.bigint "decidim_scope_id" t.integer "follows_count", default: 0, null: false + t.boolean "comments_enabled", default: true t.index ["closed_at"], name: "index_decidim_debates_debates_on_closed_at" t.index ["decidim_author_id", "decidim_author_type"], name: "index_decidim_debates_debates_on_decidim_author" t.index ["decidim_component_id"], name: "index_decidim_debates_debates_on_decidim_component_id" @@ -668,6 +681,15 @@ t.index ["endorsements_count"], name: "idx_decidim_debates_debates_on_endorsemnts_count" end + create_table "decidim_editor_images", force: :cascade do |t| + t.bigint "decidim_author_id", null: false + t.bigint "decidim_organization_id", null: false + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + t.index ["decidim_author_id"], name: "decidim_editor_images_author" + t.index ["decidim_organization_id"], name: "decidim_editor_images_constraint_organization" + end + create_table "decidim_endorsements", force: :cascade do |t| t.string "resource_type" t.bigint "resource_id" @@ -916,13 +938,18 @@ t.string "registration_url" t.string "salt" t.integer "follows_count", default: 0, null: false - t.boolean "customize_registration_email", default: false, null: false + t.boolean "customize_registration_email", default: false t.jsonb "registration_email_custom_content" t.datetime "published_at" t.string "video_url" t.string "audio_url" t.boolean "closing_visible" - t.boolean "show_embedded_iframe", default: false + t.boolean "comments_enabled", default: true + t.datetime "comments_start_time" + t.datetime "comments_end_time" + t.string "state" + t.integer "iframe_access_level", default: 0 + t.integer "iframe_embed_type", default: 0 t.index ["decidim_author_id", "decidim_author_type"], name: "index_decidim_meetings_meetings_on_author" t.index ["decidim_author_id"], name: "index_decidim_meetings_meetings_on_decidim_author_id" t.index ["decidim_component_id"], name: "index_decidim_meetings_meetings_on_decidim_component_id" @@ -1184,6 +1211,14 @@ t.index ["position"], name: "index_order_by_position_for_steps" end + create_table "decidim_participatory_process_types", force: :cascade do |t| + t.jsonb "title", null: false + t.bigint "decidim_organization_id" + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + t.index ["decidim_organization_id"], name: "index_decidim_process_types_on_decidim_organization_id" + end + create_table "decidim_participatory_process_user_roles", id: :serial, force: :cascade do |t| t.integer "decidim_user_id" t.integer "decidim_participatory_process_id" @@ -1228,10 +1263,12 @@ t.boolean "show_metrics", default: true t.integer "weight", default: 1, null: false t.integer "follows_count", default: 0, null: false + t.bigint "decidim_participatory_process_type_id" t.index ["decidim_area_id"], name: "index_decidim_participatory_processes_on_decidim_area_id" t.index ["decidim_organization_id", "slug"], name: "index_unique_process_slug_and_organization", unique: true t.index ["decidim_organization_id"], name: "index_decidim_processes_on_decidim_organization_id" t.index ["decidim_participatory_process_group_id"], name: "idx_process_on_process_group_id" + t.index ["decidim_participatory_process_type_id"], name: "index_decidim_processes_on_decidim_process_type_id" t.index ["decidim_scope_id"], name: "idx_process_on_scope_id" t.index ["decidim_scope_type_id"], name: "index_decidim_participatory_processes_on_decidim_scope_type_id" end @@ -1403,6 +1440,34 @@ t.index ["valuator_role_type", "valuator_role_id"], name: "decidim_proposals_valuation_assignment_valuator_role" end + create_table "decidim_reminder_deliveries", force: :cascade do |t| + t.bigint "decidim_reminder_id" + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + t.index ["decidim_reminder_id"], name: "index_decidim_reminder_deliveries_on_decidim_reminder_id" + end + + create_table "decidim_reminder_records", force: :cascade do |t| + t.string "state", default: "active" + t.string "string", default: "active" + t.bigint "decidim_reminder_id" + t.string "remindable_type", null: false + t.bigint "remindable_id", null: false + t.index ["decidim_reminder_id"], name: "index_decidim_reminder_records_on_decidim_reminder_id" + t.index ["remindable_type", "remindable_id"], name: "index_decidim_reminder_records_remindable" + t.index ["state"], name: "index_decidim_reminder_records_on_state" + t.index ["string"], name: "index_decidim_reminder_records_on_string" + end + + create_table "decidim_reminders", force: :cascade do |t| + t.bigint "decidim_user_id", null: false + t.bigint "decidim_component_id" + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + t.index ["decidim_component_id"], name: "index_decidim_reminders_on_decidim_component_id" + t.index ["decidim_user_id"], name: "index_decidim_reminders_on_decidim_user_id" + end + create_table "decidim_reports", id: :serial, force: :cascade do |t| t.integer "decidim_moderation_id", null: false t.integer "decidim_user_id", null: false @@ -1496,6 +1561,23 @@ t.index ["token_for_type", "token_for_id"], name: "decidim_share_tokens_token_for" end + create_table "decidim_short_links", force: :cascade do |t| + t.bigint "decidim_organization_id", null: false + t.string "target_type", null: false + t.bigint "target_id", null: false + t.string "identifier", limit: 10, null: false + t.string "mounted_engine_name" + t.string "route_name" + t.jsonb "params" + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + t.index ["decidim_organization_id", "identifier"], name: "idx_decidim_short_links_organization_id_identifier", unique: true + t.index ["decidim_organization_id"], name: "index_decidim_short_links_on_decidim_organization_id" + t.index ["mounted_engine_name"], name: "index_decidim_short_links_on_mounted_engine_name" + t.index ["route_name"], name: "index_decidim_short_links_on_route_name" + t.index ["target_type", "target_id"], name: "index_decidim_short_links_on_target" + end + create_table "decidim_social_crowdfunding_campaigns", force: :cascade do |t| t.bigint "decidim_organization_id" t.jsonb "name" @@ -1659,7 +1741,6 @@ t.boolean "admin", default: false, null: false t.boolean "managed", default: false, null: false t.string "roles", default: [], array: true - t.boolean "email_on_notification", default: false, null: false t.string "nickname", limit: 20, default: "", null: false t.string "personal_url" t.text "about" @@ -1684,6 +1765,11 @@ t.datetime "officialized_at" t.jsonb "officialized_as" t.datetime "admin_terms_accepted_at" + t.jsonb "notification_settings", default: {} + t.string "notifications_sending_frequency", default: "daily" + t.datetime "digest_sent_at" + t.datetime "password_updated_at" + t.string "previous_passwords", default: [], array: true t.index ["confirmation_token"], name: "index_decidim_users_on_confirmation_token", unique: true t.index ["decidim_organization_id"], name: "index_decidim_users_on_decidim_organization_id" t.index ["email", "decidim_organization_id"], name: "index_decidim_users_on_email_and_decidim_organization_id", unique: true, where: "((deleted_at IS NULL) AND (managed = false) AND ((type)::text = 'Decidim::User'::text))" @@ -1693,6 +1779,7 @@ t.index ["invited_by_id", "invited_by_type"], name: "index_decidim_users_on_invited_by_id_and_invited_by_type" t.index ["invited_by_id"], name: "index_decidim_users_on_invited_by_id" t.index ["nickname", "decidim_organization_id"], name: "index_decidim_users_on_nickame_and_decidim_organization_id", unique: true, where: "((deleted_at IS NULL) AND (managed = false))" + t.index ["notifications_sending_frequency"], name: "index_decidim_users_on_notifications_sending_frequency" t.index ["officialized_at"], name: "index_decidim_users_on_officialized_at" t.index ["reset_password_token"], name: "index_decidim_users_on_reset_password_token", unique: true t.index ["unlock_token"], name: "index_decidim_users_on_unlock_token", unique: true @@ -1779,6 +1866,7 @@ end add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" + add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" add_foreign_key "decidim_area_types", "decidim_organizations" add_foreign_key "decidim_areas", "decidim_area_types", column: "area_type_id" add_foreign_key "decidim_areas", "decidim_organizations" @@ -1794,14 +1882,22 @@ add_foreign_key "decidim_budgets_projects", "decidim_budgets_budgets" add_foreign_key "decidim_categorizations", "decidim_categories" add_foreign_key "decidim_debates_debates", "decidim_scopes" + add_foreign_key "decidim_editor_images", "decidim_organizations" + add_foreign_key "decidim_editor_images", "decidim_users", column: "decidim_author_id" add_foreign_key "decidim_identities", "decidim_organizations" add_foreign_key "decidim_newsletters", "decidim_users", column: "author_id" add_foreign_key "decidim_participatory_process_steps", "decidim_participatory_processes" + add_foreign_key "decidim_participatory_process_types", "decidim_organizations" add_foreign_key "decidim_participatory_processes", "decidim_organizations" + add_foreign_key "decidim_participatory_processes", "decidim_participatory_process_types" add_foreign_key "decidim_participatory_processes", "decidim_scope_types" add_foreign_key "decidim_peertube_users", "decidim_users" add_foreign_key "decidim_peertube_videos", "decidim_components" add_foreign_key "decidim_peertube_videos", "decidim_peertube_users" + add_foreign_key "decidim_reminder_deliveries", "decidim_reminders" + add_foreign_key "decidim_reminder_records", "decidim_reminders" + add_foreign_key "decidim_reminders", "decidim_components" + add_foreign_key "decidim_reminders", "decidim_users" add_foreign_key "decidim_scope_types", "decidim_organizations" add_foreign_key "decidim_scopes", "decidim_organizations" add_foreign_key "decidim_scopes", "decidim_scope_types", column: "scope_type_id" diff --git a/decidim-peertube/Gemfile b/decidim-peertube/Gemfile deleted file mode 100644 index 80a1abd..0000000 --- a/decidim-peertube/Gemfile +++ /dev/null @@ -1,37 +0,0 @@ -# frozen_string_literal: true - -source "https://rubygems.org" - -ruby RUBY_VERSION - -DECIDIM_BRANCH = "release/0.25-stable" -DECIDIM_VERSION = { git: "https://github.com/decidim/decidim", branch: DECIDIM_BRANCH }.freeze - -gem "decidim", DECIDIM_VERSION -gem "decidim-decidim_peertube", path: "./" - -gem "bootsnap", "~> 1.4" - -gem "puma", ">= 5.0.0" -gem "uglifier", "~> 4.1" - -gem "faker", "~> 2.14" - -group :development, :test do - gem "byebug", "~> 11.0", platform: :mri - - gem "decidim-dev", DECIDIM_VERSION -end - -group :development do - gem "letter_opener_web", "~> 1.3" - gem "listen", "~> 3.1" - gem "rubocop-faker" - gem "spring", "~> 2.0" - gem "spring-watcher-listen", "~> 2.0" - gem "web-console", "~> 3.5" -end - -group :test do - gem "codecov", require: false -end diff --git a/decidim-peertube/Gemfile.lock b/decidim-peertube/Gemfile.lock deleted file mode 100644 index cae06cf..0000000 --- a/decidim-peertube/Gemfile.lock +++ /dev/null @@ -1,829 +0,0 @@ -GIT - remote: https://github.com/decidim/decidim - revision: 04ca5ebdba87e20577a8ee53f4726e2f73fff798 - branch: release/0.25-stable - specs: - decidim (0.25.2) - decidim-accountability (= 0.25.2) - decidim-admin (= 0.25.2) - decidim-api (= 0.25.2) - decidim-assemblies (= 0.25.2) - decidim-blogs (= 0.25.2) - decidim-budgets (= 0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - decidim-debates (= 0.25.2) - decidim-forms (= 0.25.2) - decidim-generators (= 0.25.2) - decidim-meetings (= 0.25.2) - decidim-pages (= 0.25.2) - decidim-participatory_processes (= 0.25.2) - decidim-proposals (= 0.25.2) - decidim-sortitions (= 0.25.2) - decidim-surveys (= 0.25.2) - decidim-system (= 0.25.2) - decidim-templates (= 0.25.2) - decidim-verifications (= 0.25.2) - decidim-accountability (0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - decidim-admin (0.25.2) - active_link_to (~> 1.0) - decidim-core (= 0.25.2) - devise (~> 4.7) - devise-i18n (~> 1.2) - devise_invitable (~> 2.0) - decidim-api (0.25.2) - graphql (~> 1.12, >= 1.12.3) - rack-cors (~> 1.0) - redcarpet (~> 3.5, >= 3.5.1) - decidim-assemblies (0.25.2) - decidim-core (= 0.25.2) - decidim-blogs (0.25.2) - decidim-admin (= 0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - decidim-budgets (0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - decidim-comments (0.25.2) - decidim-core (= 0.25.2) - redcarpet (~> 3.5, >= 3.5.1) - decidim-core (0.25.2) - active_link_to (~> 1.0) - acts_as_list (~> 0.9) - anchored (~> 1.1) - batch-loader (~> 1.2) - browser (~> 2.7) - carrierwave (~> 2.2.1) - cells-erb (~> 0.1.0) - cells-rails (~> 0.1.3) - charlock_holmes (~> 0.7) - date_validator (~> 0.9.0) - decidim-api (= 0.25.2) - devise (~> 4.7) - devise-i18n (~> 1.2) - diffy (~> 3.3) - doorkeeper (~> 5.1) - doorkeeper-i18n (~> 4.0) - etherpad-lite (~> 0.3) - file_validators (~> 2.1) - fog-local (~> 0.6) - foundation_rails_helper - geocoder (~> 1.5) - hashdiff (>= 0.4.0, < 2.0.0) - invisible_captcha (~> 0.12) - kaminari (~> 1.2, >= 1.2.1) - loofah (~> 2.3.1) - mini_magick (~> 4.9) - mustache (~> 1.1.0) - nobspw (~> 0.6.0) - omniauth (~> 2.0) - omniauth-facebook (~> 5.0) - omniauth-google-oauth2 (~> 1.0) - omniauth-rails_csrf_protection (~> 1.0) - omniauth-twitter (~> 1.4) - paper_trail (~> 10.3) - pg (~> 1.1.4, < 2) - pg_search (~> 2.2) - premailer-rails (~> 1.10) - rack (~> 2.2, >= 2.2.3) - rack-attack (~> 6.0) - rails (~> 6.0.4) - rails-i18n (~> 6.0) - ransack (~> 2.4.1) - rectify (~> 0.13.0) - redis (~> 4.1) - request_store (~> 1.5.0) - rubyXL (~> 3.4) - rubyzip (~> 2.0) - searchlight (~> 4.1) - seven_zip_ruby (~> 1.3) - social-share-button (~> 1.2, >= 1.2.1) - truncato (~> 0.7) - valid_email2 (~> 2.1) - webpacker (= 6.0.0.rc.5) - wisper (~> 2.0) - decidim-debates (0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - decidim-dev (0.25.2) - axe-core-rspec (~> 4.1.0) - byebug (~> 11.0) - capybara (~> 3.24) - db-query-matchers (~> 0.10.0) - decidim (= 0.25.2) - erb_lint (~> 0.0.35) - factory_bot_rails (~> 4.8) - i18n-tasks (~> 0.9.18) - mdl (~> 0.5) - nokogiri (~> 1.11, >= 1.11.4) - puma (~> 5.0) - rails-controller-testing (~> 1.0) - rspec-cells (~> 0.3.4) - rspec-html-matchers (~> 0.9.1) - rspec-rails (~> 4.0) - rspec-retry (~> 0.6.2) - rspec_junit_formatter (~> 0.3.0) - rubocop (~> 0.92.0) - rubocop-rails (~> 2.8) - rubocop-rspec (= 1.43.2) - selenium-webdriver (~> 3.142) - simplecov (~> 0.19.0) - simplecov-cobertura (~> 1.3.1) - system_test_html_screenshots (~> 0.2) - w3c_rspec_validators (~> 0.3.0) - webmock (~> 3.6) - wisper-rspec (~> 1.0) - decidim-forms (0.25.2) - decidim-core (= 0.25.2) - wicked_pdf (~> 2.1) - wkhtmltopdf-binary (~> 0.12) - decidim-generators (0.25.2) - decidim-core (= 0.25.2) - decidim-meetings (0.25.2) - decidim-core (= 0.25.2) - decidim-forms (= 0.25.2) - icalendar (~> 2.5) - decidim-pages (0.25.2) - decidim-core (= 0.25.2) - decidim-participatory_processes (0.25.2) - decidim-core (= 0.25.2) - decidim-proposals (0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - doc2text (~> 0.4.3) - redcarpet (~> 3.5, >= 3.5.1) - decidim-sortitions (0.25.2) - decidim-admin (= 0.25.2) - decidim-comments (= 0.25.2) - decidim-core (= 0.25.2) - decidim-proposals (= 0.25.2) - decidim-surveys (0.25.2) - decidim-core (= 0.25.2) - decidim-forms (= 0.25.2) - decidim-templates (= 0.25.2) - decidim-system (0.25.2) - active_link_to (~> 1.0) - decidim-core (= 0.25.2) - devise (~> 4.7) - devise-i18n (~> 1.2) - devise_invitable (~> 2.0) - decidim-templates (0.25.2) - decidim-core (= 0.25.2) - decidim-forms (= 0.25.2) - decidim-verifications (0.25.2) - decidim-core (= 0.25.2) - -PATH - remote: . - specs: - decidim-decidim_peertube (0.8.0) - decidim-admin (>= 0.25.0, < 0.26) - decidim-core (>= 0.25.0, < 0.26) - -GEM - remote: https://rubygems.org/ - specs: - actioncable (6.0.6.1) - actionpack (= 6.0.6.1) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - actionmailbox (6.0.6.1) - actionpack (= 6.0.6.1) - activejob (= 6.0.6.1) - activerecord (= 6.0.6.1) - activestorage (= 6.0.6.1) - activesupport (= 6.0.6.1) - mail (>= 2.7.1) - actionmailer (6.0.6.1) - actionpack (= 6.0.6.1) - actionview (= 6.0.6.1) - activejob (= 6.0.6.1) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (6.0.6.1) - actionview (= 6.0.6.1) - activesupport (= 6.0.6.1) - rack (~> 2.0, >= 2.0.8) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.0.6.1) - actionpack (= 6.0.6.1) - activerecord (= 6.0.6.1) - activestorage (= 6.0.6.1) - activesupport (= 6.0.6.1) - nokogiri (>= 1.8.5) - actionview (6.0.6.1) - activesupport (= 6.0.6.1) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - active_link_to (1.0.5) - actionpack - addressable - activejob (6.0.6.1) - activesupport (= 6.0.6.1) - globalid (>= 0.3.6) - activemodel (6.0.6.1) - activesupport (= 6.0.6.1) - activerecord (6.0.6.1) - activemodel (= 6.0.6.1) - activesupport (= 6.0.6.1) - activestorage (6.0.6.1) - actionpack (= 6.0.6.1) - activejob (= 6.0.6.1) - activerecord (= 6.0.6.1) - marcel (~> 1.0) - activesupport (6.0.6.1) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - zeitwerk (~> 2.2, >= 2.2.2) - acts_as_list (0.9.19) - activerecord (>= 3.0) - addressable (2.8.4) - public_suffix (>= 2.0.2, < 6.0) - anchored (1.1.0) - ast (2.4.2) - axe-core-api (4.6.0) - dumb_delegator - virtus - axe-core-rspec (4.1.0) - axe-core-api - dumb_delegator - virtus - axiom-types (0.1.1) - descendants_tracker (~> 0.0.4) - ice_nine (~> 0.11.0) - thread_safe (~> 0.3, >= 0.3.1) - batch-loader (1.5.0) - bcrypt (3.1.18) - better_html (1.0.16) - actionview (>= 4.0) - activesupport (>= 4.0) - ast (~> 2.0) - erubi (~> 1.4) - html_tokenizer (~> 0.0.6) - parser (>= 2.4) - smart_properties - bindex (0.8.1) - bootsnap (1.9.3) - msgpack (~> 1.0) - browser (2.7.1) - builder (3.2.4) - byebug (11.1.3) - capybara (3.39.0) - addressable - matrix - mini_mime (>= 0.1.3) - nokogiri (~> 1.8) - rack (>= 1.6.0) - rack-test (>= 0.6.3) - regexp_parser (>= 1.5, < 3.0) - xpath (~> 3.2) - carrierwave (2.2.3) - activemodel (>= 5.0.0) - activesupport (>= 5.0.0) - addressable (~> 2.6) - image_processing (~> 1.1) - marcel (~> 1.0.0) - mini_mime (>= 0.1.3) - ssrf_filter (~> 1.0) - cells (4.1.7) - declarative-builder (< 0.2.0) - declarative-option (< 0.2.0) - tilt (>= 1.4, < 3) - uber (< 0.2.0) - cells-erb (0.1.0) - cells (~> 4.0) - erbse (>= 0.1.1) - cells-rails (0.1.5) - actionpack (>= 5.0) - cells (>= 4.1.6, < 5.0.0) - charlock_holmes (0.7.7) - chef-utils (18.2.7) - concurrent-ruby - childprocess (3.0.0) - codecov (0.6.0) - simplecov (>= 0.15, < 0.22) - coercible (1.0.0) - descendants_tracker (~> 0.0.1) - coffee-rails (5.0.0) - coffee-script (>= 2.2.0) - railties (>= 5.2.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.2.2) - crack (0.4.5) - rexml - crass (1.0.6) - css_parser (1.14.0) - addressable - date (3.3.3) - date_validator (0.9.0) - activemodel - activesupport - db-query-matchers (0.10.0) - activesupport (>= 4.0, < 7) - rspec (~> 3.0) - declarative-builder (0.1.0) - declarative-option (< 0.2.0) - declarative-option (0.1.0) - descendants_tracker (0.0.4) - thread_safe (~> 0.3, >= 0.3.1) - devise (4.9.2) - bcrypt (~> 3.0) - orm_adapter (~> 0.1) - railties (>= 4.1.0) - responders - warden (~> 1.2.3) - devise-i18n (1.11.0) - devise (>= 4.9.0) - devise_invitable (2.0.7) - actionmailer (>= 5.0) - devise (>= 4.6) - diff-lcs (1.5.0) - diffy (3.4.2) - doc2text (0.4.5) - nokogiri (>= 1.13.2, < 1.14.0) - rubyzip (~> 2.3.0) - docile (1.4.0) - domain_name (0.5.20190701) - unf (>= 0.0.5, < 1.0.0) - doorkeeper (5.6.6) - railties (>= 5) - doorkeeper-i18n (4.0.1) - dumb_delegator (1.0.0) - equalizer (0.0.11) - erb_lint (0.0.37) - activesupport - better_html (~> 1.0.7) - html_tokenizer - parser (>= 2.7.1.4) - rainbow - rubocop - smart_properties - erbse (0.1.4) - temple - erubi (1.12.0) - etherpad-lite (0.3.1) - rest-client (>= 1.6) - excon (0.99.0) - execjs (2.8.1) - factory_bot (4.11.1) - activesupport (>= 3.0.0) - factory_bot_rails (4.11.1) - factory_bot (~> 4.11.1) - railties (>= 3.0.0) - faker (2.19.0) - i18n (>= 1.6, < 2) - faraday (2.7.4) - faraday-net_http (>= 2.0, < 3.1) - ruby2_keywords (>= 0.0.4) - faraday-net_http (3.0.2) - ffi (1.15.5) - file_validators (2.3.0) - activemodel (>= 3.2) - mime-types (>= 1.0) - fog-core (2.3.0) - builder - excon (~> 0.71) - formatador (>= 0.2, < 2.0) - mime-types - fog-local (0.8.0) - fog-core (>= 1.27, < 3.0) - formatador (1.1.0) - foundation_rails_helper (4.0.1) - actionpack (>= 4.1, < 7.1) - activemodel (>= 4.1, < 7.1) - activesupport (>= 4.1, < 7.1) - railties (>= 4.1, < 7.1) - geocoder (1.8.1) - globalid (1.1.0) - activesupport (>= 5.0) - graphql (1.13.19) - hashdiff (1.0.1) - hashie (5.0.0) - highline (2.1.0) - html_tokenizer (0.0.7) - htmlentities (4.3.4) - http-accept (1.7.0) - http-cookie (1.0.5) - domain_name (~> 0.5) - i18n (1.12.0) - concurrent-ruby (~> 1.0) - i18n-tasks (0.9.37) - activesupport (>= 4.0.2) - ast (>= 2.1.0) - erubi - highline (>= 2.0.0) - i18n - parser (>= 2.2.3.0) - rails-i18n - rainbow (>= 2.2.2, < 4.0) - terminal-table (>= 1.5.1) - icalendar (2.8.0) - ice_cube (~> 0.16) - ice_cube (0.16.4) - ice_nine (0.11.2) - image_processing (1.12.2) - mini_magick (>= 4.9.5, < 5) - ruby-vips (>= 2.0.17, < 3) - invisible_captcha (0.13.0) - rails (>= 3.2.0) - json (2.6.3) - jwt (2.7.0) - kaminari (1.2.2) - activesupport (>= 4.1.0) - kaminari-actionview (= 1.2.2) - kaminari-activerecord (= 1.2.2) - kaminari-core (= 1.2.2) - kaminari-actionview (1.2.2) - actionview - kaminari-core (= 1.2.2) - kaminari-activerecord (1.2.2) - activerecord - kaminari-core (= 1.2.2) - kaminari-core (1.2.2) - kramdown (2.4.0) - rexml - kramdown-parser-gfm (1.1.0) - kramdown (~> 2.0) - launchy (2.5.0) - addressable (~> 2.7) - letter_opener (1.7.0) - launchy (~> 2.2) - letter_opener_web (1.4.1) - actionmailer (>= 3.2) - letter_opener (~> 1.0) - railties (>= 3.2) - listen (3.7.0) - rb-fsevent (~> 0.10, >= 0.10.3) - rb-inotify (~> 0.9, >= 0.9.10) - loofah (2.3.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.8.1) - mini_mime (>= 0.1.1) - net-imap - net-pop - net-smtp - marcel (1.0.2) - matrix (0.4.2) - mdl (0.12.0) - kramdown (~> 2.3) - kramdown-parser-gfm (~> 1.1) - mixlib-cli (~> 2.1, >= 2.1.1) - mixlib-config (>= 2.2.1, < 4) - mixlib-shellout - method_source (1.0.0) - mime-types (3.4.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2023.0218.1) - mini_magick (4.12.0) - mini_mime (1.1.2) - minitest (5.18.0) - mixlib-cli (2.1.8) - mixlib-config (3.0.27) - tomlrb - mixlib-shellout (3.2.7) - chef-utils - msgpack (1.4.2) - multi_xml (0.6.0) - mustache (1.1.1) - net-imap (0.3.4) - date - net-protocol - net-pop (0.1.2) - net-protocol - net-protocol (0.2.1) - timeout - net-smtp (0.3.3) - net-protocol - netrc (0.11.0) - nio4r (2.5.9) - nobspw (0.6.2) - nokogiri (1.13.10-arm64-darwin) - racc (~> 1.4) - nokogiri (1.13.10-x86_64-linux) - racc (~> 1.4) - oauth (1.1.0) - oauth-tty (~> 1.0, >= 1.0.1) - snaky_hash (~> 2.0) - version_gem (~> 1.1) - oauth-tty (1.0.5) - version_gem (~> 1.1, >= 1.1.1) - oauth2 (2.0.9) - faraday (>= 0.17.3, < 3.0) - jwt (>= 1.0, < 3.0) - multi_xml (~> 0.5) - rack (>= 1.2, < 4) - snaky_hash (~> 2.0) - version_gem (~> 1.1) - omniauth (2.1.1) - hashie (>= 3.4.6) - rack (>= 2.2.3) - rack-protection - omniauth-facebook (5.0.0) - omniauth-oauth2 (~> 1.2) - omniauth-google-oauth2 (1.1.1) - jwt (>= 2.0) - oauth2 (~> 2.0.6) - omniauth (~> 2.0) - omniauth-oauth2 (~> 1.8.0) - omniauth-oauth (1.2.0) - oauth - omniauth (>= 1.0, < 3) - omniauth-oauth2 (1.8.0) - oauth2 (>= 1.4, < 3) - omniauth (~> 2.0) - omniauth-rails_csrf_protection (1.0.1) - actionpack (>= 4.2) - omniauth (~> 2.0) - omniauth-twitter (1.4.0) - omniauth-oauth (~> 1.1) - rack - orm_adapter (0.5.0) - paper_trail (10.3.1) - activerecord (>= 4.2) - request_store (~> 1.1) - parallel (1.21.0) - parser (3.0.3.0) - ast (~> 2.4.1) - pg (1.1.4) - pg_search (2.3.6) - activerecord (>= 5.2) - activesupport (>= 5.2) - premailer (1.21.0) - addressable - css_parser (>= 1.12.0) - htmlentities (>= 4.0.0) - premailer-rails (1.12.0) - actionmailer (>= 3) - net-smtp - premailer (~> 1.7, >= 1.7.9) - public_suffix (5.0.1) - puma (5.5.2) - nio4r (~> 2.0) - racc (1.6.2) - rack (2.2.6.4) - rack-attack (6.6.1) - rack (>= 1.0, < 3) - rack-cors (1.1.1) - rack (>= 2.0.0) - rack-protection (3.0.5) - rack - rack-proxy (0.7.6) - rack - rack-test (2.1.0) - rack (>= 1.3) - rails (6.0.6.1) - actioncable (= 6.0.6.1) - actionmailbox (= 6.0.6.1) - actionmailer (= 6.0.6.1) - actionpack (= 6.0.6.1) - actiontext (= 6.0.6.1) - actionview (= 6.0.6.1) - activejob (= 6.0.6.1) - activemodel (= 6.0.6.1) - activerecord (= 6.0.6.1) - activestorage (= 6.0.6.1) - activesupport (= 6.0.6.1) - bundler (>= 1.3.0) - railties (= 6.0.6.1) - sprockets-rails (>= 2.0.0) - rails-controller-testing (1.0.5) - actionpack (>= 5.0.1.rc1) - actionview (>= 5.0.1.rc1) - activesupport (>= 5.0.1.rc1) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.4.3) - loofah (~> 2.3) - rails-i18n (6.0.0) - i18n (>= 0.7, < 2) - railties (>= 6.0.0, < 7) - railties (6.0.6.1) - actionpack (= 6.0.6.1) - activesupport (= 6.0.6.1) - method_source - rake (>= 0.8.7) - thor (>= 0.20.3, < 2.0) - rainbow (3.0.0) - rake (13.0.6) - ransack (2.4.2) - activerecord (>= 5.2.4) - activesupport (>= 5.2.4) - i18n - rb-fsevent (0.11.2) - rb-inotify (0.10.1) - ffi (~> 1.0) - rectify (0.13.0) - activemodel (>= 4.1.0) - activerecord (>= 4.1.0) - activesupport (>= 4.1.0) - virtus (~> 1.0.5) - wisper (>= 1.6.1) - redcarpet (3.6.0) - redis (4.8.1) - regexp_parser (2.1.1) - request_store (1.5.1) - rack (>= 1.4) - responders (3.1.0) - actionpack (>= 5.2) - railties (>= 5.2) - rest-client (2.1.0) - http-accept (>= 1.7.0, < 2.0) - http-cookie (>= 1.0.2, < 2.0) - mime-types (>= 1.16, < 4.0) - netrc (~> 0.8) - rexml (3.2.5) - rspec (3.12.0) - rspec-core (~> 3.12.0) - rspec-expectations (~> 3.12.0) - rspec-mocks (~> 3.12.0) - rspec-cells (0.3.8) - cells (>= 4.0.0, < 6.0.0) - rspec-rails (>= 3.0.0, < 6.1.0) - rspec-core (3.12.1) - rspec-support (~> 3.12.0) - rspec-expectations (3.12.2) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-html-matchers (0.9.4) - nokogiri (~> 1) - rspec (>= 3.0.0.a, < 4) - rspec-mocks (3.12.5) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-rails (4.1.2) - actionpack (>= 4.2) - activesupport (>= 4.2) - railties (>= 4.2) - rspec-core (~> 3.10) - rspec-expectations (~> 3.10) - rspec-mocks (~> 3.10) - rspec-support (~> 3.10) - rspec-retry (0.6.2) - rspec-core (> 3.3) - rspec-support (3.12.0) - rspec_junit_formatter (0.3.0) - rspec-core (>= 2, < 4, != 2.12.0) - rubocop (0.92.0) - parallel (~> 1.10) - parser (>= 2.7.1.5) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.7) - rexml - rubocop-ast (>= 0.5.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.13.0) - parser (>= 3.0.1.1) - rubocop-faker (1.1.0) - faker (>= 2.12.0) - rubocop (>= 0.82.0) - rubocop-rails (2.9.1) - activesupport (>= 4.2.0) - rack (>= 1.1) - rubocop (>= 0.90.0, < 2.0) - rubocop-rspec (1.43.2) - rubocop (~> 0.87) - ruby-progressbar (1.11.0) - ruby-vips (2.1.4) - ffi (~> 1.12) - ruby2_keywords (0.0.5) - rubyXL (3.4.25) - nokogiri (>= 1.10.8) - rubyzip (>= 1.3.0) - rubyzip (2.3.2) - searchlight (4.1.0) - selenium-webdriver (3.142.7) - childprocess (>= 0.5, < 4.0) - rubyzip (>= 1.2.2) - semantic_range (3.0.0) - seven_zip_ruby (1.3.0) - simplecov (0.19.1) - docile (~> 1.1) - simplecov-html (~> 0.11) - simplecov-cobertura (1.3.1) - simplecov (~> 0.8) - simplecov-html (0.12.3) - smart_properties (1.17.0) - snaky_hash (2.0.1) - hashie - version_gem (~> 1.1, >= 1.1.1) - social-share-button (1.2.4) - coffee-rails - spring (2.1.1) - spring-watcher-listen (2.0.1) - listen (>= 2.7, < 4.0) - spring (>= 1.2, < 3.0) - sprockets (4.2.0) - concurrent-ruby (~> 1.0) - rack (>= 2.2.4, < 4) - sprockets-rails (3.4.2) - actionpack (>= 5.2) - activesupport (>= 5.2) - sprockets (>= 3.0.0) - ssrf_filter (1.1.1) - system_test_html_screenshots (0.2.0) - actionpack (>= 5.2, < 6.1.a) - temple (0.10.0) - terminal-table (3.0.2) - unicode-display_width (>= 1.1.1, < 3) - thor (1.2.1) - thread_safe (0.3.6) - tilt (2.1.0) - timeout (0.3.2) - tomlrb (2.0.3) - truncato (0.7.12) - htmlentities (~> 4.3.1) - nokogiri (>= 1.7.0, <= 2.0) - tzinfo (1.2.11) - thread_safe (~> 0.1) - uber (0.1.0) - uglifier (4.2.0) - execjs (>= 0.3.0, < 3) - unf (0.1.4) - unf_ext - unf_ext (0.0.8.2) - unicode-display_width (1.8.0) - valid_email2 (2.3.1) - activemodel (>= 3.2) - mail (~> 2.5) - version_gem (1.1.2) - virtus (1.0.5) - axiom-types (~> 0.1) - coercible (~> 1.0) - descendants_tracker (~> 0.0, >= 0.0.3) - equalizer (~> 0.0, >= 0.0.9) - w3c_rspec_validators (0.3.0) - rails - rspec - w3c_validators - w3c_validators (1.3.7) - json (>= 1.8) - nokogiri (~> 1.6) - rexml (~> 3.2) - warden (1.2.9) - rack (>= 2.0.9) - web-console (3.7.0) - actionview (>= 5.0) - activemodel (>= 5.0) - bindex (>= 0.4.0) - railties (>= 5.0) - webmock (3.18.1) - addressable (>= 2.8.0) - crack (>= 0.3.2) - hashdiff (>= 0.4.0, < 2.0.0) - webpacker (6.0.0.rc.5) - activesupport (>= 5.2) - rack-proxy (>= 0.6.1) - railties (>= 5.2) - semantic_range (>= 2.3.0) - websocket-driver (0.7.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) - wicked_pdf (2.6.3) - activesupport - wisper (2.0.1) - wisper-rspec (1.1.0) - wkhtmltopdf-binary (0.12.6.6) - xpath (3.2.0) - nokogiri (~> 1.8) - zeitwerk (2.6.7) - -PLATFORMS - arm64-darwin-21 - x86_64-linux - -DEPENDENCIES - bootsnap (~> 1.4) - byebug (~> 11.0) - codecov - decidim! - decidim-decidim_peertube! - decidim-dev! - faker (~> 2.14) - letter_opener_web (~> 1.3) - listen (~> 3.1) - puma (>= 5.0.0) - rubocop-faker - spring (~> 2.0) - spring-watcher-listen (~> 2.0) - uglifier (~> 4.1) - web-console (~> 3.5) - -RUBY VERSION - ruby 2.7.5p203 - -BUNDLED WITH - 2.3.5 diff --git a/decidim-peertube/LICENSE-AGPLv3.txt b/decidim-peertube/LICENSE-AGPLv3.txt deleted file mode 100644 index dbbe355..0000000 --- a/decidim-peertube/LICENSE-AGPLv3.txt +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/decidim-peertube/Rakefile b/decidim-peertube/Rakefile deleted file mode 100644 index a632463..0000000 --- a/decidim-peertube/Rakefile +++ /dev/null @@ -1,41 +0,0 @@ -# frozen_string_literal: true - -require "decidim/dev/common_rake" -require "fileutils" - -def install_module(path) - Dir.chdir(path) do - system("bundle exec rake decidim_decidim_peertube:install:migrations") - system("bundle exec rake db:migrate") - end -end - -def seed_db(path) - Dir.chdir(path) do - system("bundle exec rake db:seed") - end -end - -desc "Generates a dummy app for testing" -task test_app: "decidim:generate_external_test_app" do - ENV["RAILS_ENV"] = "test" - install_module("spec/decidim_dummy_app") -end - -desc "Generates a development app." -task :development_app do - Bundler.with_original_env do - generate_decidim_app( - "development_app", - "--app_name", - "#{base_app_name}_development_app", - "--path", - "..", - "--recreate_db", - "--demo" - ) - end - - install_module("development_app") - seed_db("development_app") -end diff --git a/decidim-peertube/app/commands/decidim/decidim_peertube/authenticate.rb b/decidim-peertube/app/commands/decidim/decidim_peertube/authenticate.rb deleted file mode 100644 index 20bf991..0000000 --- a/decidim-peertube/app/commands/decidim/decidim_peertube/authenticate.rb +++ /dev/null @@ -1,63 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - # A command with the business logic for linking a Peertube account with a decidim user - class Authenticate < Rectify::Command - # Public: Initializes the command. - # - # form - A form object with the params. - # current_user - The current user. - def initialize(form, current_user) - @form = form - @current_user = current_user - end - - # Executes the command. Broadcasts these events: - # - # - :ok when everything is valid, together with the follow. - # - :invalid if the form wasn't valid and we couldn't proceed. - # - # Returns nothing. - def call - return broadcast(:invalid) if form.invalid? - - authenticate! - update_user! - - broadcast(:ok) - end - - private - - attr_reader :form, :current_user, :peertube_user - - def authenticate! - authentication_request = Decidim::DecidimPeertube::Api::AuthenticationRequest.new(username: form.username, password: form.password) - - @peertube_user = Decidim::DecidimPeertube::PeertubeUser.find_or_create_by(user: current_user) - - @peertube_user.update!( - peertube_username: form.username, - access_token: authentication_request.response["access_token"], - access_token_expires_at: Time.zone.now + authentication_request.response["expires_in"].to_i - ) - end - - def update_user! - user_info_request = Decidim::DecidimPeertube::Api::GetUserInfoRequest.new(token: @peertube_user.access_token) - - @peertube_user.update!( - peertube_uid: user_info_request.response["id"], - peertube_account_id: user_info_request.response["account"]["id"], - peertube_username: user_info_request.response["username"], - peertube_role: user_info_request.response["role"], - peertube_role_label: user_info_request.response["roleLabel"], - account: user_info_request.response["account"], - video_channels: user_info_request.response["videoChannels"], - data: user_info_request.response - ) - end - end - end -end diff --git a/decidim-peertube/app/commands/decidim/decidim_peertube/create_live_video.rb b/decidim-peertube/app/commands/decidim/decidim_peertube/create_live_video.rb deleted file mode 100644 index 1fb1c67..0000000 --- a/decidim-peertube/app/commands/decidim/decidim_peertube/create_live_video.rb +++ /dev/null @@ -1,83 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - # A command with the business logic for creting a live video in Peertube - class CreateLiveVideo < Rectify::Command - # Public: Initializes the command. - # - # form - A form object with the params. - # current_peertube_user - The peertube_user associated with the current Decidim user. - # current_component - The current component. - def initialize(form, current_peertube_user, current_component) - @form = form - @current_peertube_user = current_peertube_user - @current_component = current_component - end - - # Executes the command. Broadcasts these events: - # - # - :ok when everything is valid, together with the follow. - # - :invalid if the form wasn't valid and we couldn't proceed. - # - # Returns nothing. - def call - return broadcast(:invalid) if form.invalid? - - create_live_video! - update_live_video! - - broadcast(:ok) - end - - private - - attr_reader :form, :current_peertube_user, :current_component, :peertube_video - - def create_live_video! - params = { - channel_id: form.channel_id, - video_name: form.video_name, - video_description: form.video_description, - permanent_live: form.permanent_live, - privacy: form.privacy, - comments_enabled: form.comments_enabled, - downloads_enabled: form.downloads_enabled - } - - create_live_video_request = Decidim::DecidimPeertube::Api::CreateLiveVideoRequest.new( - token: current_peertube_user.access_token, - params: params - ) - - # TODO: handle possible error if response["video"].blank? - uuid = create_live_video_request.response["video"]["uuid"] - - @peertube_video = PeertubeVideo.create!( - peertube_user: current_peertube_user, - component: current_component, - peertube_video_id: uuid, - video_url: Decidim::DecidimPeertube.url("videos/watch/#{uuid}"), - data: params - ) - - current_component.update!(settings: { title: form.video_name, video_url: @peertube_video.video_url }) - end - - def update_live_video! - live_video_info_request = Decidim::DecidimPeertube::Api::GetLiveVideoInfoRequest.new( - token: current_peertube_user.access_token, - video_id: peertube_video.peertube_video_id - ) - - # TODO: handle possible error if response["rtmpUrl"].blank? - rtmp_url = [ - live_video_info_request.response["rtmpUrl"], - live_video_info_request.response["streamKey"] - ].join("/") - - @peertube_video.update!(rtmp_url: rtmp_url) - end - end - end -end diff --git a/decidim-peertube/app/commands/decidim/decidim_peertube/destroy_video.rb b/decidim-peertube/app/commands/decidim/decidim_peertube/destroy_video.rb deleted file mode 100644 index dcf079f..0000000 --- a/decidim-peertube/app/commands/decidim/decidim_peertube/destroy_video.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - # A command with all the business logic when destroying a video - class DestroyVideo < Rectify::Command - def initialize(video, peertube_user) - @video = video - @peertube_user = peertube_user - end - - # Executes the command. Broadcasts these events: - # - # - :ok when everything is valid. - # - :invalid if the form wasn't valid and we couldn't proceed. - # - # Returns nothing. - def call - destroy_video! - broadcast(:ok) - end - - private - - def destroy_video! - Decidim.traceability.perform_action!( - :delete, - @video, - @peertube_user.user - ) do - @video.destroy! - end - - Decidim::DecidimPeertube::Api::DeleteVideoRequest.new(token: @peertube_user.access_token, id: @video.peertube_video_id) - end - end - end -end diff --git a/decidim-peertube/app/commands/decidim/decidim_peertube/select_video.rb b/decidim-peertube/app/commands/decidim/decidim_peertube/select_video.rb deleted file mode 100644 index e873e07..0000000 --- a/decidim-peertube/app/commands/decidim/decidim_peertube/select_video.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - # A command with all the business logic when selecting a video for a component - class SelectVideo < Rectify::Command - # Public: Initializes the command. - # - # video - The peertube_video. - def initialize(video) - @video = video - end - - # Executes the command. Broadcasts these events: - # - # - :ok when everything is valid. - # - # Returns nothing. - def call - broadcast(:ok) if select_video! - end - - private - - def select_video! - current_component.update!(settings: { video_url: @video.video_url, title: @video.data["video_name"] }) - end - end - end -end diff --git a/decidim-peertube/app/controllers/concerns/decidim/decidim_peertube/has_peertube_session.rb b/decidim-peertube/app/controllers/concerns/decidim/decidim_peertube/has_peertube_session.rb deleted file mode 100644 index f73b3a9..0000000 --- a/decidim-peertube/app/controllers/concerns/decidim/decidim_peertube/has_peertube_session.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -require "active_support/concern" - -module Decidim - module DecidimPeertube - module HasPeertubeSession - extend ActiveSupport::Concern - - included do - helper_method :current_peertube_user, :current_peertube_user_valid?, :peertube_user_channels - - private - - def current_peertube_user_valid? - current_peertube_user&.access_token_valid? - end - - def current_peertube_user - Decidim::DecidimPeertube::PeertubeUser.find_by(user: current_user) - end - - def check_peertube_session - redirect_to new_peertube_session_path unless current_peertube_user_valid? - end - - def peertube_user_channels - @peertube_user_channels ||= - current_peertube_user.video_channels || - Decidim::DecidimPeertube::Api::ListUserChannelsRequest.new(username: current_peertube_user.peertube_username).response["data"] - end - end - end - end -end diff --git a/decidim-peertube/app/controllers/decidim/decidim_peertube/admin/peertube_sessions_controller.rb b/decidim-peertube/app/controllers/decidim/decidim_peertube/admin/peertube_sessions_controller.rb deleted file mode 100644 index 2ff44fd..0000000 --- a/decidim-peertube/app/controllers/decidim/decidim_peertube/admin/peertube_sessions_controller.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - module Admin - class PeertubeSessionsController < Decidim::Admin::Components::BaseController - include HasPeertubeSession - - def new - # enforce_permission_to :create, :peertube_session - - @form = Decidim::DecidimPeertube::PeertubeSessionForm.new - end - - def create - # enforce_permission_to :create, :peertube_session - - @form = form(Decidim::DecidimPeertube::PeertubeSessionForm).from_params(params) - - Decidim::DecidimPeertube::Authenticate.call(@form, current_user) do - on(:ok) do - flash[:notice] = I18n.t("peertube_sessions.create.success", scope: "decidim.decidim_peertube.admin") - redirect_to root_path - end - - on(:invalid) do - flash.now[:alert] = I18n.t("peertube_sessions.create.invalid", scope: "decidim.decidim_peertube.admin") - render action: "new" - end - end - end - - def destroy - # enforce_permission_to :destroy, :peertube_session - - current_peertube_user.destroy! - - flash.now[:notice] = I18n.t("peertube_sessions.destroy.success", scope: "decidim.decidim_peertube.admin") - - redirect_to root_path - end - end - end - end -end diff --git a/decidim-peertube/app/controllers/decidim/decidim_peertube/admin/peertube_videos_controller.rb b/decidim-peertube/app/controllers/decidim/decidim_peertube/admin/peertube_videos_controller.rb deleted file mode 100644 index c1370a2..0000000 --- a/decidim-peertube/app/controllers/decidim/decidim_peertube/admin/peertube_videos_controller.rb +++ /dev/null @@ -1,79 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - module Admin - class PeertubeVideosController < Decidim::Admin::Components::BaseController - include HasPeertubeSession - helper PeertubeHelper - - helper_method :peertube_videos - - before_action :check_peertube_session, only: [:new, :create] - - def show - # enforce_permission_to :show, :peertube_video - end - - def edit - # enforce_permission_to :update, :peertube_video - end - - def new - # enforce_permission_to :create, :peertube_video - - @form = Decidim::DecidimPeertube::PeertubeVideoForm.new - end - - def create - # enforce_permission_to :create, :peertube_video - @form = form(Decidim::DecidimPeertube::PeertubeVideoForm).from_params(params) - - Decidim::DecidimPeertube::CreateLiveVideo.call(@form, current_peertube_user, current_component) do - on(:ok) do - flash[:notice] = I18n.t("peertube_videos.create.success", scope: "decidim.decidim_peertube.admin") - redirect_to root_path # change to edit_component_path - end - - on(:invalid) do - flash.now[:alert] = I18n.t("peertube_videos.create.invalid", scope: "decidim.decidim_peertube.admin") - render action: "new" - end - end - end - - def destroy - # enforce_permission_to :delete, :peertube_video - - Decidim::DecidimPeertube::DestroyVideo.call(peertube_video, current_peertube_user) do - on(:ok) do - flash[:notice] = I18n.t("peertube_videos.destroy.success", scope: "decidim.decidim_peertube.admin") - redirect_to root_path - end - end - end - - def select - # enforce_permission_to :update, :peertube_video - - Decidim::DecidimPeertube::SelectVideo.call(peertube_video) do - on(:ok) do - flash[:notice] = I18n.t("peertube_videos.select.success", scope: "decidim.decidim_peertube.admin") - redirect_to root_path - end - end - end - - private - - def peertube_videos - @peertube_videos ||= Decidim::DecidimPeertube::PeertubeVideo.where(component: current_component) - end - - def peertube_video - @peertube_video ||= Decidim::DecidimPeertube::PeertubeVideo.find_by(id: params[:id]) - end - end - end - end -end diff --git a/decidim-peertube/app/controllers/decidim/decidim_peertube/peertube_videos_controller.rb b/decidim-peertube/app/controllers/decidim/decidim_peertube/peertube_videos_controller.rb deleted file mode 100644 index ec51f4b..0000000 --- a/decidim-peertube/app/controllers/decidim/decidim_peertube/peertube_videos_controller.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - class PeertubeVideosController < Decidim::Components::BaseController - helper PeertubeHelper - - def show; end - end - end -end diff --git a/decidim-peertube/app/forms/decidim/decidim_peertube/peertube_session_form.rb b/decidim-peertube/app/forms/decidim/decidim_peertube/peertube_session_form.rb deleted file mode 100644 index 0614e2d..0000000 --- a/decidim-peertube/app/forms/decidim/decidim_peertube/peertube_session_form.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - class PeertubeSessionForm < Decidim::Form - attribute :username, String - attribute :password, String - - validates :username, :password, presence: true - end - end -end diff --git a/decidim-peertube/app/forms/decidim/decidim_peertube/peertube_video_form.rb b/decidim-peertube/app/forms/decidim/decidim_peertube/peertube_video_form.rb deleted file mode 100644 index a5d0125..0000000 --- a/decidim-peertube/app/forms/decidim/decidim_peertube/peertube_video_form.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - # Visit Peertube docs for further reference https://docs.joinpeertube.org/api-rest-reference.html#operation/addLive - class PeertubeVideoForm < Decidim::Form - include Decidim::HasUploadValidations - - attribute :channel_id, String - attribute :video_name, String - attribute :video_description, String - attribute :privacy, Integer - - attribute :permanent_live, Boolean - attribute :comments_enabled, Boolean - attribute :downloads_enabled, Boolean - - # FUTURE attribute :tags, Array[String] - - validates :channel_id, :video_name, :video_description, :privacy, presence: true - validates :video_name, length: { in: 3..120 } - validates :privacy, numericality: { only_integer: true, in: [1..2] } # 1: Public, 2: Unlisted - - # FUTURE - # validates_upload :preview_file - # mount_uploader :preview_file, Decidim::ImageUploader - - # FUTURE - # validates_upload :thumbnail_file - # mount_uploader :thumbnail_file, Decidim::ImageUploader - end - end -end diff --git a/decidim-peertube/app/helpers/decidim/decidim_peertube/peertube_helper.rb b/decidim-peertube/app/helpers/decidim/decidim_peertube/peertube_helper.rb deleted file mode 100644 index 6d73476..0000000 --- a/decidim-peertube/app/helpers/decidim/decidim_peertube/peertube_helper.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - module PeertubeHelper - def edit_component_path - Decidim::EngineRouter.admin_proxy(current_component.participatory_space).edit_component_path(current_component.id) - end - - def peertube_embed_url - url = current_component.settings.video_url - url.match?("watch") ? url.gsub("watch", "embed") : url.gsub("/w/", "/videos/embed/") - end - end - end -end diff --git a/decidim-peertube/app/models/decidim/decidim_peertube/application_record.rb b/decidim-peertube/app/models/decidim/decidim_peertube/application_record.rb deleted file mode 100644 index 0e276c2..0000000 --- a/decidim-peertube/app/models/decidim/decidim_peertube/application_record.rb +++ /dev/null @@ -1,10 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - # Abstract class from which all models in this engine inherit. - class ApplicationRecord < ApplicationRecord - self.abstract_class = true - end - end -end diff --git a/decidim-peertube/app/models/decidim/decidim_peertube/peertube_user.rb b/decidim-peertube/app/models/decidim/decidim_peertube/peertube_user.rb deleted file mode 100644 index 4099370..0000000 --- a/decidim-peertube/app/models/decidim/decidim_peertube/peertube_user.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - class PeertubeUser < ApplicationRecord - self.table_name = "decidim_peertube_users" - - belongs_to :user, class_name: "Decidim::User", foreign_key: "decidim_user_id" - - def access_token_valid? - access_token.present? && access_token_expires_at.future? - end - end - end -end diff --git a/decidim-peertube/app/models/decidim/decidim_peertube/peertube_video.rb b/decidim-peertube/app/models/decidim/decidim_peertube/peertube_video.rb deleted file mode 100644 index 9a0d185..0000000 --- a/decidim-peertube/app/models/decidim/decidim_peertube/peertube_video.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - class PeertubeVideo < ApplicationRecord - self.table_name = "decidim_peertube_videos" - - belongs_to :component, class_name: "Decidim::Component", foreign_key: "decidim_component_id" - belongs_to :peertube_user, class_name: "Decidim::DecidimPeertube::PeertubeUser", foreign_key: "decidim_peertube_user_id" - end - end -end diff --git a/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_sessions/new.html.erb b/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_sessions/new.html.erb deleted file mode 100644 index 6793329..0000000 --- a/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_sessions/new.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -<%= decidim_form_for @form, html: { class: "form" } do |f| %> -
-
-

<%= t(".title") %>

-
-
-
- <%= f.text_field :username, label: t(".username") %> -
-
- <%= f.password_field :password, label: t(".password") %> -
-
-
-
- <%= f.submit t(".submit") %> -
-<% end %> diff --git a/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_videos/_channels.html.erb b/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_videos/_channels.html.erb deleted file mode 100644 index b78dcaf..0000000 --- a/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_videos/_channels.html.erb +++ /dev/null @@ -1,41 +0,0 @@ -
- - - - - - - - - - - <% peertube_user_channels.each do |channel| %> - - - - - - - <% end %> - -
- <%= t(".avatar") %> - - <%= t(".name") %> - - <%= t(".url") %> - - <%= t(".actions") %> -
- <%= image_tag Decidim::DecidimPeertube.url(channel.dig("avatar","path")), width: 50, height: 50 if channel.dig("avatar", "path").present? %> - - <%= channel["displayName"] %> - - <%= link_to channel["name"], channel["url"], target: "_blank" %> - - <%= link_to new_peertube_video_path(id: channel["id"]), class: "button" do %> - <%= icon "rss-alt" %> - <%= t(".create_live_video") %> - <% end %> -
-
diff --git a/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_videos/_videos.html.erb b/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_videos/_videos.html.erb deleted file mode 100644 index 2c850f4..0000000 --- a/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_videos/_videos.html.erb +++ /dev/null @@ -1,48 +0,0 @@ -
-

- <%= t(".rtmp_instructions") %> -

-

- <%= t(".rtmp_warning") %> -

-
-
- <% if peertube_videos.any? %> -
- - - - - - - - - - <% peertube_videos.each do |video| %> - - - - - - <% end %> - -
- <%= t(".title") %> - - <%= t(".stream_url") %> - - <%= t(".actions") %> -
- <%= link_to video.data["video_name"], video.video_url, target: "_blank" %> - - <%= link_to video.rtmp_url, video.rtmp_url %> - - <%= icon_link_to "external-link", video.video_url, t(".watch"), target: "_blank" %> - <%= icon_link_to "check", select_peertube_video_path(video), t(".select"), method: :post, data: { confirm: t(".confirm_select") } %> - <%= icon_link_to "circle-x", peertube_video_path(video), t(".delete"), method: :delete, data: { confirm: t(".confirm_delete") } %> -
-
- <% else %> - <%= t(".empty") %> - <% end %> -
diff --git a/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_videos/edit.html.erb b/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_videos/edit.html.erb deleted file mode 100644 index d053968..0000000 --- a/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_videos/edit.html.erb +++ /dev/null @@ -1,63 +0,0 @@ -
-
- <%= link_to main_component_path(current_component), class: "button m-s", target: "_blank" do %> - <%= icon "eye" %> - <%= t(".visit") %> - <% end %> - <%= link_to edit_component_path, class: "button m-s" do %> - <%= icon "image" %> - <%= t(".embed") %> - <% end %> - <% unless current_peertube_user_valid? %> - <%= link_to new_peertube_session_path, class: "button m-s" do %> - <%= icon "person" %> - <%= t(".link_account") %> - <% end %> - <% end %> -
-
-
-
-

- <%= t(".peertube_videos") %> -

-
- <%= render partial: "videos" %> -
-<% if current_peertube_user_valid? %> -
-
-

- <%= t(".account") %> -

-
- <%= link_to peertube_sessions_path, method: :delete, class: "button tiny" do %> - <%= icon "x" %> - <%= t(".remove_account") %> - <% end %> -
-
- <%= link_to new_peertube_session_path, class: "button tiny" do %> - <%= icon "person" %> - <%= t(".change_account") %> - <% end %> -
-
-
-
-
- <%= t(".username") %>: -
-
- <%= current_peertube_user.peertube_username %> -
-
- <%= t(".channels") %>: -
-
- <%= render partial: "channels" %> -
-
-
-
-<% end %> diff --git a/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_videos/new.html.erb b/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_videos/new.html.erb deleted file mode 100644 index 23fa2d4..0000000 --- a/decidim-peertube/app/views/decidim/decidim_peertube/admin/peertube_videos/new.html.erb +++ /dev/null @@ -1,53 +0,0 @@ -<%= decidim_form_for @form, html: { class: "form" } do |f| %> -
-
-

<%= t(".title") %>

-
-
- <%= f.hidden_field :channel_id, value: params["id"] %> -
- <%= f.text_field :video_name, label: t(".video_name") %> -
-
- <%= f.text_area :video_description, rows: 3, label: t(".video_description") %> -
-
-
- <%= f.select :privacy, [ - [t(".privacy_types.public"), 1], - [t(".privacy_types.unlisted"), 2] - ], - label: t(".privacy"), - selected: 2, - prompt: "" %> -

- <%= t(".privacy_help") %> -

-
-
-
-
- <%= f.check_box :permanent_live, label: t(".permanent_live"), default: false %> -

- <%= t(".permanent_live_help") %> -

-
-
- <%= f.check_box :comments_enabled, label: t(".comments_enabled"), default: false %> -

- <%= t(".comments_enabled_help") %> -

-
-
- <%= f.check_box :downloads_enabled, label: t(".downloads_enabled"), default: false %> -

- <%= t(".downloads_enabled_help") %> -

-
-
-
-
-
- <%= f.submit t(".submit") %> -
-<% end %> diff --git a/decidim-peertube/app/views/decidim/decidim_peertube/peertube_videos/show.html.erb b/decidim-peertube/app/views/decidim/decidim_peertube/peertube_videos/show.html.erb deleted file mode 100644 index 3d2b545..0000000 --- a/decidim-peertube/app/views/decidim/decidim_peertube/peertube_videos/show.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -
-

<%= translated_attribute current_component.settings.title %>

-
-
-
- -
-
diff --git a/decidim-peertube/config/locales/ca.yml b/decidim-peertube/config/locales/ca.yml deleted file mode 100644 index da3bfbc..0000000 --- a/decidim-peertube/config/locales/ca.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -ca: - decidim: - components: - peertube_video: - name: Vídeo de Peertube - settings: - global: - title: Títol - video_url: URL del Vídeo - decidim_peertube: - admin: - peertube_sessions: - create: - invalid: No s'ha pogut enllaçar el teu compte de Peertube - success: S'ha enllaçat el teu compte de Peertube - new: - password: Contrassenya (de Peertube) - submit: Enllaça el compte - title: Enllaça el compte de Peertube - username: Nom d'usuària o e-mail (de Peertube) - peertube_videos: - channels: - actions: Accions - avatar: Avatar - create_live_video: Crea un vídeo en directe - name: Nom del canal - url: URL - create: - invalid: No s'ha pogut crear el vídeo en directe - success: S'ha creat el vídeo en directe - destroy: - success: S'ha esborrat el vídeo en directe - edit: - account: El teu compte de Peertube - change_account: Canvia de compte - channels: Els teus canals - embed: Insereix un vídeo de Peertube - link_account: Enllaça el compte de Peertube - peertube_videos: Vídeos de Peertube - remove_account: Desenllaça el compte - username: Nom d'usuària - visit: Visita el component - new: - comments_enabled: Habilita comentaris - comments_enabled_help: Habilita comentaris per a aquest vídeo - downloads_enabled: Habilita descàrregues - downloads_enabled_help: Permet que les usàries descarreguin aquest vídeo - permanent_live: Enllaç permanent - permanent_live_help: Fes que l'enllaç al vídeo en directe sigui permanent. - Així podràs reproduir moltes vegades en un mateix vídeo. La URL per - les espectadores serà sempre la mateixa, però no podràs desar el vídeo - per a què es vegi un cop acabi el directe. - privacy: Privacitat - privacy_help: Els vídeos "No llistats" només es podran compartir amb un - link privat, mentre que els vídeos "Públics" podran ser trobats fàcilment - a la plataforma. - privacy_types: - public: Públic - unlisted: No llistat - submit: Crea el vídeo en directe - title: Crea un vídeo en directe - video_description: Descripció del vídeo - video_name: Nom del vídeo - select: - success: El vídeo seleccionat s'inserirà a la pàgina pública del component. - videos: - actions: Accions - confirm_delete: Vols eliminar aquest vídeo? Aquesta acció no es podrà - desfer. - confirm_select: Vols inserir el vídeo al component? - delete: Eliminar - empty: Encara no hi ha cap vídeo associat a aquest component. - rtmp_instructions: Copia la "Stream URL" que surt al llistat i enganxa-la - en last teva aplicació de videoconferències quan et demani la "Live - stream key", després de clicar a "Start live stream". - rtmp_warning: No comparteixis la "Stream URL" amb ningú, conté una contrassenya - que ha de ser privada - select: Insereix aquest vídeo al component - stream_url: Stream URL - title: Títol - watch: Veure a Peertube diff --git a/decidim-peertube/config/locales/en.yml b/decidim-peertube/config/locales/en.yml deleted file mode 100644 index 9ccf29c..0000000 --- a/decidim-peertube/config/locales/en.yml +++ /dev/null @@ -1,81 +0,0 @@ ---- -en: - decidim: - components: - peertube_video: - name: Peertube Video - settings: - global: - title: Title - video_url: Video URL - decidim_peertube: - admin: - peertube_sessions: - create: - invalid: There was a problem linking your Peertube account - success: Your Peertube account has been linked successfully - new: - password: Peertube password - submit: Link account - title: Link Peertube account - username: Peertube username or email - peertube_videos: - channels: - actions: Actions - avatar: Avatar - create_live_video: Create live video - name: Channel name - url: URL - create: - invalid: There was a problem creating the live video - success: The live video has been created successfully - destroy: - success: The live video was destroyed successfully - edit: - account: Your Peertube account - change_account: Change account - channels: Your channels - embed: Embed a Peertube video - link_account: Link Peertube account - peertube_videos: Peertube videos - remove_account: Unlink account - username: Username - visit: Visit component - new: - comments_enabled: Enable comments - comments_enabled_help: Enable comments for this video - downloads_enabled: Enable downloads - downloads_enabled_help: Allow users to download this video - permanent_live: Permanent live - permanent_live_help: Make live video permanent. You can stream multiple - times in a permanent live. The URL for your viewers won't change but - you cannot save the replays of your lives. - privacy: Privacy - privacy_help: '"Unlisted" videos will be shareable only via a private - link, while "Public" videos can be seen by anyone.' - privacy_types: - public: Public - unlisted: Unlisted - submit: Create live video - title: Create live video - video_description: Video description - video_name: Video name - select: - success: The selected video will now be embedded in the public component - page. - videos: - actions: Actions - confirm_delete: Do you want to delete this video? This action cannot be - undone. - confirm_select: Do you want to embed this video in the component? - delete: Delete - empty: There aren't any videos associated with this component yet. - rtmp_instructions: Copy the Stream URL below and paste in your videoconference - application when it asks for your 'Live stream key', after clicking - on 'Start live stream'. - rtmp_warning: Don't share the Stream URL with anyone, it contains a key - that should be kept private. - select: Embed this video in the component - stream_url: Stream URL - title: Title - watch: Watch in Peertube diff --git a/decidim-peertube/config/locales/es.yml b/decidim-peertube/config/locales/es.yml deleted file mode 100644 index 3401574..0000000 --- a/decidim-peertube/config/locales/es.yml +++ /dev/null @@ -1,82 +0,0 @@ ---- -es: - decidim: - components: - peertube_video: - name: Video de Peertube - settings: - global: - title: Título - video_url: URL del video - decidim_peertube: - admin: - peertube_sessions: - create: - invalid: No se ha podido enlazar tu cuenta de Peertube - success: Tu cuenta de Peertube se ha enlazado - new: - password: Contraseña (de Peertube) - submit: Enlazar cuenta - title: Enlazar cuenta de Peertube - username: Nombre de usuaria o e-mail (de Peertube) - peertube_videos: - channels: - actions: Acciones - avatar: Avatar - create_live_video: Crear video en directo - name: Nombre del canal - url: URL - create: - invalid: No se ha podido crear el video en directo - success: Se ha creado el video en directo - destroy: - success: Se ha eliminado el video en directo - edit: - account: Tu cuenta de Peertube - change_account: Cambiar cuenta - channels: Tus canales - embed: Inserta un video de Peertube - link_account: Enlaza tu cuenta de Peertube - peertube_videos: Videos de Peertube - remove_account: Desenlazar cuenta - username: Nombre de usuaria - visit: Visitar componente - new: - comments_enabled: Habilitar comentarios - comments_enabled_help: Habilita comentarios para este video - downloads_enabled: Habilitar descargas - downloads_enabled_help: Permite que las usuarias descarguen este video - permanent_live: Directo permanente - permanent_live_help: Haz que el enlace al video en directo sea permanente. - Así podrás reproducir muchas veces en un mismo video. La URL para las - espectadoras será siempre la misma, pero no podrás guardar el video - para que sea visto una vez finalizado el directo. - privacy: Privacidad - privacy_help: Los videos "Sin listar" solo se pueden compartir con un - enlace privado, mientras que los "Públicos" pueden ser encontrados fácilmente - en la plataforma. - privacy_types: - public: Público - unlisted: Sin listar - submit: Crear video en directo - title: Crear video en directo - video_description: Descripción del video - video_name: Nombre del video - select: - success: El video seleccionado será insertado en la página pública del - componente. - videos: - actions: Acciones - confirm_delete: Quieres eliminar este video? Esta acción no se puede deshacer. - confirm_select: Quieres insertar este video en el componente? - delete: Eliminar - empty: Todavía no hay videos asociados a este componente. - rtmp_instructions: Copia la "Stream URL" de la lista y pégala en tu aplicación - de videoconferencias cuando pregunte por tu "Live stream key", después - de hacer clic en "Start live stream". - rtmp_warning: No compartas la "Stream URL" con nadie, contiene una contraseña - que debe permanecer privada - select: Inserta este video en el componente - stream_url: Stream URL - title: Título - watch: Ver en Peertube diff --git a/decidim-peertube/db/migrate/20211224183442_create_decidim_peertube_users.rb b/decidim-peertube/db/migrate/20211224183442_create_decidim_peertube_users.rb deleted file mode 100644 index 3e3bdf0..0000000 --- a/decidim-peertube/db/migrate/20211224183442_create_decidim_peertube_users.rb +++ /dev/null @@ -1,25 +0,0 @@ -# frozen_string_literal: true - -class CreateDecidimPeertubeUsers < ActiveRecord::Migration[5.2] - def change - create_table :decidim_peertube_users do |t| - t.references :decidim_user, foreign_key: { to_table: :decidim_users }, index: { name: "index_decidim_peertube_users_on_user" } - - t.integer :peertube_uid - t.integer :peertube_account_id - - t.string :peertube_username - t.string :access_token - t.datetime :access_token_expires_at - - t.integer :peertube_role - t.string :peertube_role_label - - t.jsonb :account - t.jsonb :video_channels - t.jsonb :data - - t.timestamps - end - end -end diff --git a/decidim-peertube/db/migrate/20211224183443_create_decidim_peertube_videos.rb b/decidim-peertube/db/migrate/20211224183443_create_decidim_peertube_videos.rb deleted file mode 100644 index 88767ba..0000000 --- a/decidim-peertube/db/migrate/20211224183443_create_decidim_peertube_videos.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -class CreateDecidimPeertubeVideos < ActiveRecord::Migration[5.2] - def change - create_table :decidim_peertube_videos do |t| - t.references :decidim_component, foreign_key: { to_table: :decidim_components }, index: { name: "index_decidim_peertube_videos_on_component" } - t.references :decidim_peertube_user, foreign_key: { to_table: :decidim_peertube_users }, index: { name: "index_decidim_peertube_videos_on_decidim_peertube_user" } - - t.string :peertube_video_id - t.integer :peertube_channel_id - - t.string :video_url - t.string :rtmp_url - - t.jsonb :data - - t.timestamps - end - end -end diff --git a/decidim-peertube/decidim-peertube.gemspec b/decidim-peertube/decidim-peertube.gemspec deleted file mode 100644 index 6fe8cfa..0000000 --- a/decidim-peertube/decidim-peertube.gemspec +++ /dev/null @@ -1,25 +0,0 @@ -# frozen_string_literal: true - -$LOAD_PATH.push File.expand_path("lib", __dir__) - -require "decidim/decidim_peertube/version" - -Gem::Specification.new do |s| - s.version = Decidim::DecidimPeertube::VERSION - s.authors = ["Vera Rojman"] - s.email = ["vera@platoniq.net"] - s.license = "AGPL-3.0" - s.homepage = "https://github.com/Platoniq" - s.required_ruby_version = ">= 2.7" - - s.name = "decidim-decidim_peertube" - s.summary = "..." - s.description = "..." - - s.files = Dir["{app,config,db,lib}/**/*", "LICENSE-AGPLv3.txt", "Rakefile", "README.md"] - - s.add_dependency "decidim-admin", Decidim::DecidimPeertube::COMPAT_DECIDIM_VERSION - s.add_dependency "decidim-core", Decidim::DecidimPeertube::COMPAT_DECIDIM_VERSION - - s.add_development_dependency "decidim-dev", Decidim::DecidimPeertube::COMPAT_DECIDIM_VERSION -end diff --git a/decidim-peertube/lib/decidim/decidim_peertube.rb b/decidim-peertube/lib/decidim/decidim_peertube.rb deleted file mode 100644 index 2af9a58..0000000 --- a/decidim-peertube/lib/decidim/decidim_peertube.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -require "decidim/decidim_peertube/admin" -require "decidim/decidim_peertube/admin_engine" -require "decidim/decidim_peertube/api" -require "decidim/decidim_peertube/engine" -require "decidim/decidim_peertube/component" - -module Decidim - module DecidimPeertube - include ActiveSupport::Configurable - - def self.url(path) - URI.join("https://#{Decidim::DecidimPeertube.host}", path).to_s - end - - config_accessor :credentials do - { - client_id: ENV.fetch("PEERTUBE_CLIENT_ID", "fake-peertube-client-id"), - client_secret: ENV.fetch("PEERTUBE_CLIENT_SECRET", "fake-peertube-client-secret") - } - end - - config_accessor :host do - ENV.fetch("PEERTUBE_HOST", "peertube.plataformess.org") - end - end -end diff --git a/decidim-peertube/lib/decidim/decidim_peertube/admin.rb b/decidim-peertube/lib/decidim/decidim_peertube/admin.rb deleted file mode 100644 index 8af98d8..0000000 --- a/decidim-peertube/lib/decidim/decidim_peertube/admin.rb +++ /dev/null @@ -1,10 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - # This module contains all the domain logic associated to Decidim's DecidimPeertube - # component admin panel. - module Admin - end - end -end diff --git a/decidim-peertube/lib/decidim/decidim_peertube/admin_engine.rb b/decidim-peertube/lib/decidim/decidim_peertube/admin_engine.rb deleted file mode 100644 index 042f77e..0000000 --- a/decidim-peertube/lib/decidim/decidim_peertube/admin_engine.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - # This is the engine that runs on the public interface of `DecidimPeertube`. - class AdminEngine < ::Rails::Engine - isolate_namespace Decidim::DecidimPeertube::Admin - - paths["lib/tasks"] = nil - - routes do - resources :peertube_videos, only: [:show, :edit, :update, :new, :create, :destroy] do - post :select, on: :member - end - - resources :peertube_sessions, only: [:new, :create] do - delete :destroy, on: :collection - end - - root to: "peertube_videos#edit" - end - - def load_seed - nil - end - end - end -end diff --git a/decidim-peertube/lib/decidim/decidim_peertube/api.rb b/decidim-peertube/lib/decidim/decidim_peertube/api.rb deleted file mode 100644 index d0070d8..0000000 --- a/decidim-peertube/lib/decidim/decidim_peertube/api.rb +++ /dev/null @@ -1,22 +0,0 @@ -# frozen_string_literal: true - -require_relative "api/request" -require_relative "api/authentication_request" -require_relative "api/create_live_video_request" -require_relative "api/delete_video_request" -require_relative "api/get_live_video_info_request" -require_relative "api/get_user_info_request" -require_relative "api/list_user_channels_request" - -module Decidim - module DecidimPeertube - # This holds the Decidim::DecidimPeertube::Api namespace. - module Api - def self.base_url - Decidim::DecidimPeertube.url("api/v1/") - end - - class Error < StandardError; end - end - end -end diff --git a/decidim-peertube/lib/decidim/decidim_peertube/api/authentication_request.rb b/decidim-peertube/lib/decidim/decidim_peertube/api/authentication_request.rb deleted file mode 100644 index f5f240d..0000000 --- a/decidim-peertube/lib/decidim/decidim_peertube/api/authentication_request.rb +++ /dev/null @@ -1,44 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module DecidimPeertube - module Api - class AuthenticationRequest < Request - def initialize(username:, password:) - post( - "users/token", - grant_type: "password", - response_type: "code", - username: username, - password: password - ) - end - - # POST username and password to - # - # /api/v1/users/token - # - # with params: - # - # { - # grant_type: "password" - # response_type: "code" - # username: "..." - # password: "..." - # } - # - # this returns: - # - # { - # "access_token": "...", - # "token_type": "Bearer", - # "expires_in": 86399, - # "refresh_token": "..." - # } - # - # Update or create DecidimPeertube::User for current_user with `access_token` - # and `expires_in` converted to `access_token_expires_at`