From 1b736d658ff59e6dafceb8ae7126ff3e15c59678 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 29 May 2024 22:24:22 +0000 Subject: [PATCH] chore: format --- __template/package.json | 2 +- nprogress/app/root.tsx | 4 +--- nprogress/app/routes/_index.tsx | 2 +- nprogress/app/routes/slow-page.tsx | 22 +++++++++++----------- nprogress/package.json | 2 +- sass/app/styles/global.scss | 2 +- sass/package.json | 2 +- socket.io/app/root.tsx | 7 ++++--- socket.io/package.json | 2 +- socket.io/server.js | 8 +++----- tailwindcss/package.json | 2 +- tailwindcss/postcss.config.js | 12 ++++++------ unocss/package.json | 2 +- 13 files changed, 33 insertions(+), 36 deletions(-) diff --git a/__template/package.json b/__template/package.json index 1b2a0f23..ff7abadc 100644 --- a/__template/package.json +++ b/__template/package.json @@ -37,4 +37,4 @@ "engines": { "node": ">=20.0.0" } -} \ No newline at end of file +} diff --git a/nprogress/app/root.tsx b/nprogress/app/root.tsx index 47f789f8..d7883914 100644 --- a/nprogress/app/root.tsx +++ b/nprogress/app/root.tsx @@ -16,9 +16,7 @@ export const links: LinksFunction = () => [ { rel: "stylesheet", href: nProgressStyles }, ]; -export const meta: MetaFunction = () => ([ - { title: "New Remix App" }, -]); +export const meta: MetaFunction = () => [{ title: "New Remix App" }]; export function Layout({ children }: { children: React.ReactNode }) { return ( diff --git a/nprogress/app/routes/_index.tsx b/nprogress/app/routes/_index.tsx index 0fb19485..90b002bb 100644 --- a/nprogress/app/routes/_index.tsx +++ b/nprogress/app/routes/_index.tsx @@ -2,4 +2,4 @@ import { Link } from "@remix-run/react"; export default function Index() { return Slow Page; -} \ No newline at end of file +} diff --git a/nprogress/app/routes/slow-page.tsx b/nprogress/app/routes/slow-page.tsx index a899e906..b5e8273b 100644 --- a/nprogress/app/routes/slow-page.tsx +++ b/nprogress/app/routes/slow-page.tsx @@ -1,11 +1,11 @@ -import { json } from "@remix-run/node"; -import { Link } from "@remix-run/react"; - -export const loader = async () => { - await new Promise((resolve) => setTimeout(resolve, 1000)); - return json({}); -}; - -export default function Screen() { - return Home; -} \ No newline at end of file +import { json } from "@remix-run/node"; +import { Link } from "@remix-run/react"; + +export const loader = async () => { + await new Promise((resolve) => setTimeout(resolve, 1000)); + return json({}); +}; + +export default function Screen() { + return Home; +} diff --git a/nprogress/package.json b/nprogress/package.json index 320a695a..47dc8a7b 100644 --- a/nprogress/package.json +++ b/nprogress/package.json @@ -39,4 +39,4 @@ "engines": { "node": ">=18.0.0" } -} \ No newline at end of file +} diff --git a/sass/app/styles/global.scss b/sass/app/styles/global.scss index c2deee00..6133bda1 100644 --- a/sass/app/styles/global.scss +++ b/sass/app/styles/global.scss @@ -1,5 +1,5 @@ $font-stack: system-ui, sans-serif; -$primary-color: #D90000; +$primary-color: #d90000; $line-height: 1.8; :root { diff --git a/sass/package.json b/sass/package.json index b651d672..9ae23f45 100644 --- a/sass/package.json +++ b/sass/package.json @@ -38,4 +38,4 @@ "engines": { "node": ">=20.0.0" } -} \ No newline at end of file +} diff --git a/socket.io/app/root.tsx b/socket.io/app/root.tsx index e4a57ceb..98ab555e 100644 --- a/socket.io/app/root.tsx +++ b/socket.io/app/root.tsx @@ -48,7 +48,8 @@ export default function App() { }, [socket]); return ( - - - ); + + + + ); } diff --git a/socket.io/package.json b/socket.io/package.json index a47d7fa4..4eba36ac 100644 --- a/socket.io/package.json +++ b/socket.io/package.json @@ -46,4 +46,4 @@ "engines": { "node": ">=20.0.0" } -} \ No newline at end of file +} diff --git a/socket.io/server.js b/socket.io/server.js index f48f7abf..f00c1e88 100644 --- a/socket.io/server.js +++ b/socket.io/server.js @@ -12,7 +12,7 @@ const viteDevServer = : await import("vite").then((vite) => vite.createServer({ server: { middlewareMode: true }, - }) + }), ); const remixHandler = createRequestHandler({ @@ -43,7 +43,6 @@ io.on("connection", (socket) => { }); }); - app.use(compression()); // http://expressjs.com/en/advanced/best-practice-security.html#at-a-minimum-disable-x-powered-by-header @@ -56,7 +55,7 @@ if (viteDevServer) { // Vite fingerprints its assets so we can cache forever. app.use( "/assets", - express.static("build/client/assets", { immutable: true, maxAge: "1y" }) + express.static("build/client/assets", { immutable: true, maxAge: "1y" }), ); } @@ -73,6 +72,5 @@ const port = process.env.PORT || 3000; // instead of running listen on the Express app, do it on the HTTP server httpServer.listen(port, () => { - console.log(`Express server listening at http://localhost:${port}`) + console.log(`Express server listening at http://localhost:${port}`); }); - diff --git a/tailwindcss/package.json b/tailwindcss/package.json index b08970e2..03fc25ae 100644 --- a/tailwindcss/package.json +++ b/tailwindcss/package.json @@ -40,4 +40,4 @@ "engines": { "node": ">=20.0.0" } -} \ No newline at end of file +} diff --git a/tailwindcss/postcss.config.js b/tailwindcss/postcss.config.js index f021d9ef..2aa7205d 100644 --- a/tailwindcss/postcss.config.js +++ b/tailwindcss/postcss.config.js @@ -1,6 +1,6 @@ -export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, - } \ No newline at end of file +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/unocss/package.json b/unocss/package.json index 51fd696f..ee3f8162 100644 --- a/unocss/package.json +++ b/unocss/package.json @@ -46,4 +46,4 @@ "engines": { "node": ">=20.0.0" } -} \ No newline at end of file +}