- [misc] Remove unused css and js files.

This commit is contained in:
liugang
2025-09-15 10:02:06 +08:00
parent 18e5766689
commit 985e56e785
672 changed files with 0 additions and 36102 deletions
-20
View File
@@ -1,20 +0,0 @@
#paramDiv .input-group {
padding: 3px;
}
#paramDiv .form-control {
display: table-cell;
position: relative;
z-index: 2;
float: left;
width: 100%;
margin-bottom: 0;
}
.table-row {
margin-bottom: 10px;
}
.col-custom {
margin-bottom: 10px;
}
.paramTool {
margin: 5px 0;
}
-6
View File
@@ -1,6 +0,0 @@
.modal-dialog {width: 75%;}
form {margin-bottom: 100px;}
table {width: 90% !important;}
#whiteListBox div.input-group {margin-bottom: 2px;}
#whiteListBox .input-group:last-child {margin-top: 10px;}
#aclBox > th {vertical-align: top; padding-top: 18px;}
-20
View File
@@ -1,20 +0,0 @@
#paramDiv .input-group {
padding: 3px;
}
#paramDiv .form-control {
display: table-cell;
position: relative;
z-index: 2;
float: left;
width: 100%;
margin-bottom: 0;
}
.table-row {
margin-bottom: 10px;
}
.col-custom {
margin-bottom: 10px;
}
.paramTool {
margin: 5px 0;
}
-1
View File
@@ -1 +0,0 @@
#whiteListBox .input-group:last-child {margin-top: 10px;}
-32
View File
@@ -1,32 +0,0 @@
.cell {padding: 0;}
.no-content {width: 100px; height: 100px; margin: 0 auto;}
.notice {text-align: center; padding-left: 15px; padding-top: 20px;}
.no-content-button {text-align: center; padding-top: 20px;}
.no-content-button a:nth-child(2) {margin-left: 20px;}
.apiList .detail .detail-title {padding-left: 5px; list-style: none;}
.menu-actions {position: absolute; top: 7px; right: 45px; padding: 7px 8px;}
.detail ul {position: relative;}
.tail-info {position: absolute; right: 0; padding-left: 10px; padding-top: 1px;}
.tail-info, .doc-title, span.item {background: #fff;}
span.item>a {padding-left: 6px;}
span.dotted-line+a {display: block;}
#modules li.doc:before, .chapterNode:before, .independent:before {content: " "; width: 100%; border-bottom: 1px dashed #b5b9c5; position: absolute; top: 13px; right: 0; left: 30px;}
.doc-title ,.item{display: inline-block !important; position: relative; padding-right: 10px; max-width:80%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;}
#modules i.icon-file-text {color: #D0D2D6; font-size: 14px;}
.sortable-sorting .module-name > a {cursor: move;}
.sortable-sorting li >.tree-group {opacity: .5;}
.sortable-sorting li:before {opacity: .3;}
.sortable-sorting .drop-here .tree-group {background-color: #fff3e0;}
.sortable-sorting .drop-here .tree-group > * {opacity: .1;}
.sortable-sorting .drag-shadow .tree-group {opacity: 1!important;}
.sortable-sorting .drag-shadow .tree-actions {visibility: hidden;}
.is-sorting > li:before {opacity: 1;}
.is-sorting > li > .tree-group {opacity: 1; border-radius: 4px;}
.is-sorting > li ul {display: none!important;}
li.drag-shadow ul {display: none!important;}
.apiList {height: 100%;}
#queryBox #groupAndOr {min-width: 60px;}
.tree li>.list-toggle {left: -4px;}
-6
View File
@@ -1,6 +0,0 @@
.c-date {width: 150px;}
.c-actions {width: 60px;}
tbody tr td {white-space: nowrap; overflow: hidden; text-overflow: clip;}
#mainContent {max-height: 400px;}
#releaseListForm {margin-bottom: 20px;}
-5
View File
@@ -1,5 +0,0 @@
.col-attr {vertical-align: middle; margin-bottom: 8px;}
.tree {padding-left: 30px!important;}
.leftBar > .btn {margin-right: 0px;}
.leftBar > .divider {color: #D9D9D9;}
.leftBar > .page-title > .text {font-weight: 400;}
-13
View File
@@ -1,13 +0,0 @@
.flex-content #content {flex: auto; overflow-y: auto; height: calc(100vh - 125px);}
.flex-content #history {flex: 0 0 302px; position: relative; overflow: auto;}
.flex-content #history > #closeBtn {position: absolute; right: 10px; top: 10px;}
#content .detail-content.article-content::-webkit-scrollbar,
#outlineMenu::-webkit-scrollbar,
#history::-webkit-scrollbar {height: 0px; width: 0px; background: transparent;}
#content .detail-content.article-content::-moz-scrollbar,
#outlineMenu::-moz-scrollbar,
#hostory::-moz-scrollbar {height: 0px; width: 0px; background: transparent;}
.main-col iframe {min-height: unset;}
.bottom-btn-tree {display: none;}
.main-col .doc-title .actions a > span {color: #9EA3B0;}
-15
View File
@@ -1,15 +0,0 @@
$(function()
{
$('#apiForm').ajaxForm({
success: (data) => {
if (data.result == 'success') {
if (data.locate) {
window.parent.location.href = data.locate
}
$.zui.closeModal()
}
}
})
toggleLibType(libType);
});
-13
View File
@@ -1,13 +0,0 @@
new Vue({
el: '#app',
data: function () {
return {
attr: ''
}
},
methods: {
changeAttr(val) {
this.attr = JSON.stringify(val)
}
}
})
-105
View File
@@ -1,105 +0,0 @@
$(function()
{
$('#top-submit').click(function()
{
$(this).addClass('disabled');
$('form').submit();
})
})
var app = new Vue({
el: '#apiApp',
data: {
header: [],
queryP: [],
body: "",
response: "",
params: "",
defaultHeader: {field: '', required: '', desc: ''},
attr: [],
attrType: 'formData',
api
},
created() {
this.header.push({...this.defaultHeader})
this.queryP.push({...this.defaultHeader})
if(api) {
if(api.params.header && api.params.header.length > 0) this.header = api.params.header
if(api.params.query && api.params.query.length > 0) this.queryP = api.params.query
if(api.params.params && api.params.params.length > 0) this.attr = api.params.params
if(api.params.paramsType) this.attrType = api.params.paramsType
this.setParams();
}
},
watch: {
header: {
handler() {
this.setParams();
},
deep: true
},
queryP: {
handler() {
this.setParams()
},
deep: true
},
body: {
handler() {
this.setParams()
},
deep: true
},
attrType: {
handler() {
this.setParams()
},
deep: true
}
},
methods: {
changeAttr(val) {
this.body = val
},
changeType(val) {
this.attrType = val
},
changeRes(val) {
val = this.filterParams(val)
this.response = JSON.stringify(val)
},
setParams() {
const header = this.filterParams(this.header)
const body = this.filterParams(this.body)
const queryP = this.filterParams(this.queryP)
const params = {
header: header,
params: body,
paramsType: this.attrType,
query: queryP,
}
this.params = JSON.stringify(params);
},
filterParams(data) {
const res = []
if(data && data.length > 0) {
data.forEach(item => {
if(item.field && item.field.length > 0) {
res.push(item)
}
})
}
return res
},
del(data, key) {
if(data.length <= 1) {
return
}
data.splice(key, 1)
},
add(data, key, t) {
if(t == "header" || t == 'query') {
data.splice(key + 1, 0, {...this.defaultHeader})
}
}
}
})
-18
View File
@@ -1,18 +0,0 @@
new Vue({
el: '#app',
data: function () {
return {
attr: '',
struct: {
...struct,
attribute: struct.attribute,
structType: struct.type
}
}
},
methods: {
changeAttr(val) {
this.attr = JSON.stringify(val)
},
}
})
-4
View File
@@ -1,4 +0,0 @@
$(function()
{
$('.main-table .table').css('cursor', 'default');
})
-159
View File
@@ -1,159 +0,0 @@
/**
* Display the document in full screen.
*
* @access public
* @return void
*/
function fullScreen()
{
var element = document.getElementById('content');
var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullscreen;
if(requestMethod)
{
var afterEnterFullscreen = function()
{
$('#mainActions').removeClass('hidden');
$('#content').addClass('scrollbar-hover');
$('#content .actions').addClass('hidden');
$('#content .file-image .right-icon').addClass('hidden');
$('#content .detail').eq(1).addClass('hidden');
$.cookie('isFullScreen', 1);
};
var whenFailEnterFullscreen = function(error)
{
$.cookie('isFullScreen', 0);
};
try
{
var result = requestMethod.call(element);
if(result && (typeof result.then === 'function' || result instanceof window.Promise))
{
result.then(afterEnterFullscreen).catch(whenFailEnterFullscreen);
}
else
{
afterEnterFullscreen();
}
}
catch (error)
{
whenFailEnterFullscreen(error);
}
}
$('.main-col iframe').css('min-height', $(window).height() + 'px');
}
/**
* Exit full screen.
*
* @access public
* @return void
*/
function exitFullScreen()
{
$('#mainActions').addClass('hidden');
$('#content').removeClass('scrollbar-hover');
$('#content .actions').removeClass('hidden');
$('#content .file-image .right-icon').removeClass('hidden');
$('#content .detail').eq(1).removeClass('hidden');
$('.main-col iframe').css('min-height', '380px');
$.cookie('isFullScreen', 0);
}
document.addEventListener('fullscreenchange', function (e)
{
if(!document.fullscreenElement) exitFullScreen();
});
document.addEventListener('webkitfullscreenchange', function (e)
{
if(!document.webkitFullscreenElement) exitFullScreen();
});
document.addEventListener('mozfullscreenchange', function (e)
{
if(!document.mozFullScreenElement) exitFullScreen();
});
document.addEventListener('msfullscreenChange', function (e)
{
if(!document.msfullscreenElement) exitFullScreen();
});
$(function()
{
$(document).keydown(function(event)
{
if($.cookie('isFullScreen') == 1)
{
if(event.keyCode == 37) $('#prevPage').click();
if(event.keyCode == 39) $('#nextPage').click();
}
});
if($.cookie('isFullScreen') == 1) fullScreen();
$('.menu-actions > a').click(function()
{
$(this).parent().hasClass('open') ? $(this).css('background', 'none') : $(this).css('background', '#f1f1f1');
})
$('.menu-actions > a').blur(function() {$(this).css('background', 'none');})
/* Update doc content silently on switch doc version, story #40503 */
$('body').on('click', '.api-version-menu a, #mainActions .container a', function(event)
{
var $tmpDiv = $('<div>');
$tmpDiv.load($(this).data('url') + ' #mainContent', function()
{
$('#content').html($tmpDiv.find('#content').html());
$('#sidebarContent').html($tmpDiv.find('#sidebarContent').html());
$('#actionbox .histories-list').html($tmpDiv.find('#actionbox .histories-list').html());
if($.cookie('isFullScreen') == 1) fullScreen();
$('#content [data-ride="tree"]').tree();
$('#outline li.has-list').addClass('open in');
$('#outline li.has-list>i+ul').prev('i').remove();
});
}).on('click', '.comment-edit-form .btn-hide-form', function()
{
$('.comment-edit-form #submit').attr('disabled', false);
}).on('click', '#docVersionMenu.diff > .drop-body > li', function(e)
{
e.stopPropagation();
}).on('click', '#docVersionMenu #changeBtn', function(e)
{
$('#docVersionMenu').addClass('diff');
e.stopPropagation();
}).on('click', '#hisTrigger', function()
{
var $history = $('#history');
var $icon = $(this);
if($history.hasClass('hidden'))
{
$history.removeClass('hidden');
$icon.addClass('text-primary');
}
else
{
$history.addClass('hidden');
$icon.removeClass('text-primary');
}
}).on('click', '#closeBtn', function()
{
$('#history').addClass('hidden');
$('#hisTrigger').removeClass('text-primary');
});
$('#history').append('<a id="closeBtn" href="###" class="btn btn-link"><i class="icon icon-close"></i></a>');
$('#history').find('.btn.pull-right').removeClass('pull-right');
$('.comment-edit-form').ajaxForm({
success: function(data) {
location.reload();
}
})
});