Reupload
这个提交包含在:
@ -1,20 +1,20 @@
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>利刃后端 WebIDE</title>
|
||||
<script src="./script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
指令:<input type="text" id="CommandName" />
|
||||
<a id="Info">下载</a>
|
||||
<br>消息:<br>
|
||||
<center>
|
||||
<textarea id="Main" style="width:80%;height:60%;"></textarea>
|
||||
<a id="Editing">0</a><button id="Last">上一个</button><button id="Next">下一个</button>
|
||||
<input type="text" id="Execute" style="width:80%;"/>
|
||||
</center>
|
||||
<button id="OutPut">下载</button>
|
||||
|
||||
</body>
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>利刃后端 WebIDE</title>
|
||||
<script src="./script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
指令:<input type="text" id="CommandName" />
|
||||
<a id="Info">下载</a>
|
||||
<br>消息:<br>
|
||||
<center>
|
||||
<textarea id="Main" style="width:80%;height:60%;"></textarea>
|
||||
<a id="Editing">0</a><button id="Last">上一个</button><button id="Next">下一个</button>
|
||||
<input type="text" id="Execute" style="width:80%;"/>
|
||||
</center>
|
||||
<button id="OutPut">下载</button>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
32
利刃Editor/lib.d.ts
vendored
32
利刃Editor/lib.d.ts
vendored
@ -1,17 +1,17 @@
|
||||
declare interface Addons{
|
||||
Config:AddonsConfig,
|
||||
Base:AddonsBase,
|
||||
Using:any;
|
||||
}
|
||||
declare interface AddonsConfig{
|
||||
Name:String,
|
||||
Author:String
|
||||
}
|
||||
declare interface AddonsBase{
|
||||
Const:any,
|
||||
Function:any;
|
||||
}
|
||||
declare interface AddonsUsing{
|
||||
Content:String,
|
||||
Execute:Array<String>;
|
||||
declare interface Addons{
|
||||
Config:AddonsConfig,
|
||||
Base:AddonsBase,
|
||||
Using:any;
|
||||
}
|
||||
declare interface AddonsConfig{
|
||||
Name:String,
|
||||
Author:String
|
||||
}
|
||||
declare interface AddonsBase{
|
||||
Const:any,
|
||||
Function:any;
|
||||
}
|
||||
declare interface AddonsUsing{
|
||||
Content:String,
|
||||
Execute:Array<String>;
|
||||
}
|
||||
@ -1,91 +1,91 @@
|
||||
"use strict";
|
||||
window.onload = (() => {
|
||||
Core();
|
||||
});
|
||||
var Core = (() => {
|
||||
var Using = 0;
|
||||
var Editing = {
|
||||
Config: {
|
||||
Name: "Addons",
|
||||
Author: "User"
|
||||
},
|
||||
Base: {
|
||||
Const: {},
|
||||
Function: {}
|
||||
},
|
||||
Using: {}
|
||||
};
|
||||
if (localStorage.getItem("[利刃]储存") != undefined && localStorage.getItem("[利刃]储存") != null) {
|
||||
Editing = JSON.parse(localStorage.getItem("[利刃]储存"));
|
||||
}
|
||||
var CommandName = document.getElementById("CommandName");
|
||||
var Main = document.getElementById("Main");
|
||||
var Info = document.getElementById("Info");
|
||||
var OutPut = document.getElementById("OutPut");
|
||||
var EditingExec = document.getElementById("Editing");
|
||||
var Last = document.getElementById("Last");
|
||||
var Next = document.getElementById("Next");
|
||||
var Execute = document.getElementById("Execute");
|
||||
CommandName.onchange = ((ev) => {
|
||||
if (Editing.Using[CommandName.value]) {
|
||||
Main.value = Editing.Using[CommandName.value].Content;
|
||||
}
|
||||
else {
|
||||
Main.value = "";
|
||||
Editing.Using[CommandName.value] = { Content: "", Execute: [] };
|
||||
}
|
||||
Using = 0;
|
||||
if (Editing.Using[CommandName.value].Execute[Using]) {
|
||||
Execute.value = Editing.Using[CommandName.value].Execute[Using];
|
||||
}
|
||||
else {
|
||||
Editing.Using[CommandName.value].Execute[Using] = "";
|
||||
Execute.value = "";
|
||||
}
|
||||
});
|
||||
Main.onchange = ((ev) => {
|
||||
console.log(Main.value);
|
||||
Editing.Using[CommandName.value].Content = Main.value;
|
||||
if (Main.value == "") {
|
||||
Editing.Using[CommandName.value] = undefined;
|
||||
}
|
||||
localStorage.setItem("[利刃]储存", JSON.stringify(Editing));
|
||||
});
|
||||
OutPut.onclick = ((ev) => {
|
||||
var Z = Info;
|
||||
Z.href = window.URL.createObjectURL(new Blob([JSON.stringify(Editing)]));
|
||||
Z.download = "main.lib.json";
|
||||
setTimeout(() => {
|
||||
Z.dispatchEvent(new MouseEvent("click"));
|
||||
}, 500);
|
||||
});
|
||||
EditingExec.innerText = `${Using}`;
|
||||
Last.onclick = (() => {
|
||||
if (Using == 0) {
|
||||
return;
|
||||
}
|
||||
Using = Using - 1;
|
||||
EditingExec.innerText = `${Using}`;
|
||||
if (Editing.Using[CommandName.value].Execute[Using]) {
|
||||
Execute.value = Editing.Using[CommandName.value].Execute[Using];
|
||||
}
|
||||
else {
|
||||
Editing.Using[CommandName.value].Execute[Using] = "";
|
||||
Execute.value = "";
|
||||
}
|
||||
});
|
||||
Next.onclick = (() => {
|
||||
Using = Using + 1;
|
||||
EditingExec.innerText = `${Using}`;
|
||||
if (Editing.Using[CommandName.value].Execute[Using]) {
|
||||
Execute.value = Editing.Using[CommandName.value].Execute[Using];
|
||||
}
|
||||
else {
|
||||
Editing.Using[CommandName.value].Execute[Using] = "";
|
||||
Execute.value = "";
|
||||
}
|
||||
});
|
||||
Execute.onchange = (() => {
|
||||
Editing.Using[CommandName.value].Execute[Using] = Execute.value;
|
||||
});
|
||||
});
|
||||
"use strict";
|
||||
window.onload = (() => {
|
||||
Core();
|
||||
});
|
||||
var Core = (() => {
|
||||
var Using = 0;
|
||||
var Editing = {
|
||||
Config: {
|
||||
Name: "Addons",
|
||||
Author: "User"
|
||||
},
|
||||
Base: {
|
||||
Const: {},
|
||||
Function: {}
|
||||
},
|
||||
Using: {}
|
||||
};
|
||||
if (localStorage.getItem("[利刃]储存") != undefined && localStorage.getItem("[利刃]储存") != null) {
|
||||
Editing = JSON.parse(localStorage.getItem("[利刃]储存"));
|
||||
}
|
||||
var CommandName = document.getElementById("CommandName");
|
||||
var Main = document.getElementById("Main");
|
||||
var Info = document.getElementById("Info");
|
||||
var OutPut = document.getElementById("OutPut");
|
||||
var EditingExec = document.getElementById("Editing");
|
||||
var Last = document.getElementById("Last");
|
||||
var Next = document.getElementById("Next");
|
||||
var Execute = document.getElementById("Execute");
|
||||
CommandName.onchange = ((ev) => {
|
||||
if (Editing.Using[CommandName.value]) {
|
||||
Main.value = Editing.Using[CommandName.value].Content;
|
||||
}
|
||||
else {
|
||||
Main.value = "";
|
||||
Editing.Using[CommandName.value] = { Content: "", Execute: [] };
|
||||
}
|
||||
Using = 0;
|
||||
if (Editing.Using[CommandName.value].Execute[Using]) {
|
||||
Execute.value = Editing.Using[CommandName.value].Execute[Using];
|
||||
}
|
||||
else {
|
||||
Editing.Using[CommandName.value].Execute[Using] = "";
|
||||
Execute.value = "";
|
||||
}
|
||||
});
|
||||
Main.onchange = ((ev) => {
|
||||
console.log(Main.value);
|
||||
Editing.Using[CommandName.value].Content = Main.value;
|
||||
if (Main.value == "") {
|
||||
Editing.Using[CommandName.value] = undefined;
|
||||
}
|
||||
localStorage.setItem("[利刃]储存", JSON.stringify(Editing));
|
||||
});
|
||||
OutPut.onclick = ((ev) => {
|
||||
var Z = Info;
|
||||
Z.href = window.URL.createObjectURL(new Blob([JSON.stringify(Editing)]));
|
||||
Z.download = "main.lib.json";
|
||||
setTimeout(() => {
|
||||
Z.dispatchEvent(new MouseEvent("click"));
|
||||
}, 500);
|
||||
});
|
||||
EditingExec.innerText = `${Using}`;
|
||||
Last.onclick = (() => {
|
||||
if (Using == 0) {
|
||||
return;
|
||||
}
|
||||
Using = Using - 1;
|
||||
EditingExec.innerText = `${Using}`;
|
||||
if (Editing.Using[CommandName.value].Execute[Using]) {
|
||||
Execute.value = Editing.Using[CommandName.value].Execute[Using];
|
||||
}
|
||||
else {
|
||||
Editing.Using[CommandName.value].Execute[Using] = "";
|
||||
Execute.value = "";
|
||||
}
|
||||
});
|
||||
Next.onclick = (() => {
|
||||
Using = Using + 1;
|
||||
EditingExec.innerText = `${Using}`;
|
||||
if (Editing.Using[CommandName.value].Execute[Using]) {
|
||||
Execute.value = Editing.Using[CommandName.value].Execute[Using];
|
||||
}
|
||||
else {
|
||||
Editing.Using[CommandName.value].Execute[Using] = "";
|
||||
Execute.value = "";
|
||||
}
|
||||
});
|
||||
Execute.onchange = (() => {
|
||||
Editing.Using[CommandName.value].Execute[Using] = Execute.value;
|
||||
});
|
||||
});
|
||||
|
||||
@ -1,88 +1,88 @@
|
||||
window.onload = (()=>{
|
||||
Core();
|
||||
})
|
||||
var Core = (()=>{
|
||||
var Using = 0;
|
||||
var Editing:Addons = {
|
||||
Config:{
|
||||
Name:"Addons",
|
||||
Author:"User"
|
||||
},
|
||||
Base:{
|
||||
Const:{},
|
||||
Function:{}
|
||||
},
|
||||
Using:{}
|
||||
}
|
||||
if(localStorage.getItem("[利刃]储存") != undefined && localStorage.getItem("[利刃]储存") != null){
|
||||
Editing = JSON.parse(localStorage.getItem("[利刃]储存") as string) as Addons;
|
||||
}
|
||||
var CommandName = document.getElementById("CommandName") as HTMLInputElement;
|
||||
var Main = document.getElementById("Main") as HTMLTextAreaElement;
|
||||
var Info = document.getElementById("Info") as HTMLAnchorElement;
|
||||
var OutPut = document.getElementById("OutPut") as HTMLButtonElement;
|
||||
var EditingExec = document.getElementById("Editing") as HTMLAnchorElement;
|
||||
var Last = document.getElementById("Last") as HTMLButtonElement;
|
||||
var Next = document.getElementById("Next") as HTMLButtonElement;
|
||||
var Execute = document.getElementById("Execute") as HTMLInputElement;
|
||||
CommandName.onchange = ((ev)=>{
|
||||
if(Editing.Using[CommandName.value]){
|
||||
Main.value = Editing.Using[CommandName.value].Content;
|
||||
}else{
|
||||
Main.value = "";
|
||||
Editing.Using[CommandName.value] = {Content:"",Execute:[]}
|
||||
}
|
||||
Using = 0;
|
||||
if(Editing.Using[CommandName.value].Execute[Using]){
|
||||
Execute.value = Editing.Using[CommandName.value].Execute[Using];
|
||||
}else{
|
||||
Editing.Using[CommandName.value].Execute[Using] = "";
|
||||
Execute.value = "";
|
||||
}
|
||||
});
|
||||
Main.onchange = ((ev)=>{
|
||||
console.log(Main.value);
|
||||
Editing.Using[CommandName.value].Content = Main.value;
|
||||
|
||||
if(Main.value == ""){
|
||||
Editing.Using[CommandName.value] = undefined;
|
||||
}
|
||||
|
||||
localStorage.setItem("[利刃]储存",JSON.stringify(Editing));
|
||||
});
|
||||
OutPut.onclick = ((ev)=>{
|
||||
var Z = Info;
|
||||
Z.href = window.URL.createObjectURL(new Blob([JSON.stringify(Editing)]));
|
||||
Z.download = "main.lib.json";
|
||||
setTimeout(()=>{
|
||||
Z.dispatchEvent(new MouseEvent("click"));
|
||||
},500);
|
||||
});
|
||||
EditingExec.innerText = `${Using}`;
|
||||
Last.onclick = (()=>{
|
||||
if(Using == 0){
|
||||
return;
|
||||
}
|
||||
Using = Using - 1;
|
||||
EditingExec.innerText = `${Using}`;
|
||||
if(Editing.Using[CommandName.value].Execute[Using]){
|
||||
Execute.value = Editing.Using[CommandName.value].Execute[Using];
|
||||
}else{
|
||||
Editing.Using[CommandName.value].Execute[Using] = "";
|
||||
Execute.value = "";
|
||||
}
|
||||
});
|
||||
Next.onclick = (()=>{
|
||||
Using = Using + 1;
|
||||
EditingExec.innerText = `${Using}`;
|
||||
if(Editing.Using[CommandName.value].Execute[Using]){
|
||||
Execute.value = Editing.Using[CommandName.value].Execute[Using];
|
||||
}else{
|
||||
Editing.Using[CommandName.value].Execute[Using] = "";
|
||||
Execute.value = "";
|
||||
}
|
||||
});
|
||||
Execute.onchange = (()=>{
|
||||
Editing.Using[CommandName.value].Execute[Using] = Execute.value;
|
||||
})
|
||||
window.onload = (()=>{
|
||||
Core();
|
||||
})
|
||||
var Core = (()=>{
|
||||
var Using = 0;
|
||||
var Editing:Addons = {
|
||||
Config:{
|
||||
Name:"Addons",
|
||||
Author:"User"
|
||||
},
|
||||
Base:{
|
||||
Const:{},
|
||||
Function:{}
|
||||
},
|
||||
Using:{}
|
||||
}
|
||||
if(localStorage.getItem("[利刃]储存") != undefined && localStorage.getItem("[利刃]储存") != null){
|
||||
Editing = JSON.parse(localStorage.getItem("[利刃]储存") as string) as Addons;
|
||||
}
|
||||
var CommandName = document.getElementById("CommandName") as HTMLInputElement;
|
||||
var Main = document.getElementById("Main") as HTMLTextAreaElement;
|
||||
var Info = document.getElementById("Info") as HTMLAnchorElement;
|
||||
var OutPut = document.getElementById("OutPut") as HTMLButtonElement;
|
||||
var EditingExec = document.getElementById("Editing") as HTMLAnchorElement;
|
||||
var Last = document.getElementById("Last") as HTMLButtonElement;
|
||||
var Next = document.getElementById("Next") as HTMLButtonElement;
|
||||
var Execute = document.getElementById("Execute") as HTMLInputElement;
|
||||
CommandName.onchange = ((ev)=>{
|
||||
if(Editing.Using[CommandName.value]){
|
||||
Main.value = Editing.Using[CommandName.value].Content;
|
||||
}else{
|
||||
Main.value = "";
|
||||
Editing.Using[CommandName.value] = {Content:"",Execute:[]}
|
||||
}
|
||||
Using = 0;
|
||||
if(Editing.Using[CommandName.value].Execute[Using]){
|
||||
Execute.value = Editing.Using[CommandName.value].Execute[Using];
|
||||
}else{
|
||||
Editing.Using[CommandName.value].Execute[Using] = "";
|
||||
Execute.value = "";
|
||||
}
|
||||
});
|
||||
Main.onchange = ((ev)=>{
|
||||
console.log(Main.value);
|
||||
Editing.Using[CommandName.value].Content = Main.value;
|
||||
|
||||
if(Main.value == ""){
|
||||
Editing.Using[CommandName.value] = undefined;
|
||||
}
|
||||
|
||||
localStorage.setItem("[利刃]储存",JSON.stringify(Editing));
|
||||
});
|
||||
OutPut.onclick = ((ev)=>{
|
||||
var Z = Info;
|
||||
Z.href = window.URL.createObjectURL(new Blob([JSON.stringify(Editing)]));
|
||||
Z.download = "main.lib.json";
|
||||
setTimeout(()=>{
|
||||
Z.dispatchEvent(new MouseEvent("click"));
|
||||
},500);
|
||||
});
|
||||
EditingExec.innerText = `${Using}`;
|
||||
Last.onclick = (()=>{
|
||||
if(Using == 0){
|
||||
return;
|
||||
}
|
||||
Using = Using - 1;
|
||||
EditingExec.innerText = `${Using}`;
|
||||
if(Editing.Using[CommandName.value].Execute[Using]){
|
||||
Execute.value = Editing.Using[CommandName.value].Execute[Using];
|
||||
}else{
|
||||
Editing.Using[CommandName.value].Execute[Using] = "";
|
||||
Execute.value = "";
|
||||
}
|
||||
});
|
||||
Next.onclick = (()=>{
|
||||
Using = Using + 1;
|
||||
EditingExec.innerText = `${Using}`;
|
||||
if(Editing.Using[CommandName.value].Execute[Using]){
|
||||
Execute.value = Editing.Using[CommandName.value].Execute[Using];
|
||||
}else{
|
||||
Editing.Using[CommandName.value].Execute[Using] = "";
|
||||
Execute.value = "";
|
||||
}
|
||||
});
|
||||
Execute.onchange = (()=>{
|
||||
Editing.Using[CommandName.value].Execute[Using] = Execute.value;
|
||||
})
|
||||
});
|
||||
在新工单中引用
屏蔽一个用户