lesli_dashboard 1.1.2 → 1.1.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/Rakefile +6 -1
- data/app/assets/stylesheets/lesli_dashboard/application.css +172 -0
- data/app/models/lesli_dashboard/account.rb +4 -1
- data/lib/lesli_dashboard/engine.rb +1 -5
- data/lib/lesli_dashboard/version.rb +2 -2
- data/readme.md +2 -2
- metadata +6 -5
- data/app/assets/config/lesli_dashboard_manifest.js +0 -38
- data/app/assets/stylesheets/lesli_dashboard/application.tailwind.css +0 -33
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1532b1fee5da0b73c35576378fe782c118f34ddd5f7f75294074e70c748e45b1
|
|
4
|
+
data.tar.gz: 3181a7468f598b32802f7ccf0388255e5b7e1628254ad8fbdba792fdafd360f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53fa164c21f0711fa9c4ec29d683ca51213117d133cc543e9663e69f397c4e5682b9146d6da955c3de7f90eb50adb8a576d4f149d6d7c91c993c2a5b11e0741c
|
|
7
|
+
data.tar.gz: 963a5686f3879e92ab180d3e491b3c1cf22d82cd0ec79b660557fc753a7004befb0a2a77a5a3b49d798d1b2e53d0b90bcfbb454d3236cb2d1b7e69c011cc2a45
|
data/Rakefile
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
require "bundler/setup"
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
|
|
4
|
+
|
|
5
|
+
load "rails/tasks/engine.rake"
|
|
4
6
|
|
|
5
7
|
require "bundler/gem_tasks"
|
|
8
|
+
|
|
9
|
+
desc "Run engine tests through the dummy Rails application"
|
|
10
|
+
task test: "app:test"
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
/*!
|
|
3
|
+
|
|
4
|
+
Lesli
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
7
|
+
|
|
8
|
+
This program is free software: you can redistribute it and/or modify
|
|
9
|
+
it under the terms of the GNU General Public License as published by
|
|
10
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
(at your option) any later version.
|
|
12
|
+
|
|
13
|
+
This program is distributed in the hope that it will be useful,
|
|
14
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
GNU General Public License for more details.
|
|
17
|
+
|
|
18
|
+
You should have received a copy of the GNU General Public License
|
|
19
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
20
|
+
|
|
21
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
|
22
|
+
|
|
23
|
+
Made with ♥ by LesliTech
|
|
24
|
+
Building a better future, one line of code at a time.
|
|
25
|
+
|
|
26
|
+
@contact hello@lesli.tech
|
|
27
|
+
@website https://www.lesli.tech
|
|
28
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
29
|
+
|
|
30
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
31
|
+
// ·
|
|
32
|
+
*/
|
|
33
|
+
@layer properties;
|
|
34
|
+
@layer theme, utilities;
|
|
35
|
+
@layer theme {
|
|
36
|
+
:root, :host {
|
|
37
|
+
--color-slate-50: oklch(98.4% 0.003 247.858);
|
|
38
|
+
--color-slate-300: oklch(86.9% 0.022 252.894);
|
|
39
|
+
--spacing: 0.25rem;
|
|
40
|
+
--radius-2xl: 1rem;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
@layer utilities {
|
|
44
|
+
.col-span-12 {
|
|
45
|
+
grid-column: span 12 / span 12;
|
|
46
|
+
}
|
|
47
|
+
.mt-6 {
|
|
48
|
+
margin-top: calc(var(--spacing) * 6);
|
|
49
|
+
}
|
|
50
|
+
.grid {
|
|
51
|
+
display: grid;
|
|
52
|
+
}
|
|
53
|
+
.h-full {
|
|
54
|
+
height: 100%;
|
|
55
|
+
}
|
|
56
|
+
.w-full {
|
|
57
|
+
width: 100%;
|
|
58
|
+
}
|
|
59
|
+
.min-w-0 {
|
|
60
|
+
min-width: 0px;
|
|
61
|
+
}
|
|
62
|
+
.grid-cols-12 {
|
|
63
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
64
|
+
}
|
|
65
|
+
.items-stretch {
|
|
66
|
+
align-items: stretch;
|
|
67
|
+
}
|
|
68
|
+
.gap-4 {
|
|
69
|
+
gap: calc(var(--spacing) * 4);
|
|
70
|
+
}
|
|
71
|
+
.rounded-2xl {
|
|
72
|
+
border-radius: var(--radius-2xl);
|
|
73
|
+
}
|
|
74
|
+
.border {
|
|
75
|
+
border-style: var(--tw-border-style);
|
|
76
|
+
border-width: 1px;
|
|
77
|
+
}
|
|
78
|
+
.border-dashed {
|
|
79
|
+
--tw-border-style: dashed;
|
|
80
|
+
border-style: dashed;
|
|
81
|
+
}
|
|
82
|
+
.border-slate-300 {
|
|
83
|
+
border-color: var(--color-slate-300);
|
|
84
|
+
}
|
|
85
|
+
.bg-slate-50\/70 {
|
|
86
|
+
background-color: color-mix(in srgb, oklch(98.4% 0.003 247.858) 70%, transparent);
|
|
87
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
88
|
+
background-color: color-mix(in oklab, var(--color-slate-50) 70%, transparent);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.px-6 {
|
|
92
|
+
padding-inline: calc(var(--spacing) * 6);
|
|
93
|
+
}
|
|
94
|
+
.py-12 {
|
|
95
|
+
padding-block: calc(var(--spacing) * 12);
|
|
96
|
+
}
|
|
97
|
+
@media (width >= 40rem) {
|
|
98
|
+
.sm\:gap-5 {
|
|
99
|
+
gap: calc(var(--spacing) * 5);
|
|
100
|
+
}
|
|
101
|
+
.sm\:py-16 {
|
|
102
|
+
padding-block: calc(var(--spacing) * 16);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
@media (width >= 48rem) {
|
|
106
|
+
.md\:col-span-6 {
|
|
107
|
+
grid-column: span 6 / span 6;
|
|
108
|
+
}
|
|
109
|
+
.md\:col-span-12 {
|
|
110
|
+
grid-column: span 12 / span 12;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
@media (width >= 64rem) {
|
|
114
|
+
.lg\:col-span-1 {
|
|
115
|
+
grid-column: span 1 / span 1;
|
|
116
|
+
}
|
|
117
|
+
.lg\:col-span-2 {
|
|
118
|
+
grid-column: span 2 / span 2;
|
|
119
|
+
}
|
|
120
|
+
.lg\:col-span-3 {
|
|
121
|
+
grid-column: span 3 / span 3;
|
|
122
|
+
}
|
|
123
|
+
.lg\:col-span-4 {
|
|
124
|
+
grid-column: span 4 / span 4;
|
|
125
|
+
}
|
|
126
|
+
.lg\:col-span-5 {
|
|
127
|
+
grid-column: span 5 / span 5;
|
|
128
|
+
}
|
|
129
|
+
.lg\:col-span-6 {
|
|
130
|
+
grid-column: span 6 / span 6;
|
|
131
|
+
}
|
|
132
|
+
.lg\:col-span-7 {
|
|
133
|
+
grid-column: span 7 / span 7;
|
|
134
|
+
}
|
|
135
|
+
.lg\:col-span-8 {
|
|
136
|
+
grid-column: span 8 / span 8;
|
|
137
|
+
}
|
|
138
|
+
.lg\:col-span-9 {
|
|
139
|
+
grid-column: span 9 / span 9;
|
|
140
|
+
}
|
|
141
|
+
.lg\:col-span-10 {
|
|
142
|
+
grid-column: span 10 / span 10;
|
|
143
|
+
}
|
|
144
|
+
.lg\:col-span-11 {
|
|
145
|
+
grid-column: span 11 / span 11;
|
|
146
|
+
}
|
|
147
|
+
.lg\:col-span-12 {
|
|
148
|
+
grid-column: span 12 / span 12;
|
|
149
|
+
}
|
|
150
|
+
.lg\:gap-6 {
|
|
151
|
+
gap: calc(var(--spacing) * 6);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
.\[\&_\.box\]\:h-full .box {
|
|
155
|
+
height: 100%;
|
|
156
|
+
}
|
|
157
|
+
.\[\&\>\*\]\:h-full > * {
|
|
158
|
+
height: 100%;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
@property --tw-border-style {
|
|
162
|
+
syntax: "*";
|
|
163
|
+
inherits: false;
|
|
164
|
+
initial-value: solid;
|
|
165
|
+
}
|
|
166
|
+
@layer properties {
|
|
167
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
168
|
+
*, ::before, ::after, ::backdrop {
|
|
169
|
+
--tw-border-style: solid;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -32,7 +32,10 @@ Building a better future, one line of code at a time.
|
|
|
32
32
|
|
|
33
33
|
module LesliDashboard
|
|
34
34
|
class Account < ApplicationRecord
|
|
35
|
-
belongs_to :account,
|
|
35
|
+
belongs_to :account,
|
|
36
|
+
class_name: "Lesli::Account",
|
|
37
|
+
inverse_of: :dashboard
|
|
38
|
+
validates :account_id, uniqueness: true
|
|
36
39
|
|
|
37
40
|
has_many :dashboards
|
|
38
41
|
has_many :users, class_name: "Lesli::User"
|
|
@@ -34,11 +34,7 @@ module LesliDashboard
|
|
|
34
34
|
class Engine < ::Rails::Engine
|
|
35
35
|
isolate_namespace LesliDashboard
|
|
36
36
|
|
|
37
|
-
initializer :
|
|
38
|
-
|
|
39
|
-
# register assets manifest
|
|
40
|
-
config.assets.precompile += %w[lesli_dashboard_manifest.js]
|
|
41
|
-
|
|
37
|
+
initializer :lesli_dashboard do |app|
|
|
42
38
|
# register engine migrations path
|
|
43
39
|
unless app.root.to_s.match root.to_s
|
|
44
40
|
config.paths["db/migrate"].expanded.each do |expanded_path|
|
data/readme.md
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
<br />
|
|
9
9
|
|
|
10
10
|
<div align="center">
|
|
11
|
-
<a target="_blank" href="https://github.com/LesliTech/LesliDashboard/actions/workflows/lesli-ci.yaml">
|
|
12
|
-
<img alt="LesliDashboard test status" src="https://img.shields.io/github/actions/workflow/status/LesliTech/LesliDashboard/lesli-ci.yaml?branch=master&style=for-the-badge&logo=github&label=tests">
|
|
11
|
+
<a target="_blank" href="https://github.com/LesliTech/LesliDashboard/actions/workflows/lesli-ci-engine.yaml">
|
|
12
|
+
<img alt="LesliDashboard test status" src="https://img.shields.io/github/actions/workflow/status/LesliTech/LesliDashboard/lesli-ci-engine.yaml?branch=master&style=for-the-badge&logo=github&label=tests">
|
|
13
13
|
</a>
|
|
14
14
|
<a target="_blank" href="https://rubygems.org/gems/lesli_dashboard">
|
|
15
15
|
<img alt="Gem Version" src="https://img.shields.io/gem/v/lesli_dashboard?style=for-the-badge&logo=ruby">
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lesli_dashboard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Lesli Development Team
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-10-23 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: lesli
|
|
@@ -34,11 +35,9 @@ extensions: []
|
|
|
34
35
|
extra_rdoc_files: []
|
|
35
36
|
files:
|
|
36
37
|
- Rakefile
|
|
37
|
-
- app/assets/config/lesli_dashboard_manifest.js
|
|
38
38
|
- app/assets/images/lesli_dashboard/dashboard-logo.svg
|
|
39
39
|
- app/assets/javascripts/lesli_dashboard/application.js
|
|
40
40
|
- app/assets/stylesheets/lesli_dashboard/application.css
|
|
41
|
-
- app/assets/stylesheets/lesli_dashboard/application.tailwind.css
|
|
42
41
|
- app/controllers/lesli_dashboard/application_controller.rb
|
|
43
42
|
- app/controllers/lesli_dashboard/components_controller.rb
|
|
44
43
|
- app/controllers/lesli_dashboard/dashboard/components_controller.rb
|
|
@@ -101,6 +100,7 @@ metadata:
|
|
|
101
100
|
homepage_uri: https://www.lesli.dev/
|
|
102
101
|
changelog_uri: https://github.com/LesliTech/LesliDashboard
|
|
103
102
|
source_code_uri: https://github.com/LesliTech/LesliDashboard
|
|
103
|
+
post_install_message:
|
|
104
104
|
rdoc_options: []
|
|
105
105
|
require_paths:
|
|
106
106
|
- lib
|
|
@@ -115,7 +115,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
115
115
|
- !ruby/object:Gem::Version
|
|
116
116
|
version: '0'
|
|
117
117
|
requirements: []
|
|
118
|
-
rubygems_version: 3.
|
|
118
|
+
rubygems_version: 3.5.16
|
|
119
|
+
signing_key:
|
|
119
120
|
specification_version: 4
|
|
120
121
|
summary: Dashboard Manager for the Lesli Framework
|
|
121
122
|
test_files: []
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
Lesli
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2023, 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 platform.
|
|
21
|
-
|
|
22
|
-
Made with ♥ by https://www.lesli.tech
|
|
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
|
-
*/
|
|
32
|
-
|
|
33
|
-
//= link_tree ../images/lesli_dashboard .png
|
|
34
|
-
//= link_tree ../images/lesli_dashboard .jpg
|
|
35
|
-
//= link_tree ../images/lesli_dashboard .svg
|
|
36
|
-
|
|
37
|
-
//= link lesli_dashboard/application.css
|
|
38
|
-
//= link lesli_dashboard/application.js
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
-
/*!
|
|
3
|
-
|
|
4
|
-
Lesli
|
|
5
|
-
|
|
6
|
-
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
7
|
-
|
|
8
|
-
This program is free software: you can redistribute it and/or modify
|
|
9
|
-
it under the terms of the GNU General Public License as published by
|
|
10
|
-
the Free Software Foundation, either version 3 of the License, or
|
|
11
|
-
(at your option) any later version.
|
|
12
|
-
|
|
13
|
-
This program is distributed in the hope that it will be useful,
|
|
14
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
-
GNU General Public License for more details.
|
|
17
|
-
|
|
18
|
-
You should have received a copy of the GNU General Public License
|
|
19
|
-
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
20
|
-
|
|
21
|
-
Lesli · Ruby on Rails SaaS Development Framework.
|
|
22
|
-
|
|
23
|
-
Made with ♥ by LesliTech
|
|
24
|
-
Building a better future, one line of code at a time.
|
|
25
|
-
|
|
26
|
-
@contact hello@lesli.tech
|
|
27
|
-
@website https://www.lesli.tech
|
|
28
|
-
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
29
|
-
|
|
30
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
31
|
-
// ·
|
|
32
|
-
*/
|
|
33
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid}}}@layer theme{:root,:host{--color-slate-50:oklch(98.4% .003 247.858);--color-slate-300:oklch(86.9% .022 252.894);--spacing:.25rem;--radius-2xl:1rem}}@layer utilities{.col-span-12{grid-column:span 12/span 12}.mt-6{margin-top:calc(var(--spacing) * 6)}.grid{display:grid}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.items-stretch{align-items:stretch}.gap-4{gap:calc(var(--spacing) * 4)}.rounded-2xl{border-radius:var(--radius-2xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-slate-300{border-color:var(--color-slate-300)}.bg-slate-50\/70{background-color:#f8fafcb3}@supports (color:color-mix(in lab, red, red)){.bg-slate-50\/70{background-color:color-mix(in oklab, var(--color-slate-50) 70%, transparent)}}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-12{padding-block:calc(var(--spacing) * 12)}@media (min-width:40rem){.sm\:gap-5{gap:calc(var(--spacing) * 5)}.sm\:py-16{padding-block:calc(var(--spacing) * 16)}}@media (min-width:48rem){.md\:col-span-6{grid-column:span 6/span 6}.md\:col-span-12{grid-column:span 12/span 12}}@media (min-width:64rem){.lg\:col-span-1{grid-column:span 1/span 1}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-4{grid-column:span 4/span 4}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-6{grid-column:span 6/span 6}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-8{grid-column:span 8/span 8}.lg\:col-span-9{grid-column:span 9/span 9}.lg\:col-span-10{grid-column:span 10/span 10}.lg\:col-span-11{grid-column:span 11/span 11}.lg\:col-span-12{grid-column:span 12/span 12}.lg\:gap-6{gap:calc(var(--spacing) * 6)}}.\[\&_\.box\]\:h-full .box,.\[\&\>\*\]\:h-full>*{height:100%}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}
|