增加单页应用的layui-admin

This commit is contained in:
2024-01-22 12:22:41 +08:00
parent acf64a0c71
commit 1b2929f32e
344 changed files with 21782 additions and 3 deletions

View File

@@ -0,0 +1 @@
html{background:0 0}html body{margin-top:0}.fly-header{position:relative;top:0}h1{font-size:28px}.fly-body-docs .fly-footer,.fly-body-docs .fly-header .fly-nav{display:none}.fly-docs-preview,.fly-docs-write{position:fixed;left:0;top:60px;bottom:0;width:50%;box-sizing:border-box}.fly-docs-editor{position:absolute;width:100%;height:100%;padding:20px;border:none;overflow:auto;box-sizing:border-box;resize:none;font-family:Menlo,Monaco,Consolas,"Courier New","Microsoft Yahei",monospace}.fly-docs-form{position:fixed;top:12px;left:10px;width:50%;padding:0;z-index:10001;box-sizing:border-box}.fly-docus-btn{position:absolute;right:15px;bottom:15px;z-index:10000}.fly-docs-preview{left:auto;right:0;border-left:1px solid #e2e2e2;padding:20px;overflow:auto}.fly-md-text{line-height:24px}.fly-md-text h2{margin:35px 0 20px}.fly-md-text h3{margin:20px 0}.fly-md-text h1 .fly-md-text h2 .fly-md-text h3 .fly-md-text h4,.fly-md-text h5,.fly-md-text h6{font-weight:700}.fly-md-text em,.fly-md-text strong{padding:0 3px}.fly-md-text p code{padding:3px 5px;background-color:#f2f2f2;border-radius:2px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace}.fly-md-text pre{padding:0!important;background:0 0!important}.fly-md-text pre code{display:block;padding:1em;font-family:Lucida Console,Consolas,Courier New;border-radius:3px}.fly-docs-container{padding:20px}.fly-docs-info{padding:10px 0}.fly-docs-info>span{display:inline-block;margin-right:10px;line-height:26px;padding:0 10px;border:1px solid #e6e6e6;border-radius:2px;color:#666}.fly-docs-admin{padding:10px 0}.fly-docs-title{margin-bottom:10px;padding-bottom:10px;color:#000;border-bottom:1px solid #e6e6e6}.fly-docs-container .fly-md-text{padding:20px 0}.fly-md-dir{position:fixed;top:0;bottom:0;left:0;width:220px;padding:20px;border-right:1px solid #f2f2f2;overflow:hidden;background-color:#f2f2f2;box-sizing:border-box;transition:all .3s;-webkit-transition:all .3s}.fly-md-dir:hover{overflow:auto}.fly-md-dir:before{content:'\76ee\5f55';position:relative;width:100%;display:block;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid #e6e6e6;font-size:20px;box-sizing:border-box}.fly-md-dir p{margin:0}#FLY-spread-dir{position:fixed;left:15px;bottom:15px;width:50px;height:50px;line-height:50px;text-align:center;background-color:#2f9688;border-radius:5px;color:#fff}#FLY-spread-dir .layui-icon{font-size:20px}.fly-docs-spread .fly-md-dir{transform:translate3d(0,0,0)!important}@media screen and (max-width:768px){.fly-body-docs .layui-container{padding-left:0}.fly-md-dir{transform:translate3d(-220px,0,0);z-index:999999999999}#FLY-spread-dir{display:block!important}}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
layui.define(function(l){var o,i,a=layui.$,n=(layui.layer,layui.form),r=layui.fly,e=layui.util,t=(a(".layui-fixbar").remove(),e.fixbar({}),a("#FLY-docs-editor")),c=a("#FLY-docs-preview"),s=a(".fly-docs-preview"),e=a("#FLY-docs-id").val(),d="layui-auth-product-"+e;t[0]&&((o=window.markdownit({html:!0,typographer:!0,linkify:!0,breaks:!0})).renderer.rules.table_open=function(){return'<table class="layui-table">\n'},i=function(){var l=t.val(),l=o.render(l);c.html(l),window.hljs&&hljs.highlightAll()},e||t.val(layui.data(d).content),i(),t.on("keyup",function(){var l=t.val();layui.data(d,{key:"content",value:l})}).on("change",i).on("scroll",function(){!function(l){var o=a(this),i=o.prop("scrollHeight"),o=o.scrollTop()*l.prop("scrollHeight")/i;l.scrollTop(o)}.call(this,s)}),n.on("submit(FLY-docs-send)",function(l){return r.json(l.form.action,l.field,function(l){location.href="/docs/"+l.data.id+"/"}),!1})),a("#FLY-spread-dir").on("click",function(){return a("body").addClass("fly-docs-spread"),!1}),a("body").on("click",function(){a(this).removeClass("fly-docs-spread")}),l("docs",{})});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

BIN
iframe/docs/static/images/dev/logo.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB