lesli_bell 0.1.0 → 0.2.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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/lesli_bell/bell-logo.svg +1 -0
  3. data/app/assets/javascripts/lesli_bell/application.js +2629 -1127
  4. data/app/assets/javascripts/lesli_bell/application.js.LICENSE.txt +250 -0
  5. data/app/assets/stylesheets/lesli_bell/application.css +4 -15
  6. data/app/controllers/lesli_bell/notifications_controller.rb +6 -2
  7. data/app/services/lesli_bell/notification_service.rb +17 -17
  8. data/app/views/lesli_bell/notifications/index.html.erb +2 -2
  9. data/app/views/lesli_bell/notifications/new.html.erb +30 -6
  10. data/app/views/lesli_bell/partials/_engine-navigation.html.erb +2 -2
  11. data/config/locales/translations.en.yml +27 -0
  12. data/config/locales/translations.es.yml +27 -0
  13. data/config/locales/translations.fr.yml +27 -0
  14. data/config/locales/translations.it.yml +27 -0
  15. data/config/locales/translations.pt.yml +27 -0
  16. data/config/routes.rb +33 -1
  17. data/db/migrate/v1.0/0308000110_create_lesli_bell_accounts.rb +25 -11
  18. data/db/migrate/v1.0/0308100110_create_lesli_bell_notifications.rb +24 -11
  19. data/db/migrate/v1.0/0308110110_create_lesli_bell_announcements.rb +25 -11
  20. data/db/seed/development.rb +34 -11
  21. data/db/seeds.rb +32 -12
  22. data/lib/lesli_bell/version.rb +2 -2
  23. data/lib/scss/application.scss +0 -0
  24. data/lib/vue/application.js +41 -19
  25. data/lib/vue/apps/notifications/components/notification-form.vue +45 -23
  26. data/lib/vue/apps/notifications/index.vue +54 -35
  27. data/lib/vue/apps/notifications/new.vue +32 -21
  28. data/lib/vue/stores/notification.js +56 -23
  29. data/lib/vue/stores/translations.json +192 -0
  30. data/license +674 -0
  31. data/readme.md +61 -18
  32. metadata +44 -7
  33. data/db/migrate/v1.0/0308100210_create_lesli_bell_notification_activities.rb +0 -17
@@ -0,0 +1,250 @@
1
+ /*
2
+
3
+ Lesli
4
+
5
+ Copyright (c) 2023, 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 · Your Smart Business Assistant.
21
+
22
+ Made with ♥ by https://www.lesli.tech
23
+ Building a better future, one line of code at a time.
24
+
25
+ @contact hello@lesli.tech
26
+ @website https://lesli.tech
27
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
+
29
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
+ // ·
31
+
32
+ */
33
+
34
+ /*
35
+
36
+ Lesli
37
+
38
+ Copyright (c) 2023, Lesli Technologies, S. A.
39
+
40
+ This program is free software: you can redistribute it and/or modify
41
+ it under the terms of the GNU General Public License as published by
42
+ the Free Software Foundation, either version 3 of the License, or
43
+ (at your option) any later version.
44
+
45
+ This program is distributed in the hope that it will be useful,
46
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
47
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48
+ GNU General Public License for more details.
49
+
50
+ You should have received a copy of the GNU General Public License
51
+ along with this program. If not, see http://www.gnu.org/licenses/.
52
+
53
+ Lesli · Your Smart Business Assistant.
54
+
55
+ Made with ♥ by https://www.lesli.tech
56
+ Building a better future, one line of code at a time.
57
+
58
+ @contact hello@lesli.tech
59
+ @website https://lesli.tech
60
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
61
+
62
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
63
+ // ·
64
+ */
65
+
66
+ /*
67
+ Lesli
68
+
69
+ Copyright (c) 2023, Lesli Technologies, S. A.
70
+
71
+ This program is free software: you can redistribute it and/or modify
72
+ it under the terms of the GNU General Public License as published by
73
+ the Free Software Foundation, either version 3 of the License, or
74
+ (at your option) any later version.
75
+
76
+ This program is distributed in the hope that it will be useful,
77
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
78
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
79
+ GNU General Public License for more details.
80
+
81
+ You should have received a copy of the GNU General Public License
82
+ along with this program. If not, see http://www.gnu.org/licenses/.
83
+
84
+ Lesli · Ruby on Rails SaaS Development Framework.
85
+
86
+ Made with ♥ by https://www.lesli.tech
87
+ Building a better future, one line of code at a time.
88
+
89
+ @contact hello@lesli.tech
90
+ @website https://www.lesli.dev
91
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
92
+
93
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
94
+ // ·
95
+ */
96
+
97
+ /*
98
+ Lesli
99
+
100
+ Copyright (c) 2023, Lesli Technologies, S. A.
101
+
102
+ This program is free software: you can redistribute it and/or modify
103
+ it under the terms of the GNU General Public License as published by
104
+ the Free Software Foundation, either version 3 of the License, or
105
+ (at your option) any later version.
106
+
107
+ This program is distributed in the hope that it will be useful,
108
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
109
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
110
+ GNU General Public License for more details.
111
+
112
+ You should have received a copy of the GNU General Public License
113
+ along with this program. If not, see http://www.gnu.org/licenses/.
114
+
115
+ Lesli · Ruby on Rails SaaS development platform.
116
+
117
+ Made with ♥ by https://www.lesli.tech
118
+ Building a better future, one line of code at a time.
119
+
120
+ @contact hello@lesli.tech
121
+ @website https://www.lesli.tech
122
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
123
+
124
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
125
+ // ·
126
+ */
127
+
128
+ /*
129
+ Lesli
130
+
131
+ Copyright (c) 2020, Lesli Technologies, S. A.
132
+
133
+ This program is free software: you can redistribute it and/or modify
134
+ it under the terms of the GNU General Public License as published by
135
+ the Free Software Foundation, either version 3 of the License, or
136
+ (at your option) any later version.
137
+
138
+ This program is distributed in the hope that it will be useful,
139
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
140
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
141
+ GNU General Public License for more details.
142
+
143
+ You should have received a copy of the GNU General Public License
144
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
145
+
146
+ Lesli JS - JavaScript utilities for JavaScript applications
147
+
148
+ Powered by LesliTech
149
+ Building a better future, one line of code at a time.
150
+
151
+ @contact <hello@lesli.tech>
152
+ @website <https://lesli.tech>
153
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
154
+
155
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
156
+ // ·
157
+ */
158
+
159
+ /*
160
+ Lesli
161
+
162
+ Copyright (c) 2021, Lesli Technologies, S. A.
163
+
164
+ This program is free software: you can redistribute it and/or modify
165
+ it under the terms of the GNU General Public License as published by
166
+ the Free Software Foundation, either version 3 of the License, or
167
+ (at your option) any later version.
168
+
169
+ This program is distributed in the hope that it will be useful,
170
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
171
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
172
+ GNU General Public License for more details.
173
+
174
+ You should have received a copy of the GNU General Public License
175
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
176
+
177
+ Lesli JS - JavaScript utilities for JavaScript applications
178
+
179
+ Powered by LesliTech
180
+ Building a better future, one line of code at a time.
181
+
182
+ @contact <hello@lesli.tech>
183
+ @website <https://lesli.tech>
184
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
185
+
186
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
187
+ // ·
188
+ */
189
+
190
+ /*
191
+ Lesli
192
+
193
+ Copyright (c) 2023, Lesli Technologies, S. A.
194
+
195
+ This program is free software: you can redistribute it and/or modify
196
+ it under the terms of the GNU General Public License as published by
197
+ the Free Software Foundation, either version 3 of the License, or
198
+ (at your option) any later version.
199
+
200
+ This program is distributed in the hope that it will be useful,
201
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
202
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
203
+ GNU General Public License for more details.
204
+
205
+ You should have received a copy of the GNU General Public License
206
+ along with this program. If not, see http://www.gnu.org/licenses/.
207
+
208
+ Lesli · Ruby on Rails SaaS Development Framework.
209
+
210
+ Made with ♥ by https://www.lesli.tech
211
+ Building a better future, one line of code at a time.
212
+
213
+ @contact hello@lesli.tech
214
+ @website https://www.lesli.dev
215
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
216
+
217
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
218
+ // ·
219
+ */
220
+
221
+ /*
222
+ Lesli
223
+
224
+ Copyright (c) 2023, Lesli Technologies, S. A.
225
+
226
+ This program is free software: you can redistribute it and/or modify
227
+ it under the terms of the GNU General Public License as published by
228
+ the Free Software Foundation, either version 3 of the License, or
229
+ (at your option) any later version.
230
+
231
+ This program is distributed in the hope that it will be useful,
232
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
233
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
234
+ GNU General Public License for more details.
235
+
236
+ You should have received a copy of the GNU General Public License
237
+ along with this program. If not, see http://www.gnu.org/licenses/.
238
+
239
+ Lesli · Ruby on Rails SaaS Development Framework.
240
+
241
+ Made with ♥ by https://www.lesli.tech
242
+ Building a better future, one line of code at a time.
243
+
244
+ @contact hello@lesli.tech
245
+ @website https://www.lesli.tech
246
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
247
+
248
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
249
+ // ·
250
+ */
@@ -1,15 +1,4 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
1
+ /*!********************************************************************************************************************************************************!*\
2
+ !*** css ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-19.use[1]!./node_modules/sass-loader/dist/cjs.js!../LesliBell/lib/scss/application.scss ***!
3
+ \********************************************************************************************************************************************************/
4
+
@@ -4,7 +4,12 @@ module LesliBell
4
4
 
5
5
  # GET /notifications
6
6
  def index
7
- @notifications = Notification.all
7
+ respond_to do |format|
8
+ format.html { }
9
+ format.json {
10
+ respond_with_pagination(NotificationService.new(current_user, query).index)
11
+ }
12
+ end
8
13
  end
9
14
 
10
15
  # GET /notifications/1
@@ -13,7 +18,6 @@ module LesliBell
13
18
 
14
19
  # GET /notifications/new
15
20
  def new
16
- @notification = Notification.new
17
21
  end
18
22
 
19
23
  # GET /notifications/1/edit
@@ -23,23 +23,23 @@ module LesliBell
23
23
 
24
24
  return notifications
25
25
 
26
- LC::Response.pagination(
27
- notifications.current_page,
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
- )
26
+ # LC::Response.pagination(
27
+ # notifications.current_page,
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
43
 
44
44
  end
45
45
 
@@ -19,11 +19,11 @@ 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 https://www.lesli.tech
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.dev
26
+ @website https://www.lesli.tech
27
27
  @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
28
 
29
29
  // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
@@ -1,9 +1,33 @@
1
- <h1>New notification</h1>
1
+ <%#
2
2
 
3
- <%= render "form", notification: @notification %>
3
+ Lesli
4
4
 
5
- <br>
5
+ Copyright (c) 2023, Lesli Technologies, S. A.
6
6
 
7
- <div>
8
- <%= link_to "Back to notifications", notifications_path %>
9
- </div>
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-feedback-line") %>
24
- <%= navigation_item(lesli_bell.dashboard_path, "Settings", "ri-settings-3-line") %>
23
+ <%#= navigation_item(lesli_bell.announcements_path, "Announcements", "ri-feedback-line") %>
24
+ <%#= navigation_item(lesli_bell.dashboard_path, "Settings", "ri-settings-3-line") %>
@@ -0,0 +1,27 @@
1
+ ---
2
+ :en:
3
+ lesli_bell:
4
+ notifications:
5
+ view_create_notification: Create notification
6
+ column_subject: Subject
7
+ column_body: Body
8
+ view_title: Notifications
9
+ lesli:
10
+ shared:
11
+ view_discussions: Discussions
12
+ button_add_new: Add new
13
+ button_reload: Reload
14
+ view_files: Files
15
+ view_quick_actions: Quick actions
16
+ button_list: List
17
+ button_save: Save
18
+ button_delete: Delete
19
+ button_edit: Edit
20
+ view_status_active: Active
21
+ view_status_inactive: Inactive
22
+ button_settings: Settings
23
+ button_show: Show
24
+ toolbar_search: Search...
25
+ application:
26
+ navigation_logout: Logout
27
+ navigation_my_profile: My profile
@@ -0,0 +1,27 @@
1
+ ---
2
+ :es:
3
+ lesli_bell:
4
+ notifications:
5
+ view_create_notification: Crear notificación
6
+ column_subject: Asunto
7
+ column_body: Contenido
8
+ view_title: Notificaciones
9
+ lesli:
10
+ shared:
11
+ view_discussions: Discusiones
12
+ button_add_new: Agregar nuevo
13
+ button_reload: Recargar
14
+ view_files: Archivos
15
+ view_quick_actions: Acciones rapidas
16
+ button_list: Lista
17
+ button_save: Guardar
18
+ button_delete: Eliminar
19
+ button_edit: Editar
20
+ view_status_active: Activo
21
+ view_status_inactive: Inactivo
22
+ button_settings: Configuración
23
+ button_show: Ver
24
+ toolbar_search: Buscar...
25
+ application:
26
+ navigation_logout: Cerrar sesión
27
+ navigation_my_profile: Mi perfil
@@ -0,0 +1,27 @@
1
+ ---
2
+ :fr:
3
+ lesli_bell:
4
+ notifications:
5
+ view_create_notification: ":lesli_bell.notifications.view_create_notification:"
6
+ column_subject: ":lesli_bell.notifications.column_subject:"
7
+ column_body: ":lesli_bell.notifications.column_body:"
8
+ view_title: ":lesli_bell.notifications.view_title:"
9
+ lesli:
10
+ shared:
11
+ view_discussions: ":lesli.shared.view_discussions:"
12
+ button_add_new: ":lesli.shared.button_add_new:"
13
+ button_reload: ":lesli.shared.button_reload:"
14
+ view_files: ":lesli.shared.view_files:"
15
+ view_quick_actions: ":lesli.shared.view_quick_actions:"
16
+ button_list: ":lesli.shared.button_list:"
17
+ button_save: ":lesli.shared.button_save:"
18
+ button_delete: ":lesli.shared.button_delete:"
19
+ button_edit: ":lesli.shared.button_edit:"
20
+ view_status_active: ":lesli.shared.view_status_active:"
21
+ view_status_inactive: ":lesli.shared.view_status_inactive:"
22
+ button_settings: ":lesli.shared.button_settings:"
23
+ button_show: ":lesli.shared.button_show:"
24
+ toolbar_search: ":lesli.shared.toolbar_search:"
25
+ application:
26
+ navigation_logout: ":lesli.application.navigation_logout:"
27
+ navigation_my_profile: ":lesli.application.navigation_my_profile:"
@@ -0,0 +1,27 @@
1
+ ---
2
+ :it:
3
+ lesli_bell:
4
+ notifications:
5
+ view_create_notification: ":lesli_bell.notifications.view_create_notification:"
6
+ column_subject: ":lesli_bell.notifications.column_subject:"
7
+ column_body: ":lesli_bell.notifications.column_body:"
8
+ view_title: ":lesli_bell.notifications.view_title:"
9
+ lesli:
10
+ shared:
11
+ view_discussions: ":lesli.shared.view_discussions:"
12
+ button_add_new: ":lesli.shared.button_add_new:"
13
+ button_reload: ":lesli.shared.button_reload:"
14
+ view_files: ":lesli.shared.view_files:"
15
+ view_quick_actions: ":lesli.shared.view_quick_actions:"
16
+ button_list: ":lesli.shared.button_list:"
17
+ button_save: ":lesli.shared.button_save:"
18
+ button_delete: ":lesli.shared.button_delete:"
19
+ button_edit: ":lesli.shared.button_edit:"
20
+ view_status_active: ":lesli.shared.view_status_active:"
21
+ view_status_inactive: ":lesli.shared.view_status_inactive:"
22
+ button_settings: ":lesli.shared.button_settings:"
23
+ button_show: ":lesli.shared.button_show:"
24
+ toolbar_search: ":lesli.shared.toolbar_search:"
25
+ application:
26
+ navigation_logout: ":lesli.application.navigation_logout:"
27
+ navigation_my_profile: ":lesli.application.navigation_my_profile:"
@@ -0,0 +1,27 @@
1
+ ---
2
+ :pt:
3
+ lesli_bell:
4
+ notifications:
5
+ view_create_notification: ":lesli_bell.notifications.view_create_notification:"
6
+ column_subject: ":lesli_bell.notifications.column_subject:"
7
+ column_body: ":lesli_bell.notifications.column_body:"
8
+ view_title: ":lesli_bell.notifications.view_title:"
9
+ lesli:
10
+ shared:
11
+ view_discussions: ":lesli.shared.view_discussions:"
12
+ button_add_new: ":lesli.shared.button_add_new:"
13
+ button_reload: ":lesli.shared.button_reload:"
14
+ view_files: ":lesli.shared.view_files:"
15
+ view_quick_actions: ":lesli.shared.view_quick_actions:"
16
+ button_list: ":lesli.shared.button_list:"
17
+ button_save: ":lesli.shared.button_save:"
18
+ button_delete: ":lesli.shared.button_delete:"
19
+ button_edit: ":lesli.shared.button_edit:"
20
+ view_status_active: ":lesli.shared.view_status_active:"
21
+ view_status_inactive: ":lesli.shared.view_status_inactive:"
22
+ button_settings: ":lesli.shared.button_settings:"
23
+ button_show: ":lesli.shared.button_show:"
24
+ toolbar_search: ":lesli.shared.toolbar_search:"
25
+ application:
26
+ navigation_logout: ":lesli.application.navigation_logout:"
27
+ navigation_my_profile: ":lesli.application.navigation_my_profile:"
data/config/routes.rb CHANGED
@@ -1,6 +1,38 @@
1
+ =begin
2
+
3
+ Lesli
4
+
5
+ Copyright (c) 2023, 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
34
  root to: "dashboards#show"
3
35
  resource :dashboard, only: [:show]
4
- resources :notifications, only: [:index]
36
+ resources :notifications, only: [:index, :new]
5
37
  resources :announcements, only: [:index]
6
38
  end
@@ -1,27 +1,41 @@
1
1
  =begin
2
2
 
3
- Copyright (c) 2020, all rights reserved.
3
+ Lesli
4
4
 
5
- All the information provided by this platform is protected by international laws related to
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
- Without the written permission of the owner, any replication, modification,
11
- transmission, publication is strictly forbidden.
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
- For more information read the license file including with this software.
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
35
  create_table :lesli_bell_accounts do |t|
36
+ t.integer :status
37
+ t.datetime :deleted_at, index: true
23
38
  t.timestamps
24
- t.datetime :deleted_at, index: true
25
39
  end
26
40
  add_reference(:lesli_bell_accounts, :account, foreign_key: { to_table: :lesli_accounts })
27
41
  end