Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
sonofmagic committed Sep 18, 2024
1 parent 49f9d13 commit 18194e2
Show file tree
Hide file tree
Showing 133 changed files with 593 additions and 554 deletions.
4 changes: 2 additions & 2 deletions apps/astro-app/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from 'astro/config';
import { defineConfig } from 'astro/config'

// https://astro.build/config
export default defineConfig({});
export default defineConfig({})
10 changes: 5 additions & 5 deletions apps/astro-app/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "astro-app",
"private": true,
"version": "1.0.0",
"private": true,
"description": "",
"author": "",
"license": "ISC",
"keywords": [],
"main": "index.js",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"astro": "^2.10.12"
}
}
}
2 changes: 1 addition & 1 deletion apps/astro-app/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/// <reference types="astro/client" />
/// <reference types="astro/client" />
2 changes: 1 addition & 1 deletion apps/astro-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "astro/tsconfigs/strictest"
}
}
7 changes: 1 addition & 6 deletions apps/next-app-router/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
background: linear-gradient(to bottom, transparent, rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
}

@layer utilities {
Expand Down
2 changes: 1 addition & 1 deletion apps/next-app/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"root": true,
"extends": "next/core-web-vitals"
}
}
2 changes: 1 addition & 1 deletion apps/next-app/.tw-patch/tw-class-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@
"via-white",
"w-full",
"z-10"
]
]
2 changes: 1 addition & 1 deletion apps/next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"tailwindcss": "3.4.4",
"typescript": "5.5.3"
}
}
}
2 changes: 1 addition & 1 deletion apps/next-app/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '@/styles/globals.css'
import type { AppProps } from 'next/app'
import '@/styles/globals.css'

export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
Expand Down
2 changes: 1 addition & 1 deletion apps/next-app/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Html, Head, Main, NextScript } from 'next/document'
import { Head, Html, Main, NextScript } from 'next/document'

export default function Document() {
return (
Expand Down
4 changes: 2 additions & 2 deletions apps/next-app/pages/api/hello.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'

type Data = {
interface Data {
name: string
}

export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
res: NextApiResponse<Data>,
) {
res.status(200).json({ name: 'John Doe' })
}
22 changes: 16 additions & 6 deletions apps/next-app/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from 'next/image'
import { Inter } from 'next/font/google'
import Image from 'next/image'

const inter = Inter({ subsets: ['latin'] })

Expand All @@ -19,7 +19,9 @@ export default function Home() {
target="_blank"
rel="noopener noreferrer"
>
By <Image src="/vercel.svg" alt="Vercel Logo" className="dark:invert" width={100} height={24} priority />
By
{' '}
<Image src="/vercel.svg" alt="Vercel Logo" className="dark:invert" width={100} height={24} priority />
</a>
</div>
</div>
Expand All @@ -36,7 +38,9 @@ export default function Home() {
rel="noopener noreferrer"
>
<h2 className={` mb-3 text-2xl font-semibold`}>
Docs <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
Docs
{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
</h2>
<p className={` m-0 max-w-[30ch] text-sm opacity-50`}>Find in-depth information about Next.js features and API.</p>
</a>
Expand All @@ -48,7 +52,9 @@ export default function Home() {
rel="noopener noreferrer"
>
<h2 className={` mb-3 text-2xl font-semibold`}>
Learn <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
Learn
{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
</h2>
<p className={` m-0 max-w-[30ch] text-sm opacity-50`}>Learn about Next.js in an interactive course with&nbsp;quizzes!</p>
</a>
Expand All @@ -60,7 +66,9 @@ export default function Home() {
rel="noopener noreferrer"
>
<h2 className={` mb-3 text-2xl font-semibold`}>
Templates <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
Templates
{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
</h2>
<p className={` m-0 max-w-[30ch] text-sm opacity-50`}>Discover and deploy boilerplate example Next.js&nbsp;projects.</p>
</a>
Expand All @@ -72,7 +80,9 @@ export default function Home() {
rel="noopener noreferrer"
>
<h2 className={` mb-3 text-2xl font-semibold`}>
Deploy <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
Deploy
{' '}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
</h2>
<p className={` m-0 max-w-[30ch] text-sm opacity-50`}>Instantly deploy your Next.js site to a shareable URL with Vercel.</p>
</a>
Expand Down
7 changes: 1 addition & 6 deletions apps/next-app/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,5 @@

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
background: linear-gradient(to bottom, transparent, rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
}
2 changes: 1 addition & 1 deletion apps/nuxt-app/.tw-patch/tw-class-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@
"via-white",
"w-full",
"z-10"
]
]
6 changes: 3 additions & 3 deletions apps/nuxt-app/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
module.exports = {
content: ['./components/**/*.{js,vue,ts}', './layouts/**/*.vue', './pages/**/*.vue', './plugins/**/*.{js,ts}', './nuxt.config.{js,ts}', './app.vue'],
theme: {
extend: {}
extend: {},
},
plugins: [],
corePlugins: {
preflight: false
}
preflight: false,
},
}
20 changes: 10 additions & 10 deletions apps/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
packages:
- "next-app"
- "nuxt-app"
- "remix-app"
- "solid-app"
- "vite-lit"
- "vite-react"
- "vite-svelte"
- "vite-vanilla"
- "vite-vue"
- "webpack5-vue3"
- next-app
- nuxt-app
- remix-app
- solid-app
- vite-lit
- vite-react
- vite-svelte
- vite-vanilla
- vite-vue
- webpack5-vue3
4 changes: 2 additions & 2 deletions apps/remix-app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ["@remix-run/eslint-config", "@remix-run/eslint-config/node"],
};
extends: ['@remix-run/eslint-config', '@remix-run/eslint-config/node'],
}
2 changes: 1 addition & 1 deletion apps/remix-app/.tw-patch/tw-class-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@
"via-white",
"w-full",
"z-10"
]
]
12 changes: 6 additions & 6 deletions apps/remix-app/app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* For more information, see https://remix.run/docs/en/main/file-conventions/entry.client
*/

import { RemixBrowser } from "@remix-run/react";
import { startTransition, StrictMode } from "react";
import { hydrateRoot } from "react-dom/client";
import { RemixBrowser } from '@remix-run/react'
import { startTransition, StrictMode } from 'react'
import { hydrateRoot } from 'react-dom/client'

startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
);
});
</StrictMode>,
)
})
Loading

0 comments on commit 18194e2

Please sign in to comment.