lesli_view 0.1.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 +7 -0
- data/Rakefile +8 -0
- data/lib/lesli_view/element/button.html.erb +12 -0
- data/lib/lesli_view/element/button.rb +72 -0
- data/lib/lesli_view/element/form.html.erb +10 -0
- data/lib/lesli_view/element/form.rb +51 -0
- data/lib/lesli_view/element/header.html.erb +16 -0
- data/lib/lesli_view/element/header.rb +46 -0
- data/lib/lesli_view/element/table.full.rb +43 -0
- data/lib/lesli_view/element/table.html.erb +39 -0
- data/lib/lesli_view/element/table.html.full.erb +101 -0
- data/lib/lesli_view/element/table.rb +77 -0
- data/lib/lesli_view/element/toolbar.html.erb +25 -0
- data/lib/lesli_view/element/toolbar.rb +47 -0
- data/lib/lesli_view/engine.rb +44 -0
- data/lib/lesli_view/layout/container.html.erb +5 -0
- data/lib/lesli_view/layout/container.rb +47 -0
- data/lib/lesli_view/lesli_view.scss +3 -0
- data/lib/lesli_view/version.rb +5 -0
- data/lib/lesli_view.rb +25 -0
- data/license +674 -0
- data/readme.md +95 -0
- metadata +81 -0
data/readme.md
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
|
2
|
+
<div align="center">
|
3
|
+
<img width="100" alt="LesliView logo" src="./docs/view-logo.svg" />
|
4
|
+
<h3 align="center">View elements & components for The Lesli Framework.</h3>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<br />
|
8
|
+
<hr/>
|
9
|
+
|
10
|
+
<p align="center" class="is-flex is-justify-content-center">
|
11
|
+
<a target="blank" href="https://rubygems.org/gems/lesli">
|
12
|
+
<img height="22" alt="Gem Version" src="https://badge.fury.io/rb/lesli.svg"/>
|
13
|
+
</a>
|
14
|
+
<a class="mx-2" href="https://codecov.io/github/LesliTech/Lesli">
|
15
|
+
<img height="22" src="https://codecov.io/github/LesliTech/Lesli/graph/badge.svg?token=2O12NENK5Y"/>
|
16
|
+
</a>
|
17
|
+
<a href="https://codecov.io/github/LesliTech/LesliBabel">
|
18
|
+
<img height="22" src="https://sonarcloud.io/api/project_badges/measure?project=LesliTech_LesliBabel&metric=sqale_rating"/>
|
19
|
+
</a>
|
20
|
+
</p>
|
21
|
+
|
22
|
+
<hr/>
|
23
|
+
<br />
|
24
|
+
|
25
|
+
### Quick start
|
26
|
+
|
27
|
+
```shell
|
28
|
+
# Add LesliAdmin engine gem
|
29
|
+
bundle add lesli_view
|
30
|
+
```
|
31
|
+
|
32
|
+
```erb
|
33
|
+
<%# index.html.erb %>
|
34
|
+
<%= render LesliView::Layout::Container.new("shield-sessions") do %>
|
35
|
+
<%= render LesliView::Element::Header.new(title: "Sessions", back: true) do %>
|
36
|
+
<%= render(LesliView::Element::Button.new(icon: "add", solid:true)) do %>
|
37
|
+
Add new
|
38
|
+
<% end %>
|
39
|
+
<%= render(LesliView::Element::Button.new(icon: "refresh")) do %>
|
40
|
+
Reload
|
41
|
+
<% end %>
|
42
|
+
<% end %>
|
43
|
+
<%= render LesliView::Element::Toolbar.new() %>
|
44
|
+
<%= render(LesliView::Element::Table.new(
|
45
|
+
columns: columns,
|
46
|
+
records: @sessions[:records]
|
47
|
+
)) %>
|
48
|
+
<% end %>
|
49
|
+
```
|
50
|
+
|
51
|
+
```erb
|
52
|
+
<%# single component %>
|
53
|
+
<%= render(LesliView::Element::Button.new(icon: "refresh")) do %>
|
54
|
+
Reload
|
55
|
+
<% end %>
|
56
|
+
```
|
57
|
+
|
58
|
+
### Documentation
|
59
|
+
* [website](https://www.lesli.dev/)
|
60
|
+
* [database](./docs/database.md)
|
61
|
+
* [documentation](https://www.lesli.dev/gems/view/)
|
62
|
+
|
63
|
+
|
64
|
+
### Get in touch with Lesli
|
65
|
+
|
66
|
+
* [Email: hello@lesli.tech](hello@lesli.tech)
|
67
|
+
* [Website: https://www.lesli.tech](https://www.lesli.tech)
|
68
|
+
* [Twitter: @LesliTech](https://twitter.com/LesliTech)
|
69
|
+
|
70
|
+
|
71
|
+
### License
|
72
|
+
-------
|
73
|
+
Copyright (c) 2025, Lesli Technologies, S. A.
|
74
|
+
|
75
|
+
This program is free software: you can redistribute it and/or modify
|
76
|
+
it under the terms of the GNU General Public License as published by
|
77
|
+
the Free Software Foundation, either version 3 of the License, or
|
78
|
+
(at your option) any later version.
|
79
|
+
|
80
|
+
This program is distributed in the hope that it will be useful,
|
81
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
82
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
83
|
+
GNU General Public License for more details.
|
84
|
+
|
85
|
+
You should have received a copy of the GNU General Public License
|
86
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
87
|
+
|
88
|
+
<hr />
|
89
|
+
<br />
|
90
|
+
|
91
|
+
<p align="center">
|
92
|
+
<img width="200" alt="Lesli logo" src="https://cdn.lesli.tech/lesli/brand/app-logo.svg" />
|
93
|
+
<h4 align="center">Ruby on Rails SaaS Development Framework.</h4>
|
94
|
+
</p>
|
95
|
+
|
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lesli_view
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- The Lesli Development Team
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2025-01-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: view_component
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: View elements & components for The Lesli Framework.
|
28
|
+
email:
|
29
|
+
- hello@lesli.tech
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- Rakefile
|
35
|
+
- lib/lesli_view.rb
|
36
|
+
- lib/lesli_view/element/button.html.erb
|
37
|
+
- lib/lesli_view/element/button.rb
|
38
|
+
- lib/lesli_view/element/form.html.erb
|
39
|
+
- lib/lesli_view/element/form.rb
|
40
|
+
- lib/lesli_view/element/header.html.erb
|
41
|
+
- lib/lesli_view/element/header.rb
|
42
|
+
- lib/lesli_view/element/table.full.rb
|
43
|
+
- lib/lesli_view/element/table.html.erb
|
44
|
+
- lib/lesli_view/element/table.html.full.erb
|
45
|
+
- lib/lesli_view/element/table.rb
|
46
|
+
- lib/lesli_view/element/toolbar.html.erb
|
47
|
+
- lib/lesli_view/element/toolbar.rb
|
48
|
+
- lib/lesli_view/engine.rb
|
49
|
+
- lib/lesli_view/layout/container.html.erb
|
50
|
+
- lib/lesli_view/layout/container.rb
|
51
|
+
- lib/lesli_view/lesli_view.scss
|
52
|
+
- lib/lesli_view/version.rb
|
53
|
+
- license
|
54
|
+
- readme.md
|
55
|
+
homepage: https://www.lesli.dev/
|
56
|
+
licenses:
|
57
|
+
- GPL-3.0
|
58
|
+
metadata:
|
59
|
+
homepage_uri: https://www.lesli.dev/
|
60
|
+
changelog_uri: https://github.com/LesliTech/LesliView
|
61
|
+
source_code_uri: https://github.com/LesliTech/LesliView
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '2.7'
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
requirements: []
|
77
|
+
rubygems_version: 3.4.19
|
78
|
+
signing_key:
|
79
|
+
specification_version: 4
|
80
|
+
summary: View elements & components for The Lesli Framework.
|
81
|
+
test_files: []
|