Skip to content

Commit 7f5df04

Browse files
committed
add some
1 parent efa1bc7 commit 7f5df04

File tree

140 files changed

+62758
-0
lines changed

Some content is hidden

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

140 files changed

+62758
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Node CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [10.x, 12.x]
16+
17+
steps:
18+
- uses: actions/checkout@v1
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- name: npm install, build
24+
run: |
25+
npm install
26+
npm run build --if-present
27+
env:
28+
CI: true

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
dist/
3+
*.zip
4+
.DS_Store
5+
.idea/

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM nginx:1.15-alpine
2+
3+
COPY dist/ /usr/share/nginx/html
4+
5+
COPY default.conf /etc/nginx/conf.d/default.conf
6+
7+
ENTRYPOINT nginx -g "daemon off;"

default.conf

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
5+
#charset koi8-r;
6+
#access_log /var/log/nginx/host.access.log main;
7+
8+
location / {
9+
root /usr/share/nginx/html;
10+
try_files $uri $uri/ /index.html last;
11+
}
12+
13+
#error_page 404 /404.html;
14+
15+
# redirect server error pages to the static page /50x.html
16+
#
17+
error_page 500 502 503 504 /50x.html;
18+
location = /50x.html {
19+
root /usr/share/nginx/html;
20+
}
21+
22+
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
23+
#
24+
#location ~ \.php$ {
25+
# proxy_pass http://127.0.0.1;
26+
#}
27+
28+
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
29+
#
30+
#location ~ \.php$ {
31+
# root html;
32+
# fastcgi_pass 127.0.0.1:9000;
33+
# fastcgi_index index.php;
34+
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
35+
# include fastcgi_params;
36+
#}
37+
38+
# deny access to .htaccess files, if Apache's document root
39+
# concurs with nginx's one
40+
#
41+
#location ~ /\.ht {
42+
# deny all;
43+
#}
44+
}

docs/.vuepress/components/Footer.vue

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<template>
2+
<div class="footer">
3+
<div class="links">
4+
<span>MOV BApp</span>
5+
<span>Apply</span>
6+
<span>Developer</span>
7+
<span>Data Center</span>
8+
<span>Support</span>
9+
</div>
10+
11+
<div class="github">
12+
<a href="https://github.com/Bytom/vapor" target="_blank">
13+
<svg
14+
viewBox="64 64 896 896"
15+
width="1em"
16+
height="1em"
17+
fill="currentColor"
18+
>
19+
<path
20+
d="M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"
21+
></path>
22+
</svg>
23+
</a>
24+
</div>
25+
<div v-if="data.footer" class="copyRight">{{ data.footer }}</div>
26+
</div>
27+
</template>
28+
<script>
29+
export default {
30+
computed: {
31+
data() {
32+
return this.$page.frontmatter;
33+
},
34+
},
35+
};
36+
</script>
37+
38+
<style lang="stylus">
39+
.footer {
40+
height: 212px;
41+
text-align: center;
42+
box-sizing: border-box;
43+
padding: 4rem 0 2rem 0;
44+
background-color: #1A1A1A;
45+
46+
.links {
47+
display: none;
48+
49+
>span {
50+
font-size: 0.875rem;
51+
margin-right: 3rem;
52+
color: rgba(255, 255, 255, 0.56);
53+
cursor: pointer;
54+
}
55+
56+
>span:last-child {
57+
margin-right: 0;
58+
}
59+
}
60+
61+
.github {
62+
margin: 1rem auto 0;
63+
font-size: 1.5rem;
64+
cursor: pointer;
65+
66+
>a {
67+
color: rgba(255, 255, 255, 0.56);
68+
transition: color 0.3s;
69+
display: inline-block;
70+
height: 1.5rem;
71+
}
72+
73+
>a:hover {
74+
color: $w;
75+
}
76+
}
77+
78+
.copyRight {
79+
color: rgba(255, 255, 255, 0.24);
80+
margin-top: 2rem;
81+
font-size: 0.875rem;
82+
}
83+
}
84+
</style>

docs/.vuepress/components/HomeNav.vue

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
<template>
2+
<div class="navs">
3+
<div v-for="(item, key) in list[$lang]" class="itemWrap">
4+
<div class="item">
5+
<h2>{{ item.title }}</h2>
6+
<ul>
7+
<li v-for="(link, linkKey) in item.children.slice(0, maxLen)">
8+
<a v-bind:href="link.link">{{ link.title }}</a>
9+
</li>
10+
<li v-if="item.children.length > maxLen" class="viewMore">
11+
<a v-bind:href="item.children[0].link">View More</a>
12+
</li>
13+
</ul>
14+
</div>
15+
</div>
16+
</div>
17+
</template>
18+
19+
<script>
20+
import categories from "../nav/categories";
21+
export default {
22+
data() {
23+
return {
24+
list: categories,
25+
maxLen: 5,
26+
};
27+
},
28+
beforeMount() {
29+
// console.log(this.$site, categories[this.$lang])
30+
},
31+
mounted: function () {},
32+
};
33+
</script>
34+
35+
<style lang="stylus">
36+
.navs {
37+
width: 100%;
38+
display: flex;
39+
font-size: 32px;
40+
flex-wrap: wrap;
41+
padding: 2rem 0;
42+
43+
.itemWrap {
44+
width: 33.3333%;
45+
margin-bottom: 1rem;
46+
}
47+
48+
.item {
49+
height: 280px;
50+
margin: 0 .5rem;
51+
background: #ffffff;
52+
padding: 1.5rem 1.75rem;
53+
box-sizing: border-box;
54+
border-radius: 8px;
55+
border: 1px solid #ffffff;
56+
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.02), 0px 4px 32px rgba(0, 0, 0, 0.02);
57+
h2 {
58+
font-size: 1.125rem;
59+
color: $b88;
60+
line-height: 1.625rem;
61+
padding-bottom: 1rem;
62+
margin: 0;
63+
border-bottom: 1px solid #ebebeb;
64+
}
65+
66+
ul {
67+
list-style: none;
68+
padding: 0;
69+
margin: 1rem 0 0 0;
70+
71+
li {
72+
font-size: 0.875rem;
73+
line-height: 1.375rem;
74+
margin-bottom: 0.5rem;
75+
white-space: nowrap;
76+
text-overflow: ellipsis;
77+
overflow: hidden;
78+
79+
a {
80+
font-family: Roboto;
81+
font-weight: 400;
82+
color: $b64
83+
84+
&:hover {
85+
color: $activeLink;
86+
}
87+
}
88+
}
89+
90+
.viewMore {
91+
}
92+
93+
li:last-child {
94+
margin: 0;
95+
}
96+
}
97+
}
98+
.item:nth-child(3n+2) {
99+
margin: 0 1rem;
100+
}
101+
102+
.item:hover {
103+
border: 1px solid #EBEBEB;
104+
}
105+
}
106+
107+
@media (max-width: $MQMobile) {
108+
.navs {
109+
flex-direction: column;
110+
padding: 1rem;
111+
box-sizing: border-box;
112+
113+
.itemWrap {
114+
width: 100%;
115+
116+
.item {
117+
border-radius: 0.5rem;
118+
margin: 0 0 1rem 0;
119+
}
120+
}
121+
}
122+
}
123+
124+
@media (max-width: $MQMobileNarrow) {
125+
.home {
126+
// background-color: #fff;
127+
box-sizing: border-box;
128+
}
129+
130+
.item {
131+
width: 100%;
132+
}
133+
}
134+
</style>

0 commit comments

Comments
 (0)