mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2024-12-29 02:57:24 +02:00
moved backend application to src directory
This commit is contained in:
parent
e204d0ffff
commit
6552488748
3
Makefile
3
Makefile
@ -2,5 +2,6 @@
|
||||
#
|
||||
|
||||
build:
|
||||
go build -o $(HOME)/factorio-server/factorio-server-manager
|
||||
go build -o $(HOME)/factorio-server/factorio-server-manager src/*
|
||||
cp -r app/ $(HOME)/factorio-server/
|
||||
cp conf.json.example $(HOME)/factorio-server/conf.json
|
||||
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
"factorio_dir": "/home/mitch/.factorio",
|
||||
"username": "name",
|
||||
"password": "$111",
|
||||
"username": "admin",
|
||||
"password": "factorio",
|
||||
"database_file": "auth.leveldb"
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ func (auth *AuthHTTP) listUsers() ([]User, error) {
|
||||
userResponse = append(userResponse, u)
|
||||
}
|
||||
|
||||
log.Printf("listing users: %+v", users)
|
||||
log.Printf("listing users: %v found", len(users))
|
||||
return userResponse, nil
|
||||
}
|
||||
|
@ -19,9 +19,10 @@ class ConfigContent extends React.Component {
|
||||
$.ajax({
|
||||
url: "/api/config",
|
||||
dataType: "json",
|
||||
success: (data) => {
|
||||
this.setState({config: data.data})
|
||||
console.log(this.state.config)
|
||||
success: (resp) => {
|
||||
if (resp.success === true) {
|
||||
this.setState({config: resp.data})
|
||||
}
|
||||
},
|
||||
error: (xhr, status, err) => {
|
||||
console.log('/api/config/get', status, err.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user