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> <script>
import mainForm from "./components/mainForm"; import mainForm from "./components/mainForm";
import toggleButton from "./components/toggleButton"; 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 { translate as t, translatePlural as n } from "@nextcloud/l10n";
import Http from "./http"; import Http from "./lib/http";
import nctable from "./ncTable"; import nctable from "./lib/ncTable";
const successCallback = (data, element) => { const successCallback = (data, element) => {
if (!data) { if (!data) {

View File

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

View File

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

View File

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

View File

@@ -3,7 +3,7 @@
* It can be used to display a starting message (e.g. "Saving...") and then * 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. * replace it with a green success message or a red error message.
* *
* @namespace OC.msg *
*/ */
export default { 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' import { translate as t, translatePlural as n } from '@nextcloud/l10n'
class ncTable { class ncTable {

View File

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

View File

@@ -4,8 +4,8 @@ import {
import Toastify from 'toastify-js' import Toastify from 'toastify-js'
import "toastify-js/src/toastify.css" import "toastify-js/src/toastify.css"
import { translate as t, translatePlural as n } from '@nextcloud/l10n' import { translate as t, translatePlural as n } from '@nextcloud/l10n'
import nctable from './ncTable'; import nctable from '../lib/ncTable';
import Http from './http' import Http from '../lib/http'
const helper = { const helper = {
vue: {}, vue: {},