From 04fc009874db2d539ad881b649f7ebb512f05312 Mon Sep 17 00:00:00 2001 From: floppydiskette Date: Thu, 8 Aug 2024 22:22:38 +0100 Subject: Init rails app --- resources/js/app.js | 1 - resources/js/bootstrap.js | 32 --------------------- resources/js/neverSaid.js | 35 ----------------------- resources/js/schemeSwap.js | 70 ---------------------------------------------- 4 files changed, 138 deletions(-) delete mode 100644 resources/js/app.js delete mode 100644 resources/js/bootstrap.js delete mode 100644 resources/js/neverSaid.js delete mode 100644 resources/js/schemeSwap.js (limited to 'resources/js') diff --git a/resources/js/app.js b/resources/js/app.js deleted file mode 100644 index e59d6a0..0000000 --- a/resources/js/app.js +++ /dev/null @@ -1 +0,0 @@ -import './bootstrap'; diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js deleted file mode 100644 index 846d350..0000000 --- a/resources/js/bootstrap.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * We'll load the axios HTTP library which allows us to easily issue requests - * to our Laravel back-end. This library automatically handles sending the - * CSRF token as a header based on the value of the "XSRF" token cookie. - */ - -import axios from 'axios'; -window.axios = axios; - -window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; - -/** - * Echo exposes an expressive API for subscribing to channels and listening - * for events that are broadcast by Laravel. Echo and event broadcasting - * allows your team to easily build robust real-time web applications. - */ - -// import Echo from 'laravel-echo'; - -// import Pusher from 'pusher-js'; -// window.Pusher = Pusher; - -// window.Echo = new Echo({ -// broadcaster: 'pusher', -// key: import.meta.env.VITE_PUSHER_APP_KEY, -// cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1', -// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, -// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, -// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, -// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', -// enabledTransports: ['ws', 'wss'], -// }); diff --git a/resources/js/neverSaid.js b/resources/js/neverSaid.js deleted file mode 100644 index 5b58d60..0000000 --- a/resources/js/neverSaid.js +++ /dev/null @@ -1,35 +0,0 @@ -// Define an array of strings -const neverSaid = [ - "ASM: The Director liked all the props we got today.", - "PM: Ah ha, a revolve. Terrific.", - "Chippie: I don't know, let's look at the ground plan.", - "Set Designer: Well, let's just have whatever is cheaper.", - "Sound: Better turn that down a bit. We don't want to deafen them.", - "Director: Sorry, my mistake.", - "Electrics: This equipment is more complicated than we need.", - "Performer: I really think my big scene should be cut.", - "SM: Can we doo that scene change again please?", - "LX designer: Bit more light from those big chaps at the side. Yes that's right, the ones on stalks whatever they are called.", - "Electrics: All the equipment works perfectly.", - "Musicians: So what if that's the end of a call. Let's just finish this bit off.", - "Wardrobe: Now, when exactly is the first dress rehearsal?", - "Workshop: I don't want anyone to know, but if you insist then yes, I admit it, I have just done an all-nighter.", - "Performer: This costume is so comfortable.", - "Admin: The level of overtime payments here are simply unacceptable. Our backstage staff deserve better.", - "Box Office: Comps? No problem.", - "Set Designer: You're right, it looks dreadful.", - "Flyman: No, my lips are sealed. What I may or may not have seen remains a secret.", - "Electrics: That had nothing to do with the computer, it was my fault.", - "Crew: No, no, I'm sure that's our job.", - "SMgt: Thanks, but I don't drink", - "Performer: Let me stand down here with my back to the audience.", - "Chippie: I can't really manage those big fast power tools myself.", - "Chippie: I prefer to use these little hand drills.", - "All: Let's go and ask the Production Manager. He'll know." -] - -// Generate a random index into the array -const randomIndex = Math.floor(Math.random() * neverSaid.length); - -// Use document.write to output the random string -document.write(neverSaid[randomIndex]); diff --git a/resources/js/schemeSwap.js b/resources/js/schemeSwap.js deleted file mode 100644 index 3baa09b..0000000 --- a/resources/js/schemeSwap.js +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Retrieves a cookies value - * @param {string} cname Cookie name - * @returns {string} Cookie value - */ -function getCookie(cname) { - let name = cname + "="; - let decodedCookie = decodeURIComponent(document.cookie); - let ca = decodedCookie.split(';'); - for(let i = 0; i