reorganizing file structures;

This commit is contained in:
huangjx
2021-10-22 21:04:27 +08:00
parent 0bd6c81157
commit bc178c3367
13 changed files with 26 additions and 25 deletions

View File

@@ -12,10 +12,10 @@
<script>
import mainForm from "./components/mainForm";
import toggleButton from "./components/toggleButton";
import helper from "./helper";
import helper from "./utils/helper";
import { translate as t, translatePlural as n } from "@nextcloud/l10n";
import Http from "./http";
import nctable from "./ncTable";
import Http from "./lib/http";
import nctable from "./lib/ncTable";
const successCallback = (data, element) => {
if (!data) {

View File

@@ -1,6 +1,6 @@
import Http from './http'
import helper from './helper'
import eventHandler from './eventHandler'
import Http from '../lib/http'
import helper from '../utils/helper'
import eventHandler from '../lib/eventHandler'
const buttonHandler = (event, type) => {
let element = event.target;
event.stopPropagation();

View File

@@ -1,6 +1,7 @@
import helper from './helper'
import eventHandler from './eventHandler';
import Http from './http'
import helper from '../utils/helper'
import eventHandler from '../lib/eventHandler';
import Http from '../lib/http'
const basePath = "/apps/ncdownloader/status/";
const tableContainer = ".table";
export default {

View File

@@ -1,9 +1,9 @@
import helper from './helper'
import eventHandler from './eventHandler'
import Http from './http'
import helper from './utils/helper'
import eventHandler from './lib/eventHandler'
import Http from './lib/http'
import { translate as t, translatePlural as n } from '@nextcloud/l10n'
import updatePage from './updatePage'
import buttonActions from './buttonActions'
import updatePage from './actions/updatePage'
import buttonActions from './actions/buttonActions'
import './css/style.scss'
import './css/table.scss'
import { createApp } from 'vue'

View File

@@ -3,7 +3,7 @@
* It can be used to display a starting message (e.g. "Saving...") and then
* replace it with a green success message or a red error message.
*
* @namespace OC.msg
*
*/
export default {
/**

View File

@@ -1,4 +1,4 @@
import helper from './helper'
import helper from '../utils/helper'
import { translate as t, translatePlural as n } from '@nextcloud/l10n'
class ncTable {

View File

@@ -1,13 +1,13 @@
import Http from './http'
import OC_msg from './OC/msg'
import Http from './lib/http'
import OC_msg from './lib/msg'
import {
generateUrl
} from '@nextcloud/router'
import settingsForm from './settingsForm'
import autoComplete from './autoComplete';
import eventHandler from './eventHandler';
import aria2Options from './aria2Options';
import helper from './helper';
import settingsForm from './lib/settingsForm'
import autoComplete from './lib/autoComplete';
import eventHandler from './lib/eventHandler';
import aria2Options from './utils/aria2Options';
import helper from './utils/helper';
import './css/autoComplete.css'
import './css/style.scss'

View File

@@ -4,8 +4,8 @@ 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 './ncTable';
import Http from './http'
import nctable from '../lib/ncTable';
import Http from '../lib/http'
const helper = {
vue: {},