Skip to content

Commit d51295f

Browse files
committed
listen on /app
1 parent 37aca15 commit d51295f

File tree

339 files changed

+19611
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

339 files changed

+19611
-19
lines changed

app.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,16 @@ app.sessionMiddleware = session(cooky);
3737

3838
app.set("trust proxy", 1); // trust first proxy
3939
app.use(app.sessionMiddleware);
40-
app.use(logger('common', {
41-
stream: fs.createWriteStream(__dirname.endsWith(".spruce") ? __dirname + '/../data/out.log' : __dirname + "/out.log", {flags: 'a'})
42-
}));
40+
app.use(
41+
logger("common", {
42+
stream: fs.createWriteStream(
43+
__dirname.endsWith(".spruce")
44+
? __dirname + "/../data/out.log"
45+
: __dirname + "/out.log",
46+
{ flags: "a" }
47+
)
48+
})
49+
);
4350
app.use(logger("tiny"));
4451
app.use(bodyParser.json());
4552
app.use(bodyParser.urlencoded({ extended: false }));
@@ -73,8 +80,4 @@ app.use(function(err, req, res, next) {
7380
res.render("error");
7481
});
7582

76-
if (process.argv.find(a => a == "--app")) {
77-
require("./utils/handlers/app_socket");
78-
}
79-
8083
module.exports = app;

app/build/icon.ico

26.5 KB
Binary file not shown.

app/build/icon.png

19.7 KB
Loading

app/package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "spruce-app",
3+
"version": "2.0.0",
4+
"description": "spruce app to control and start spruce",
5+
"main": "www",
6+
"scripts": {
7+
"start": "electron .",
8+
"test": "echo \"Error: no test specified\" && exit 1"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/dan-divy/spruce.git"
13+
},
14+
"build": {
15+
"publish": [
16+
{
17+
"provider": "github",
18+
"owner": "dan-divy",
19+
"repo": "spruce",
20+
"publishAutoUpdate": true,
21+
"releaseType": "prerelease"
22+
}
23+
],
24+
"artifactName": "${productName}-${os}-${version}.${ext}",
25+
"appId": "com.github.dan-divy.Spruce"
26+
},
27+
"author": "dan-divy",
28+
"license": "MIT",
29+
"bugs": {
30+
"url": "https://github.com/dan-divy/spruce/issues"
31+
},
32+
"homepage": "https://github.com/dan-divy/spruce#readme"
33+
}

app/web/assets/css/flatly.bootstrap.min.css

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

0 commit comments

Comments
 (0)