some small fixes

Former-commit-id: 4f30f3b3386dbb0aa04d7c7fbaa2f7ffb16b1d58
This commit is contained in:
Benjamin Kyd
2022-04-21 00:16:40 +01:00
parent b8b008c671
commit 8b01a63d9a
9 changed files with 1840 additions and 11340 deletions

BIN
README.md

Binary file not shown.

View File

@@ -99,6 +99,10 @@
}
@media (pointer:none), (pointer:coarse) {
.notification-bar {
height: 3.3em;
}
.notification-bar-text {
padding-top: 10px;
}

View File

@@ -4,6 +4,7 @@ body {
/* it's also kinda the default so you can touch it if you want */
/* BODY TEXT SHOULD BE 1EM */
font-size: 16px;
/* zoom: 80%; */
color: #222;
text-decoration: none;
background-color: #F5F6F6;
@@ -32,6 +33,7 @@ limited-margin {
/* mobile */
@media (pointer:none), (pointer:coarse) {
body {
zoom: 120%;
font-size: 25px;
}

View File

@@ -5,6 +5,9 @@ import { InitAuth0 } from './auth.mjs';
function main() {
InitAuth0();
// clear basket
// localStorage.removeItem('basket');
// await RendererPreInit();
// const canvas = document.querySelectorAll('#webglviewer');

View File

@@ -10,9 +10,15 @@ PORT=port
PORT_DEV=port
LOG_LEVEL=verbose/debug/warn/info
LOG_TARGET=console/filesystem/network
LOG_PATH=network ip/path
LOG_CONSOLE=true
LOG_FILE=logs.log
LOG_NET_HOST=xxx.xxx.xxx.xxx
LOG_NET_PORT=xxxx
DATABASE_HOST=host/path
DATABASE_HOST_DEV=host/path
DATABASE_PORT=5432
DATABASE_DB=legolog
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
```

13394
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -32,21 +32,18 @@
"decompress": "^4.2.1",
"decompress-targz": "^4.1.1",
"dotenv": "^10.0.0",
"eslint": "^8.9.0",
"eslint-config-portsoc": "^1.0.0",
"express": "^4.17.2",
"express-oauth2-jwt-bearer": "^1.1.0",
"jest": "^27.4.5",
"jsdoc": "^3.6.10",
"jest": "^27.5.1",
"md5": "^2.3.0",
"moment": "^2.29.1",
"npm": "^8.6.0",
"pg": "^8.7.3",
"pg-format": "^1.0.4",
"pg-native": "^3.0.0",
"sharp": "^0.30.3",
"sharp": "^0.30.4",
"sql-escape": "^1.0.1"
},
"devDependencies": {
"eslint": "^8.9.0",
"eslint-config-portsoc": "^1.0.0"
}
}

View File

@@ -22,7 +22,7 @@ async function main() {
/* eslint-disable-next-line */
await new Promise(async (resolve, reject) => {
// run setup script to create schema
await Database.query(tableQuery, [], (err, res) => {
await Database.Query(tableQuery, [], (err, res) => {
if (err) {
Logger.Error(err);
resolve();
@@ -39,7 +39,7 @@ async function main() {
const dump = fs.readFileSync('./db/dump.sql').toString();
/* eslint-disable-next-line */
await new Promise(async (resolve, reject) => {
await Database.query(dump, [], (err, res) => {
await Database.Query(dump, [], (err, res) => {
if (err) {
Logger.Error(err);
resolve();
@@ -52,7 +52,7 @@ async function main() {
});
});
await Database.destroy();
await Database.Destroy();
}
main();

View File

@@ -4,7 +4,7 @@ const EndDate = new Date(1651269600 * 1000);
function Special(req, res, next) {
res.send({
data: {
title: '£10 off any LEGO set! Limited Time Only!',
title: '£10 off any LEGO set! Limited Time Only! use code: LEGO10',
end: EndDate,
},
});