visual polish and bugfixes. auto-refreshing
This commit is contained in:
@@ -20,6 +20,7 @@ import { FrontworkComponent } from '../Types/FrontworkComponent';
|
||||
import { IAdmin } from './Interface';
|
||||
import { Injector } from '../Injector/Injector';
|
||||
import { Shoutbox } from '../Components/Shoutbox/Shoutbox';
|
||||
import { PubSub } from '../Components/PubSub/PubSub';
|
||||
|
||||
|
||||
const logger = getLogger("admin", 'debug')
|
||||
@@ -32,7 +33,8 @@ const logger = getLogger("admin", 'debug')
|
||||
RaidManager,
|
||||
CharacterManager,
|
||||
UserManager,
|
||||
Shoutbox
|
||||
Shoutbox,
|
||||
PubSub
|
||||
]
|
||||
})
|
||||
export class FrontworkAdmin
|
||||
@@ -54,7 +56,7 @@ implements TableDefinitionExporter, IAdmin {
|
||||
dbConf: {
|
||||
client: 'sqlite3',
|
||||
connection: {
|
||||
filename: Path.join(__dirname, "data/frontworkAdmin.sqlite")
|
||||
filename: Path.resolve(__dirname, '../../../..', "data/frontworkAdmin.sqlite")
|
||||
},
|
||||
useNullAsDefault: true,
|
||||
}
|
||||
@@ -96,7 +98,9 @@ implements TableDefinitionExporter, IAdmin {
|
||||
getTableDefinitions(): TableDefiniton[]{
|
||||
return [
|
||||
...this.frontworkComponents
|
||||
].flatMap(exporter => exporter.getTableDefinitions())
|
||||
]
|
||||
.filter(exp => exp.getTableDefinitions != null)
|
||||
.flatMap(exp => exp.getTableDefinitions())
|
||||
}
|
||||
|
||||
private startWebsocket(){
|
||||
@@ -123,7 +127,7 @@ implements TableDefinitionExporter, IAdmin {
|
||||
|
||||
let port:number = this.config.getConfig().httpPort
|
||||
this.express = express()
|
||||
this.express.use('/', express.static('dist/static'))
|
||||
this.express.use('/', express.static('static'))
|
||||
|
||||
/**
|
||||
* get the compiled FrontendPlugins.js
|
||||
|
||||
Reference in New Issue
Block a user