refactor: rename logic to composables
This commit is contained in:
parent
d23489d50c
commit
c960566abf
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { isDark, toggleDark } from '~/logic'
|
import { isDark, toggleDark } from '~/composables'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@ -10,11 +10,11 @@ Check out [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) f
|
|||||||
For example, instead of having
|
For example, instead of having
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { isDark } from '../../../../logic'
|
import { isDark } from '../../../../composables'
|
||||||
```
|
```
|
||||||
|
|
||||||
now, you can use
|
now, you can use
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { isDark } from '~/logic'
|
import { isDark } from '~/composables'
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user