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.
Files changed (57) 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 +1 -2835
  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/announcements_controller.rb +16 -1
  7. data/app/controllers/lesli_bell/dashboards_controller.rb +26 -49
  8. data/app/controllers/lesli_bell/notifications_controller.rb +7 -8
  9. data/app/models/lesli_bell/announcement/user.rb +6 -0
  10. data/app/models/lesli_bell/announcement.rb +12 -2
  11. data/app/models/lesli_bell/dashboard.rb +38 -2
  12. data/app/models/lesli_bell/notification.rb +15 -16
  13. data/app/services/lesli_bell/announcement_service.rb +84 -0
  14. data/app/services/lesli_bell/notification_service.rb +46 -51
  15. data/app/views/lesli_bell/announcements/index.html.erb +30 -11
  16. data/app/views/lesli_bell/dashboards/edit.html.erb +30 -7
  17. data/app/views/lesli_bell/dashboards/show.html.erb +33 -1
  18. data/app/views/lesli_bell/notifications/index.html.erb +67 -3
  19. data/app/views/lesli_bell/notifications/new.html.erb +30 -6
  20. data/app/views/lesli_bell/partials/{_engine-navigation.html.erb → _navigation.html.erb} +2 -2
  21. data/config/locales/translations.en.yml +2 -0
  22. data/config/locales/translations.es.yml +2 -0
  23. data/config/locales/translations.fr.yml +2 -0
  24. data/config/locales/translations.it.yml +2 -0
  25. data/config/locales/translations.pt.yml +2 -0
  26. data/config/routes.rb +34 -3
  27. data/db/migrate/v1.0/0308000110_create_lesli_bell_accounts.rb +24 -15
  28. data/db/migrate/v1.0/0308003010_create_lesli_bell_dashboards.rb +37 -0
  29. data/db/migrate/v1.0/0308100110_create_lesli_bell_notifications.rb +24 -13
  30. data/db/migrate/v1.0/0308110110_create_lesli_bell_announcements.rb +26 -12
  31. data/db/migrate/v1.0/0308110310_create_lesli_bell_announcement_users.rb +6 -7
  32. data/db/seed/announcements.rb +47 -0
  33. data/db/seed/notifications.rb +53 -0
  34. data/db/seed/seeds.json +36 -0
  35. data/db/seeds.rb +30 -15
  36. data/lib/lesli_bell/version.rb +2 -2
  37. data/lib/vue/application.js +42 -20
  38. data/lib/vue/apps/announcements/index.vue +49 -28
  39. data/lib/vue/apps/notifications/components/notification-form.vue +45 -23
  40. data/lib/vue/apps/notifications/index.vue +55 -40
  41. data/lib/vue/apps/notifications/new.vue +32 -21
  42. data/lib/vue/stores/announcement.js +36 -31
  43. data/lib/vue/stores/notification.js +56 -23
  44. data/lib/vue/stores/translations.json +232 -0
  45. data/license +674 -0
  46. data/readme.md +75 -18
  47. metadata +38 -18
  48. data/app/views/lesli_bell/announcements/_announcement.html.erb +0 -2
  49. data/app/views/lesli_bell/announcements/_form.html.erb +0 -17
  50. data/app/views/lesli_bell/dashboards/_dashboard.html.erb +0 -2
  51. data/app/views/lesli_bell/dashboards/_form.html.erb +0 -17
  52. data/app/views/lesli_bell/dashboards/index.html.erb +0 -14
  53. data/app/views/lesli_bell/dashboards/new.html.erb +0 -9
  54. data/db/migrate/v1.0/0308100210_create_lesli_bell_notification_activities.rb +0 -17
  55. data/db/seed/development.rb +0 -36
  56. data/db/seed/test.rb +0 -0
  57. /data/{db/seed/production.rb → lib/scss/application.scss} +0 -0
@@ -0,0 +1,232 @@
1
+ {
2
+ "en": {
3
+ "lesli": {
4
+ "application": {
5
+ "navigation_logout": "Logout",
6
+ "navigation_my_profile": "My profile"
7
+ },
8
+ "dashboards": {
9
+ "column_default": "Default",
10
+ "column_name": "Name",
11
+ "title": "Dashboards",
12
+ "view_add_component": "Add component"
13
+ },
14
+ "shared": {
15
+ "button_add_new": "Add new",
16
+ "button_delete": "Delete",
17
+ "button_edit": "Edit",
18
+ "button_list": "List",
19
+ "button_reload": "Reload",
20
+ "button_save": "Save",
21
+ "button_settings": "Settings",
22
+ "button_show": "Show",
23
+ "message_operation_error": "Operation failed. Please try again.",
24
+ "message_operation_success": "Operation completed successfully",
25
+ "toolbar_search": "Search...",
26
+ "view_discussions": "Discussions",
27
+ "view_files": "Files",
28
+ "view_quick_actions": "Quick actions",
29
+ "view_status_active": "Active",
30
+ "view_status_inactive": "Inactive"
31
+ }
32
+ },
33
+ "lesli_bell": {
34
+ "announcements": {
35
+ "column_category": "Category",
36
+ "column_end_at": "End At",
37
+ "column_id": "ID",
38
+ "column_name": "Name",
39
+ "column_start_at": "Start At",
40
+ "column_url": "URL",
41
+ "view_title": "Announcements"
42
+ },
43
+ "notifications": {
44
+ "view_title": "Notifications"
45
+ }
46
+ }
47
+ },
48
+ "es": {
49
+ "lesli": {
50
+ "application": {
51
+ "navigation_logout": "Cerrar sesión",
52
+ "navigation_my_profile": "Mi perfil"
53
+ },
54
+ "dashboards": {
55
+ "column_default": "Default",
56
+ "column_name": "Nombre",
57
+ "title": "Dashboards",
58
+ "view_add_component": "Agregar componente"
59
+ },
60
+ "shared": {
61
+ "button_add_new": "Agregar nuevo",
62
+ "button_delete": "Eliminar",
63
+ "button_edit": "Editar",
64
+ "button_list": "Lista",
65
+ "button_reload": "Recargar",
66
+ "button_save": "Guardar",
67
+ "button_settings": "Configuración",
68
+ "button_show": "Ver",
69
+ "message_operation_error": "Operación fallida. Por favor, inténtelo de nuevo.",
70
+ "message_operation_success": "Operacion realizada satisfactoriamente",
71
+ "toolbar_search": "Buscar...",
72
+ "view_discussions": "Discusiones",
73
+ "view_files": "Archivos",
74
+ "view_quick_actions": "Acciones rapidas",
75
+ "view_status_active": "Activo",
76
+ "view_status_inactive": "Inactivo"
77
+ }
78
+ },
79
+ "lesli_bell": {
80
+ "announcements": {
81
+ "column_category": ":lesli_bell.announcements.column_category:",
82
+ "column_end_at": ":lesli_bell.announcements.column_end_at:",
83
+ "column_id": ":lesli_bell.announcements.column_id:",
84
+ "column_name": ":lesli_bell.announcements.column_name:",
85
+ "column_start_at": ":lesli_bell.announcements.column_start_at:",
86
+ "column_url": ":lesli_bell.announcements.column_url:",
87
+ "view_title": "Anuncios"
88
+ },
89
+ "notifications": {
90
+ "view_title": "Notificaciones"
91
+ }
92
+ }
93
+ },
94
+ "fr": {
95
+ "lesli": {
96
+ "application": {
97
+ "navigation_logout": ":lesli.application.navigation_logout:",
98
+ "navigation_my_profile": ":lesli.application.navigation_my_profile:"
99
+ },
100
+ "dashboards": {
101
+ "column_default": ":lesli.dashboards.column_default:",
102
+ "column_name": ":lesli.dashboards.column_name:",
103
+ "title": ":lesli.dashboards.title:",
104
+ "view_add_component": ":lesli.dashboards.view_add_component:"
105
+ },
106
+ "shared": {
107
+ "button_add_new": ":lesli.shared.button_add_new:",
108
+ "button_delete": ":lesli.shared.button_delete:",
109
+ "button_edit": ":lesli.shared.button_edit:",
110
+ "button_list": ":lesli.shared.button_list:",
111
+ "button_reload": ":lesli.shared.button_reload:",
112
+ "button_save": ":lesli.shared.button_save:",
113
+ "button_settings": ":lesli.shared.button_settings:",
114
+ "button_show": ":lesli.shared.button_show:",
115
+ "message_operation_error": ":lesli.shared.message_operation_error:",
116
+ "message_operation_success": ":lesli.shared.message_operation_success:",
117
+ "toolbar_search": ":lesli.shared.toolbar_search:",
118
+ "view_discussions": ":lesli.shared.view_discussions:",
119
+ "view_files": ":lesli.shared.view_files:",
120
+ "view_quick_actions": ":lesli.shared.view_quick_actions:",
121
+ "view_status_active": ":lesli.shared.view_status_active:",
122
+ "view_status_inactive": ":lesli.shared.view_status_inactive:"
123
+ }
124
+ },
125
+ "lesli_bell": {
126
+ "announcements": {
127
+ "column_category": ":lesli_bell.announcements.column_category:",
128
+ "column_end_at": ":lesli_bell.announcements.column_end_at:",
129
+ "column_id": ":lesli_bell.announcements.column_id:",
130
+ "column_name": ":lesli_bell.announcements.column_name:",
131
+ "column_start_at": ":lesli_bell.announcements.column_start_at:",
132
+ "column_url": ":lesli_bell.announcements.column_url:",
133
+ "view_title": ":lesli_bell.announcements.view_title:"
134
+ },
135
+ "notifications": {
136
+ "view_title": ":lesli_bell.notifications.view_title:"
137
+ }
138
+ }
139
+ },
140
+ "it": {
141
+ "lesli": {
142
+ "application": {
143
+ "navigation_logout": ":lesli.application.navigation_logout:",
144
+ "navigation_my_profile": ":lesli.application.navigation_my_profile:"
145
+ },
146
+ "dashboards": {
147
+ "column_default": ":lesli.dashboards.column_default:",
148
+ "column_name": ":lesli.dashboards.column_name:",
149
+ "title": ":lesli.dashboards.title:",
150
+ "view_add_component": ":lesli.dashboards.view_add_component:"
151
+ },
152
+ "shared": {
153
+ "button_add_new": ":lesli.shared.button_add_new:",
154
+ "button_delete": ":lesli.shared.button_delete:",
155
+ "button_edit": ":lesli.shared.button_edit:",
156
+ "button_list": ":lesli.shared.button_list:",
157
+ "button_reload": ":lesli.shared.button_reload:",
158
+ "button_save": ":lesli.shared.button_save:",
159
+ "button_settings": ":lesli.shared.button_settings:",
160
+ "button_show": ":lesli.shared.button_show:",
161
+ "message_operation_error": ":lesli.shared.message_operation_error:",
162
+ "message_operation_success": ":lesli.shared.message_operation_success:",
163
+ "toolbar_search": ":lesli.shared.toolbar_search:",
164
+ "view_discussions": ":lesli.shared.view_discussions:",
165
+ "view_files": ":lesli.shared.view_files:",
166
+ "view_quick_actions": ":lesli.shared.view_quick_actions:",
167
+ "view_status_active": ":lesli.shared.view_status_active:",
168
+ "view_status_inactive": ":lesli.shared.view_status_inactive:"
169
+ }
170
+ },
171
+ "lesli_bell": {
172
+ "announcements": {
173
+ "column_category": ":lesli_bell.announcements.column_category:",
174
+ "column_end_at": ":lesli_bell.announcements.column_end_at:",
175
+ "column_id": ":lesli_bell.announcements.column_id:",
176
+ "column_name": ":lesli_bell.announcements.column_name:",
177
+ "column_start_at": ":lesli_bell.announcements.column_start_at:",
178
+ "column_url": ":lesli_bell.announcements.column_url:",
179
+ "view_title": ":lesli_bell.announcements.view_title:"
180
+ },
181
+ "notifications": {
182
+ "view_title": ":lesli_bell.notifications.view_title:"
183
+ }
184
+ }
185
+ },
186
+ "pt": {
187
+ "lesli": {
188
+ "application": {
189
+ "navigation_logout": ":lesli.application.navigation_logout:",
190
+ "navigation_my_profile": ":lesli.application.navigation_my_profile:"
191
+ },
192
+ "dashboards": {
193
+ "column_default": ":lesli.dashboards.column_default:",
194
+ "column_name": ":lesli.dashboards.column_name:",
195
+ "title": ":lesli.dashboards.title:",
196
+ "view_add_component": ":lesli.dashboards.view_add_component:"
197
+ },
198
+ "shared": {
199
+ "button_add_new": ":lesli.shared.button_add_new:",
200
+ "button_delete": ":lesli.shared.button_delete:",
201
+ "button_edit": ":lesli.shared.button_edit:",
202
+ "button_list": ":lesli.shared.button_list:",
203
+ "button_reload": ":lesli.shared.button_reload:",
204
+ "button_save": ":lesli.shared.button_save:",
205
+ "button_settings": ":lesli.shared.button_settings:",
206
+ "button_show": ":lesli.shared.button_show:",
207
+ "message_operation_error": ":lesli.shared.message_operation_error:",
208
+ "message_operation_success": ":lesli.shared.message_operation_success:",
209
+ "toolbar_search": ":lesli.shared.toolbar_search:",
210
+ "view_discussions": ":lesli.shared.view_discussions:",
211
+ "view_files": ":lesli.shared.view_files:",
212
+ "view_quick_actions": ":lesli.shared.view_quick_actions:",
213
+ "view_status_active": ":lesli.shared.view_status_active:",
214
+ "view_status_inactive": ":lesli.shared.view_status_inactive:"
215
+ }
216
+ },
217
+ "lesli_bell": {
218
+ "announcements": {
219
+ "column_category": ":lesli_bell.announcements.column_category:",
220
+ "column_end_at": ":lesli_bell.announcements.column_end_at:",
221
+ "column_id": ":lesli_bell.announcements.column_id:",
222
+ "column_name": ":lesli_bell.announcements.column_name:",
223
+ "column_start_at": ":lesli_bell.announcements.column_start_at:",
224
+ "column_url": ":lesli_bell.announcements.column_url:",
225
+ "view_title": ":lesli_bell.announcements.view_title:"
226
+ },
227
+ "notifications": {
228
+ "view_title": ":lesli_bell.notifications.view_title:"
229
+ }
230
+ }
231
+ }
232
+ }