mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
feature: client: sort: migrate to ESM
This commit is contained in:
parent
e27ef51d43
commit
6e778a35ba
2 changed files with 20 additions and 12 deletions
|
|
@ -7,6 +7,7 @@ const wraptile = require('wraptile');
|
|||
const load = require('load.js');
|
||||
|
||||
const {registerSW, listenSW} = require('./sw/register');
|
||||
const {initSortPanel, sortPanel} = require('./sort.mjs');
|
||||
|
||||
const isDev = process.env.NODE_ENV === 'development';
|
||||
|
||||
|
|
@ -21,11 +22,12 @@ module.exports = async (config) => {
|
|||
|
||||
require('./listeners');
|
||||
require('./key');
|
||||
require('./sort');
|
||||
|
||||
initSortPanel();
|
||||
globalThis.CloudCmd.sortPanel = sortPanel;
|
||||
const prefix = getPrefix(config.prefix);
|
||||
|
||||
window.CloudCmd.init(prefix, config);
|
||||
globalThis.CloudCmd.init(prefix, config);
|
||||
|
||||
if (window.CloudCmd.config('menu') === 'aleman')
|
||||
setTimeout(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue