init
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="renderer" content="webkit" />
|
||||
<meta name="force-rendering" content="webkit" />
|
||||
<meta name="applicable-device" content="pc,mobile" />
|
||||
<meta name="author" content="Jmys <jmys1992@gmail.com>" />
|
||||
<meta name="keywords" content="layui,layui-vue,vue,layer,layer-vue,ui,components"/>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<title>layer-vue 弹层解决方案</title>
|
||||
<!--preload-links-->
|
||||
<script type="module" crossorigin src="/assets/index.7556f252.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index.a0f5c225.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
<!--app-html-->
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,259 @@
|
||||
.utterances {
|
||||
margin-top: 30px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
html {
|
||||
line-height: 1.4;
|
||||
font-size: 16px;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-weight: 600 !important;
|
||||
font-size: 16.8px !important;
|
||||
margin-top: 20px !important;
|
||||
margin-bottom: 20px !important;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-weight: 700;
|
||||
font-size: 16.8px;
|
||||
}
|
||||
|
||||
h1,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin: 0;
|
||||
color: #333;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
h1:hover .header-anchor,
|
||||
h1:focus .header-anchor,
|
||||
h2:hover .header-anchor,
|
||||
h2:focus .header-anchor,
|
||||
h3:hover .header-anchor,
|
||||
h3:focus .header-anchor,
|
||||
h4:hover .header-anchor,
|
||||
h4:focus .header-anchor,
|
||||
h5:hover .header-anchor,
|
||||
h5:focus .header-anchor,
|
||||
h6:hover .header-anchor,
|
||||
h6:focus .header-anchor {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-top: 1.5rem;
|
||||
font-size: 1.9rem;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 420px) {
|
||||
h1 {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.15rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-top: 4px !important;
|
||||
margin-bottom: 22px !important;
|
||||
color: #000000d9 !important;
|
||||
font-weight: 500 !important;
|
||||
font-size: 20px !important;
|
||||
font-family: Avenir, -apple-system, BlinkMacSystemFont, segoe ui, Roboto,
|
||||
helvetica neue, Arial, noto sans, sans-serif, apple color emoji,
|
||||
segoe ui emoji, segoe ui symbol, noto color emoji, sans-serif;
|
||||
line-height: 38px;
|
||||
}
|
||||
|
||||
area,
|
||||
button,
|
||||
[role='button'],
|
||||
input,
|
||||
label,
|
||||
select,
|
||||
summary,
|
||||
textarea {
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
a.header-anchor {
|
||||
float: left;
|
||||
margin-top: 0.125em;
|
||||
margin-left: -0.87em;
|
||||
padding-right: 0.23em;
|
||||
font-size: 0.85em;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
a.header-anchor:hover,
|
||||
a.header-anchor:focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.site-doc-icon {
|
||||
margin-bottom: 50px;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.site-doc-icon li .doc-icon-name,
|
||||
.site-doc-icon li .doc-icon-code {
|
||||
color: #c2c2c2;
|
||||
}
|
||||
|
||||
.site-doc-icon li .doc-icon-fontclass {
|
||||
height: 40px;
|
||||
line-height: 20px;
|
||||
padding: 0 5px;
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.site-doc-icon li {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 16.5%;
|
||||
height: 105px;
|
||||
line-height: 25px;
|
||||
padding: 20px 0;
|
||||
margin-right: -1px;
|
||||
margin-bottom: -1px;
|
||||
border: 1px solid #e2e2e2;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
color: #666;
|
||||
transition: all 0.3s;
|
||||
-webkit-transition: all 0.3s;
|
||||
}
|
||||
.site-doc-icon li:hover{
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
|
||||
.site-doc-icon li .layui-icon {
|
||||
display: inline-block;
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.site-doc-color {
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
.site-doc-necolor li div {
|
||||
border-radius: 0;
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
.site-doc-color li div {
|
||||
padding: 20px 10px;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 1.6;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.site-doc-bgcolor li {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
|
||||
.anim .site-doc-icon {
|
||||
margin-bottom: 50px;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.anim .site-doc-icon li {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.anim .site-doc-anim li {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.anim .site-doc-icon li {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 16.5%;
|
||||
height: 105px;
|
||||
line-height: 25px;
|
||||
padding: 20px 0;
|
||||
margin-right: -1px;
|
||||
margin-bottom: -1px;
|
||||
border: 1px solid #e2e2e2;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
color: #666;
|
||||
transition: all 0.3s;
|
||||
-webkit-transition: all 0.3s;
|
||||
}
|
||||
|
||||
.anim .site-doc-icon li .layui-anim {
|
||||
width: 125px;
|
||||
height: 125px;
|
||||
line-height: 125px;
|
||||
margin: 0 auto 10px;
|
||||
text-align: center;
|
||||
background-color: var(--global-primary-color);
|
||||
cursor: pointer;
|
||||
color: #fff;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.anim .site-doc-icon li .code {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.markdown-body th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
body::-webkit-scrollbar {
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
}
|
||||
|
||||
.layui-menu-item-group {
|
||||
padding-left: 10px !important;
|
||||
padding-right: 10px !important;
|
||||
}
|
||||
|
||||
.layui-menu .layui-menu-item-group > .layui-menu-body-title {
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
.lay-link:hover{
|
||||
color: #5FB878;
|
||||
}
|
||||
|
||||
.describe-plugin {
|
||||
padding-bottom: 20px;
|
||||
padding-left: 30px;
|
||||
padding-top: 20px;
|
||||
|
||||
}
|
||||
|
||||
.describe-plugin code {
|
||||
margin: 0 1px;
|
||||
padding: 0.2em 0.4em;
|
||||
font-size: .9em;
|
||||
background: #f2f4f5;
|
||||
border: 1px solid rgba(0,0,0,.06);
|
||||
border-radius: 3px;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
0000000000000000000000000000000000000000 0a63adba996fa0649b66b41207654b7af70fe96a Theluyuan <1162963624@qq.com> 1668398181 +0800 commit (initial): init
|
||||
0a63adba996fa0649b66b41207654b7af70fe96a 492d0963fe1f6e0c0e33da1b04bba8d13abe68c2 Theluyuan <1162963624@qq.com> 1668398366 +0800 commit: init
|
||||
492d0963fe1f6e0c0e33da1b04bba8d13abe68c2 ac9cf404a3f1f161b8c219fe195fba3f8193bb23 Theluyuan <1162963624@qq.com> 1668405401 +0800 commit: table index
|
||||
ac9cf404a3f1f161b8c219fe195fba3f8193bb23 e8bb799dfbf6c2e7a47e579648908d3c40f2adc7 Theluyuan <1162963624@qq.com> 1668405944 +0800 commit: 不行
|
||||
e8bb799dfbf6c2e7a47e579648908d3c40f2adc7 30c5b4c8a57e515dd75526018058552fbd121015 Theluyuan <1162963624@qq.com> 1668407782 +0800 commit: re
|
||||
30c5b4c8a57e515dd75526018058552fbd121015 fd4a5faf7c0607e46d2789feea04007453725263 Theluyuan <1162963624@qq.com> 1668475075 +0800 commit: 2
|
||||
fd4a5faf7c0607e46d2789feea04007453725263 f46e63adc92794b3fdc699889346854dff9c9f52 Theluyuan <1162963624@qq.com> 1668475410 +0800 commit: yilan
|
||||
f46e63adc92794b3fdc699889346854dff9c9f52 e7e7aeda2d1602dad0178e558f0b4b86171ded50 Theluyuan <1162963624@qq.com> 1668494707 +0800 commit: 分页
|
||||
e7e7aeda2d1602dad0178e558f0b4b86171ded50 7b125d02166f7f4c89da2e945e27b47eafef392c Theluyuan <1162963624@qq.com> 1668495322 +0800 commit: add 分页总数
|
||||
7b125d02166f7f4c89da2e945e27b47eafef392c eb1b0c9b168f2daa6f20c922891e95d401aa36c7 Theluyuan <1162963624@qq.com> 1668495506 +0800 commit: add page count
|
||||
@@ -0,0 +1,45 @@
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
||||
const toAbsolute = (p) => path.resolve(__dirname, p).replace(/\\/, '/')
|
||||
|
||||
const manifest = require('./dist/static/ssr-manifest.json')
|
||||
const template = fs.readFileSync(toAbsolute('dist/static/index.html'), 'utf-8')
|
||||
const { render } = require('./dist/server/entry-server.js')
|
||||
|
||||
const writeFileRecursive = function (path, buffer) {
|
||||
const lastPath = path.substring(0, path.lastIndexOf('/'))
|
||||
|
||||
fs.mkdir(lastPath, { recursive: true }, () => {
|
||||
fs.writeFileSync(path, buffer)
|
||||
})
|
||||
}
|
||||
|
||||
const fileDisplay = (file) => {
|
||||
fs.readdirSync(toAbsolute(file)).forEach(async (filename) => {
|
||||
const filedir = path.join(file, filename).replace(/\\/, '/')
|
||||
|
||||
if (fs.statSync(toAbsolute(filedir)).isDirectory()) {
|
||||
fileDisplay(filedir)
|
||||
} else {
|
||||
const url = filedir
|
||||
.replace(/^docs/, '')
|
||||
.replace(/\.(vue|md)$/, '')
|
||||
.replace(/index$/, '')
|
||||
.replace(/\/([^/]*)$/, (item) =>
|
||||
item.replace(/\B([A-Z])/g, '-$1').toLowerCase()
|
||||
)
|
||||
const [appHtml, preloadLinks] = await render(url, manifest)
|
||||
const html = template
|
||||
.replace('<!--preload-links-->', preloadLinks)
|
||||
.replace('<!--app-html-->', appHtml)
|
||||
|
||||
const filePath = `dist/static${url.replace(/\/$/, '/index')}.html`
|
||||
writeFileRecursive(toAbsolute(filePath), html)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
fileDisplay('docs')
|
||||
|
||||
fs.unlinkSync(toAbsolute('dist/static/ssr-manifest.json'))
|
||||
Binary file not shown.
Reference in New Issue
Block a user