moduler 0.5.0 → 0.7.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 +95 -0
- data/app/assets/javascripts/moduler/controllers/attachments_controller.js +30 -0
- data/app/assets/javascripts/moduler/controllers/dependent_select_controller.js +19 -0
- data/app/assets/javascripts/moduler/controllers/dropdown_controller.js +12 -0
- data/app/assets/javascripts/moduler/controllers/select_all_controller.js +15 -0
- data/app/components/moduler/filter_component.html.erb +9 -1
- data/app/components/moduler/filter_component.rb +12 -0
- data/app/components/moduler/form/attachments_component.html.erb +32 -0
- data/app/components/moduler/form/attachments_component.rb +28 -0
- data/app/components/moduler/form/checkboxes_component.html.erb +19 -0
- data/app/components/moduler/form/checkboxes_component.rb +13 -0
- data/app/components/moduler/form/select_component.html.erb +1 -1
- data/app/components/moduler/form/select_component.rb +5 -0
- data/app/components/moduler/form/wysiwyg_component.rb +1 -1
- data/app/controllers/concerns/moduler/authentication.rb +1 -1
- data/app/controllers/concerns/moduler/organization_scoped.rb +29 -0
- data/app/controllers/concerns/moduler/restrict_administrator_access.rb +32 -0
- data/app/controllers/moduler/administration/application_controller.rb +1 -0
- data/app/controllers/moduler/administration/articles_controller.rb +1 -1
- data/app/controllers/moduler/administration/emails/deliveries_controller.rb +42 -0
- data/app/controllers/moduler/administration/emails_controller.rb +68 -0
- data/app/controllers/moduler/administration/memberships_controller.rb +62 -0
- data/app/controllers/moduler/administration/organizations_controller.rb +51 -0
- data/app/controllers/moduler/administration/preferences_controller.rb +57 -0
- data/app/controllers/moduler/administration/roles_controller.rb +56 -0
- data/app/controllers/moduler/administration/users_controller.rb +2 -2
- data/app/controllers/moduler/application_controller.rb +7 -2
- data/app/controllers/moduler/articles_controller.rb +3 -2
- data/app/controllers/moduler/home_controller.rb +3 -1
- data/app/controllers/moduler/organizations_controller.rb +13 -0
- data/app/controllers/moduler/profile/sent_emails_controller.rb +18 -0
- data/app/controllers/moduler/profile/sessions/revocation_controller.rb +1 -0
- data/app/controllers/moduler/profile/sessions_controller.rb +1 -0
- data/app/controllers/moduler/profile_controller.rb +4 -1
- data/app/controllers/moduler/sessions_controller.rb +1 -0
- data/app/controllers/moduler/users_controller.rb +2 -0
- data/app/filters/email_delivery_filter.rb +35 -0
- data/app/filters/organization_query_filter.rb +23 -0
- data/app/jobs/moduler/email_delivery_job.rb +14 -0
- data/app/lib/moduler/form_builder.rb +17 -3
- data/app/mailers/moduler/application_mailer.rb +27 -1
- data/app/mailers/moduler/email_mailer.rb +14 -0
- data/app/models/moduler/article.rb +2 -0
- data/app/models/moduler/current.rb +1 -1
- data/app/models/moduler/email.rb +59 -0
- data/app/models/moduler/membership.rb +25 -0
- data/app/models/moduler/organization.rb +13 -0
- data/app/models/moduler/preference.rb +44 -0
- data/app/models/moduler/role.rb +26 -0
- data/app/models/moduler/sent_email.rb +13 -0
- data/app/models/moduler/user.rb +13 -1
- data/app/models/moduler/user_email.rb +15 -0
- data/app/policies/moduler/administration/email_policy.rb +26 -0
- data/app/policies/moduler/administration/membership_policy.rb +29 -0
- data/app/policies/moduler/administration/organization_policy.rb +25 -0
- data/app/policies/moduler/administration/preference_policy.rb +29 -0
- data/app/policies/moduler/administration/role_policy.rb +25 -0
- data/app/views/layouts/moduler/mailer.html.erb +30 -0
- data/app/views/layouts/moduler/mailer.text.erb +1 -0
- data/app/views/moduler/administration/articles/_article.html.erb +2 -0
- data/app/views/moduler/administration/articles/_form.html.erb +1 -0
- data/app/views/moduler/administration/emails/_email.html.erb +33 -0
- data/app/views/moduler/administration/emails/_form.html.erb +23 -0
- data/app/views/moduler/administration/emails/deliveries/new.html.erb +58 -0
- data/app/views/moduler/administration/emails/edit.html.erb +1 -0
- data/app/views/moduler/administration/emails/index.html.erb +13 -0
- data/app/views/moduler/administration/emails/new.html.erb +1 -0
- data/app/views/moduler/administration/memberships/_form.html.erb +38 -0
- data/app/views/moduler/administration/memberships/_membership.html.erb +23 -0
- data/app/views/moduler/administration/memberships/edit.html.erb +1 -0
- data/app/views/moduler/administration/memberships/index.html.erb +14 -0
- data/app/views/moduler/administration/memberships/new.html.erb +1 -0
- data/app/views/moduler/administration/organizations/_form.html.erb +13 -0
- data/app/views/moduler/administration/organizations/_organization.html.erb +23 -0
- data/app/views/moduler/administration/organizations/edit.html.erb +1 -0
- data/app/views/moduler/administration/organizations/index.html.erb +13 -0
- data/app/views/moduler/administration/organizations/new.html.erb +1 -0
- data/app/views/moduler/administration/preferences/_form.html.erb +16 -0
- data/app/views/moduler/administration/preferences/_preference.html.erb +24 -0
- data/app/views/moduler/administration/preferences/edit.html.erb +1 -0
- data/app/views/moduler/administration/preferences/index.html.erb +13 -0
- data/app/views/moduler/administration/preferences/new.html.erb +1 -0
- data/app/views/moduler/administration/roles/_form.html.erb +24 -0
- data/app/views/moduler/administration/roles/_role.html.erb +15 -0
- data/app/views/moduler/administration/roles/edit.html.erb +1 -0
- data/app/views/moduler/administration/roles/index.html.erb +14 -0
- data/app/views/moduler/administration/roles/new.html.erb +1 -0
- data/app/views/moduler/administration/users/_user.html.erb +4 -0
- data/app/views/moduler/administration/users/edit.html.erb +1 -0
- data/app/views/moduler/administration/users/new.html.erb +1 -0
- data/app/views/moduler/common/_header.html.erb +2 -7
- data/app/views/moduler/common/_organization_switcher.html.erb +29 -0
- data/app/views/moduler/common/_sidebar.html.erb +4 -1
- data/app/views/moduler/common/administration/_sidebar.html.erb +9 -0
- data/app/views/moduler/common/profile/_sidebar.html.erb +1 -0
- data/app/views/moduler/email_mailer/custom.html.erb +3 -0
- data/app/views/moduler/email_mailer/custom.text.erb +1 -0
- data/app/views/moduler/home/index.html.erb +22 -4
- data/app/views/moduler/organizations/show.html.erb +7 -0
- data/app/views/moduler/profile/edit.html.erb +1 -0
- data/app/views/moduler/profile/sent_emails/index.html.erb +26 -0
- data/config/locales/moduler/administration/articles/en.yml +5 -0
- data/config/locales/moduler/administration/emails/en.yml +75 -0
- data/config/locales/moduler/administration/memberships/en.yml +35 -0
- data/config/locales/moduler/administration/organizations/en.yml +26 -0
- data/config/locales/moduler/administration/preferences/en.yml +44 -0
- data/config/locales/moduler/administration/roles/en.yml +32 -0
- data/config/locales/moduler/administration/users/en.yml +6 -1
- data/config/locales/moduler/common/en.yml +12 -1
- data/config/locales/moduler/components/en.yml +5 -0
- data/config/locales/moduler/en.yml +1 -0
- data/config/locales/moduler/home/en.yml +7 -0
- data/config/locales/moduler/models/en.yml +8 -0
- data/config/locales/moduler/profile/en.yml +2 -0
- data/config/locales/moduler/profile/sent_emails/en.yml +11 -0
- data/config/routes.rb +12 -0
- data/db/migrate/20261111113522_create_moduler_organizations.rb +11 -0
- data/db/migrate/20261111150000_create_moduler_roles.rb +13 -0
- data/db/migrate/20261111160000_create_moduler_memberships.rb +13 -0
- data/db/migrate/20261111180000_add_name_to_moduler_users.rb +5 -0
- data/db/migrate/20261111190000_add_status_to_moduler_articles.rb +8 -0
- data/db/migrate/20261111200000_create_moduler_preferences.rb +13 -0
- data/db/migrate/20261111210000_create_moduler_emails.rb +15 -0
- data/db/migrate/20261111210001_create_moduler_user_emails.rb +13 -0
- data/db/migrate/20261111210002_create_moduler_sent_emails.rb +12 -0
- data/lib/moduler/configuration.rb +6 -0
- data/lib/moduler/version.rb +1 -1
- metadata +86 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
en:
|
|
2
|
+
moduler:
|
|
3
|
+
administration:
|
|
4
|
+
roles:
|
|
5
|
+
index:
|
|
6
|
+
title: Roles
|
|
7
|
+
description: Roles members of organizations can have and the permissions they grant
|
|
8
|
+
empty: No roles found
|
|
9
|
+
action:
|
|
10
|
+
new: Create
|
|
11
|
+
role:
|
|
12
|
+
permissions:
|
|
13
|
+
zero: No permissions
|
|
14
|
+
one: 1 permission
|
|
15
|
+
other: "%{count} permissions"
|
|
16
|
+
created: Created %{time} ago
|
|
17
|
+
action:
|
|
18
|
+
edit: Edit
|
|
19
|
+
create:
|
|
20
|
+
notice: Role has been created
|
|
21
|
+
update:
|
|
22
|
+
notice: Role has been updated
|
|
23
|
+
form:
|
|
24
|
+
title: Role
|
|
25
|
+
label:
|
|
26
|
+
organization: Organization
|
|
27
|
+
name: Name
|
|
28
|
+
permissions: Permissions
|
|
29
|
+
description:
|
|
30
|
+
organization_locked: The organization cannot be changed.
|
|
31
|
+
action:
|
|
32
|
+
save: Save
|
|
@@ -11,7 +11,7 @@ en:
|
|
|
11
11
|
inactive: Inactive
|
|
12
12
|
index:
|
|
13
13
|
title: Users
|
|
14
|
-
description: Manage user accounts and their roles. Search users by email address.
|
|
14
|
+
description: Manage user accounts and their roles. Search users by email address or name.
|
|
15
15
|
empty: No users found.
|
|
16
16
|
action:
|
|
17
17
|
new: Create
|
|
@@ -19,10 +19,12 @@ en:
|
|
|
19
19
|
title: New user
|
|
20
20
|
label:
|
|
21
21
|
email_address: Email address
|
|
22
|
+
name: Name
|
|
22
23
|
role: Role
|
|
23
24
|
status: Status
|
|
24
25
|
password: Password
|
|
25
26
|
description:
|
|
27
|
+
name: Optional. Shown instead of the email address.
|
|
26
28
|
password: Use at least 8 characters.
|
|
27
29
|
section:
|
|
28
30
|
data: User data
|
|
@@ -35,8 +37,11 @@ en:
|
|
|
35
37
|
title: Edit user
|
|
36
38
|
label:
|
|
37
39
|
email_address: Email address
|
|
40
|
+
name: Name
|
|
38
41
|
role: Role
|
|
39
42
|
status: Status
|
|
43
|
+
description:
|
|
44
|
+
name: Optional. Shown instead of the email address.
|
|
40
45
|
section:
|
|
41
46
|
data: User data
|
|
42
47
|
action:
|
|
@@ -8,14 +8,25 @@ en:
|
|
|
8
8
|
sessions: Sessions
|
|
9
9
|
articles: Articles
|
|
10
10
|
documents: Documents
|
|
11
|
+
emails: Emails
|
|
12
|
+
preferences: Preferences
|
|
13
|
+
organizations: Organizations
|
|
14
|
+
roles: Roles
|
|
15
|
+
memberships: Members
|
|
16
|
+
organization_switcher:
|
|
17
|
+
label: Organization
|
|
18
|
+
current: Current organization
|
|
19
|
+
sidebar:
|
|
20
|
+
action:
|
|
21
|
+
dashboard: Dashboard
|
|
11
22
|
profile:
|
|
12
23
|
sidebar:
|
|
13
24
|
action:
|
|
14
25
|
profile: Profile
|
|
15
26
|
sessions: Sessions
|
|
27
|
+
sent_emails: Emails
|
|
16
28
|
header:
|
|
17
29
|
nav:
|
|
18
|
-
administration: Administration
|
|
19
30
|
home: Home
|
|
20
31
|
action:
|
|
21
32
|
sign_out: Sign out
|
|
@@ -4,12 +4,17 @@ en:
|
|
|
4
4
|
filter:
|
|
5
5
|
placeholder:
|
|
6
6
|
query: Search...
|
|
7
|
+
organization: All organizations
|
|
7
8
|
action:
|
|
8
9
|
filter: Filter
|
|
9
10
|
clear: Clear
|
|
10
11
|
list:
|
|
11
12
|
empty: No results found.
|
|
12
13
|
form:
|
|
14
|
+
attachments:
|
|
15
|
+
action:
|
|
16
|
+
add: Add attachment
|
|
17
|
+
remove: Remove
|
|
13
18
|
wysiwyg:
|
|
14
19
|
action:
|
|
15
20
|
bold: B
|
|
@@ -5,10 +5,12 @@ en:
|
|
|
5
5
|
title: Profile
|
|
6
6
|
label:
|
|
7
7
|
email_address: Email address
|
|
8
|
+
name: Name
|
|
8
9
|
password: New password
|
|
9
10
|
password_confirmation: Confirm new password
|
|
10
11
|
password_challenge: Current password
|
|
11
12
|
description:
|
|
13
|
+
name: Optional. Shown instead of your email address.
|
|
12
14
|
password_confirmation: Leave blank to keep your current password. Changing it signs out your other active sessions.
|
|
13
15
|
password_challenge: Required to save changes to password.
|
|
14
16
|
action:
|
data/config/routes.rb
CHANGED
|
@@ -6,12 +6,15 @@ Moduler::Engine.routes.draw do
|
|
|
6
6
|
|
|
7
7
|
resource :document_acceptance, only: %i[ new create ]
|
|
8
8
|
|
|
9
|
+
resources :organizations, only: :show
|
|
10
|
+
|
|
9
11
|
resource :profile, only: %i[ edit update ], controller: :profile
|
|
10
12
|
namespace :profile do
|
|
11
13
|
namespace :sessions do
|
|
12
14
|
resource :revocation, only: :destroy, controller: :revocation
|
|
13
15
|
end
|
|
14
16
|
resources :sessions, only: %i[ index destroy ]
|
|
17
|
+
resources :sent_emails, only: %i[ index show ]
|
|
15
18
|
end
|
|
16
19
|
|
|
17
20
|
namespace :administration do
|
|
@@ -20,6 +23,15 @@ Moduler::Engine.routes.draw do
|
|
|
20
23
|
|
|
21
24
|
resources :articles
|
|
22
25
|
resources :documents, only: %i[ index new create edit update ]
|
|
26
|
+
resources :preferences, only: %i[ index new create edit update destroy ]
|
|
27
|
+
resources :emails, only: %i[ index new create edit update destroy ] do
|
|
28
|
+
scope module: :emails do
|
|
29
|
+
resources :deliveries, only: %i[ new create ]
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
resources :organizations, only: %i[ index new create edit update ]
|
|
33
|
+
resources :roles, only: %i[ index new create edit update ]
|
|
34
|
+
resources :memberships, only: %i[ index new create edit update destroy ]
|
|
23
35
|
|
|
24
36
|
root "home#index"
|
|
25
37
|
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
class CreateModulerOrganizations < ActiveRecord::Migration[8.1]
|
|
2
|
+
def change
|
|
3
|
+
create_table :moduler_organizations, id: :uuid do |t|
|
|
4
|
+
t.string :name, null: false
|
|
5
|
+
|
|
6
|
+
t.timestamps null: false
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
add_index :moduler_organizations, :name, unique: true
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class CreateModulerRoles < ActiveRecord::Migration[8.1]
|
|
2
|
+
def change
|
|
3
|
+
create_table :moduler_roles, id: :uuid do |t|
|
|
4
|
+
t.references :moduler_organization, type: :uuid, null: false, foreign_key: true, index: false
|
|
5
|
+
t.string :name, null: false
|
|
6
|
+
t.string :permissions, array: true, null: false, default: []
|
|
7
|
+
|
|
8
|
+
t.timestamps null: false
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
add_index :moduler_roles, %i[ moduler_organization_id name ], unique: true
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class CreateModulerMemberships < ActiveRecord::Migration[8.1]
|
|
2
|
+
def change
|
|
3
|
+
create_table :moduler_memberships, id: :uuid do |t|
|
|
4
|
+
t.references :moduler_user, type: :uuid, null: false, foreign_key: true
|
|
5
|
+
t.references :moduler_organization, type: :uuid, null: false, foreign_key: true, index: false
|
|
6
|
+
t.references :moduler_role, type: :uuid, null: false, foreign_key: true
|
|
7
|
+
|
|
8
|
+
t.timestamps null: false
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
add_index :moduler_memberships, %i[ moduler_organization_id moduler_user_id ], unique: true
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
class AddStatusToModulerArticles < ActiveRecord::Migration[8.1]
|
|
2
|
+
def change
|
|
3
|
+
# Existing articles stay published; new articles are unpublished by default.
|
|
4
|
+
add_column :moduler_articles, :status, :integer, default: 1, null: false
|
|
5
|
+
change_column_default :moduler_articles, :status, from: 1, to: 0
|
|
6
|
+
add_index :moduler_articles, :status
|
|
7
|
+
end
|
|
8
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class CreateModulerPreferences < ActiveRecord::Migration[8.1]
|
|
2
|
+
def change
|
|
3
|
+
create_table :moduler_preferences, id: :uuid do |t|
|
|
4
|
+
t.string :kind, null: false
|
|
5
|
+
t.string :name, null: false
|
|
6
|
+
t.string :value, null: false
|
|
7
|
+
|
|
8
|
+
t.timestamps null: false
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
add_index :moduler_preferences, :name, unique: true
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
class CreateModulerEmails < ActiveRecord::Migration[8.1]
|
|
2
|
+
def change
|
|
3
|
+
create_table :moduler_emails do |t|
|
|
4
|
+
t.string :subject, null: false
|
|
5
|
+
t.string :sender
|
|
6
|
+
t.string :kind, null: false
|
|
7
|
+
t.string :event
|
|
8
|
+
t.text :body, null: false
|
|
9
|
+
|
|
10
|
+
t.timestamps null: false
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
add_index :moduler_emails, :event, unique: true, where: "event IS NOT NULL"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class CreateModulerUserEmails < ActiveRecord::Migration[8.1]
|
|
2
|
+
def change
|
|
3
|
+
create_table :moduler_user_emails do |t|
|
|
4
|
+
t.references :moduler_user, type: :uuid, null: false, foreign_key: true
|
|
5
|
+
t.references :moduler_email, null: false, foreign_key: true, index: false
|
|
6
|
+
t.datetime :sent_at
|
|
7
|
+
|
|
8
|
+
t.timestamps null: false
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
add_index :moduler_user_emails, %i[ moduler_email_id moduler_user_id ], unique: true
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
class CreateModulerSentEmails < ActiveRecord::Migration[8.1]
|
|
2
|
+
def change
|
|
3
|
+
create_table :moduler_sent_emails do |t|
|
|
4
|
+
t.references :moduler_user, type: :uuid, foreign_key: true
|
|
5
|
+
t.string :to_address, null: false
|
|
6
|
+
t.string :subject, null: false
|
|
7
|
+
t.text :body, null: false
|
|
8
|
+
|
|
9
|
+
t.timestamps null: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -8,5 +8,11 @@ module Moduler
|
|
|
8
8
|
def initialize
|
|
9
9
|
@configuration = Rails.application.config_for(:moduler)
|
|
10
10
|
end
|
|
11
|
+
|
|
12
|
+
# Permissions that can be granted to organization roles, defined under
|
|
13
|
+
# `permissions` in config/moduler.yml.
|
|
14
|
+
def permissions
|
|
15
|
+
Array(dig(:permissions)).map(&:to_s)
|
|
16
|
+
end
|
|
11
17
|
end
|
|
12
18
|
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.7.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
|
|
@@ -219,7 +219,11 @@ files:
|
|
|
219
219
|
- app/assets/builds/moduler/tailwind.css
|
|
220
220
|
- app/assets/config/moduler/manifest.js
|
|
221
221
|
- app/assets/javascripts/moduler/application.js
|
|
222
|
+
- app/assets/javascripts/moduler/controllers/attachments_controller.js
|
|
223
|
+
- app/assets/javascripts/moduler/controllers/dependent_select_controller.js
|
|
224
|
+
- app/assets/javascripts/moduler/controllers/dropdown_controller.js
|
|
222
225
|
- app/assets/javascripts/moduler/controllers/flash_controller.js
|
|
226
|
+
- app/assets/javascripts/moduler/controllers/select_all_controller.js
|
|
223
227
|
- app/assets/javascripts/moduler/controllers/wysiwyg_controller.js
|
|
224
228
|
- app/assets/javascripts/moduler/vendor/marked.esm.js
|
|
225
229
|
- app/assets/stylesheets/moduler/application.css
|
|
@@ -234,8 +238,12 @@ files:
|
|
|
234
238
|
- app/components/moduler/button_link_component.rb
|
|
235
239
|
- app/components/moduler/filter_component.html.erb
|
|
236
240
|
- app/components/moduler/filter_component.rb
|
|
241
|
+
- app/components/moduler/form/attachments_component.html.erb
|
|
242
|
+
- app/components/moduler/form/attachments_component.rb
|
|
237
243
|
- app/components/moduler/form/base_error_component.html.erb
|
|
238
244
|
- app/components/moduler/form/base_error_component.rb
|
|
245
|
+
- app/components/moduler/form/checkboxes_component.html.erb
|
|
246
|
+
- app/components/moduler/form/checkboxes_component.rb
|
|
239
247
|
- app/components/moduler/form/email_component.html.erb
|
|
240
248
|
- app/components/moduler/form/email_component.rb
|
|
241
249
|
- app/components/moduler/form/file_component.html.erb
|
|
@@ -263,39 +271,65 @@ files:
|
|
|
263
271
|
- app/components/moduler/sidebar_action_component.html.erb
|
|
264
272
|
- app/components/moduler/sidebar_action_component.rb
|
|
265
273
|
- app/controllers/concerns/moduler/authentication.rb
|
|
274
|
+
- app/controllers/concerns/moduler/organization_scoped.rb
|
|
266
275
|
- app/controllers/concerns/moduler/require_document_acceptance.rb
|
|
276
|
+
- app/controllers/concerns/moduler/restrict_administrator_access.rb
|
|
267
277
|
- app/controllers/moduler/administration/application_controller.rb
|
|
268
278
|
- app/controllers/moduler/administration/articles_controller.rb
|
|
269
279
|
- app/controllers/moduler/administration/documents_controller.rb
|
|
280
|
+
- app/controllers/moduler/administration/emails/deliveries_controller.rb
|
|
281
|
+
- app/controllers/moduler/administration/emails_controller.rb
|
|
270
282
|
- app/controllers/moduler/administration/home_controller.rb
|
|
283
|
+
- app/controllers/moduler/administration/memberships_controller.rb
|
|
284
|
+
- app/controllers/moduler/administration/organizations_controller.rb
|
|
285
|
+
- app/controllers/moduler/administration/preferences_controller.rb
|
|
286
|
+
- app/controllers/moduler/administration/roles_controller.rb
|
|
271
287
|
- app/controllers/moduler/administration/sessions_controller.rb
|
|
272
288
|
- app/controllers/moduler/administration/users_controller.rb
|
|
273
289
|
- app/controllers/moduler/application_controller.rb
|
|
274
290
|
- app/controllers/moduler/articles_controller.rb
|
|
275
291
|
- app/controllers/moduler/document_acceptances_controller.rb
|
|
276
292
|
- app/controllers/moduler/home_controller.rb
|
|
293
|
+
- app/controllers/moduler/organizations_controller.rb
|
|
294
|
+
- app/controllers/moduler/profile/sent_emails_controller.rb
|
|
277
295
|
- app/controllers/moduler/profile/sessions/revocation_controller.rb
|
|
278
296
|
- app/controllers/moduler/profile/sessions_controller.rb
|
|
279
297
|
- app/controllers/moduler/profile_controller.rb
|
|
280
298
|
- app/controllers/moduler/sessions_controller.rb
|
|
281
299
|
- app/controllers/moduler/users_controller.rb
|
|
282
300
|
- app/filters/application_filter.rb
|
|
301
|
+
- app/filters/email_delivery_filter.rb
|
|
302
|
+
- app/filters/organization_query_filter.rb
|
|
283
303
|
- app/filters/query_filter.rb
|
|
284
304
|
- app/helpers/moduler/application_helper.rb
|
|
285
305
|
- app/jobs/moduler/application_job.rb
|
|
306
|
+
- app/jobs/moduler/email_delivery_job.rb
|
|
286
307
|
- app/lib/moduler/form_builder.rb
|
|
287
308
|
- app/mailers/moduler/application_mailer.rb
|
|
309
|
+
- app/mailers/moduler/email_mailer.rb
|
|
288
310
|
- app/models/moduler/application_record.rb
|
|
289
311
|
- app/models/moduler/article.rb
|
|
290
312
|
- app/models/moduler/current.rb
|
|
291
313
|
- app/models/moduler/document.rb
|
|
314
|
+
- app/models/moduler/email.rb
|
|
315
|
+
- app/models/moduler/membership.rb
|
|
316
|
+
- app/models/moduler/organization.rb
|
|
317
|
+
- app/models/moduler/preference.rb
|
|
318
|
+
- app/models/moduler/role.rb
|
|
319
|
+
- app/models/moduler/sent_email.rb
|
|
292
320
|
- app/models/moduler/session.rb
|
|
293
321
|
- app/models/moduler/user.rb
|
|
294
322
|
- app/models/moduler/user_document.rb
|
|
323
|
+
- app/models/moduler/user_email.rb
|
|
295
324
|
- app/policies/moduler/administration/article_policy.rb
|
|
296
325
|
- app/policies/moduler/administration/base_policy.rb
|
|
297
326
|
- app/policies/moduler/administration/document_policy.rb
|
|
327
|
+
- app/policies/moduler/administration/email_policy.rb
|
|
298
328
|
- app/policies/moduler/administration/home_policy.rb
|
|
329
|
+
- app/policies/moduler/administration/membership_policy.rb
|
|
330
|
+
- app/policies/moduler/administration/organization_policy.rb
|
|
331
|
+
- app/policies/moduler/administration/preference_policy.rb
|
|
332
|
+
- app/policies/moduler/administration/role_policy.rb
|
|
299
333
|
- app/policies/moduler/administration/session_policy.rb
|
|
300
334
|
- app/policies/moduler/administration/user_policy.rb
|
|
301
335
|
- app/policies/moduler/application_policy.rb
|
|
@@ -307,6 +341,8 @@ files:
|
|
|
307
341
|
- app/views/kaminari/_prev_page.html.erb
|
|
308
342
|
- app/views/layouts/moduler/application.html.erb
|
|
309
343
|
- app/views/layouts/moduler/articles.html.erb
|
|
344
|
+
- app/views/layouts/moduler/mailer.html.erb
|
|
345
|
+
- app/views/layouts/moduler/mailer.text.erb
|
|
310
346
|
- app/views/moduler/administration/articles/_article.html.erb
|
|
311
347
|
- app/views/moduler/administration/articles/_form.html.erb
|
|
312
348
|
- app/views/moduler/administration/articles/edit.html.erb
|
|
@@ -317,7 +353,33 @@ files:
|
|
|
317
353
|
- app/views/moduler/administration/documents/edit.html.erb
|
|
318
354
|
- app/views/moduler/administration/documents/index.html.erb
|
|
319
355
|
- app/views/moduler/administration/documents/new.html.erb
|
|
356
|
+
- app/views/moduler/administration/emails/_email.html.erb
|
|
357
|
+
- app/views/moduler/administration/emails/_form.html.erb
|
|
358
|
+
- app/views/moduler/administration/emails/deliveries/new.html.erb
|
|
359
|
+
- app/views/moduler/administration/emails/edit.html.erb
|
|
360
|
+
- app/views/moduler/administration/emails/index.html.erb
|
|
361
|
+
- app/views/moduler/administration/emails/new.html.erb
|
|
320
362
|
- app/views/moduler/administration/home/index.html.erb
|
|
363
|
+
- app/views/moduler/administration/memberships/_form.html.erb
|
|
364
|
+
- app/views/moduler/administration/memberships/_membership.html.erb
|
|
365
|
+
- app/views/moduler/administration/memberships/edit.html.erb
|
|
366
|
+
- app/views/moduler/administration/memberships/index.html.erb
|
|
367
|
+
- app/views/moduler/administration/memberships/new.html.erb
|
|
368
|
+
- app/views/moduler/administration/organizations/_form.html.erb
|
|
369
|
+
- app/views/moduler/administration/organizations/_organization.html.erb
|
|
370
|
+
- app/views/moduler/administration/organizations/edit.html.erb
|
|
371
|
+
- app/views/moduler/administration/organizations/index.html.erb
|
|
372
|
+
- app/views/moduler/administration/organizations/new.html.erb
|
|
373
|
+
- app/views/moduler/administration/preferences/_form.html.erb
|
|
374
|
+
- app/views/moduler/administration/preferences/_preference.html.erb
|
|
375
|
+
- app/views/moduler/administration/preferences/edit.html.erb
|
|
376
|
+
- app/views/moduler/administration/preferences/index.html.erb
|
|
377
|
+
- app/views/moduler/administration/preferences/new.html.erb
|
|
378
|
+
- app/views/moduler/administration/roles/_form.html.erb
|
|
379
|
+
- app/views/moduler/administration/roles/_role.html.erb
|
|
380
|
+
- app/views/moduler/administration/roles/edit.html.erb
|
|
381
|
+
- app/views/moduler/administration/roles/index.html.erb
|
|
382
|
+
- app/views/moduler/administration/roles/new.html.erb
|
|
321
383
|
- app/views/moduler/administration/sessions/_session.html.erb
|
|
322
384
|
- app/views/moduler/administration/sessions/index.html.erb
|
|
323
385
|
- app/views/moduler/administration/users/_user.html.erb
|
|
@@ -329,12 +391,17 @@ files:
|
|
|
329
391
|
- app/views/moduler/articles/show.html.erb
|
|
330
392
|
- app/views/moduler/common/_flash.html.erb
|
|
331
393
|
- app/views/moduler/common/_header.html.erb
|
|
394
|
+
- app/views/moduler/common/_organization_switcher.html.erb
|
|
332
395
|
- app/views/moduler/common/_sidebar.html.erb
|
|
333
396
|
- app/views/moduler/common/administration/_sidebar.html.erb
|
|
334
397
|
- app/views/moduler/common/profile/_sidebar.html.erb
|
|
335
398
|
- app/views/moduler/document_acceptances/new.html.erb
|
|
399
|
+
- app/views/moduler/email_mailer/custom.html.erb
|
|
400
|
+
- app/views/moduler/email_mailer/custom.text.erb
|
|
336
401
|
- app/views/moduler/home/index.html.erb
|
|
402
|
+
- app/views/moduler/organizations/show.html.erb
|
|
337
403
|
- app/views/moduler/profile/edit.html.erb
|
|
404
|
+
- app/views/moduler/profile/sent_emails/index.html.erb
|
|
338
405
|
- app/views/moduler/profile/sessions/_session.html.erb
|
|
339
406
|
- app/views/moduler/profile/sessions/index.html.erb
|
|
340
407
|
- app/views/moduler/sessions/new.html.erb
|
|
@@ -342,6 +409,11 @@ files:
|
|
|
342
409
|
- config/importmap.rb
|
|
343
410
|
- config/locales/moduler/administration/articles/en.yml
|
|
344
411
|
- config/locales/moduler/administration/documents/en.yml
|
|
412
|
+
- config/locales/moduler/administration/emails/en.yml
|
|
413
|
+
- config/locales/moduler/administration/memberships/en.yml
|
|
414
|
+
- config/locales/moduler/administration/organizations/en.yml
|
|
415
|
+
- config/locales/moduler/administration/preferences/en.yml
|
|
416
|
+
- config/locales/moduler/administration/roles/en.yml
|
|
345
417
|
- config/locales/moduler/administration/sessions/en.yml
|
|
346
418
|
- config/locales/moduler/administration/users/en.yml
|
|
347
419
|
- config/locales/moduler/articles/en.yml
|
|
@@ -349,7 +421,10 @@ files:
|
|
|
349
421
|
- config/locales/moduler/components/en.yml
|
|
350
422
|
- config/locales/moduler/document_acceptances/en.yml
|
|
351
423
|
- config/locales/moduler/en.yml
|
|
424
|
+
- config/locales/moduler/home/en.yml
|
|
425
|
+
- config/locales/moduler/models/en.yml
|
|
352
426
|
- config/locales/moduler/profile/en.yml
|
|
427
|
+
- config/locales/moduler/profile/sent_emails/en.yml
|
|
353
428
|
- config/locales/moduler/profile/sessions/en.yml
|
|
354
429
|
- config/locales/moduler/sessions/en.yml
|
|
355
430
|
- config/locales/moduler/users/en.yml
|
|
@@ -362,6 +437,15 @@ files:
|
|
|
362
437
|
- db/migrate/20261104120000_add_status_to_moduler_users.rb
|
|
363
438
|
- db/migrate/20261104205837_create_moduler_documents.rb
|
|
364
439
|
- db/migrate/20261104205950_create_moduler_user_documents.rb
|
|
440
|
+
- db/migrate/20261111113522_create_moduler_organizations.rb
|
|
441
|
+
- db/migrate/20261111150000_create_moduler_roles.rb
|
|
442
|
+
- db/migrate/20261111160000_create_moduler_memberships.rb
|
|
443
|
+
- db/migrate/20261111180000_add_name_to_moduler_users.rb
|
|
444
|
+
- db/migrate/20261111190000_add_status_to_moduler_articles.rb
|
|
445
|
+
- db/migrate/20261111200000_create_moduler_preferences.rb
|
|
446
|
+
- db/migrate/20261111210000_create_moduler_emails.rb
|
|
447
|
+
- db/migrate/20261111210001_create_moduler_user_emails.rb
|
|
448
|
+
- db/migrate/20261111210002_create_moduler_sent_emails.rb
|
|
365
449
|
- lib/moduler.rb
|
|
366
450
|
- lib/moduler/configuration.rb
|
|
367
451
|
- lib/moduler/engine.rb
|