panel migration
This commit is contained in:
7 files changed
+3182
-763
No files matched your search
Generated
+752
-747
File diff suppressed because it is too large.
Load diff
+9
-9
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "staffog-panel",
|
||||
"version": "1.0",
|
||||
"version": "1.0.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
@@ -10,27 +10,27 @@
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-auto": "^3.0.0",
|
||||
"@sveltejs/adapter-node": "^2.0.0",
|
||||
"@sveltejs/adapter-auto": "^6.0.1",
|
||||
"@sveltejs/adapter-node": "^5.2.12",
|
||||
"@sveltejs/kit": "^2.5.27",
|
||||
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
||||
"@types/bcryptjs": "^2.4.2",
|
||||
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
||||
"@types/bcryptjs": "^3.0.0",
|
||||
"@types/jsonwebtoken": "^9.0.2",
|
||||
"svelte": "^5.0.0",
|
||||
"svelte-check": "^4.0.0",
|
||||
"tslib": "^2.4.1",
|
||||
"typescript": "^5.5.0",
|
||||
"vite": "^5.4.4"
|
||||
"vite": "^6.3.5"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"bcryptjs": "^2.4.3",
|
||||
"bulma": "^0.9.4",
|
||||
"bcryptjs": "^3.0.2",
|
||||
"bulma": "^1.0.4",
|
||||
"dotenv": "^16.0.3",
|
||||
"jsonwebtoken": "^9.0.0",
|
||||
"mariadb": "^3.1.2",
|
||||
"mysql2": "^3.3.1",
|
||||
"pretty-ms": "^8.0.0",
|
||||
"pretty-ms": "^9.2.0",
|
||||
"sass": "^1.62.1"
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,15 @@
|
||||
@charset "utf-8";
|
||||
|
||||
$primary: #ff7582;
|
||||
$theme: #ff7582;
|
||||
|
||||
$menu-item-color: #ffffff;
|
||||
$menu-item-hover-color: #ffffff;
|
||||
$menu-item-hover-background-color: #355c7d;
|
||||
|
||||
@use "bulma/sass" with (
|
||||
$primary: $theme,
|
||||
);
|
||||
|
||||
body {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
@import "../node_modules/bulma/bulma.sass";
|
||||
@@ -10,7 +10,8 @@ export const dbPool = mariadb.createPool({
|
||||
user: process.env.DB_USER,
|
||||
password: process.env.DB_PWD,
|
||||
database: process.env.DB_NAME,
|
||||
multipleStatements: false
|
||||
multipleStatements: false,
|
||||
allowPublicKeyRetrieval: true
|
||||
});
|
||||
const inputAllowed = /^[a-zA-Z0-9_]+$/;
|
||||
const tokenSecret = process.env.TOKEN_SECRET;
|
||||
|
||||
Generated
+2410
File diff suppressed because it is too large.
Load diff
@@ -7,7 +7,8 @@ export const dbPool = mariadb.createPool({
|
||||
user: process.env.DB_USER,
|
||||
password: process.env.DB_PWD,
|
||||
database: process.env.DB_NAME,
|
||||
multipleStatements: false
|
||||
multipleStatements: false,
|
||||
allowPublicKeyRetrieval: true
|
||||
});
|
||||
const inputAllowed = /^[a-zA-Z0-9_]+$/;
|
||||
const inputAllowedEvidence = /^[a-zA-Z0-9_-]+$/;
|
||||
|
||||
@@ -40,7 +40,7 @@ export const actions = {
|
||||
if (!eviType || !eviData) {
|
||||
let allowNoEvi = event.cookies.get("allowNoEvi");
|
||||
if (!allowNoEvi) {
|
||||
/* @migration task: add path argument */ event.cookies.set("allowNoEvi", "true", { 'path': '/' });
|
||||
event.cookies.set("allowNoEvi", "true", { 'path': '/' });
|
||||
return fail(500, { success: false, message: "Please complete the evidence boxes. If you created too many boxes, please press submit again and the form will be accepted." });
|
||||
} else {
|
||||
continue;
|
||||
@@ -74,7 +74,7 @@ export const actions = {
|
||||
return fail(500, { success: false, message: "Please check the offender's username, have they ever joined the server?" });
|
||||
}
|
||||
|
||||
/* @migration task: add path argument */ event.cookies.delete("allowNoEvi", { 'path': '/' });
|
||||
event.cookies.delete("allowNoEvi", { 'path': '/' });
|
||||
let code = await submitReport(offenderUuid, userUuid, offence, reason, evidence, (!crid ? null : Number(crid)));
|
||||
if (!code) {
|
||||
return fail(500, { success: false, message: "Server failed to submit report, please try again later." });
|
||||
|
||||
Reference in new issue
Block a user