[全量] 初始化项目代码、配置、文档及Agent协同harness

This commit is contained in:
2026-04-02 11:36:05 +08:00
parent 0553309cdf
commit 87e571d9ec
1133 changed files with 221948 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

View File

@@ -0,0 +1,3 @@
/*! UEditorPlus v2.0.0*/
body{overflow:hidden;width:540px}.wrapper{margin:10px auto 0;font-size:12px;overflow:hidden;width:520px;height:315px}.clear{clear:both}.wrapper .left{float:left;margin-left:10px}.wrapper .right{float:right;border-left:2px dotted #EDEDED;padding-left:15px}.section{margin-bottom:15px;width:240px;overflow:hidden}.section h3{font-weight:700;padding:5px 0;margin-bottom:10px;border-bottom:1px solid #EDEDED;font-size:12px}.section ul{list-style:none;overflow:hidden;clear:both}.section li{float:left;width:120px}.section .tone{width:80px}.section .preview{width:220px}.section .preview table{text-align:center;vertical-align:middle;color:#666}.section .preview caption{font-weight:700}.section .preview td{border-width:1px;border-style:solid;height:22px}.section .preview th{border-style:solid;border-color:#DDD;border-width:2px 1px 1px;height:22px;background-color:#F7F7F7}

View File

@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" src="../internal.js?04dbe7f0"></script>
<link rel="stylesheet" type="text/css" href="edittable.css?97f6eb5f">
</head>
<body>
<div class="wrapper">
<div class="left">
<div class="section">
<h3><var id="lang_tableStyle"></var></h3>
<ul>
<li>
<label onselectstart="return false"><input type="checkbox" id="J_title" name="style"/><var
id="lang_insertTitle"></var></label>
</li>
<li>
<label onselectstart="return false"><input type="checkbox" id="J_titleCol" name="style"/><var
id="lang_insertTitleCol"></var></label>
</li>
</ul>
<ul>
<li>
<label onselectstart="return false"><input type="checkbox" id="J_caption" name="style"/><var
id="lang_insertCaption"></var></label>
</li>
<li>
<label onselectstart="return false"><input type="checkbox" id="J_sorttable" name="style"/><var
id="lang_orderbycontent"></var></label>
</li>
</ul>
<div class="clear"></div>
</div>
<div class="section">
<h3><var id="lang_tableSize"></var></h3>
<ul>
<li>
<label><input type="radio" id="J_autoSizeContent" name="size"/><var id="lang_autoSizeContent"></var></label>
</li>
<li>
<label><input type="radio" id="J_autoSizePage" name="size"/><var
id="lang_autoSizePage"></var></label>
</li>
</ul>
<div class="clear"></div>
</div>
<div class="section">
<h3><var id="lang_borderStyle"></var></h3>
<ul>
<li>
<span><var id="lang_color"></var></span>
<input type="text" class="tone" id="J_tone" readonly='readonly'/>
</li>
</ul>
<div class="clear"></div>
</div>
</div>
<div class="right">
<div class="section">
<h3><var id="lang_example"></var></h3>
<div class="preview" id="J_preview">
</div>
</div>
</div>
</div>
<script type="text/javascript" src="edittable.js?69ed0ec5"></script>
</body>
</html>

View File

@@ -0,0 +1,2 @@
/*! UEditorPlus v2.0.0*/
!function(){var a,b=$G("J_title"),c=$G("J_titleCol"),d=$G("J_caption"),e=$G("J_sorttable"),f=$G("J_autoSizeContent"),g=$G("J_autoSizePage"),h=$G("J_tone"),i=$G("J_preview"),j=function(){a=this,a.init()};j.prototype={init:function(){var i=new UE.ui.ColorPicker({editor:editor}),j=new UE.ui.Popup({editor:editor,content:i});b.checked=editor.queryCommandState("inserttitle")==-1,c.checked=editor.queryCommandState("inserttitlecol")==-1,d.checked=editor.queryCommandState("insertcaption")==-1,e.checked=1==editor.queryCommandState("enablesort");var k=editor.queryCommandState("enablesort"),l=editor.queryCommandState("disablesort");e.checked=!!(k<0&&l>=0),e.disabled=!!(k<0&&l<0),e.title=k<0&&l<0?lang.errorMsg:"",a.createTable(b.checked,c.checked,d.checked),a.setAutoSize(),a.setColor(a.getColor()),domUtils.on(b,"click",a.titleHanler),domUtils.on(c,"click",a.titleColHanler),domUtils.on(d,"click",a.captionHanler),domUtils.on(e,"click",a.sorttableHanler),domUtils.on(f,"click",a.autoSizeContentHanler),domUtils.on(g,"click",a.autoSizePageHanler),domUtils.on(h,"click",function(){j.showAnchor(h)}),domUtils.on(document,"mousedown",function(){j.hide()}),i.addListener("pickcolor",function(){a.setColor(arguments[1]),j.hide()}),i.addListener("picknocolor",function(){a.setColor(""),j.hide()})},createTable:function(a,b,c){var d=[];if(d.push("<table id='J_example'>"),c&&d.push("<caption>"+lang.captionName+"</caption>"),a){d.push("<tr>"),b&&d.push("<th>"+lang.titleName+"</th>");for(var e=0;e<5;e++)d.push("<th>"+lang.titleName+"</th>");d.push("</tr>")}for(var f=0;f<6;f++){d.push("<tr>"),b&&d.push("<th>"+lang.titleName+"</th>");for(var g=0;g<5;g++)d.push("<td>"+lang.cellsName+"</td>");d.push("</tr>")}d.push("</table>"),i.innerHTML=d.join(""),this.updateSortSpan()},titleHanler:function(){var c=$G("J_example"),d=document.createDocumentFragment(),e=domUtils.getComputedStyle(domUtils.getElementsByTagName(c,"td")[0],"border-color"),f=c.rows[0].children.length;if(b.checked){c.insertRow(0);for(var g,h=0;h<f;h++)g=document.createElement("th"),g.innerHTML=lang.titleName,d.appendChild(g);c.rows[0].appendChild(d)}else domUtils.remove(c.rows[0]);a.setColor(e),a.updateSortSpan()},titleColHanler:function(){var b=$G("J_example"),d=domUtils.getComputedStyle(domUtils.getElementsByTagName(b,"td")[0],"border-color"),e=b.rows,f=e.length;if(c.checked)for(var g,h=0;h<f;h++)g=document.createElement("th"),g.innerHTML=lang.titleName,e[h].insertBefore(g,e[h].children[0]);else for(var h=0;h<f;h++)domUtils.remove(e[h].children[0]);a.setColor(d),a.updateSortSpan()},captionHanler:function(){var a=$G("J_example");if(d.checked){var b=document.createElement("caption");b.innerHTML=lang.captionName,a.insertBefore(b,a.firstChild)}else domUtils.remove(domUtils.getElementsByTagName(a,"caption")[0])},sorttableHanler:function(){a.updateSortSpan()},autoSizeContentHanler:function(){var a=$G("J_example");a.removeAttribute("width")},autoSizePageHanler:function(){var a=$G("J_example"),b=a.getElementsByTagName(a,"td");utils.each(b,function(a){a.removeAttribute("width")}),a.setAttribute("width","100%")},updateSortSpan:function(){var a=$G("J_example"),b=a.rows[0],c=domUtils.getElementsByTagName(a,"span");utils.each(c,function(a){a.parentNode.removeChild(a)}),e.checked&&utils.each(b.cells,function(a,b){var c=document.createElement("span");c.innerHTML="^",a.appendChild(c)})},getColor:function(){var a,b=editor.selection.getStart(),c=domUtils.findParentByTagName(b,["td","th","caption"],!0);return a=c&&domUtils.getComputedStyle(c,"border-color"),a||(a="#DDDDDD"),a},setColor:function(a){var b=$G("J_example"),c=domUtils.getElementsByTagName(b,"td").concat(domUtils.getElementsByTagName(b,"th"),domUtils.getElementsByTagName(b,"caption"));h.value=a,utils.each(c,function(b){b.style.borderColor=a})},setAutoSize:function(){var a=this;g.checked=!0,a.autoSizePageHanler()}},new j,dialog.onok=function(){editor.__hasEnterExecCommand=!0;var a={title:"inserttitle deletetitle",titleCol:"inserttitlecol deletetitlecol",caption:"insertcaption deletecaption",sorttable:"enablesort disablesort"};editor.fireEvent("saveScene");for(var b in a){var c=a[b].split(" "),d=$G("J_"+b);d.checked?editor.queryCommandState(c[0])!=-1&&editor.execCommand(c[0]):editor.queryCommandState(c[1])!=-1&&editor.execCommand(c[1])}editor.execCommand("edittable",h.value),f.checked?editor.execCommand("adaptbytext"):"",g.checked?editor.execCommand("adaptbywindow"):"",editor.fireEvent("saveScene"),editor.__hasEnterExecCommand=!1}}();

View File

@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" src="../internal.js?04dbe7f0"></script>
<style type="text/css">
.section {
text-align: center;
margin-top: 10px;
}
.section input {
margin-left: 5px;
width: 70px;
}
</style>
</head>
<body>
<div class="section">
<span><var id="lang_tdBkColor"></var></span>
<input type="text" id="J_tone"/>
</div>
<script type="text/javascript">
var tone = $G("J_tone"),
colorPiker = new UE.ui.ColorPicker({
editor: editor
}),
colorPop = new UE.ui.Popup({
editor: editor,
content: colorPiker
});
domUtils.on(tone, "click", function () {
colorPop.showAnchor(tone);
});
domUtils.on(document, 'mousedown', function () {
colorPop.hide();
});
colorPiker.addListener("pickcolor", function () {
tone.value = arguments[1];
colorPop.hide();
});
colorPiker.addListener("picknocolor", function () {
tone.value = "";
colorPop.hide();
});
dialog.onok = function () {
editor.execCommand("edittd", tone.value);
};
var start = editor.selection.getStart(),
cell = start && domUtils.findParentByTagName(start, ["td", "th"], true);
if (cell) {
var color = domUtils.getComputedStyle(cell, 'background-color');
if (/^#/.test(color)) {
tone.value = color
}
}
</script>
</body>
</html>

View File

@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>表格删除提示</title>
<script type="text/javascript" src="../internal.js?04dbe7f0"></script>
<style type="text/css">
.section {
width: 200px;
margin: 10px auto 0;
font-size: 14px;
}
.item {
text-align: center;
}
</style>
</head>
<body>
<div class="section">
<div class="item">
<label><input type="radio" id="J_delRow" name="cmd" checked/><var id="lang_delRow"></var></label>
</div>
<div class="item">
<label><input type="radio" id="J_delCol" name="cmd"/><var id="lang_delCol"></var></label>
</div>
</div>
<script type="text/javascript">
dialog.onok = function () {
$G("J_delRow").checked ? editor.execCommand("deleterow") : editor.execCommand("deletecol");
};
</script>
</body>
</html>