Include complete API and frontend sources for unified deployment
This commit is contained in:
1 parent
627b0ae60e
commit
d8fcae32b0
93 files changed
+53270
-3
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import 'dotenv/config';
|
||||
import { createHmac } from 'node:crypto';
|
||||
|
||||
const password = process.env.ADMIN_PASSWORD;
|
||||
if (!password) throw new Error('ADMIN_PASSWORD is required');
|
||||
|
||||
export default {
|
||||
id: '77b12261-43b2-45d4-9473-fbd4141b8857',
|
||||
login: 'admin',
|
||||
password,
|
||||
sessionId: createHmac('sha256', process.env.JWT_KEY).update(password).digest('hex'),
|
||||
};
|
||||
@@ -0,0 +1,46 @@
|
||||
export default {
|
||||
NotExist: {
|
||||
errNum: 201,
|
||||
errCode: 'NotExist',
|
||||
message: "Something parameter doesn't exist",
|
||||
},
|
||||
AlreadyExists: {
|
||||
errNum: 202,
|
||||
errCode: 'OrderAlreadyExists',
|
||||
message: 'Something parameter already exists',
|
||||
},
|
||||
Missing: {
|
||||
errNum: 203,
|
||||
errCode: 'Missing',
|
||||
message: 'Something parameter are missing',
|
||||
},
|
||||
Invalid: {
|
||||
errNum: 204,
|
||||
errCode: 'Invalid',
|
||||
message: 'Some parameter is invalid',
|
||||
},
|
||||
Duplicate: {
|
||||
errNum: 205,
|
||||
errCode: 'Duplicate',
|
||||
message: 'Some field is not unique',
|
||||
},
|
||||
|
||||
NoFileUploaded: {
|
||||
errNum: 300,
|
||||
errCode: 'NoFileUploaded',
|
||||
message: 'No file uploaded',
|
||||
key: 'no_file_uploaded',
|
||||
},
|
||||
FileExtensionNotAllowed: {
|
||||
errNum: 301,
|
||||
errCode: 'FileExtensionNotAllowed',
|
||||
message: 'File extension is not allowed',
|
||||
key: 'file_extension_not_allowed',
|
||||
},
|
||||
FileTooLarge: {
|
||||
errNum: 302,
|
||||
errCode: 'FileTooLarge',
|
||||
message: 'File too large',
|
||||
key: 'file_too_large',
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
export default {
|
||||
IMMERSION: 10,
|
||||
IMPLEMENTATION: 20,
|
||||
WORK: 30,
|
||||
TEAM: 40,
|
||||
PRESENTATION: 50,
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
export default {
|
||||
10: 'Погруженность в проект',
|
||||
20: 'Качество реализации',
|
||||
30: 'Работа на хакатоне',
|
||||
40: 'Перспективность команды',
|
||||
50: 'Презентация проекта',
|
||||
};
|
||||
Reference in new issue
Block a user