moduler 0.6.0 → 0.8.0
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.
- checksums.yaml +4 -4
- data/app/assets/builds/moduler/tailwind.css +46 -0
- data/app/assets/javascripts/moduler/controllers/dropdown_controller.js +12 -0
- data/app/controllers/concerns/moduler/organization_scoped.rb +32 -0
- data/app/controllers/moduler/application_controller.rb +16 -1
- data/app/controllers/moduler/home_controller.rb +3 -1
- data/app/controllers/moduler/organizations_controller.rb +13 -0
- data/app/models/moduler/current.rb +1 -1
- data/app/models/moduler/membership.rb +2 -0
- data/app/views/moduler/common/_organization_switcher.html.erb +29 -0
- data/app/views/moduler/common/_sidebar.html.erb +6 -2
- data/app/views/moduler/common/administration/_sidebar.html.erb +1 -1
- data/app/views/moduler/home/index.html.erb +22 -4
- data/app/views/moduler/organizations/show.html.erb +7 -0
- data/config/locales/moduler/common/en.yml +6 -0
- data/config/locales/moduler/en.yml +1 -0
- data/config/locales/moduler/home/en.yml +7 -0
- data/config/routes.rb +2 -0
- data/lib/moduler/configuration.rb +40 -0
- data/lib/moduler/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 38043a542a46b3fab8f574d2c177a80e2c79bbbd5a6303ace0e5e21d0d7e3ca5
|
|
4
|
+
data.tar.gz: 4d8f5c2a53e892702bbc5f9ccce4cfdfa8bc78a7c18d8b667199afb0d97f5550
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8bb6e309397bf8ada31a4cfd5925164b2ef3dcf4d234434ce9dd41205aa210d45117e04782e8b7a8d945d5b9b4c98c3643dc1aa65f7e69f8bb6eebffa6b783a7
|
|
7
|
+
data.tar.gz: 90e433d24a4aa2f3a2b992a14e5909d77a065f160ab3f6c97b318849e10d9ba25e68660350d885a56ebc714496d7cc86353d72f9139022239dc016561f6c23e3
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
--text-xl: 1.25rem;
|
|
55
55
|
--text-xl--line-height: calc(1.75 / 1.25);
|
|
56
56
|
--text-2xl: 1.5rem;
|
|
57
|
+
--text-2xl--line-height: calc(2 / 1.5);
|
|
57
58
|
--font-weight-medium: 500;
|
|
58
59
|
--font-weight-semibold: 600;
|
|
59
60
|
--font-weight-bold: 700;
|
|
@@ -232,6 +233,9 @@
|
|
|
232
233
|
.inset-0 {
|
|
233
234
|
inset: calc(var(--spacing) * 0);
|
|
234
235
|
}
|
|
236
|
+
.inset-x-2 {
|
|
237
|
+
inset-inline: calc(var(--spacing) * 2);
|
|
238
|
+
}
|
|
235
239
|
.start {
|
|
236
240
|
inset-inline-start: var(--spacing);
|
|
237
241
|
}
|
|
@@ -244,6 +248,9 @@
|
|
|
244
248
|
.right-4 {
|
|
245
249
|
right: calc(var(--spacing) * 4);
|
|
246
250
|
}
|
|
251
|
+
.z-10 {
|
|
252
|
+
z-index: 10;
|
|
253
|
+
}
|
|
247
254
|
.z-50 {
|
|
248
255
|
z-index: 50;
|
|
249
256
|
}
|
|
@@ -930,6 +937,10 @@
|
|
|
930
937
|
.table {
|
|
931
938
|
display: table;
|
|
932
939
|
}
|
|
940
|
+
.size-4 {
|
|
941
|
+
width: calc(var(--spacing) * 4);
|
|
942
|
+
height: calc(var(--spacing) * 4);
|
|
943
|
+
}
|
|
933
944
|
.size-5 {
|
|
934
945
|
width: calc(var(--spacing) * 5);
|
|
935
946
|
height: calc(var(--spacing) * 5);
|
|
@@ -947,6 +958,9 @@
|
|
|
947
958
|
.h-16 {
|
|
948
959
|
height: calc(var(--spacing) * 16);
|
|
949
960
|
}
|
|
961
|
+
.max-h-72 {
|
|
962
|
+
max-height: calc(var(--spacing) * 72);
|
|
963
|
+
}
|
|
950
964
|
.min-h-9 {
|
|
951
965
|
min-height: calc(var(--spacing) * 9);
|
|
952
966
|
}
|
|
@@ -1002,6 +1016,9 @@
|
|
|
1002
1016
|
.cursor-pointer {
|
|
1003
1017
|
cursor: pointer;
|
|
1004
1018
|
}
|
|
1019
|
+
.list-none {
|
|
1020
|
+
list-style-type: none;
|
|
1021
|
+
}
|
|
1005
1022
|
.flex-col {
|
|
1006
1023
|
flex-direction: column;
|
|
1007
1024
|
}
|
|
@@ -1096,6 +1113,9 @@
|
|
|
1096
1113
|
.overflow-x-auto {
|
|
1097
1114
|
overflow-x: auto;
|
|
1098
1115
|
}
|
|
1116
|
+
.overflow-y-auto {
|
|
1117
|
+
overflow-y: auto;
|
|
1118
|
+
}
|
|
1099
1119
|
.rounded {
|
|
1100
1120
|
border-radius: 0.25rem;
|
|
1101
1121
|
}
|
|
@@ -1212,6 +1232,9 @@
|
|
|
1212
1232
|
.bg-yellow-100 {
|
|
1213
1233
|
background-color: var(--color-yellow-100);
|
|
1214
1234
|
}
|
|
1235
|
+
.p-1 {
|
|
1236
|
+
padding: calc(var(--spacing) * 1);
|
|
1237
|
+
}
|
|
1215
1238
|
.p-2 {
|
|
1216
1239
|
padding: calc(var(--spacing) * 2);
|
|
1217
1240
|
}
|
|
@@ -1257,6 +1280,9 @@
|
|
|
1257
1280
|
.pr-10 {
|
|
1258
1281
|
padding-right: calc(var(--spacing) * 10);
|
|
1259
1282
|
}
|
|
1283
|
+
.pb-0 {
|
|
1284
|
+
padding-bottom: calc(var(--spacing) * 0);
|
|
1285
|
+
}
|
|
1260
1286
|
.pb-4 {
|
|
1261
1287
|
padding-bottom: calc(var(--spacing) * 4);
|
|
1262
1288
|
}
|
|
@@ -1437,6 +1463,11 @@
|
|
|
1437
1463
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1438
1464
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1439
1465
|
}
|
|
1466
|
+
.transition-transform {
|
|
1467
|
+
transition-property: transform, translate, scale, rotate;
|
|
1468
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1469
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1470
|
+
}
|
|
1440
1471
|
.duration-200 {
|
|
1441
1472
|
--tw-duration: 200ms;
|
|
1442
1473
|
transition-duration: 200ms;
|
|
@@ -1486,6 +1517,11 @@
|
|
|
1486
1517
|
.ring-inset {
|
|
1487
1518
|
--tw-ring-inset: inset;
|
|
1488
1519
|
}
|
|
1520
|
+
.group-open\:rotate-180 {
|
|
1521
|
+
&:is(:where(.group):is([open], :popover-open, :open) *) {
|
|
1522
|
+
rotate: 180deg;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1489
1525
|
.group-hover\:text-custom {
|
|
1490
1526
|
&:is(:where(.group):hover *) {
|
|
1491
1527
|
@media (hover: hover) {
|
|
@@ -1855,6 +1891,11 @@
|
|
|
1855
1891
|
padding-right: calc(var(--spacing) * 6);
|
|
1856
1892
|
}
|
|
1857
1893
|
}
|
|
1894
|
+
.md\:pb-2 {
|
|
1895
|
+
@media (width >= 48rem) {
|
|
1896
|
+
padding-bottom: calc(var(--spacing) * 2);
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1858
1899
|
.md\:pl-0 {
|
|
1859
1900
|
@media (width >= 48rem) {
|
|
1860
1901
|
padding-left: calc(var(--spacing) * 0);
|
|
@@ -1895,6 +1936,11 @@
|
|
|
1895
1936
|
max-width: var(--container-5xl);
|
|
1896
1937
|
}
|
|
1897
1938
|
}
|
|
1939
|
+
.\[\&\:\:-webkit-details-marker\]\:hidden {
|
|
1940
|
+
&::-webkit-details-marker {
|
|
1941
|
+
display: none;
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1898
1944
|
}
|
|
1899
1945
|
.prose-100 {
|
|
1900
1946
|
max-width: 100%;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Controller } from "@hotwired/stimulus"
|
|
2
|
+
|
|
3
|
+
// Closes a <details> dropdown on a click outside it or on Escape.
|
|
4
|
+
export default class extends Controller {
|
|
5
|
+
closeOnOutsideClick(event) {
|
|
6
|
+
if (!this.element.contains(event.target)) this.close()
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
close() {
|
|
10
|
+
this.element.open = false
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Moduler
|
|
2
|
+
# Scopes a controller to the organization in the URL
|
|
3
|
+
# (+/organizations/:organization_id/...+), available as
|
|
4
|
+
# +Current.organization+ and the +current_organization+ helper, and to the
|
|
5
|
+
# signed-in user's membership in it, available as +Current.membership+ and
|
|
6
|
+
# the +current_membership+ helper (its role's permissions are checked with
|
|
7
|
+
# +can?+). The organization is looked up among the signed-in user's organizations; for
|
|
8
|
+
# any other organization (for example after the user was removed from it)
|
|
9
|
+
# the user is redirected to the home page to choose another one. Keeping the
|
|
10
|
+
# organization in the URL lets every browser tab work in a different
|
|
11
|
+
# organization.
|
|
12
|
+
module OrganizationScoped
|
|
13
|
+
extend ActiveSupport::Concern
|
|
14
|
+
|
|
15
|
+
included do
|
|
16
|
+
before_action :set_current_organization
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
private
|
|
20
|
+
|
|
21
|
+
def set_current_organization
|
|
22
|
+
Current.membership = Current.user.memberships.includes(:organization, :role).find_by(moduler_organization_id: organization_id_param)
|
|
23
|
+
Current.organization = Current.membership&.organization
|
|
24
|
+
|
|
25
|
+
redirect_to moduler.root_path, alert: t("moduler.flash.organization_not_found") unless Current.organization
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def organization_id_param
|
|
29
|
+
params[:organization_id]
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -9,7 +9,7 @@ module Moduler
|
|
|
9
9
|
|
|
10
10
|
rescue_from Pundit::NotAuthorizedError, with: :not_authorized
|
|
11
11
|
|
|
12
|
-
helper_method :current_user
|
|
12
|
+
helper_method :current_user, :current_organization, :current_membership, :can?
|
|
13
13
|
|
|
14
14
|
private
|
|
15
15
|
|
|
@@ -17,6 +17,21 @@ module Moduler
|
|
|
17
17
|
Current.user
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
+
def current_organization
|
|
21
|
+
Current.organization
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def current_membership
|
|
25
|
+
Current.membership
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Whether the signed-in user's role in the current organization grants the
|
|
29
|
+
# permission (one of `permissions` in config/moduler.yml). Always false
|
|
30
|
+
# outside an organization (see OrganizationScoped).
|
|
31
|
+
def can?(permission)
|
|
32
|
+
current_membership&.permission?(permission) || false
|
|
33
|
+
end
|
|
34
|
+
|
|
20
35
|
def not_authorized
|
|
21
36
|
redirect_to current_home_path, alert: t("moduler.flash.not_authorized")
|
|
22
37
|
end
|
|
@@ -6,6 +6,8 @@ module Moduler
|
|
|
6
6
|
belongs_to :organization, class_name: "Moduler::Organization", foreign_key: "moduler_organization_id"
|
|
7
7
|
belongs_to :role, class_name: "Moduler::Role", foreign_key: "moduler_role_id"
|
|
8
8
|
|
|
9
|
+
delegate :permission?, to: :role
|
|
10
|
+
|
|
9
11
|
validates :user, uniqueness: { scope: :moduler_organization_id }
|
|
10
12
|
validate :user_must_be_member
|
|
11
13
|
validate :role_must_belong_to_organization
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<details class="group relative p-2 pb-0 md:pb-2" data-controller="dropdown" data-action="click@window->dropdown#closeOnOutsideClick keydown.esc@window->dropdown#close">
|
|
2
|
+
<summary class="flex cursor-pointer list-none items-center justify-between gap-2 rounded-md border border-gray-200 px-3 py-2 text-sm hover:bg-slate-50 [&::-webkit-details-marker]:hidden" aria-label="<%= t(".label") %>">
|
|
3
|
+
<span class="min-w-0">
|
|
4
|
+
<span class="block text-xs text-slate-500"><%= t(".label") %></span>
|
|
5
|
+
<span class="block truncate font-medium text-gray-900"><%= current_organization.name %></span>
|
|
6
|
+
</span>
|
|
7
|
+
<svg class="size-4 shrink-0 text-slate-400 transition-transform group-open:rotate-180" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
|
8
|
+
<path fill-rule="evenodd" d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" />
|
|
9
|
+
</svg>
|
|
10
|
+
</summary>
|
|
11
|
+
|
|
12
|
+
<ul id="organization_switcher" class="absolute inset-x-2 z-10 mt-1 max-h-72 overflow-y-auto rounded-md border border-gray-200 bg-white p-1 text-sm shadow-lg">
|
|
13
|
+
<% current_user.organizations.order(:name).each do |organization| %>
|
|
14
|
+
<li>
|
|
15
|
+
<% if organization == current_organization %>
|
|
16
|
+
<span class="flex items-center justify-between gap-2 rounded-md bg-slate-100 px-3 py-2 font-medium text-gray-900" aria-current="true">
|
|
17
|
+
<span class="truncate"><%= organization.name %></span>
|
|
18
|
+
<svg class="size-4 shrink-0" viewBox="0 0 20 20" fill="currentColor" role="img" aria-label="<%= t(".current") %>">
|
|
19
|
+
<path fill-rule="evenodd" d="M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z" clip-rule="evenodd" />
|
|
20
|
+
</svg>
|
|
21
|
+
</span>
|
|
22
|
+
<% else %>
|
|
23
|
+
<%= link_to organization.name, moduler.organization_path(organization),
|
|
24
|
+
class: "block truncate rounded-md px-3 py-2 text-slate-500 hover:bg-slate-50 hover:text-gray-900" %>
|
|
25
|
+
<% end %>
|
|
26
|
+
</li>
|
|
27
|
+
<% end %>
|
|
28
|
+
</ul>
|
|
29
|
+
</details>
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
<aside class="-mx-4 border-b border-gray-200 px-2 md:mx-0 md:w-1/8 md:shrink-0 md:border-b-0 md:border-r md:px-0">
|
|
2
|
+
<%= render "moduler/common/organization_switcher" %>
|
|
3
|
+
|
|
2
4
|
<nav class="flex gap-1 overflow-x-auto md:flex-col text-sm p-2">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
<%= render(Moduler::SidebarActionComponent.new(t(".action.dashboard"), moduler.organization_path(current_organization), "moduler/organizations")) %>
|
|
6
|
+
<% Moduler.configuration.resources.each do |resource| %>
|
|
7
|
+
<% next if resource.permission && !can?(resource.permission) %>
|
|
8
|
+
<%= render(Moduler::SidebarActionComponent.new(t(".action.#{resource.name}"), moduler.url_for([current_organization, resource.name.to_sym]), "moduler/#{resource.name}")) %>
|
|
5
9
|
<% end %>
|
|
6
10
|
</nav>
|
|
7
11
|
</aside>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
<div role="separator" class="mx-1 w-px shrink-0 self-stretch bg-gray-200 md:mx-0 md:my-2 md:h-px md:w-auto"></div>
|
|
17
17
|
|
|
18
|
-
<%
|
|
18
|
+
<% Moduler.configuration.administration_resources.each do |resource| %>
|
|
19
19
|
<%= render(Moduler::SidebarActionComponent.new(t(".action.#{resource}"), moduler.url_for([:administration, resource.to_sym]), "moduler/administration/#{resource}")) %>
|
|
20
20
|
<% end %>
|
|
21
21
|
</nav>
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
<main class="mx-auto flex w-full
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<main class="mx-auto flex w-full max-w-2xl flex-1 flex-col px-4 py-8">
|
|
2
|
+
<div class="mb-6">
|
|
3
|
+
<h1 class="text-base font-semibold text-gray-900"><%= t(".title", name: current_user.display_name) %></h1>
|
|
4
|
+
<p class="mt-1 text-sm text-slate-500"><%= t(@memberships.any? ? ".description" : ".empty") %></p>
|
|
5
5
|
</div>
|
|
6
|
+
|
|
7
|
+
<% if @memberships.any? %>
|
|
8
|
+
<ul id="organizations" class="divide-y divide-gray-200 rounded-md border border-gray-200 bg-white">
|
|
9
|
+
<% @memberships.each do |membership| %>
|
|
10
|
+
<li id="<%= dom_id(membership.organization) %>">
|
|
11
|
+
<%= link_to moduler.organization_path(membership.organization), class: "flex items-center justify-between gap-3 px-4 py-4 hover:bg-slate-50 sm:px-5" do %>
|
|
12
|
+
<span class="min-w-0">
|
|
13
|
+
<span class="block truncate text-sm font-medium text-gray-900"><%= membership.organization.name %></span>
|
|
14
|
+
<span class="mt-1 block text-xs text-slate-400"><%= membership.role.name %></span>
|
|
15
|
+
</span>
|
|
16
|
+
<svg class="size-4 shrink-0 text-slate-400" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
|
17
|
+
<path fill-rule="evenodd" d="M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" />
|
|
18
|
+
</svg>
|
|
19
|
+
<% end %>
|
|
20
|
+
</li>
|
|
21
|
+
<% end %>
|
|
22
|
+
</ul>
|
|
23
|
+
<% end %>
|
|
6
24
|
</main>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<main class="mx-auto flex w-full flex-1 max-w-[120rem] flex-col gap-4 px-4 md:flex-row md:gap-8 md:pl-0 md:pr-6">
|
|
2
|
+
<%= render "moduler/common/sidebar" %>
|
|
3
|
+
|
|
4
|
+
<div class="flex min-w-0 flex-1 flex-col pb-4 md:mt-8">
|
|
5
|
+
<%= render(Moduler::PageHeaderComponent.new(current_organization.name)) %>
|
|
6
|
+
</div>
|
|
7
|
+
</main>
|
data/config/routes.rb
CHANGED
|
@@ -2,6 +2,11 @@ module Moduler
|
|
|
2
2
|
class Configuration
|
|
3
3
|
extend Forwardable
|
|
4
4
|
|
|
5
|
+
# A sidebar resource from config/moduler.yml: its +name+ (for the route, the
|
|
6
|
+
# translation and the active state) and the +permission+ a member needs to
|
|
7
|
+
# see it, or +nil+ when every member of the organization sees it.
|
|
8
|
+
Resource = Data.define(:name, :permission)
|
|
9
|
+
|
|
5
10
|
def_delegator :@configuration, :[]
|
|
6
11
|
def_delegator :@configuration, :dig
|
|
7
12
|
|
|
@@ -14,5 +19,40 @@ module Moduler
|
|
|
14
19
|
def permissions
|
|
15
20
|
Array(dig(:permissions)).map(&:to_s)
|
|
16
21
|
end
|
|
22
|
+
|
|
23
|
+
# Resources linked from the application sidebar, defined under `resources`
|
|
24
|
+
# in config/moduler.yml either by name or with the permission needed to see
|
|
25
|
+
# them:
|
|
26
|
+
#
|
|
27
|
+
# resources:
|
|
28
|
+
# - reports
|
|
29
|
+
# - name: tasks
|
|
30
|
+
# permission: tasks.read
|
|
31
|
+
def resources
|
|
32
|
+
Array(dig(:resources)).map { |resource| build_resource(resource) }
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Resources linked from the administration sidebar, defined by name under
|
|
36
|
+
# `administration.resources` in config/moduler.yml. Administrators see all of them.
|
|
37
|
+
def administration_resources
|
|
38
|
+
Array(dig(:administration, :resources)).map { |resource| build_resource(resource).name }
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
private
|
|
42
|
+
|
|
43
|
+
def build_resource(resource)
|
|
44
|
+
return Resource.new(name: resource.to_s, permission: nil) unless resource.is_a?(Hash)
|
|
45
|
+
|
|
46
|
+
resource = resource.to_h.symbolize_keys
|
|
47
|
+
name = resource[:name].to_s
|
|
48
|
+
permission = resource[:permission]&.to_s
|
|
49
|
+
|
|
50
|
+
raise ArgumentError, "Resource in config/moduler.yml needs a name: #{resource.inspect}" if name.blank?
|
|
51
|
+
if permission && !permissions.include?(permission)
|
|
52
|
+
raise ArgumentError, "Permission #{permission.inspect} of the #{name} resource is not defined under permissions in config/moduler.yml"
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
Resource.new(name:, permission:)
|
|
56
|
+
end
|
|
17
57
|
end
|
|
18
58
|
end
|
data/lib/moduler/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moduler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomasz Kowalewski
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-11-
|
|
10
|
+
date: 2026-11-12 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rails
|
|
@@ -221,6 +221,7 @@ files:
|
|
|
221
221
|
- app/assets/javascripts/moduler/application.js
|
|
222
222
|
- app/assets/javascripts/moduler/controllers/attachments_controller.js
|
|
223
223
|
- app/assets/javascripts/moduler/controllers/dependent_select_controller.js
|
|
224
|
+
- app/assets/javascripts/moduler/controllers/dropdown_controller.js
|
|
224
225
|
- app/assets/javascripts/moduler/controllers/flash_controller.js
|
|
225
226
|
- app/assets/javascripts/moduler/controllers/select_all_controller.js
|
|
226
227
|
- app/assets/javascripts/moduler/controllers/wysiwyg_controller.js
|
|
@@ -270,6 +271,7 @@ files:
|
|
|
270
271
|
- app/components/moduler/sidebar_action_component.html.erb
|
|
271
272
|
- app/components/moduler/sidebar_action_component.rb
|
|
272
273
|
- app/controllers/concerns/moduler/authentication.rb
|
|
274
|
+
- app/controllers/concerns/moduler/organization_scoped.rb
|
|
273
275
|
- app/controllers/concerns/moduler/require_document_acceptance.rb
|
|
274
276
|
- app/controllers/concerns/moduler/restrict_administrator_access.rb
|
|
275
277
|
- app/controllers/moduler/administration/application_controller.rb
|
|
@@ -288,6 +290,7 @@ files:
|
|
|
288
290
|
- app/controllers/moduler/articles_controller.rb
|
|
289
291
|
- app/controllers/moduler/document_acceptances_controller.rb
|
|
290
292
|
- app/controllers/moduler/home_controller.rb
|
|
293
|
+
- app/controllers/moduler/organizations_controller.rb
|
|
291
294
|
- app/controllers/moduler/profile/sent_emails_controller.rb
|
|
292
295
|
- app/controllers/moduler/profile/sessions/revocation_controller.rb
|
|
293
296
|
- app/controllers/moduler/profile/sessions_controller.rb
|
|
@@ -388,6 +391,7 @@ files:
|
|
|
388
391
|
- app/views/moduler/articles/show.html.erb
|
|
389
392
|
- app/views/moduler/common/_flash.html.erb
|
|
390
393
|
- app/views/moduler/common/_header.html.erb
|
|
394
|
+
- app/views/moduler/common/_organization_switcher.html.erb
|
|
391
395
|
- app/views/moduler/common/_sidebar.html.erb
|
|
392
396
|
- app/views/moduler/common/administration/_sidebar.html.erb
|
|
393
397
|
- app/views/moduler/common/profile/_sidebar.html.erb
|
|
@@ -395,6 +399,7 @@ files:
|
|
|
395
399
|
- app/views/moduler/email_mailer/custom.html.erb
|
|
396
400
|
- app/views/moduler/email_mailer/custom.text.erb
|
|
397
401
|
- app/views/moduler/home/index.html.erb
|
|
402
|
+
- app/views/moduler/organizations/show.html.erb
|
|
398
403
|
- app/views/moduler/profile/edit.html.erb
|
|
399
404
|
- app/views/moduler/profile/sent_emails/index.html.erb
|
|
400
405
|
- app/views/moduler/profile/sessions/_session.html.erb
|
|
@@ -416,6 +421,7 @@ files:
|
|
|
416
421
|
- config/locales/moduler/components/en.yml
|
|
417
422
|
- config/locales/moduler/document_acceptances/en.yml
|
|
418
423
|
- config/locales/moduler/en.yml
|
|
424
|
+
- config/locales/moduler/home/en.yml
|
|
419
425
|
- config/locales/moduler/models/en.yml
|
|
420
426
|
- config/locales/moduler/profile/en.yml
|
|
421
427
|
- config/locales/moduler/profile/sent_emails/en.yml
|