decidim-theme 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE-AGPLv3.txt +661 -0
  3. data/README.md +104 -0
  4. data/Rakefile +9 -0
  5. data/app/cells/decidim/meetings/meeting_cell.rb +65 -0
  6. data/app/cells/decidim/meetings/meeting_s_overrides/show.erb +25 -0
  7. data/app/cells/decidim/meetings/meeting_s_overrides_cell.rb +53 -0
  8. data/app/controllers/decidim/theme/admin/application_controller.rb +15 -0
  9. data/app/controllers/decidim/theme/application_controller.rb +13 -0
  10. data/app/helpers/decidim/theme/application_helper.rb +10 -0
  11. data/app/models/decidim/theme/application_record.rb +10 -0
  12. data/app/overrides/insert_javascript_tag.rb +6 -0
  13. data/app/overrides/language_chooser_icon.rb +4 -0
  14. data/app/overrides/layouts/decidim/_main_footer/replace_content.html.erb.deface +96 -0
  15. data/app/overrides/layouts/decidim/_mini_footer/replace_content.html.erb.deface +25 -0
  16. data/app/overrides/mailer_styles.rb +36 -0
  17. data/app/overrides/prefix_body.rb +10 -0
  18. data/app/overrides/prefix_classes.rb +63 -0
  19. data/app/overrides/prefix_processes_wrapper.rb +10 -0
  20. data/app/packs/entrypoints/decidim_theme_email.js +1 -0
  21. data/app/packs/entrypoints/decidim_theme_email.scss +2 -0
  22. data/app/packs/entrypoints/decidim_theme_polyfill.js +5 -0
  23. data/app/packs/fonts/decidim/Inter-Black.woff +0 -0
  24. data/app/packs/fonts/decidim/Inter-Black.woff2 +0 -0
  25. data/app/packs/fonts/decidim/Inter-BlackItalic.woff +0 -0
  26. data/app/packs/fonts/decidim/Inter-BlackItalic.woff2 +0 -0
  27. data/app/packs/fonts/decidim/Inter-Bold.woff +0 -0
  28. data/app/packs/fonts/decidim/Inter-Bold.woff2 +0 -0
  29. data/app/packs/fonts/decidim/Inter-BoldItalic.woff +0 -0
  30. data/app/packs/fonts/decidim/Inter-BoldItalic.woff2 +0 -0
  31. data/app/packs/fonts/decidim/Inter-ExtraBold.woff +0 -0
  32. data/app/packs/fonts/decidim/Inter-ExtraBold.woff2 +0 -0
  33. data/app/packs/fonts/decidim/Inter-ExtraBoldItalic.woff +0 -0
  34. data/app/packs/fonts/decidim/Inter-ExtraBoldItalic.woff2 +0 -0
  35. data/app/packs/fonts/decidim/Inter-ExtraLight.woff +0 -0
  36. data/app/packs/fonts/decidim/Inter-ExtraLight.woff2 +0 -0
  37. data/app/packs/fonts/decidim/Inter-ExtraLightItalic.woff +0 -0
  38. data/app/packs/fonts/decidim/Inter-ExtraLightItalic.woff2 +0 -0
  39. data/app/packs/fonts/decidim/Inter-Italic.woff +0 -0
  40. data/app/packs/fonts/decidim/Inter-Italic.woff2 +0 -0
  41. data/app/packs/fonts/decidim/Inter-Light.woff +0 -0
  42. data/app/packs/fonts/decidim/Inter-Light.woff2 +0 -0
  43. data/app/packs/fonts/decidim/Inter-LightItalic.woff +0 -0
  44. data/app/packs/fonts/decidim/Inter-LightItalic.woff2 +0 -0
  45. data/app/packs/fonts/decidim/Inter-Medium.woff +0 -0
  46. data/app/packs/fonts/decidim/Inter-Medium.woff2 +0 -0
  47. data/app/packs/fonts/decidim/Inter-MediumItalic.woff +0 -0
  48. data/app/packs/fonts/decidim/Inter-MediumItalic.woff2 +0 -0
  49. data/app/packs/fonts/decidim/Inter-Regular.woff +0 -0
  50. data/app/packs/fonts/decidim/Inter-Regular.woff2 +0 -0
  51. data/app/packs/fonts/decidim/Inter-SemiBold.woff +0 -0
  52. data/app/packs/fonts/decidim/Inter-SemiBold.woff2 +0 -0
  53. data/app/packs/fonts/decidim/Inter-SemiBoldItalic.woff +0 -0
  54. data/app/packs/fonts/decidim/Inter-SemiBoldItalic.woff2 +0 -0
  55. data/app/packs/fonts/decidim/Inter-Thin.woff +0 -0
  56. data/app/packs/fonts/decidim/Inter-Thin.woff2 +0 -0
  57. data/app/packs/fonts/decidim/Inter-ThinItalic.woff +0 -0
  58. data/app/packs/fonts/decidim/Inter-ThinItalic.woff2 +0 -0
  59. data/app/packs/fonts/decidim/Inter-italic.var.woff2 +0 -0
  60. data/app/packs/fonts/decidim/Inter-roman.var.woff2 +0 -0
  61. data/app/packs/fonts/decidim/Inter.var.woff2 +0 -0
  62. data/app/packs/images/decidim/cc-by-sa-4.svg +8 -0
  63. data/app/packs/images/decidim/decidim-initial.svg +9 -0
  64. data/app/packs/images/decidim/theme/icon.svg +1 -0
  65. data/app/packs/javascripts/empty.polyfill.js +7 -0
  66. data/app/packs/javascripts/has.polyfill.js +30 -0
  67. data/app/packs/stylesheets/decidim/theme/_font_face.scss +180 -0
  68. data/app/packs/stylesheets/decidim/theme/_theme.scss +121 -0
  69. data/app/packs/stylesheets/decidim/theme/_theme_settings.scss +923 -0
  70. data/app/packs/stylesheets/decidim/theme/_theme_variables.scss +80 -0
  71. data/app/packs/stylesheets/decidim/theme/atoms/Buttons/_Generic.scss +98 -0
  72. data/app/packs/stylesheets/decidim/theme/atoms/Buttons/_Misc.scss +115 -0
  73. data/app/packs/stylesheets/decidim/theme/atoms/Buttons/_Navigation.scss +83 -0
  74. data/app/packs/stylesheets/decidim/theme/atoms/Typography/_Body.scss +88 -0
  75. data/app/packs/stylesheets/decidim/theme/atoms/Typography/_Headline.scss +98 -0
  76. data/app/packs/stylesheets/decidim/theme/atoms/Typography/_mixins.scss +109 -0
  77. data/app/packs/stylesheets/decidim/theme/email.scss +41 -0
  78. data/app/packs/stylesheets/decidim/theme/molecules/Callouts/_default.scss +41 -0
  79. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_card_process.scss +24 -0
  80. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_data-item.scss +31 -0
  81. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_documents.scss +46 -0
  82. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_extra.scss +32 -0
  83. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_upcoming_meetings.scss +47 -0
  84. data/app/packs/stylesheets/decidim/theme/organisms/_account.scss +129 -0
  85. data/app/packs/stylesheets/decidim/theme/organisms/_accountability.scss +119 -0
  86. data/app/packs/stylesheets/decidim/theme/organisms/_assembly.scss +5 -0
  87. data/app/packs/stylesheets/decidim/theme/organisms/_authorizations.scss +25 -0
  88. data/app/packs/stylesheets/decidim/theme/organisms/_blog.scss +77 -0
  89. data/app/packs/stylesheets/decidim/theme/organisms/_budgets.scss +221 -0
  90. data/app/packs/stylesheets/decidim/theme/organisms/_cookie_warning.scss +6 -0
  91. data/app/packs/stylesheets/decidim/theme/organisms/_debate.scss +65 -0
  92. data/app/packs/stylesheets/decidim/theme/organisms/_footer.scss +145 -0
  93. data/app/packs/stylesheets/decidim/theme/organisms/_groups.scss +49 -0
  94. data/app/packs/stylesheets/decidim/theme/organisms/_logins.scss +45 -0
  95. data/app/packs/stylesheets/decidim/theme/organisms/_meetings.scss +214 -0
  96. data/app/packs/stylesheets/decidim/theme/organisms/_members.scss +6 -0
  97. data/app/packs/stylesheets/decidim/theme/organisms/_messaging.scss +118 -0
  98. data/app/packs/stylesheets/decidim/theme/organisms/_metrics.scss +31 -0
  99. data/app/packs/stylesheets/decidim/theme/organisms/_notifications.scss +20 -0
  100. data/app/packs/stylesheets/decidim/theme/organisms/_processes.scss +12 -0
  101. data/app/packs/stylesheets/decidim/theme/organisms/_proposals.scss +150 -0
  102. data/app/packs/stylesheets/decidim/theme/organisms/_search.scss +12 -0
  103. data/app/packs/stylesheets/decidim/theme/organisms/_sortitions.scss +65 -0
  104. data/app/packs/stylesheets/decidim/theme/organisms/_surveys.scss +65 -0
  105. data/app/packs/stylesheets/decidim/theme/organisms/_text_page.scss +115 -0
  106. data/app/packs/stylesheets/decidim/theme/organisms/_user_conversations.scss +7 -0
  107. data/app/packs/stylesheets/decidim/theme/reset/_author.scss +36 -0
  108. data/app/packs/stylesheets/decidim/theme/reset/_author_avatar.scss +182 -0
  109. data/app/packs/stylesheets/decidim/theme/reset/_badges.scss +159 -0
  110. data/app/packs/stylesheets/decidim/theme/reset/_base.scss +543 -0
  111. data/app/packs/stylesheets/decidim/theme/reset/_budget-list.scss +202 -0
  112. data/app/packs/stylesheets/decidim/theme/reset/_budget-meter.scss +85 -0
  113. data/app/packs/stylesheets/decidim/theme/reset/_buttons.scss +538 -0
  114. data/app/packs/stylesheets/decidim/theme/reset/_callout.scss +37 -0
  115. data/app/packs/stylesheets/decidim/theme/reset/_card.scss +1480 -0
  116. data/app/packs/stylesheets/decidim/theme/reset/_categories.scss +130 -0
  117. data/app/packs/stylesheets/decidim/theme/reset/_collapsible.scss +59 -0
  118. data/app/packs/stylesheets/decidim/theme/reset/_columns.scss +8 -0
  119. data/app/packs/stylesheets/decidim/theme/reset/_comments.scss +320 -0
  120. data/app/packs/stylesheets/decidim/theme/reset/_conversation.scss +158 -0
  121. data/app/packs/stylesheets/decidim/theme/reset/_data-consent.scss +133 -0
  122. data/app/packs/stylesheets/decidim/theme/reset/_data-picker.scss +243 -0
  123. data/app/packs/stylesheets/decidim/theme/reset/_definition_data.scss +93 -0
  124. data/app/packs/stylesheets/decidim/theme/reset/_docs-manager.scss +16 -0
  125. data/app/packs/stylesheets/decidim/theme/reset/_dropdown_menu.scss +312 -0
  126. data/app/packs/stylesheets/decidim/theme/reset/_errors.scss +87 -0
  127. data/app/packs/stylesheets/decidim/theme/reset/_extra.scss +56 -0
  128. data/app/packs/stylesheets/decidim/theme/reset/_filters.scss +224 -0
  129. data/app/packs/stylesheets/decidim/theme/reset/_floating_helper.scss +133 -0
  130. data/app/packs/stylesheets/decidim/theme/reset/_form.scss +176 -0
  131. data/app/packs/stylesheets/decidim/theme/reset/_home.scss +416 -0
  132. data/app/packs/stylesheets/decidim/theme/reset/_home_section.scss +23 -0
  133. data/app/packs/stylesheets/decidim/theme/reset/_horizontal-tabs.scss +130 -0
  134. data/app/packs/stylesheets/decidim/theme/reset/_icons.scss +3 -0
  135. data/app/packs/stylesheets/decidim/theme/reset/_inline-filters.scss +77 -0
  136. data/app/packs/stylesheets/decidim/theme/reset/_label.scss +79 -0
  137. data/app/packs/stylesheets/decidim/theme/reset/_labels.scss +53 -0
  138. data/app/packs/stylesheets/decidim/theme/reset/_layout.scss +82 -0
  139. data/app/packs/stylesheets/decidim/theme/reset/_lines_breadcrumb.scss +38 -0
  140. data/app/packs/stylesheets/decidim/theme/reset/_login.scss +3 -0
  141. data/app/packs/stylesheets/decidim/theme/reset/_logo_wrapper.scss +28 -0
  142. data/app/packs/stylesheets/decidim/theme/reset/_main_container.scss +96 -0
  143. data/app/packs/stylesheets/decidim/theme/reset/_metric-chart.scss +25 -0
  144. data/app/packs/stylesheets/decidim/theme/reset/_navbar.scss +763 -0
  145. data/app/packs/stylesheets/decidim/theme/reset/_opinion_toggle.scss +55 -0
  146. data/app/packs/stylesheets/decidim/theme/reset/_order-by.scss +34 -0
  147. data/app/packs/stylesheets/decidim/theme/reset/_org-chart.scss +6 -0
  148. data/app/packs/stylesheets/decidim/theme/reset/_pagination.scss +195 -0
  149. data/app/packs/stylesheets/decidim/theme/reset/_process.scss +20 -0
  150. data/app/packs/stylesheets/decidim/theme/reset/_process_header.scss +97 -0
  151. data/app/packs/stylesheets/decidim/theme/reset/_process_header_phase.scss +13 -0
  152. data/app/packs/stylesheets/decidim/theme/reset/_process_nav.scss +317 -0
  153. data/app/packs/stylesheets/decidim/theme/reset/_progress_bar.scss +89 -0
  154. data/app/packs/stylesheets/decidim/theme/reset/_quill.scss +47 -0
  155. data/app/packs/stylesheets/decidim/theme/reset/_result_per_page.scss +82 -0
  156. data/app/packs/stylesheets/decidim/theme/reset/_results.scss +158 -0
  157. data/app/packs/stylesheets/decidim/theme/reset/_reveal.scss +210 -0
  158. data/app/packs/stylesheets/decidim/theme/reset/_scope-picker.scss +10 -0
  159. data/app/packs/stylesheets/decidim/theme/reset/_select.scss +92 -0
  160. data/app/packs/stylesheets/decidim/theme/reset/_signup.scss +179 -0
  161. data/app/packs/stylesheets/decidim/theme/reset/_statistics.scss +42 -0
  162. data/app/packs/stylesheets/decidim/theme/reset/_switch.scss +272 -0
  163. data/app/packs/stylesheets/decidim/theme/reset/_tabs.scss +4 -0
  164. data/app/packs/stylesheets/decidim/theme/reset/_tags.scss +47 -0
  165. data/app/packs/stylesheets/decidim/theme/reset/_thumbnail.scss +66 -0
  166. data/app/packs/stylesheets/decidim/theme/reset/_timeline.scss +183 -0
  167. data/app/packs/stylesheets/decidim/theme/reset/_title_bar.scss +89 -0
  168. data/app/packs/stylesheets/decidim/theme/reset/_toggle.scss +14 -0
  169. data/app/packs/stylesheets/decidim/theme/reset/_tooltip.scss +173 -0
  170. data/app/packs/stylesheets/decidim/theme/reset/_typography.scss +283 -0
  171. data/app/packs/stylesheets/decidim/theme/reset/_upload_modal.scss +140 -0
  172. data/app/packs/stylesheets/decidim/theme/reset/_user-form.scss +15 -0
  173. data/app/packs/stylesheets/decidim/theme/reset/_user.scss +184 -0
  174. data/app/packs/stylesheets/decidim/theme/reset/_versions.scss +82 -0
  175. data/app/packs/stylesheets/decidim/theme/reset/_wrapper.scss +3 -0
  176. data/config/assets.rb +17 -0
  177. data/config/i18n-tasks.yml +10 -0
  178. data/config/locales/en.yml +62 -0
  179. data/config/locales/fr.yml +11 -0
  180. data/lib/decidim/theme/admin.rb +10 -0
  181. data/lib/decidim/theme/admin_engine.rb +27 -0
  182. data/lib/decidim/theme/engine.rb +29 -0
  183. data/lib/decidim/theme/test/factories.rb +13 -0
  184. data/lib/decidim/theme/version.rb +13 -0
  185. data/lib/decidim/theme.rb +12 -0
  186. metadata +271 -0
@@ -0,0 +1,184 @@
1
+ // User profile, notifications & settings
2
+
3
+ .user-header {
4
+ margin-bottom: $margin-sm;
5
+
6
+ @include breakpoint(medium) {
7
+ margin-bottom: $margin-m;
8
+ }
9
+ }
10
+
11
+ .user-header__main {
12
+ @include clearfix;
13
+
14
+ display: flex;
15
+ align-items: center;
16
+ }
17
+
18
+ .user-header__avatar {
19
+ width: 60px;
20
+
21
+ > img {
22
+ border-radius: 50%;
23
+ width: 40px;
24
+ }
25
+ }
26
+
27
+ .user-header__heading {
28
+ margin-bottom: 0;
29
+ }
30
+
31
+ .user-nickname {
32
+ color: var(--emphasis-low);
33
+ @extend .body-4;
34
+
35
+ .user-contact_link {
36
+ margin-left: 0.5rem;
37
+ }
38
+ }
39
+
40
+ .account-notification {
41
+ display: flex;
42
+
43
+ &.callout.flash {
44
+ margin-bottom: 1rem;
45
+ }
46
+ }
47
+
48
+ .badge-card__content {
49
+ @extend .card__content;
50
+
51
+ display: flex;
52
+ align-items: center;
53
+ gap: 0.62rem;
54
+
55
+ .icon {
56
+ height: 1.5em;
57
+ width: 1.5em;
58
+ margin-right: 0.7em;
59
+ vertical-align: middle;
60
+ }
61
+ }
62
+
63
+ .profile--sidebar--title {
64
+ @extend .body-4;
65
+ }
66
+ .o-profiles,
67
+ .o-user_conversations {
68
+ .columns.medium-3 {
69
+ .medium-8.medium-centered {
70
+ text-align: center;
71
+
72
+ .text-center {
73
+ display: inline-block;
74
+ padding: 0.6rem 0.3rem;
75
+ width: 100%;
76
+ }
77
+ }
78
+ }
79
+ }
80
+ .o-user_timeline,
81
+ .o-user_activities,
82
+ .o-profiles {
83
+ form.new_filter > .columns,
84
+ .filters__section {
85
+ padding: 0;
86
+ margin: 0;
87
+ }
88
+ .medium-9 {
89
+ padding-left: 0;
90
+ padding-right: 0;
91
+ }
92
+ .medium-centered {
93
+ text-align: center;
94
+
95
+ .button {
96
+ margin-bottom: 1rem;
97
+ width: 100%;
98
+ &.follow-button {
99
+ @extend .btn;
100
+ @extend .btn--primary;
101
+ @extend .btn--medium;
102
+ text-wrap: nowrap;
103
+ }
104
+ }
105
+ }
106
+ }
107
+ .profile--sidebar {
108
+ margin-top: 0px;
109
+ border-radius: $card-border-radius;
110
+ .user-report_link,
111
+ .user-contact_link {
112
+ display: inline-block;
113
+ a,
114
+ button {
115
+ padding: 0.6rem;
116
+ padding-left: 0;
117
+ @extend .body-4-link;
118
+ &:hover {
119
+ cursor: pointer;
120
+ opacity: 0.67;
121
+ }
122
+ }
123
+ svg {
124
+ width: 14px;
125
+ height: 14px;
126
+ }
127
+ }
128
+ .card__content {
129
+ padding: 1rem;
130
+ padding-bottom: 0;
131
+ }
132
+ .card__support {
133
+ strong {
134
+ font-weight: normal;
135
+ }
136
+ .card__text--separated-mid-dot a {
137
+ width: 100%;
138
+ display: inline-block;
139
+ padding: 0.2rem 0;
140
+ }
141
+ }
142
+ .card__footer .flex--cc.p-s {
143
+ margin: 1rem 0rem;
144
+ justify-content: space-around;
145
+ a {
146
+ text-align: center;
147
+ @extend .mini-title;
148
+ display: flex;
149
+ align-items: center;
150
+ justify-content: center;
151
+ flex-direction: column;
152
+ &:hover,
153
+ &:focus {
154
+ color: var(--emphasis-low);
155
+ text-decoration: none;
156
+ }
157
+ &:hover .heading2 {
158
+ text-decoration: underline;
159
+ }
160
+ .heading2 {
161
+ @extend .heading-3;
162
+ @extend .heading-3-bold;
163
+ @extend .heading-3-link;
164
+ }
165
+ }
166
+ }
167
+ .card__image.card__image--larger {
168
+ position: static !important;
169
+ border-top-left-radius: $card-border-radius;
170
+ border-top-right-radius: $card-border-radius;
171
+ }
172
+ .text-small {
173
+ @extend .body-4;
174
+ color: var(--emphasis-low);
175
+ }
176
+ small {
177
+ @extend .body-5;
178
+ color: var(--emphasis-low);
179
+ }
180
+ a {
181
+ @extend .body-5;
182
+ display: block;
183
+ }
184
+ }
@@ -0,0 +1,82 @@
1
+ .diff-direction-label {
2
+ display: block;
3
+ @extend .body-4;
4
+ margin-bottom: 0.25rem;
5
+ color: var(--emphasis-lowest);
6
+ }
7
+ .diff-view-by + div {
8
+ .card {
9
+ box-shadow: none;
10
+ border-radius: 0.35rem;
11
+ }
12
+ .section-heading {
13
+ @extend .body-4;
14
+ color: var(--emphasis-med);
15
+ }
16
+ }
17
+ .diff {
18
+ ul {
19
+ list-style: none;
20
+ margin: 0;
21
+ padding: 0;
22
+ width: 100%;
23
+ background: transparent;
24
+ min-height: 0;
25
+ }
26
+
27
+ del,
28
+ ins,
29
+ span {
30
+ white-space: pre-wrap;
31
+ }
32
+
33
+ del,
34
+ ins {
35
+ display: block;
36
+ text-decoration: none;
37
+ }
38
+
39
+ del strong {
40
+ font-weight: normal;
41
+ background: scale-color($color-removal, $lightness: -8%);
42
+ }
43
+
44
+ ins strong {
45
+ font-weight: normal;
46
+ background: scale-color($color-addition, $lightness: -8%);
47
+ }
48
+
49
+ li {
50
+ position: relative;
51
+ padding: 0.5rem 1rem 0.5rem 1.5rem;
52
+ margin: 0;
53
+
54
+ &.ins,
55
+ &.del {
56
+ .symbol {
57
+ position: absolute;
58
+ left: 0.5rem;
59
+ top: 0.5rem;
60
+ width: 1rem;
61
+ }
62
+ }
63
+
64
+ &.ins {
65
+ background: $color-addition;
66
+ color: scale-color($color-addition, $lightness: -75%, $saturation: -75%);
67
+ }
68
+
69
+ &.del {
70
+ background: $color-removal;
71
+ color: scale-color($color-removal, $lightness: -75%, $saturation: -75%);
72
+ }
73
+
74
+ .diff-comment {
75
+ display: none;
76
+ }
77
+
78
+ .diff-block-info {
79
+ background: none repeat scroll 0 0 var(--grey2);
80
+ }
81
+ }
82
+ }
@@ -0,0 +1,3 @@
1
+ .wrapper.wrapper--inner {
2
+ background-color: var(--white);
3
+ }
data/config/assets.rb ADDED
@@ -0,0 +1,17 @@
1
+ base_path = File.expand_path("..", __dir__)
2
+
3
+ Decidim::Webpacker.register_path("#{base_path}/app/packs")
4
+
5
+ Decidim::Webpacker.register_entrypoints(
6
+ decidim_theme_polyfill: "#{base_path}/app/packs/entrypoints/decidim_theme_polyfill.js",
7
+ decidim_theme_email: "#{base_path}/app/packs/entrypoints/decidim_theme_email.js",
8
+ )
9
+
10
+ Decidim::Webpacker.register_stylesheet_import(
11
+ "stylesheets/decidim/theme/theme_settings",
12
+ type: :settings
13
+ )
14
+
15
+ Decidim::Webpacker.register_stylesheet_import(
16
+ "stylesheets/decidim/theme/theme"
17
+ )
@@ -0,0 +1,10 @@
1
+ ---
2
+
3
+ base_locale: en
4
+ locales: [en]
5
+
6
+ ignore_unused:
7
+ - "decidim.components.theme.name"
8
+
9
+ ignore_missing:
10
+ - decidim.participatory_processes.scopes.global
@@ -0,0 +1,62 @@
1
+ ---
2
+ en:
3
+ decidim:
4
+ metrics:
5
+ accepted_proposals:
6
+ title: Accepted proposals
7
+ object: accepted_proposals
8
+ description: Accepted proposals
9
+ debates:
10
+ title: Debates
11
+ object: debates
12
+ description: Debates
13
+ survey_answers:
14
+ title: Surveys Answers
15
+ object: surveys_answers
16
+ description: Surveys Answers
17
+ meetings:
18
+ title: Meetings
19
+ object: meetings
20
+ description: Meetings
21
+ comments:
22
+ title: Comments
23
+ object: comments
24
+ description: Comments
25
+ layouts:
26
+ decidim:
27
+ main_footer:
28
+ sections:
29
+ activities: Activities
30
+ more: More
31
+ social: Social
32
+ admin_dashboard: "Administration"
33
+ sign_out: "Sign out"
34
+ social_media_links:
35
+ twitter: Twitter
36
+ youtube: Youtube
37
+ github: Github
38
+ facebook: Facebook
39
+ instagram: Instagram
40
+ participatory_process_groups:
41
+ participatory_process_group:
42
+ browse_resource: Browse
43
+ processes_count: 'Processes:'
44
+ participatory_process_widgets:
45
+ show:
46
+ active_step: Active phase
47
+ take_part: Take part
48
+ participatory_processes:
49
+ index:
50
+ promoted_processes: Highlighted processes
51
+ participatory_process:
52
+ active_step: 'Current phase:'
53
+ more_info: More info
54
+ more_info_about: More info
55
+ take_part: Take part
56
+ take_part_in: Take part
57
+ promoted_process:
58
+ active_step: 'Current phase:'
59
+ more_info: More info
60
+ more_info_about: More info
61
+ take_part: Take part
62
+ take_part_in: Take part
@@ -0,0 +1,11 @@
1
+ ---
2
+ fr:
3
+ layouts:
4
+ decidim:
5
+ main_footer:
6
+ sections:
7
+ activities: Activités
8
+ more: Autre
9
+ social: Réseau Sociaux
10
+ admin_dashboard: "Administration"
11
+ sign_out: "Se déconnecter"
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Theme
5
+ # This module contains all the domain logic associated to Decidim's Theme
6
+ # component admin panel.
7
+ module Admin
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Theme
5
+ # This is the engine that runs on the public interface of `Theme`.
6
+ class AdminEngine < ::Rails::Engine
7
+ isolate_namespace Decidim::Theme::Admin
8
+
9
+ paths["db/migrate"] = nil
10
+ paths["lib/tasks"] = nil
11
+
12
+ routes do
13
+ # Add admin engine routes here
14
+ # resources :theme do
15
+ # collection do
16
+ # resources :exports, only: [:create]
17
+ # end
18
+ # end
19
+ # root to: "theme#index"
20
+ end
21
+
22
+ def load_seed
23
+ nil
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails"
4
+ require "decidim/core"
5
+ require "deface"
6
+ module Decidim
7
+ module Theme
8
+ # This is the engine that runs on the public interface of theme.
9
+ class Engine < ::Rails::Engine
10
+ isolate_namespace Decidim::Theme
11
+
12
+ routes do
13
+ # Add engine routes here
14
+ # resources :theme
15
+ # root to: "theme#index"
16
+ end
17
+
18
+ initializer "decidim-theme.webpacker.assets_path" do
19
+ Decidim.register_assets_path File.expand_path("app/packs", root)
20
+ end
21
+
22
+ initializer "decidim-theme.add_cells_view_paths" do
23
+ Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Theme::Engine.root}/app/cells")
24
+ Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Theme::Engine.root}/app/views")
25
+ end
26
+
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "decidim/core/test/factories"
4
+
5
+ FactoryBot.define do
6
+ factory :theme_component, parent: :component do
7
+ name { Decidim::Components::Namer.new(participatory_space.organization.available_locales, :theme).i18n_name }
8
+ manifest_name :theme
9
+ participatory_space { create(:participatory_process, :with_steps) }
10
+ end
11
+
12
+ # Add engine factories here
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ # This holds the decidim-meetings version.
5
+ module Theme
6
+ def self.version
7
+ "0.1.4"
8
+ end
9
+ def self.decidim_version
10
+ "~> 0.26"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+ require "deface"
3
+ require "decidim/theme/admin"
4
+ require "decidim/theme/engine"
5
+ require "decidim/theme/admin_engine"
6
+
7
+ module Decidim
8
+ # This namespace holds the logic of the `Theme` component. This component
9
+ # allows users to create theme in a participatory space.
10
+ module Theme
11
+ end
12
+ end