This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
4,578 additions
and
186 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ yarn-error.log* | |
.yarn/cache | ||
.yarn/install-state.gz | ||
|
||
server | ||
build | ||
|
||
*.mts.timestamp-* | ||
*.mts.timestamp-* | ||
|
||
.nuxt |
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,4 @@ | ||
<template> | ||
<btn1 /> | ||
<btn2 /> | ||
</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,22 @@ | ||
<template> | ||
<button :class="stylex(btns.button, isPressed && btns.pressed)" @click="isPressed = !isPressed">click me</button> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import stylex from '@stylexjs/stylex' | ||
const btns = stylex.create({ | ||
button: { | ||
transition: '.150s all', | ||
border: '3px solid blue', | ||
backgroundColor: 'CornflowerBlue' | ||
}, | ||
pressed: { | ||
backgroundColor: 'aquamarine' | ||
} | ||
}) | ||
</script> | ||
|
||
<script setup lang="ts"> | ||
const isPressed = ref(false) | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<button :class="stylex(btns.button, isPressed && btns.pressed)" @click="isPressed = !isPressed">click me</button> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import stylex from '@stylexjs/stylex' | ||
const btns = stylex.create({ | ||
button: { | ||
transition: '.150s all', | ||
border: '3px solid red', | ||
backgroundColor: 'HotPink' | ||
}, | ||
pressed: { | ||
backgroundColor: 'pink' | ||
} | ||
}) | ||
</script> | ||
|
||
<script setup lang="ts"> | ||
const isPressed = ref(false) | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { stylexPlugin } from 'vite-plugin-stylex-dev' | ||
|
||
// https://nuxt.com/docs/api/configuration/nuxt-config | ||
export default defineNuxtConfig({ | ||
vite: { | ||
plugins: [stylexPlugin()] | ||
} | ||
}) |
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,18 @@ | ||
{ | ||
"name": "nuxt-demo", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "nuxt dev" | ||
}, | ||
"devDependencies": { | ||
"@nuxt/kit": "^3.8.2", | ||
"@stylexjs/stylex": "^0.3.0", | ||
"@unhead/shared": "^1.8.9", | ||
"nuxt": "^3.8.2", | ||
"ufo": "^1.3.2", | ||
"unhead": "^1.8.9", | ||
"vite-plugin-stylex-dev": "workspace:*", | ||
"vue": "^3.3.12", | ||
"vue-router": "^4.2.5" | ||
} | ||
} |
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,3 @@ | ||
{ | ||
"extends":"./.nuxt/tsconfig.json" | ||
} |
Oops, something went wrong.