Skip to content

Commit

Permalink
2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
skycaiji committed Feb 7, 2024
1 parent 281acc3 commit a4d3531
Show file tree
Hide file tree
Showing 103 changed files with 4,067 additions and 1,623 deletions.
2 changes: 1 addition & 1 deletion plugin/release/diy/Demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Demo extends BaseDiy{
'db_pwd' => '', //密码
'db_port' => 3306, //端口
'db_prefix' => '', //表前缀
'db_charset' => 'utf8', //编码
'db_charset' => 'utf8mb4', //编码
);
/**
* 导入数据
Expand Down
359 changes: 70 additions & 289 deletions public/static/css/admin.css

Large diffs are not rendered by default.

220 changes: 220 additions & 0 deletions public/static/css/collector.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
@CHARSET "UTF-8";
/*采集器面板*/
.coll-panel .panel-heading{background-color:#d2d6de;}
.coll-panel .panel-default .panel-default .panel-heading{background-color:#efefef;}
.coll-panel .panel-heading a{color:#333;}

.coll-alert{color:#333!important;background-color:#f5f5f5!important;border-color:#ddd!important;}

.c-p-source-urls>.form-group:first-child{margin-top:10px;}

#c_p_level_urls tbody{
counter-reset:levelcounter;
}
#c_p_level_urls .level:before{
content:counter(levelcounter);
counter-increment:levelcounter;
font-weight:bold;
}
#c_p_front_urls td.sign,#c_p_level_urls td.sign,#c_p_relation_urls td.sign{
width:50%;overflow:hidden;padding-bottom:0;
}
#c_p_front_urls .sign-th,#c_p_level_urls .sign-th,#c_p_relation_urls .sign-th{
padding-left:5px;
}
#c_p_front_urls .signs,#c_p_level_urls .signs,#c_p_relation_urls .signs{
border:0;padding:0px 5px;height:20px;line-height:14px;font-size:12px;color:#555;background:#fff;
}
/*采集器选项卡*/
.coll-tab > li:nth-child(2).active > a,.coll-tab > li:nth-child(3).active > a{background:#f5f5f5;}
.coll-tab > li{
-moz-user-select:none;
-webkit-user-select:none;
-ms-user-select:none;
-khtml-user-select:none;
user-select:none;
}
.coll-tab>li>a{
border-bottom:0;
}
/*请求头信息*/
.c-p-request-headers table,.c-p-request-headers-img table,.c-p-request-headers-file table{margin-bottom:0}
.c-p-request-headers .delete-request-header,.c-p-request-headers-img .delete-request-header-img,.c-p-request-headers-file .delete-request-header-file{margin-top:8px;}
.c-p-request-headers td:first-child,.c-p-request-headers-img td:first-child,.c-p-request-headers-file td:first-child{width:200px;}
.c-p-request-headers td:last-child,.c-p-request-headers-img td:last-child,.c-p-request-headers-file td:last-child{width:50px;text-align:center;}
/*内容标签*/
.c-p-url-content-signs{
width:auto;
overflow:hidden;
}
/*页面源码表单和请求头*/
.c-p-url-web-form table,.c-p-url-web-header table{margin-bottom:0;}
.c-p-url-web-form .delete-url-web-form,.c-p-url-web-header .delete-url-web-header{margin-top:8px;}
.c-p-url-web-form td:first-child,.c-p-url-web-header td:first-child{width:200px;}
.c-p-url-web-form td:last-child,.c-p-url-web-header td:last-child{width:50px;text-align:center;}
/*页面渲染动作*/
.c-p-url-renderer-list table{margin-bottom:0;}
.c-p-url-renderer-list .td-renderer-element,.c-p-url-renderer-list .td-renderer-content{display:none;}
.c-p-url-renderer-list .td-renderer-op{width:65px;text-align:center;vertical-align:middle;}
.c-p-url-renderer-list .td-renderer-op .icon-drag-move{font-size:14px!important;}
.c-p-url-renderer-list .td-renderer-op .input-group-addon:last-child{border-left:1px solid #d2d6de;}
/*显示标签列表,input-group-btn必须position:static,否则dropdown-menu定位太窄*/
.c-p-url-page-signs>.input-group-btn{position:static;}
.c-p-url-page-signs .dropdown-menu{padding:0;box-shadow:none;border:0;}
.c-p-url-page-signs .c-p-url-ps-table{padding:10px;box-shadow:0 0 2px 2px #eee;border:1px solid #ddd;border-radius:4px;}
.c-p-url-page-signs .c-p-url-ps-table .table{margin-bottom:0;}
.c-p-url-page-signs .c-p-url-ps-table .table td>a,.c-p-url-page-signs .dropdown-menu .table td>span{margin-right:5px;}
.c-p-url-page-signs .c-p-url-ps-table .table td>*:last-child{margin-right:0;}
.c-p-url-page-signs .c-p-url-ps-table .table td{white-space:normal!important;width:auto!important;}
.c-p-url-page-signs .c-p-url-ps-table .table td:first-child{white-space:nowrap!important;}
.c-p-url-page-signs .c-p-url-ps-table .table td:last-child{text-align:left!important;}

/*分页字段*/
.c-p-url-pagination-fields{
width:auto;
overflow:hidden;
}

/*参数标签样式*/
.param-label{
font-size:14px;
font-weight:normal;
padding: 4px 8px;
text-decoration: none;
border-bottom: none;
color: #3c8dbc;
border: 1px #ccc solid;
margin:7px 15px 5px 0;
position:relative;
float:left;
}
.param-label em.delete{
font-style: normal;
display: block;
position: absolute;
top: -7px;
right: -5px;
z-index: 999;
background:#fff;
}

/*采集器字段*/
.c-p-field-list .field-name{color:#3c8dbc;cursor:pointer;}
.c-p-field-list .exist-process{color:green;}
.c-p-field-list thead .sort-field{font-size:12px;color:#cdcdcd;margin-left:5px;display:none;}


.c-p-field-list td .field-process{vertical-align:middle;}
.c-p-field-list td .glyphicon.icon-drag-move{font-size:12px;vertical-align:middle;}
.c-p-field-list td .glyphicon.field-clone{font-size:12px;top:0.3px;vertical-align:middle;}
.c-p-field-list td .glyphicon.field-del{font-size:12px;top:1.1px;vertical-align:middle;}

#coll_tab_content td .glyphicon.icon-drag-move{font-size:12px;vertical-align:middle;}
#coll_tab_content td .glyphicon.clone{font-size:12px;top:0.3px;vertical-align:middle;}
#coll_tab_content td .glyphicon.delete{font-size:12px;top:1.1px;vertical-align:middle;}

.c-p-process-accordion .panel-heading .glyphicon.c-p-process-title{font-size:11px;vertical-align:middle;}
.c-p-process-accordion .panel-heading .glyphicon.icon-drag-move{font-size:12px;vertical-align:middle;}
.c-p-process-accordion .panel-heading .glyphicon.c-p-process-clone{font-size:12px;top:0.3px;vertical-align:middle;}
.c-p-process-accordion .panel-heading .glyphicon.c-p-process-del{font-size:12px;top:1.1px;vertical-align:middle;}
.c-p-process-accordion .panel-heading .panel-title-title{float:left;}
.c-p-process-accordion .panel-heading .panel-title-title input{display:none;border-radius:2px;border:1px solid #ccc;line-height:14px;font-size:12px;margin-left:5px;padding:1px 1px 1px 2px;}
.c-p-process-accordion .panel-heading .panel-title-ops{float:right;line-height:19px;}


.iga-rt{text-align:left;line-height:20px;}
.iga-rt .blk{display:block;}
.iga-rt .mgr{margin-right:5px;}

.iga-rt1{padding:0;vertical-align:top;}
.iga-rt1 .slt{width:100%;min-width:58px;height:24px;display:block;color:#555;font-weight:bold;padding:1px;margin:0;border:0;background:#F1F1F1;}
.iga-rt1 .op{margin:0;padding:3px 6px;list-style:none;}
.iga-rt1 .op li{display:none;}

.nav-save-rule{float:right!important;}


/*数据处理*/
.form-control-slt{width:30px!important;text-align:center;}
.form-control-slt select.form-control{min-width:20px!important;width:20px!important;height:30px!important;float:none!important;border:0!important;padding:0!important;margin:0!important;text-indent:-20px!important;}

.p-m-func-field,.p-m-insert-field{display:inline;width:80px;border:0;cursor:pointer;margin:0;padding:0;height:auto;color:#555;}

.p-m-api-val-field,.p-m-api-header-field{display:none;margin-left:-1px;padding:0;}

.p-m-api-table table,.p-m-api-header-table table{margin-bottom:0;}
.p-m-api-table td:first-child,.p-m-api-header-table td:first-child{width:200px;}
.p-m-api-table td:last-child,.p-m-api-header-table td:last-child{width:50px;text-align:center;}
.p-m-api-rule-module{display:none;}

.p-m-html-tags{}
.p-m-html-tags a{font-size:12px;font-weight:normal;cursor:pointer;margin-right:5px;}
.p-m-html-tags a span{margin-right:2px;color:#999;}
.p-m-if-val-func{position:relative;}
.p-m-if-val-func a.input-group-addon{border-left:0;}
.p-m-if-val-func .input-group-btn>select{margin-left:-1px;width:auto;padding:0;padding-left:5px;text-align:center;}
.p-m-if-op{width:70px;padding:15px 0 0 8px!important;font-size:11px;}
.p-m-if-add{font-size:12px;}

.p-m-download-op{display:none;margin-top:15px;}
/*测试*/
.table-test-loop thead{background:#fafafa;}
.table-test-loop thead th,.table-test-loop thead td{
padding:0!important;
-moz-user-select:none;
-webkit-user-select:none;
-ms-user-select:none;
-khtml-user-select:none;
user-select:none;
}
.table-test-loop thead th>div{
cursor:w-resize;
padding:8px;
}
.table-test-loop tbody td{
position:relative;
}
.table-test-loop input{border:0;overflow:hidden;width:100%;min-width:150px;}
.table-test-loop .view-box{padding-left:20px;}
.table-test-loop .view-ipt{}
.table-test-loop .view-btn{position:absolute;font-size:12px;top:12px;left:5px;}

@media (min-width: 1200px) {
/*table-responsive设置overflow:inherit;可正常显示dropdown-menu*/
.c-p-url-renderer-list{overflow:inherit;}
}

@media (max-width: 1199px) {
/*dropdown-menu用fixed避免被table-responsive的overflow:hidden;影响*/
.c-p-url-renderer-list .c-p-url-page-signs .dropdown-menu{padding:0;border:4px solid #ddd;border-radius:4px;background:transparent;position:fixed;left:10px;right:10px;bottom:10px;top:auto;max-height:80%;overflow-y:scroll;}
.c-p-url-renderer-list .c-p-url-page-signs .dropdown-menu .c-p-url-ps-table{background:#fff;}
}

@media (min-width: 768px) {
.c-p-url-web-form,.c-p-url-web-header{overflow:inherit;} /*table-responsive设置overflow:inherit;可正常显示dropdown-menu*/
}

@media (max-width: 767px){
.c-p-url-page-signs .dropdown-menu .table td>a,.c-p-url-page-signs .dropdown-menu .table td>span{display:block;margin-right:0;}
/*dropdown-menu用fixed避免被table-responsive的overflow:hidden;影响*/
.c-p-url-web-form .c-p-url-page-signs .dropdown-menu,.c-p-url-web-header .c-p-url-page-signs .dropdown-menu{padding:0;border:4px solid #ddd;border-radius:4px;background:transparent;position:fixed;left:10px;right:10px;bottom:10px;top:auto;max-height:80%;overflow-y:scroll;}
.c-p-url-web-form .c-p-url-page-signs .dropdown-menu .c-p-url-ps-table,.c-p-url-web-header .c-p-url-page-signs .dropdown-menu .c-p-url-ps-table{background:#fff;}
}

@media (max-width: 550px){
/*采集器tab*/
.coll-tab>li{margin-bottom:5px;width:33%;}
.coll-tab>li>a{padding:7px 0;border:solid 1px #ddd;text-align:center;}
.coll-tab>li:nth-child(3).active>a{background:#fff;}
.coll-tab>li.active>a{border-radius:3px;border-bottom-color:#ddd!important;}
.coll-tab .nav-save-rule{float:left!important;}
.coll-tab .nav-save-rule>a{color:#999;}

.c-p-source-tab>li{margin-bottom:5px;margin-right:3px;width:auto;}
.c-p-source-tab>li>a{padding:5px 7px;border:solid 1px #ddd;text-align:center;}
.c-p-source-tab>li.active>a{border-radius:3px;border-bottom-color:#ddd!important;background-color:#efefef!important;}
/*自适应第一个td宽度*/
.c-p-request-headers td:first-child,.c-p-request-headers-img td:first-child{width:auto;}
.c-p-url-web-form td:first-child,.c-p-url-web-header td:first-child{width:auto;}
.p-m-api-table td:first-child,.p-m-api-header-table td:first-child{width:auto;}
}
2 changes: 1 addition & 1 deletion public/static/css/cpattern_browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#skycaiji_console .skycaiji-block{width:100%;overflow:hidden;line-height:20px;padding-top:5px;}
#skycaiji_console .skycaiji-block>.skycaiji-b-l{float:left;width:130px;}
#skycaiji_console .skycaiji-block>.skycaiji-b-c{margin-left:130px;margin-right:260px;}
#skycaiji_console .skycaiji-block>.skycaiji-b-c .skycaiji-b-c-i{margin-right:20px;}
#skycaiji_console .skycaiji-block>.skycaiji-b-c .skycaiji-b-c-i{margin-right:20px;min-width:300px;}
#skycaiji_console .skycaiji-block>.skycaiji-b-c input{width:100%;height:20px;float:left;}
#skycaiji_console .skycaiji-block>.skycaiji-b-c select{width:20px;height:20px;overflow:hidden;float:left;}
#skycaiji_console .skycaiji-block>.skycaiji-b-r{padding-left:5px;float:left;}
Expand Down
13 changes: 13 additions & 0 deletions public/static/css/dataapi.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@CHARSET "UTF-8";


#dataapi_list .status{color:green;}
#dataapi_list .status-close{color:red;}

#config_conds tr>th:first-child,#config_conds tr>td:first-child{padding-left:15px;}
#config_conds thead th{padding-top:13px;padding-bottom:13px;}
#config_conds tbody tr>td:last-child{vertical-align:middle;font-size:14px;}
#config_conds .config-cond-move{font-size:12px;}
#config_conds .config-cond-dlt{margin-left:2px;margin-right:2px;}
#config_conds .config-cond-sub td:FIRST-CHILD{padding-left:50px; background:url('../images/bg_column.gif') no-repeat 15px 15px;}
#config_conds .config-cond-sub .config-cond-add{display:none;}
51 changes: 51 additions & 0 deletions public/static/css/dataset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
@CHARSET "UTF-8";
/*数据集*/
#dataset_list .fields{
border:0;padding:0px 5px;height:20px;line-height:14px;font-size:12px;color:#555;background:#fff;
}
#dataset_db_list td .txt-big{height:100px!important;}
#dataset_db_list td{vertical-align:middle;}
#dataset_db_list td .form-control{
height: 30px;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}

.dataset-db-list::-webkit-scrollbar{
width: 12px;
height: 12px;
}
.dataset-search::-webkit-scrollbar{
width: 8px;
height: 8px;
}
.dataset-db-list::-webkit-scrollbar-button,.dataset-search::-webkit-scrollbar-button{
background-color:#efefef;
}
.dataset-db-list::-webkit-scrollbar-track,.dataset-search::-webkit-scrollbar-track{
background:#efefef;
}
.dataset-db-list::-webkit-scrollbar-thumb,.dataset-search::-webkit-scrollbar-thumb{
background: #ccc;
border-radius: 4px;
}

.dataset-search{width:100%;overflow-x:scroll;white-space:nowrap;padding-bottom:5px;padding-right:5px;}

#dataset_db_list input::placeholder,#dataset_db_list textarea::placeholder{color:#bbb!important;}

#dataset_fields tr>th:first-child,#dataset_fields tr>td:first-child{padding-left:15px;}
#dataset_fields thead th{padding-top:13px;padding-bottom:13px;}


.dataset-sep{
color: #999;
text-indent: -9999px;
display: inline-block;
width: 3px;
line-height: 12px;
margin-left: 2px;
border-left: 1px solid #aaa;
}
78 changes: 78 additions & 0 deletions public/static/css/release.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
@CHARSET "UTF-8";

/*发布设置*/
#dataset_config table tr td{height:50px;vertical-align:middle!important;}
.dataset-field-txt>.input-group-addon{padding:0;}
.dataset-field-txt>.input-group-addon a.dropdown-toggle{border-color:#fff;padding:6px 12px;color:#666;}
.dataset-field-txt>.input-group-addon a.dropdown-toggle:hover{color:#000;}
.dataset-field-txt>.input-group-addon a.dropdown-toggle .caret{margin-top:-2px;}

.rele-db-error{margin-top:10px;color:red;font-weight:bold;}
.db-table-bind-params{padding:0;margin-bottom:0;border:0;}
.db-table-bind-params .table{margin-bottom:0;}
.db-table-bind-params .table tr>th:first-child,.db-table-bind-params .table tr>td:first-child{padding-left:15px;}
.db-table-bind-params .table thead th{padding-top:13px;padding-bottom:13px;}
.db-table-bind-op{width:auto;height:auto;display:inline;padding:0;}
.db-table-bind-where-tpl,.db-table-bind-query-tpl{display:none;}

.db-table-bind-where,.db-table-bind-query{display:none;}
.db-table-bind-data-seq{display:none;}
.db-table-bind-where,.db-table-bind-query,.db-table-bind-data{border:0;}

.db-table-bind-signs>.input-group-btn{position:static;}

.dm-db-charset li {padding:5px 15px;}
.dm-db-charset li.divider{padding:0;}
.dm-db-charset li span{padding:5px; cursor:pointer;color:#555;}
.dm-db-charset li span:hover{background:#eee;}

.toapi-param-table table,.toapi-header-table table{margin-bottom:0;}
.toapi-param-table td:first-child,.toapi-header-table td:first-child{width:200px;}
.toapi-param-table td:last-child,.toapi-header-table td:last-child{width:50px;text-align:center;}

#toapi_resp_module_help .help-block{display:none;margin:0;}

.toapi-app-table table tr td{height:50px;vertical-align:middle!important;}
.toapi-field-txt>.input-group-addon{padding:0;}
.toapi-field-txt>.input-group-addon a.dropdown-toggle{border-color:#fff;padding:6px 12px;color:#666;}
.toapi-field-txt>.input-group-addon a.dropdown-toggle:hover{color:#000;}
.toapi-field-txt>.input-group-addon a.dropdown-toggle .caret{margin-top:-2px;}

.toapi-field-slt select.form-control{min-width:120px!important;margin-right:-1px;min-height:34px;max-height:90px;}
.toapi-field-slt textarea.form-control{height:90px;}
.toapi-field-slt input.form-control,.toapi-field-slt textarea.form-control,.toapi-field-slt .input-group-addon{display:none!important;}

.toapi-field-slt-txt input.form-control,.toapi-field-slt-txt textarea.form-control,.toapi-field-slt-txt .input-group-addon{display:table-cell!important;}

/**/
#cms_bind em{color:red;}
#cms_bind .box{margin-bottom:0;}
#cms_bind .table{margin-bottom:0;}
#toapi_app_params em{color:red;}



@media (min-width: 1200px) {
/*table-responsive设置overflow:inherit;可正常显示dropdown-menu*/
.db-table-bind-where,.db-table-bind-query,.db-table-bind-data{overflow:inherit;}
}

@media (max-width: 1199px) {
/*dropdown-menu用fixed避免被table-responsive的overflow:hidden;影响*/
.db-table-bind-signs .dropdown-menu{padding:0;border:4px solid #ddd;border-radius:4px;background:transparent;position:fixed;left:10px;right:10px;bottom:10px;top:auto;max-height:80%;overflow-y:scroll;}
.db-table-bind-signs .dropdown-menu table{margin:0;}
}

@media (min-width: 900px) {
#dataset_config .table tr td:FIRST-CHILD{width:200px;white-space:nowrap;padding-right:10px;}
.toapi-app-table .table tr td:FIRST-CHILD{width:200px;white-space:nowrap;padding-right:10px;}
#cms_bind .table tr td:FIRST-CHILD{width:200px;white-space:nowrap;padding-right:10px;}
}

@media (max-width: 550px){
.mobile-input-group{width:100%;}
.mobile-input-group>.input-group-addon{display:table-caption;width:100%;background:#fafafa;margin-bottom:5px;border-right:1px solid #ccc;}
.mobile-input-group1>.input-group-addon{display:block;}

.toapi-param-table td:first-child,.toapi-header-table td:first-child{width:auto;}
}
7 changes: 7 additions & 0 deletions public/static/css/task.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@CHARSET "UTF-8";

#task_list_folder .taskgroup-opened .icon-folder-pre:before{content:"\2212"}
#task_list_folder .taskgroup-opened .icon-folder:before{content:"\e118"}

#task_list_folder .icon-folder-pre:before{font-size:12px;content:"\002b"}
#task_list_folder .icon-folder:before{content:"\e117";margin-right:5px;}
Loading

0 comments on commit a4d3531

Please sign in to comment.