lesli_calendar 1.1.2 → 1.1.3
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/stylesheets/application.css +469 -0
- data/app/assets/stylesheets/lesli_calendar/application.css +153 -118
- data/app/controllers/lesli_calendar/agendas_controller.rb +13 -58
- data/app/controllers/lesli_calendar/calendars_controller.rb +3 -67
- data/app/controllers/lesli_calendar/dashboards_controller.rb +26 -50
- data/app/controllers/lesli_calendar/event/attendants_controller.rb +18 -57
- data/app/controllers/lesli_calendar/events_controller.rb +80 -81
- data/app/models/lesli_calendar/account.rb +7 -5
- data/app/models/lesli_calendar/application_record.rb +1 -1
- data/app/models/lesli_calendar/calendar.rb +8 -2
- data/app/models/lesli_calendar/dashboard.rb +1 -0
- data/app/models/lesli_calendar/event/attendant.rb +29 -2
- data/app/models/lesli_calendar/event/role_invitation.rb +16 -0
- data/app/models/lesli_calendar/event/user_invitation.rb +16 -0
- data/app/models/lesli_calendar/event.rb +81 -7
- data/app/operators/lesli_calendar/event_cancellation_operator.rb +18 -0
- data/app/operators/lesli_calendar/event_response_operator.rb +35 -0
- data/app/services/lesli_calendar/calendar_service.rb +3 -36
- data/app/services/lesli_calendar/event_service.rb +198 -111
- data/app/views/lesli_calendar/agendas/show.html.erb +42 -23
- data/app/views/lesli_calendar/calendars/show.html.erb +15 -28
- data/app/views/lesli_calendar/dashboards/_component-pending-invitations.html.erb +1 -0
- data/app/views/lesli_calendar/dashboards/_component-upcoming-deadlines.html.erb +1 -0
- data/app/views/lesli_calendar/dashboards/_component-upcoming-events.html.erb +1 -0
- data/app/views/lesli_calendar/dashboards/_widget.html.erb +19 -0
- data/app/views/lesli_calendar/events/_actions.html.erb +25 -0
- data/app/views/lesli_calendar/events/_event.html.erb +31 -2
- data/app/views/lesli_calendar/events/_form.html.erb +27 -16
- data/app/views/lesli_calendar/events/edit.html.erb +6 -10
- data/app/views/lesli_calendar/events/new.html.erb +4 -9
- data/app/views/lesli_calendar/events/show.html.erb +13 -10
- data/app/views/lesli_calendar/partials/_agenda.html.erb +26 -7
- data/app/views/lesli_calendar/partials/_calendar.html.erb +11 -1
- data/app/views/lesli_calendar/partials/_event_panel.html.erb +13 -0
- data/app/views/lesli_calendar/partials/_navigation.html.erb +2 -3
- data/config/locales/translations.en.yml +91 -1
- data/config/locales/translations.es.yml +91 -1
- data/config/locales/translations.fr.yml +2 -1
- data/config/locales/translations.it.yml +2 -1
- data/config/locales/translations.pt.yml +2 -1
- data/config/routes.rb +10 -9
- data/db/migrate/v1.0/0301100110_create_lesli_calendar_calendars.rb +5 -9
- data/db/migrate/v1.0/0301110110_create_lesli_calendar_events.rb +11 -10
- data/db/migrate/v1.0/0301111010_create_lesli_calendar_event_attendants.rb +6 -4
- data/db/migrate/v1.0/0301111110_create_lesli_calendar_event_invitations.rb +17 -0
- data/db/seed/development.rb +118 -0
- data/db/seed/seeds.json +48 -0
- data/db/seeds.rb +1 -1
- data/lib/lesli_calendar/version.rb +2 -2
- data/readme.md +9 -1
- metadata +16 -29
- data/app/assets/javascripts/lesli_calendar/application.js +0 -14
- data/app/helpers/lesli_calendar/agendas_helper.rb +0 -4
- data/app/helpers/lesli_calendar/calendars_helper.rb +0 -4
- data/app/helpers/lesli_calendar/dashboards_helper.rb +0 -4
- data/app/helpers/lesli_calendar/event/attendants_helper.rb +0 -4
- data/app/helpers/lesli_calendar/events_helper.rb +0 -4
- data/app/models/lesli_calendar/agenda.rb +0 -5
- data/app/views/lesli_calendar/agendas/edit.html.erb +0 -10
- data/app/views/lesli_calendar/agendas/index.html.erb +0 -14
- data/app/views/lesli_calendar/agendas/new.html.erb +0 -9
- data/app/views/lesli_calendar/calendars/edit.html.erb +0 -10
- data/app/views/lesli_calendar/calendars/index.html.erb +0 -14
- data/app/views/lesli_calendar/calendars/new.html.erb +0 -9
- data/app/views/lesli_calendar/dashboards/_dashboard.html.erb +0 -2
- data/app/views/lesli_calendar/dashboards/_form.html.erb +0 -17
- data/app/views/lesli_calendar/dashboards/edit.html.erb +0 -10
- data/app/views/lesli_calendar/dashboards/index.html.erb +0 -14
- data/app/views/lesli_calendar/dashboards/new.html.erb +0 -9
- data/app/views/lesli_calendar/event/attendants/_attendant.html.erb +0 -2
- data/app/views/lesli_calendar/event/attendants/_form.html.erb +0 -17
- data/app/views/lesli_calendar/event/attendants/edit.html.erb +0 -10
- data/app/views/lesli_calendar/event/attendants/index.html.erb +0 -14
- data/app/views/lesli_calendar/event/attendants/new.html.erb +0 -9
- data/app/views/lesli_calendar/event/attendants/show.html.erb +0 -10
- data/app/views/lesli_calendar/events/index.html.erb +0 -1
- data/db/seed/events.rb +0 -74
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@layer theme, components, utilities;
|
|
4
4
|
@layer theme {
|
|
5
5
|
:root, :host {
|
|
6
|
+
--color-red-700: oklch(50.5% 0.213 27.518);
|
|
6
7
|
--color-slate-50: oklch(98.4% 0.003 247.858);
|
|
7
8
|
--color-slate-200: oklch(92.9% 0.013 255.508);
|
|
8
9
|
--color-slate-400: oklch(70.4% 0.04 256.788);
|
|
@@ -19,16 +20,11 @@
|
|
|
19
20
|
--text-lg--line-height: calc(1.75 / 1.125);
|
|
20
21
|
--text-xl: 1.25rem;
|
|
21
22
|
--text-xl--line-height: calc(1.75 / 1.25);
|
|
22
|
-
--font-weight-normal: 400;
|
|
23
23
|
--font-weight-medium: 500;
|
|
24
24
|
--font-weight-semibold: 600;
|
|
25
|
-
--font-weight-extrabold: 800;
|
|
26
25
|
--tracking-wide: 0.025em;
|
|
27
|
-
--radius-sm: 0.25rem;
|
|
28
|
-
--radius-lg: 0.5rem;
|
|
29
26
|
--radius-xl: 0.75rem;
|
|
30
|
-
--
|
|
31
|
-
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
27
|
+
--radius-2xl: 1rem;
|
|
32
28
|
}
|
|
33
29
|
}
|
|
34
30
|
@layer utilities {
|
|
@@ -38,14 +34,23 @@
|
|
|
38
34
|
.mt-4 {
|
|
39
35
|
margin-top: calc(var(--spacing) * 4);
|
|
40
36
|
}
|
|
37
|
+
.mb-4 {
|
|
38
|
+
margin-bottom: calc(var(--spacing) * 4);
|
|
39
|
+
}
|
|
40
|
+
.mb-5 {
|
|
41
|
+
margin-bottom: calc(var(--spacing) * 5);
|
|
42
|
+
}
|
|
43
|
+
.block {
|
|
44
|
+
display: block;
|
|
45
|
+
}
|
|
41
46
|
.flex {
|
|
42
47
|
display: flex;
|
|
43
48
|
}
|
|
44
|
-
.
|
|
45
|
-
display:
|
|
49
|
+
.grid {
|
|
50
|
+
display: grid;
|
|
46
51
|
}
|
|
47
|
-
.
|
|
48
|
-
|
|
52
|
+
.h-full {
|
|
53
|
+
height: 100%;
|
|
49
54
|
}
|
|
50
55
|
.w-20 {
|
|
51
56
|
width: calc(var(--spacing) * 20);
|
|
@@ -68,14 +73,33 @@
|
|
|
68
73
|
.items-center {
|
|
69
74
|
align-items: center;
|
|
70
75
|
}
|
|
76
|
+
.items-end {
|
|
77
|
+
align-items: flex-end;
|
|
78
|
+
}
|
|
71
79
|
.items-stretch {
|
|
72
80
|
align-items: stretch;
|
|
73
81
|
}
|
|
74
82
|
.justify-center {
|
|
75
83
|
justify-content: center;
|
|
76
84
|
}
|
|
77
|
-
.gap-
|
|
78
|
-
gap: calc(var(--spacing) *
|
|
85
|
+
.gap-3 {
|
|
86
|
+
gap: calc(var(--spacing) * 3);
|
|
87
|
+
}
|
|
88
|
+
.gap-4 {
|
|
89
|
+
gap: calc(var(--spacing) * 4);
|
|
90
|
+
}
|
|
91
|
+
.gap-6 {
|
|
92
|
+
gap: calc(var(--spacing) * 6);
|
|
93
|
+
}
|
|
94
|
+
:where(.space-y-3 > :not(:last-child)) {
|
|
95
|
+
--tw-space-y-reverse: 0;
|
|
96
|
+
margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
|
|
97
|
+
margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
|
|
98
|
+
}
|
|
99
|
+
:where(.space-y-5 > :not(:last-child)) {
|
|
100
|
+
--tw-space-y-reverse: 0;
|
|
101
|
+
margin-block-start: calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));
|
|
102
|
+
margin-block-end: calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)));
|
|
79
103
|
}
|
|
80
104
|
:where(.divide-y > :not(:last-child)) {
|
|
81
105
|
--tw-divide-y-reverse: 0;
|
|
@@ -90,8 +114,8 @@
|
|
|
90
114
|
.overflow-hidden {
|
|
91
115
|
overflow: hidden;
|
|
92
116
|
}
|
|
93
|
-
.rounded-
|
|
94
|
-
border-radius: var(--radius-
|
|
117
|
+
.rounded-2xl {
|
|
118
|
+
border-radius: var(--radius-2xl);
|
|
95
119
|
}
|
|
96
120
|
.rounded-xl {
|
|
97
121
|
border-radius: var(--radius-xl);
|
|
@@ -112,9 +136,6 @@
|
|
|
112
136
|
border-left-style: var(--tw-border-style);
|
|
113
137
|
border-left-width: 4px;
|
|
114
138
|
}
|
|
115
|
-
.border-info-600 {
|
|
116
|
-
border-color: var(--lesli-color-info-600);
|
|
117
|
-
}
|
|
118
139
|
.border-slate-200 {
|
|
119
140
|
border-color: var(--color-slate-200);
|
|
120
141
|
}
|
|
@@ -127,6 +148,12 @@
|
|
|
127
148
|
.p-0 {
|
|
128
149
|
padding: 0px;
|
|
129
150
|
}
|
|
151
|
+
.p-4 {
|
|
152
|
+
padding: calc(var(--spacing) * 4);
|
|
153
|
+
}
|
|
154
|
+
.p-5 {
|
|
155
|
+
padding: calc(var(--spacing) * 5);
|
|
156
|
+
}
|
|
130
157
|
.px-3 {
|
|
131
158
|
padding-inline: calc(var(--spacing) * 3);
|
|
132
159
|
}
|
|
@@ -139,6 +166,9 @@
|
|
|
139
166
|
.py-2 {
|
|
140
167
|
padding-block: calc(var(--spacing) * 2);
|
|
141
168
|
}
|
|
169
|
+
.py-3 {
|
|
170
|
+
padding-block: calc(var(--spacing) * 3);
|
|
171
|
+
}
|
|
142
172
|
.py-4 {
|
|
143
173
|
padding-block: calc(var(--spacing) * 4);
|
|
144
174
|
}
|
|
@@ -168,10 +198,6 @@
|
|
|
168
198
|
--tw-leading: calc(var(--spacing) * 5);
|
|
169
199
|
line-height: calc(var(--spacing) * 5);
|
|
170
200
|
}
|
|
171
|
-
.leading-none {
|
|
172
|
-
--tw-leading: 1;
|
|
173
|
-
line-height: 1;
|
|
174
|
-
}
|
|
175
201
|
.font-medium {
|
|
176
202
|
--tw-font-weight: var(--font-weight-medium);
|
|
177
203
|
font-weight: var(--font-weight-medium);
|
|
@@ -184,8 +210,14 @@
|
|
|
184
210
|
--tw-tracking: var(--tracking-wide);
|
|
185
211
|
letter-spacing: var(--tracking-wide);
|
|
186
212
|
}
|
|
187
|
-
.
|
|
188
|
-
|
|
213
|
+
.break-words {
|
|
214
|
+
overflow-wrap: break-word;
|
|
215
|
+
}
|
|
216
|
+
.whitespace-pre-wrap {
|
|
217
|
+
white-space: pre-wrap;
|
|
218
|
+
}
|
|
219
|
+
.text-red-700 {
|
|
220
|
+
color: var(--color-red-700);
|
|
189
221
|
}
|
|
190
222
|
.text-slate-500 {
|
|
191
223
|
color: var(--color-slate-500);
|
|
@@ -203,110 +235,41 @@
|
|
|
203
235
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
204
236
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
205
237
|
}
|
|
206
|
-
.
|
|
207
|
-
|
|
208
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
209
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
238
|
+
.filter {
|
|
239
|
+
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
210
240
|
}
|
|
211
241
|
@media (hover: hover) {
|
|
212
|
-
.hover\:
|
|
213
|
-
|
|
242
|
+
.hover\:underline:hover {
|
|
243
|
+
text-decoration-line: underline;
|
|
214
244
|
}
|
|
215
245
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
.focus-visible\:ring-info-500\/40:focus-visible {
|
|
221
|
-
--tw-ring-color: var(--lesli-color-info-500);
|
|
222
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
223
|
-
--tw-ring-color: color-mix(in oklab, var(--lesli-color-info-500) 40%, transparent);
|
|
246
|
+
@media (width >= 40rem) {
|
|
247
|
+
.sm\:grid-cols-2 {
|
|
248
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
224
249
|
}
|
|
225
250
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
251
|
+
@media (width >= 64rem) {
|
|
252
|
+
.lg\:sticky {
|
|
253
|
+
position: sticky;
|
|
254
|
+
}
|
|
255
|
+
.lg\:top-4 {
|
|
256
|
+
top: calc(var(--spacing) * 4);
|
|
257
|
+
}
|
|
258
|
+
.lg\:w-60 {
|
|
259
|
+
width: calc(var(--spacing) * 60);
|
|
260
|
+
}
|
|
261
|
+
.lg\:shrink-0 {
|
|
262
|
+
flex-shrink: 0;
|
|
263
|
+
}
|
|
264
|
+
.lg\:flex-row {
|
|
265
|
+
flex-direction: row;
|
|
266
|
+
}
|
|
267
|
+
.lg\:items-start {
|
|
268
|
+
align-items: flex-start;
|
|
269
|
+
}
|
|
229
270
|
}
|
|
230
271
|
}
|
|
231
272
|
@layer components {
|
|
232
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-scrollgrid {
|
|
233
|
-
border: 0 !important;
|
|
234
|
-
}
|
|
235
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-scrollgrid th[role="presentation"] {
|
|
236
|
-
border-style: var(--tw-border-style);
|
|
237
|
-
border-width: 0px;
|
|
238
|
-
border-bottom-style: var(--tw-border-style);
|
|
239
|
-
border-bottom-width: 6px;
|
|
240
|
-
border-bottom-color: var(--lesli-color-background);
|
|
241
|
-
}
|
|
242
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-col-header-cell {
|
|
243
|
-
border-inline-style: var(--tw-border-style);
|
|
244
|
-
border-inline-width: 0px;
|
|
245
|
-
padding-block: calc(var(--spacing) * 3);
|
|
246
|
-
text-align: center;
|
|
247
|
-
}
|
|
248
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-col-header-cell a {
|
|
249
|
-
--tw-font-weight: var(--font-weight-semibold);
|
|
250
|
-
font-weight: var(--font-weight-semibold);
|
|
251
|
-
color: var(--color-slate-800);
|
|
252
|
-
}
|
|
253
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-day {
|
|
254
|
-
border-style: var(--tw-border-style);
|
|
255
|
-
border-width: 6px;
|
|
256
|
-
border-color: var(--lesli-color-background);
|
|
257
|
-
}
|
|
258
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-daygrid-day-number {
|
|
259
|
-
padding-inline: calc(var(--spacing) * 2.5);
|
|
260
|
-
padding-block: 5px;
|
|
261
|
-
}
|
|
262
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-day-today .fc-daygrid-day-number {
|
|
263
|
-
--tw-font-weight: var(--font-weight-extrabold);
|
|
264
|
-
font-weight: var(--font-weight-extrabold);
|
|
265
|
-
color: var(--lesli-color-primary);
|
|
266
|
-
}
|
|
267
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-daygrid-event {
|
|
268
|
-
margin-bottom: calc(var(--spacing) * 0.5);
|
|
269
|
-
margin-left: calc(var(--spacing) * 2);
|
|
270
|
-
display: block;
|
|
271
|
-
overflow: hidden;
|
|
272
|
-
border-radius: var(--radius-sm);
|
|
273
|
-
border-style: var(--tw-border-style);
|
|
274
|
-
border-width: 0px;
|
|
275
|
-
border-left-style: var(--tw-border-style);
|
|
276
|
-
border-left-width: 5px;
|
|
277
|
-
padding-block: calc(var(--spacing) * 1.5);
|
|
278
|
-
padding-right: calc(var(--spacing) * 1.5);
|
|
279
|
-
padding-left: calc(var(--spacing) * 3);
|
|
280
|
-
}
|
|
281
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-event-time, body.lesli-calendar.calendars #lesli-calendar-engine .fc-daygrid-event-dot {
|
|
282
|
-
display: none !important;
|
|
283
|
-
}
|
|
284
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-daygrid-event.lesli-calendar {
|
|
285
|
-
border-left-color: #3689e6;
|
|
286
|
-
background-color: #bed8f7;
|
|
287
|
-
}
|
|
288
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-daygrid-event.lesli-calendar .fc-event-title {
|
|
289
|
-
padding-left: var(--spacing);
|
|
290
|
-
font-family: 'OpenSans';
|
|
291
|
-
--tw-font-weight: var(--font-weight-normal);
|
|
292
|
-
font-weight: var(--font-weight-normal);
|
|
293
|
-
color: #0e3f75;
|
|
294
|
-
text-transform: capitalize;
|
|
295
|
-
}
|
|
296
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-daygrid-event.lesli-support {
|
|
297
|
-
border-left-color: #a56de2;
|
|
298
|
-
background-color: #f4edfb;
|
|
299
|
-
}
|
|
300
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-daygrid-event.lesli-support .fc-event-title {
|
|
301
|
-
color: #581e98;
|
|
302
|
-
}
|
|
303
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-daygrid-event.lesli-tasks {
|
|
304
|
-
border-left-color: #28bca3;
|
|
305
|
-
background-color: #95e8da;
|
|
306
|
-
}
|
|
307
|
-
body.lesli-calendar.calendars #lesli-calendar-engine .fc-daygrid-event.lesli-tasks .fc-event-title {
|
|
308
|
-
color: #0d3e36;
|
|
309
|
-
}
|
|
310
273
|
.lesli-calendar-agenda .agenda-event {
|
|
311
274
|
border-left-color: var(--color-slate-400);
|
|
312
275
|
}
|
|
@@ -320,6 +283,11 @@
|
|
|
320
283
|
border-left-color: #28bca3;
|
|
321
284
|
}
|
|
322
285
|
}
|
|
286
|
+
@property --tw-space-y-reverse {
|
|
287
|
+
syntax: "*";
|
|
288
|
+
inherits: false;
|
|
289
|
+
initial-value: 0;
|
|
290
|
+
}
|
|
323
291
|
@property --tw-divide-y-reverse {
|
|
324
292
|
syntax: "*";
|
|
325
293
|
inherits: false;
|
|
@@ -407,9 +375,63 @@
|
|
|
407
375
|
inherits: false;
|
|
408
376
|
initial-value: 0 0 #0000;
|
|
409
377
|
}
|
|
378
|
+
@property --tw-blur {
|
|
379
|
+
syntax: "*";
|
|
380
|
+
inherits: false;
|
|
381
|
+
}
|
|
382
|
+
@property --tw-brightness {
|
|
383
|
+
syntax: "*";
|
|
384
|
+
inherits: false;
|
|
385
|
+
}
|
|
386
|
+
@property --tw-contrast {
|
|
387
|
+
syntax: "*";
|
|
388
|
+
inherits: false;
|
|
389
|
+
}
|
|
390
|
+
@property --tw-grayscale {
|
|
391
|
+
syntax: "*";
|
|
392
|
+
inherits: false;
|
|
393
|
+
}
|
|
394
|
+
@property --tw-hue-rotate {
|
|
395
|
+
syntax: "*";
|
|
396
|
+
inherits: false;
|
|
397
|
+
}
|
|
398
|
+
@property --tw-invert {
|
|
399
|
+
syntax: "*";
|
|
400
|
+
inherits: false;
|
|
401
|
+
}
|
|
402
|
+
@property --tw-opacity {
|
|
403
|
+
syntax: "*";
|
|
404
|
+
inherits: false;
|
|
405
|
+
}
|
|
406
|
+
@property --tw-saturate {
|
|
407
|
+
syntax: "*";
|
|
408
|
+
inherits: false;
|
|
409
|
+
}
|
|
410
|
+
@property --tw-sepia {
|
|
411
|
+
syntax: "*";
|
|
412
|
+
inherits: false;
|
|
413
|
+
}
|
|
414
|
+
@property --tw-drop-shadow {
|
|
415
|
+
syntax: "*";
|
|
416
|
+
inherits: false;
|
|
417
|
+
}
|
|
418
|
+
@property --tw-drop-shadow-color {
|
|
419
|
+
syntax: "*";
|
|
420
|
+
inherits: false;
|
|
421
|
+
}
|
|
422
|
+
@property --tw-drop-shadow-alpha {
|
|
423
|
+
syntax: "<percentage>";
|
|
424
|
+
inherits: false;
|
|
425
|
+
initial-value: 100%;
|
|
426
|
+
}
|
|
427
|
+
@property --tw-drop-shadow-size {
|
|
428
|
+
syntax: "*";
|
|
429
|
+
inherits: false;
|
|
430
|
+
}
|
|
410
431
|
@layer properties {
|
|
411
432
|
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
412
433
|
*, ::before, ::after, ::backdrop {
|
|
434
|
+
--tw-space-y-reverse: 0;
|
|
413
435
|
--tw-divide-y-reverse: 0;
|
|
414
436
|
--tw-border-style: solid;
|
|
415
437
|
--tw-leading: initial;
|
|
@@ -429,6 +451,19 @@
|
|
|
429
451
|
--tw-ring-offset-width: 0px;
|
|
430
452
|
--tw-ring-offset-color: #fff;
|
|
431
453
|
--tw-ring-offset-shadow: 0 0 #0000;
|
|
454
|
+
--tw-blur: initial;
|
|
455
|
+
--tw-brightness: initial;
|
|
456
|
+
--tw-contrast: initial;
|
|
457
|
+
--tw-grayscale: initial;
|
|
458
|
+
--tw-hue-rotate: initial;
|
|
459
|
+
--tw-invert: initial;
|
|
460
|
+
--tw-opacity: initial;
|
|
461
|
+
--tw-saturate: initial;
|
|
462
|
+
--tw-sepia: initial;
|
|
463
|
+
--tw-drop-shadow: initial;
|
|
464
|
+
--tw-drop-shadow-color: initial;
|
|
465
|
+
--tw-drop-shadow-alpha: 100%;
|
|
466
|
+
--tw-drop-shadow-size: initial;
|
|
432
467
|
}
|
|
433
468
|
}
|
|
434
469
|
}
|
|
@@ -1,61 +1,16 @@
|
|
|
1
1
|
module LesliCalendar
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
# GET /agendas/new
|
|
16
|
-
def new
|
|
17
|
-
@agenda = Agenda.new
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
# GET /agendas/1/edit
|
|
21
|
-
def edit
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
# POST /agendas
|
|
25
|
-
def create
|
|
26
|
-
@agenda = Agenda.new(agenda_params)
|
|
27
|
-
|
|
28
|
-
if @agenda.save
|
|
29
|
-
redirect_to @agenda, notice: "Agenda was successfully created."
|
|
30
|
-
else
|
|
31
|
-
render :new, status: :unprocessable_entity
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# PATCH/PUT /agendas/1
|
|
36
|
-
def update
|
|
37
|
-
if @agenda.update(agenda_params)
|
|
38
|
-
redirect_to @agenda, notice: "Agenda was successfully updated.", status: :see_other
|
|
39
|
-
else
|
|
40
|
-
render :edit, status: :unprocessable_entity
|
|
41
|
-
end
|
|
2
|
+
class AgendasController < ApplicationController
|
|
3
|
+
def show
|
|
4
|
+
request.format = :html if request.format.turbo_stream?
|
|
5
|
+
@agenda_view = params[:view].presence || "upcoming"
|
|
6
|
+
return head :bad_request unless %w[upcoming mine pending available].include?(@agenda_view)
|
|
7
|
+
|
|
8
|
+
@agenda = EventService.new(current_user).agenda(
|
|
9
|
+
view: @agenda_view, from: params[:from], to: params[:to]
|
|
10
|
+
)
|
|
11
|
+
respond_with_lesli(json: @agenda)
|
|
12
|
+
rescue Date::Error
|
|
13
|
+
head :bad_request
|
|
14
|
+
end
|
|
42
15
|
end
|
|
43
|
-
|
|
44
|
-
# DELETE /agendas/1
|
|
45
|
-
def destroy
|
|
46
|
-
@agenda.destroy
|
|
47
|
-
redirect_to agendas_url, notice: "Agenda was successfully destroyed.", status: :see_other
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
private
|
|
51
|
-
# Use callbacks to share common setup or constraints between actions.
|
|
52
|
-
def set_agenda
|
|
53
|
-
#@agenda = Agenda.find(params[:id])
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
# Only allow a list of trusted parameters through.
|
|
57
|
-
def agenda_params
|
|
58
|
-
params.fetch(:agenda, {})
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
16
|
end
|
|
@@ -1,73 +1,9 @@
|
|
|
1
1
|
module LesliCalendar
|
|
2
2
|
class CalendarsController < ApplicationController
|
|
3
|
-
before_action :set_calendar, only: [:show, :edit, :update]
|
|
4
|
-
|
|
5
|
-
# GET /calendars
|
|
6
|
-
def index
|
|
7
|
-
respond_to do |format|
|
|
8
|
-
format.html { }
|
|
9
|
-
format.json do
|
|
10
|
-
respond_with_pagination(LesliCalendar::CalendarService.new(current_user).index(@query))
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# GET /calendars/1
|
|
16
3
|
def show
|
|
17
|
-
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
# respond_to do |format|
|
|
21
|
-
# format.html { }
|
|
22
|
-
# format.json { respond_with_successful(@calendar.show()) }
|
|
23
|
-
# end
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
# GET /calendars/new
|
|
27
|
-
def new
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# GET /calendars/1/edit
|
|
31
|
-
def edit
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# POST /calendars
|
|
35
|
-
def create
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
# PATCH/PUT /calendars/1
|
|
39
|
-
def update
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# DELETE /calendars/1
|
|
43
|
-
def destroy
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
def options
|
|
47
|
-
respond_with_successful(Calendar.options(current_user, @query))
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
def sync
|
|
51
|
-
respond_with_successful(Calendar.sync(current_user))
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
private
|
|
55
|
-
|
|
56
|
-
# Sets the requested user based on the current_users's account
|
|
57
|
-
def set_calendar
|
|
58
|
-
|
|
59
|
-
if params[:id].blank? || params[:id] == "default"
|
|
60
|
-
@calendar = CalendarService.new(current_user,query).find_default
|
|
61
|
-
elsif params[:id]
|
|
62
|
-
@calendar = CalendarService.new(current_user).find(params[:id])
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
return respond_with_not_found unless @calendar
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
# Only allow a trusted parameter "white list" through.
|
|
69
|
-
def calendar_params
|
|
70
|
-
params.require(:calendar)
|
|
4
|
+
request.format = :html if request.format.turbo_stream?
|
|
5
|
+
@calendar = CalendarService.new(current_user).find_default.result
|
|
6
|
+
respond_with_lesli(json: @calendar.as_json)
|
|
71
7
|
end
|
|
72
8
|
end
|
|
73
9
|
end
|
|
@@ -1,60 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
class DashboardsController < ApplicationController
|
|
3
|
-
#before_action :set_dashboard, only: %i[ show edit update destroy ]
|
|
1
|
+
=begin
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
def index
|
|
7
|
-
@dashboards = Dashboard.all
|
|
8
|
-
end
|
|
3
|
+
Lesli
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
def show
|
|
12
|
-
end
|
|
5
|
+
Copyright (c) 2023, Lesli Technologies, S. A.
|
|
13
6
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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.
|
|
18
11
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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.
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@dashboard = Dashboard.new(dashboard_params)
|
|
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/.
|
|
26
19
|
|
|
27
|
-
|
|
28
|
-
redirect_to @dashboard, notice: "Dashboard was successfully created."
|
|
29
|
-
else
|
|
30
|
-
render :new, status: :unprocessable_entity
|
|
31
|
-
end
|
|
32
|
-
end
|
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
|
33
21
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if @dashboard.update(dashboard_params)
|
|
37
|
-
redirect_to @dashboard, notice: "Dashboard was successfully updated.", status: :see_other
|
|
38
|
-
else
|
|
39
|
-
render :edit, status: :unprocessable_entity
|
|
40
|
-
end
|
|
41
|
-
end
|
|
22
|
+
Made with ♥ by https://www.lesli.tech
|
|
23
|
+
Building a better future, one line of code at a time.
|
|
42
24
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
|
48
32
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
@dashboard = Dashboard.find(params[:id])
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# Only allow a list of trusted parameters through.
|
|
56
|
-
def dashboard_params
|
|
57
|
-
params.fetch(:dashboard, {})
|
|
58
|
-
end
|
|
59
|
-
end
|
|
33
|
+
module LesliCalendar
|
|
34
|
+
class DashboardsController < Lesli::Shared::DashboardsController
|
|
35
|
+
end
|
|
60
36
|
end
|