Skip to content

Commit 1ccd696

Browse files
committed
Make a clean slate
1 parent 783d3ca commit 1ccd696

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+8
-1283
lines changed

app/root.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
1-
import type { LoaderFunctionArgs } from "@remix-run/node";
21
import {
32
Links,
43
Meta,
54
Outlet,
65
Scripts,
76
ScrollRestoration,
8-
useLoaderData,
97
} from "@remix-run/react";
108

11-
import { Header } from "shared/ui";
12-
import { getUserFromSession, CurrentUser } from "shared/api";
13-
14-
export const loader = ({ request }: LoaderFunctionArgs) =>
15-
getUserFromSession(request);
16-
179
export default function App() {
18-
const user = useLoaderData<typeof loader>();
19-
2010
return (
2111
<html lang="en">
2212
<head>
@@ -42,10 +32,7 @@ export default function App() {
4232
`}</style>
4333
</head>
4434
<body>
45-
<CurrentUser.Provider value={user}>
46-
<Header />
47-
<Outlet />
48-
</CurrentUser.Provider>
35+
<Outlet />
4936
<ScrollRestoration />
5037
<Scripts />
5138
</body>

app/routes/_index.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import type { MetaFunction } from "@remix-run/node";
2-
import { FeedPage } from "pages/feed";
3-
4-
export { loader } from "pages/feed";
52

63
export const meta: MetaFunction = () => {
74
return [{ title: "Conduit" }];
85
};
96

10-
export default FeedPage;
7+
export default function Index() {
8+
return (
9+
<div style={{ fontFamily: "system-ui, sans-serif", lineHeight: "1.8" }}>
10+
<h1>Welcome to the Feature-Sliced Design tutorial!</h1>
11+
</div>
12+
);
13+
}

app/routes/article.$slug.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/routes/editor.$slug.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/routes/editor._index.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/routes/login.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/routes/register.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

pages/article-edit/api/action.ts

Lines changed: 0 additions & 41 deletions
This file was deleted.

pages/article-edit/api/loader.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

pages/article-edit/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)