mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 11:33:59 +00:00
DBGATE_TOOLS => DBGATE_PACKAGES
This commit is contained in:
@@ -97,10 +97,12 @@ if (processArgs.listenApi) {
|
||||
}
|
||||
|
||||
const shell = require('./shell/index');
|
||||
const dbgateTools = require('dbgate-tools');
|
||||
const currentVersion = require('./currentVersion');
|
||||
|
||||
global['DBGATE_TOOLS'] = dbgateTools;
|
||||
global.DBGATE_PACKAGES = {
|
||||
'dbgate-tools': require('dbgate-tools'),
|
||||
'dbgate-sqltree': require('dbgate-sqltree'),
|
||||
};
|
||||
|
||||
if (processArgs.startProcess) {
|
||||
const proc = require('./proc');
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<script lang="ts" context="module">
|
||||
async function loadPlugins(pluginsDict, installedPlugins) {
|
||||
window['DBGATE_TOOLS'] = dbgateTools;
|
||||
window['DBGATE_PACKAGES'] = {
|
||||
'dbgate-tools': dbgateTools,
|
||||
'dbgate-sqltree': sqlTree,
|
||||
};
|
||||
|
||||
const newPlugins = {};
|
||||
for (const installed of installedPlugins || []) {
|
||||
@@ -55,6 +58,7 @@
|
||||
import { buildFileFormats, buildQuickExports } from './fileformats';
|
||||
import { buildThemes } from './themes';
|
||||
import * as dbgateTools from 'dbgate-tools';
|
||||
import * as sqlTree from 'dbgate-sqltree';
|
||||
import { apiCall } from '../utility/api';
|
||||
|
||||
let pluginsDict = {};
|
||||
|
||||
Reference in New Issue
Block a user