mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
fixed singledb docker connections
This commit is contained in:
14
packages/api/env/portal/.env
vendored
14
packages/api/env/portal/.env
vendored
@@ -1,6 +1,6 @@
|
|||||||
DEVMODE=1
|
DEVMODE=1
|
||||||
|
|
||||||
CONNECTIONS=mysql,postgres,mongo,mongo2,mysqlssh,sqlite,relational
|
CONNECTIONS=mysql,postgres,postgres1,mongo,mongo2,mysqlssh,sqlite,relational
|
||||||
|
|
||||||
LABEL_mysql=MySql localhost
|
LABEL_mysql=MySql localhost
|
||||||
SERVER_mysql=localhost
|
SERVER_mysql=localhost
|
||||||
@@ -12,10 +12,18 @@ ENGINE_mysql=mysql@dbgate-plugin-mysql
|
|||||||
LABEL_postgres=Postgres localhost
|
LABEL_postgres=Postgres localhost
|
||||||
SERVER_postgres=localhost
|
SERVER_postgres=localhost
|
||||||
USER_postgres=postgres
|
USER_postgres=postgres
|
||||||
PASSWORD_postgres=test
|
PASSWORD_postgres=Pwd2020Db
|
||||||
PORT_postgres=5433
|
PORT_postgres=5432
|
||||||
ENGINE_postgres=postgres@dbgate-plugin-postgres
|
ENGINE_postgres=postgres@dbgate-plugin-postgres
|
||||||
|
|
||||||
|
LABEL_postgres1=Postgres localhost test DB
|
||||||
|
SERVER_postgres1=localhost
|
||||||
|
USER_postgres1=postgres
|
||||||
|
PASSWORD_postgres1=Pwd2020Db
|
||||||
|
PORT_postgres1=5432
|
||||||
|
ENGINE_postgres1=postgres@dbgate-plugin-postgres
|
||||||
|
DATABASE_postgres1=test
|
||||||
|
|
||||||
LABEL_mongo=Mongo URL
|
LABEL_mongo=Mongo URL
|
||||||
URL_mongo=mongodb://localhost:27017
|
URL_mongo=mongodb://localhost:27017
|
||||||
ENGINE_mongo=mongo@dbgate-plugin-mongo
|
ENGINE_mongo=mongo@dbgate-plugin-mongo
|
||||||
|
|||||||
@@ -146,9 +146,13 @@ export const currentThemeDefinition = derived([currentTheme, extensions], ([$cur
|
|||||||
$extensions.themes.find(x => x.themeClassName == $currentTheme)
|
$extensions.themes.find(x => x.themeClassName == $currentTheme)
|
||||||
);
|
);
|
||||||
export const openedConnectionsWithTemporary = derived(
|
export const openedConnectionsWithTemporary = derived(
|
||||||
[openedConnections, temporaryOpenedConnections],
|
[openedConnections, temporaryOpenedConnections, openedSingleDatabaseConnections],
|
||||||
([$openedConnections, $temporaryOpenedConnections]) =>
|
([$openedConnections, $temporaryOpenedConnections, $openedSingleDatabaseConnections]) =>
|
||||||
_.uniq([...$openedConnections, ...$temporaryOpenedConnections.map(x => x.conid)])
|
_.uniq([
|
||||||
|
...$openedConnections,
|
||||||
|
...$temporaryOpenedConnections.map(x => x.conid),
|
||||||
|
...$openedSingleDatabaseConnections,
|
||||||
|
])
|
||||||
);
|
);
|
||||||
|
|
||||||
let nativeMenuOnStartup = null;
|
let nativeMenuOnStartup = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user