lesli_bell 0.1.0 → 1.0.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/images/lesli_bell/bell-logo.svg +1 -0
- data/app/assets/javascripts/lesli_bell/application.js +1 -2835
- data/app/assets/javascripts/lesli_bell/application.js.LICENSE.txt +250 -0
- data/app/assets/stylesheets/lesli_bell/application.css +4 -15
- data/app/controllers/lesli_bell/announcements_controller.rb +16 -1
- data/app/controllers/lesli_bell/dashboards_controller.rb +26 -49
- data/app/controllers/lesli_bell/notifications_controller.rb +7 -8
- data/app/models/lesli_bell/announcement/user.rb +6 -0
- data/app/models/lesli_bell/announcement.rb +12 -2
- data/app/models/lesli_bell/dashboard.rb +38 -2
- data/app/models/lesli_bell/notification.rb +15 -16
- data/app/services/lesli_bell/announcement_service.rb +84 -0
- data/app/services/lesli_bell/notification_service.rb +46 -51
- data/app/views/lesli_bell/announcements/index.html.erb +30 -11
- data/app/views/lesli_bell/dashboards/edit.html.erb +30 -7
- data/app/views/lesli_bell/dashboards/show.html.erb +33 -1
- data/app/views/lesli_bell/notifications/index.html.erb +67 -3
- data/app/views/lesli_bell/notifications/new.html.erb +30 -6
- data/app/views/lesli_bell/partials/{_engine-navigation.html.erb → _navigation.html.erb} +2 -2
- data/config/locales/translations.en.yml +2 -0
- data/config/locales/translations.es.yml +2 -0
- data/config/locales/translations.fr.yml +2 -0
- data/config/locales/translations.it.yml +2 -0
- data/config/locales/translations.pt.yml +2 -0
- data/config/routes.rb +34 -3
- data/db/migrate/v1.0/0308000110_create_lesli_bell_accounts.rb +24 -15
- data/db/migrate/v1.0/0308003010_create_lesli_bell_dashboards.rb +37 -0
- data/db/migrate/v1.0/0308100110_create_lesli_bell_notifications.rb +24 -13
- data/db/migrate/v1.0/0308110110_create_lesli_bell_announcements.rb +26 -12
- data/db/migrate/v1.0/0308110310_create_lesli_bell_announcement_users.rb +6 -7
- data/db/seed/announcements.rb +47 -0
- data/db/seed/notifications.rb +53 -0
- data/db/seed/seeds.json +36 -0
- data/db/seeds.rb +30 -15
- data/lib/lesli_bell/version.rb +2 -2
- data/lib/vue/application.js +42 -20
- data/lib/vue/apps/announcements/index.vue +49 -28
- data/lib/vue/apps/notifications/components/notification-form.vue +45 -23
- data/lib/vue/apps/notifications/index.vue +55 -40
- data/lib/vue/apps/notifications/new.vue +32 -21
- data/lib/vue/stores/announcement.js +36 -31
- data/lib/vue/stores/notification.js +56 -23
- data/lib/vue/stores/translations.json +232 -0
- data/license +674 -0
- data/readme.md +75 -18
- metadata +38 -18
- data/app/views/lesli_bell/announcements/_announcement.html.erb +0 -2
- data/app/views/lesli_bell/announcements/_form.html.erb +0 -17
- data/app/views/lesli_bell/dashboards/_dashboard.html.erb +0 -2
- data/app/views/lesli_bell/dashboards/_form.html.erb +0 -17
- data/app/views/lesli_bell/dashboards/index.html.erb +0 -14
- data/app/views/lesli_bell/dashboards/new.html.erb +0 -9
- data/db/migrate/v1.0/0308100210_create_lesli_bell_notification_activities.rb +0 -17
- data/db/seed/development.rb +0 -36
- data/db/seed/test.rb +0 -0
- /data/{db/seed/production.rb → lib/scss/application.scss} +0 -0
@@ -1,6 +1,18 @@
|
|
1
1
|
module LesliBell
|
2
2
|
class NotificationService < Lesli::ApplicationLesliService
|
3
3
|
|
4
|
+
def count
|
5
|
+
current_user.account.bell.notifications
|
6
|
+
.where(:user => current_user)
|
7
|
+
.where(status: nil)
|
8
|
+
.or(
|
9
|
+
current_user.account.bell.notifications
|
10
|
+
.where(user: current_user)
|
11
|
+
.where.not(status: 'read')
|
12
|
+
)
|
13
|
+
.count
|
14
|
+
end
|
15
|
+
|
4
16
|
def index only_own_notifications=true
|
5
17
|
|
6
18
|
notifications = []
|
@@ -22,66 +34,49 @@ module LesliBell
|
|
22
34
|
.order(:updated_at)
|
23
35
|
|
24
36
|
return notifications
|
37
|
+
end
|
25
38
|
|
26
|
-
|
27
|
-
|
28
|
-
notifications.total_pages,
|
29
|
-
notifications.total_count,
|
30
|
-
notifications.length,
|
31
|
-
notifications.map do |notification|
|
32
|
-
{
|
33
|
-
id: notification[:id],
|
34
|
-
url: notification[:url],
|
35
|
-
body: notification[:body],
|
36
|
-
subject: notification[:subject],
|
37
|
-
category: notification[:category],
|
38
|
-
created_at: LC::Date.distance_to_words(notification[:created_at]),
|
39
|
-
status: notification[:status],
|
40
|
-
}
|
41
|
-
end
|
42
|
-
)
|
43
|
-
|
39
|
+
def create_for_me notification_params
|
40
|
+
self.create(notification_params, send_to_user_ids: [current_user.id])
|
44
41
|
end
|
45
42
|
|
46
43
|
def create(
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
payload:nil,
|
52
|
-
channel:nil,
|
53
|
-
category:nil,
|
54
|
-
user_receiver_id:nil,
|
55
|
-
notification_type:nil,
|
56
|
-
role_receiver_names:nil,
|
57
|
-
user_receiver_emails:nil
|
44
|
+
notification_params,
|
45
|
+
send_to_role_ids:nil,
|
46
|
+
send_to_user_ids:nil,
|
47
|
+
send_to_user_emails:nil
|
58
48
|
)
|
59
49
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
notification_params
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
}
|
79
|
-
|
50
|
+
users = []
|
51
|
+
notifications = []
|
52
|
+
|
53
|
+
unless Notification.categories.key?(notification_params[:category])
|
54
|
+
notification_params[:category] = :info
|
55
|
+
end
|
56
|
+
|
57
|
+
unless Notification.channels.key?(notification_params[:channel])
|
58
|
+
notification_params[:channel] = :web
|
59
|
+
end
|
60
|
+
|
61
|
+
send_to_user_ids.each do |user|
|
62
|
+
notifications.push({
|
63
|
+
**notification_params,
|
64
|
+
user_id: user,
|
65
|
+
})
|
66
|
+
end
|
67
|
+
|
80
68
|
# "bulk insert" all the notifications
|
81
|
-
|
69
|
+
current_user.account.bell.notifications.create!(notifications)
|
82
70
|
|
83
|
-
|
71
|
+
self.resource = { id: notifications.map{ |n| n[:user_id] } }
|
84
72
|
|
73
|
+
self
|
85
74
|
end
|
75
|
+
|
76
|
+
def read id
|
77
|
+
noti = current_user.account.bell.notifications.where(:id => id, :user => current_user)
|
78
|
+
noti.update(:status => :read)
|
79
|
+
self
|
80
|
+
end
|
86
81
|
end
|
87
82
|
end
|
@@ -1,14 +1,33 @@
|
|
1
|
-
|
1
|
+
<%#
|
2
2
|
|
3
|
-
|
3
|
+
Lesli
|
4
4
|
|
5
|
-
|
6
|
-
<% @announcements.each do |announcement| %>
|
7
|
-
<%= render announcement %>
|
8
|
-
<p>
|
9
|
-
<%= link_to "Show this announcement", announcement %>
|
10
|
-
</p>
|
11
|
-
<% end %>
|
12
|
-
</div>
|
5
|
+
Copyright (c) 2023, Lesli Technologies, S. A.
|
13
6
|
|
14
|
-
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
8
|
+
it under the terms of the GNU General Public License as published by
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
10
|
+
(at your option) any later version.
|
11
|
+
|
12
|
+
This program is distributed in the hope that it will be useful,
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
GNU General Public License for more details.
|
16
|
+
|
17
|
+
You should have received a copy of the GNU General Public License
|
18
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
19
|
+
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
21
|
+
|
22
|
+
Made with ♥ by LesliTech
|
23
|
+
Building a better future, one line of code at a time.
|
24
|
+
|
25
|
+
@contact hello@lesli.tech
|
26
|
+
@website https://www.lesli.tech
|
27
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
28
|
+
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
|
+
// ·
|
31
|
+
%>
|
32
|
+
|
33
|
+
<router-view></router-view>
|
@@ -1,10 +1,33 @@
|
|
1
|
-
|
1
|
+
<%#
|
2
2
|
|
3
|
-
|
3
|
+
Lesli
|
4
4
|
|
5
|
-
|
5
|
+
Copyright (c) 2025, Lesli Technologies, S. A.
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
8
|
+
it under the terms of the GNU General Public License as published by
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
10
|
+
(at your option) any later version.
|
11
|
+
|
12
|
+
This program is distributed in the hope that it will be useful,
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
GNU General Public License for more details.
|
16
|
+
|
17
|
+
You should have received a copy of the GNU General Public License
|
18
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
19
|
+
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
21
|
+
|
22
|
+
Made with ♥ by LesliTech
|
23
|
+
Building a better future, one line of code at a time.
|
24
|
+
|
25
|
+
@contact hello@lesli.tech
|
26
|
+
@website https://www.lesli.tech
|
27
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
28
|
+
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
|
+
// ·
|
31
|
+
%>
|
32
|
+
|
33
|
+
<%= render("/lesli/shared/dashboards/edit") %>
|
@@ -1 +1,33 @@
|
|
1
|
-
|
1
|
+
<%#
|
2
|
+
|
3
|
+
Lesli
|
4
|
+
|
5
|
+
Copyright (c) 2025, Lesli Technologies, S. A.
|
6
|
+
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
8
|
+
it under the terms of the GNU General Public License as published by
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
10
|
+
(at your option) any later version.
|
11
|
+
|
12
|
+
This program is distributed in the hope that it will be useful,
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
GNU General Public License for more details.
|
16
|
+
|
17
|
+
You should have received a copy of the GNU General Public License
|
18
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
19
|
+
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
21
|
+
|
22
|
+
Made with ♥ by LesliTech
|
23
|
+
Building a better future, one line of code at a time.
|
24
|
+
|
25
|
+
@contact hello@lesli.tech
|
26
|
+
@website https://www.lesli.tech
|
27
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
28
|
+
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
|
+
// ·
|
31
|
+
%>
|
32
|
+
|
33
|
+
<%= render("/lesli/shared/dashboards/show") %>
|
@@ -19,15 +19,79 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
|
19
19
|
|
20
20
|
Lesli · Ruby on Rails SaaS Development Framework.
|
21
21
|
|
22
|
-
Made with ♥ by
|
22
|
+
Made with ♥ by LesliTech
|
23
23
|
Building a better future, one line of code at a time.
|
24
24
|
|
25
25
|
@contact hello@lesli.tech
|
26
|
-
@website https://www.lesli.
|
26
|
+
@website https://www.lesli.tech
|
27
27
|
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
28
28
|
|
29
29
|
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
30
|
// ·
|
31
31
|
%>
|
32
32
|
|
33
|
-
<
|
33
|
+
<style>
|
34
|
+
.notification.is-danger.is-light {
|
35
|
+
border: 2px solid hsl(var(--bulma-notification-h), var(--bulma-notification-s), var(--bulma-notification-color-l))
|
36
|
+
}
|
37
|
+
|
38
|
+
.notification.is-warning.is-light {
|
39
|
+
border: 2px solid hsl(var(--bulma-notification-h), var(--bulma-notification-s), var(--bulma-notification-color-l));
|
40
|
+
}
|
41
|
+
|
42
|
+
.notification.is-success.is-light {
|
43
|
+
border: 2px solid hsl(var(--bulma-notification-h), var(--bulma-notification-s), var(--bulma-notification-color-l));
|
44
|
+
}
|
45
|
+
|
46
|
+
.notification.is-info.is-light {
|
47
|
+
border: 2px solid hsl(var(--bulma-notification-h), var(--bulma-notification-s), var(--bulma-notification-color-l));
|
48
|
+
}
|
49
|
+
</style>
|
50
|
+
|
51
|
+
<%= render(LesliView::Layout::Container.new("lesli-bell-notifications-index")) do %>
|
52
|
+
|
53
|
+
<%= render(LesliView::Components::Header.new("Notifications")) do %>
|
54
|
+
<%= render(LesliView::Elements::Button.new("mark all as read", icon:"check", solid: true)) %>
|
55
|
+
<% end %>
|
56
|
+
|
57
|
+
<%= render(LesliView::Components::Toolbar.new) %>
|
58
|
+
|
59
|
+
<% if @notifications.size == 0 %>
|
60
|
+
<%= render(LesliView::Elements::Empty.new) %>
|
61
|
+
<% else %>
|
62
|
+
<section class="notifications">
|
63
|
+
<% @notifications[:records].each do |notification| %>
|
64
|
+
<div class="notification is-<%= notification[:category] %> is-light mb-2">
|
65
|
+
|
66
|
+
<!-- Close button -->
|
67
|
+
<%= button_to(
|
68
|
+
notification_path(notification[:id]),
|
69
|
+
method: :put,
|
70
|
+
class: "button is-small is-#{notification[:category]}",
|
71
|
+
form: { class: "delete" }) do %>
|
72
|
+
<span class="icon">
|
73
|
+
<span class="material-icons">close</span>
|
74
|
+
</span>
|
75
|
+
<% end %>
|
76
|
+
|
77
|
+
<!-- Notification subject -->
|
78
|
+
<strong><%= notification[:subject] %></strong>
|
79
|
+
|
80
|
+
<!-- Notification body (optional) -->
|
81
|
+
<% if notification[:body].present? %>
|
82
|
+
<p><%= notification[:body] %></p>
|
83
|
+
<% end %>
|
84
|
+
|
85
|
+
<!-- Notification URL (optional) -->
|
86
|
+
<% if notification[:url].present? %>
|
87
|
+
<p>
|
88
|
+
<a href="<%= notification[:url] %>" target="_blank" rel="noopener noreferrer">
|
89
|
+
<%= notification[:url] %>
|
90
|
+
</a>
|
91
|
+
</p>
|
92
|
+
<% end %>
|
93
|
+
</div>
|
94
|
+
<% end %>
|
95
|
+
</section>
|
96
|
+
<% end %>
|
97
|
+
<% end %>
|
@@ -1,9 +1,33 @@
|
|
1
|
-
|
1
|
+
<%#
|
2
2
|
|
3
|
-
|
3
|
+
Lesli
|
4
4
|
|
5
|
-
|
5
|
+
Copyright (c) 2023, Lesli Technologies, S. A.
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
8
|
+
it under the terms of the GNU General Public License as published by
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
10
|
+
(at your option) any later version.
|
11
|
+
|
12
|
+
This program is distributed in the hope that it will be useful,
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
GNU General Public License for more details.
|
16
|
+
|
17
|
+
You should have received a copy of the GNU General Public License
|
18
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
19
|
+
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
21
|
+
|
22
|
+
Made with ♥ by LesliTech
|
23
|
+
Building a better future, one line of code at a time.
|
24
|
+
|
25
|
+
@contact hello@lesli.tech
|
26
|
+
@website https://www.lesli.tech
|
27
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
28
|
+
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
|
+
// ·
|
31
|
+
%>
|
32
|
+
|
33
|
+
<router-view></router-view>
|
@@ -20,5 +20,5 @@ For more information read the license file including with this software.
|
|
20
20
|
|
21
21
|
<%= navigation_item(lesli_bell.dashboard_path, "Dashboard", "ri-dashboard-3-line") %>
|
22
22
|
<%= navigation_item(lesli_bell.notifications_path, "Notifications", "ri-notification-3-line") %>
|
23
|
-
<%= navigation_item(lesli_bell.announcements_path, "Announcements", "ri-
|
24
|
-
|
23
|
+
<%= navigation_item(lesli_bell.announcements_path, "Announcements", "ri-megaphone-line") %>
|
24
|
+
<%#= navigation_item(lesli_bell.dashboard_path, "Settings", "ri-settings-3-line") %>
|
data/config/routes.rb
CHANGED
@@ -1,6 +1,37 @@
|
|
1
|
+
=begin
|
2
|
+
|
3
|
+
Lesli
|
4
|
+
|
5
|
+
Copyright (c) 2025, Lesli Technologies, S. A.
|
6
|
+
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
8
|
+
it under the terms of the GNU General Public License as published by
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
10
|
+
(at your option) any later version.
|
11
|
+
|
12
|
+
This program is distributed in the hope that it will be useful,
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
GNU General Public License for more details.
|
16
|
+
|
17
|
+
You should have received a copy of the GNU General Public License
|
18
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
19
|
+
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
21
|
+
|
22
|
+
Made with ♥ by LesliTech
|
23
|
+
Building a better future, one line of code at a time.
|
24
|
+
|
25
|
+
@contact hello@lesli.tech
|
26
|
+
@website https://www.lesli.tech
|
27
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
28
|
+
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
|
+
// ·
|
31
|
+
=end
|
32
|
+
|
1
33
|
LesliBell::Engine.routes.draw do
|
2
|
-
|
3
|
-
|
4
|
-
resources :notifications, only: [:index]
|
34
|
+
Lesli::Routing.mount_dashboard_for(LesliBell)
|
35
|
+
resources :notifications, only: [:index, :new, :update]
|
5
36
|
resources :announcements, only: [:index]
|
6
37
|
end
|
@@ -1,28 +1,37 @@
|
|
1
1
|
=begin
|
2
2
|
|
3
|
-
|
3
|
+
Lesli
|
4
4
|
|
5
|
-
|
6
|
-
industrial property, intellectual property, copyright and relative international laws.
|
7
|
-
All intellectual or industrial property rights of the code, texts, trade mark, design,
|
8
|
-
pictures and any other information belongs to the owner of this platform.
|
5
|
+
Copyright (c) 2023, Lesli Technologies, S. A.
|
9
6
|
|
10
|
-
|
11
|
-
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
8
|
+
it under the terms of the GNU General Public License as published by
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
10
|
+
(at your option) any later version.
|
12
11
|
|
13
|
-
|
12
|
+
This program is distributed in the hope that it will be useful,
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
GNU General Public License for more details.
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
+
You should have received a copy of the GNU General Public License
|
18
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
19
|
+
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
21
|
+
|
22
|
+
Made with ♥ by LesliTech
|
23
|
+
Building a better future, one line of code at a time.
|
17
24
|
|
25
|
+
@contact hello@lesli.tech
|
26
|
+
@website https://www.lesli.tech
|
27
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
28
|
+
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
|
+
// ·
|
18
31
|
=end
|
19
32
|
|
20
33
|
class CreateLesliBellAccounts < ActiveRecord::Migration[7.0]
|
21
34
|
def change
|
22
|
-
|
23
|
-
t.timestamps
|
24
|
-
t.datetime :deleted_at, index: true
|
25
|
-
end
|
26
|
-
add_reference(:lesli_bell_accounts, :account, foreign_key: { to_table: :lesli_accounts })
|
35
|
+
create_table_lesli_shared_account_10(:lesli_bell)
|
27
36
|
end
|
28
37
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
=begin
|
2
|
+
|
3
|
+
Lesli
|
4
|
+
|
5
|
+
Copyright (c) 2025, Lesli Technologies, S. A.
|
6
|
+
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
8
|
+
it under the terms of the GNU General Public License as published by
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
10
|
+
(at your option) any later version.
|
11
|
+
|
12
|
+
This program is distributed in the hope that it will be useful,
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
GNU General Public License for more details.
|
16
|
+
|
17
|
+
You should have received a copy of the GNU General Public License
|
18
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
19
|
+
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
21
|
+
|
22
|
+
Made with ♥ by LesliTech
|
23
|
+
Building a better future, one line of code at a time.
|
24
|
+
|
25
|
+
@contact hello@lesli.tech
|
26
|
+
@website https://www.lesli.tech
|
27
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
28
|
+
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
|
+
// ·
|
31
|
+
=end
|
32
|
+
|
33
|
+
class CreateLesliBellDashboards < ActiveRecord::Migration[6.1]
|
34
|
+
def change
|
35
|
+
create_table_lesli_shared_dashboards_10(:lesli_bell)
|
36
|
+
end
|
37
|
+
end
|
@@ -1,20 +1,33 @@
|
|
1
1
|
=begin
|
2
2
|
|
3
|
-
|
3
|
+
Lesli
|
4
4
|
|
5
|
-
|
6
|
-
industrial property, intellectual property, copyright and relative international laws.
|
7
|
-
All intellectual or industrial property rights of the code, texts, trade mark, design,
|
8
|
-
pictures and any other information belongs to the owner of this platform.
|
5
|
+
Copyright (c) 2023, Lesli Technologies, S. A.
|
9
6
|
|
10
|
-
|
11
|
-
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
8
|
+
it under the terms of the GNU General Public License as published by
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
10
|
+
(at your option) any later version.
|
12
11
|
|
13
|
-
|
12
|
+
This program is distributed in the hope that it will be useful,
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
GNU General Public License for more details.
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
+
You should have received a copy of the GNU General Public License
|
18
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
17
19
|
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
21
|
+
|
22
|
+
Made with ♥ by LesliTech
|
23
|
+
Building a better future, one line of code at a time.
|
24
|
+
|
25
|
+
@contact hello@lesli.tech
|
26
|
+
@website https://www.lesli.tech
|
27
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
28
|
+
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
|
+
// ·
|
18
31
|
=end
|
19
32
|
|
20
33
|
class CreateLesliBellNotifications < ActiveRecord::Migration[7.0]
|
@@ -27,12 +40,10 @@ class CreateLesliBellNotifications < ActiveRecord::Migration[7.0]
|
|
27
40
|
t.string :status
|
28
41
|
t.string :category
|
29
42
|
t.string :channel
|
30
|
-
t.string :notification_type
|
31
|
-
t.string :media
|
32
43
|
t.json :payload
|
33
44
|
|
34
|
-
t.timestamps
|
35
45
|
t.datetime :deleted_at, index: true
|
46
|
+
t.timestamps
|
36
47
|
end
|
37
48
|
|
38
49
|
add_reference(:lesli_bell_notifications, :user, foreign_key: { to_table: :lesli_users })
|
@@ -1,34 +1,48 @@
|
|
1
1
|
=begin
|
2
2
|
|
3
|
-
|
3
|
+
Lesli
|
4
4
|
|
5
|
-
|
6
|
-
industrial property, intellectual property, copyright and relative international laws.
|
7
|
-
All intellectual or industrial property rights of the code, texts, trade mark, design,
|
8
|
-
pictures and any other information belongs to the owner of this platform.
|
5
|
+
Copyright (c) 2023, Lesli Technologies, S. A.
|
9
6
|
|
10
|
-
|
11
|
-
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
8
|
+
it under the terms of the GNU General Public License as published by
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
10
|
+
(at your option) any later version.
|
12
11
|
|
13
|
-
|
12
|
+
This program is distributed in the hope that it will be useful,
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
GNU General Public License for more details.
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
+
You should have received a copy of the GNU General Public License
|
18
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
19
|
+
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
21
|
+
|
22
|
+
Made with ♥ by LesliTech
|
23
|
+
Building a better future, one line of code at a time.
|
17
24
|
|
25
|
+
@contact hello@lesli.tech
|
26
|
+
@website https://www.lesli.tech
|
27
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
28
|
+
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
|
+
// ·
|
18
31
|
=end
|
19
32
|
|
20
33
|
class CreateLesliBellAnnouncements < ActiveRecord::Migration[6.0]
|
21
34
|
def change
|
22
35
|
create_table :lesli_bell_announcements do |t|
|
23
|
-
t.string :url, index: true
|
24
36
|
t.string :name
|
37
|
+
t.string :url
|
38
|
+
t.string :path
|
25
39
|
t.string :category
|
26
|
-
t.string :base_path
|
27
40
|
t.text :message
|
28
41
|
t.boolean :status
|
29
42
|
t.datetime :start_at
|
30
43
|
t.datetime :end_at
|
31
44
|
t.boolean :can_be_closed, :default => true
|
45
|
+
|
32
46
|
t.datetime :deleted_at, index: true
|
33
47
|
t.timestamps
|
34
48
|
end
|