Merge branch 'main' of github.com:monochrome-music/monochrome

This commit is contained in:
Samidy 2026-03-12 02:49:00 +03:00
commit 4728455b90
5 changed files with 11 additions and 15 deletions

View file

@ -103,8 +103,8 @@ Monochrome uses Appwrite for user authentication. While it defaults to official
1. Create a project in Appwrite. 1. Create a project in Appwrite.
2. Enable the **Google** or **Email/Password** providers in the Appwrite Console. 2. Enable the **Google** or **Email/Password** providers in the Appwrite Console.
3. Set these variables in your `.env`: 3. Set these variables in your `.env`:
- `APPWRITE_ENDPOINT`: Your Appwrite API endpoint (e.g., `https://auth.yourdomain.com/v1`). - `APPWRITE_ENDPOINT`: Your Appwrite API endpoint (e.g., `https://auth.yourdomain.com/v1`).
- `APPWRITE_PROJECT_ID`: Your Appwrite project ID (e.g., `auth-for-monochrome`). - `APPWRITE_PROJECT_ID`: Your Appwrite project ID (e.g., `auth-for-monochrome`).
### Database (PocketBase) ### Database (PocketBase)
@ -115,6 +115,7 @@ docker compose --profile pocketbase up -d
``` ```
#### PocketBase Schema Note #### PocketBase Schema Note
If you are setting up a new PocketBase collection for user data, ensure it has a field named `firebase_id` (this is a legacy name we use when we first started the accounts system, we used firebase. and im too lazy to change it so yea fuck you). If you are setting up a new PocketBase collection for user data, ensure it has a field named `firebase_id` (this is a legacy name we use when we first started the accounts system, we used firebase. and im too lazy to change it so yea fuck you).
--- ---

View file

@ -1297,9 +1297,7 @@
/> />
</div> </div>
<div style="margin-bottom: 1rem"> <div style="margin-bottom: 1rem">
<label style="display: block; margin-bottom: 0.5rem; font-size: 0.9rem" <label style="display: block; margin-bottom: 0.5rem; font-size: 0.9rem">Appwrite Endpoint</label>
>Appwrite Endpoint</label
>
<input <input
type="url" type="url"
id="custom-appwrite-endpoint" id="custom-appwrite-endpoint"
@ -1308,9 +1306,7 @@
/> />
</div> </div>
<div style="margin-bottom: 1rem"> <div style="margin-bottom: 1rem">
<label style="display: block; margin-bottom: 0.5rem; font-size: 0.9rem" <label style="display: block; margin-bottom: 0.5rem; font-size: 0.9rem">Appwrite Project ID</label>
>Appwrite Project ID</label
>
<input <input
type="text" type="text"
id="custom-appwrite-project" id="custom-appwrite-project"

View file

@ -2874,10 +2874,8 @@ export function initializeSettings(scrobbler, player, api, ui) {
// Hide individual fields in the modal // Hide individual fields in the modal
if (pbFromEnv && customPbUrlInput) customPbUrlInput.closest('div[style]').style.display = 'none'; if (pbFromEnv && customPbUrlInput) customPbUrlInput.closest('div[style]').style.display = 'none';
if (appwriteFromEnv) { if (appwriteFromEnv) {
if (customAppwriteEndpointInput) if (customAppwriteEndpointInput) customAppwriteEndpointInput.closest('div[style]').style.display = 'none';
customAppwriteEndpointInput.closest('div[style]').style.display = 'none'; if (customAppwriteProjectInput) customAppwriteProjectInput.closest('div[style]').style.display = 'none';
if (customAppwriteProjectInput)
customAppwriteProjectInput.closest('div[style]').style.display = 'none';
} }
customDbBtn.addEventListener('click', () => { customDbBtn.addEventListener('click', () => {

View file

@ -5357,7 +5357,8 @@ img[src=''] {
max-width: 400px; max-width: 400px;
} }
.custom-appwrite-endpoint, .custom-appwrite-project { .custom-appwrite-endpoint,
.custom-appwrite-project {
display: none; display: none;
flex-direction: column; flex-direction: column;
gap: 0.5rem; gap: 0.5rem;
@ -5365,7 +5366,8 @@ img[src=''] {
width: 100%; width: 100%;
} }
.custom-appwrite-endpoint.visible, .custom-appwrite-project.visible { .custom-appwrite-endpoint.visible,
.custom-appwrite-project.visible {
display: flex; display: flex;
} }

View file

@ -100,7 +100,6 @@ export default function authGatePlugin() {
console.log(`Auth gate enabled (Project: ${APPWRITE_PROJECT_ID})`); console.log(`Auth gate enabled (Project: ${APPWRITE_PROJECT_ID})`);
server.middlewares.use( server.middlewares.use(
cookieSession({ cookieSession({
name: 'mono_session', name: 'mono_session',