lesli_support 0.1.0 → 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/app/assets/images/lesli_support/support-logo.svg +1 -9
- data/app/assets/javascripts/lesli_support/application.js +1 -4998
- data/app/assets/stylesheets/lesli_support/application.css +3 -3
- data/app/controllers/lesli_support/catalog/items_controller.rb +60 -0
- data/app/controllers/lesli_support/item/discussions_controller.rb +6 -0
- data/app/controllers/lesli_support/item/tasks_controller.rb +6 -0
- data/app/controllers/lesli_support/ticket/activities_controller.rb +60 -0
- data/app/controllers/lesli_support/ticket/discussions_controller.rb +1 -2
- data/app/controllers/lesli_support/tickets_controller.rb +37 -56
- data/app/helpers/lesli_support/{options_helper.rb → catalog/items_helper.rb} +1 -1
- data/app/helpers/lesli_support/ticket/activities_helper.rb +4 -0
- data/app/models/lesli_support/account.rb +5 -8
- data/app/models/lesli_support/catalog/item.rb +4 -0
- data/app/models/lesli_support/catalog.rb +3 -12
- data/app/models/lesli_support/dashboard.rb +6 -10
- data/app/models/lesli_support/item/activity.rb +4 -0
- data/app/models/lesli_support/item/discussion.rb +6 -0
- data/app/models/lesli_support/item/task.rb +6 -0
- data/app/models/lesli_support/ticket/activity.rb +4 -0
- data/app/models/lesli_support/ticket/discussion.rb +3 -4
- data/app/models/lesli_support/ticket.rb +66 -7
- data/app/services/lesli_support/ticket_service.rb +37 -55
- data/app/views/lesli_support/catalog/items/_form.html.erb +17 -0
- data/app/views/lesli_support/catalog/items/_item.html.erb +2 -0
- data/app/views/lesli_support/catalog/items/edit.html.erb +12 -0
- data/app/views/lesli_support/catalog/items/index.html.erb +16 -0
- data/app/views/lesli_support/catalog/items/new.html.erb +11 -0
- data/app/views/lesli_support/catalog/items/show.html.erb +10 -0
- data/app/views/lesli_support/dashboards/_component-latest-tickets.html.erb +34 -0
- data/app/views/lesli_support/dashboards/_component-tickets-by-category.html.erb +17 -0
- data/app/views/lesli_support/dashboards/_component-tickets-created.html.erb +10 -0
- data/app/views/lesli_support/dashboards/_component-tickets-open.html.erb +5 -0
- data/app/views/lesli_support/tickets/_form.html.erb +27 -0
- data/app/views/lesli_support/tickets/index.html.erb +35 -4
- data/app/views/lesli_support/tickets/new.html.erb +31 -14
- data/app/views/lesli_support/tickets/show.html.erb +30 -15
- data/config/locales/translations.en.yml +1 -42
- data/config/locales/translations.es.yml +1 -42
- data/config/locales/translations.fr.yml +1 -42
- data/config/locales/translations.it.yml +1 -42
- data/config/locales/translations.pt.yml +1 -42
- data/config/routes.rb +5 -25
- data/db/migrate/v1/0702000110_create_lesli_support_accounts.rb +10 -8
- data/db/migrate/v1/0702002010_create_lesli_support_catalogs.rb +37 -0
- data/db/migrate/v1/0702100110_create_lesli_support_slas.rb +2 -6
- data/db/migrate/v1/0702110110_create_lesli_support_tickets.rb +18 -49
- data/db/seed/development.rb +43 -22
- data/db/seed/production.rb +7 -2
- data/db/seed/seeds.json +64 -0
- data/db/seed/test.rb +2 -2
- data/db/seeds.rb +6 -13
- data/db/{migrate/v1/0702000210_create_lesli_support_account_settings.rb → tables/0010009010_create_feedbacks.rb} +21 -11
- data/db/{migrate/v1 → tables}/0702010110_create_lesli_support_catalog_workspaces.rb +7 -7
- data/db/{migrate/v1 → tables}/0702010210_create_lesli_support_catalog_types.rb +6 -6
- data/db/{migrate/v1 → tables}/0702010310_create_lesli_support_catalog_categories.rb +7 -7
- data/db/{migrate/v1 → tables}/0702010410_create_lesli_support_catalog_priorities.rb +7 -7
- data/lib/lesli_support/version.rb +2 -2
- data/readme.md +77 -25
- metadata +37 -91
- data/app/controllers/lesli_support/catalog_categories_controller.rb +0 -60
- data/app/controllers/lesli_support/catalog_priorities_controller.rb +0 -60
- data/app/controllers/lesli_support/catalog_types_controller.rb +0 -60
- data/app/controllers/lesli_support/catalog_workspaces_controller.rb +0 -60
- data/app/controllers/lesli_support/dashboard/components_controller.rb +0 -92
- data/app/controllers/lesli_support/options_controller.rb +0 -23
- data/app/helpers/lesli_support/catalog_categories_helper.rb +0 -4
- data/app/helpers/lesli_support/catalog_priorities_helper.rb +0 -4
- data/app/helpers/lesli_support/catalog_types_helper.rb +0 -4
- data/app/helpers/lesli_support/catalog_workspaces_helper.rb +0 -4
- data/app/models/lesli_support/catalog_category.rb +0 -5
- data/app/models/lesli_support/catalog_priority.rb +0 -5
- data/app/models/lesli_support/catalog_type.rb +0 -5
- data/app/models/lesli_support/catalog_workspace.rb +0 -5
- data/app/models/lesli_support/dashboard/component.rb +0 -18
- data/app/models/lesli_support/option.rb +0 -4
- data/app/views/layouts/lesli_support/application.html.erb +0 -15
- data/app/views/lesli_support/catalog_categories/_catalog_category.html.erb +0 -2
- data/app/views/lesli_support/catalog_categories/_form.html.erb +0 -17
- data/app/views/lesli_support/catalog_categories/edit.html.erb +0 -10
- data/app/views/lesli_support/catalog_categories/index.html.erb +0 -14
- data/app/views/lesli_support/catalog_categories/new.html.erb +0 -9
- data/app/views/lesli_support/catalog_categories/show.html.erb +0 -10
- data/app/views/lesli_support/catalog_priorities/_catalog_priority.html.erb +0 -2
- data/app/views/lesli_support/catalog_priorities/_form.html.erb +0 -17
- data/app/views/lesli_support/catalog_priorities/edit.html.erb +0 -10
- data/app/views/lesli_support/catalog_priorities/index.html.erb +0 -14
- data/app/views/lesli_support/catalog_priorities/new.html.erb +0 -9
- data/app/views/lesli_support/catalog_priorities/show.html.erb +0 -10
- data/app/views/lesli_support/catalog_types/_catalog_type.html.erb +0 -2
- data/app/views/lesli_support/catalog_types/_form.html.erb +0 -17
- data/app/views/lesli_support/catalog_types/edit.html.erb +0 -10
- data/app/views/lesli_support/catalog_types/index.html.erb +0 -14
- data/app/views/lesli_support/catalog_types/new.html.erb +0 -9
- data/app/views/lesli_support/catalog_types/show.html.erb +0 -10
- data/app/views/lesli_support/catalog_workspaces/_catalog_workspace.html.erb +0 -2
- data/app/views/lesli_support/catalog_workspaces/_form.html.erb +0 -17
- data/app/views/lesli_support/catalog_workspaces/edit.html.erb +0 -10
- data/app/views/lesli_support/catalog_workspaces/index.html.erb +0 -14
- data/app/views/lesli_support/catalog_workspaces/new.html.erb +0 -9
- data/app/views/lesli_support/catalog_workspaces/show.html.erb +0 -10
- data/app/views/lesli_support/dashboards/edit.html.erb +0 -1
- data/app/views/lesli_support/dashboards/index.html.erb +0 -1
- data/app/views/lesli_support/dashboards/new.html.erb +0 -1
- data/app/views/lesli_support/dashboards/show.html.erb +0 -1
- data/app/views/lesli_support/options/_form.html.erb +0 -17
- data/app/views/lesli_support/options/_option.html.erb +0 -2
- data/app/views/lesli_support/options/edit.html.erb +0 -10
- data/app/views/lesli_support/options/index.html.erb +0 -14
- data/app/views/lesli_support/options/new.html.erb +0 -9
- data/app/views/lesli_support/options/show.html.erb +0 -10
- data/app/views/lesli_support/ticket/discussions/_discussion.html.erb +0 -2
- data/app/views/lesli_support/ticket/discussions/_form.html.erb +0 -17
- data/app/views/lesli_support/ticket/discussions/edit.html.erb +0 -10
- data/app/views/lesli_support/ticket/discussions/index.html.erb +0 -14
- data/app/views/lesli_support/ticket/discussions/new.html.erb +0 -9
- data/app/views/lesli_support/ticket/discussions/show.html.erb +0 -10
- data/app/views/lesli_support/tickets/edit.html.erb +0 -20
- data/db/migrate/v1/0702050110_create_lesli_support_dashboards.rb +0 -50
- data/db/migrate/v1/0702050210_create_lesli_support_dashboard_components.rb +0 -50
- data/db/migrate/v1/0702110510_create_lesli_support_ticket_discussions.rb +0 -52
- data/lib/scss/application.scss +0 -11
- data/lib/vue/application.js +0 -93
- data/lib/vue/apps/dashboard/components/engine-version.vue +0 -71
- data/lib/vue/apps/dashboard/components/my-tasks.vue +0 -77
- data/lib/vue/apps/tickets/components/assignments.vue +0 -93
- data/lib/vue/apps/tickets/components/form.vue +0 -305
- data/lib/vue/apps/tickets/components/internal-comments.vue +0 -107
- data/lib/vue/apps/tickets/components/sla-info.vue +0 -115
- data/lib/vue/apps/tickets/index.vue +0 -145
- data/lib/vue/apps/tickets/new.vue +0 -78
- data/lib/vue/apps/tickets/show.vue +0 -183
- data/lib/vue/stores/tickets.js +0 -276
- data/lib/vue/stores/translations.json +0 -272
- /data/app/views/lesli_support/partials/{_engine-navigation.html.erb → _navigation.html.erb} +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<p style="color: green"><%= notice %></p>
|
|
2
|
-
|
|
3
|
-
<%= render @ticket_discussion %>
|
|
4
|
-
|
|
5
|
-
<div>
|
|
6
|
-
<%= link_to "Edit this discussion", edit_ticket_discussion_path(@ticket_discussion) %> |
|
|
7
|
-
<%= link_to "Back to discussions", ticket_discussions_path %>
|
|
8
|
-
|
|
9
|
-
<%= button_to "Destroy this discussion", @ticket_discussion, method: :delete %>
|
|
10
|
-
</div>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<%
|
|
2
|
-
=begin
|
|
3
|
-
Copyright (c) 2020, all rights reserved.
|
|
4
|
-
|
|
5
|
-
All the information provided by this platform is protected by international laws related to
|
|
6
|
-
industrial property, intellectual property, copyright and relative international laws.
|
|
7
|
-
All intellectual or industrial property rights of the code, texts, trade mark, design,
|
|
8
|
-
pictures and any other information belongs to the owner of this platform.
|
|
9
|
-
|
|
10
|
-
Without the written permission of the owner, any replication, modification,
|
|
11
|
-
transmission, publication is strictly forbidden.
|
|
12
|
-
|
|
13
|
-
For more information read the license file including with this software.
|
|
14
|
-
|
|
15
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
16
|
-
// ·
|
|
17
|
-
|
|
18
|
-
=end
|
|
19
|
-
%>
|
|
20
|
-
<router-view></router-view>
|
|
@@ -1,50 +0,0 @@
|
|
|
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 CreateLesliSupportDashboards < ActiveRecord::Migration[6.0]
|
|
34
|
-
def change
|
|
35
|
-
gem_path = Lesli::System.engine("Lesli", "dir")
|
|
36
|
-
table_base_structure = JSON.parse(File.read(File.join(gem_path, "db", "structure", "00000501_dashboards.json")))
|
|
37
|
-
create_table :lesli_support_dashboards do |t|
|
|
38
|
-
table_base_structure.each do |column|
|
|
39
|
-
t.send(
|
|
40
|
-
column["type"].parameterize.underscore.to_sym,
|
|
41
|
-
column["name"].parameterize.underscore.to_sym
|
|
42
|
-
)
|
|
43
|
-
end
|
|
44
|
-
t.timestamps
|
|
45
|
-
end
|
|
46
|
-
add_reference(:lesli_support_dashboards, :account, foreign_key: { to_table: :lesli_support_accounts })
|
|
47
|
-
add_reference(:lesli_support_dashboards, :user, foreign_key: { to_table: :lesli_users })
|
|
48
|
-
add_reference(:lesli_support_dashboards, :role, foreign_key: { to_table: :lesli_roles })
|
|
49
|
-
end
|
|
50
|
-
end
|
|
@@ -1,50 +0,0 @@
|
|
|
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 CreateLesliSupportDashboardComponents < ActiveRecord::Migration[6.0]
|
|
34
|
-
def change
|
|
35
|
-
gem_path = Lesli::System.engine("Lesli", "dir")
|
|
36
|
-
table_base_structure = JSON.parse(File.read(File.join(gem_path, "db", "structure", "00000502_dashboard_components.json")))
|
|
37
|
-
create_table :lesli_support_dashboard_components do |t|
|
|
38
|
-
table_base_structure.each do |column|
|
|
39
|
-
t.send(
|
|
40
|
-
column["type"].parameterize.underscore.to_sym,
|
|
41
|
-
column["name"].parameterize.underscore.to_sym
|
|
42
|
-
)
|
|
43
|
-
end
|
|
44
|
-
t.timestamps
|
|
45
|
-
end
|
|
46
|
-
add_reference(:lesli_support_dashboard_components, :dashboard,
|
|
47
|
-
foreign_key: { to_table: :lesli_support_dashboards },
|
|
48
|
-
index: { name: "help_dashboard_components_dashboards" })
|
|
49
|
-
end
|
|
50
|
-
end
|
|
@@ -1,52 +0,0 @@
|
|
|
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 LesliTech
|
|
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 CreateLesliSupportTicketDiscussions < ActiveRecord::Migration[6.0]
|
|
34
|
-
def change
|
|
35
|
-
gem_path = Lesli::System.engine("Lesli", "dir")
|
|
36
|
-
table_base_structure = JSON.parse(File.read(File.join(gem_path, "db", "structure", "00000005_discussions.json")))
|
|
37
|
-
|
|
38
|
-
create_table :lesli_support_ticket_discussions do |t|
|
|
39
|
-
table_base_structure.each do |column|
|
|
40
|
-
t.send(
|
|
41
|
-
column["type"].parameterize.underscore.to_sym,
|
|
42
|
-
column["name"].parameterize.underscore.to_sym
|
|
43
|
-
)
|
|
44
|
-
end
|
|
45
|
-
t.timestamps
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
add_reference(:lesli_support_ticket_discussions, :discussion, foreign_key: { to_table: :lesli_support_ticket_discussions })
|
|
49
|
-
add_reference(:lesli_support_ticket_discussions, :ticket, foreign_key: { to_table: :lesli_support_tickets })
|
|
50
|
-
add_reference(:lesli_support_ticket_discussions, :user, foreign_key: { to_table: :lesli_users })
|
|
51
|
-
end
|
|
52
|
-
end
|
data/lib/scss/application.scss
DELETED
data/lib/vue/application.js
DELETED
|
@@ -1,93 +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 "LesliSupport/vue/stores/translations.json"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
// · Dashboard apps
|
|
43
|
-
import dashboardShow from "Lesli/vue/shared/dashboards/apps/show.vue"
|
|
44
|
-
import dashboardEdit from "Lesli/vue/shared/dashboards/apps/edit.vue"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
// · Ticket apps
|
|
48
|
-
import ticketIndex from "LesliSupport/vue/apps/tickets/index.vue"
|
|
49
|
-
import ticketNew from "LesliSupport/vue/apps/tickets/new.vue"
|
|
50
|
-
import ticketShow from "LesliSupport/vue/apps/tickets/show.vue"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// ·
|
|
54
|
-
import componentDashboardEngineVersion from "LesliSupport/vue/apps/dashboard/components/engine-version.vue"
|
|
55
|
-
import componentDashboardMyTasks from "LesliSupport/vue/apps/dashboard/components/my-tasks.vue"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
// ·
|
|
59
|
-
const dashboardProps = {
|
|
60
|
-
components: {
|
|
61
|
-
"engine-version": componentDashboardEngineVersion,
|
|
62
|
-
"my-tasks": componentDashboardMyTasks
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
// · Buil Lesli translations
|
|
68
|
-
translation(translations)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
// · Build a new Lesli application
|
|
72
|
-
application("LesliSupport", [{
|
|
73
|
-
path: "/dashboard",
|
|
74
|
-
component: dashboardShow,
|
|
75
|
-
props: dashboardProps
|
|
76
|
-
}, {
|
|
77
|
-
path: "/dashboards/:id/edit",
|
|
78
|
-
component: dashboardEdit,
|
|
79
|
-
props: dashboardProps
|
|
80
|
-
}, {
|
|
81
|
-
path: "/tickets",
|
|
82
|
-
component: ticketIndex
|
|
83
|
-
}, {
|
|
84
|
-
path: "/tickets/new",
|
|
85
|
-
component: ticketNew
|
|
86
|
-
}, {
|
|
87
|
-
path: "/tickets/:id",
|
|
88
|
-
component: ticketShow
|
|
89
|
-
}, {
|
|
90
|
-
path: "/tickets/:id/edit",
|
|
91
|
-
component: ticketShow,
|
|
92
|
-
props: { editable: true }
|
|
93
|
-
}])
|
|
@@ -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,77 +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
|
-
import { lesliChartBar } from "lesli-vue/components"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
// ·
|
|
43
|
-
const url = inject("url")
|
|
44
|
-
const http = inject("http")
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
// ·
|
|
48
|
-
const lesliVersion = ref({
|
|
49
|
-
name: "",
|
|
50
|
-
code: "",
|
|
51
|
-
path: "",
|
|
52
|
-
version: "",
|
|
53
|
-
build: ""
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
// ·
|
|
58
|
-
onMounted(() => {
|
|
59
|
-
console.log("component works")
|
|
60
|
-
// http.get(url.lesli("about")).then(result => {
|
|
61
|
-
// lesliVersion.value = result.find(engine => engine.name == "Lesli")
|
|
62
|
-
// }).catch(error => {
|
|
63
|
-
// console.log(error)
|
|
64
|
-
// })
|
|
65
|
-
})
|
|
66
|
-
</script>
|
|
67
|
-
<template>
|
|
68
|
-
<lesli-card>
|
|
69
|
-
<h6 class="title is-6 mb-2">
|
|
70
|
-
hola
|
|
71
|
-
</h6>
|
|
72
|
-
<lesli-chart-bar
|
|
73
|
-
:labels="['hola1', 'hola2', 'hola3', 'hola4', 'hola5']"
|
|
74
|
-
:series="[{ data:[4, 1, 4, 2, 5] }]">
|
|
75
|
-
</lesli-chart-bar>
|
|
76
|
-
</lesli-card>
|
|
77
|
-
</template>
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
/*
|
|
3
|
-
Copyright (c) 2022, all rights reserved.
|
|
4
|
-
|
|
5
|
-
All the information provided by this platform is protected by international laws related to
|
|
6
|
-
industrial property, intellectual property, copyright and relative international laws.
|
|
7
|
-
All intellectual or industrial property rights of the code, texts, trade mark, design,
|
|
8
|
-
pictures and any other information belongs to the owner of this platform.
|
|
9
|
-
|
|
10
|
-
Without the written permission of the owner, any replication, modification,
|
|
11
|
-
transmission, publication is strictly forbidden.
|
|
12
|
-
|
|
13
|
-
For more information read the license file including with this software.
|
|
14
|
-
|
|
15
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
16
|
-
// ·
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// · import vue tools
|
|
21
|
-
import { onMounted } from "vue"
|
|
22
|
-
|
|
23
|
-
// · import lesli stores
|
|
24
|
-
import { useAssignments } from "LesliSupport/vue/stores/tickets/assignment"
|
|
25
|
-
|
|
26
|
-
// · import vue router composable
|
|
27
|
-
import { useRoute } from "vue-router"
|
|
28
|
-
|
|
29
|
-
// · implement stores
|
|
30
|
-
const storeAssignments = useAssignments()
|
|
31
|
-
|
|
32
|
-
// · initialize/inject plugins
|
|
33
|
-
const route = useRoute()
|
|
34
|
-
|
|
35
|
-
// ·
|
|
36
|
-
const translations = {
|
|
37
|
-
users: I18n.t("core.users"),
|
|
38
|
-
shared: I18n.t("core.shared"),
|
|
39
|
-
sla: I18n.t('help.slas'),
|
|
40
|
-
main: I18n.t('help.tickets')
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const columns = [{
|
|
44
|
-
field: "name",
|
|
45
|
-
label: translations.users.view_table_header_name
|
|
46
|
-
}, {
|
|
47
|
-
field: "email",
|
|
48
|
-
label: translations.users.view_table_header_email
|
|
49
|
-
}, {
|
|
50
|
-
field: "roles",
|
|
51
|
-
label: translations.users.view_table_header_role
|
|
52
|
-
}, {
|
|
53
|
-
field: "assigned",
|
|
54
|
-
label: ""
|
|
55
|
-
}]
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
onMounted(() => {
|
|
59
|
-
storeAssignments.ticket_id = route.params.id
|
|
60
|
-
storeAssignments.fetchTicket(route.params.id)
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @description This action is used to verify if a user is assigned or unassigned
|
|
65
|
-
* @param {Object} user The user to be checked
|
|
66
|
-
*/
|
|
67
|
-
function submitAssignment(user){
|
|
68
|
-
if(!user.checked){
|
|
69
|
-
storeAssignments.postAssignment(user)
|
|
70
|
-
}else{
|
|
71
|
-
storeAssignments.deleteAssignment(user.assignment_id)
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
</script>
|
|
76
|
-
<template>
|
|
77
|
-
<h5 class="title is-5">{{translations.main.view_tab_title_assignments}}</h5>
|
|
78
|
-
<lesli-table
|
|
79
|
-
:records="storeAssignments.users"
|
|
80
|
-
:columns="columns">
|
|
81
|
-
<template #roles="{ column, value }">
|
|
82
|
-
<span
|
|
83
|
-
v-for="role in value"
|
|
84
|
-
:key="role.id"
|
|
85
|
-
class="tag is-success is-small is-rounded mr-1">
|
|
86
|
-
{{ role.name }}
|
|
87
|
-
</span>
|
|
88
|
-
</template>
|
|
89
|
-
<template #assigned="{ record, value }">
|
|
90
|
-
<input type="checkbox" v-model="record.checked" @input="submitAssignment(record)">
|
|
91
|
-
</template>
|
|
92
|
-
</lesli-table>
|
|
93
|
-
</template>
|