优化后台登录界面、完善后台附件管理、编辑器上传视频增加封面 、合并安装时执行mysql脚本

This commit is contained in:
2026-01-06 16:16:45 +08:00
parent 5e2e12e670
commit b5aa465248
29 changed files with 13663 additions and 3442 deletions
@@ -38,6 +38,31 @@ CKEDITOR.dialog.add( 'html5video', function( editor ) {
hidden: true,
filebrowser: 'info:url'
} ]
},
{
type: 'hbox',
widths: [ '365px', '110px' ],
align: 'right',
children: [ {
type: 'text',
id: 'poster',
label: editor.lang.html5video.poster,
setup: function( widget ) {
this.setValue( widget.data.poster );
},
commit: function( widget ) {
widget.setData( 'poster', this.getValue() );
}
},
{
type: 'button',
id: 'browsePoster',
style: 'display:inline-block;margin-top:14px;',
align: 'center',
label: editor.lang.common.browseServer,
hidden: true,
filebrowser: 'info:poster'
} ]
} ]
},
{
@@ -126,6 +151,20 @@ CKEDITOR.dialog.add( 'html5video', function( editor ) {
filebrowser: 'info:url',
label: editor.lang.html5video.btnUpload,
'for': [ 'Upload', 'upload' ]
},
{
type: 'file',
id: 'uploadPoster',
label: editor.lang.html5video.posterUpload,
style: 'height:40px',
size: 38
},
{
type: 'fileButton',
id: 'uploadButtonPoster',
filebrowser: 'info:poster',
label: editor.lang.html5video.btnUpload,
'for': [ 'Upload', 'uploadPoster' ]
} ]
},
{
@@ -11,5 +11,7 @@ CKEDITOR.plugins.setLang( 'html5video', 'en', {
autoplay: 'Autoplay?',
yes: 'Yes',
no: 'No',
responsive: 'Responsive width'
responsive: 'Responsive width',
poster: 'Poster image',
posterUpload: 'Upload poster image'
} );
@@ -11,5 +11,7 @@ CKEDITOR.plugins.setLang('html5video', 'zh-cn', {
autoplay: '自动播放?',
yes: '是',
no: '否',
responsive: '响应式宽度'
responsive: '响应式宽度',
poster: '封面图',
posterUpload: '上传封面图'
});
@@ -11,7 +11,7 @@ CKEDITOR.plugins.add( 'html5video', {
* - div-s with text-align,float,margin-left,margin-right inline style rules and required ckeditor-html5-video class.
* - video tags with src, controls, width and height attributes.
*/
allowedContent: 'div[data-responsive](!ckeditor-html5-video){text-align,float,margin-left,margin-right}; video[src,controls,autoplay,width, height]{max-width,height};',
allowedContent: 'div[data-responsive](!ckeditor-html5-video){text-align,float,margin-left,margin-right}; video[src,controls,autoplay,width,height,poster]{max-width,height};',
requiredContent: 'div(ckeditor-html5-video); video[src,controls];',
upcast: function( element ) {
return element.name === 'div' && element.hasClass( 'ckeditor-html5-video' );
@@ -21,6 +21,7 @@ CKEDITOR.plugins.add( 'html5video', {
var src = '';
var autoplay = '';
var align = this.element.getStyle( 'text-align' );
var poster = '';
var width = '';
var height = '';
@@ -32,6 +33,7 @@ CKEDITOR.plugins.add( 'html5video', {
width = this.element.getChild( 0 ).getAttribute( 'width' );
height = this.element.getChild( 0 ).getAttribute( 'height' );
autoplay = this.element.getChild( 0 ).getAttribute( 'autoplay' );
poster = this.element.getChild( 0 ).getAttribute( 'poster' );
responsive = this.element.getAttribute( 'data-responsive' );
}
@@ -55,7 +57,11 @@ CKEDITOR.plugins.add( 'html5video', {
if ( autoplay ) {
this.setData( 'autoplay', 'yes' );
}
if ( poster ) {
this.setData('poster', poster);
}
if ( responsive ) {
this.setData( 'responsive', responsive );
}
@@ -76,6 +82,7 @@ CKEDITOR.plugins.add( 'html5video', {
this.element.getChild( 0 ).setAttribute( 'src', this.data.src );
if (this.data.width) this.element.getChild( 0 ).setAttribute( 'width', this.data.width );
if (this.data.height) this.element.getChild( 0 ).setAttribute( 'height', this.data.height );
if (this.data.poster) this.element.getChild( 0 ).setAttribute( 'poster', this.data.poster );
if ( this.data.responsive ) {
this.element.setAttribute("data-responsive", this.data.responsive);
+113 -77
View File
@@ -1,93 +1,129 @@
html{height: 100%;}
body.signin {
background: #18c8f6;
height: auto;
background:url("../img/login-background.jpg") no-repeat center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
color: rgba(255,255,255,.95);
/* login-tech.css */
/* 定义主色调变量 */
:root {
--primary-color: #1ab394;
--primary-glow: rgba(26, 179, 148, 0.5);
--bg-dark: #0f1319;
--text-color: #e0e0e0;
}
.signinpanel {
width: 750px;
margin: 10% auto 0 auto;
body.gray-bg {
background: var(--bg-dark);
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: var(--text-color);
overflow: hidden; /* 防止滚动条出现 */
}
.signinpanel .logopanel {
/* 动态背景 Canvas */
#canvas-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
/* 登录框主体 - 毛玻璃特效 */
.middle-box {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px); /* 毛玻璃模糊 */
-webkit-backdrop-filter: blur(10px);
padding: 40px;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
margin: 50px auto auto auto; /* 调整垂直位置 */
max-width: 400px;
width: 100%;
float: none;
width: auto;
padding: 0;
background: none;
/* display: inline-block;*/
position: relative;
z-index: 10;
top: 50px
}
.signinpanel .signin-info ul {
list-style: none;
padding: 0;
margin: 20px 0;
/* 标题样式 */
.logo-name {
color: var(--primary-color);
font-size: 60px;
font-weight: 800;
letter-spacing: 2px;
margin-bottom: 10px;
text-shadow: 0 0 10px var(--primary-glow);
}
.signinpanel .form-control {
display: block;
margin-top: 15px;
.middle-box h3 {
color: #fff;
font-weight: 300;
margin-bottom: 30px;
}
.signinpanel .uname {
background: #fff url(../img/user.png) no-repeat 95% center;color:#333;
/* 输入框重写 - 科技感下划线风格 */
.form-control {
background-color: transparent !important;
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 0;
color: #fff !important;
box-shadow: none;
padding-left: 0;
transition: all 0.3s ease;
height: 40px;
}
.signinpanel .pword {
background: #fff url(../img/locked.png) no-repeat 95% center;color:#333;
}
.signinpanel .btn {
margin-top: 15px;
}
.signinpanel form {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255,255,255,.3);
-moz-box-shadow: 0 3px 0 rgba(12, 12, 12, 0.03);
-webkit-box-shadow: 0 3px 0 rgba(12, 12, 12, 0.03);
box-shadow: 0 3px 0 rgba(12, 12, 12, 0.03);
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding: 30px;
}
.signup-footer{border-top: solid 1px rgba(255,255,255,.3);margin:20px 0;padding-top: 15px;}
@media screen and (max-width: 768px) {
.signinpanel,
.signuppanel {
margin: 0 auto;
width: 420px!important;
padding: 20px;
}
.signinpanel form {
margin-top: 20px;
}
.signup-footer {
margin-bottom: 10px;
}
.signuppanel .form-control {
margin-bottom: 10px;
}
.signup-footer .pull-left,
.signup-footer .pull-right {
float: none !important;
text-align: center;
}
.signinpanel .signin-info ul {
display: none;
.form-control:focus {
border-bottom: 1px solid var(--primary-color);
box-shadow: 0 1px 0 0 var(--primary-glow);
color: #fff;
}
/* 针对浏览器自动填充背景色的 Hack */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
-webkit-box-shadow: 0 0 0 30px #151a23 inset !important;
-webkit-text-fill-color: white !important;
transition: background-color 5000s ease-in-out 0s;
}
@media screen and (max-width: 320px) {
.signinpanel,
.signuppanel {
margin:0 20px;
width:auto;
.form-control::-webkit-input-placeholder {
color: rgba(255,255,255,0.4);
}
.form-control:-moz-placeholder {
color: rgba(255,255,255,0.4);
}
/* 验证码输入框调整 */
.input-group-addon {
background: transparent;
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
/* 按钮样式 - 霓虹光效 */
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
color: #fff;
font-weight: bold;
border-radius: 25px; /* 圆角按钮 */
transition: all 0.3s ease;
box-shadow: 0 4px 15px var(--primary-glow);
margin-top: 20px;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
background-color: #15947a !important;
border-color: #15947a !important;
box-shadow: 0 6px 20px rgba(26, 179, 148, 0.8);
transform: translateY(-2px);
}
}
/* 底部文字 */
.text-muted {
color: rgba(255, 255, 255, 0.5) !important;
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB