{data.message}
;
}
diff --git a/redis-upstash-session/remix.config.js b/redis-upstash-session/remix.config.js
index adf2a0b5..ca00ba94 100644
--- a/redis-upstash-session/remix.config.js
+++ b/redis-upstash-session/remix.config.js
@@ -1,8 +1,11 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
+ future: {
+ v2_routeConvention: true,
+ },
ignoredRouteFiles: ["**/.*"],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
- // serverBuildPath: "build/index.js",
// publicPath: "/build/",
+ // serverBuildPath: "build/index.js",
};
diff --git a/remix-auth-auth0/app/routes/index.tsx b/remix-auth-auth0/app/routes/_index.tsx
similarity index 95%
rename from remix-auth-auth0/app/routes/index.tsx
rename to remix-auth-auth0/app/routes/_index.tsx
index 0ef2a31f..81ab50e6 100644
--- a/remix-auth-auth0/app/routes/index.tsx
+++ b/remix-auth-auth0/app/routes/_index.tsx
@@ -12,7 +12,7 @@ export const loader = async ({ request }: LoaderArgs) => {
return json({ error });
};
-export default function Screen() {
+export default function Index() {
const { error } = useLoaderDataHello World!
;
+ return Welcome to Remix
; } diff --git a/sass/remix.config.js b/sass/remix.config.js index adf2a0b5..ca00ba94 100644 --- a/sass/remix.config.js +++ b/sass/remix.config.js @@ -1,8 +1,11 @@ /** @type {import('@remix-run/dev').AppConfig} */ module.exports = { + future: { + v2_routeConvention: true, + }, ignoredRouteFiles: ["**/.*"], // appDirectory: "app", // assetsBuildDirectory: "public/build", - // serverBuildPath: "build/index.js", // publicPath: "/build/", + // serverBuildPath: "build/index.js", }; diff --git a/sass/styles/global.scss b/sass/styles/global.scss index 927a5c41..958e0d0e 100644 --- a/sass/styles/global.scss +++ b/sass/styles/global.scss @@ -1,6 +1,6 @@ $font-stack: system-ui, sans-serif; $primary-color: #333; -$line-height: 1.4; +$line-height: 1.8; :root { color: $primary-color; diff --git a/search-input/app/routes/index.tsx b/search-input/app/routes/_index.tsx similarity index 100% rename from search-input/app/routes/index.tsx rename to search-input/app/routes/_index.tsx diff --git a/search-input/remix.config.js b/search-input/remix.config.js index adf2a0b5..ca00ba94 100644 --- a/search-input/remix.config.js +++ b/search-input/remix.config.js @@ -1,8 +1,11 @@ /** @type {import('@remix-run/dev').AppConfig} */ module.exports = { + future: { + v2_routeConvention: true, + }, ignoredRouteFiles: ["**/.*"], // appDirectory: "app", // assetsBuildDirectory: "public/build", - // serverBuildPath: "build/index.js", // publicPath: "/build/", + // serverBuildPath: "build/index.js", }; diff --git a/session-flash/README.md b/session-flash/README.md index fad38908..be28a511 100644 --- a/session-flash/README.md +++ b/session-flash/README.md @@ -10,7 +10,7 @@ Open this example on [CodeSandbox](https://codesandbox.com): ## Example -This example shows how to create a simple alert message. Check [app/routes/index.tsx](app/routes/index.tsx) to see the flash message in action: +This example shows how to create a simple alert message. Check [app/routes/_index.tsx](app/routes/_index.tsx) to see the flash message in action: Implementation logic: diff --git a/session-flash/app/routes/index.tsx b/session-flash/app/routes/_index.tsx similarity index 100% rename from session-flash/app/routes/index.tsx rename to session-flash/app/routes/_index.tsx diff --git a/session-flash/remix.config.js b/session-flash/remix.config.js index adf2a0b5..ca00ba94 100644 --- a/session-flash/remix.config.js +++ b/session-flash/remix.config.js @@ -1,8 +1,11 @@ /** @type {import('@remix-run/dev').AppConfig} */ module.exports = { + future: { + v2_routeConvention: true, + }, ignoredRouteFiles: ["**/.*"], // appDirectory: "app", // assetsBuildDirectory: "public/build", - // serverBuildPath: "build/index.js", // publicPath: "/build/", + // serverBuildPath: "build/index.js", }; diff --git a/sharing-loader-data/README.md b/sharing-loader-data/README.md index f1fe26e4..0a75f6c6 100644 --- a/sharing-loader-data/README.md +++ b/sharing-loader-data/README.md @@ -13,7 +13,7 @@ Open this example on [CodeSandbox](https://codesandbox.com): This is a simple "workshop" app which has a "user" and a list of workshops. The user is loaded in the root loader and needed in the index route. The workshops are loaded in the workshops loader and then used in the individual workshop routes. - [app/root.tsx](./app/root.tsx) - This loads the user -- [app/routes/index.tsx](./app/routes/index.tsx) - This accesses the root loader data to display the user's name +- [app/routes/_index.tsx](./app/routes/_index.tsx) - This accesses the root loader data to display the user's name - [app/routes/workshops.tsx](./app/routes/workshops.tsx) - This loads the workshops to display them in a list of links - [app/routes/workshops/$workshopId.tsx](./app/routes/workshops/$workshopId.tsx) - This accesses the workshops loader data to display the workshop details diff --git a/sharing-loader-data/app/routes/index.tsx b/sharing-loader-data/app/routes/_index.tsx similarity index 100% rename from sharing-loader-data/app/routes/index.tsx rename to sharing-loader-data/app/routes/_index.tsx diff --git a/sharing-loader-data/app/routes/workshops/$workshopId.tsx b/sharing-loader-data/app/routes/workshops.$workshopId.tsx similarity index 100% rename from sharing-loader-data/app/routes/workshops/$workshopId.tsx rename to sharing-loader-data/app/routes/workshops.$workshopId.tsx diff --git a/sharing-loader-data/app/routes/workshops/index.tsx b/sharing-loader-data/app/routes/workshops._index.tsx similarity index 100% rename from sharing-loader-data/app/routes/workshops/index.tsx rename to sharing-loader-data/app/routes/workshops._index.tsx diff --git a/sharing-loader-data/remix.config.js b/sharing-loader-data/remix.config.js index adf2a0b5..ca00ba94 100644 --- a/sharing-loader-data/remix.config.js +++ b/sharing-loader-data/remix.config.js @@ -1,8 +1,11 @@ /** @type {import('@remix-run/dev').AppConfig} */ module.exports = { + future: { + v2_routeConvention: true, + }, ignoredRouteFiles: ["**/.*"], // appDirectory: "app", // assetsBuildDirectory: "public/build", - // serverBuildPath: "build/index.js", // publicPath: "/build/", + // serverBuildPath: "build/index.js", }; diff --git a/socket.io/app/routes/index.tsx b/socket.io/app/routes/_index.tsx similarity index 98% rename from socket.io/app/routes/index.tsx rename to socket.io/app/routes/_index.tsx index 346e1036..8d79b2d1 100644 --- a/socket.io/app/routes/index.tsx +++ b/socket.io/app/routes/_index.tsx @@ -16,7 +16,7 @@ export default function Index() { }, [socket]); return ( -
+