This work was done with Claude. Added bundling of CSS & JS with WebPack. This also means minimization. --------- Co-authored-by: Martin Slachta <martin.slachta@outlook.com> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { get_rest_url } from '../../assets/js/RsvApi.js';
|
||||
|
||||
async function fetch_reservations_to_confirm(object_id) {
|
||||
const url = `/wordpress/wp-json/reservations/v1/object/${object_id}/timetable/reservation/unconfirmed`;
|
||||
return await fetch(url, {
|
||||
@@ -100,7 +102,7 @@ function create_notice(id, type, mesg) {
|
||||
return container;
|
||||
}
|
||||
|
||||
function show_notice(target, type, mesg) {
|
||||
export function show_notice(target, type, mesg) {
|
||||
target.querySelectorAll('.notice').forEach(x => x.remove());
|
||||
const notice = create_notice('test', type, mesg);
|
||||
target.prepend(notice);
|
||||
|
||||
Reference in New Issue
Block a user