diff --git a/.gitignore b/.gitignore index 92f732b..106c7df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .DS_Store /node_modules -/out \ No newline at end of file +/out + +*.sublime-workspace diff --git a/electron.sublime-project b/electron.sublime-project new file mode 100644 index 0000000..24db303 --- /dev/null +++ b/electron.sublime-project @@ -0,0 +1,8 @@ +{ + "folders": + [ + { + "path": "." + } + ] +} diff --git a/src/account.js b/src/account.js index e339db2..f6ad73e 100644 --- a/src/account.js +++ b/src/account.js @@ -5,6 +5,8 @@ const store = require("./utils/store"); const { launchSession, endSession } = require("./session"); const { backgroundMitt, ipcEmit } = require("./utils/emitter"); +store.set("account", process.env.ACCOUNT); + async function auth(_e, creds) { const { error, data } = await post("/auth", creds); diff --git a/src/config.js b/src/config.js index bc47fb5..3211b79 100644 --- a/src/config.js +++ b/src/config.js @@ -2,10 +2,10 @@ const { app } = require("electron"); const DOMAIN = "crimata.com"; -const prod = !process.defaultApp; -// const prod = true; +/* If PROD env variable exists */ +const prod = process.env.PROD; module.exports = { - PLATFORM: prod ? `https://app.${DOMAIN}` : `http://localhost:8760`, - API: prod ? `https://${DOMAIN}/api` : `http://localhost:8761` + PLATFORM: prod ? `https://app.${DOMAIN}` : `http://localhost:5000`, + API: prod ? `https://${DOMAIN}/api` : `http://localhost:5001` } diff --git a/src/render/main.css b/src/render/main.css index cd26154..2118c63 100644 --- a/src/render/main.css +++ b/src/render/main.css @@ -36,6 +36,7 @@ html, body { -webkit-font-smoothing: antialiased; height: 100vh; /* 100% for website */ width: 100vw; /* 100% for website */ + /* Does not work on Linux */ border-radius: 15px; } @@ -92,6 +93,8 @@ html, body { margin-left: 20px; margin-top: 20px; z-index: 2; + /* Needed for Linux even with higher Z index */ + -webkit-app-region: no-drag; } .header-menu-button { @@ -227,7 +230,6 @@ html, body { border-radius: 50%; /* Set opacity here to not affect child. */ background-color: rgba(235, 235, 235, 0.75); - cursor: pointer; box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15); } @@ -294,10 +296,8 @@ html, body { margin-top: 19px; z-index: 2; background-color: Transparent; -} - -.settings-icon:hover { - cursor: pointer; + /* Needed for Linux */ + -webkit-app-region: no-drag; } .settings-account { @@ -314,10 +314,6 @@ html, body { font-size: 14px; } -.settings-logout-button:hover { - cursor: pointer; -} - .settings-version { position: absolute; left: 50%; diff --git a/src/session.js b/src/session.js index 883be16..f5aa0e1 100644 --- a/src/session.js +++ b/src/session.js @@ -29,6 +29,8 @@ function handleMessageQueue() // { const update = messageQueue.shift(); + console.log(update); + if (update) { if (update.person)