-
Notifications
You must be signed in to change notification settings - Fork 110
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
RSamaium
committed
Dec 20, 2024
1 parent
35a42cc
commit b7e17cd
Showing
9 changed files
with
1,129 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,5 @@ dist-ssr | |
lib | ||
public | ||
cache | ||
.vitepress | ||
.vitepress/dist | ||
.vitepress/cache |
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,8 @@ | ||
import DefaultTheme from "vitepress/theme"; | ||
|
||
export default { | ||
...DefaultTheme, | ||
enhanceApp(ctx) { | ||
DefaultTheme.enhanceApp(ctx); | ||
}, | ||
}; |
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,5 +1,47 @@ | ||
# Installation | ||
|
||
```bash | ||
npm install canvasengine | ||
``` | ||
npx degit RSamaium/CanvasEngine/starter my-project | ||
cd my-project | ||
npm install | ||
npm run dev # and go to localhost:5173 | ||
``` | ||
|
||
Try CanvasEngine | ||
|
||
|
||
::: sandbox {deps="vue3-toastify: latest"} | ||
|
||
```vue App.vue | ||
<template> | ||
<div> | ||
<button @click="notify">Notify !</button> | ||
</div> | ||
</template> | ||
<script setup> | ||
import { toast } from 'vue3-toastify'; | ||
const notify = () => { | ||
toast("Wow so easy !", { | ||
autoClose: 1000, | ||
}); // ToastOptions | ||
} | ||
</script> | ||
``` | ||
|
||
```js /src/main.js [active] [readOnly] | ||
import App from './App.vue'; | ||
import { createApp } from 'vue'; | ||
import Vue3Toasity from 'vue3-toastify'; | ||
import 'vue3-toastify/dist/index.css'; | ||
|
||
createApp(App).use( | ||
Vue3Toasity, | ||
{ | ||
autoClose: 3000, | ||
}, | ||
).mount('#app'); | ||
``` | ||
|
||
::: |
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 |
---|---|---|
|
@@ -13,5 +13,6 @@ | |
"dependencies": { | ||
"vite": "^6.0.3", | ||
"vitepress": "^1.5.0" | ||
} | ||
}, | ||
"type": "module" | ||
} |
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
Oops, something went wrong.