Skip to content

Commit 8cad751

Browse files
committed
feature: common: cloudfunc -> #common/cloudfunc
1 parent 1f17487 commit 8cad751

18 files changed

Lines changed: 30 additions & 28 deletions

File tree

client/client.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
apiURL,
1818
formatMsg,
1919
buildFromJSON,
20-
} from '../common/cloudfunc.mjs';
20+
} from '#common/cloudfunc';
2121
import {loadModule} from './load-module.mjs';
2222

2323
const noJS = (a) => a.replace(/.js$/, '');

client/cloudcmd.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as Util from '#common/util';
55
import '../css/main.css';
66
import {registerSW, listenSW} from './sw/register.mjs';
77
import {initSortPanel, sortPanel} from './sort.mjs';
8-
import * as CloudFunc from '../common/cloudfunc.mjs';
8+
import * as CloudFunc from '#common/cloudfunc';
99
import DOM from './dom/index.mjs';
1010
import {createCloudCmd} from './client.mjs';
1111
import * as Listeners from './listeners/index.mjs';

client/dom/current-file.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* global CloudCmd */
33
import createElement from '@cloudcmd/create-element';
44
import {encode, decode} from '../../common/entity.js';
5-
import {getTitle, FS} from '../../common/cloudfunc.mjs';
5+
import {getTitle, FS} from '#common/cloudfunc';
66

77
let Title;
88

client/dom/directory.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import philip from 'philip';
33
import * as Dialog from '#dom/dialog';
44
import * as Images from './images.mjs';
5-
import {FS} from '../../common/cloudfunc.mjs';
5+
import {FS} from '#common/cloudfunc';
66

77
export const uploadDirectory = (items) => {
88
if (items.length)

client/dom/io/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const {FS} = require('../../../common/cloudfunc.mjs');
3+
const {FS} = require('#common/cloudfunc');
44
const _sendRequest = require('./send-request');
55

66
const imgPosition = {

client/dom/upload-files.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import wraptile from 'wraptile';
44
import * as load from '#dom/load';
55
import {alert} from '#dom/dialog';
66
import * as Images from './images.mjs';
7-
import {FS} from '../../common/cloudfunc.mjs';
7+
import {FS} from '#common/cloudfunc';
88
import {getCurrentDirPath} from './current-file.mjs';
99

1010
const loadFile = wraptile(_loadFile);

client/listeners/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import clipboard from '@cloudcmd/clipboard';
77
import * as Events from '#dom/events';
88
import {uploadFiles} from '#dom/upload-files';
99
import {getRange} from './get-range.mjs';
10-
import {FS} from '../../common/cloudfunc.mjs';
10+
import {FS} from '#common/cloudfunc';
1111
import {getIndex} from './get-index.mjs';
1212

1313
const NBSP_REG = RegExp(String.fromCharCode(160), 'g');

client/modules/config/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import * as Files from '#dom/files';
1212
import '../../../css/config.css';
1313
import * as input from './input.mjs';
1414
import * as Images from '../../dom/images.mjs';
15-
import {getTitle} from '../../../common/cloudfunc.mjs';
15+
import {getTitle} from '#common/cloudfunc';
1616

1717
const {Dialog, setTitle} = DOM;
1818

client/modules/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const {promisify} = require('es6-promisify');
88
const {tryToCatch} = require('try-to-catch');
99
const createElement = require('@cloudcmd/create-element');
1010
const load = require('load.js');
11-
const {MAX_FILE_SIZE: maxSize} = require('../../common/cloudfunc.mjs');
11+
const {MAX_FILE_SIZE: maxSize} = require('#common/cloudfunc');
1212

1313
const {time, timeEnd} = require('#common/util');
1414
const getEditor = () => editor;

client/modules/menu/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import wrap from 'wraptile';
44
import createElement from '@cloudcmd/create-element';
55
import {getIdBySrc} from '#dom/load';
66
import * as RESTful from '#dom/rest';
7-
import {FS} from '../../../common/cloudfunc.mjs';
7+
import {FS} from '#common/cloudfunc';
88

99
const {config, Key} = CloudCmd;
1010

0 commit comments

Comments
 (0)