Skip to content

Commit

Permalink
dev: renamed monorepo to @lastfm-viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
ZOASR committed Jan 4, 2024
1 parent 5c56186 commit 290de81
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*"
}
}
2 changes: 1 addition & 1 deletion src/components/CardFooter/CardFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/components/ErrorView/ErrorView.tsx
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
8 changes: 4 additions & 4 deletions src/components/PastTracks/PastTracks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/components/SolidLastFMViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/components/TrackProgressBar/TrackProgressBar.tsx
Original file line number Diff line number Diff line change
@@ -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, {
Expand Down
4 changes: 2 additions & 2 deletions src/components/useLastfmViewer.tsx
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @refresh reload */
import { render } from "solid-js/web";

import "@repo/ui";
import "@lastfm-viewer/ui";

import App from "./App";

Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"include": [
"src",
"index.ts",
"@repo/utils/lastfm.ts"
"@lastfm-viewer/utils/lastfm.ts"
],
"references": [
{
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down

0 comments on commit 290de81

Please sign in to comment.