Skip to content

Commit 2bb02b2

Browse files
committed
Revert "Start on an Alpine event editor"
This reverts commit d248724.
1 parent 0f087dd commit 2bb02b2

File tree

6 files changed

+43
-126
lines changed

6 files changed

+43
-126
lines changed

resources/js/app.js

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ window.tailwindColors = tailwindColors;
125125
// This is *only* here to stop sanitize-html from barfing a bunch of "Module x has been externalized for browser compatibility"
126126
// to the JS console _during the massive refactor we're doing to vite_.
127127
//
128-
// TODO: Either put back sanitize-html before merging in this rework or find a better alternative.
128+
// Either put back sanitize-html before merging in this rework or find a better alternative.
129129
window.sanitizeHtml = function(value) {
130130
return value;
131131
}
@@ -199,40 +199,6 @@ Alpine.plugin(persist);
199199
import Calendar from "./calendar.js";
200200
Alpine.store("calendar", new Calendar());
201201

202-
Alpine.store("calendar_events", () => {
203-
return {
204-
// TODO: Init that stores these here
205-
get count() {
206-
return this.categories.length();
207-
},
208-
209-
get events() {
210-
return window.events;
211-
},
212-
213-
get(id) {
214-
return window.events.find(event => event.id === id) ?? {};
215-
},
216-
};
217-
});
218-
219-
Alpine.store("event_categories", () => {
220-
return {
221-
// TODO: Init that stores these here
222-
get count() {
223-
return this.categories.length();
224-
},
225-
226-
get categories() {
227-
return window.categories;
228-
},
229-
230-
get(id) {
231-
return window.event_categories.find(category => category.id === id) ?? {};
232-
}
233-
};
234-
});
235-
236202
import CalendarPresets from './calendar-presets.js';
237203
import CalendarRenderer from './calendar-renderer.js';
238204
import CalendarHTMLEditor from './calendar-html-editor.js';
@@ -338,10 +304,8 @@ import UserManagementCollapsible from './calendar/user_management_collapsible.js
338304
Alpine.data('user_management_collapsible', UserManagementCollapsible);
339305

340306
import CalendarLinkingCollapsible from './calendar/calendar_linking_collapsible.js';
307+
import Save_button from "./calendar/save_button.js";
341308
Alpine.data('calendar_linking_collapsible', CalendarLinkingCollapsible);
342309

343-
import EventEditor from './calendar/event_editor.js';
344-
Alpine.data('event_editor', EventEditor);
345-
346310
Alpine.start();
347311

resources/js/calendar/event_editor.js

Lines changed: 0 additions & 53 deletions
This file was deleted.

resources/sass/calendar/inputs.scss

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,33 +1481,33 @@ ol.example li.placeholder:before {
14811481
background-color: #fafafa;
14821482
}
14831483

1484-
// .flexible_background {
1485-
// width: 100%;
1486-
// height: 100%;
1487-
// background-color: rgba(0, 0, 0, 0.5);
1488-
// z-index: 11;
1489-
// position: fixed;
1490-
// align-items: center;
1491-
// text-align: center;
1492-
// overflow: hidden;
1493-
// display: flex;
1494-
// justify-content: center;
1495-
1496-
// &.transparent {
1497-
// background-color: rgba(0, 0, 0, 0);
1498-
// }
1499-
1500-
// .error {
1501-
// background-color: #d3352a;
1502-
// width: 100%;
1503-
1504-
// ol {
1505-
// list-style-type: none;
1506-
// padding-inline-start: 0;
1507-
// margin: 20px 0;
1508-
// }
1509-
// }
1510-
// }
1484+
.flexible_background {
1485+
width: 100%;
1486+
height: 100%;
1487+
background-color: rgba(0, 0, 0, 0.5);
1488+
z-index: 11;
1489+
position: fixed;
1490+
align-items: center;
1491+
text-align: center;
1492+
overflow: hidden;
1493+
display: flex;
1494+
justify-content: center;
1495+
1496+
&.transparent {
1497+
background-color: rgba(0, 0, 0, 0);
1498+
}
1499+
1500+
.error {
1501+
background-color: #d3352a;
1502+
width: 100%;
1503+
1504+
ol {
1505+
list-style-type: none;
1506+
padding-inline-start: 0;
1507+
margin: 20px 0;
1508+
}
1509+
}
1510+
}
15111511

15121512
.blurred_background {
15131513
backdrop-filter: blur(3px);

resources/views/calendar/edit.blade.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,5 @@ function getCalendarStructure() {
4343
@include('layouts.moon_tooltip')
4444
@include('layouts.event')
4545
@include('inputs.sidebar.edit')
46-
<x-event-editor></x-event-editor>
4746
</div>
4847
@endsection

resources/views/components/event-editor.blade.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

tailwind.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ module.exports = {
1010
"./app/View/Components/**/*.php",
1111
'./vendor/filament/**/*.blade.php',
1212
],
13+
safelist: [
14+
// {
15+
// pattern: /bg-(.*)-(50|100|200|300|400|500|600|700|800|900)/,
16+
// variants: ['hover', 'dark', 'dark:hover'],
17+
// },
18+
// {
19+
// pattern: /text-(.*)-(50|100|200|300|400|500|600|700|800|900)/,
20+
// variants: ['hover', 'dark', 'dark:hover'],
21+
// },
22+
// {
23+
// pattern: /border-(.*)-(50|100|200|300|400|500|600|700|800|900)/,
24+
// variants: ['hover', 'dark', 'dark:hover'],
25+
// },
26+
],
1327
theme: {
1428
extend: {
1529
colors: {

0 commit comments

Comments
 (0)