diff --git a/electron.vite.config.1728674597190.mjs b/electron.vite.config.1728674597190.mjs index bb2eb72..4429e2f 100644 --- a/electron.vite.config.1728674597190.mjs +++ b/electron.vite.config.1728674597190.mjs @@ -2,22 +2,21 @@ import { defineConfig, externalizeDepsPlugin } from "electron-vite"; import { resolve } from "path"; import solid from "vite-plugin-solid"; + var electron_vite_config_default = defineConfig({ main: { - plugins: [externalizeDepsPlugin()] + plugins: [externalizeDepsPlugin()], }, preload: { - plugins: [externalizeDepsPlugin()] + plugins: [externalizeDepsPlugin()], }, renderer: { resolve: { alias: { - "@renderer": resolve("src/renderer/src") - } + "@renderer": resolve("src/renderer/src"), + }, }, - plugins: [solid()] - } + plugins: [solid()], + }, }); -export { - electron_vite_config_default as default -}; +export { electron_vite_config_default as default }; diff --git a/postcss.config.js b/postcss.config.js index 2e7af2b..2aa7205 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -3,4 +3,4 @@ export default { tailwindcss: {}, autoprefixer: {}, }, -} +}; diff --git a/src/renderer/src/components/song/SongHint.tsx b/src/renderer/src/components/song/SongHint.tsx index 4c3fed8..69050b4 100644 --- a/src/renderer/src/components/song/SongHint.tsx +++ b/src/renderer/src/components/song/SongHint.tsx @@ -8,4 +8,4 @@ export default function SongHint(): HTMLElement { ) as HTMLElement; -} \ No newline at end of file +} diff --git a/src/renderer/src/components/song/context-menu/SongContextMenu.tsx b/src/renderer/src/components/song/context-menu/SongContextMenu.tsx index 07c008f..7f4ee99 100644 --- a/src/renderer/src/components/song/context-menu/SongContextMenu.tsx +++ b/src/renderer/src/components/song/context-menu/SongContextMenu.tsx @@ -69,7 +69,6 @@ const SongContextMenu: Component = (props) => { ); }; - export default SongContextMenu; export function ignoreClickInContextMenu(fn: (evt: MouseEvent) => any): (evt: MouseEvent) => void { diff --git a/src/renderer/src/components/song/context-menu/SongContextMenuItem.tsx b/src/renderer/src/components/song/context-menu/SongContextMenuItem.tsx index 6ff537f..f373284 100644 --- a/src/renderer/src/components/song/context-menu/SongContextMenuItem.tsx +++ b/src/renderer/src/components/song/context-menu/SongContextMenuItem.tsx @@ -27,4 +27,4 @@ const SongContextMenuItem: Component = (props) => { ); }; -export default SongContextMenuItem; \ No newline at end of file +export default SongContextMenuItem; diff --git a/src/renderer/src/components/song/context-menu/items/PlayNext.tsx b/src/renderer/src/components/song/context-menu/items/PlayNext.tsx index 298da2b..3c9d2bb 100644 --- a/src/renderer/src/components/song/context-menu/items/PlayNext.tsx +++ b/src/renderer/src/components/song/context-menu/items/PlayNext.tsx @@ -26,4 +26,4 @@ const PlayNext: Component = (props) => { ); }; -export default PlayNext; \ No newline at end of file +export default PlayNext; diff --git a/src/renderer/src/components/song/song-detail/SongControls.tsx b/src/renderer/src/components/song/song-detail/SongControls.tsx index 724b41f..8ebe868 100644 --- a/src/renderer/src/components/song/song-detail/SongControls.tsx +++ b/src/renderer/src/components/song/song-detail/SongControls.tsx @@ -99,4 +99,4 @@ const SongControls: Component = () => { ); }; -export default SongControls; \ No newline at end of file +export default SongControls; diff --git a/src/renderer/src/components/song/song-detail/SongDetail.tsx b/src/renderer/src/components/song/song-detail/SongDetail.tsx index 8f5b0c3..716dbe9 100644 --- a/src/renderer/src/components/song/song-detail/SongDetail.tsx +++ b/src/renderer/src/components/song/song-detail/SongDetail.tsx @@ -11,7 +11,11 @@ const SongDetail: Component = () => { return (
- +
diff --git a/src/renderer/src/components/song/song-item/SongItem.tsx b/src/renderer/src/components/song/song-item/SongItem.tsx index 1a774ec..ab2079d 100644 --- a/src/renderer/src/components/song/song-item/SongItem.tsx +++ b/src/renderer/src/components/song/song-item/SongItem.tsx @@ -42,7 +42,7 @@ const SongItem: Component = ({ onMount(() => { draggable(item, { onClick: ignoreClickInContextMenu(() => onSelect(song.path)), - onDrop: onDrop ?? (() => { }), + onDrop: onDrop ?? (() => {}), createHint: SongHint, useOnlyAsOnClickBinder: !isDraggable || selectedSong().path === song.path, }); @@ -54,10 +54,11 @@ const SongItem: Component = ({ return (
= ({ />
-

{song.title}

+

+ {song.title} +

{song.artist}

diff --git a/src/renderer/src/components/song/song-list-search/SongListSearch.tsx b/src/renderer/src/components/song/song-list-search/SongListSearch.tsx index a65aa30..fd99668 100644 --- a/src/renderer/src/components/song/song-list-search/SongListSearch.tsx +++ b/src/renderer/src/components/song/song-list-search/SongListSearch.tsx @@ -74,7 +74,10 @@ const SongListSearch: Component = (props) => { setSongsSearch(e.target.value); }} /> -
@@ -83,10 +86,11 @@ const SongListSearch: Component = (props) => {
- ) -} + ); +}; -{/*
+{ + /*
-
*/} + */ +} -{/*
+{ + /*

-
*/} +
*/ +} export default SongListSearch; diff --git a/src/renderer/src/components/song/song-list-search/SongListSearchOrderBy.tsx b/src/renderer/src/components/song/song-list-search/SongListSearchOrderBy.tsx index 28d72d4..e5e95f7 100644 --- a/src/renderer/src/components/song/song-list-search/SongListSearchOrderBy.tsx +++ b/src/renderer/src/components/song/song-list-search/SongListSearchOrderBy.tsx @@ -74,7 +74,9 @@ const SongListSearchOrderBy: Component = (props) => { - {optionLabel()} + + {optionLabel()} + { @@ -85,7 +87,10 @@ const SongListSearchOrderBy: Component = (props) => { value={option} > {orderOptions.map((option) => ( - + {option.text} ))} @@ -95,4 +100,4 @@ const SongListSearchOrderBy: Component = (props) => { ); }; -export default SongListSearchOrderBy; \ No newline at end of file +export default SongListSearchOrderBy; diff --git a/src/renderer/src/components/song/song-queue/SongQueue.tsx b/src/renderer/src/components/song/song-queue/SongQueue.tsx index 29ab8c5..2a9d6a5 100644 --- a/src/renderer/src/components/song/song-queue/SongQueue.tsx +++ b/src/renderer/src/components/song/song-queue/SongQueue.tsx @@ -118,4 +118,4 @@ const SongQueue: Component = () => { ); }; -export default SongQueue; \ No newline at end of file +export default SongQueue; diff --git a/src/renderer/src/scenes/main-scene/MainScene.tsx b/src/renderer/src/scenes/main-scene/MainScene.tsx index 5a414ff..e3ca17b 100644 --- a/src/renderer/src/scenes/main-scene/MainScene.tsx +++ b/src/renderer/src/scenes/main-scene/MainScene.tsx @@ -26,7 +26,11 @@ const MainScene: Component = () => {
- +
); @@ -41,7 +45,7 @@ const Nav: Component = () => {
@@ -58,11 +62,13 @@ const NavItem: Component = ({ children, value, icon }) => { return ( diff --git a/tailwind.config.js b/tailwind.config.js index bf1899d..6842bb3 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,23 +1,21 @@ /** @type {import('tailwindcss').Config} */ export default { - content: [ - "./src/**/*.{js,ts,jsx,tsx}", - ], + content: ["./src/**/*.{js,ts,jsx,tsx}"], theme: { extend: { colors: { - 'thick-material': 'var(--color-thick-material)', - 'regular-material': 'var(--color-regular-material)', - 'text': 'var(--color-text)', - 'subtext': 'var(--color-subtext)', - 'stroke': 'var(--color-stroke)', - 'overlay': 'var(--color-overlay)', - 'accent': 'var(--color-accent)', - 'surface': 'var(--color-surface)', - 'black': 'var(--color-black)', - 'red': 'var(--color-red)', - 'green': 'var(--color-green)', - 'thin-material': 'var(--color-thin-material)', + "thick-material": "var(--color-thick-material)", + "regular-material": "var(--color-regular-material)", + text: "var(--color-text)", + subtext: "var(--color-subtext)", + stroke: "var(--color-stroke)", + overlay: "var(--color-overlay)", + accent: "var(--color-accent)", + surface: "var(--color-surface)", + black: "var(--color-black)", + red: "var(--color-red)", + green: "var(--color-green)", + "thin-material": "var(--color-thin-material)", }, }, }, @@ -25,5 +23,5 @@ export default { extend: {}, }, plugins: [], - darkMode: 'media', // or 'class' if you prefer manual dark mode switching -} + darkMode: "media", // or 'class' if you prefer manual dark mode switching +};