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
data/readme.md CHANGED
@@ -1,28 +1,71 @@
1
- # LesliBell
2
- Short description and motivation.
1
+ <p align="center">
2
+ <img width="90" alt="LesliBell logo" src="./app/assets/images/lesli_bell/bell-logo.svg" />
3
+ <h3 align="center">Notifications & Announcements System for the Lesli Framework.</h3>
4
+ </p>
3
5
 
4
- ## Usage
5
- How to use my plugin.
6
+ <hr/>
7
+ <p align="center">
8
+ <a target="blank" href="https://rubygems.org/gems/lesli_bell">
9
+ <img src="https://badge.fury.io/rb/lesli_bell.svg" alt="Gem Version" height="24">
10
+ </a>
11
+ </p>
12
+ <hr/>
6
13
 
7
- ## Installation
8
- Add this line to your application's Gemfile:
14
+ ### Quick start
9
15
 
10
- ```ruby
11
- gem "lesli_bell"
16
+ ```shell
17
+ # Add LesliBell engine
18
+ bundle add lesli_bell
12
19
  ```
13
20
 
14
- And then execute:
15
- ```bash
16
- $ bundle
21
+ ```shell
22
+ # Setup database
23
+ rake lesli:db:setup
17
24
  ```
18
25
 
19
- Or install it yourself as:
20
- ```bash
21
- $ gem install lesli_bell
26
+ ```ruby
27
+ # Load LesliBell
28
+ Rails.application.routes.draw do
29
+ mount LesliBell::Engine => "/bell"
30
+ end
22
31
  ```
23
32
 
24
- ## Contributing
25
- Contribution directions go here.
26
33
 
27
- ## License
28
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
34
+ ### Documentation
35
+ * [website](https://www.lesli.dev/)
36
+ * [database](./docs/database.md)
37
+ * [documentation](https://www.lesli.dev/engines/bell/)
38
+
39
+
40
+ ### Get in touch with Lesli
41
+
42
+ * [Email: hello@lesli.tech](hello@lesli.tech)
43
+ * [Website: https://www.lesli.tech](https://www.lesli.tech)
44
+ * [Twitter: @LesliTech](https://twitter.com/LesliTech)
45
+
46
+
47
+ ### License
48
+ -------
49
+ Copyright (c) 2023, Lesli Technologies, S. A.
50
+
51
+ This program is free software: you can redistribute it and/or modify
52
+ it under the terms of the GNU General Public License as published by
53
+ the Free Software Foundation, either version 3 of the License, or
54
+ (at your option) any later version.
55
+
56
+ This program is distributed in the hope that it will be useful,
57
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
58
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
59
+ GNU General Public License for more details.
60
+
61
+ You should have received a copy of the GNU General Public License
62
+ along with this program. If not, see http://www.gnu.org/licenses/.
63
+
64
+ <hr />
65
+ <br />
66
+
67
+ <p align="center">
68
+ <img width="200" alt="Lesli logo" src="https://cdn.lesli.tech/lesli/brand/app-logo.svg" />
69
+ <h4 align="center">Ruby on Rails SaaS Development Framework.</h4>
70
+ </p>
71
+
metadata CHANGED
@@ -1,16 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_bell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-01 00:00:00.000000000 Z
12
- dependencies: []
13
- description: Notification system for The Lesli Platform
11
+ date: 2024-05-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 7.0.6
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 7.0.6
27
+ - !ruby/object:Gem::Dependency
28
+ name: lesli
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5'
41
+ description: Notifications & Announcements System for the Lesli Framework.
14
42
  email:
15
43
  - hello@lesli.tech
16
44
  executables: []
@@ -19,7 +47,9 @@ extra_rdoc_files: []
19
47
  files:
20
48
  - Rakefile
21
49
  - app/assets/config/lesli_bell_manifest.js
50
+ - app/assets/images/lesli_bell/bell-logo.svg
22
51
  - app/assets/javascripts/lesli_bell/application.js
52
+ - app/assets/javascripts/lesli_bell/application.js.LICENSE.txt
23
53
  - app/assets/stylesheets/lesli_bell/application.css
24
54
  - app/controllers/lesli_bell/accounts_controller.rb
25
55
  - app/controllers/lesli_bell/announcements_controller.rb
@@ -62,10 +92,14 @@ files:
62
92
  - app/views/lesli_bell/notifications/new.html.erb
63
93
  - app/views/lesli_bell/notifications/show.html.erb
64
94
  - app/views/lesli_bell/partials/_engine-navigation.html.erb
95
+ - config/locales/translations.en.yml
96
+ - config/locales/translations.es.yml
97
+ - config/locales/translations.fr.yml
98
+ - config/locales/translations.it.yml
99
+ - config/locales/translations.pt.yml
65
100
  - config/routes.rb
66
101
  - db/migrate/v1.0/0308000110_create_lesli_bell_accounts.rb
67
102
  - db/migrate/v1.0/0308100110_create_lesli_bell_notifications.rb
68
- - db/migrate/v1.0/0308100210_create_lesli_bell_notification_activities.rb
69
103
  - db/migrate/v1.0/0308110110_create_lesli_bell_announcements.rb
70
104
  - db/migrate/v1.0/0308110210_create_lesli_bell_announcement_activities.rb
71
105
  - db/migrate/v1.0/0308110310_create_lesli_bell_announcement_users.rb
@@ -76,6 +110,7 @@ files:
76
110
  - lib/lesli_bell.rb
77
111
  - lib/lesli_bell/engine.rb
78
112
  - lib/lesli_bell/version.rb
113
+ - lib/scss/application.scss
79
114
  - lib/tasks/lesli_bell_tasks.rake
80
115
  - lib/vue/application.js
81
116
  - lib/vue/apps/announcements/components/form.vue
@@ -86,6 +121,8 @@ files:
86
121
  - lib/vue/apps/notifications/new.vue
87
122
  - lib/vue/stores/announcement.js
88
123
  - lib/vue/stores/notification.js
124
+ - lib/vue/stores/translations.json
125
+ - license
89
126
  - readme.md
90
127
  homepage: https://www.lesli.dev/
91
128
  licenses:
@@ -102,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
139
  requirements:
103
140
  - - ">="
104
141
  - !ruby/object:Gem::Version
105
- version: '0'
142
+ version: '2.7'
106
143
  required_rubygems_version: !ruby/object:Gem::Requirement
107
144
  requirements:
108
145
  - - ">="
@@ -112,5 +149,5 @@ requirements: []
112
149
  rubygems_version: 3.3.7
113
150
  signing_key:
114
151
  specification_version: 4
115
- summary: Notification system for The Lesli Platform
152
+ summary: Notifications & Announcements System for the Lesli Framework.
116
153
  test_files: []
@@ -1,17 +0,0 @@
1
- class CreateLesliBellNotificationActivities < ActiveRecord::Migration[7.0]
2
- #def change
3
- # table_base_structure = JSON.parse(File.read(Rails.root.join('db','structure','00000004_activities.json')))
4
- # create_table :cloud_bell_notification_activities do |t|
5
- # table_base_structure.each do |column|
6
- # t.send(
7
- # column["type"].parameterize.underscore.to_sym,
8
- # column["name"].parameterize.underscore.to_sym
9
- # )
10
- # end
11
- # t.timestamps
12
- # end
13
-
14
- # add_reference :cloud_bell_notification_activities, :cloud_bell_notifications, foreign_key: true, index: { name: "cloud_bell_activities_notifications" }
15
- # add_foreign_key :cloud_bell_notification_activities, :users, column: :users_id
16
- #end
17
- end