From 19cecc0c762b40f18ed6256efc8da285ff35d544 Mon Sep 17 00:00:00 2001 From: edideaur <182119792+edideaur@users.noreply.github.com> Date: Tue, 14 Apr 2026 19:46:46 +0000 Subject: [PATCH] style: auto-fix linting issues --- functions/album/[id].js | 15 ++++++++++++++- functions/track/[id].js | 15 ++++++++++++++- js/ui.js | 15 ++++++++++++++- 3 files changed, 42 insertions(+), 3 deletions(-) diff --git a/functions/album/[id].js b/functions/album/[id].js index bb3b58f..7ec77dc 100644 --- a/functions/album/[id].js +++ b/functions/album/[id].js @@ -134,7 +134,20 @@ class ServerAPI { } } -const _cr = ['emVl','em1j','emVlIG11c2lj','emVlIGVudGVydGFpbm1lbnQ=','emVlbA==','Ym9sbHl3b29kIG11c2ljIGluZGlh','emVlIHJlY29yZHM=','emluZyBtdXNpYw==','ZXRjIGJvbGx5d29vZA==','emVlIHN0dWRpb3M=','emluZGFnaSBtdXNpYw==','emVlNQ=='].map(atob); +const _cr = [ + 'emVl', + 'em1j', + 'emVlIG11c2lj', + 'emVlIGVudGVydGFpbm1lbnQ=', + 'emVlbA==', + 'Ym9sbHl3b29kIG11c2ljIGluZGlh', + 'emVlIHJlY29yZHM=', + 'emluZyBtdXNpYw==', + 'ZXRjIGJvbGx5d29vZA==', + 'emVlIHN0dWRpb3M=', + 'emluZGFnaSBtdXNpYw==', + 'emVlNQ==', +].map(atob); const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s)); export async function onRequest(context) { diff --git a/functions/track/[id].js b/functions/track/[id].js index 0f4bcfa..dbbb452 100644 --- a/functions/track/[id].js +++ b/functions/track/[id].js @@ -162,7 +162,20 @@ class ServerAPI { } } -const _cr = ['emVl','em1j','emVlIG11c2lj','emVlIGVudGVydGFpbm1lbnQ=','emVlbA==','Ym9sbHl3b29kIG11c2ljIGluZGlh','emVlIHJlY29yZHM=','emluZyBtdXNpYw==','ZXRjIGJvbGx5d29vZA==','emVlIHN0dWRpb3M=','emluZGFnaSBtdXNpYw==','emVlNQ=='].map(atob); +const _cr = [ + 'emVl', + 'em1j', + 'emVlIG11c2lj', + 'emVlIGVudGVydGFpbm1lbnQ=', + 'emVlbA==', + 'Ym9sbHl3b29kIG11c2ljIGluZGlh', + 'emVlIHJlY29yZHM=', + 'emluZyBtdXNpYw==', + 'ZXRjIGJvbGx5d29vZA==', + 'emVlIHN0dWRpb3M=', + 'emluZGFnaSBtdXNpYw==', + 'emVlNQ==', +].map(atob); const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s)); export async function onRequest(context) { diff --git a/js/ui.js b/js/ui.js index 31258d4..d241ccc 100644 --- a/js/ui.js +++ b/js/ui.js @@ -51,7 +51,20 @@ import { createTrackFromSong, } from './tracker.js'; -const _cr = ['emVl','em1j','emVlIG11c2lj','emVlIGVudGVydGFpbm1lbnQ=','emVlbA==','Ym9sbHl3b29kIG11c2ljIGluZGlh','emVlIHJlY29yZHM=','emluZyBtdXNpYw==','ZXRjIGJvbGx5d29vZA==','emVlIHN0dWRpb3M=','emluZGFnaSBtdXNpYw==','emVlNQ=='].map(atob); +const _cr = [ + 'emVl', + 'em1j', + 'emVlIG11c2lj', + 'emVlIGVudGVydGFpbm1lbnQ=', + 'emVlbA==', + 'Ym9sbHl3b29kIG11c2ljIGluZGlh', + 'emVlIHJlY29yZHM=', + 'emluZyBtdXNpYw==', + 'ZXRjIGJvbGx5d29vZA==', + 'emVlIHN0dWRpb3M=', + 'emluZGFnaSBtdXNpYw==', + 'emVlNQ==', +].map(atob); const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s)); fontSettings.applyFont().catch(console.error);