lesli_view 1.0.1 → 1.0.3
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/lib/lesli_view/components/tabs.html.erb +3 -1
- data/lib/lesli_view/components/tabs.rb +3 -2
- data/lib/lesli_view/components/tabs.scss +45 -0
- data/lib/lesli_view/partials/engine_spec.html.erb +53 -0
- data/lib/lesli_view/partials/engine_spec.rb +45 -0
- data/lib/lesli_view/version.rb +2 -2
- data/lib/lesli_view.rb +13 -9
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c11fa431aebcd01ea428fca7456f85bb413362e2628abcf8fe47713669c3665b
|
4
|
+
data.tar.gz: ce403d885861edae5b4f54674f3ee9663b5bb33aa4c068cb7257e8107441e63b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55c9d51b01fc424318afa81c3011039c0a28ec1e177ed623e1f072d841a0f7237b32f69e89e7065af74fd07f4157ef2ac4351277dd66a338037ccb7c8ee1a3a0
|
7
|
+
data.tar.gz: 193224534e62c6dc8aa3bca39370acf45c6c9c2b852854779ad75214fdf0653332823bfbffc3b5809a19a06eb7a280a380aa794b589664d6e4c22ac96dad6923
|
@@ -16,10 +16,11 @@ module LesliView
|
|
16
16
|
class Tabs < ViewComponent::Base
|
17
17
|
renders_many :tabs, "TabComponent"
|
18
18
|
|
19
|
-
attr_reader :active_tab
|
19
|
+
attr_reader :active_tab, :vertical
|
20
20
|
|
21
|
-
def initialize(active_tab: nil)
|
21
|
+
def initialize(active_tab: nil, vertical: false)
|
22
22
|
@active_tab = active_tab
|
23
|
+
@vertical = vertical
|
23
24
|
end
|
24
25
|
|
25
26
|
class TabComponent < ViewComponent::Base
|
@@ -0,0 +1,45 @@
|
|
1
|
+
|
2
|
+
.lesli-tabs.is-vertical {
|
3
|
+
display: flex;
|
4
|
+
|
5
|
+
.tabs {
|
6
|
+
display: flex;
|
7
|
+
flex-direction: column;
|
8
|
+
align-items: flex-start;
|
9
|
+
|
10
|
+
ul {
|
11
|
+
display: flex;
|
12
|
+
flex-direction: column;
|
13
|
+
border-bottom: none;
|
14
|
+
border-right: 1px solid #dbdbdb;
|
15
|
+
margin-right: 1.5rem;
|
16
|
+
min-width: 150px;
|
17
|
+
}
|
18
|
+
|
19
|
+
li {
|
20
|
+
width: 100%;
|
21
|
+
margin-bottom: 0.5rem;
|
22
|
+
|
23
|
+
&:last-child {
|
24
|
+
margin-bottom: 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
a {
|
28
|
+
justify-content: flex-start;
|
29
|
+
padding: 0.75em 1em;
|
30
|
+
border-bottom: none;
|
31
|
+
border-right: 3px solid transparent;
|
32
|
+
}
|
33
|
+
|
34
|
+
&.is-active a {
|
35
|
+
border-right-color: #00d1b2;
|
36
|
+
border-bottom-color: transparent;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.tab-content {
|
41
|
+
flex-grow: 1;
|
42
|
+
padding: 1rem;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
|
2
|
+
<style>
|
3
|
+
#about li:nth-child(1) {
|
4
|
+
border-bottom: 1px solid silver;
|
5
|
+
}
|
6
|
+
#about li:nth-child(2),
|
7
|
+
#about li:nth-child(3),
|
8
|
+
#about li:nth-child(4) {
|
9
|
+
font-size: 1.1rem;
|
10
|
+
margin-left: .4rem;
|
11
|
+
}
|
12
|
+
</style>
|
13
|
+
<div class="partial-engine-spec">
|
14
|
+
<ul>
|
15
|
+
<li class="mb-3 pb-2">
|
16
|
+
<h5 class="is-title is-size-5 has-text-weight-semibold"><%= engine[:name] %></h5>
|
17
|
+
<p class="is-size-5"><%= engine[:description] %></p>
|
18
|
+
</li>
|
19
|
+
<li class="mb-2">
|
20
|
+
<span class="icon-text">
|
21
|
+
<span class="material-icons md-24">
|
22
|
+
bug_report
|
23
|
+
</span>
|
24
|
+
<span></span>
|
25
|
+
</span>
|
26
|
+
Version: <%= engine[:version] %>
|
27
|
+
</li>
|
28
|
+
<li class="mb-2">
|
29
|
+
<span class="icon-text">
|
30
|
+
<span class="material-icons md-24">
|
31
|
+
schedule
|
32
|
+
</span>
|
33
|
+
<span></span>
|
34
|
+
</span>
|
35
|
+
Build: <%= LesliDate::Formatter.new(Time.at(engine[:build].to_i)).date_time %>
|
36
|
+
</li>
|
37
|
+
<li>
|
38
|
+
<span class="icon-text">
|
39
|
+
<span class="material-icons md-24">
|
40
|
+
library_books
|
41
|
+
</span>
|
42
|
+
<span></span>
|
43
|
+
</span>
|
44
|
+
<%= link_to_if(
|
45
|
+
engine.dig(:metadata, "documentation_uri"),
|
46
|
+
engine.dig(:metadata, "documentation_uri"),
|
47
|
+
engine.dig(:metadata, "documentation_uri"),
|
48
|
+
target: "_blank",
|
49
|
+
class: "is-family-sans-serif"
|
50
|
+
) %>
|
51
|
+
</li>
|
52
|
+
</ul>
|
53
|
+
</div>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
=begin
|
4
|
+
|
5
|
+
Lesli
|
6
|
+
|
7
|
+
Copyright (c) 2025, Lesli Technologies, S. A.
|
8
|
+
|
9
|
+
This program is free software: you can redistribute it and/or modify
|
10
|
+
it under the terms of the GNU General Public License as published by
|
11
|
+
the Free Software Foundation, either version 3 of the License, or
|
12
|
+
(at your option) any later version.
|
13
|
+
|
14
|
+
This program is distributed in the hope that it will be useful,
|
15
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17
|
+
GNU General Public License for more details.
|
18
|
+
|
19
|
+
You should have received a copy of the GNU General Public License
|
20
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
21
|
+
|
22
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
23
|
+
|
24
|
+
Made with ♥ by LesliTech
|
25
|
+
Building a better future, one line of code at a time.
|
26
|
+
|
27
|
+
@contact hello@lesli.tech
|
28
|
+
@website https://www.lesli.tech
|
29
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
30
|
+
|
31
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
32
|
+
// ·
|
33
|
+
=end
|
34
|
+
|
35
|
+
module LesliView
|
36
|
+
module Partials
|
37
|
+
class EngineSpec < ViewComponent::Base
|
38
|
+
attr_reader :engine
|
39
|
+
|
40
|
+
def initialize(engine)
|
41
|
+
@engine = engine
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
data/lib/lesli_view/version.rb
CHANGED
data/lib/lesli_view.rb
CHANGED
@@ -8,8 +8,10 @@ require "lesli_view/version"
|
|
8
8
|
require "lesli_view/engine"
|
9
9
|
|
10
10
|
|
11
|
-
# loading
|
12
|
-
require "lesli_view/
|
11
|
+
# loading charts
|
12
|
+
require "lesli_view/charts/general"
|
13
|
+
require "lesli_view/charts/bar"
|
14
|
+
require "lesli_view/charts/line"
|
13
15
|
|
14
16
|
|
15
17
|
# loading components
|
@@ -27,20 +29,22 @@ require "lesli_view/elements/avatar"
|
|
27
29
|
require "lesli_view/elements/button"
|
28
30
|
|
29
31
|
|
30
|
-
# loading charts
|
31
|
-
require "lesli_view/charts/general"
|
32
|
-
require "lesli_view/charts/bar"
|
33
|
-
require "lesli_view/charts/line"
|
34
|
-
|
35
|
-
|
36
32
|
# loading forms
|
37
33
|
require "lesli_view/forms/fields"
|
38
34
|
require "lesli_view/forms/inputs"
|
39
35
|
require "lesli_view/forms/fieldset"
|
40
|
-
|
41
36
|
require "lesli_view/forms/builder"
|
42
37
|
require "lesli_view/forms/builder_horizontal"
|
43
38
|
|
39
|
+
|
40
|
+
# loading layout
|
41
|
+
require "lesli_view/layout/container"
|
42
|
+
|
43
|
+
|
44
|
+
# loading partials
|
45
|
+
require "lesli_view/partials/engine_spec"
|
46
|
+
|
47
|
+
|
44
48
|
module LesliView
|
45
49
|
class Error < StandardError; end
|
46
50
|
# Your code goes here...
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lesli_view
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Lesli Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: view_component
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- lib/lesli_view/components/panel.scss
|
46
46
|
- lib/lesli_view/components/tabs.html.erb
|
47
47
|
- lib/lesli_view/components/tabs.rb
|
48
|
+
- lib/lesli_view/components/tabs.scss
|
48
49
|
- lib/lesli_view/components/tabs_spec.rb
|
49
50
|
- lib/lesli_view/components/timeline.html.erb
|
50
51
|
- lib/lesli_view/components/timeline.rb
|
@@ -71,6 +72,8 @@ files:
|
|
71
72
|
- lib/lesli_view/forms/inputs.rb
|
72
73
|
- lib/lesli_view/layout/container.html.erb
|
73
74
|
- lib/lesli_view/layout/container.rb
|
75
|
+
- lib/lesli_view/partials/engine_spec.html.erb
|
76
|
+
- lib/lesli_view/partials/engine_spec.rb
|
74
77
|
- lib/lesli_view/version.rb
|
75
78
|
- license
|
76
79
|
- readme.md
|