Skip to content

Commit 2afc6db

Browse files
authored
Merge pull request #84 from knoxfighter/feature/advanced_mod_installation
Rewritten mods section
2 parents c21e648 + 1b12554 commit 2afc6db

33 files changed

+3663
-975
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ node_modules/
22
dev/
33
bundle.js
44
factorio-server-manager
5+
factorio_server_manager
56
auth.leveldb*
67
conf.json
78
*.exe
89
build/
10+
/mod_packs/*
911
npm-debug.log
10-
ui/package-lock.json
12+
.idea/
13+
/ui/package-lock.json
14+
factorio.auth
15+
/pkg/

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: go
2-
go:
3-
- 1.5.4
4-
- 1.6.3
5-
- 1.7.3
2+
go:
3+
- 1.7.6
4+
- 1.8.5
5+
- 1.9.2
66
- tip
77

88
install:
@@ -12,6 +12,7 @@ install:
1212
- go get github.com/hpcloud/tail
1313
- go get github.com/gorilla/websocket
1414
- go get github.com/majormjr/rcon
15+
- export GOPATH="$HOME/gopath/src/github.com/mroote/factorio-server-manager/:$GOPATH"
1516

1617
script:
1718
- go test -v ./...

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ This tool runs on a Factorio server and allows management of the Factorio server
88
## Features
99
* Allows control of the Factorio Server, starting and stopping the Factorio binary.
1010
* Allows the management of save files, upload, download and delete saves.
11-
* Manage installed mods, upload new ones, delete uneeded mods. Enable or disable individual mods.
11+
* Manage installed mods, upload new ones and more
12+
* Manage modpacks, so it is easier to play with different configurations
1213
* Allow viewing of the server logs and current configuration.
1314
* Authentication for protecting against unauthorized users
1415
* Available as a Docker container
@@ -72,7 +73,10 @@ Example:
7273
![Factorio Server Manager Screenshot](http://i.imgur.com/M7kBAhI.png "Factorio Server Manager")
7374

7475
## Manage mods
75-
![Factorio Server Manager Screenshot](http://i.imgur.com/L62Yb2W.png "Factorio Server Manager")
76+
![Factorio Server Manager Screenshot](https://imgur.com/QIb0Kr4.png "Factorio Server Manager")
77+
78+
## Manage modpacks
79+
![Factorio Server Manager Screenshot](https://imgur.com/O701fB8.png "Factorio Server Manager")
7680

7781

7882

@@ -141,6 +145,8 @@ go get github.com/apexskier/httpauth
141145
go get github.com/go-ini/ini
142146
go get github.com/gorilla/mux
143147
go get github.com/hpcloud/tail
148+
go get github.com/gorilla/websocket
149+
go get github.com/majormjr/rcon
144150
```
145151

146152
3. Now you will want to go into the src folder for example "C:\FS\factorio-server-manager\src" once there hold down left shift and right click an empty area of the folder. Then click "Open command windows here"

app/dist/dist/css/factorio-server-manager.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,47 @@ div.console-prompt-box {
2727
color: #444;
2828
width: 100%;
2929
max-width: 100%;}
30+
31+
.loader {
32+
display: inline-block;
33+
border: 5px solid lightgrey;
34+
border-radius: 50%;
35+
border-top: 5px solid #3498db;
36+
width: 20px;
37+
height: 20px;
38+
-webkit-animation: spin 2s linear infinite;
39+
animation: spin 2s linear infinite;
40+
margin-right: 7px;
41+
}
42+
43+
@-webkit-keyframes spin {
44+
0% { -webkit-transform: rotate(0deg); }
45+
100% { -webkit-transform: rotate(360deg); }
46+
}
47+
48+
@keyframes spin {
49+
0% { transform: rotate(0deg); }
50+
100% { transform: rotate(360deg); }
51+
}
52+
53+
.sweet-alert {
54+
/*box-sizing : border-box;*/
55+
max-height : 80% !important;
56+
overflow-y : auto !important;
57+
/*padding : 0 17px 17px !important;*/
58+
/*width : 512px;*/
59+
60+
/*remove margins*/
61+
/*margin: 0;*/
62+
}
63+
64+
.sweet-alert input[type=radio] {
65+
display: block;
66+
67+
height: unset;
68+
margin: 0;
69+
}
70+
71+
.sweet-alert table tr:nth-child(even) {
72+
background: rgba(68, 68, 68, 0.31);
73+
}

app/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<link rel="stylesheet" href="./dist/dist/css/factorio-server-manager.css">
2222
<!-- Sweetalert.js stylesheet -->
2323
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css">
24+
<!-- pretty upload-file-inputs stylesheet -->
25+
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.2/css/fileinput.min.css">
2426

2527
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
2628
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
@@ -41,5 +43,7 @@
4143
<script src="./dist/dist/js/app.min.js"></script>
4244
<!-- Main application -->
4345
<script src="./bundle.js"></script>
46+
<!-- Pretty upload-file-inputs -->
47+
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.2/js/fileinput.min.js"></script>
4448
</body>
4549
</html>

src/factorio_server_linux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package main
22

3-
43
// Stubs for windows-only functions
54

65
func sendCtrlCToPid(pid int) {

src/factorio_server_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ func sendCtrlCToPid(pid int) {
2222

2323
func setCtrlHandlingIsDisabledForThisProcess(disabled bool) {
2424
disabledInt := 0
25-
if(disabled){
25+
if disabled {
2626
disabledInt = 1
2727
}
28-
28+
2929
d, e := syscall.LoadDLL("kernel32.dll")
3030
if e != nil {
3131
log.Fatalf("LoadDLL: %v\n", e)

0 commit comments

Comments
 (0)