Skip to content

Commit

Permalink
update docs music and package (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyuly authored Feb 20, 2023
1 parent ceb6304 commit be38a2c
Show file tree
Hide file tree
Showing 43 changed files with 920 additions and 293 deletions.
4 changes: 2 additions & 2 deletions packages/document/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineConfig({
vite: {
optimizeDeps: {
exclude: [],
include: ['wview'],
include: ['wviewui'],
force: true
},
server: {
Expand All @@ -37,7 +37,7 @@ export default defineConfig({
},
resolve: {
alias: [
{ find: '@wview', replacement: resolve(__dirname, '../../../wview-components') },
{ find: '@wviewui', replacement: resolve(__dirname, '../../../wview-components') },
{ find: '@', replacement: resolve(__dirname, '../src') }
]
},
Expand Down
16 changes: 12 additions & 4 deletions packages/document/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
import DefaultTheme from 'vitepress/theme'
import './custom.css'
import 'wview/dist/styles.css'
import { Button } from 'wview'
import 'wviewui/dist/styles.css'
import { EnhanceAppContext } from 'vitepress'
import vitepressMusic from 'vitepress-plugin-music'
import 'vitepress-plugin-music/lib/css/index.css'

const playlist = [
{
name: '群青',
author: 'YOASOBI',
file: '/群青.mp3',
}
]

export default {
...DefaultTheme,
enhanceApp(ctx: EnhanceAppContext) {
DefaultTheme.enhanceApp(ctx)
ctx.app.component('Button', Button)
vitepressMusic(playlist)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</template>

<script lang="ts" setup>
import { Upload } from 'wview'
import { Upload } from 'wviewui'
</script>

<style lang="less" scoped></style>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</template>

<script lang="ts" setup>
import { Upload } from 'wview'
import { Upload } from 'wviewui'
</script>

<style lang="less" scoped></style>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="ts" setup>
import { Upload } from 'wview'
import { Upload } from 'wviewui'
</script>

<style lang="less" scoped></style>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</template>

<script lang="ts" setup>
import { Upload } from 'wview'
import { Upload } from 'wviewui'
</script>

<style lang="less" scoped></style>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { Button } from 'wview'
import { Button } from 'wviewui'
</script>

<template>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { Button } from 'wview'
import { Button } from 'wviewui'
</script>

<template>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { Button } from 'wview'
import { Button } from 'wviewui'
</script>

<template>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { Button } from 'wview'
import { Button } from 'wviewui'
</script>

<template>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { Button } from 'wview'
import { Button } from 'wviewui'
</script>

<template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</template>

<script lang="ts" setup>
import { Icon } from 'wview'
import { Icon } from 'wviewui'
</script>

<style lang="scss" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</template>

<script lang="ts" setup>
import { Icon } from 'wview'
import { Icon } from 'wviewui'
</script>

<style lang="scss" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</template>

<script lang="ts" setup>
import { Icon } from 'wview'
import { Icon } from 'wviewui'
</script>

<style lang="scss" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</template>

<script lang="ts" setup>
import { Icon } from 'wview'
import { Icon } from 'wviewui'
</script>

<style lang="scss" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</template>

<script lang="ts" setup>
import { Icon } from 'wview'
import { Icon } from 'wviewui'
</script>

<style lang="scss" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</template>

<script lang="ts" setup>
import { Icon } from 'wview'
import { Icon } from 'wviewui'
</script>

<style lang="scss" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</template>

<script lang="ts" setup>
import { Icon } from 'wview'
import { Icon } from 'wviewui'
</script>

<style lang="scss" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</template>

<script lang="ts" setup>
import { Icon } from 'wview'
import { Icon } from 'wviewui'
</script>

<style lang="scss" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</template>

<script lang="ts" setup>
import { Icon } from 'wview'
import { Icon } from 'wviewui'
</script>

<style lang="scss" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<!-- js -->
<script setup>
import { Input } from 'wview'
import { Input } from 'wviewui'
import { ref } from 'vue'
const myvalue = ref('')
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<!-- js -->
<script setup>
import { Input } from 'wview'
import { Input } from 'wviewui'
import { ref } from 'vue'
const myvalue = ref('')
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<!-- js -->
<script setup>
import { Input } from 'wview'
import { Input } from 'wviewui'
import { ref } from 'vue'
const myvalue = ref('')
const clear = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<!-- js -->
<script setup>
import { Input } from 'wview'
import { Input } from 'wviewui'
import { ref } from 'vue'
const myvalue = ref('')
const value2 = ref('')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<!-- js -->
<script setup>
import { Input } from 'wview'
import { Input } from 'wviewui'
import { ref } from 'vue'
const myvalue = ref('')
const value2 = ref('')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<!-- js -->
<script setup>
import { Input, Button } from 'wview'
import { Input, Button } from 'wviewui'
import { ref } from 'vue'
const myvalue = ref('')
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<!-- js -->
<script setup>
import { Input } from 'wview'
import { Input } from 'wviewui'
import { ref } from 'vue'
const password = ref('')
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<!-- js -->
<script setup>
import { Input } from 'wview'
import { Input } from 'wviewui'
import { ref } from 'vue'
const myvalue = ref('')
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
</template>

<script lang="ts" setup>
import { Progress } from 'wview'
import { Progress } from 'wviewui'
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
</template>

<script lang="ts" setup>
import { Progress } from 'wview'
import { Progress } from 'wviewui'
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
</template>

<script lang="ts" setup>
import { Progress } from 'wview'
import { Progress } from 'wviewui'
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="ts" setup>
import { Progress } from 'wview'
import { Progress } from 'wviewui'
import { reactive } from 'vue'
const state = reactive({
val: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script lang="ts" setup>
import { Progress } from 'wview'
import { Progress } from 'wviewui'
import { reactive } from 'vue'
const state = reactive({
val: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</template>

<script setup lang="ts">
import { Button, Modal } from 'wview'
import { Button, Modal } from 'wviewui'
import { reactive } from 'vue'
const state = reactive({
isShow: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</template>

<script setup lang="ts">
import { Button, Modal, Input } from 'wview'
import { Button, Modal, Input } from 'wviewui'
import { reactive, ref } from 'vue'
const state = reactive({
isShow: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
</template>

<script lang="ts" setup>
import { Tab, TabPanel } from 'wview'
import { Tab, TabPanel } from 'wviewui'
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
</template>

<script lang="ts" setup>
import { Tab, TabPanel } from 'wview'
import { Tab, TabPanel } from 'wviewui'
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
</template>

<script lang="ts" setup>
import { Tab, TabPanel } from 'wview'
import { Tab, TabPanel } from 'wviewui'
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
</template>

<script lang="ts" setup>
import { Tab, TabPanel } from 'wview'
import { Tab, TabPanel } from 'wviewui'
</script>
4 changes: 2 additions & 2 deletions packages/document/docs/src/guide/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// main.ts
import { createApp } from 'vue'
import wview from 'wviewui'
import 'wview/dist/index.css'
import 'wviewui/dist/styles.css'
import App from './App.vue'

const app = createApp(App)
Expand All @@ -27,7 +27,7 @@ app.mount('#app')
// main.ts
import { createApp } from 'vue'
import { Button } from 'wviewui'
import 'wviewui/dist/style.css'
import 'wviewui/dist/styles.css'
import App from './App.vue'

const app = createApp(App)
Expand Down
Binary file added packages/document/docs/src/public/群青.mp3
Binary file not shown.
3 changes: 2 additions & 1 deletion packages/document/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
"markdown-it": "^13.0.1",
"unplugin-vue-define-options": "0",
"vitepress": "1.0.0-alpha.36",
"vitepress-plugin-music": "^0.0.9",
"vue": "^3.2.45"
},
"dependencies": {
"markdown-it-include": "^2.0.0",
"wview": "workspace:^0.0.1"
"wviewui": "workspace:^0.0.2"
}
}
Loading

1 comment on commit be38a2c

@vercel
Copy link

@vercel vercel bot commented on be38a2c Feb 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wview-wiki – ./

wview-wiki-windy00.vercel.app
wview-wiki.vercel.app
wview-wiki-git-main-windy00.vercel.app

Please sign in to comment.