Skip to content

Commit

Permalink
update basename
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-commits committed Aug 7, 2024
1 parent a09d591 commit 0d3f1aa
Show file tree
Hide file tree
Showing 7 changed files with 1,622 additions and 1,992 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/vite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy

on:
push:
branches: ['midi-player']
branches: ['main']
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -37,7 +37,6 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload dist repository
path: './tonalities'
- name: Deploy to GitHub Pages
id: deployment
Expand Down
894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.3.1.cjs

This file was deleted.

925 changes: 925 additions & 0 deletions .yarn/releases/yarn-4.4.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ packageExtensions:
"@babel/plugin-transform-react-jsx":
optional: true

yarnPath: .yarn/releases/yarn-4.3.1.cjs
yarnPath: .yarn/releases/yarn-4.4.0.cjs
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
"@mui/material": "^5.16.0",
"@reduxjs/toolkit": "^1.9.7",
"@vitejs/plugin-react-swc": "^3.7.0",
"midi-player-js": "^2.0.16",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-redux": "^8.1.3",
"react-router-dom": "6.24.1",
"react-window": "^1.8.10",
"smplr": "^0.15.1",
"verovio": "^4.2.0",
"vite": "^5.3.3",
"vite-plugin-svgr": "^4.2.0"
Expand All @@ -26,5 +28,5 @@
"serve": "vite preview",
"deploy": "./deploy.sh"
},
"packageManager": "yarn@4.3.1"
"packageManager": "yarn@4.4.0"
}
13 changes: 4 additions & 9 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,10 @@ import { RouterProvider, createBrowserRouter } from 'react-router-dom'
import { Error } from './features/Error'
import { colors } from './utils'

const router = createBrowserRouter(
[
{ path: '*', element: <Landing />, errorElement: <Error /> },
{ path: '/project/:projectId', element: <ScoreAnnotator />, errorElement: <Error /> },
],
{
basename: '/tonalities',
}
)
const router = createBrowserRouter([
{ path: '*', element: <Landing />, errorElement: <Error /> },
{ path: '/project/:projectId', element: <ScoreAnnotator />, errorElement: <Error /> },
])

export const App = () => {
useGetUserIdQuery()
Expand Down
Loading

0 comments on commit 0d3f1aa

Please sign in to comment.