Skip to content

Commit 9654d72

Browse files
committed
docs: migrate docs back to main repo
1 parent e6a8995 commit 9654d72

File tree

187 files changed

+20122
-2107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+20122
-2107
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.md
2+
docs/.vuepress/dist

.github/workflows/publish_doc.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
ref: master
16+
- uses: pnpm/[email protected]
17+
with:
18+
version: latest
19+
- run: pnpm i --frozen-lockfile
20+
- name: Build
21+
run: pnpm run docs:build
22+
- name: GitHub Pages
23+
uses: crazy-max/[email protected]
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
target_branch: gh-pages
28+
build_dir: docs/.vuepress/dist
29+
jekyll: false

.idea/jsLibraryMappings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<template>
2+
<div id="affix-example" class="uiv">
3+
<affix :offset="50">
4+
<alert>I'm using affix.</alert>
5+
</affix>
6+
</div>
7+
</template>
8+
<style>
9+
#affix-example .affix {
10+
z-index: 999;
11+
}
12+
</style>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<template>
2+
<section class="uiv">
3+
<alert
4+
v-for="(item, index) in alerts"
5+
:key="item.key"
6+
:duration="duration"
7+
@dismissed="alerts.splice(index, 1)"
8+
>
9+
This alert <b>will dismiss after {{ duration }}ms</b>.
10+
</alert>
11+
<hr />
12+
<btn type="primary" @click="addAutoDismissAlert()"
13+
>Add Auto Dismiss Alert</btn
14+
>
15+
</section>
16+
</template>
17+
<script>
18+
export default {
19+
data() {
20+
return {
21+
alerts: [],
22+
duration: 2000,
23+
}
24+
},
25+
methods: {
26+
addAutoDismissAlert() {
27+
this.alerts.push({ key: new Date().getTime() })
28+
},
29+
},
30+
}
31+
</script>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<template>
2+
<section class="uiv">
3+
<alert v-if="show" type="warning" dismissible @dismissed="show = false">
4+
<b>Warning!</b> Better check yourself, you're not looking too good.
5+
</alert>
6+
<alert
7+
v-for="(item, index) in alerts"
8+
:key="item.key"
9+
dismissible
10+
@dismissed="alerts.splice(index, 1)"
11+
>
12+
<b>Heads up!</b> This alert needs your attention, but it's not super
13+
important.
14+
</alert>
15+
<hr />
16+
<btn type="primary" @click="addDismissibleAlert()"
17+
>Add Dismissible Alert</btn
18+
>
19+
</section>
20+
</template>
21+
<script>
22+
export default {
23+
data() {
24+
return {
25+
show: true,
26+
alerts: [],
27+
}
28+
},
29+
methods: {
30+
addDismissibleAlert() {
31+
this.alerts.push({ key: new Date().getTime() })
32+
},
33+
},
34+
}
35+
</script>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<template>
2+
<div class="uiv">
3+
<alert type="success"
4+
><b>Well done!</b> You successfully read this important alert
5+
message.</alert
6+
>
7+
<alert type="info"
8+
><b>Heads up!</b> This alert needs your attention, but it's not super
9+
important.</alert
10+
>
11+
<alert type="warning"
12+
><b>Warning!</b> Better check yourself, you're not looking too
13+
good.</alert
14+
>
15+
<alert type="danger"
16+
><b>Oh snap!</b> Change this and that and try again.</alert
17+
>
18+
</div>
19+
</template>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<section class="uiv">
3+
<btn type="primary" @click="show = !show">Toggle Collapsing Alert</btn>
4+
<hr />
5+
<collapse v-model="show">
6+
<alert type="warning" dismissible @dismissed="show = false"
7+
>This alert <b>will collapse on open / close</b>.</alert
8+
>
9+
</collapse>
10+
</section>
11+
</template>
12+
<script>
13+
export default {
14+
data() {
15+
return {
16+
show: true,
17+
}
18+
},
19+
}
20+
</script>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<template>
2+
<div class="uiv">
3+
<breadcrumbs>
4+
<breadcrumb-item href="#"><b>Home</b></breadcrumb-item>
5+
<breadcrumb-item href="#">Library</breadcrumb-item>
6+
<breadcrumb-item active>Data</breadcrumb-item>
7+
</breadcrumbs>
8+
</div>
9+
</template>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<template>
2+
<div class="uiv">
3+
<breadcrumbs :items="items" />
4+
</div>
5+
</template>
6+
<script>
7+
export default {
8+
data() {
9+
return {
10+
items: [
11+
{ text: 'Home', href: '#' },
12+
{ text: 'Library', href: '#' },
13+
{ text: 'Data', href: '#' },
14+
],
15+
}
16+
},
17+
}
18+
</script>

0 commit comments

Comments
 (0)