Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nanarino committed Feb 2, 2024
1 parent 30746d9 commit 31f23d1
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 16 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"license": "MIT",
"devDependencies": {
"@astropub/config-to-alias": "^1.0.1",
"@unocss/preset-attributify": "^0.58.3",
"@unocss/reset": "^0.58.3",
"sass": "^1.70.0",
Expand Down
76 changes: 76 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ABCPlayer from './components/Player';
import CustomMenu from './components/Menu';
import ThemeToggle from './components/ThemeToggle';
import { ListFile, MusicFile } from './type';
import { useFetch } from './hooks/useFetch';
import ABCPlayer from '𝄞/components/Player';
import CustomMenu from '𝄞/components/Menu';
import ThemeToggle from '𝄞/components/ThemeToggle';
import { ListFile, MusicFile } from '𝄞/type';
import { useFetch } from '𝄞/hooks/useFetch';
import { Show } from 'solid-js';

const App = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Show, For, createSignal } from "solid-js";
import { ListFile } from "../../type";
import { ListFile } from "𝄞/type";

const getFileName = (path: string) => path.match(/\/(.*?).abc$/)?.at(-1);
const [getCurrentName, setCurrentName] = createSignal<string>("index");
Expand Down
2 changes: 1 addition & 1 deletion src/components/Message/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sleep } from "./../../utils";
import { sleep } from "𝄞/utils";

export class Launcher {
private queue: HTMLDivElement;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Player/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Accessor, createEffect, on, createSignal } from "solid-js";
import message from "./../Message";
import message from "𝄞/components/Message";
import abcjs from "abcjs";
import CursorControl from "./cursorControl";
import SynthController from "./synthController";
import { name, key } from "./../../utils";
import { name, key } from "𝄞/utils";
import "./index.scss";

const ABCPlayer = (props: { getMusicData: Accessor<string> }) => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/ThemeToggle/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Component } from "solid-js";
import moon from "./../../assets/moon.svg?raw";
import sun from "./../../assets/sun.svg?raw";
import moon from "𝄞/assets/moon.svg?raw";
import sun from "𝄞/assets/sun.svg?raw";
import "./index.scss";

const themeTuple = ["dark", "light"] as const;
Expand Down
4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* @refresh reload */
import { render } from "solid-js/web";
import "abcjs/abcjs-audio.css";
import App from "./App";
import App from "𝄞/App";
import "@unocss/reset/normalize.css";
import "uno.css";
import "./index.scss";
import "𝄞/index.scss";

const root = document.getElementById("root");

Expand Down
4 changes: 4 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"baseUrl": ".",
"paths": {
"𝄞/*": ["src/*"]
},
"jsx": "preserve",
"jsxImportSource": "solid-js",
"types": ["vite/client"],
Expand Down
7 changes: 4 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from 'vite';
import solid from 'vite-plugin-solid';
import { defineConfig } from "vite";
import solid from "vite-plugin-solid";
import uno from "unocss/vite";
import alias from '@astropub/config-to-alias/vite';

export default defineConfig({
plugins: [uno(), solid()],
plugins: [uno(), solid(), alias()],
});

0 comments on commit 31f23d1

Please sign in to comment.