diff --git a/public/config.js b/public/config.js deleted file mode 100644 index 50bab584..00000000 --- a/public/config.js +++ /dev/null @@ -1,22 +0,0 @@ -window.__CONFIG__ = { - // The URL for the CORS proxy, the URL must NOT end with a slash! - VITE_CORS_PROXY_URL: ["https://sudo-proxy0.netlify.app", "https://sudo-worker-4.cooperransom08.workers.dev", "https://sudo-proxy2.up.railway.app", "https://sudo-proxy3.up.railway.app", "https://sudo-proxy4.netlify.app", "https://sudo-worker-1.cooperransom08.workers.dev", "https://sudo-worker-2.cooperransom08.workers.dev", "https://sudo-worker-3.cooperransom08.workers.dev", "https://sudo-proxy9.netlify.app", "https://sudo-proxy1.up.railway.app"], - - // The READ API key to access TMDB - VITE_TMDB_READ_API_KEY: "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhZTljNGE2ZDE1ZDFiODZiNzdlMWQyYmI5ZGY0MzdmYyIsInN1YiI6IjY1YjNmMWI0NTk0Yzk0MDE2MzNkZDBjNSIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.kAX7TkbKuJkNty6IsjcCLnoENFicVZn6d6DkLQsy3p8", - - // The DMCA email displayed in the footer, null to hide the DMCA link - VITE_DMCA_EMAIL: "sudo-flix@proton.me", - - // Whether to disable hash-based routing, leave this as false if you don't know what this is - VITE_NORMAL_ROUTER: true, - - // The backend URL to communicate with, defaults to the movie-web hosted one at backend.movie-web.app - VITE_BACKEND_URL: "https://sudo-flix-backend.lol", // "https://mw-backend.lonelil.com", - - // Maybe do this at a later date - //VITE_TURNSTILE_KEY: "3x00000000000000000000FF", // https://movie-web.github.io/docs/proxy/configuration - - // A comma separated list of disallowed IDs in the case of a DMCA claim - in the format "series-" and "movie-" - VITE_DISALLOWED_IDS: "", -}; diff --git a/public/lightbar-images/beer-bottle.png b/public/lightbar-images/beer-bottle.png new file mode 100644 index 00000000..99e30acc Binary files /dev/null and b/public/lightbar-images/beer-bottle.png differ diff --git a/public/lightbar-images/beer.png b/public/lightbar-images/beer.png new file mode 100644 index 00000000..265a7f3b Binary files /dev/null and b/public/lightbar-images/beer.png differ diff --git a/public/lightbar-images/cigarette.png b/public/lightbar-images/cigarette.png new file mode 100644 index 00000000..cf68b377 Binary files /dev/null and b/public/lightbar-images/cigarette.png differ diff --git a/public/lightbar-images/cigarette2.png b/public/lightbar-images/cigarette2.png new file mode 100644 index 00000000..79856981 Binary files /dev/null and b/public/lightbar-images/cigarette2.png differ diff --git a/public/lightbar-images/wine.png b/public/lightbar-images/wine.png new file mode 100644 index 00000000..921f8ed4 Binary files /dev/null and b/public/lightbar-images/wine.png differ diff --git a/src/components/player/atoms/NextEpisodeButton.tsx b/src/components/player/atoms/NextEpisodeButton.tsx index e90cb9dc..3d760900 100644 --- a/src/components/player/atoms/NextEpisodeButton.tsx +++ b/src/components/player/atoms/NextEpisodeButton.tsx @@ -83,7 +83,6 @@ export function NextEpisodeButton(props: { const startCurrentEpisodeFromBeginning = useCallback(() => { if (!meta || !meta.episode) return; const metaCopy = { ...meta }; - // No need to change the episode, as we're restarting the current one setShouldStartFromBeginning(true); setDirectMeta(metaCopy); props.onChange?.(metaCopy); diff --git a/src/components/utils/Lightbar.tsx b/src/components/utils/Lightbar.tsx index 34768827..c681314d 100644 --- a/src/components/utils/Lightbar.tsx +++ b/src/components/utils/Lightbar.tsx @@ -319,6 +319,34 @@ function ParticlesCanvas() { imageParticleCount = particleCount / 9; } + // DUI easter egg + const shouldShowFlix = Math.random() < 0.08; // 8% + if (shouldShowFlix) { + imageOverride = [ + { + image: "/lightbar-images/beer.png", + sizeRange: [15, 35] as [number, number], + }, + { + image: "/lightbar-images/beer-bottle.png", + sizeRange: [10, 38] as [number, number], + }, + { + image: "/lightbar-images/wine.png", + sizeRange: [15, 35] as [number, number], + }, + { + image: "/lightbar-images/cigarette.png", + sizeRange: [10, 38] as [number, number], + }, + { + image: "/lightbar-images/cigarette2.png", + sizeRange: [15, 35] as [number, number], + }, + ]; + imageParticleCount = particleCount / 11; + } + // HOIST THE SAIL (of particles)! for (let i = 0; i < particleCount; i += 1) { const isImageParticle = imageOverride && i <= imageParticleCount;