mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(package) rm unused join-io
This commit is contained in:
parent
828830c660
commit
399e9c8f1d
3 changed files with 0 additions and 20 deletions
|
|
@ -16,7 +16,6 @@ const {
|
|||
unregisterSW,
|
||||
} = require('./sw/register');
|
||||
|
||||
const join = require('join-io/www/join');
|
||||
const jonny = require('jonny/legacy');
|
||||
const currify = require('currify/legacy');
|
||||
|
||||
|
|
@ -179,19 +178,6 @@ function CloudCmdProto(DOM) {
|
|||
load.js(plugins, callback);
|
||||
}
|
||||
|
||||
this.join = (urls) => {
|
||||
const prefix = CloudCmd.PREFIX;
|
||||
|
||||
if (!Array.isArray(urls))
|
||||
throw Error('urls should be array!');
|
||||
|
||||
const noPrefixUrls = urls.map((url) => {
|
||||
return url.replace(prefix, '');
|
||||
});
|
||||
|
||||
return prefix + join(noPrefixUrls);
|
||||
};
|
||||
|
||||
this.route = (path) => {
|
||||
const query = path.split('/');
|
||||
|
||||
|
|
|
|||
|
|
@ -134,7 +134,6 @@
|
|||
"inly": "^3.0.0",
|
||||
"jaguar": "^5.0.0",
|
||||
"jju": "^1.3.0",
|
||||
"join-io": "^2.0.0",
|
||||
"jonny": "^2.0.3",
|
||||
"markdown-it": "^8.0.0",
|
||||
"mellow": "^2.0.0",
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ const distribute = require(DIR + 'distribute');
|
|||
|
||||
const currify = require('currify');
|
||||
const apart = require('apart');
|
||||
const join = require('join-io');
|
||||
const ponse = require('ponse');
|
||||
const restafary = require('restafary');
|
||||
const konsole = require('console-io');
|
||||
|
|
@ -222,10 +221,6 @@ function cloudcmd(prefix, plugins, modules) {
|
|||
html: defaultHtml
|
||||
}),
|
||||
|
||||
join({
|
||||
dir,
|
||||
}),
|
||||
|
||||
pluginer(plugins),
|
||||
ponseStatic
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue