diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b472f57..438052a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,19 +1,18 @@ name: Node.js CI on: - pull_request: - branches: [ main ] + pull_request: + branches: [main] jobs: - build: + build: + runs-on: ubuntu-latest - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: '18.x' - - run: npm ci - - run: npm run build --if-present + steps: + - uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '18.x' + - run: npm ci + - run: npm run build --if-present diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 8fa9061..fe05bd1 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -2,50 +2,50 @@ name: Deploy static content to Pages on: - # Runs on pushes targeting the default branch - push: - branches: ['main'] + # Runs on pushes targeting the default branch + push: + branches: ['main'] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages permissions: - contents: read - pages: write - id-token: write + contents: read + pages: write + id-token: write # Allow one concurrent deployment concurrency: - group: 'pages' - cancel-in-progress: true + group: 'pages' + cancel-in-progress: true jobs: - # Single deploy job since we're just deploying - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Set up Node - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: 'npm' - - name: Install dependencies - run: npm install - - name: Build - run: npm run build - - name: Setup Pages - uses: actions/configure-pages@v3 - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - # Upload dist repository - path: './dist' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'npm' + - name: Install dependencies + run: npm install + - name: Build + run: npm run build + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + # Upload dist repository + path: './dist' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/src/app.css b/src/app.css index bd6213e..b5c61c9 100644 --- a/src/app.css +++ b/src/app.css @@ -1,3 +1,3 @@ @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities; diff --git a/src/components/ModuleEditor/Border.svelte b/src/components/ModuleEditor/Border.svelte index fa9df8d..9817130 100644 --- a/src/components/ModuleEditor/Border.svelte +++ b/src/components/ModuleEditor/Border.svelte @@ -1 +1 @@ - \ No newline at end of file + diff --git a/src/components/ModuleEditor/Cell.svelte b/src/components/ModuleEditor/Cell.svelte index 6a16781..8201ad4 100644 --- a/src/components/ModuleEditor/Cell.svelte +++ b/src/components/ModuleEditor/Cell.svelte @@ -8,7 +8,7 @@ export let yPositionInGrid: number; function cursorToCellPosition() { - if(xPositionInGrid === undefined) return; + if (xPositionInGrid === undefined) return; cursorPosition.setPosition(xPositionInGrid, yPositionInGrid); } @@ -16,8 +16,7 @@ (defaultDisplayValue && str === '0' && !allowZero) || str == defaultDisplayValue; $: isPositionMatched = - xPositionInGrid === $cursorPosition.posX && - yPositionInGrid === $cursorPosition.posY + xPositionInGrid === $cursorPosition.posX && yPositionInGrid === $cursorPosition.posY; $: displayValue = isValueOrDefault ? defaultDisplayValue : str; @@ -27,6 +26,7 @@ class:text-slate-500={isValueOrDefault} class:bg-blue-50={isPositionMatched} class:text-black={isPositionMatched} - class:animate-[pulse_1.2s_linear_infinite]={isPositionMatched}> + class:animate-[pulse_1.2s_linear_infinite]={isPositionMatched} +> {displayValue} - \ No newline at end of file + diff --git a/src/components/ModuleEditor/ModuleEditor.svelte b/src/components/ModuleEditor/ModuleEditor.svelte index 08de044..4ecbaa9 100644 --- a/src/components/ModuleEditor/ModuleEditor.svelte +++ b/src/components/ModuleEditor/ModuleEditor.svelte @@ -9,7 +9,7 @@ import PatternEditor from './PatternEditor.svelte'; import { quintOut } from 'svelte/easing'; import { flip } from 'svelte/animate'; - import { fade } from 'svelte/transition' + import { fade } from 'svelte/transition'; function switchPattern(index: number) { currentPatternIndex.set(index); @@ -44,7 +44,7 @@ {#each $patterns as pattern, i (i)}