|
|
|
@ -550,7 +550,7 @@ function SRCSet() { |
|
|
|
|
setResult(d); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function jiekouapi(sourcefile, data) { |
|
|
|
|
function jiekouapi(sourcefile, data, look) { |
|
|
|
|
addListener("onClose", $.toString(() => { |
|
|
|
|
clearMyVar('SrcJu_jiekoudata'); |
|
|
|
|
clearMyVar('SrcJu_jiekouname'); |
|
|
|
@ -648,7 +648,7 @@ function jiekouapi(sourcefile, data) { |
|
|
|
|
titleVisible: false, |
|
|
|
|
type: "textarea", |
|
|
|
|
highlight: true, |
|
|
|
|
height: 2, |
|
|
|
|
height: 3, |
|
|
|
|
onChange: $.toString(() => { |
|
|
|
|
if (/{|}/.test(input) || !input) { |
|
|
|
|
storage0.putMyVar("SrcJu_jiekouerparse", input) |
|
|
|
@ -665,7 +665,7 @@ function jiekouapi(sourcefile, data) { |
|
|
|
|
titleVisible: false, |
|
|
|
|
type: "textarea", |
|
|
|
|
highlight: true, |
|
|
|
|
height: 1, |
|
|
|
|
height: 2, |
|
|
|
|
onChange: $.toString(() => { |
|
|
|
|
if (/{|}/.test(input) || !input) { |
|
|
|
|
storage0.putMyVar("SrcJu_jiekoupublic", input) |
|
|
|
@ -683,6 +683,7 @@ function jiekouapi(sourcefile, data) { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if(!look){ |
|
|
|
|
d.push({ |
|
|
|
|
title: '测试搜索', |
|
|
|
|
col_type: 'text_2', |
|
|
|
@ -821,6 +822,7 @@ function jiekouapi(sourcefile, data) { |
|
|
|
|
} |
|
|
|
|
}, sourcefile,data?data.type:"",runModes) |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
setResult(d); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -884,19 +886,20 @@ function JYimport(input) { |
|
|
|
|
datalist3.forEach(item=>{ |
|
|
|
|
d.push({ |
|
|
|
|
title: (item.stop?`<font color=#f20c00>`:"") + item.name + (item.parse ? " [主页源]" : "") + (item.erparse ? " [搜索源]" : "") + (item.stop?`</font>`:""), |
|
|
|
|
url: getMyVar('SrcJu_批量选择模式')?$('#noLoading#').lazyRule((data) => { |
|
|
|
|
url: $(["查看导入", "查看本地", "覆盖导入", "改名导入"], 2).select((sourcefile, data) => { |
|
|
|
|
data = JSON.parse(base64Decode(data)); |
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuMethod.js'); |
|
|
|
|
duoselect(data); |
|
|
|
|
return "hiker://empty"; |
|
|
|
|
},base64Encode(JSON.stringify(item))):$(["编辑", "删除", "改名"], 2).select((sourcefile, data) => { |
|
|
|
|
data = JSON.parse(base64Decode(data)); |
|
|
|
|
if (input == "编辑") { |
|
|
|
|
if (input == "查看本地") { |
|
|
|
|
return $('hiker://empty#noRecordHistory##noHistory#').rule((sourcefile, dataid) => { |
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuSet.js'); |
|
|
|
|
let data = datalist.filter(d => d.name == dataid.name && d.type==dataid.type)[0]; |
|
|
|
|
jiekouapi(sourcefile, data, 1); |
|
|
|
|
}, sourcefile, {type:item.type, name:item.name}) |
|
|
|
|
}else if (input == "查看导入") { |
|
|
|
|
return $('hiker://empty#noRecordHistory##noHistory#').rule((sourcefile, data) => { |
|
|
|
|
setPageTitle('编辑 | 聚阅接口'); |
|
|
|
|
//setPageTitle('查看导入 | 聚阅接口');
|
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuSet.js'); |
|
|
|
|
jiekouapi(sourcefile, JSON.parse(base64Decode(data))); |
|
|
|
|
}, sourcefile, base64Encode(JSON.stringify(data))) |
|
|
|
|
jiekouapi(sourcefile, data, 1); |
|
|
|
|
}, sourcefile, data) |
|
|
|
|
} else if (input == "删除") { |
|
|
|
|
return $("确定删除:"+data.name).confirm((sourcefile,data)=>{ |
|
|
|
|
let sourcedata = fetch(sourcefile); |
|
|
|
|