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
@@ -0,0 +1,44 @@
|
|
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.dev
|
27
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
28
|
+
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
30
|
+
// ·
|
31
|
+
=end
|
32
|
+
|
33
|
+
module LesliDashboard
|
34
|
+
class Account < ApplicationRecord
|
35
|
+
belongs_to :account, class_name: "Lesli::Account"
|
36
|
+
has_many :users, class_name: "Lesli::User"
|
37
|
+
|
38
|
+
after_create :initialize_account
|
39
|
+
|
40
|
+
def initialize_account
|
41
|
+
#Dashboard.initialize_account(self)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,50 @@
|
|
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 Dashboard::Component < ApplicationRecord
|
35
|
+
|
36
|
+
belongs_to :dashboard, inverse_of: :components
|
37
|
+
|
38
|
+
def self.component_ids
|
39
|
+
["version"]
|
40
|
+
end
|
41
|
+
# components_ids: {
|
42
|
+
# list_new_tickets: "list_new_tickets",
|
43
|
+
# list_my_tickets: "list_my_tickets",
|
44
|
+
# list_unassigned_tickets: "list_unassigned_tickets",
|
45
|
+
# chart_tickets_by_type: "chart_tickets_by_type",
|
46
|
+
# chart_tickets_by_category: "chart_tickets_by_category",
|
47
|
+
# hours_worked: "hours_worked"
|
48
|
+
# }
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,55 @@
|
|
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 Dashboard < Lesli::Shared::Dashboard
|
35
|
+
self.table_name = "lesli_dashboard_dashboards"
|
36
|
+
belongs_to :account
|
37
|
+
|
38
|
+
def self.initialize_account(account)
|
39
|
+
# self.create_with(
|
40
|
+
# default: true,
|
41
|
+
# main: false,
|
42
|
+
# components_attributes: [{
|
43
|
+
# name: "Lesli version",
|
44
|
+
# component_id: "admin-lesli-version",
|
45
|
+
# layout: 3,
|
46
|
+
# query_configuration: {},
|
47
|
+
# custom_configuration: {}
|
48
|
+
# }]
|
49
|
+
# ).find_or_create_by!(
|
50
|
+
# account: account,
|
51
|
+
# name: "Admin Default Dashboard"
|
52
|
+
# )
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,32 @@
|
|
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 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
|
+
<router-view></router-view>
|
@@ -0,0 +1,32 @@
|
|
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 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
|
+
<router-view></router-view>
|
@@ -0,0 +1,32 @@
|
|
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 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
|
+
<router-view></router-view>
|
@@ -1,20 +1,2 @@
|
|
1
1
|
---
|
2
|
-
:en:
|
3
|
-
lesli:
|
4
|
-
shared:
|
5
|
-
view_discussions: Discussions
|
6
|
-
button_add_new: Add new
|
7
|
-
button_reload: Reload
|
8
|
-
view_files: Files
|
9
|
-
view_quick_actions: Quick actions
|
10
|
-
button_list: List
|
11
|
-
button_save: Save
|
12
|
-
button_delete: Delete
|
13
|
-
button_edit: Edit
|
14
|
-
view_status_active: Active
|
15
|
-
view_status_inactive: Inactive
|
16
|
-
button_settings: Settings
|
17
|
-
button_show: Show
|
18
|
-
application:
|
19
|
-
navigation_logout: Logout
|
20
|
-
navigation_my_profile: My profile
|
2
|
+
:en: {}
|
@@ -1,20 +1,2 @@
|
|
1
1
|
---
|
2
|
-
:es:
|
3
|
-
lesli:
|
4
|
-
shared:
|
5
|
-
view_discussions: Discusiones
|
6
|
-
button_add_new: Agregar nuevo
|
7
|
-
button_reload: Recargar
|
8
|
-
view_files: Archivos
|
9
|
-
view_quick_actions: Acciones rapidas
|
10
|
-
button_list: Lista
|
11
|
-
button_save: Guardar
|
12
|
-
button_delete: Eliminar
|
13
|
-
button_edit: Editar
|
14
|
-
view_status_active: Activo
|
15
|
-
view_status_inactive: Inactivo
|
16
|
-
button_settings: Configuración
|
17
|
-
button_show: Ver
|
18
|
-
application:
|
19
|
-
navigation_logout: Cerrar sesión
|
20
|
-
navigation_my_profile: Mi perfil
|
2
|
+
:es: {}
|
data/config/routes.rb
CHANGED
@@ -0,0 +1,37 @@
|
|
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
|
+
class CreateLesliDashboardAccounts < ActiveRecord::Migration[6.0]
|
34
|
+
def change
|
35
|
+
create_table_lesli_shared_account_10(:lesli_dashboard)
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,37 @@
|
|
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
|
+
class CreateLesliDashboardDashboards < ActiveRecord::Migration[6.1]
|
34
|
+
def change
|
35
|
+
create_table_lesli_shared_dashboards_10(:lesli_dashboard)
|
36
|
+
end
|
37
|
+
end
|
@@ -39,6 +39,12 @@ module LesliDashboard
|
|
39
39
|
# register assets manifest
|
40
40
|
config.assets.precompile += %w[lesli_dashboard_manifest.js]
|
41
41
|
|
42
|
+
# register engine migrations path
|
43
|
+
unless app.root.to_s.match root.to_s
|
44
|
+
config.paths["db/migrate"].expanded.each do |expanded_path|
|
45
|
+
app.config.paths["db/migrate"] << expanded_path
|
46
|
+
end
|
47
|
+
end
|
42
48
|
end
|
43
49
|
end
|
44
50
|
end
|
data/lib/scss/application.scss
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
@import "Lesli/scss/templates/component";
|
2
|
+
|
3
|
+
.widgets {
|
4
|
+
.column {
|
5
|
+
div {
|
6
|
+
text-align: center;
|
7
|
+
border-radius: 8px;
|
8
|
+
padding: 2rem .5rem;
|
9
|
+
border: 1px solid lesli-css-color(silver, 300);
|
10
|
+
background-color: lesli-css-color(silver, 100);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
data/lib/vue/application.js
CHANGED
@@ -43,6 +43,23 @@ import translations from "LesliDashboard/vue/stores/translations.json"
|
|
43
43
|
import applicationAssistantShow from "LesliDashboard/vue/apps/assistant/show.vue"
|
44
44
|
|
45
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
|
+
|
46
63
|
// · Buil Lesli translations
|
47
64
|
translation(translations)
|
48
65
|
|
@@ -51,4 +68,12 @@ translation(translations)
|
|
51
68
|
application("LesliDashboard", [{
|
52
69
|
path: "/",
|
53
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
|
54
79
|
}])
|
@@ -1,13 +1,17 @@
|
|
1
1
|
<script setup>
|
2
2
|
|
3
|
-
|
4
3
|
import { ref, onMounted } from "vue";
|
4
|
+
import { useLayout } from "Lesli/vue/shared/stores/layout.js"
|
5
|
+
|
6
|
+
const storeLayout = useLayout()
|
5
7
|
|
6
8
|
const lesli = Lesli;
|
7
9
|
const hour = new Date().getHours();
|
8
10
|
const welcomeTypes = ["Good morning", "Good afternoon", "Good evening"];
|
9
11
|
const welcomeText = ref("");
|
10
12
|
|
13
|
+
import dayjs from "dayjs"
|
14
|
+
|
11
15
|
|
12
16
|
onMounted(()=>{
|
13
17
|
if (hour < 12) {
|
@@ -17,17 +21,34 @@ onMounted(()=>{
|
|
17
21
|
} else {
|
18
22
|
welcomeText.value = welcomeTypes[2]
|
19
23
|
}
|
20
|
-
//_lesli.value = lesli
|
21
24
|
})
|
22
25
|
|
23
26
|
</script>
|
24
27
|
<template>
|
25
28
|
<lesli-application-container>
|
26
29
|
<section class="lesli-element-header is-flex mt-6">
|
27
|
-
<div class="lesli-element-header-title
|
28
|
-
<h1 class="subtitle is-3">{{welcomeText}}
|
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>
|
29
51
|
</div>
|
30
52
|
</section>
|
31
|
-
|
32
53
|
</lesli-application-container>
|
33
54
|
</template>
|
@@ -0,0 +1,71 @@
|
|
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>
|