From 290de81fb8a3933f0fb91574d0c079983e620e52 Mon Sep 17 00:00:00 2001 From: ZOASR <44146518+ZOASR@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:12:25 +0200 Subject: [PATCH] dev: renamed monorepo to @lastfm-viewer --- package.json | 8 ++++---- src/components/CardFooter/CardFooter.tsx | 2 +- src/components/ErrorView/ErrorView.tsx | 4 ++-- src/components/PastTracks/PastTracks.tsx | 8 ++++---- src/components/SolidLastFMViewer.tsx | 4 ++-- src/components/TrackProgressBar/TrackProgressBar.tsx | 2 +- src/components/useLastfmViewer.tsx | 4 ++-- src/index.tsx | 2 +- tailwind.config.js | 2 +- tsconfig.json | 2 +- vite.config.ts | 2 +- 11 files changed, 20 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 88a6d1a..7204779 100644 --- a/package.json +++ b/package.json @@ -49,9 +49,9 @@ "typescript": "^5.0.2", "vite": "^5.0.10", "vite-plugin-solid": "^2.7.0", - "@repo/vite-config": "workspace:*", - "@repo/tailwind-config": "workspace:*", - "@repo/utils": "workspace:*", - "@repo/ui": "workspace:*" + "@lastfm-viewer/vite-config": "workspace:*", + "@lastfm-viewer/tailwind-config": "workspace:*", + "@lastfm-viewer/utils": "workspace:*", + "@lastfm-viewer/ui": "workspace:*" } } \ No newline at end of file diff --git a/src/components/CardFooter/CardFooter.tsx b/src/components/CardFooter/CardFooter.tsx index 7375778..ebcfb30 100644 --- a/src/components/CardFooter/CardFooter.tsx +++ b/src/components/CardFooter/CardFooter.tsx @@ -3,7 +3,7 @@ import { FaBrandsLastfm, FaRegularUser } from "solid-icons/fa"; import { SiMusicbrainz } from "solid-icons/si"; import { useContext } from "solid-js"; -import styles from "@repo/ui/CardFooter.module.css"; +import styles from "@lastfm-viewer/ui/CardFooter.module.css"; const CardFooter = ({ user }: { user: string }) => { const context = useContext(lfmContext); diff --git a/src/components/ErrorView/ErrorView.tsx b/src/components/ErrorView/ErrorView.tsx index 8e4d8b4..75a39c8 100644 --- a/src/components/ErrorView/ErrorView.tsx +++ b/src/components/ErrorView/ErrorView.tsx @@ -1,5 +1,5 @@ -import styles from "@repo/ui/ErrorView.module.css"; -import { unexpectedErrors } from "@repo/utils/utils"; +import styles from "@lastfm-viewer/ui/ErrorView.module.css"; +import { unexpectedErrors } from "@lastfm-viewer/utils/utils"; const ErrorView = ({ message }: { message: string }) => { return ( diff --git a/src/components/PastTracks/PastTracks.tsx b/src/components/PastTracks/PastTracks.tsx index 7d93e6a..9614b0b 100644 --- a/src/components/PastTracks/PastTracks.tsx +++ b/src/components/PastTracks/PastTracks.tsx @@ -3,14 +3,14 @@ import { For, useContext } from "solid-js"; import { FaRegularUser } from "solid-icons/fa"; import { IoCalendarClearOutline } from "solid-icons/io"; -import { cloneArray } from "@repo/utils/utils"; -import { Track } from "@repo/utils/MBtypes"; -import { TrackInfo } from "@repo/utils/types"; +import { cloneArray } from "@lastfm-viewer/utils/utils"; +import { Track } from "@lastfm-viewer/utils/MBtypes"; +import { TrackInfo } from "@lastfm-viewer/utils/types"; import { lfmContext } from "../SolidLastFMViewer"; import LoadingSkeleton from "../LoadingSkeleton/LoadingSkeleton"; -import styles from "@repo/ui/PastTracks.module.css"; +import styles from "@lastfm-viewer/ui/PastTracks.module.css"; const PastTracks = () => { const context = useContext(lfmContext); diff --git a/src/components/SolidLastFMViewer.tsx b/src/components/SolidLastFMViewer.tsx index a488e8c..54a3099 100644 --- a/src/components/SolidLastFMViewer.tsx +++ b/src/components/SolidLastFMViewer.tsx @@ -10,8 +10,8 @@ import { lfmvHook, useLastfmViewer } from "./useLastfmViewer"; import ErrorView from "./ErrorView/ErrorView"; import LoadingSkeleton from "./LoadingSkeleton/LoadingSkeleton"; -import styles from "@repo/ui/LastFMViewer.module.css"; -import "@repo/ui"; +import styles from "@lastfm-viewer/ui/LastFMViewer.module.css"; +import "@lastfm-viewer/ui"; import CardFooter from "./CardFooter/CardFooter"; export interface Props { diff --git a/src/components/TrackProgressBar/TrackProgressBar.tsx b/src/components/TrackProgressBar/TrackProgressBar.tsx index fd73f9b..5cba01a 100644 --- a/src/components/TrackProgressBar/TrackProgressBar.tsx +++ b/src/components/TrackProgressBar/TrackProgressBar.tsx @@ -1,6 +1,6 @@ import { useContext } from "solid-js"; import { lfmContext } from "../SolidLastFMViewer"; -import styles from "@repo/ui/TrackProgressBar.module.css"; +import styles from "@lastfm-viewer/ui/TrackProgressBar.module.css"; const msToMins = (ms: number) => Math.floor(ms / 1000 / 60).toLocaleString(undefined, { diff --git a/src/components/useLastfmViewer.tsx b/src/components/useLastfmViewer.tsx index ed84f7a..c95817a 100644 --- a/src/components/useLastfmViewer.tsx +++ b/src/components/useLastfmViewer.tsx @@ -1,7 +1,7 @@ import { createEffect, createResource, onCleanup } from "solid-js"; import { createStore } from "solid-js/store"; -import { getLatestTrack } from "@repo/utils/lastfm"; -import { Colors, TrackInfo } from "@repo/utils/types"; +import { getLatestTrack } from "@lastfm-viewer/utils/lastfm"; +import { Colors, TrackInfo } from "@lastfm-viewer/utils/types"; import { Props } from "./SolidLastFMViewer"; export type lfmvHook = { diff --git a/src/index.tsx b/src/index.tsx index b19b95f..0f448be 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,7 +1,7 @@ /* @refresh reload */ import { render } from "solid-js/web"; -import "@repo/ui"; +import "@lastfm-viewer/ui"; import App from "./App"; diff --git a/tailwind.config.js b/tailwind.config.js index 9008c1b..9940dc8 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,6 +1,6 @@ /** @type {import('tailwindcss').Config} */ -import tailwindConfig from "@repo/tailwind-config"; +import tailwindConfig from "@lastfm-viewer/tailwind-config"; export default { content: ["./src/**/*.{js,jsx,ts,tsx}"], presets: [tailwindConfig] diff --git a/tsconfig.json b/tsconfig.json index 5d8c5a1..84f5570 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -31,7 +31,7 @@ "include": [ "src", "index.ts", - "@repo/utils/lastfm.ts" + "@lastfm-viewer/utils/lastfm.ts" ], "references": [ { diff --git a/vite.config.ts b/vite.config.ts index ba7e72f..201f52d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from "vite"; import solid from "vite-plugin-solid"; -import viteConfig from "@repo/vite-config/index.config"; +import viteConfig from "@lastfm-viewer/vite-config/index.config"; import path from "node:path";