mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-04 03:49:23 +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:
|
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 -r app/ $(HOME)/factorio-server/
|
||||||
|
cp conf.json.example $(HOME)/factorio-server/conf.json
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"factorio_dir": "/home/mitch/.factorio",
|
"username": "admin",
|
||||||
"username": "name",
|
"password": "factorio",
|
||||||
"password": "$111",
|
|
||||||
"database_file": "auth.leveldb"
|
"database_file": "auth.leveldb"
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ func (auth *AuthHTTP) listUsers() ([]User, error) {
|
|||||||
userResponse = append(userResponse, u)
|
userResponse = append(userResponse, u)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("listing users: %+v", users)
|
log.Printf("listing users: %v found", len(users))
|
||||||
return userResponse, nil
|
return userResponse, nil
|
||||||
}
|
}
|
||||||
|
|
@ -19,9 +19,10 @@ class ConfigContent extends React.Component {
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/api/config",
|
url: "/api/config",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: (data) => {
|
success: (resp) => {
|
||||||
this.setState({config: data.data})
|
if (resp.success === true) {
|
||||||
console.log(this.state.config)
|
this.setState({config: resp.data})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
error: (xhr, status, err) => {
|
error: (xhr, status, err) => {
|
||||||
console.log('/api/config/get', status, err.toString());
|
console.log('/api/config/get', status, err.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user