chore: formatting and housekeeping

This commit is contained in:
taskylizard 2024-08-28 11:37:06 +00:00
parent 9d6f121ba9
commit 934ebcf65a
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
36 changed files with 272 additions and 499 deletions

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
import DefaultTheme from 'vitepress/theme'
import Sidebar from './components/SidebarCard.vue'
import Announcement from './components/Announcement.vue'
import Sidebar from './components/SidebarCard.vue'
const { isDark } = useData()

View file

@ -1,11 +1,8 @@
<script setup lang="ts">
import { computed, ref, reactive } from 'vue'
import {
feedbackOptions,
type FeedbackType,
getFeedbackOption
} from '../../types/Feedback'
import type { FeedbackType } from '../../types/Feedback'
import { useRouter } from 'vitepress'
import { computed, reactive, ref } from 'vue'
import { feedbackOptions, getFeedbackOption } from '../../types/Feedback'
const props = defineProps<{
heading?: string

View file

@ -1,6 +1,6 @@
<script setup>
import { ref } from 'vue'
import { Switch } from '@headlessui/vue'
import { ref } from 'vue'
const enabled = ref(false)
</script>

View file

@ -1,3 +1,7 @@
import type { NProgress } from 'nprogress'
import type { EnhanceAppContext } from 'vitepress'
import nprogress from 'nprogress'
/**
* Copyright (c) taskylizard. All rights reserved.
*
@ -13,8 +17,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import nprogress, { type NProgress } from 'nprogress'
import type { EnhanceAppContext } from 'vitepress'
export function loadProgress(
router: EnhanceAppContext['router']

View file

@ -13,13 +13,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import { loadProgress } from './composables/nprogress'
import Layout from './Layout.vue'
import Post from './PostLayout.vue'
import { loadProgress } from './composables/nprogress'
import './style.css'
import 'uno.css'
import Feedback from './components/Feedback.vue'
export default {

View file

@ -1,3 +1,7 @@
import type { ContentData } from 'vitepress'
import { createContentLoader } from 'vitepress'
import { groupBy } from '../utils'
/**
* Copyright (c) taskylizard. All rights reserved.
*
@ -13,8 +17,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createContentLoader, type ContentData } from 'vitepress'
import { groupBy } from '../utils'
interface Post {
title: string