Skip to content

Commit cfdfb3f

Browse files
CopilotBrooooooklyn
andcommitted
fix(docs): apply oxfmt formatting to fix lint/fmt issues
Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>
1 parent 603ea94 commit cfdfb3f

38 files changed

Lines changed: 605 additions & 605 deletions

docs/.vitepress/config.mts

Lines changed: 326 additions & 326 deletions
Large diffs are not rendered by default.

docs/.vitepress/env.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
// Vue SFC module declaration
2-
declare module '*.vue' {
3-
import type { DefineComponent } from 'vue';
2+
declare module "*.vue" {
3+
import type { DefineComponent } from "vue";
44
const component: DefineComponent<{}, {}, unknown>;
55
export default component;
66
}
77

88
// Asset module declarations
9-
declare module '*.riv' {
9+
declare module "*.riv" {
1010
const src: string;
1111
export default src;
1212
}
1313

14-
declare module '*.svg' {
14+
declare module "*.svg" {
1515
const src: string;
1616
export default src;
1717
}
1818

19-
declare module '*.png' {
19+
declare module "*.png" {
2020
const src: string;
2121
export default src;
2222
}
2323

24-
declare module '*.jpg' {
24+
declare module "*.jpg" {
2525
const src: string;
2626
export default src;
2727
}

docs/.vitepress/theme/Layout.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<script setup lang="ts">
2-
import { onMounted, watch } from 'vue';
3-
import { useData } from 'vitepress';
4-
import BaseTheme from '@voidzero-dev/vitepress-theme/src/viteplus';
5-
import Header from './components/Header.vue';
6-
import Footer from './components/Footer.vue';
7-
import Home from './layouts/Home.vue';
2+
import { onMounted, watch } from "vue";
3+
import { useData } from "vitepress";
4+
import BaseTheme from "@voidzero-dev/vitepress-theme/src/viteplus";
5+
import Header from "./components/Header.vue";
6+
import Footer from "./components/Footer.vue";
7+
import Home from "./layouts/Home.vue";
88
// import Error404 from "./layouts/Error404.vue";
99
1010
const { frontmatter } = useData();
1111
const { Layout: BaseLayout } = BaseTheme;
1212
1313
const ensureHomeLight = () => {
14-
if (frontmatter.value?.layout !== 'home' || typeof document === 'undefined') {
14+
if (frontmatter.value?.layout !== "home" || typeof document === "undefined") {
1515
return;
1616
}
1717
18-
document.documentElement.classList.remove('dark');
18+
document.documentElement.classList.remove("dark");
1919
};
2020
2121
onMounted(() => {

docs/.vitepress/theme/components/Footer.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<template>
22
<footer class="bg-primary" data-theme="dark">
33
<Sponsors
4-
description="Vite+ is free and open source, made possible by a full-time team and passionate open-source contributors."
5-
sponsorLinkText="Contribute"
6-
sponsorLink="https://github.com/voidzero-dev/vite-plus/blob/main/CONTRIBUTING.md"
7-
/>
4+
description="Vite+ is free and open source, made possible by a full-time team and passionate open-source contributors."
5+
sponsorLinkText="Contribute"
6+
sponsorLink="https://github.com/voidzero-dev/vite-plus/blob/main/CONTRIBUTING.md"
7+
/>
88
<section class="wrapper">
99
<div
1010
class="bg-wine bg-[url(/cta-background.jpg)] bg-cover py-16 md:py-30 px-5 md:px-0 overflow-clip flex flex-col items-center justify-center gap-8 md:gap-12"
@@ -127,5 +127,5 @@
127127

128128
<style scoped></style>
129129
<script setup lang="ts">
130-
import Sponsors from '@components/oss/Sponsors.vue'
130+
import Sponsors from "@components/oss/Sponsors.vue";
131131
</script>

docs/.vitepress/theme/components/Header.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2-
import { ref, onMounted, onUnmounted } from 'vue';
2+
import { ref, onMounted, onUnmounted } from "vue";
33
4-
const nav = [{ text: 'Docs', link: '/vite/guide' }];
4+
const nav = [{ text: "Docs", link: "/vite/guide" }];
55
66
// Mobile menu state
77
const mobileMenuOpen = ref(false);
@@ -10,21 +10,21 @@ const expandedMobileItem = ref<string | null>(null);
1010
// Body scroll lock for mobile menu
1111
const lockBodyScroll = () => {
1212
const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
13-
document.body.style.overflow = 'hidden';
14-
document.body.style.position = 'fixed';
15-
document.body.style.width = '100%';
16-
document.body.style.top = '0';
13+
document.body.style.overflow = "hidden";
14+
document.body.style.position = "fixed";
15+
document.body.style.width = "100%";
16+
document.body.style.top = "0";
1717
if (scrollbarWidth > 0) {
1818
document.body.style.paddingRight = `${scrollbarWidth}px`;
1919
}
2020
};
2121
2222
const unlockBodyScroll = () => {
23-
document.body.style.overflow = '';
24-
document.body.style.position = '';
25-
document.body.style.width = '';
26-
document.body.style.top = '';
27-
document.body.style.paddingRight = '';
23+
document.body.style.overflow = "";
24+
document.body.style.position = "";
25+
document.body.style.width = "";
26+
document.body.style.top = "";
27+
document.body.style.paddingRight = "";
2828
};
2929
3030
// Close mobile menu
@@ -36,7 +36,7 @@ const closeMobileMenu = () => {
3636
3737
// Handle keyboard navigation
3838
const handleKeydown = (e: KeyboardEvent) => {
39-
if (e.key === 'Escape') {
39+
if (e.key === "Escape") {
4040
if (mobileMenuOpen.value) {
4141
closeMobileMenu();
4242
}
@@ -56,11 +56,11 @@ const toggleMobileMenu = () => {
5656
};
5757
5858
onMounted(() => {
59-
document.addEventListener('keydown', handleKeydown);
59+
document.addEventListener("keydown", handleKeydown);
6060
});
6161
6262
onUnmounted(() => {
63-
document.removeEventListener('keydown', handleKeydown);
63+
document.removeEventListener("keydown", handleKeydown);
6464
unlockBodyScroll();
6565
});
6666
</script>

docs/.vitepress/theme/components/home/CoreFeature3Col.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<script setup lang="ts">
2-
import StackedBlock from './StackedBlock.vue';
3-
import nodeIcon from '@local-assets/icons/node.png';
4-
import bunIcon from '@local-assets/icons/bun.png';
5-
import denoIcon from '@local-assets/icons/deno.png';
6-
import reactIcon from '@local-assets/icons/react.png';
7-
import vueIcon from '@local-assets/icons/vue.png';
8-
import svelteIcon from '@local-assets/icons/svelte.png';
9-
import solidIcon from '@local-assets/icons/solid.png';
10-
import superSetImage from '@local-assets/superset.png';
2+
import StackedBlock from "./StackedBlock.vue";
3+
import nodeIcon from "@local-assets/icons/node.png";
4+
import bunIcon from "@local-assets/icons/bun.png";
5+
import denoIcon from "@local-assets/icons/deno.png";
6+
import reactIcon from "@local-assets/icons/react.png";
7+
import vueIcon from "@local-assets/icons/vue.png";
8+
import svelteIcon from "@local-assets/icons/svelte.png";
9+
import solidIcon from "@local-assets/icons/solid.png";
10+
import superSetImage from "@local-assets/superset.png";
1111
</script>
1212

1313
<template>

docs/.vitepress/theme/components/home/FeatureDevBuild.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2-
import viteIcon from '@assets/icons/vite-light.svg';
3-
import rolldownIcon from '@assets/icons/rolldown-light.svg';
4-
import devTerminal from '@local-assets/terminal-features/dev.svg';
2+
import viteIcon from "@assets/icons/vite-light.svg";
3+
import rolldownIcon from "@assets/icons/rolldown-light.svg";
4+
import devTerminal from "@local-assets/terminal-features/dev.svg";
55
</script>
66

77
<template>
@@ -62,7 +62,7 @@ import devTerminal from '@local-assets/terminal-features/dev.svg';
6262

6363
<style scoped>
6464
.bg-vite {
65-
background-image: url('@local-assets/backgrounds/vite.jpg');
65+
background-image: url("@local-assets/backgrounds/vite.jpg");
6666
background-size: cover;
6767
background-position: center;
6868
}

docs/.vitepress/theme/components/home/FeatureFormat.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import oxcIcon from '@assets/icons/oxc-light.svg';
3-
import formatTerminal from '@local-assets/terminal-features/format.svg';
2+
import oxcIcon from "@assets/icons/oxc-light.svg";
3+
import formatTerminal from "@local-assets/terminal-features/format.svg";
44
</script>
55
<template>
66
<section id="feature-format" class="wrapper border-t grid md:grid-cols-2 divide-x divide-nickel">
@@ -40,7 +40,7 @@ import formatTerminal from '@local-assets/terminal-features/format.svg';
4040
</template>
4141
<style scoped>
4242
.bg-oxc {
43-
background-image: url('@local-assets/backgrounds/oxc.jpg');
43+
background-image: url("@local-assets/backgrounds/oxc.jpg");
4444
background-size: cover;
4545
background-position: center;
4646
}

docs/.vitepress/theme/components/home/FeatureLib.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import rolldownIcon from '@assets/icons/rolldown-light.svg';
3-
import libTerminal from '@local-assets/terminal-features/lib.svg';
2+
import rolldownIcon from "@assets/icons/rolldown-light.svg";
3+
import libTerminal from "@local-assets/terminal-features/lib.svg";
44
</script>
55

66
<template>
@@ -50,7 +50,7 @@ import libTerminal from '@local-assets/terminal-features/lib.svg';
5050

5151
<style scoped>
5252
.bg-rolldown {
53-
background-image: url('@local-assets/backgrounds/rolldown.jpg');
53+
background-image: url("@local-assets/backgrounds/rolldown.jpg");
5454
background-size: cover;
5555
background-position: center;
5656
}

docs/.vitepress/theme/components/home/FeatureLint.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import oxcIcon from '@assets/icons/oxc-light.svg';
3-
import lintTerminal from '@local-assets/terminal-features/lint.svg';
2+
import oxcIcon from "@assets/icons/oxc-light.svg";
3+
import lintTerminal from "@local-assets/terminal-features/lint.svg";
44
</script>
55
<template>
66
<section id="feature-lint" class="wrapper border-t grid md:grid-cols-2 divide-x divide-nickel">
@@ -44,7 +44,7 @@ import lintTerminal from '@local-assets/terminal-features/lint.svg';
4444
</template>
4545
<style scoped>
4646
.bg-oxc {
47-
background-image: url('@local-assets/backgrounds/oxc.jpg');
47+
background-image: url("@local-assets/backgrounds/oxc.jpg");
4848
background-size: cover;
4949
background-position: center;
5050
}

0 commit comments

Comments
 (0)