lesli_bell 1.0.0 → 1.0.1
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/controllers/lesli_bell/notifications_controller.rb +2 -2
- data/app/models/lesli_bell/announcement.rb +1 -1
- data/app/models/lesli_bell/dashboard.rb +0 -3
- data/app/views/lesli_bell/notifications/index.html.erb +1 -1
- data/config/routes.rb +1 -1
- data/lib/lesli_bell/version.rb +2 -2
- data/readme.md +59 -20
- metadata +6 -10
- data/db/migrate/v1.0/0308003010_create_lesli_bell_dashboards.rb +0 -37
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a4dee8fc902a97c53747e95dae3ae04957ae41537bfd2e51212b641811a5dcc
|
|
4
|
+
data.tar.gz: c1c5174fc3597fe9af63c560d16f3eb73abdf33b577a6e7453838ef5dfb0e1d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b10b26e3092d91f6df492cb0157f0712c401cefb9867a53bd6f1301a5a2a20aae205782c84bc6823c41aa649d7d6bcc6ea2cea85475edc05b08e9071faeea037
|
|
7
|
+
data.tar.gz: 53dbe5510e84c1d43e8b21088d5bec90d0cc74a57916a86d84dc40e60e8f315fdcd4dd074e5544eb2fcf13255eee0fe11eb469cbbdd35912d8f5efe794e2cd49
|
|
@@ -4,7 +4,7 @@ module LesliBell
|
|
|
4
4
|
|
|
5
5
|
# GET /notifications
|
|
6
6
|
def index
|
|
7
|
-
@notifications =
|
|
7
|
+
@notifications = respond_with_pagination(NotificationService.new(current_user, query).index)
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
# GET /notifications/1
|
|
@@ -33,7 +33,7 @@ module LesliBell
|
|
|
33
33
|
# PATCH/PUT /notifications/1
|
|
34
34
|
def update
|
|
35
35
|
NotificationService.new(current_user).read(params[:id])
|
|
36
|
-
@notifications =
|
|
36
|
+
@notifications = respond_with_pagination(NotificationService.new(current_user, query).index)
|
|
37
37
|
render :index
|
|
38
38
|
end
|
|
39
39
|
|
|
@@ -70,7 +70,7 @@ border: 2px solid hsl(var(--bulma-notification-h), var(--bulma-notification-s),
|
|
|
70
70
|
class: "button is-small is-#{notification[:category]}",
|
|
71
71
|
form: { class: "delete" }) do %>
|
|
72
72
|
<span class="icon">
|
|
73
|
-
<span class="material-
|
|
73
|
+
<span class="material-symbols">close</span>
|
|
74
74
|
</span>
|
|
75
75
|
<% end %>
|
|
76
76
|
|
data/config/routes.rb
CHANGED
|
@@ -31,7 +31,7 @@ Building a better future, one line of code at a time.
|
|
|
31
31
|
=end
|
|
32
32
|
|
|
33
33
|
LesliBell::Engine.routes.draw do
|
|
34
|
-
Lesli::
|
|
34
|
+
Lesli::Router.mount_lesli_engine_routes(self)
|
|
35
35
|
resources :notifications, only: [:index, :new, :update]
|
|
36
36
|
resources :announcements, only: [:index]
|
|
37
37
|
end
|
data/lib/lesli_bell/version.rb
CHANGED
data/readme.md
CHANGED
|
@@ -1,36 +1,42 @@
|
|
|
1
|
-
<div align="center"
|
|
1
|
+
<div align="center">
|
|
2
2
|
<img width="100" alt="LesliBell logo" src="./app/assets/images/lesli_bell/bell-logo.svg" />
|
|
3
|
-
<h3 align="center">Notifications & Announcements
|
|
3
|
+
<h3 align="center">Notifications & Announcements for the Lesli Framework.</h3>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
<br />
|
|
8
7
|
<hr/>
|
|
9
8
|
|
|
10
|
-
<div align="center"
|
|
11
|
-
<a target="
|
|
12
|
-
<img
|
|
9
|
+
<div align="center">
|
|
10
|
+
<a target="_blank" href="https://github.com/LesliTech/LesliBell/actions">
|
|
11
|
+
<img alt="Tests passing" src="https://img.shields.io/badge/Tests-passing-green?style=for-the-badge&logo=github">
|
|
13
12
|
</a>
|
|
14
|
-
<a
|
|
15
|
-
<img
|
|
13
|
+
<a target="_blank" href="https://rubygems.org/gems/lesli_bell">
|
|
14
|
+
<img alt="Gem Version" src="https://img.shields.io/gem/v/lesli_bell?style=for-the-badge&logo=ruby">
|
|
16
15
|
</a>
|
|
17
|
-
<a href="https://codecov.io/github/LesliTech/
|
|
18
|
-
<img
|
|
16
|
+
<a target="_blank" href="https://codecov.io/github/LesliTech/LesliBell">
|
|
17
|
+
<img alt="Codecov" src="https://img.shields.io/codecov/c/github/LesliTech/LesliBell?style=for-the-badge&logo=codecov">
|
|
19
18
|
</a>
|
|
20
19
|
</div>
|
|
21
20
|
|
|
22
21
|
<hr/>
|
|
23
22
|
<br />
|
|
24
23
|
|
|
24
|
+
<div align="center">
|
|
25
|
+
<img
|
|
26
|
+
style="width:100%;max-width:800px;border-radius:6px;"
|
|
27
|
+
alt="Lesli screenshot" src="./docs/images/screenshot.png" />
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<br />
|
|
31
|
+
<hr/>
|
|
32
|
+
<br />
|
|
25
33
|
|
|
26
|
-
###
|
|
34
|
+
### Installation
|
|
27
35
|
|
|
28
36
|
```shell
|
|
29
37
|
# Add LesliBell engine gem
|
|
30
38
|
bundle add lesli_bell
|
|
31
|
-
```
|
|
32
39
|
|
|
33
|
-
```shell
|
|
34
40
|
# Setup & initialize the database
|
|
35
41
|
rake lesli:db:setup
|
|
36
42
|
```
|
|
@@ -42,26 +48,52 @@ Rails.application.routes.draw do
|
|
|
42
48
|
end
|
|
43
49
|
```
|
|
44
50
|
|
|
51
|
+
<br />
|
|
52
|
+
<hr/>
|
|
53
|
+
<br />
|
|
45
54
|
|
|
46
|
-
###
|
|
55
|
+
### Development
|
|
56
|
+
|
|
57
|
+
```shell
|
|
58
|
+
# clone the lesli repo inside your engine folder: RailsApp/engines
|
|
59
|
+
git clone https://github.com/LesliTech/LesliBell.git
|
|
60
|
+
|
|
61
|
+
# Load LesliBell as a Gem
|
|
62
|
+
gem "lesli", path: "engines/LesliBell"
|
|
63
|
+
|
|
64
|
+
# Install the necessary Gems to run LesliBell
|
|
65
|
+
bundle install
|
|
47
66
|
|
|
67
|
+
# Setup & initialize the database
|
|
68
|
+
rake lesli:db:setup
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
<br />
|
|
73
|
+
<hr/>
|
|
74
|
+
<br />
|
|
48
75
|
|
|
76
|
+
### Demo
|
|
49
77
|
|
|
50
|
-
|
|
78
|
+
* [online demo](https://demo.lesli.dev/)
|
|
79
|
+
* [docker demo](https://github.com/LesliTech/lesli-docker-demo)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Documentation
|
|
51
83
|
* [website](https://www.lesli.dev/)
|
|
52
|
-
* [documentation](https://www.lesli.dev/engines/bell
|
|
84
|
+
* [documentation](https://www.lesli.dev/engines/bell)
|
|
53
85
|
|
|
54
86
|
|
|
55
|
-
###
|
|
87
|
+
### Connect with Lesli
|
|
56
88
|
|
|
89
|
+
* [X: @LesliTech](https://x.com/LesliTech)
|
|
57
90
|
* [Email: hello@lesli.tech](hello@lesli.tech)
|
|
58
91
|
* [Website: https://www.lesli.tech](https://www.lesli.tech)
|
|
59
|
-
* [Twitter: @LesliTech](https://twitter.com/LesliTech)
|
|
60
92
|
|
|
61
93
|
|
|
62
94
|
### License
|
|
63
95
|
-------
|
|
64
|
-
Copyright (c)
|
|
96
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
65
97
|
|
|
66
98
|
This program is free software: you can redistribute it and/or modify
|
|
67
99
|
it under the terms of the GNU General Public License as published by
|
|
@@ -76,10 +108,17 @@ GNU General Public License for more details.
|
|
|
76
108
|
You should have received a copy of the GNU General Public License
|
|
77
109
|
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
78
110
|
|
|
111
|
+
<br />
|
|
79
112
|
<hr />
|
|
80
113
|
<br />
|
|
114
|
+
<br />
|
|
81
115
|
|
|
82
116
|
<div align="center" class="has-text-centered">
|
|
83
117
|
<img width="200" alt="Lesli logo" src="https://cdn.lesli.tech/lesli/brand/app-logo.svg" />
|
|
84
|
-
<
|
|
118
|
+
<h3 align="center" class="mt-0">
|
|
119
|
+
The Open-Source SaaS Development Framework for Ruby on Rails.
|
|
120
|
+
</h3>
|
|
85
121
|
</div>
|
|
122
|
+
|
|
123
|
+
<br />
|
|
124
|
+
<br />
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lesli_bell
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Lesli Development Team
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: lesli
|
|
@@ -16,14 +15,14 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '5'
|
|
18
|
+
version: '5.0'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '5'
|
|
25
|
+
version: '5.0'
|
|
27
26
|
description: Notifications & Announcements System for the Lesli Framework.
|
|
28
27
|
email:
|
|
29
28
|
- hello@lesli.tech
|
|
@@ -81,7 +80,6 @@ files:
|
|
|
81
80
|
- config/locales/translations.pt.yml
|
|
82
81
|
- config/routes.rb
|
|
83
82
|
- db/migrate/v1.0/0308000110_create_lesli_bell_accounts.rb
|
|
84
|
-
- db/migrate/v1.0/0308003010_create_lesli_bell_dashboards.rb
|
|
85
83
|
- db/migrate/v1.0/0308100110_create_lesli_bell_notifications.rb
|
|
86
84
|
- db/migrate/v1.0/0308110110_create_lesli_bell_announcements.rb
|
|
87
85
|
- db/migrate/v1.0/0308110210_create_lesli_bell_announcement_activities.rb
|
|
@@ -114,7 +112,6 @@ metadata:
|
|
|
114
112
|
homepage_uri: https://www.lesli.dev/
|
|
115
113
|
changelog_uri: https://github.com/LesliTech/LesliBell
|
|
116
114
|
source_code_uri: https://github.com/LesliTech/LesliBell
|
|
117
|
-
post_install_message:
|
|
118
115
|
rdoc_options: []
|
|
119
116
|
require_paths:
|
|
120
117
|
- lib
|
|
@@ -122,15 +119,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
122
119
|
requirements:
|
|
123
120
|
- - ">="
|
|
124
121
|
- !ruby/object:Gem::Version
|
|
125
|
-
version: '
|
|
122
|
+
version: '0'
|
|
126
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
124
|
requirements:
|
|
128
125
|
- - ">="
|
|
129
126
|
- !ruby/object:Gem::Version
|
|
130
127
|
version: '0'
|
|
131
128
|
requirements: []
|
|
132
|
-
rubygems_version: 3.
|
|
133
|
-
signing_key:
|
|
129
|
+
rubygems_version: 3.7.1
|
|
134
130
|
specification_version: 4
|
|
135
131
|
summary: Notifications & Announcements System for the Lesli Framework.
|
|
136
132
|
test_files: []
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|