diff --git a/manifest.json b/manifest.json index 3ae6bf5b..228a2632 100644 --- a/manifest.json +++ b/manifest.json @@ -16,32 +16,38 @@ { "src": "public/android-chrome-512x512.png", "sizes": "512x512", - "type": "image/png" + "type": "image/png", + "purpose": "maskable" }, { "src": "public/apple-touch-icon.png", "sizes": "180x180", - "type": "image/png" + "type": "image/png", + "purpose": "maskable" }, { "src": "public/favicon-16x16.png", "sizes": "16x16", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/favicon-32x32.png", "sizes": "32x32", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/favicon.ico", "sizes": "32x32", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/mstile-150x150.png", "sizes": "150x150", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/icon.png", @@ -53,77 +59,91 @@ "src": "public/splash_screens/icon144x144.png", "sizes": "144x144", "type": "image/png", - "purpose": "unset" + "purpose": "any" }, { "src": "public/splash_screens/4__iPhone_SE__iPod_touch_5th_generation_and_later_landscape.png", "sizes": "1136x640", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/4__iPhone_SE__iPod_touch_5th_generation_and_later_portrait.png", "sizes": "640x1136", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/8.3__iPad_Mini_landscape.png", "sizes": "2266x1488", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/9.7__iPad_Pro__7.9__iPad_mini__9.7__iPad_Air__9.7__iPad_landscape.png", "sizes": "1536x2048", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/9.7__iPad_Pro__7.9__iPad_mini__9.7__iPad_Air__9.7__iPad_portrait.png", "sizes": "2048x1536", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens8/10.2__iPad_landscape.png", "sizes": "2160x1620", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens8/10.5__iPad_Air_landscape.png", "sizes": "2224x1668", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens8/10.5__iPad_Air_portrait.png", "sizes": "1668x2224", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens8/10.9__iPad_Air_landscape.png", "sizes": "2360x1640", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens8/11__iPad_Pro__10.5__iPad_Pro_landscape.png", "sizes": "2388x1668", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens8/12.9__iPad_Pro_landscape.png", "sizes": "2732x2048", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens8/12.9__iPad_Pro_portrait.png", "sizes": "2048x2732", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens8/12.iPhone_8__iPhone_7__iPhone_6s__iPhone_6__4.7__iPhone_SE_landscape.png", "sizes": "1334x750", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/8iPhone_8__iPhone_7__iPhone_6s__iPhone_6__4.7__iPhone_SE_portrait.png", "sizes": "750x1334", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/8iPhone_8_Plus__iPhone_7_Plus__iPhone_6s_Plus__iPhone_6_Plus_landscape.png", @@ -133,77 +153,92 @@ { "src": "public/splash_screens/8iPhone_8_Plus__iPhone_7_Plus__iPhone_6s_Plus__iPhone_6_Plus_portrait.png", "sizes": "1242x2208", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_11__iPhone_XR_landscape.png", "sizes": "1792x828", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_11__iPhone_XR_portrait.png", "sizes": "828x1792", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_11_Pro_Max__iPhone_XS_Max_landscape.png", "sizes": "2688x1242", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_11_Pro_Max__iPhone_XS_Max_portrait.png", "sizes": "1242x2688", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_13_mini__iPhone_12_mini__iPhone_11_Pro__iPhone_XS__iPhone_X_landscape.png", "sizes": "2436x1125", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_13_mini__iPhone_12_mini__iPhone_11_Pro__iPhone_XS__iPhone_X_portrait.png", "sizes": "1125x2436", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_14__iPhone_13_Pro__iPhone_13__iPhone_12_Pro__iPhone_12_landscape.png", "sizes": "2532x1170", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_14__iPhone_13_Pro__iPhone_13__iPhone_12_Pro__iPhone_12_portrait.png", "sizes": "1170x2532", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_14_Plus__iPhone_13_Pro_Max__iPhone_12_Pro_Max_landscape.png", "sizes": "2778x1284", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_14_Plus__iPhone_13_Pro_Max__iPhone_12_Pro_Max_portrait.png", "sizes": "1284x2778", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_15_Pro__iPhone_15__iPhone_14_Pro_landscape.png", "sizes": "2556x1179", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_15_Pro__iPhone_15__iPhone_14_Pro_portrait.png", "sizes": "1179x2556", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_15_Pro_Max__iPhone_15_Plus__iPhone_14_Pro_Max_landscape.png", "sizes": "2796x1290", - "type": "image/png" + "type": "image/png", + "purpose": "any" }, { "src": "public/splash_screens/iPhone_15_Pro_Max__iPhone_15_Plus__iPhone_14_Pro_Max_portrait.png", "sizes": "1290x2796", - "type": "image/png" + "type": "image/png", + "purpose": "any" } ] } diff --git a/public/config.js b/public/config.js index 1d1a598b..878e6a92 100644 --- a/public/config.js +++ b/public/config.js @@ -12,7 +12,7 @@ window.__CONFIG__ = { VITE_NORMAL_ROUTER: false, // 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", + VITE_BACKEND_URL: "https://sudo-flix-backend.lol", // "https://mw-backend.lonelil.com", // 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/ghost.png b/public/lightbar-images/ghost.png new file mode 100644 index 00000000..6881e89b Binary files /dev/null and b/public/lightbar-images/ghost.png differ diff --git a/public/lightbar-images/pumpkin.png b/public/lightbar-images/pumpkin.png new file mode 100644 index 00000000..94efa633 Binary files /dev/null and b/public/lightbar-images/pumpkin.png differ diff --git a/public/lightbar-images/santa.png b/public/lightbar-images/santa.png index fd799ee2..91525e25 100644 Binary files a/public/lightbar-images/santa.png and b/public/lightbar-images/santa.png differ diff --git a/src/components/utils/Lightbar.tsx b/src/components/utils/Lightbar.tsx index 653c3c64..a707531c 100644 --- a/src/components/utils/Lightbar.tsx +++ b/src/components/utils/Lightbar.tsx @@ -152,20 +152,43 @@ function ParticlesCanvas() { const date = new Date(); const month = date.getMonth(); const day = date.getDate(); - if (month === 11 && day >= 24 && day <= 26) { + if ( + (month === 11 && day >= 24 && day <= 26) || + Math.floor(Math.random() * 380) > 40 + ) { imageOverride = [ { image: "/lightbar-images/snowflake.svg", - sizeRange: [4, 15] as [number, number], + sizeRange: [12, 20] as [number, number], }, { image: "/lightbar-images/santa.png", - sizeRange: [15, 30] as [number, number], + sizeRange: [25, 35] as [number, number], }, ]; imageParticleCount = particleCount * 0.1; } + // Halloween overrides + const month2 = date.getMonth(); + const day2 = date.getDate(); + if ( + (month2 === 9 && day2 >= 29 && day2 <= 31) || + Math.floor(Math.random() * 50) > 48 + ) { + imageOverride = [ + { + image: "/lightbar-images/ghost.png", + sizeRange: [28, 31] as [number, number], + }, + { + image: "/lightbar-images/pumpkin.png", + sizeRange: [28, 31] as [number, number], + }, + ]; + imageParticleCount = particleCount * 0.09; + } + // Fish easter egg const shouldShowFishie = Math.floor(Math.random() * 73) > 69; if (shouldShowFishie) { @@ -183,10 +206,10 @@ function ParticlesCanvas() { } // Weed easter egg - const month2 = date.getMonth() + 1; - const day2 = date.getDate(); + const month3 = date.getMonth() + 1; + const day3 = date.getDate(); const shouldShowZa = - (month2 === 4 && day2 === 20) || Math.floor(Math.random() * 435) > 420; + (month3 === 4 && day3 === 20) || Math.floor(Math.random() * 435) > 420; if (shouldShowZa) { imageOverride = [ {