Skip to content

Commit 4ae7703

Browse files
committed
docs: rebuild example dir
1 parent 6dbd832 commit 4ae7703

21 files changed

+16
-16
lines changed

example/public/audios/loop-1.mp3

2.59 MB
Binary file not shown.

example/public/audios/loop-1.wav

-28.5 MB
Binary file not shown.

example/public/audios/loop-2.mp3

354 KB
Binary file not shown.

example/public/audios/loop-2.wav

-5.7 MB
Binary file not shown.

example/public/audios/loop-3.mp3

546 KB
Binary file not shown.

example/public/audios/loop-3.wav

-8.81 MB
Binary file not shown.

example/public/audios/loop-4.mp3

215 KB
Binary file not shown.

example/public/audios/loop-4.wav

-3.46 MB
Binary file not shown.

example/public/audios/loop-5.mp3

201 KB
Binary file not shown.

example/public/audios/loop-5.wav

-3.23 MB
Binary file not shown.

example/public/audios/loop-6.mp3

232 KB
Binary file not shown.

example/public/audios/loop-6.wav

-3.73 MB
Binary file not shown.

example/public/audios/loop-7.mp3

751 KB
Binary file not shown.

example/public/audios/loop-7.wav

-8.08 MB
Binary file not shown.

example/public/audios/loop-8.mp3

683 KB
Binary file not shown.

example/public/audios/loop-8.wav

-7.34 MB
Binary file not shown.

example/public/audios/loop-9.mp3

232 KB
Binary file not shown.

example/public/audios/loop-9.wav

-3.73 MB
Binary file not shown.

example/src/App.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,39 @@ type Props = {
1111
const items = reactive<Props[]>([
1212
{
1313
id: nanoid(),
14-
url:`${import.meta.env.BASE_URL}audios/loop-1.wav`
14+
url:`${import.meta.env.BASE_URL}audios/loop-1.mp3`
1515
},
1616
{
1717
id: nanoid(),
18-
url:`${import.meta.env.BASE_URL}audios/loop-2.wav`
18+
url:`${import.meta.env.BASE_URL}audios/loop-2.mp3`
1919
},
2020
{
2121
id: nanoid(),
22-
url:`${import.meta.env.BASE_URL}audios/loop-3.wav`
22+
url:`${import.meta.env.BASE_URL}audios/loop-3.mp3`
2323
},
2424
{
2525
id: nanoid(),
26-
url:`${import.meta.env.BASE_URL}audios/loop-4.wav`
26+
url:`${import.meta.env.BASE_URL}audios/loop-4.mp3`
2727
},
2828
{
2929
id: nanoid(),
30-
url:`${import.meta.env.BASE_URL}audios/loop-5.wav`
30+
url:`${import.meta.env.BASE_URL}audios/loop-5.mp3`
3131
},
3232
{
3333
id: nanoid(),
34-
url:`${import.meta.env.BASE_URL}audios/loop-6.wav`
34+
url:`${import.meta.env.BASE_URL}audios/loop-6.mp3`
3535
},
3636
{
3737
id: nanoid(),
38-
url:`${import.meta.env.BASE_URL}audios/loop-7.wav`
38+
url:`${import.meta.env.BASE_URL}audios/loop-7.mp3`
3939
},
4040
{
4141
id: nanoid(),
42-
url:`${import.meta.env.BASE_URL}audios/loop-8.wav`
42+
url:`${import.meta.env.BASE_URL}audios/loop-8.mp3`
4343
},
4444
{
4545
id: nanoid(),
46-
url:`${import.meta.env.BASE_URL}audios/loop-9.wav`
46+
url:`${import.meta.env.BASE_URL}audios/loop-9.mp3`
4747
}
4848
])
4949
</script>
@@ -58,6 +58,6 @@ const items = reactive<Props[]>([
5858
</span>
5959
</h1>
6060

61-
<Demo v-for="item in items" :props="item" />
61+
<Demo v-for="item in items" :key="item.id" :props="item" />
6262
</section>
6363
</template>

example/src/components/Demo.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const getDuration = () => {
9393
<div class="ml-5">
9494
<button
9595
@click="play"
96-
class="btn text-green-400"
96+
class="btn text-[#3e6bff]"
9797
v-show="!playing && !finished"
9898
>
9999
<PlayIcon />
@@ -102,14 +102,14 @@ const getDuration = () => {
102102

103103
<button
104104
@click="pause"
105-
class="btn text-yellow-400"
105+
class="btn text-yellow-500"
106106
v-show="playing && !finished"
107107
>
108108
<PauseIcon />
109109
<div>PAUSE</div>
110110
</button>
111111

112-
<button @click="replay" class="btn" v-show="finished">
112+
<button @click="replay" class="btn text-green-500" v-show="finished">
113113
<ReplayIcon />
114114
<div>REPLAY</div>
115115
</button>
@@ -120,7 +120,7 @@ const getDuration = () => {
120120

121121
<style scoped lang="scss">
122122
.btn {
123-
@apply flex items-center bg-neutral-800 px-5 py-1 rounded-sm;
123+
@apply flex items-center bg-neutral-700 px-5 py-1 rounded-sm;
124124
125125
& div {
126126
@apply ml-1 font-bold -mb-0.5;

example/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { resolve } from 'path'
55

66
export default defineConfig({
77
plugins: [vue()],
8-
base: process.env.NODE_ENV === "development" ? import.meta.url : "/1llest-waveform-vue/",
8+
base: process.env.NODE_ENV === "development" ? "" : "/1llest-waveform-vue/",
99
build: {
10-
outDir: resolve(__dirname,"../docs"),
10+
outDir: resolve(__dirname, "../docs"),
1111
},
1212
resolve: {
1313
alias: {

0 commit comments

Comments
 (0)