added typescript files converted from js files

This commit is contained in:
huangjx
2022-02-26 11:47:23 +08:00
parent b689900012
commit 677c88e88c
13 changed files with 607 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ import {
import Toastify from 'toastify-js'
import "toastify-js/src/toastify.css"
import { translate as t, translatePlural as n } from '@nextcloud/l10n'
import nctable from '../lib/ncTable';
import contentTable from '../lib/contentTable';
import Http from '../lib/http'
const helper = {
@@ -120,9 +120,9 @@ const helper = {
let url = helper.generateUrl(path);
Http.getInstance(url).setHandler(function (data) {
if (data && data.row) {
nctable.getInstance(data.title, data.row).create();
contentTable.getInstance(data.title, data.row).create();
} else {
nctable.getInstance().noData();
contentTable.getInstance().noData();
}
if (data.counter)
helper.updateCounter(data.counter);
@@ -190,7 +190,7 @@ const helper = {
},
showDownload() {
helper.showElement('download');
nctable.getInstance().clear();
contentTable.getInstance().clear();
helper.enabledPolling = 0;
},
hideDownload() {