lesli_dashboard 1.0.1 → 1.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 +4 -4
- data/lib/lesli_dashboard/version.rb +2 -2
- metadata +3 -8
- data/lib/scss/application.scss +0 -0
- data/lib/vue/application.js +0 -79
- data/lib/vue/apps/assistant/show.vue +0 -54
- data/lib/vue/apps/dashboards/components/lesli-version.vue +0 -71
- data/lib/vue/stores/translations.json +0 -162
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00e59b42120b5d7fea1690f6f25c9d901a78abb45075ff735c28240cd37f0755
|
|
4
|
+
data.tar.gz: 374f8edac29b1c09b32937f4d27bb6a5fca9b572ad368045902c4cd65617980c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6768515e1c68c02331b2c26b390db37b80e71114983604fab663b369c253bfc8059aea8e5664c73be3566cd74061b02f9cb7d3c1745297749d5b6cce8f6a0746
|
|
7
|
+
data.tar.gz: de889af11479ddc2d33fbd745844a71c5df85a28a18df35469ac613b8da607515b60442eaace75b24b42deebd1b992287207677d63581ce9069478e6d0e25a1e
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lesli_dashboard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Lesli Development Team
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version:
|
|
18
|
+
version: 5.1.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version:
|
|
25
|
+
version: 5.1.0
|
|
26
26
|
description: Dashboard Manager for the Lesli Framework
|
|
27
27
|
email:
|
|
28
28
|
- hello@lesli.tech
|
|
@@ -87,12 +87,7 @@ files:
|
|
|
87
87
|
- lib/lesli_dashboard.rb
|
|
88
88
|
- lib/lesli_dashboard/engine.rb
|
|
89
89
|
- lib/lesli_dashboard/version.rb
|
|
90
|
-
- lib/scss/application.scss
|
|
91
90
|
- lib/tasks/lesli_dashboard_tasks.rake
|
|
92
|
-
- lib/vue/application.js
|
|
93
|
-
- lib/vue/apps/assistant/show.vue
|
|
94
|
-
- lib/vue/apps/dashboards/components/lesli-version.vue
|
|
95
|
-
- lib/vue/stores/translations.json
|
|
96
91
|
- license
|
|
97
92
|
- readme.md
|
|
98
93
|
homepage: https://www.lesli.dev/
|
data/lib/scss/application.scss
DELETED
|
File without changes
|
data/lib/vue/application.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Lesli
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2023, Lesli Technologies, S. A.
|
|
5
|
-
|
|
6
|
-
This program is free software: you can redistribute it and/or modify
|
|
7
|
-
it under the terms of the GNU General Public License as published by
|
|
8
|
-
the Free Software Foundation, either version 3 of the License, or
|
|
9
|
-
(at your option) any later version.
|
|
10
|
-
|
|
11
|
-
This program is distributed in the hope that it will be useful,
|
|
12
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
GNU General Public License for more details.
|
|
15
|
-
|
|
16
|
-
You should have received a copy of the GNU General Public License
|
|
17
|
-
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
-
|
|
19
|
-
Lesli · Ruby on Rails SaaS Development Framework.
|
|
20
|
-
|
|
21
|
-
Made with ♥ by https://www.lesli.tech
|
|
22
|
-
Building a better future, one line of code at a time.
|
|
23
|
-
|
|
24
|
-
@contact hello@lesli.tech
|
|
25
|
-
@website https://www.lesli.tech
|
|
26
|
-
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
27
|
-
|
|
28
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
29
|
-
// ·
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
// · Import Lesli builders
|
|
34
|
-
import application from "Lesli/vue/application"
|
|
35
|
-
import translation from "Lesli/vue/translation"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// · Import engine translations
|
|
39
|
-
import translations from "LesliDashboard/vue/stores/translations.json"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
// · Import engine applications
|
|
43
|
-
import applicationAssistantShow from "LesliDashboard/vue/apps/assistant/show.vue"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
// ·
|
|
47
|
-
import appDashboardShow from "Lesli/vue/shared/dashboards/apps/show.vue"
|
|
48
|
-
import appDashboardEdit from "Lesli/vue/shared/dashboards/apps/edit.vue"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
// ·
|
|
52
|
-
import componentDashboardLesliVersion from "LesliDashboard/vue/apps/dashboards/components/lesli-version.vue"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
// ·
|
|
56
|
-
const dashboardProps = {
|
|
57
|
-
components: {
|
|
58
|
-
"admin-lesli-version": componentDashboardLesliVersion
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// · Buil Lesli translations
|
|
64
|
-
translation(translations)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
// · Build a new Lesli application
|
|
68
|
-
application("LesliDashboard", [{
|
|
69
|
-
path: "/",
|
|
70
|
-
component: applicationAssistantShow
|
|
71
|
-
}, {
|
|
72
|
-
path: "/dashboard",
|
|
73
|
-
component: appDashboardShow,
|
|
74
|
-
props: dashboardProps
|
|
75
|
-
}, {
|
|
76
|
-
path: "/dashboards/:id/edit",
|
|
77
|
-
component: appDashboardEdit,
|
|
78
|
-
props: dashboardProps
|
|
79
|
-
}])
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
|
|
3
|
-
import { ref, onMounted } from "vue";
|
|
4
|
-
import { useLayout } from "Lesli/vue/shared/stores/layout.js"
|
|
5
|
-
|
|
6
|
-
const storeLayout = useLayout()
|
|
7
|
-
|
|
8
|
-
const lesli = Lesli;
|
|
9
|
-
const hour = new Date().getHours();
|
|
10
|
-
const welcomeTypes = ["Good morning", "Good afternoon", "Good evening"];
|
|
11
|
-
const welcomeText = ref("");
|
|
12
|
-
|
|
13
|
-
import dayjs from "dayjs"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
onMounted(()=>{
|
|
17
|
-
if (hour < 12) {
|
|
18
|
-
welcomeText.value = welcomeTypes[0]
|
|
19
|
-
} else if (hour < 18) {
|
|
20
|
-
welcomeText.value = welcomeTypes[1]
|
|
21
|
-
} else {
|
|
22
|
-
welcomeText.value = welcomeTypes[2]
|
|
23
|
-
}
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
</script>
|
|
27
|
-
<template>
|
|
28
|
-
<lesli-application-container>
|
|
29
|
-
<section class="lesli-element-header is-flex mt-6">
|
|
30
|
-
<div class="lesli-element-header-title">
|
|
31
|
-
<h1 class="subtitle is-size-3 mb-0">{{welcomeText}}, {{ lesli.current_user?.name }}</h1>
|
|
32
|
-
<p class="">{{ dayjs().format("dddd, MMMM D") }}.</p>
|
|
33
|
-
</div>
|
|
34
|
-
</section>
|
|
35
|
-
|
|
36
|
-
<section class="widgets">
|
|
37
|
-
<div class="columns is-multiline">
|
|
38
|
-
<div class="column is-2"><div>2</div></div>
|
|
39
|
-
<div class="column is-2"><div>2</div></div>
|
|
40
|
-
<div class="column is-2"><div>2</div></div>
|
|
41
|
-
<div class="column is-2"><div>2</div></div>
|
|
42
|
-
<div class="column is-2"><div>2</div></div>
|
|
43
|
-
<div class="column is-2"><div>2</div></div>
|
|
44
|
-
|
|
45
|
-
<div class="column is-4"><div>4</div></div>
|
|
46
|
-
<div class="column is-4"><div>4</div></div>
|
|
47
|
-
<div class="column is-4"><div>4</div></div>
|
|
48
|
-
|
|
49
|
-
<div class="column is-6"><div>6</div></div>
|
|
50
|
-
<div class="column is-6"><div>6</div></div>
|
|
51
|
-
</div>
|
|
52
|
-
</section>
|
|
53
|
-
</lesli-application-container>
|
|
54
|
-
</template>
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
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
|
-
*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// ·
|
|
35
|
-
import { onMounted, inject, ref } from "vue"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// ·
|
|
39
|
-
const url = inject("url")
|
|
40
|
-
const http = inject("http")
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
// ·
|
|
44
|
-
const lesliVersion = ref({
|
|
45
|
-
name: "",
|
|
46
|
-
code: "",
|
|
47
|
-
path: "",
|
|
48
|
-
version: "",
|
|
49
|
-
build: ""
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// ·
|
|
54
|
-
onMounted(() => {
|
|
55
|
-
http.get(url.lesli("about")).then(result => {
|
|
56
|
-
lesliVersion.value = result.find(engine => engine.name == "Lesli")
|
|
57
|
-
}).catch(error => {
|
|
58
|
-
console.log(error)
|
|
59
|
-
})
|
|
60
|
-
})
|
|
61
|
-
</script>
|
|
62
|
-
<template>
|
|
63
|
-
<lesli-card>
|
|
64
|
-
<h6 class="title is-6 mb-2">
|
|
65
|
-
{{ lesliVersion.name }}
|
|
66
|
-
</h6>
|
|
67
|
-
<p class="p-0 m-0">version: {{ lesliVersion.version }}</p>
|
|
68
|
-
<p class="p-0 m-0">buid: {{ lesliVersion.build }}</p>
|
|
69
|
-
<p class="p-0 m-0">path: {{ lesliVersion.path }}</p>
|
|
70
|
-
</lesli-card>
|
|
71
|
-
</template>
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"en": {
|
|
3
|
-
"lesli": {
|
|
4
|
-
"application": {
|
|
5
|
-
"navigation_logout": "Logout",
|
|
6
|
-
"navigation_my_profile": "My profile"
|
|
7
|
-
},
|
|
8
|
-
"dashboards": {
|
|
9
|
-
"column_default": "Default",
|
|
10
|
-
"column_name": "Name",
|
|
11
|
-
"title": "Dashboards",
|
|
12
|
-
"view_add_component": "Add component"
|
|
13
|
-
},
|
|
14
|
-
"shared": {
|
|
15
|
-
"button_add_new": "Add new",
|
|
16
|
-
"button_delete": "Delete",
|
|
17
|
-
"button_edit": "Edit",
|
|
18
|
-
"button_list": "List",
|
|
19
|
-
"button_reload": "Reload",
|
|
20
|
-
"button_save": "Save",
|
|
21
|
-
"button_settings": "Settings",
|
|
22
|
-
"button_show": "Show",
|
|
23
|
-
"message_operation_error": "Operation failed. Please try again.",
|
|
24
|
-
"message_operation_success": "Operation completed successfully",
|
|
25
|
-
"toolbar_search": "Search...",
|
|
26
|
-
"view_discussions": "Discussions",
|
|
27
|
-
"view_files": "Files",
|
|
28
|
-
"view_quick_actions": "Quick actions",
|
|
29
|
-
"view_status_active": "Active",
|
|
30
|
-
"view_status_inactive": "Inactive"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"es": {
|
|
35
|
-
"lesli": {
|
|
36
|
-
"application": {
|
|
37
|
-
"navigation_logout": "Cerrar sesión",
|
|
38
|
-
"navigation_my_profile": "Mi perfil"
|
|
39
|
-
},
|
|
40
|
-
"dashboards": {
|
|
41
|
-
"column_default": "Default",
|
|
42
|
-
"column_name": "Nombre",
|
|
43
|
-
"title": "Dashboards",
|
|
44
|
-
"view_add_component": "Agregar componente"
|
|
45
|
-
},
|
|
46
|
-
"shared": {
|
|
47
|
-
"button_add_new": "Agregar nuevo",
|
|
48
|
-
"button_delete": "Eliminar",
|
|
49
|
-
"button_edit": "Editar",
|
|
50
|
-
"button_list": "Lista",
|
|
51
|
-
"button_reload": "Recargar",
|
|
52
|
-
"button_save": "Guardar",
|
|
53
|
-
"button_settings": "Configuración",
|
|
54
|
-
"button_show": "Ver",
|
|
55
|
-
"message_operation_error": "Operación fallida. Por favor, inténtelo de nuevo.",
|
|
56
|
-
"message_operation_success": "Operacion realizada satisfactoriamente",
|
|
57
|
-
"toolbar_search": "Buscar...",
|
|
58
|
-
"view_discussions": "Discusiones",
|
|
59
|
-
"view_files": "Archivos",
|
|
60
|
-
"view_quick_actions": "Acciones rapidas",
|
|
61
|
-
"view_status_active": "Activo",
|
|
62
|
-
"view_status_inactive": "Inactivo"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"fr": {
|
|
67
|
-
"lesli": {
|
|
68
|
-
"application": {
|
|
69
|
-
"navigation_logout": ":lesli.application.navigation_logout:",
|
|
70
|
-
"navigation_my_profile": ":lesli.application.navigation_my_profile:"
|
|
71
|
-
},
|
|
72
|
-
"dashboards": {
|
|
73
|
-
"column_default": ":lesli.dashboards.column_default:",
|
|
74
|
-
"column_name": ":lesli.dashboards.column_name:",
|
|
75
|
-
"title": ":lesli.dashboards.title:",
|
|
76
|
-
"view_add_component": ":lesli.dashboards.view_add_component:"
|
|
77
|
-
},
|
|
78
|
-
"shared": {
|
|
79
|
-
"button_add_new": ":lesli.shared.button_add_new:",
|
|
80
|
-
"button_delete": ":lesli.shared.button_delete:",
|
|
81
|
-
"button_edit": ":lesli.shared.button_edit:",
|
|
82
|
-
"button_list": ":lesli.shared.button_list:",
|
|
83
|
-
"button_reload": ":lesli.shared.button_reload:",
|
|
84
|
-
"button_save": ":lesli.shared.button_save:",
|
|
85
|
-
"button_settings": ":lesli.shared.button_settings:",
|
|
86
|
-
"button_show": ":lesli.shared.button_show:",
|
|
87
|
-
"message_operation_error": ":lesli.shared.message_operation_error:",
|
|
88
|
-
"message_operation_success": ":lesli.shared.message_operation_success:",
|
|
89
|
-
"toolbar_search": ":lesli.shared.toolbar_search:",
|
|
90
|
-
"view_discussions": ":lesli.shared.view_discussions:",
|
|
91
|
-
"view_files": ":lesli.shared.view_files:",
|
|
92
|
-
"view_quick_actions": ":lesli.shared.view_quick_actions:",
|
|
93
|
-
"view_status_active": ":lesli.shared.view_status_active:",
|
|
94
|
-
"view_status_inactive": ":lesli.shared.view_status_inactive:"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"it": {
|
|
99
|
-
"lesli": {
|
|
100
|
-
"application": {
|
|
101
|
-
"navigation_logout": ":lesli.application.navigation_logout:",
|
|
102
|
-
"navigation_my_profile": ":lesli.application.navigation_my_profile:"
|
|
103
|
-
},
|
|
104
|
-
"dashboards": {
|
|
105
|
-
"column_default": ":lesli.dashboards.column_default:",
|
|
106
|
-
"column_name": ":lesli.dashboards.column_name:",
|
|
107
|
-
"title": ":lesli.dashboards.title:",
|
|
108
|
-
"view_add_component": ":lesli.dashboards.view_add_component:"
|
|
109
|
-
},
|
|
110
|
-
"shared": {
|
|
111
|
-
"button_add_new": ":lesli.shared.button_add_new:",
|
|
112
|
-
"button_delete": ":lesli.shared.button_delete:",
|
|
113
|
-
"button_edit": ":lesli.shared.button_edit:",
|
|
114
|
-
"button_list": ":lesli.shared.button_list:",
|
|
115
|
-
"button_reload": ":lesli.shared.button_reload:",
|
|
116
|
-
"button_save": ":lesli.shared.button_save:",
|
|
117
|
-
"button_settings": ":lesli.shared.button_settings:",
|
|
118
|
-
"button_show": ":lesli.shared.button_show:",
|
|
119
|
-
"message_operation_error": ":lesli.shared.message_operation_error:",
|
|
120
|
-
"message_operation_success": ":lesli.shared.message_operation_success:",
|
|
121
|
-
"toolbar_search": ":lesli.shared.toolbar_search:",
|
|
122
|
-
"view_discussions": ":lesli.shared.view_discussions:",
|
|
123
|
-
"view_files": ":lesli.shared.view_files:",
|
|
124
|
-
"view_quick_actions": ":lesli.shared.view_quick_actions:",
|
|
125
|
-
"view_status_active": ":lesli.shared.view_status_active:",
|
|
126
|
-
"view_status_inactive": ":lesli.shared.view_status_inactive:"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"pt": {
|
|
131
|
-
"lesli": {
|
|
132
|
-
"application": {
|
|
133
|
-
"navigation_logout": ":lesli.application.navigation_logout:",
|
|
134
|
-
"navigation_my_profile": ":lesli.application.navigation_my_profile:"
|
|
135
|
-
},
|
|
136
|
-
"dashboards": {
|
|
137
|
-
"column_default": ":lesli.dashboards.column_default:",
|
|
138
|
-
"column_name": ":lesli.dashboards.column_name:",
|
|
139
|
-
"title": ":lesli.dashboards.title:",
|
|
140
|
-
"view_add_component": ":lesli.dashboards.view_add_component:"
|
|
141
|
-
},
|
|
142
|
-
"shared": {
|
|
143
|
-
"button_add_new": ":lesli.shared.button_add_new:",
|
|
144
|
-
"button_delete": ":lesli.shared.button_delete:",
|
|
145
|
-
"button_edit": ":lesli.shared.button_edit:",
|
|
146
|
-
"button_list": ":lesli.shared.button_list:",
|
|
147
|
-
"button_reload": ":lesli.shared.button_reload:",
|
|
148
|
-
"button_save": ":lesli.shared.button_save:",
|
|
149
|
-
"button_settings": ":lesli.shared.button_settings:",
|
|
150
|
-
"button_show": ":lesli.shared.button_show:",
|
|
151
|
-
"message_operation_error": ":lesli.shared.message_operation_error:",
|
|
152
|
-
"message_operation_success": ":lesli.shared.message_operation_success:",
|
|
153
|
-
"toolbar_search": ":lesli.shared.toolbar_search:",
|
|
154
|
-
"view_discussions": ":lesli.shared.view_discussions:",
|
|
155
|
-
"view_files": ":lesli.shared.view_files:",
|
|
156
|
-
"view_quick_actions": ":lesli.shared.view_quick_actions:",
|
|
157
|
-
"view_status_active": ":lesli.shared.view_status_active:",
|
|
158
|
-
"view_status_inactive": ":lesli.shared.view_status_inactive:"
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|