lesli_dashboard 0.2.0 → 0.4.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 +4 -4
- data/app/assets/javascripts/lesli_dashboard/application.js +14 -1
- data/app/assets/stylesheets/lesli_dashboard/application.css +595 -0
- data/app/controllers/lesli_dashboard/dashboard/components_controller.rb +60 -0
- data/app/controllers/lesli_dashboard/dashboards_controller.rb +36 -0
- data/app/models/lesli_dashboard/account.rb +44 -0
- data/app/models/lesli_dashboard/dashboard/component.rb +50 -0
- data/app/models/lesli_dashboard/dashboard.rb +55 -0
- data/app/views/lesli_dashboard/dashboards/edit.html.erb +32 -0
- data/app/views/lesli_dashboard/dashboards/index.html.erb +32 -0
- data/app/views/lesli_dashboard/dashboards/new.html.erb +32 -0
- data/app/views/lesli_dashboard/dashboards/show.html.erb +2 -0
- data/config/locales/translations.en.yml +1 -19
- data/config/locales/translations.es.yml +1 -19
- data/config/locales/translations.fr.yml +2 -0
- data/config/locales/translations.it.yml +2 -0
- data/config/locales/translations.pt.yml +2 -0
- data/config/routes.rb +2 -1
- data/db/migrate/0306000110_create_lesli_dashboard_accounts.rb +37 -0
- data/db/migrate/0306050110_create_lesli_dashboard_dashboards.rb +37 -0
- data/lib/lesli_dashboard/engine.rb +6 -0
- data/lib/lesli_dashboard/version.rb +2 -2
- data/lib/scss/application.scss +13 -0
- data/lib/vue/application.js +25 -0
- data/lib/vue/apps/assistant/show.vue +26 -5
- data/lib/vue/apps/dashboards/components/lesli-version.vue +71 -0
- data/lib/vue/stores/translations.json +114 -0
- data/readme.md +24 -15
- metadata +20 -27
- data/app/controllers/lesli_dashboard/assistants_controller.rb +0 -60
- data/app/helpers/lesli_dashboard/assistants_helper.rb +0 -4
- data/app/models/lesli_dashboard/assistant.rb +0 -4
- data/app/views/lesli_dashboard/assistants/edit.html.erb +0 -10
- data/app/views/lesli_dashboard/assistants/index.html.erb +0 -14
- data/app/views/lesli_dashboard/assistants/new.html.erb +0 -9
- data/app/views/lesli_dashboard/assistants/show.html.erb +0 -1
- data/db/migrate/20240303035734_create_lesli_dashboard_assistants.rb +0 -8
- /data/app/assets/images/lesli_dashboard/{engine-dashboard.svg → dashboard-logo.svg} +0 -0
@@ -1 +1,596 @@
|
|
1
|
+
/*!****************************************************************************************************************************************************************!*\
|
2
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!../LesliDashboard/lib/scss/application.scss ***!
|
3
|
+
\****************************************************************************************************************************************************************/
|
4
|
+
@charset "UTF-8";
|
5
|
+
/*
|
1
6
|
|
7
|
+
Lesli
|
8
|
+
|
9
|
+
Copyright (c) 2023, Lesli Technologies, S. A.
|
10
|
+
|
11
|
+
This program is free software: you can redistribute it and/or modify
|
12
|
+
it under the terms of the GNU General Public License as published by
|
13
|
+
the Free Software Foundation, either version 3 of the License, or
|
14
|
+
(at your option) any later version.
|
15
|
+
|
16
|
+
This program is distributed in the hope that it will be useful,
|
17
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19
|
+
GNU General Public License for more details.
|
20
|
+
|
21
|
+
You should have received a copy of the GNU General Public License
|
22
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
23
|
+
|
24
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
25
|
+
|
26
|
+
Made with ♥ by https://www.lesli.tech
|
27
|
+
Building a better future, one line of code at a time.
|
28
|
+
|
29
|
+
@contact hello@lesli.tech
|
30
|
+
@website https://www.lesli.tech
|
31
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
32
|
+
|
33
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
34
|
+
// ·
|
35
|
+
*/
|
36
|
+
/*
|
37
|
+
Lesli
|
38
|
+
|
39
|
+
Copyright (c) 2024, Lesli Technologies, S. A.
|
40
|
+
|
41
|
+
This program is free software: you can redistribute it and/or modify
|
42
|
+
it under the terms of the GNU General Public License as published by
|
43
|
+
the Free Software Foundation, either version 3 of the License, or
|
44
|
+
(at your option) any later version.
|
45
|
+
|
46
|
+
This program is distributed in the hope that it will be useful,
|
47
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
48
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
49
|
+
GNU General Public License for more details.
|
50
|
+
|
51
|
+
You should have received a copy of the GNU General Public License
|
52
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
53
|
+
|
54
|
+
Lesli - SCSS Utilities for websites, apps and web applications
|
55
|
+
|
56
|
+
Made with ♥ by LesliTech
|
57
|
+
Building a better future, one line of code at a time.
|
58
|
+
|
59
|
+
@contact hello@lesli.tech
|
60
|
+
@website https://www.lesli.tech
|
61
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
62
|
+
|
63
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
64
|
+
// ·
|
65
|
+
*/
|
66
|
+
/*
|
67
|
+
Lesli
|
68
|
+
|
69
|
+
Copyright (c) 2022, Lesli Technologies, S. A.
|
70
|
+
|
71
|
+
This program is free software: you can redistribute it and/or modify
|
72
|
+
it under the terms of the GNU General Public License as published by
|
73
|
+
the Free Software Foundation, either version 3 of the License, or
|
74
|
+
(at your option) any later version.
|
75
|
+
|
76
|
+
This program is distributed in the hope that it will be useful,
|
77
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
78
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
79
|
+
GNU General Public License for more details.
|
80
|
+
|
81
|
+
You should have received a copy of the GNU General Public License
|
82
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
83
|
+
|
84
|
+
LesliCSS - SCSS Utilities for websites, apps and web applications
|
85
|
+
|
86
|
+
Powered by https://www.lesli.tech
|
87
|
+
Building a better future, one line of code at a time.
|
88
|
+
|
89
|
+
@contact <hello@lesli.tech>
|
90
|
+
@website <https://lesli.tech>
|
91
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
92
|
+
|
93
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
94
|
+
// ·
|
95
|
+
*/
|
96
|
+
/**
|
97
|
+
Lesli
|
98
|
+
|
99
|
+
Copyright (c) 2022, Lesli Technologies, S. A.
|
100
|
+
|
101
|
+
This program is free software: you can redistribute it and/or modify
|
102
|
+
it under the terms of the GNU General Public License as published by
|
103
|
+
the Free Software Foundation, either version 3 of the License, or
|
104
|
+
(at your option) any later version.
|
105
|
+
|
106
|
+
This program is distributed in the hope that it will be useful,
|
107
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
108
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
109
|
+
GNU General Public License for more details.
|
110
|
+
|
111
|
+
You should have received a copy of the GNU General Public License
|
112
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
113
|
+
|
114
|
+
LesliCSS - SCSS Utilities for websites, apps and web applications
|
115
|
+
|
116
|
+
Powered by https://www.lesli.tech
|
117
|
+
Building a better future, one line of code at a time.
|
118
|
+
|
119
|
+
@contact <hello@lesli.tech>
|
120
|
+
@website <https://lesli.tech>
|
121
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
122
|
+
|
123
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
124
|
+
// ·
|
125
|
+
*/
|
126
|
+
/*
|
127
|
+
Lesli
|
128
|
+
|
129
|
+
Copyright (c) 2020, Lesli Technologies, S. A.
|
130
|
+
|
131
|
+
This program is free software: you can redistribute it and/or modify
|
132
|
+
it under the terms of the GNU General Public License as published by
|
133
|
+
the Free Software Foundation, either version 3 of the License, or
|
134
|
+
(at your option) any later version.
|
135
|
+
|
136
|
+
This program is distributed in the hope that it will be useful,
|
137
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
138
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
139
|
+
GNU General Public License for more details.
|
140
|
+
|
141
|
+
You should have received a copy of the GNU General Public License
|
142
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
143
|
+
|
144
|
+
LesliCSS - SCSS Utilities for websites, apps and web applications
|
145
|
+
|
146
|
+
Powered by https://www.lesli.tech
|
147
|
+
Building a better future, one line of code at a time.
|
148
|
+
|
149
|
+
@contact <hello@lesli.tech>
|
150
|
+
@website <https://lesli.tech>
|
151
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
152
|
+
|
153
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
154
|
+
// ·
|
155
|
+
*/
|
156
|
+
/**
|
157
|
+
Lesli
|
158
|
+
|
159
|
+
Copyright (c) 2022, Lesli Technologies, S. A.
|
160
|
+
|
161
|
+
This program is free software: you can redistribute it and/or modify
|
162
|
+
it under the terms of the GNU General Public License as published by
|
163
|
+
the Free Software Foundation, either version 3 of the License, or
|
164
|
+
(at your option) any later version.
|
165
|
+
|
166
|
+
This program is distributed in the hope that it will be useful,
|
167
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
168
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
169
|
+
GNU General Public License for more details.
|
170
|
+
|
171
|
+
You should have received a copy of the GNU General Public License
|
172
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
173
|
+
|
174
|
+
LesliCSS - SCSS Utilities for websites, apps and web applications
|
175
|
+
|
176
|
+
Powered by https://www.lesli.tech
|
177
|
+
Building a better future, one line of code at a time.
|
178
|
+
|
179
|
+
@contact <hello@lesli.tech>
|
180
|
+
@website <https://lesli.tech>
|
181
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
182
|
+
|
183
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
184
|
+
// ·
|
185
|
+
*/
|
186
|
+
/*
|
187
|
+
Lesli
|
188
|
+
|
189
|
+
Copyright (c) 2024, Lesli Technologies, S. A.
|
190
|
+
|
191
|
+
This program is free software: you can redistribute it and/or modify
|
192
|
+
it under the terms of the GNU General Public License as published by
|
193
|
+
the Free Software Foundation, either version 3 of the License, or
|
194
|
+
(at your option) any later version.
|
195
|
+
|
196
|
+
This program is distributed in the hope that it will be useful,
|
197
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
198
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
199
|
+
GNU General Public License for more details.
|
200
|
+
|
201
|
+
You should have received a copy of the GNU General Public License
|
202
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
203
|
+
|
204
|
+
Lesli - SCSS Utilities for websites, apps and web applications
|
205
|
+
|
206
|
+
Made with ♥ by LesliTech
|
207
|
+
Building a better future, one line of code at a time.
|
208
|
+
|
209
|
+
@contact hello@lesli.tech
|
210
|
+
@website https://www.lesli.tech
|
211
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
212
|
+
|
213
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
214
|
+
// ·
|
215
|
+
*/
|
216
|
+
/**
|
217
|
+
Lesli
|
218
|
+
|
219
|
+
Copyright (c) 2020, Lesli Technologies, S. A.
|
220
|
+
|
221
|
+
This program is free software: you can redistribute it and/or modify
|
222
|
+
it under the terms of the GNU General Public License as published by
|
223
|
+
the Free Software Foundation, either version 3 of the License, or
|
224
|
+
(at your option) any later version.
|
225
|
+
|
226
|
+
This program is distributed in the hope that it will be useful,
|
227
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
228
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
229
|
+
GNU General Public License for more details.
|
230
|
+
|
231
|
+
You should have received a copy of the GNU General Public License
|
232
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
233
|
+
|
234
|
+
LesliCSS - SCSS Utilities for websites, apps and web applications
|
235
|
+
|
236
|
+
Powered by https://www.lesli.tech
|
237
|
+
Building a better future, one line of code at a time.
|
238
|
+
|
239
|
+
@contact <hello@lesli.tech>
|
240
|
+
@website <https://lesli.tech>
|
241
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
242
|
+
|
243
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
244
|
+
// ·
|
245
|
+
*/
|
246
|
+
/*
|
247
|
+
Lesli
|
248
|
+
|
249
|
+
Copyright (c) 2020, Lesli Technologies, S. A.
|
250
|
+
|
251
|
+
This program is free software: you can redistribute it and/or modify
|
252
|
+
it under the terms of the GNU General Public License as published by
|
253
|
+
the Free Software Foundation, either version 3 of the License, or
|
254
|
+
(at your option) any later version.
|
255
|
+
|
256
|
+
This program is distributed in the hope that it will be useful,
|
257
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
258
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
259
|
+
GNU General Public License for more details.
|
260
|
+
|
261
|
+
You should have received a copy of the GNU General Public License
|
262
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
263
|
+
|
264
|
+
LesliCSS - SCSS Utilities for websites, apps and web applications
|
265
|
+
|
266
|
+
Powered by https://www.lesli.tech
|
267
|
+
Building a better future, one line of code at a time.
|
268
|
+
|
269
|
+
@contact <hello@lesli.tech>
|
270
|
+
@website <https://lesli.tech>
|
271
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
272
|
+
|
273
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
274
|
+
// ·
|
275
|
+
*/
|
276
|
+
/*
|
277
|
+
Lesli
|
278
|
+
|
279
|
+
Copyright (c) 2024, Lesli Technologies, S. A.
|
280
|
+
|
281
|
+
This program is free software: you can redistribute it and/or modify
|
282
|
+
it under the terms of the GNU General Public License as published by
|
283
|
+
the Free Software Foundation, either version 3 of the License, or
|
284
|
+
(at your option) any later version.
|
285
|
+
|
286
|
+
This program is distributed in the hope that it will be useful,
|
287
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
288
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
289
|
+
GNU General Public License for more details.
|
290
|
+
|
291
|
+
You should have received a copy of the GNU General Public License
|
292
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
293
|
+
|
294
|
+
LesliCSS - SCSS Utilities for websites, apps and web applications
|
295
|
+
|
296
|
+
Made with ♥ by LesliTech
|
297
|
+
Building a better future, one line of code at a time.
|
298
|
+
|
299
|
+
@contact hello@lesli.tech
|
300
|
+
@website https://www.lesli.tech
|
301
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
302
|
+
|
303
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
304
|
+
// ·
|
305
|
+
*/
|
306
|
+
/**
|
307
|
+
Lesli
|
308
|
+
|
309
|
+
Copyright (c) 2020, Lesli Technologies, S. A.
|
310
|
+
|
311
|
+
This program is free software: you can redistribute it and/or modify
|
312
|
+
it under the terms of the GNU General Public License as published by
|
313
|
+
the Free Software Foundation, either version 3 of the License, or
|
314
|
+
(at your option) any later version.
|
315
|
+
|
316
|
+
This program is distributed in the hope that it will be useful,
|
317
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
318
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
319
|
+
GNU General Public License for more details.
|
320
|
+
|
321
|
+
You should have received a copy of the GNU General Public License
|
322
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
323
|
+
|
324
|
+
LesliCSS - SCSS Utilities for websites, apps and web applications
|
325
|
+
|
326
|
+
Powered by https://www.lesli.tech
|
327
|
+
Building a better future, one line of code at a time.
|
328
|
+
|
329
|
+
@contact <hello@lesli.tech>
|
330
|
+
@website <https://lesli.tech>
|
331
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
332
|
+
|
333
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
334
|
+
// ·
|
335
|
+
*/
|
336
|
+
/*
|
337
|
+
Lesli
|
338
|
+
|
339
|
+
Copyright (c) 2024, Lesli Technologies, S. A.
|
340
|
+
|
341
|
+
This program is free software: you can redistribute it and/or modify
|
342
|
+
it under the terms of the GNU General Public License as published by
|
343
|
+
the Free Software Foundation, either version 3 of the License, or
|
344
|
+
(at your option) any later version.
|
345
|
+
|
346
|
+
This program is distributed in the hope that it will be useful,
|
347
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
348
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
349
|
+
GNU General Public License for more details.
|
350
|
+
|
351
|
+
You should have received a copy of the GNU General Public License
|
352
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
353
|
+
|
354
|
+
Lesli - SCSS Utilities for websites, apps and web applications
|
355
|
+
|
356
|
+
Made with ♥ by LesliTech
|
357
|
+
Building a better future, one line of code at a time.
|
358
|
+
|
359
|
+
@contact hello@lesli.tech
|
360
|
+
@website https://www.lesli.tech
|
361
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
362
|
+
|
363
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
364
|
+
// ·
|
365
|
+
*/
|
366
|
+
/*
|
367
|
+
Lesli
|
368
|
+
|
369
|
+
Copyright (c) 2024, Lesli Technologies, S. A.
|
370
|
+
|
371
|
+
This program is free software: you can redistribute it and/or modify
|
372
|
+
it under the terms of the GNU General Public License as published by
|
373
|
+
the Free Software Foundation, either version 3 of the License, or
|
374
|
+
(at your option) any later version.
|
375
|
+
|
376
|
+
This program is distributed in the hope that it will be useful,
|
377
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
378
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
379
|
+
GNU General Public License for more details.
|
380
|
+
|
381
|
+
You should have received a copy of the GNU General Public License
|
382
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
383
|
+
|
384
|
+
Lesli - SCSS Utilities for websites, apps and web applications
|
385
|
+
|
386
|
+
Made with ♥ by LesliTech
|
387
|
+
Building a better future, one line of code at a time.
|
388
|
+
|
389
|
+
@contact hello@lesli.tech
|
390
|
+
@website https://www.lesli.tech
|
391
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
392
|
+
|
393
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
394
|
+
// ·
|
395
|
+
*/
|
396
|
+
/*
|
397
|
+
Lesli
|
398
|
+
|
399
|
+
Copyright (c) 2024, Lesli Technologies, S. A.
|
400
|
+
|
401
|
+
This program is free software: you can redistribute it and/or modify
|
402
|
+
it under the terms of the GNU General Public License as published by
|
403
|
+
the Free Software Foundation, either version 3 of the License, or
|
404
|
+
(at your option) any later version.
|
405
|
+
|
406
|
+
This program is distributed in the hope that it will be useful,
|
407
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
408
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
409
|
+
GNU General Public License for more details.
|
410
|
+
|
411
|
+
You should have received a copy of the GNU General Public License
|
412
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
413
|
+
|
414
|
+
Lesli - SCSS Utilities for websites, apps and web applications
|
415
|
+
|
416
|
+
Made with ♥ by LesliTech
|
417
|
+
Building a better future, one line of code at a time.
|
418
|
+
|
419
|
+
@contact hello@lesli.tech
|
420
|
+
@website https://www.lesli.tech
|
421
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
422
|
+
|
423
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
424
|
+
// ·
|
425
|
+
*/
|
426
|
+
/*
|
427
|
+
Lesli
|
428
|
+
|
429
|
+
Copyright (c) 2024, Lesli Technologies, S. A.
|
430
|
+
|
431
|
+
This program is free software: you can redistribute it and/or modify
|
432
|
+
it under the terms of the GNU General Public License as published by
|
433
|
+
the Free Software Foundation, either version 3 of the License, or
|
434
|
+
(at your option) any later version.
|
435
|
+
|
436
|
+
This program is distributed in the hope that it will be useful,
|
437
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
438
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
439
|
+
GNU General Public License for more details.
|
440
|
+
|
441
|
+
You should have received a copy of the GNU General Public License
|
442
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
443
|
+
|
444
|
+
LesliCSS - SCSS Utilities for websites, apps and web applications
|
445
|
+
|
446
|
+
Made with ♥ by LesliTech
|
447
|
+
Building a better future, one line of code at a time.
|
448
|
+
|
449
|
+
@contact hello@lesli.tech
|
450
|
+
@website https://www.lesli.tech
|
451
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
452
|
+
|
453
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
454
|
+
// ·
|
455
|
+
*/
|
456
|
+
/*
|
457
|
+
Lesli
|
458
|
+
|
459
|
+
Copyright (c) 2024, Lesli Technologies, S. A.
|
460
|
+
|
461
|
+
This program is free software: you can redistribute it and/or modify
|
462
|
+
it under the terms of the GNU General Public License as published by
|
463
|
+
the Free Software Foundation, either version 3 of the License, or
|
464
|
+
(at your option) any later version.
|
465
|
+
|
466
|
+
This program is distributed in the hope that it will be useful,
|
467
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
468
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
469
|
+
GNU General Public License for more details.
|
470
|
+
|
471
|
+
You should have received a copy of the GNU General Public License
|
472
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
473
|
+
|
474
|
+
Lesli - SCSS Utilities for websites, apps and web applications
|
475
|
+
|
476
|
+
Made with ♥ by LesliTech
|
477
|
+
Building a better future, one line of code at a time.
|
478
|
+
|
479
|
+
@contact hello@lesli.tech
|
480
|
+
@website https://www.lesli.tech
|
481
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
482
|
+
|
483
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
484
|
+
// ·
|
485
|
+
*/
|
486
|
+
/*
|
487
|
+
Lesli
|
488
|
+
|
489
|
+
Copyright (c) 2024, Lesli Technologies, S. A.
|
490
|
+
|
491
|
+
This program is free software: you can redistribute it and/or modify
|
492
|
+
it under the terms of the GNU General Public License as published by
|
493
|
+
the Free Software Foundation, either version 3 of the License, or
|
494
|
+
(at your option) any later version.
|
495
|
+
|
496
|
+
This program is distributed in the hope that it will be useful,
|
497
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
498
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
499
|
+
GNU General Public License for more details.
|
500
|
+
|
501
|
+
You should have received a copy of the GNU General Public License
|
502
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
503
|
+
|
504
|
+
Lesli - SCSS Utilities for websites, apps and web applications
|
505
|
+
|
506
|
+
Made with ♥ by LesliTech
|
507
|
+
Building a better future, one line of code at a time.
|
508
|
+
|
509
|
+
@contact hello@lesli.tech
|
510
|
+
@website https://www.lesli.tech
|
511
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
512
|
+
|
513
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
514
|
+
// ·
|
515
|
+
*/
|
516
|
+
/*
|
517
|
+
Lesli
|
518
|
+
|
519
|
+
Copyright (c) 2023, Lesli Technologies, S. A.
|
520
|
+
|
521
|
+
This program is free software: you can redistribute it and/or modify
|
522
|
+
it under the terms of the GNU General Public License as published by
|
523
|
+
the Free Software Foundation, either version 3 of the License, or
|
524
|
+
(at your option) any later version.
|
525
|
+
|
526
|
+
This program is distributed in the hope that it will be useful,
|
527
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
528
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
529
|
+
GNU General Public License for more details.
|
530
|
+
|
531
|
+
You should have received a copy of the GNU General Public License
|
532
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
533
|
+
|
534
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
535
|
+
|
536
|
+
Made with ♥ by https://www.lesli.tech
|
537
|
+
Building a better future, one line of code at a time.
|
538
|
+
|
539
|
+
@contact hello@lesli.tech
|
540
|
+
@website https://www.lesli.tech
|
541
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
542
|
+
|
543
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
544
|
+
// ·
|
545
|
+
*/
|
546
|
+
:root {
|
547
|
+
--lesli-color-primary: var(--lesli-theme-color-primary, #193d8d);
|
548
|
+
--lesli-color-background: var(--lesli-theme-color-background, #f8f4f4);
|
549
|
+
--lesli-header-color: var(--lesli-theme-header-color, white);
|
550
|
+
--lesli-header-height: var(--lesli-theme-header-height, 70px);
|
551
|
+
--lesli-navbar-color: var(--lesli-theme-header-color, white);
|
552
|
+
--lesli-footer-color: var(--lesli-theme-footer-color, white);
|
553
|
+
--lesli-footer-height: var(--lesli-theme-footer-height, 84px);
|
554
|
+
--lesli-sidebar-color: var(--lesli-theme-sidebar-color, white);
|
555
|
+
--lesli-sidebar-width: var(--lesli-theme-sidebar-width, 50px);
|
556
|
+
--lesli-logo-color: var(--lesli-theme-logo-color, white);
|
557
|
+
--lesli-font-size: var(--lesli-theme-font-size, 16px);
|
558
|
+
--lesli-font-color: var(--lesli-theme-font-color, #333333);
|
559
|
+
}
|
560
|
+
|
561
|
+
@media only screen and (max-width: 768px) {
|
562
|
+
:root {
|
563
|
+
--lesli-sidebar-width: 50px;
|
564
|
+
}
|
565
|
+
}
|
566
|
+
@media only screen and (min-width: 769px) {
|
567
|
+
:root {
|
568
|
+
--lesli-sidebar-width: 100px;
|
569
|
+
}
|
570
|
+
}
|
571
|
+
@media only screen and (min-width: 1024px) {
|
572
|
+
:root {
|
573
|
+
--lesli-sidebar-width: 200px;
|
574
|
+
}
|
575
|
+
}
|
576
|
+
@media only screen and (min-width: 1216px) {
|
577
|
+
:root {
|
578
|
+
--lesli-sidebar-width: 225px;
|
579
|
+
}
|
580
|
+
}
|
581
|
+
@media only screen and (min-width: 1408px) {
|
582
|
+
:root {
|
583
|
+
--lesli-sidebar-width: 328px;
|
584
|
+
}
|
585
|
+
}
|
586
|
+
body.layout-expanded :root {
|
587
|
+
--lesli-sidebar-width: 100px;
|
588
|
+
}
|
589
|
+
|
590
|
+
.widgets .column div {
|
591
|
+
text-align: center;
|
592
|
+
border-radius: 8px;
|
593
|
+
padding: 2rem 0.5rem;
|
594
|
+
border: 1px solid #d4d4d4;
|
595
|
+
background-color: #fafafa;
|
596
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
module LesliDashboard
|
2
|
+
class Dashboard::ComponentsController < ApplicationController
|
3
|
+
before_action :set_dashboard_component, only: %i[ show edit update destroy ]
|
4
|
+
|
5
|
+
# GET /dashboard/components
|
6
|
+
def index
|
7
|
+
@dashboard_components = Dashboard::Component.all
|
8
|
+
end
|
9
|
+
|
10
|
+
# GET /dashboard/components/1
|
11
|
+
def show
|
12
|
+
end
|
13
|
+
|
14
|
+
# GET /dashboard/components/new
|
15
|
+
def new
|
16
|
+
@dashboard_component = Dashboard::Component.new
|
17
|
+
end
|
18
|
+
|
19
|
+
# GET /dashboard/components/1/edit
|
20
|
+
def edit
|
21
|
+
end
|
22
|
+
|
23
|
+
# POST /dashboard/components
|
24
|
+
def create
|
25
|
+
@dashboard_component = Dashboard::Component.new(dashboard_component_params)
|
26
|
+
|
27
|
+
if @dashboard_component.save
|
28
|
+
redirect_to @dashboard_component, notice: "Component was successfully created."
|
29
|
+
else
|
30
|
+
render :new, status: :unprocessable_entity
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# PATCH/PUT /dashboard/components/1
|
35
|
+
def update
|
36
|
+
if @dashboard_component.update(dashboard_component_params)
|
37
|
+
redirect_to @dashboard_component, notice: "Component was successfully updated.", status: :see_other
|
38
|
+
else
|
39
|
+
render :edit, status: :unprocessable_entity
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
# DELETE /dashboard/components/1
|
44
|
+
def destroy
|
45
|
+
@dashboard_component.destroy
|
46
|
+
redirect_to dashboard_components_url, notice: "Component was successfully destroyed.", status: :see_other
|
47
|
+
end
|
48
|
+
|
49
|
+
private
|
50
|
+
# Use callbacks to share common setup or constraints between actions.
|
51
|
+
def set_dashboard_component
|
52
|
+
@dashboard_component = Dashboard::Component.find(params[:id])
|
53
|
+
end
|
54
|
+
|
55
|
+
# Only allow a list of trusted parameters through.
|
56
|
+
def dashboard_component_params
|
57
|
+
params.fetch(:dashboard_component, {})
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
=begin
|
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 Framework.
|
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
|
+
=end
|
32
|
+
|
33
|
+
module LesliDashboard
|
34
|
+
class DashboardsController < Lesli::Shared::DashboardsController
|
35
|
+
end
|
36
|
+
end
|