mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-17 15:12:14 +11:00
push to fix twix breaking shiz
This commit is contained in:
parent
f7d8392e68
commit
7ed733ec54
3 changed files with 8326 additions and 202 deletions
8
index.js
8
index.js
|
|
@ -95,7 +95,7 @@ fastify.get("/", async function (req, res) {
|
||||||
} else {
|
} else {
|
||||||
//const client = new CCashClient(process.env.BANKAPIURL);
|
//const client = new CCashClient(process.env.BANKAPIURL);
|
||||||
//let checkalive = await client.ping();
|
//let checkalive = await client.ping();
|
||||||
let checkalive = await got(`${api}/help`, {
|
let checkalive = await got(`${api}../properties`, {
|
||||||
headers: {
|
headers: {
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
},
|
},
|
||||||
|
|
@ -370,7 +370,7 @@ fastify.register(require("./routes/settings"), { prefix: "/settings" });
|
||||||
fastify.get("/logout", async function (req, res) {
|
fastify.get("/logout", async function (req, res) {
|
||||||
//const client = new CCashClient(process.env.BANKAPIURL);
|
//const client = new CCashClient(process.env.BANKAPIURL);
|
||||||
//let checkalive = await client.ping();
|
//let checkalive = await client.ping();
|
||||||
let checkalive = await got(`${api}/help`, {
|
let checkalive = await got(`${api}../properties`, {
|
||||||
headers: {
|
headers: {
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
},
|
},
|
||||||
|
|
@ -398,7 +398,7 @@ fastify.get("/login", async function (req, res) {
|
||||||
let errors = req.session.get("errors");
|
let errors = req.session.get("errors");
|
||||||
req.session.set("errors", "");
|
req.session.set("errors", "");
|
||||||
//let checkalive = await client.ping();
|
//let checkalive = await client.ping();
|
||||||
let checkalive = await got(`${api}/help`, {
|
let checkalive = await got(`${api}../properties`, {
|
||||||
headers: {
|
headers: {
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
},
|
},
|
||||||
|
|
@ -424,7 +424,7 @@ fastify.get("/register", async function (req, res) {
|
||||||
let errors = req.session.get("errors");
|
let errors = req.session.get("errors");
|
||||||
req.session.set("errors", "");
|
req.session.set("errors", "");
|
||||||
//let checkalive = await client.ping();
|
//let checkalive = await client.ping();
|
||||||
let checkalive = await got(`${api}/help`, {
|
let checkalive = await got(`${api}../properties`, {
|
||||||
headers: {
|
headers: {
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
8500
package-lock.json
generated
8500
package-lock.json
generated
File diff suppressed because it is too large
Load diff
16
package.json
16
package.json
|
|
@ -3,6 +3,8 @@
|
||||||
"@mgcrea/fastify-session": "^0.14.1",
|
"@mgcrea/fastify-session": "^0.14.1",
|
||||||
"ccash-client-js": "^1.8.1",
|
"ccash-client-js": "^1.8.1",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
|
"electron-builder": "^22.11.7",
|
||||||
|
"electron-squirrel-startup": "^1.0.0",
|
||||||
"express-validator": "5.3.1",
|
"express-validator": "5.3.1",
|
||||||
"fastify": "^3.18.0",
|
"fastify": "^3.18.0",
|
||||||
"fastify-cookie": "^5.3.1",
|
"fastify-cookie": "^5.3.1",
|
||||||
|
|
@ -18,6 +20,7 @@
|
||||||
"pino-pretty": "^5.0.2",
|
"pino-pretty": "^5.0.2",
|
||||||
"point-of-view": "^4.15.0",
|
"point-of-view": "^4.15.0",
|
||||||
"pug": "^3.0.2",
|
"pug": "^3.0.2",
|
||||||
|
"sodium-native": "^3.2.1",
|
||||||
"url": "^0.11.0"
|
"url": "^0.11.0"
|
||||||
},
|
},
|
||||||
"name": "ccashfrontend",
|
"name": "ccashfrontend",
|
||||||
|
|
@ -25,7 +28,9 @@
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index.js"
|
"start": "electron-forge start",
|
||||||
|
"package": "electron-forge package",
|
||||||
|
"make": "electron-forge make"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
@ -39,5 +44,14 @@
|
||||||
"homepage": "https://github.com/Expand-sys/ccashfrontend#readme",
|
"homepage": "https://github.com/Expand-sys/ccashfrontend#readme",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "16.x"
|
"node": "16.x"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@electron-forge/maker-squirrel": "^6.0.0-beta.57",
|
||||||
|
"@electron-forge/maker-zip": "^6.0.0-beta.57",
|
||||||
|
"electron": "^13.1.6"
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"appId": "com.ccash.frontend",
|
||||||
|
"target": "AppImage"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue