lesli_calendar 0.2.0 → 0.2.2
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_calendar/application.js +1 -4658
- data/app/assets/stylesheets/lesli_calendar/application.css +1 -604
- data/app/controllers/lesli_calendar/agendas_controller.rb +60 -0
- data/app/controllers/lesli_calendar/calendars_controller.rb +1 -1
- data/app/helpers/lesli_calendar/agendas_helper.rb +4 -0
- data/app/models/lesli_calendar/agenda.rb +5 -0
- data/app/models/lesli_calendar/calendar.rb +1 -0
- data/app/models/lesli_calendar/event.rb +3 -2
- data/app/services/lesli_calendar/calendar_service.rb +14 -2
- data/app/services/lesli_calendar/event_service.rb +57 -0
- data/app/views/lesli_calendar/agendas/edit.html.erb +10 -0
- data/app/views/lesli_calendar/agendas/index.html.erb +14 -0
- data/app/views/lesli_calendar/agendas/new.html.erb +9 -0
- data/app/views/lesli_calendar/agendas/show.html.erb +1 -0
- data/app/views/lesli_calendar/partials/_engine-navigation.html.erb +3 -2
- data/config/locales/translations.en.yml +2 -0
- data/config/locales/translations.es.yml +2 -0
- 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 +3 -0
- data/db/migrate/v1.0/0301110110_create_lesli_calendar_events.rb +3 -3
- data/db/seed/development.rb +58 -9
- data/db/seed/seeds.json +83 -0
- data/db/seeds.rb +1 -1
- data/lib/lesli_calendar/version.rb +2 -2
- data/lib/scss/agenda.scss +101 -0
- data/lib/scss/application.scss +11 -0
- data/lib/scss/calendar.scss +9 -55
- data/lib/scss/dashboard.scss +31 -0
- data/lib/vue/application.js +9 -1
- data/lib/vue/apps/agendas/show.vue +71 -0
- data/lib/vue/apps/calendars/show.vue +26 -20
- data/lib/vue/apps/dashboards/show.vue +102 -0
- data/lib/vue/components/agenda.vue +75 -54
- data/lib/vue/components/calendar.vue +38 -5
- data/lib/vue/stores/calendar.js +3 -19
- data/lib/vue/stores/translations.json +10 -0
- metadata +15 -4
- data/app/views/lesli_calendar/calendars/_calendar.html.erb +0 -2
- data/app/views/lesli_calendar/calendars/_form.html.erb +0 -17
data/lib/vue/stores/calendar.js
CHANGED
@@ -34,8 +34,8 @@ export const useCalendar = defineStore("calendar.calendar", {
|
|
34
34
|
|
35
35
|
return {
|
36
36
|
title: "",
|
37
|
-
calendar: {},
|
38
|
-
|
37
|
+
calendar: { events: [], events_support: [] },
|
38
|
+
calendarObject: {},
|
39
39
|
|
40
40
|
|
41
41
|
|
@@ -94,23 +94,7 @@ export const useCalendar = defineStore("calendar.calendar", {
|
|
94
94
|
|
95
95
|
getCalendar() {
|
96
96
|
this.http.get(this.url.calendar("calendar")).then(result => {
|
97
|
-
|
98
|
-
this.calendarData = result
|
99
|
-
|
100
|
-
this.calendarData.events_support = this.calendarData.events_support.map(event => {
|
101
|
-
return {
|
102
|
-
title: event.subject,
|
103
|
-
start: event.deadline,
|
104
|
-
ticket: event.id,
|
105
|
-
description: event.description,
|
106
|
-
engine: "lesli-support",
|
107
|
-
classNames: "lesli-support"
|
108
|
-
}
|
109
|
-
})
|
110
|
-
|
111
|
-
result.events_support.forEach(event => {
|
112
|
-
this.calendar.addEvent(event)
|
113
|
-
})
|
97
|
+
this.calendar = result
|
114
98
|
}).catch(error => {
|
115
99
|
console.log(error)
|
116
100
|
})
|
@@ -20,6 +20,8 @@
|
|
20
20
|
"button_save": "Save",
|
21
21
|
"button_settings": "Settings",
|
22
22
|
"button_show": "Show",
|
23
|
+
"message_operation_error": "Operation failed. Please try again.",
|
24
|
+
"message_operation_success": "Operation completed successfully",
|
23
25
|
"toolbar_search": "Search...",
|
24
26
|
"view_discussions": "Discussions",
|
25
27
|
"view_files": "Files",
|
@@ -50,6 +52,8 @@
|
|
50
52
|
"button_save": "Guardar",
|
51
53
|
"button_settings": "Configuración",
|
52
54
|
"button_show": "Ver",
|
55
|
+
"message_operation_error": "Operación fallida. Por favor, inténtelo de nuevo.",
|
56
|
+
"message_operation_success": "Operacion realizada satisfactoriamente",
|
53
57
|
"toolbar_search": "Buscar...",
|
54
58
|
"view_discussions": "Discusiones",
|
55
59
|
"view_files": "Archivos",
|
@@ -80,6 +84,8 @@
|
|
80
84
|
"button_save": ":lesli.shared.button_save:",
|
81
85
|
"button_settings": ":lesli.shared.button_settings:",
|
82
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:",
|
83
89
|
"toolbar_search": ":lesli.shared.toolbar_search:",
|
84
90
|
"view_discussions": ":lesli.shared.view_discussions:",
|
85
91
|
"view_files": ":lesli.shared.view_files:",
|
@@ -110,6 +116,8 @@
|
|
110
116
|
"button_save": ":lesli.shared.button_save:",
|
111
117
|
"button_settings": ":lesli.shared.button_settings:",
|
112
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:",
|
113
121
|
"toolbar_search": ":lesli.shared.toolbar_search:",
|
114
122
|
"view_discussions": ":lesli.shared.view_discussions:",
|
115
123
|
"view_files": ":lesli.shared.view_files:",
|
@@ -140,6 +148,8 @@
|
|
140
148
|
"button_save": ":lesli.shared.button_save:",
|
141
149
|
"button_settings": ":lesli.shared.button_settings:",
|
142
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:",
|
143
153
|
"toolbar_search": ":lesli.shared.toolbar_search:",
|
144
154
|
"view_discussions": ":lesli.shared.view_discussions:",
|
145
155
|
"view_files": ":lesli.shared.view_files:",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lesli_calendar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Lesli Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -50,10 +50,12 @@ files:
|
|
50
50
|
- app/assets/images/lesli_calendar/calendar-logo.svg
|
51
51
|
- app/assets/javascripts/lesli_calendar/application.js
|
52
52
|
- app/assets/stylesheets/lesli_calendar/application.css
|
53
|
+
- app/controllers/lesli_calendar/agendas_controller.rb
|
53
54
|
- app/controllers/lesli_calendar/application_controller.rb
|
54
55
|
- app/controllers/lesli_calendar/calendars_controller.rb
|
55
56
|
- app/controllers/lesli_calendar/dashboards_controller.rb
|
56
57
|
- app/controllers/lesli_calendar/events_controller.rb
|
58
|
+
- app/helpers/lesli_calendar/agendas_helper.rb
|
57
59
|
- app/helpers/lesli_calendar/application_helper.rb
|
58
60
|
- app/helpers/lesli_calendar/calendars_helper.rb
|
59
61
|
- app/helpers/lesli_calendar/dashboards_helper.rb
|
@@ -61,13 +63,17 @@ files:
|
|
61
63
|
- app/jobs/lesli_calendar/application_job.rb
|
62
64
|
- app/mailers/lesli_calendar/application_mailer.rb
|
63
65
|
- app/models/lesli_calendar/account.rb
|
66
|
+
- app/models/lesli_calendar/agenda.rb
|
64
67
|
- app/models/lesli_calendar/application_record.rb
|
65
68
|
- app/models/lesli_calendar/calendar.rb
|
66
69
|
- app/models/lesli_calendar/dashboard.rb
|
67
70
|
- app/models/lesli_calendar/event.rb
|
68
71
|
- app/services/lesli_calendar/calendar_service.rb
|
69
|
-
- app/
|
70
|
-
- app/views/lesli_calendar/
|
72
|
+
- app/services/lesli_calendar/event_service.rb
|
73
|
+
- app/views/lesli_calendar/agendas/edit.html.erb
|
74
|
+
- app/views/lesli_calendar/agendas/index.html.erb
|
75
|
+
- app/views/lesli_calendar/agendas/new.html.erb
|
76
|
+
- app/views/lesli_calendar/agendas/show.html.erb
|
71
77
|
- app/views/lesli_calendar/calendars/edit.html.erb
|
72
78
|
- app/views/lesli_calendar/calendars/index.html.erb
|
73
79
|
- app/views/lesli_calendar/calendars/new.html.erb
|
@@ -96,6 +102,7 @@ files:
|
|
96
102
|
- db/migrate/v1.0/0301110110_create_lesli_calendar_events.rb
|
97
103
|
- db/seed/development.rb
|
98
104
|
- db/seed/production.rb
|
105
|
+
- db/seed/seeds.json
|
99
106
|
- db/seed/test.rb
|
100
107
|
- db/seeds.rb
|
101
108
|
- db/tables/0301010210_create_lesli_driver_catalog_event_types.rb
|
@@ -108,11 +115,15 @@ files:
|
|
108
115
|
- lib/lesli_calendar.rb
|
109
116
|
- lib/lesli_calendar/engine.rb
|
110
117
|
- lib/lesli_calendar/version.rb
|
118
|
+
- lib/scss/agenda.scss
|
111
119
|
- lib/scss/application.scss
|
112
120
|
- lib/scss/calendar.scss
|
121
|
+
- lib/scss/dashboard.scss
|
113
122
|
- lib/tasks/lesli_calendar_tasks.rake
|
114
123
|
- lib/vue/application.js
|
124
|
+
- lib/vue/apps/agendas/show.vue
|
115
125
|
- lib/vue/apps/calendars/show.vue
|
126
|
+
- lib/vue/apps/dashboards/show.vue
|
116
127
|
- lib/vue/apps/events/index.vue
|
117
128
|
- lib/vue/components/agenda.vue
|
118
129
|
- lib/vue/components/calendar.vue
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<%= form_with(model: calendar) do |form| %>
|
2
|
-
<% if calendar.errors.any? %>
|
3
|
-
<div style="color: red">
|
4
|
-
<h2><%= pluralize(calendar.errors.count, "error") %> prohibited this calendar from being saved:</h2>
|
5
|
-
|
6
|
-
<ul>
|
7
|
-
<% calendar.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 %>
|