fix: bun format
This commit is contained in:
parent
c40cd952a2
commit
6728b17efe
11 changed files with 8523 additions and 168 deletions
4
.github/dependabot.yml
vendored
4
.github/dependabot.yml
vendored
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: "devcontainers"
|
- package-ecosystem: 'devcontainers'
|
||||||
directory: "/"
|
directory: '/'
|
||||||
schedule:
|
schedule:
|
||||||
interval: weekly
|
interval: weekly
|
||||||
|
|
|
||||||
6
.github/pull_request_template.md
vendored
6
.github/pull_request_template.md
vendored
|
|
@ -1,14 +1,18 @@
|
||||||
### Description
|
### Description
|
||||||
|
|
||||||
### Type of Change
|
### Type of Change
|
||||||
|
|
||||||
- [ ] Bug fix
|
- [ ] Bug fix
|
||||||
- [ ] New feature
|
- [ ] New feature
|
||||||
- [ ] Style/UI update
|
- [ ] Style/UI update
|
||||||
- [ ] Docs only
|
- [ ] Docs only
|
||||||
|
|
||||||
### Checklist
|
### Checklist
|
||||||
|
|
||||||
- [ ] **I have read the [Contributing Guidelines](https://github.com/monochrome-music/monochrome/blob/main/CONTRIBUTING.md).**
|
- [ ] **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 understand every line of code I am submitting.**
|
||||||
- [ ] I have tested these changes locally, and they work as expected.
|
- [ ] 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._
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ These instances are community instances of Monochrome & its WebUI:
|
||||||
These instances provide the tidal-ui web interface, not monochrome:
|
These instances provide the tidal-ui web interface, not monochrome:
|
||||||
|
|
||||||
| Provider | URL | Status |
|
| Provider | URL | Status |
|
||||||
| ------------------- | ---------------------------------------------- | --------- |
|
| ------------- | ------------------------------------------- | --------- |
|
||||||
| **squid.wtf** | [tidal.squid.wtf](https://tidal.squid.wtf) | Community |
|
| **squid.wtf** | [tidal.squid.wtf](https://tidal.squid.wtf) | Community |
|
||||||
| **QQDL** | [tidal.qqdl.site](https://tidal.qqdl.site/) | 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
|
### Official & Community APIs
|
||||||
|
|
||||||
| Provider | URL | Notes |
|
| Provider | URL | Notes |
|
||||||
| ----------------- | ----------------------------------- | ---------------- |
|
| ----------------- | ----------------------------------- | ----------------------------------------------------------------------- |
|
||||||
| **Monochrome** | `https://monochrome-api.samidy.com` | Official API |
|
| **Monochrome** | `https://monochrome-api.samidy.com` | Official API |
|
||||||
| | `https://api.monochrome.tf` | Official API |
|
| | `https://api.monochrome.tf` | Official API |
|
||||||
| | `https://arran.monochrome.tf` | Official API |
|
| | `https://arran.monochrome.tf` | Official API |
|
||||||
|
|
|
||||||
|
|
@ -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)**
|
**[monochrome.tf](https://monochrome.tf)** / **[monochrome.samidy.com](https://monochrome.samidy.com)**
|
||||||
|
|
||||||
|
|
||||||
For alternative instances, check [INSTANCES.md](INSTANCES.md).
|
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" />
|
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=monochrome-music/monochrome&type=date&logscale&legend=top-left" />
|
||||||
</picture>
|
</picture>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@ import { authManager } from './auth.js';
|
||||||
|
|
||||||
const PUBLIC_COLLECTION = 'public_playlists';
|
const PUBLIC_COLLECTION = 'public_playlists';
|
||||||
const DEFAULT_POCKETBASE_URL = 'https://data.samidy.xyz';
|
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);
|
console.log('[PocketBase] Using URL:', POCKETBASE_URL);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,10 @@ function trackHasAsianText(track) {
|
||||||
function cleanTrackerSearch(text) {
|
function cleanTrackerSearch(text) {
|
||||||
if (!text) return '';
|
if (!text) return '';
|
||||||
// chud emojis will NOT be tolerated in my precious genius lyrics worker
|
// 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, '');
|
cleaned = cleaned.replace(/[\u2600-\u27BF\u2B50\u2B06\u2194\u21AA\u2934\u203C\u2049\u3030\u303D\u3297\u3299]/g, '');
|
||||||
|
|
||||||
|
|
|
||||||
8351
public/lib/butterchurnPresets.min.js
vendored
8351
public/lib/butterchurnPresets.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -5,10 +5,10 @@ import type { Plugin } from 'vite';
|
||||||
import mime from 'mime';
|
import mime from 'mime';
|
||||||
import { createHash } from 'crypto';
|
import { createHash } from 'crypto';
|
||||||
|
|
||||||
function hashString(input: string, algorithm = "sha256"): string {
|
function hashString(input: string, algorithm = 'sha256'): string {
|
||||||
return createHash(algorithm)
|
return createHash(algorithm)
|
||||||
.update(input, "utf8") // specify string encoding
|
.update(input, 'utf8') // specify string encoding
|
||||||
.digest("hex"); // return as hex
|
.digest('hex'); // return as hex
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue