Skip to content

Commit

Permalink
Add Vue 3 example
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyTim committed Dec 27, 2023
1 parent 8b24b32 commit 9d98bc1
Show file tree
Hide file tree
Showing 15 changed files with 1,786 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ If precision is not important, you can use `Wheel.spin()` to immediately start s

## Examples

- [Basic ESM usage](https://crazytim.github.io/spin-wheel/examples/esm)
- [Basic IIFE usage](https://crazytim.github.io/spin-wheel/examples/iife)
- [Basic ESM](https://crazytim.github.io/spin-wheel/examples/esm)
- [Basic IIFE](https://crazytim.github.io/spin-wheel/examples/iife)
- [Basic Vue3/Vite](https://crazytim.github.io/spin-wheel/examples/vue3/dist)
- [Spin to a specific item](https://crazytim.github.io/spin-wheel/examples/spin-to-item)
- [Themes](https://crazytim.github.io/spin-wheel/examples/themes)
- [Developer playground (for testing and troubleshooting)](https://crazytim.github.io/spin-wheel/examples/playground)
Expand Down
1 change: 1 addition & 0 deletions examples/vue3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
13 changes: 13 additions & 0 deletions examples/vue3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# spin-wheel-example-vue

This example was scaffolded using `npm create vue@latest`.

```sh
npm install

# Compile and Hot-Reload for Development
npm run dev

# Compile and Minify for Production
npm run build
```
1 change: 1 addition & 0 deletions examples/vue3/dist/assets/index-omd7kyeh.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
html,body{margin:0}div[data-v-ea7ed219]{width:60vw;height:60vh;margin:auto}
1 change: 1 addition & 0 deletions examples/vue3/dist/assets/index-tSGuP98j.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions examples/vue3/dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Spin Wheel Example - Vue 3</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="icon" href="data:image/x-icon;," type="image/x-icon">
<script type="module" crossorigin src="/spin-wheel/examples/vue3/dist/assets/index-tSGuP98j.js"></script>
<link rel="stylesheet" crossorigin href="/spin-wheel/examples/vue3/dist/assets/index-omd7kyeh.css">
</head>
<body>
<div id="app"></div>
</body>
</html>
13 changes: 13 additions & 0 deletions examples/vue3/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Spin Wheel Example - Vue 3</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="icon" href="data:image/x-icon;," type="image/x-icon">
<script type="module" src="/src/main.js"></script>
</head>
<body>
<div id="app"></div>
</body>
</html>
8 changes: 8 additions & 0 deletions examples/vue3/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["node_modules", "dist"]
}
Loading

0 comments on commit 9d98bc1

Please sign in to comment.