Merge branch 'main' of github.com:SamidyFR/monochrome
This commit is contained in:
commit
b7bc90f4f1
5 changed files with 1402 additions and 63 deletions
64
.github/workflows/deploy.yml
vendored
64
.github/workflows/deploy.yml
vendored
|
|
@ -1,35 +1,49 @@
|
||||||
name: Deploy to GitHub Pages
|
name: Deploy to GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # Needed to push to the gh-pages branch
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Bun
|
||||||
uses: actions/setup-node@v3
|
uses: oven-sh/setup-bun@v1
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
bun-version: latest
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Cache dependencies
|
||||||
run: npm ci
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
./bun_modules
|
||||||
|
./node_modules
|
||||||
|
./bun.lock
|
||||||
|
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
|
||||||
|
|
||||||
- name: Build
|
- name: Install dependencies
|
||||||
run: npm run build
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Build project
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
run: bun run build --mode production
|
||||||
with:
|
env:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
NODE_ENV: production
|
||||||
publish_dir: ./dist
|
BUN_BUILD_THREADS: $(nproc)
|
||||||
publish_branch: deployed-ver
|
|
||||||
force_orphan: true
|
- name: Deploy to GitHub Pages
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./dist
|
||||||
|
publish_branch: deployed-ver
|
||||||
|
force_orphan: true
|
||||||
|
keep_files: false
|
||||||
|
|
|
||||||
81
.github/workflows/lint.yml
vendored
81
.github/workflows/lint.yml
vendored
|
|
@ -1,53 +1,60 @@
|
||||||
name: Lint Codebase
|
name: Lint Codebase
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout code
|
||||||
if: github.event_name == 'pull_request'
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
fetch-depth: 1
|
||||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- name: Setup Bun
|
||||||
if: github.event_name != 'pull_request'
|
uses: oven-sh/setup-bun@v1
|
||||||
|
with:
|
||||||
|
bun-version: latest
|
||||||
|
|
||||||
- name: Use Node.js
|
- name: Cache dependencies
|
||||||
uses: actions/setup-node@v4
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
path: |
|
||||||
cache: 'npm'
|
./bun_modules
|
||||||
|
./node_modules
|
||||||
|
./bun.lock
|
||||||
|
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Fix JS Lint
|
- name: Run JS Lint
|
||||||
run: npm run lint:js -- --fix
|
run: bun run lint:js -- --fix
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Fix CSS Lint
|
- name: Run CSS Lint
|
||||||
run: npm run lint:css -- --fix
|
run: bun run lint:css -- --fix
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Format with Prettier
|
- name: Format with Prettier
|
||||||
run: npm run format
|
run: bun run format
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Commit and Push changes
|
- name: Commit and Push lint fixes
|
||||||
uses: stefanzweifel/git-auto-commit-action@v5
|
uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_message: 'style: auto-fix linting issues'
|
commit_message: 'style: auto-fix linting issues'
|
||||||
|
commit_user_name: 'github-actions[bot]'
|
||||||
|
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
only_if_changed: true
|
||||||
|
|
||||||
- name: Run HTML Lint
|
- name: Run HTML Lint
|
||||||
run: npm run lint:html
|
run: bun run lint:html
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// js/firebase/auth.js
|
// js/accounts/auth.js
|
||||||
import { auth, provider } from './config.js';
|
import { auth, provider } from './config.js';
|
||||||
import {
|
import {
|
||||||
signInWithPopup,
|
signInWithPopup,
|
||||||
|
|
|
||||||
|
|
@ -935,6 +935,10 @@ body.has-page-background .track-item:hover {
|
||||||
gap: 2px var(--spacing-xl);
|
gap: 2px var(--spacing-xl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#playlist-detail-recommended .track-item {
|
||||||
|
grid-template-columns: 40px 1fr 80px 90px;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 1100px) {
|
@media (max-width: 1100px) {
|
||||||
#home-recommended-songs,
|
#home-recommended-songs,
|
||||||
#artist-detail-tracks,
|
#artist-detail-tracks,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue