lesli_support 1.0.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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/lesli_support/item/discussions_controller.rb +6 -0
  3. data/app/controllers/lesli_support/item/tasks_controller.rb +6 -0
  4. data/app/controllers/lesli_support/tickets_controller.rb +6 -5
  5. data/app/models/lesli_support/item/activity.rb +4 -0
  6. data/app/models/lesli_support/item/discussion.rb +6 -0
  7. data/app/models/lesli_support/item/task.rb +6 -0
  8. data/app/models/lesli_support/ticket.rb +14 -9
  9. data/app/views/lesli_support/dashboards/_component-latest-tickets.html.erb +1 -1
  10. data/app/views/lesli_support/tickets/show.html.erb +10 -7
  11. data/db/migrate/v1/0702000110_create_lesli_support_accounts.rb +7 -0
  12. data/db/migrate/v1/0702110110_create_lesli_support_tickets.rb +0 -7
  13. data/db/seeds.rb +1 -1
  14. data/lib/lesli_support/version.rb +2 -2
  15. metadata +8 -29
  16. data/app/controllers/lesli_support/options_controller.rb +0 -23
  17. data/app/controllers/lesli_support/ticket/actions_controller.rb +0 -4
  18. data/app/helpers/lesli_support/options_helper.rb +0 -4
  19. data/app/helpers/lesli_support/ticket/actions_helper.rb +0 -4
  20. data/app/models/lesli_support/option.rb +0 -4
  21. data/app/models/lesli_support/ticket/action.rb +0 -6
  22. data/app/views/lesli_support/options/_form.html.erb +0 -17
  23. data/app/views/lesli_support/options/_option.html.erb +0 -2
  24. data/app/views/lesli_support/options/edit.html.erb +0 -10
  25. data/app/views/lesli_support/options/index.html.erb +0 -14
  26. data/app/views/lesli_support/options/new.html.erb +0 -9
  27. data/app/views/lesli_support/options/show.html.erb +0 -10
  28. data/lib/scss/application.scss +0 -0
  29. data/lib/vue/application.js +0 -93
  30. data/lib/vue/apps/dashboard/components/engine-version.vue +0 -71
  31. data/lib/vue/apps/dashboard/components/my-tasks.vue +0 -77
  32. data/lib/vue/apps/tickets/components/assignments.vue +0 -93
  33. data/lib/vue/apps/tickets/components/form.vue +0 -305
  34. data/lib/vue/apps/tickets/components/internal-comments.vue +0 -107
  35. data/lib/vue/apps/tickets/components/sla-info.vue +0 -115
  36. data/lib/vue/apps/tickets/components/table.vue +0 -94
  37. data/lib/vue/apps/tickets/index.vue +0 -145
  38. data/lib/vue/apps/tickets/new.vue +0 -78
  39. data/lib/vue/apps/tickets/show.vue +0 -183
  40. data/lib/vue/stores/tickets.js +0 -276
  41. data/lib/vue/stores/translations.json +0 -162
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0aba3f933b74f64c9c7917089c6d11d1214ab0d7580824fd1e8e2ca4e0aeac49
4
- data.tar.gz: 4ae9fdbecd0feb6cd77333d1bc0d6dbba389fb939dc55235b6a0170bd430f0e7
3
+ metadata.gz: ff939ab963e674de3a14442077d06572ce2c1091568666fa730259a83171e747
4
+ data.tar.gz: a23328ff32b2a7cdf84992a36fe92baac93447ee48c3644ce0ee4addd6a353ca
5
5
  SHA512:
6
- metadata.gz: 707825be39826856ee3b923dad0b14f1e0eb582c965f24d5ed2e7fd3fc4ab551d12199045c5c9d8341c9cc046704615d112e5769628a589ca06dae54981b7fea
7
- data.tar.gz: 19d6e69530ce864cd54d45bcf3b35f5fdc5c604ee2eca5203f69eb4e5050b6e59ea2f4b8037ab324e2a1ea616fca5a6d506b46bb0732d84bb05b55a61a711717
6
+ metadata.gz: 149e25ce3d686b52625697dbb871a27c9a06b18b3ea762c9a7e4bc1cdb2954bc0ebaa3e848d4a40e9a43c393dccbe9b71aba510902b1c36e01ae0bd447d4785b
7
+ data.tar.gz: 6eafb0c0c16385130259ca6cb2ffb22ad3a9ef5d09525fbe1b02762e93fcd86945d08aa363fae51e5d724d1fbd7941c03d8f4f4952c4ae65331eab85d85ec002
@@ -0,0 +1,6 @@
1
+ module LesliSupport
2
+ module Item
3
+ class DiscussionsController < Lesli::Item::DiscussionsController
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module LesliSupport
2
+ module Item
3
+ class TasksController < Lesli::Item::TasksController
4
+ end
5
+ end
6
+ end
@@ -69,16 +69,17 @@ module LesliSupport
69
69
  def update
70
70
 
71
71
  if @ticket.update(ticket_params)
72
- log(
73
- subject: @invite,
74
- description: "Ticket updated successfully"
75
- )
72
+ # log(
73
+ # subject: @invite,
74
+ # description: "Ticket updated successfully"
75
+ # )
76
76
  respond_with_lesli(
77
77
  :turbo => stream_notification_success("Ticket updated successfully")
78
78
  )
79
79
  else
80
80
  respond_with_lesli(
81
- :turbo => stream_notification_danger(@invite.errors.full_messages.to_sentence)
81
+ :turbo => stream_notification_danger(@ticket.errors)
82
+ #:turbo => stream_notification_danger(@ticket.errors.full_messages.to_sentence)
82
83
  )
83
84
  end
84
85
  end
@@ -0,0 +1,4 @@
1
+ module LesliSupport
2
+ class Item::Activity < Lesli::Item::Activity
3
+ end
4
+ end
@@ -0,0 +1,6 @@
1
+ module LesliSupport
2
+ module Item
3
+ class Discussion < Lesli::Item::Discussion
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module LesliSupport
2
+ module Item
3
+ class Task < Lesli::Item::Task
4
+ end
5
+ end
6
+ end
@@ -42,13 +42,17 @@ module LesliSupport
42
42
  belongs_to :priority, optional: true, class_name: "Catalog::Item"
43
43
 
44
44
  # Items
45
- has_many :actions
46
- has_many :activities
47
- has_many :discussions
45
+ include Lesli::Item::Tasks
46
+ include Lesli::Item::Activities
47
+ include Lesli::Item::Discussions
48
+ #has_many :discussions, class_name: "LesliSupport::Item::Discussion"
49
+
50
+ # include Lesli::Items::Attachments
51
+ # include Lesli::Items::Subscribers
48
52
 
49
53
  # Hooks
50
54
  before_create :before_create_ticket
51
- after_save :after_save_ticket
55
+ after_save :after_save_activities
52
56
 
53
57
  private
54
58
 
@@ -61,9 +65,10 @@ module LesliSupport
61
65
  end
62
66
  end
63
67
 
64
- def after_save_ticket
68
+ def after_save_activities
69
+
65
70
  if self.saved_change_to_owner_id?
66
- self.activities.create(
71
+ self.activities_create(
67
72
  description: "Agent assigned #{self.owner.name}",
68
73
  activity_code: :owner_id,
69
74
  metadata: { owner_id: self.owner.id }
@@ -71,7 +76,7 @@ module LesliSupport
71
76
  end
72
77
 
73
78
  if self.saved_change_to_type_id?
74
- self.activities.create(
79
+ self.activities_create(
75
80
  description: "Ticket type updated to #{self.type.name}",
76
81
  activity_code: :type_id,
77
82
  metadata: { type_id: self.type.id }
@@ -79,7 +84,7 @@ module LesliSupport
79
84
  end
80
85
 
81
86
  if self.saved_change_to_category_id?
82
- self.activities.create(
87
+ self.activities_create(
83
88
  description: "Ticket category updated to #{self.category.name}",
84
89
  activity_code: :category_id,
85
90
  metadata: { category_id: self.category.id }
@@ -87,7 +92,7 @@ module LesliSupport
87
92
  end
88
93
 
89
94
  if self.saved_change_to_priority_id?
90
- self.activities.create(
95
+ self.activities_create(
91
96
  description: "Ticket priority updated to #{self.priority.name}",
92
97
  activity_code: :priority_id,
93
98
  metadata: { priority_id: self.priority.id }
@@ -17,7 +17,7 @@ tickets = current_user.account.support.tickets.left_joins(
17
17
  <%
18
18
  columns = [{
19
19
  label: "ID",
20
- field: "number"
20
+ field: "uid"
21
21
  }, {
22
22
  label: "Subject",
23
23
  field: "subject"
@@ -9,15 +9,11 @@
9
9
  <% end %>
10
10
 
11
11
  <% tabs.with_tab(id:"ticket-discussions", title:"Discussions", icon:"forum") do %>
12
- <%= render(LesliView::Items::Discussions.new(@ticket, ticket_discussions_path(@ticket))) %>
12
+ <%= render(LesliView::Items::Discussions.new(@ticket)) %>
13
13
  <% end %>
14
14
 
15
- <% tabs.with_tab(id:"ticket-actions", title:"Actions", icon:"checklist") do %>
16
- <%= render(LesliView::Items::Actions.new(
17
- @ticket,
18
- path_to_create:ticket_actions_path(@ticket),
19
- path_to_update:->(action) {ticket_action_path(@ticket, action)}
20
- )) %>
15
+ <% tabs.with_tab(id:"ticket-tasks", title:"Tasks", icon:"checklist") do %>
16
+ <%= render(LesliView::Items::Tasks.new(@ticket)) %>
21
17
  <% end %>
22
18
 
23
19
  <% tabs.with_tab(id:"ticket-activities", title:"Activities", icon:"search_activity") do %>
@@ -28,5 +24,12 @@
28
24
  category_id: 'search'
29
25
  })) %>
30
26
  <% end %>
27
+
28
+ <% tabs.with_tab(id:"ticket-attachments", title:"Attachments", icon:"attach_file") do %>
29
+ <%#= render(LesliView::Items::Attachments.new(@ticket,
30
+ path_to_create:ticket_actions_path(@ticket),
31
+ path_to_update:->(action) {ticket_action_path(@ticket, action)}
32
+ )) %>
33
+ <% end %>
31
34
  <% end %>
32
35
  <% end %>
@@ -33,5 +33,12 @@ Building a better future, one line of code at a time.
33
33
  class CreateLesliSupportAccounts < ActiveRecord::Migration[7.0]
34
34
  def change
35
35
  create_table_lesli_shared_account_10(:lesli_support)
36
+
37
+ create_table_lesli_item_tasks_10(:lesli_support)
38
+ create_table_lesli_item_activities_10(:lesli_support)
39
+ create_table_lesli_item_discussions_10(:lesli_support)
40
+ # create_table_lesli_item_subscribers_10(:lesli_support_tickets)
41
+ # create_table_lesli_item_attachments_10(:lesli_support_tickets)
42
+ # create_table_lesli_item_versions_10(:lesli_support_tickets)
36
43
  end
37
44
  end
@@ -64,12 +64,5 @@ class CreateLesliSupportTickets < ActiveRecord::Migration[6.0]
64
64
  add_reference(:lesli_support_tickets, :user, foreign_key: { to_table: :lesli_users })
65
65
  add_reference(:lesli_support_tickets, :owner, foreign_key: { to_table: :lesli_users })
66
66
  add_reference(:lesli_support_tickets, :account, foreign_key: { to_table: :lesli_support_accounts })
67
-
68
- create_table_lesli_item_actions_10(:lesli_support_tickets)
69
- create_table_lesli_item_activities_10(:lesli_support_tickets)
70
- create_table_lesli_item_discussions_10(:lesli_support_tickets)
71
- create_table_lesli_item_subscribers_10(:lesli_support_tickets)
72
- create_table_lesli_item_attachments_10(:lesli_support_tickets)
73
- create_table_lesli_item_versions_10(:lesli_support_tickets)
74
67
  end
75
68
  end
data/db/seeds.rb CHANGED
@@ -34,5 +34,5 @@ L2.msg("LesliSupport", "Version: #{LesliSupport::VERSION}", "Build: #{LesliSuppo
34
34
 
35
35
  # · load specific environment seeds
36
36
  if Rails.env.development? || Lesli.config.demo
37
- load LesliSupport::Engine.root.join("db", "seed", "#{ Rails.env.downcase }.rb")
37
+ load(LesliSupport::Engine.root.join("db", "seed", "#{ Rails.env.downcase }.rb"))
38
38
  end
@@ -1,4 +1,4 @@
1
1
  module LesliSupport
2
- VERSION = "1.0.0"
3
- BUILD = "1771710537"
2
+ VERSION = "1.1.0"
3
+ BUILD = "1774678451"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.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: '5.0'
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: '5.0'
25
+ version: 5.1.0
26
26
  description: Ticket Management System for the Lesli Framework
27
27
  email:
28
28
  - hello@lesli.tech
@@ -40,8 +40,8 @@ files:
40
40
  - app/controllers/lesli_support/catalog/items_controller.rb
41
41
  - app/controllers/lesli_support/catalogs_controller.rb
42
42
  - app/controllers/lesli_support/dashboards_controller.rb
43
- - app/controllers/lesli_support/options_controller.rb
44
- - app/controllers/lesli_support/ticket/actions_controller.rb
43
+ - app/controllers/lesli_support/item/discussions_controller.rb
44
+ - app/controllers/lesli_support/item/tasks_controller.rb
45
45
  - app/controllers/lesli_support/ticket/activities_controller.rb
46
46
  - app/controllers/lesli_support/ticket/discussions_controller.rb
47
47
  - app/controllers/lesli_support/tickets_controller.rb
@@ -50,8 +50,6 @@ files:
50
50
  - app/helpers/lesli_support/catalog/items_helper.rb
51
51
  - app/helpers/lesli_support/catalogs_helper.rb
52
52
  - app/helpers/lesli_support/dashboards_helper.rb
53
- - app/helpers/lesli_support/options_helper.rb
54
- - app/helpers/lesli_support/ticket/actions_helper.rb
55
53
  - app/helpers/lesli_support/ticket/activities_helper.rb
56
54
  - app/helpers/lesli_support/ticket/discussions_helper.rb
57
55
  - app/jobs/lesli_support/application_job.rb
@@ -61,9 +59,10 @@ files:
61
59
  - app/models/lesli_support/catalog.rb
62
60
  - app/models/lesli_support/catalog/item.rb
63
61
  - app/models/lesli_support/dashboard.rb
64
- - app/models/lesli_support/option.rb
62
+ - app/models/lesli_support/item/activity.rb
63
+ - app/models/lesli_support/item/discussion.rb
64
+ - app/models/lesli_support/item/task.rb
65
65
  - app/models/lesli_support/ticket.rb
66
- - app/models/lesli_support/ticket/action.rb
67
66
  - app/models/lesli_support/ticket/activity.rb
68
67
  - app/models/lesli_support/ticket/discussion.rb
69
68
  - app/services/lesli_support/catalog_service.rb
@@ -90,12 +89,6 @@ files:
90
89
  - app/views/lesli_support/dashboards/_component-tickets-by-category.html.erb
91
90
  - app/views/lesli_support/dashboards/_component-tickets-created.html.erb
92
91
  - app/views/lesli_support/dashboards/_component-tickets-open.html.erb
93
- - app/views/lesli_support/options/_form.html.erb
94
- - app/views/lesli_support/options/_option.html.erb
95
- - app/views/lesli_support/options/edit.html.erb
96
- - app/views/lesli_support/options/index.html.erb
97
- - app/views/lesli_support/options/new.html.erb
98
- - app/views/lesli_support/options/show.html.erb
99
92
  - app/views/lesli_support/partials/_navigation.html.erb
100
93
  - app/views/lesli_support/tickets/_form.html.erb
101
94
  - app/views/lesli_support/tickets/index.html.erb
@@ -147,21 +140,7 @@ files:
147
140
  - lib/lesli_support.rb
148
141
  - lib/lesli_support/engine.rb
149
142
  - lib/lesli_support/version.rb
150
- - lib/scss/application.scss
151
143
  - lib/tasks/lesli_support_tasks.rake
152
- - lib/vue/application.js
153
- - lib/vue/apps/dashboard/components/engine-version.vue
154
- - lib/vue/apps/dashboard/components/my-tasks.vue
155
- - lib/vue/apps/tickets/components/assignments.vue
156
- - lib/vue/apps/tickets/components/form.vue
157
- - lib/vue/apps/tickets/components/internal-comments.vue
158
- - lib/vue/apps/tickets/components/sla-info.vue
159
- - lib/vue/apps/tickets/components/table.vue
160
- - lib/vue/apps/tickets/index.vue
161
- - lib/vue/apps/tickets/new.vue
162
- - lib/vue/apps/tickets/show.vue
163
- - lib/vue/stores/tickets.js
164
- - lib/vue/stores/translations.json
165
144
  - readme.md
166
145
  homepage: https://www.lesli.dev/
167
146
  licenses:
@@ -1,23 +0,0 @@
1
- module LesliSupport
2
- class OptionsController < ApplicationController
3
- before_action :set_option, only: %i[ show edit update destroy ]
4
-
5
- # GET /options
6
- def index
7
- respond_to do |format|
8
- format.html { }
9
- format.json do
10
-
11
- options = {
12
- types: CatalogType.select(:id, :name),
13
- categories: CatalogCategory.select(:id, :name),
14
- priorities: CatalogPriority.select(:id, :name).order(:weight),
15
- workspaces: CatalogWorkspace.select(:id, :name)
16
- }
17
-
18
- respond_with_successful(options)
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,4 +0,0 @@
1
- module LesliSupport
2
- class Ticket::ActionsController < Lesli::Items::ActionsController
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module LesliSupport
2
- module OptionsHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module LesliSupport
2
- module Ticket::ActionsHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module LesliSupport
2
- class Option < ApplicationRecord
3
- end
4
- end
@@ -1,6 +0,0 @@
1
- module LesliSupport
2
- class Ticket::Action < Lesli::Items::Action
3
- belongs_to :item, class_name: "LesliSupport::Ticket", foreign_key: "ticket_id"
4
- belongs_to :user, class_name: "Lesli::User"
5
- end
6
- end
@@ -1,17 +0,0 @@
1
- <%= form_with(model: option) do |form| %>
2
- <% if option.errors.any? %>
3
- <div style="color: red">
4
- <h2><%= pluralize(option.errors.count, "error") %> prohibited this option from being saved:</h2>
5
-
6
- <ul>
7
- <% option.errors.each do |error| %>
8
- <li><%= error.full_message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div>
15
- <%= form.submit %>
16
- </div>
17
- <% end %>
@@ -1,2 +0,0 @@
1
- <div id="<%= dom_id option %>">
2
- </div>
@@ -1,10 +0,0 @@
1
- <h1>Editing option</h1>
2
-
3
- <%= render "form", option: @option %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Show this option", @option %> |
9
- <%= link_to "Back to options", options_path %>
10
- </div>
@@ -1,14 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <h1>Options</h1>
4
-
5
- <div id="options">
6
- <% @options.each do |option| %>
7
- <%= render option %>
8
- <p>
9
- <%= link_to "Show this option", option %>
10
- </p>
11
- <% end %>
12
- </div>
13
-
14
- <%= link_to "New option", new_option_path %>
@@ -1,9 +0,0 @@
1
- <h1>New option</h1>
2
-
3
- <%= render "form", option: @option %>
4
-
5
- <br>
6
-
7
- <div>
8
- <%= link_to "Back to options", options_path %>
9
- </div>
@@ -1,10 +0,0 @@
1
- <p style="color: green"><%= notice %></p>
2
-
3
- <%= render @option %>
4
-
5
- <div>
6
- <%= link_to "Edit this option", edit_option_path(@option) %> |
7
- <%= link_to "Back to options", options_path %>
8
-
9
- <%= button_to "Destroy this option", @option, method: :delete %>
10
- </div>
File without changes
@@ -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>