reorganizing file structures;
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
@@ -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 {
|
||||
10
src/index.js
10
src/index.js
@@ -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'
|
||||
|
||||
@@ -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 {
|
||||
/**
|
||||
@@ -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 {
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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: {},
|
||||
Reference in New Issue
Block a user