Skip to content

Commit 8f118db

Browse files
committed
refactor: create a code folder
1 parent d9df5c5 commit 8f118db

File tree

13 files changed

+22
-12
lines changed

13 files changed

+22
-12
lines changed

src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
2-
import type { Language } from '@/types/language'
3-
import type { Size } from '@/types/size'
2+
import type { Language } from '@/code/types/language'
3+
import type { Size } from '@/code/types/size'
44
import { camera as cameraIcon, moon as moonIcon, sun as sunIcon } from '@/icons'
55
66
const app = tv({
File renamed without changes.
File renamed without changes.

src/components/Render.vue renamed to src/code/components/Render.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import type { Language } from '@/types/language'
2+
import type { Language } from '@/code/types/language'
33
44
const render = tv({
55
base: '',
File renamed without changes.

src/composables/useCode.ts renamed to src/code/composables/useCode.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { Language } from '@/types/language'
2-
import type { SearchParams } from '@/types/search-params'
3-
import type { Size } from '@/types/size'
1+
import type { Language } from '@/code/types/language'
2+
import type { SearchParams } from '@/code/types/search-params'
3+
import type { Size } from '@/code/types/size'
44

55
const defaultSize = 'md'
66
const size = ref<Size>(defaultSize)
File renamed without changes.

src/composables/useShiki.ts renamed to src/code/composables/useShiki.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Language } from '@/types/language'
1+
import type { Language } from '@/code/types/language'
22
import { createHighlighterCore, type HighlighterCore } from 'shiki/core'
33
import { createJavaScriptRegexEngine } from 'shiki/engine/javascript'
44

File renamed without changes.

src/types/search-params.ts renamed to src/code/types/search-params.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Language } from '@/types/language'
2-
import type { Size } from '@/types/size'
1+
import type { Language } from '@/code/types/language'
2+
import type { Size } from '@/code/types/size'
33

44
export interface SearchParams {
55
/**

0 commit comments

Comments
 (0)