Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
Change relative to absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
deminearchiver committed Nov 22, 2024
1 parent 3e6e848 commit 54583ae
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 19 deletions.
1 change: 1 addition & 0 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"devDependencies": {
"@tanstack/router-devtools": "^1.82.2",
"@tanstack/router-plugin": "^1.81.9",
"@types/node": "^22.9.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vanilla-extract/vite-plugin": "^4.0.17",
Expand Down
7 changes: 3 additions & 4 deletions apps/frontend/src/components/section-hello/section-hello.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { memo } from "react";
import { Button } from "../button";
import { BurgerMenu } from "../burger-menu";
import { Menu } from "../menu";
import { Button } from "~/components/button";
import { Menu } from "~/components/menu";

import img from "../../assets/images/sectionHello.png";
import img from "~/assets/images/sectionHello.png";
import "./_section-hello.sass";

const SectionHelloComponent = function SectionHello() {
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/routes/(auth)/_auth.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useState } from "react";

import styles from "./_auth.module.sass";
import clsx from "clsx";
import { OutletWithPresence } from "../../components/outlet";
import { OutletWithPresence } from "~/components/outlet";

export const Route = createLazyFileRoute("/(auth)/_auth")({
component: RouteComponent,
Expand Down
11 changes: 1 addition & 10 deletions apps/frontend/src/routes/__root.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Lenis } from "@star4/react";
import { createRootRoute, Link, Outlet } from "@tanstack/react-router";
import { createRootRoute, Outlet } from "@tanstack/react-router";
import { lazy, Suspense } from "react";

const TanStackRouterDevtools =
Expand All @@ -14,15 +14,6 @@ const TanStackRouterDevtools =
export const Route = createRootRoute({
component: () => (
<>
{/* <div>
<Link to="/">
Home
</Link>{' '}
<Link to="/about">
About
</Link>
</div>
<hr /> */}
<Lenis>
<Outlet />
<Suspense>
Expand Down
4 changes: 2 additions & 2 deletions apps/frontend/src/routes/index.lazy.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createLazyFileRoute } from "@tanstack/react-router";
import { SectionHello } from "../components/section-hello";
import { Hero } from "../components/hero";
import { SectionHello } from "~/components/section-hello";
import { Hero } from "~/components/hero";

export const Route = createLazyFileRoute("/")({
component: Index,
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/styles/theme.css.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assignVars, createGlobalTheme, globalStyle } from "@vanilla-extract/css";
import { theme, THEME } from "../theme";
import { theme, THEME } from "~/theme";

const LIGHT_THEME = theme("light");
const DARK_THEME = theme("dark");
Expand Down
4 changes: 4 additions & 0 deletions apps/frontend/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"strict": true,
"noImplicitOverride": true,
"forceConsistentCasingInFileNames": true,

"paths": {
"~/*": ["./src/*"],
},
},
"include": ["src"]
}
6 changes: 6 additions & 0 deletions apps/frontend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from "vite";
import { resolve } from "path";

// Renaming all imported plugins to follow our naming convention
import { TanStackRouterVite as tanStackRouter } from "@tanstack/router-plugin/vite";
Expand All @@ -14,4 +15,9 @@ export default defineConfig({
vanillaExtract(),
react(),
],
resolve: {
alias: {
"~": resolve(__dirname, "src"),
},
},
})
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ __metadata:
"@tanstack/react-router": "npm:^1.82.2"
"@tanstack/router-devtools": "npm:^1.82.2"
"@tanstack/router-plugin": "npm:^1.81.9"
"@types/node": "npm:^22.9.1"
"@types/react": "npm:^18.3.12"
"@types/react-dom": "npm:^18.3.1"
"@vanilla-extract/css": "npm:^1.16.0"
Expand Down Expand Up @@ -1516,7 +1517,7 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:*":
"@types/node@npm:*, @types/node@npm:^22.9.1":
version: 22.9.1
resolution: "@types/node@npm:22.9.1"
dependencies:
Expand Down

0 comments on commit 54583ae

Please sign in to comment.