generated from unplugin/unplugin-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(runtime): fully rewrite and tests runtime features ; whole packa…
…ge fully covered
- Loading branch information
Showing
151 changed files
with
4,741 additions
and
2,251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,5 @@ | ||
<template> | ||
<main> | ||
<p> | ||
{{ color }} | ||
</p> | ||
<MyButton /> | ||
</main> | ||
<App> | ||
<NuxtPage /> | ||
</App> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import theme from '$pinceau/theme' | ||
const color = ref('blue') | ||
const colors = Object.keys(theme.color) | ||
const rand = array => array[Math.floor(Math.random() * array.length)]; | ||
let interval: NodeJS.Timeout | ||
onMounted(() => { | ||
if (interval) clearInterval(interval) | ||
interval = setInterval( | ||
() => { | ||
color.value = rand(colors) | ||
}, | ||
1000 | ||
) | ||
}) | ||
</script> | ||
|
||
<style lang="ts"> | ||
css({ | ||
'html, body, #__nuxt': { | ||
minHeight: '100vh', | ||
minWidth: '100vw' | ||
} | ||
}) | ||
</style> | ||
|
||
<style scoped lang="ts"> | ||
css({ | ||
main: { | ||
color: '$color.blue.1', | ||
backgroundColor: '$color.blue.9', | ||
minHeight: '100vh', | ||
minWidth: '100vw', | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
flexDirection: 'column', | ||
padding: '$space.16' | ||
}, | ||
p: { | ||
marginBottom: 24 | ||
} | ||
}) | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template> | ||
<div> | ||
<MyButton size="xl" color="green" /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<template> | ||
<main> | ||
<slot /> | ||
</main> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref, onMounted } from 'vue' | ||
import theme from '$pinceau/theme' | ||
const color = ref('blue') | ||
const colors = Object.keys(theme.color) | ||
const rand = (array: any[]) => array[Math.floor(Math.random() * array.length)]; | ||
let interval: NodeJS.Timeout | ||
onMounted(() => { | ||
if (interval) clearInterval(interval) | ||
interval = setInterval( | ||
() => { | ||
color.value = rand(colors) | ||
}, | ||
1000 | ||
) | ||
}) | ||
</script> | ||
|
||
<style lang="ts"> | ||
css({ | ||
'html, body, #__nuxt': { | ||
minHeight: '100vh', | ||
minWidth: '100vw' | ||
} | ||
}) | ||
</style> | ||
|
||
<style scoped lang="ts"> | ||
css({ | ||
main: { | ||
color: '$color.blue.1', | ||
backgroundColor: '$color.blue.9', | ||
minHeight: '100vh', | ||
minWidth: '100vw', | ||
padding: '$space.16' | ||
} | ||
}) | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,17 @@ | ||
<template> | ||
<main class="main"> | ||
<Navigation /> | ||
<App class="main"> | ||
<div | ||
:styled="{ | ||
width: '100%', | ||
}" | ||
> | ||
<Navigation /> | ||
</div> | ||
|
||
<RouterView /> | ||
</main> | ||
</App> | ||
</template> | ||
|
||
|
||
<style lang="ts"> | ||
css({ | ||
'html, body, #app': { | ||
height: '100vh', | ||
width: '100vw', | ||
backgroundColor: '$color.blue.2' | ||
}, | ||
}) | ||
</style> | ||
|
||
<style scoped lang="ts"> | ||
css({ | ||
'.main': { | ||
width: '100%', | ||
height: '100%', | ||
padding: '$space.8', | ||
} | ||
}) | ||
</style> | ||
<script lang="ts" setup> | ||
import App from '../shared/App.vue' | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.