bump version to 0.8;fixed bugs
This commit is contained in:
@@ -8,7 +8,7 @@ Search for torrents within the app from mutiple BT sites;
|
||||
Control Aria2 and manage download tasks from the web;
|
||||
download videos from 700+ video sites(youtube,youku,vimo,dailymotion,twitter,facebook and the likes
|
||||
</description>
|
||||
<version>0.7.8</version>
|
||||
<version>0.8.0</version>
|
||||
<licence>agpl</licence>
|
||||
<author mail="freefallbenson@gmail.com" homepage="https://github.com/shiningw">jiaxinhuang</author>
|
||||
<namespace>NCDownloader</namespace>
|
||||
|
||||
@@ -44,6 +44,9 @@ class sliderkz extends searchBase implements searchInterface
|
||||
return [];
|
||||
}
|
||||
foreach ($data as $item) {
|
||||
if (empty($item)) {
|
||||
continue;
|
||||
}
|
||||
$items[] = array("title" => $item["tit_art"], "data-link" => $this->getDownloadUrl($item), "duration" => Helper::formatInterval($item["duration"]));
|
||||
}
|
||||
unset($data);
|
||||
|
||||
@@ -15,11 +15,11 @@ class settingsForm {
|
||||
static getInstance() {
|
||||
return new this();
|
||||
}
|
||||
setParent(selector: string):settingsForm {
|
||||
setParent(selector: string): settingsForm {
|
||||
this.parent = selector;
|
||||
return this;
|
||||
}
|
||||
create(parent: HTMLElement, element: dataItems):void {
|
||||
create(parent: HTMLElement, element: dataItems) {
|
||||
let label = this._createLabel(element.name, element.id)
|
||||
let input = this._createInput(element);
|
||||
//let saveBtn = this._createSaveBtn(element.id);
|
||||
@@ -32,12 +32,12 @@ class settingsForm {
|
||||
return parent.prepend(container);
|
||||
}
|
||||
|
||||
createCustomInput(keyId:string, valueId:string):HTMLElement {
|
||||
createCustomInput(keyId: string, valueId: string): HTMLElement {
|
||||
let div = this._createContainer(keyId + "-container")
|
||||
let items:dataItems = {
|
||||
id:keyId,
|
||||
name:'',
|
||||
value:''
|
||||
let items: dataItems = {
|
||||
id: keyId,
|
||||
name: '',
|
||||
value: ''
|
||||
}
|
||||
div.appendChild(this._createInput(items));
|
||||
items.id = valueId
|
||||
@@ -46,12 +46,12 @@ class settingsForm {
|
||||
return div;
|
||||
}
|
||||
|
||||
_createContainer(id: string):HTMLElement {
|
||||
_createContainer(id: string): HTMLElement {
|
||||
let div = document.createElement("div");
|
||||
div.classList.add(id);
|
||||
return div;
|
||||
}
|
||||
_createCancelBtn(className = ''):HTMLElement {
|
||||
_createCancelBtn(className = ''): HTMLElement {
|
||||
let button = document.createElement("button");
|
||||
if (className)
|
||||
button.classList.add(className);
|
||||
@@ -59,14 +59,14 @@ class settingsForm {
|
||||
button.classList.add("icon-close");
|
||||
return button;
|
||||
}
|
||||
_createSaveBtn(id: string):HTMLElement {
|
||||
_createSaveBtn(id: string): HTMLElement {
|
||||
let button = document.createElement("input");
|
||||
button.setAttribute('type', 'button');
|
||||
button.setAttribute('value', 'save');
|
||||
button.setAttribute("data-rel", id + "-container");
|
||||
return button;
|
||||
}
|
||||
_createLabel(name: string, id: string):HTMLElement {
|
||||
_createLabel(name: string, id: string): HTMLElement {
|
||||
name = name.replace('_', '-');
|
||||
let label = document.createElement("lable");
|
||||
label.setAttribute("for", id);
|
||||
@@ -74,7 +74,7 @@ class settingsForm {
|
||||
label.appendChild(text);
|
||||
return label;
|
||||
}
|
||||
_createInput(data: dataItems):HTMLElement {
|
||||
_createInput(data: dataItems): HTMLElement {
|
||||
let input = document.createElement('input');
|
||||
let type = data.type || "text";
|
||||
let placeholder = data.placeholder || 'Leave empty if no value needed';
|
||||
|
||||
Reference in New Issue
Block a user