fix: bun format

This commit is contained in:
Daniel 2026-03-21 16:56:05 -05:00
parent c40cd952a2
commit 6728b17efe
11 changed files with 8523 additions and 168 deletions

View file

@ -6,7 +6,7 @@
version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
- package-ecosystem: 'devcontainers'
directory: '/'
schedule:
interval: weekly

View file

@ -1,14 +1,18 @@
### Description
### Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Style/UI update
- [ ] Docs only
### Checklist
- [ ] **I have read the [Contributing Guidelines](https://github.com/monochrome-music/monochrome/blob/main/CONTRIBUTING.md).**
- [ ] **I understand every line of code I am submitting.**
- [ ] I have tested these changes locally, and they work as expected.
---
*By submitting this PR, I agree to follow the guidelines. I understand that the final decision to merge rests with the maintainers and that not all contributions can be accepted.*
_By submitting this PR, I agree to follow the guidelines. I understand that the final decision to merge rests with the maintainers and that not all contributions can be accepted._

View file

@ -31,7 +31,7 @@ These instances are community instances of Monochrome & its WebUI:
These instances provide the tidal-ui web interface, not monochrome:
| Provider | URL | Status |
| ------------------- | ---------------------------------------------- | --------- |
| ------------- | ------------------------------------------- | --------- |
| **squid.wtf** | [tidal.squid.wtf](https://tidal.squid.wtf) | Community |
| **QQDL** | [tidal.qqdl.site](https://tidal.qqdl.site/) | Community |
@ -49,7 +49,7 @@ These are available API endpoints that can be used with Monochrome or other Hi-F
### Official & Community APIs
| Provider | URL | Notes |
| ----------------- | ----------------------------------- | ---------------- |
| ----------------- | ----------------------------------- | ----------------------------------------------------------------------- |
| **Monochrome** | `https://monochrome-api.samidy.com` | Official API |
| | `https://api.monochrome.tf` | Official API |
| | `https://arran.monochrome.tf` | Official API |

View file

@ -110,7 +110,6 @@ Our Recommended way to use monochrome is through our official instance:
**[monochrome.tf](https://monochrome.tf)** / **[monochrome.samidy.com](https://monochrome.samidy.com)**
For alternative instances, check [INSTANCES.md](INSTANCES.md).
---
@ -282,4 +281,3 @@ We welcome contributions from the community! Please see our [Contributing Guide]
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=monochrome-music/monochrome&type=date&logscale&legend=top-left" />
</picture>
</a>

View file

@ -5,7 +5,8 @@ import { authManager } from './auth.js';
const PUBLIC_COLLECTION = 'public_playlists';
const DEFAULT_POCKETBASE_URL = 'https://data.samidy.xyz';
const POCKETBASE_URL = window.__POCKETBASE_URL__ || localStorage.getItem('monochrome-pocketbase-url') || DEFAULT_POCKETBASE_URL;
const POCKETBASE_URL =
window.__POCKETBASE_URL__ || localStorage.getItem('monochrome-pocketbase-url') || DEFAULT_POCKETBASE_URL;
console.log('[PocketBase] Using URL:', POCKETBASE_URL);

View file

@ -33,7 +33,10 @@ function trackHasAsianText(track) {
function cleanTrackerSearch(text) {
if (!text) return '';
// chud emojis will NOT be tolerated in my precious genius lyrics worker
let cleaned = text.replace(/[\p{Extended_Pictographic}\p{Emoji_Component}\p{Emoji_Presentation}\p{Emoji_Modifier}\p{Emoji_Modifier_Base}\p{Symbol}]/gu, '');
let cleaned = text.replace(
/[\p{Extended_Pictographic}\p{Emoji_Component}\p{Emoji_Presentation}\p{Emoji_Modifier}\p{Emoji_Modifier_Base}\p{Symbol}]/gu,
''
);
cleaned = cleaned.replace(/[\u2600-\u27BF\u2B50\u2B06\u2194\u21AA\u2934\u203C\u2049\u3030\u303D\u3297\u3299]/g, '');

File diff suppressed because one or more lines are too long

View file

@ -5,10 +5,10 @@ import type { Plugin } from 'vite';
import mime from 'mime';
import { createHash } from 'crypto';
function hashString(input: string, algorithm = "sha256"): string {
function hashString(input: string, algorithm = 'sha256'): string {
return createHash(algorithm)
.update(input, "utf8") // specify string encoding
.digest("hex"); // return as hex
.update(input, 'utf8') // specify string encoding
.digest('hex'); // return as hex
}
/**