Skip to content
This repository was archived by the owner on Mar 11, 2020. It is now read-only.

Commit c005106

Browse files
authored
Merge pull request #8 from thecoder75/electron-ui
Electron ui
2 parents 7ebae1b + de82ac0 commit c005106

File tree

9 files changed

+1253
-2069
lines changed

9 files changed

+1253
-2069
lines changed

index.js

Lines changed: 260 additions & 448 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 626 additions & 1526 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lamd",
3-
"version": "2.1.0",
3+
"version": "3.0.0",
44
"description": "Command line utility to monitor accounts for new replays and automatically downloads them.",
55
"homepage": "https://github.com/thecoder75/lamd",
66
"main": "index.js",
@@ -9,23 +9,24 @@
99
"url": "https://github.com/thecoder75/lamd"
1010
},
1111
"scripts": {
12-
"start": "node index.js",
13-
"release-win": "nexe lamd.js --build --clean --target win --output builds/lamd.exe",
14-
"release-mac": "nexe lamd.js --build --clean --target mac --output builds/lamd.app",
15-
"release-linux": "nexe lamd.js --build --clean --target linux --output builds/lamd",
16-
"release": "npm run release-win && npm run release-mac && npm run release-linux"
12+
"start": "NODE_ENV='development' && ./node_modules/.bin/electron ./index.js --enable-logging",
13+
"release": "build -w && build -l && build -m",
14+
"release-win": "build -w",
15+
"release-linux": "build -l",
16+
"release-mac": "build -m"
1717
},
1818
"author": "TheCoder75",
1919
"license": "GPL-3.0",
2020
"dependencies": {
2121
"async": "^2.6.1",
22-
"fluent-ffmpeg": "^2.1.2",
22+
"concat-files": "^0.1.1",
2323
"fs": "0.0.1-security",
24-
"os": "^0.1.1",
2524
"path": "^0.12.7",
2625
"platform": "^1.3.5",
2726
"request": "^2.88.0",
2827
"request-promise-native": "^1.0.5"
2928
},
30-
"devDependencies": {}
29+
"devDependencies": {
30+
"electron": "^3.1.1"
31+
}
3132
}

readme.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,21 @@ This is a stand-alone application designed to run in the background and monitor
2020
### Prebuilt Releases
2121
Prebuilt downloads can be found on the [releases](https://github.com/thecoder75/lamd/releases) page.
2222

23-
### FFMPEG Required
24-
***Please note that you must have FFMPEG already installed on your computer or located in the same place as LAMD for downloading to work.***
23+
### FFMPEG No Longer Required!!!
24+
*All reliance on FFMPEG has been removed from this project.*
2525

26-
I am looking into making it possible to use the built-in chunk downloader without the need for FFMPEG to be installed for just combining the chunks into a single media file.
26+
Replays are downloaded as .TS media files only. This allows for downloading of over 10 replays at a time without straining the CPU.
2727

2828
* * *
2929

3030
## Configuration
31-
LAMD will now use/access LiveMe Pro Tools v1.3xx or higher configuration settings and use the same settings for its downloads and function handling.
31+
LAMD will now use/access LiveMe Pro Tools v1.308 or higher configuration settings and use the same settings for its downloads and function handling.
3232

3333
* * *
3434

3535
## Built With
3636
* [NodeJS](http://nodejs.org)
37+
* [ElectronJS](https://electronjs.org)
3738
* LiveMe-API (Now integrated)
3839

3940
## Contributing

src/css/main.css

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
body {
2+
margin: 0;
3+
padding: 0;
4+
background-color: rgb(21,21,21);
5+
color: rgb(224,224,224);
6+
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
7+
font-size: 10pt;
8+
}
9+
10+
h1,h2,h3,h4,h5,h6 {
11+
margin: 0;
12+
padding: 0;
13+
}
14+
15+
#main {
16+
display: block;
17+
width: 100%;
18+
height: calc(100%-25px);
19+
overflow-x: hidden;
20+
overflow-y: auto;
21+
}
22+
23+
24+
.download {
25+
display: block;
26+
height: 56px;
27+
position: relative;
28+
border-bottom: solid 1px rgb(80,80,80);
29+
font-size: 10pt;
30+
background-color: rgb(40,40,40);
31+
}
32+
.download svg {
33+
width: 32px;
34+
height: 32px;
35+
vertical-align: middle;
36+
fill: rgb(112,112,112);
37+
position: absolute;
38+
}
39+
.download svg.cancel {
40+
right: 12px;
41+
top: 18px;
42+
width: 24px;
43+
height: 24px;
44+
cursor: pointer;
45+
}
46+
47+
.download .filename, .download .status {
48+
position: absolute;
49+
height: 24px;
50+
line-height: 24px;
51+
font-size: 9pt;
52+
font-weight: 400;
53+
}
54+
.download .filename { top: 0; left: 16px;}
55+
.download .status { bottom: 0; right: 48px; }
56+
57+
.download .progress-bar {
58+
position: absolute;
59+
display: block;
60+
border: solid 1px rgb(112,112,112);
61+
height: 8px;
62+
top: 24px;
63+
left: 16px;
64+
right: 48px;
65+
}
66+
.download .progress-bar .bar {
67+
display: block;
68+
background-color: rgb(0,212,0);
69+
}
70+
71+
#statusbar {
72+
position: absolute;
73+
bottom: 0;
74+
left: 0;
75+
right: 0;
76+
display: block;
77+
height: 24px;
78+
line-height: 24px;
79+
font-size: 9pt;
80+
font-weight: 400;
81+
border-top: solid 1px rgb(88,88,88);
82+
background-color: rgb(40,40,40)
83+
}
84+
#statusbar h1 {
85+
font-size: 9pt;
86+
line-height: 24px;
87+
padding: 0 8px;
88+
font-weight: 400;
89+
position: absolute;
90+
bottom: 0;
91+
right: 0;
92+
}
93+
94+
#statusbar svg {
95+
position: absolute;
96+
bottom: 3px;
97+
left: 6px;
98+
fill: rgb(111,111,111);
99+
width: 20px;
100+
height: 20px;
101+
vertical-align: middle;
102+
}
103+
#statusbar svg.online { fill: rgb(0,212,0) }

src/index.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<link rel="stylesheet" href="css/main.css" media="all">
5+
6+
<script>
7+
if (typeof module === 'object') {
8+
window.module = module;
9+
module = undefined;
10+
}
11+
</script>
12+
<script type="text/javascript" src="js/jquery.min.js"></script>
13+
<script type="text/javascript" src="js/index.js"></script>
14+
15+
</head>
16+
<body>
17+
18+
<div id="main">
19+
</div>
20+
21+
<div id="statusbar">
22+
<svg class="" viewBox="0 0 20 20">
23+
<path d="M10,6.978c-1.666,0-3.022,1.356-3.022,3.022S8.334,13.022,10,13.022s3.022-1.356,3.022-3.022S11.666,6.978,10,6.978M10,12.267c-1.25,0-2.267-1.017-2.267-2.267c0-1.25,1.016-2.267,2.267-2.267c1.251,0,2.267,1.016,2.267,2.267C12.267,11.25,11.251,12.267,10,12.267 M18.391,9.733l-1.624-1.639C14.966,6.279,12.563,5.278,10,5.278S5.034,6.279,3.234,8.094L1.609,9.733c-0.146,0.147-0.146,0.386,0,0.533l1.625,1.639c1.8,1.815,4.203,2.816,6.766,2.816s4.966-1.001,6.767-2.816l1.624-1.639C18.536,10.119,18.536,9.881,18.391,9.733 M16.229,11.373c-1.656,1.672-3.868,2.594-6.229,2.594s-4.573-0.922-6.23-2.594L2.41,10l1.36-1.374C5.427,6.955,7.639,6.033,10,6.033s4.573,0.922,6.229,2.593L17.59,10L16.229,11.373z"></path>
24+
</svg>
25+
<h1>-</h1>
26+
</div>
27+
28+
</body>
29+
</html>

0 commit comments

Comments
 (0)