From 26e1d3a52688fd6175d13e3d3bc7dfd531822988 Mon Sep 17 00:00:00 2001 From: Ryu <114303361+ryuapp@users.noreply.github.com> Date: Wed, 13 May 2026 01:50:36 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Add=20oxfmt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 2 +- .github/workflows/release.yaml | 2 +- components/Pagination.vue | 5 +- deno.jsonc | 12 +-- deno.lock | 130 +++++++++++++++++++++++++++++++++ example.md | 41 +++++++---- global-bottom.vue | 14 ++-- layouts/profile.vue | 24 +++--- layouts/quote.vue | 10 +-- oxfmt.config.ts | 8 ++ styles/layout.css | 56 +++++++++----- 11 files changed, 241 insertions(+), 63 deletions(-) create mode 100644 oxfmt.config.ts diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9637f93..b1dab19 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,6 +18,6 @@ jobs: cache: true - name: Format - run: deno fmt --check + run: deno task format:check - name: Build run: deno task build diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 44c6caf..7d30926 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,7 +20,7 @@ jobs: uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4 - name: Format - run: deno fmt --check + run: deno task format:check - name: Build run: deno task build diff --git a/components/Pagination.vue b/components/Pagination.vue index 8379652..2d3a463 100644 --- a/components/Pagination.vue +++ b/components/Pagination.vue @@ -1,6 +1,9 @@ diff --git a/layouts/profile.vue b/layouts/profile.vue index af4f08c..4b62d17 100644 --- a/layouts/profile.vue +++ b/layouts/profile.vue @@ -1,15 +1,15 @@ \ No newline at end of file + + diff --git a/layouts/quote.vue b/layouts/quote.vue index 230c20b..f262dce 100644 --- a/layouts/quote.vue +++ b/layouts/quote.vue @@ -1,7 +1,7 @@ \ No newline at end of file + + diff --git a/oxfmt.config.ts b/oxfmt.config.ts new file mode 100644 index 0000000..21a8dc6 --- /dev/null +++ b/oxfmt.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from "oxfmt"; + +export default defineConfig({ + sortImports: true, + sortTailwindcss: true, + sortPackageJson: false, + ignorePatterns: ["example.md"], +}); diff --git a/styles/layout.css b/styles/layout.css index eba7392..ea5f6e9 100644 --- a/styles/layout.css +++ b/styles/layout.css @@ -9,10 +9,22 @@ code, } .slidev-layout { - h1, h2, h3, h4, h5, h6, p, ul { + h1, + h2, + h3, + h4, + h5, + h6, + p, + ul { @apply text-zinc-700; } - h1, h2, h3, h4, h5, h6 { + h1, + h2, + h3, + h4, + h5, + h6 { @apply font-medium; } } @@ -37,27 +49,29 @@ code, .slidev-layout.cover, .slidev-layout.intro { - @apply h-full grid text-center; + @apply grid h-full text-center; h1 { @apply text-6xl leading-20; } h1 + p { - @apply -mt-2 text-zinc-600 mb-4; + @apply -mt-2 mb-4 text-zinc-600; } p { @apply text-2xl; } - p + h2, ul + h2, table + h2 { + p + h2, + ul + h2, + table + h2 { @apply mt-10; } } .slidev-layout.section { - @apply h-full grid; + @apply grid h-full; h1 { @apply text-5xl; @@ -68,9 +82,14 @@ code, } .slidev-layout.center { - @apply h-full grid text-center; + @apply grid h-full text-center; - h1, h2, h3, h4, h5, h6 { + h1, + h2, + h3, + h4, + h5, + h6 { @apply font-bold; } h1 { @@ -106,43 +125,46 @@ code, @apply mt-2; } blockquote { - @apply before:content-["“"] after:content-["”"] w-fit mx-auto text-zinc-900 bg-zinc-200 border-0 grid text-left; + @apply mx-auto grid w-fit border-0 bg-zinc-200 text-left text-zinc-900 before:content-["“"] after:content-["”"]; } - blockquote:before, blockquote:after { - @apply text-5xl font-bold text-zinc-600 justify-self-end font-serif; + blockquote:before, + blockquote:after { + @apply justify-self-end font-serif text-5xl font-bold text-zinc-600; } blockquote:before { @apply justify-self-start; } blockquote:after { - @apply justify-self-end pt-4 h-10; + @apply h-10 justify-self-end pt-4; } blockquote p { - @apply text-zinc-900 bg-zinc-200 border-0 text-xl px-6; + @apply border-0 bg-zinc-200 px-6 text-xl text-zinc-900; } blockquote p + footer { @apply mt-2; } blockquote footer { - @apply text-right text-zinc-600 text-lg px-6; + @apply px-6 text-right text-lg text-zinc-600; } } .slidev-layout.end { - @apply bg-black h-full grid text-center; + @apply grid h-full bg-black text-center; h1 { @apply text-zinc-100; } h1 + p { - @apply -mt-2 text-zinc-100 mb-4; + @apply -mt-2 mb-4 text-zinc-100; } p { @apply text-2xl; } - p + h2, ul + h2, table + h2 { + p + h2, + ul + h2, + table + h2 { @apply mt-10; } }