@juki-team/commons 0.1.32 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +3567 -0
- package/dist/esm/index.js +3347 -0
- package/dist/{constants → types/constants}/commons.d.ts +8 -8
- package/dist/{constants → types/constants}/company.d.ts +3 -3
- package/dist/{constants → types/constants}/contest.d.ts +3 -3
- package/dist/{constants → types/constants}/course.d.ts +2 -2
- package/dist/{constants → types/constants}/entity.d.ts +1 -1
- package/dist/{constants → types/constants}/file.d.ts +5 -6
- package/dist/types/constants/index.d.ts +18 -0
- package/dist/{constants → types/constants}/judge.d.ts +9 -11
- package/dist/{constants → types/constants}/problem.d.ts +8 -9
- package/dist/types/constants/services.d.ts +8 -0
- package/dist/{constants → types/constants}/system.d.ts +2 -2
- package/dist/{constants → types/constants}/teams.d.ts +3 -4
- package/dist/types/constants/user.d.ts +16 -0
- package/dist/{constants → types/constants}/websocket.d.ts +1 -1
- package/dist/{constants → types/constants}/worksheet.d.ts +2 -2
- package/dist/{dto → types/dto}/class.d.ts +4 -4
- package/dist/{dto → types/dto}/code.d.ts +1 -1
- package/dist/{dto → types/dto}/comments.d.ts +3 -3
- package/dist/types/dto/company.d.ts +67 -0
- package/dist/{dto → types/dto}/contest.d.ts +8 -9
- package/dist/{dto → types/dto}/course.d.ts +5 -5
- package/dist/{dto → types/dto}/entity.d.ts +3 -3
- package/dist/{dto → types/dto}/excalidraw.d.ts +4 -4
- package/dist/{dto → types/dto}/file.d.ts +2 -2
- package/dist/types/dto/index.d.ts +25 -0
- package/dist/{dto → types/dto}/judge.d.ts +1 -1
- package/dist/{dto → types/dto}/markdown.d.ts +4 -4
- package/dist/{dto → types/dto}/mermaid.d.ts +4 -4
- package/dist/{dto → types/dto}/problem.d.ts +4 -5
- package/dist/{dto → types/dto}/scoreboard.d.ts +1 -1
- package/dist/{dto → types/dto}/session.d.ts +2 -2
- package/dist/{dto → types/dto}/socket.d.ts +7 -8
- package/dist/{dto → types/dto}/statistics.d.ts +2 -2
- package/dist/{dto → types/dto}/submission.d.ts +4 -5
- package/dist/{dto → types/dto}/system.d.ts +18 -18
- package/dist/{dto → types/dto}/user.d.ts +14 -14
- package/dist/{dto → types/dto}/virtual-user.d.ts +1 -2
- package/dist/{dto → types/dto}/worksheet-submissions.d.ts +4 -4
- package/dist/{dto → types/dto}/worksheet.d.ts +4 -4
- package/dist/{helpers → types/helpers}/class.d.ts +1 -1
- package/dist/{helpers → types/helpers}/commons.d.ts +11 -9
- package/dist/{helpers → types/helpers}/contest.d.ts +1 -1
- package/dist/{helpers → types/helpers}/document.d.ts +2 -2
- package/dist/types/helpers/index.d.ts +14 -0
- package/dist/types/helpers/interval.d.ts +2 -0
- package/dist/{helpers → types/helpers}/judging.d.ts +2 -3
- package/dist/types/helpers/object.d.ts +1 -0
- package/dist/types/helpers/responses.d.ts +8 -0
- package/dist/types/helpers/socket.d.ts +45 -0
- package/dist/{helpers → types/helpers}/time.d.ts +1 -1
- package/dist/{helpers → types/helpers}/user.d.ts +1 -1
- package/dist/types/helpers/worksheet.d.ts +10 -0
- package/dist/types/index.d.ts +5 -23
- package/dist/{prototypes → types/prototypes}/Error.d.ts +3 -3
- package/dist/types/prototypes/Number.d.ts +7 -0
- package/dist/types/prototypes/index.d.ts +3 -0
- package/dist/types/{class.d.ts → types/class.d.ts} +2 -2
- package/dist/types/{commons.d.ts → types/commons.d.ts} +3 -3
- package/dist/types/types/company.d.ts +29 -0
- package/dist/types/{contest.d.ts → types/contest.d.ts} +26 -9
- package/dist/types/{course.d.ts → types/course.d.ts} +1 -1
- package/dist/types/{entity.d.ts → types/entity.d.ts} +4 -4
- package/dist/types/{excalidraw.d.ts → types/excalidraw.d.ts} +3 -3
- package/dist/types/{file.d.ts → types/file.d.ts} +9 -4
- package/dist/types/{group.d.ts → types/group.d.ts} +5 -2
- package/dist/types/types/index.d.ts +25 -0
- package/dist/types/{judge.d.ts → types/judge.d.ts} +32 -3
- package/dist/types/{markdown.d.ts → types/markdown.d.ts} +1 -1
- package/dist/types/{mermaid.d.ts → types/mermaid.d.ts} +1 -1
- package/dist/types/types/prisma.d.ts +284 -0
- package/dist/types/{problems.d.ts → types/problems.d.ts} +13 -4
- package/dist/types/types/services.d.ts +213 -0
- package/dist/types/{sheet.d.ts → types/sheet.d.ts} +2 -3
- package/dist/types/{socket.d.ts → types/socket.d.ts} +3 -3
- package/dist/types/{teams.d.ts → types/teams.d.ts} +2 -25
- package/dist/types/{users.d.ts → types/users.d.ts} +4 -10
- package/dist/types/types/virtual-user.d.ts +7 -0
- package/dist/types/{worksheet.d.ts → types/worksheet.d.ts} +3 -3
- package/package.json +27 -22
- package/biome.shared.json +0 -102
- package/dist/constants/commons.js +0 -658
- package/dist/constants/company.js +0 -24
- package/dist/constants/contest.js +0 -29
- package/dist/constants/course.js +0 -12
- package/dist/constants/date.js +0 -23
- package/dist/constants/email.js +0 -34
- package/dist/constants/entity.js +0 -18
- package/dist/constants/file.js +0 -46
- package/dist/constants/index.d.ts +0 -18
- package/dist/constants/index.js +0 -18
- package/dist/constants/judge.js +0 -221
- package/dist/constants/problem.js +0 -72
- package/dist/constants/routing.js +0 -7
- package/dist/constants/services.d.ts +0 -5
- package/dist/constants/services.js +0 -131
- package/dist/constants/system.js +0 -9
- package/dist/constants/teams.js +0 -18
- package/dist/constants/time.js +0 -9
- package/dist/constants/user.d.ts +0 -10
- package/dist/constants/user.js +0 -35
- package/dist/constants/websocket.js +0 -5
- package/dist/constants/worksheet.js +0 -66
- package/dist/dto/class.js +0 -1
- package/dist/dto/code.js +0 -1
- package/dist/dto/comments.js +0 -1
- package/dist/dto/contest.js +0 -7
- package/dist/dto/course.js +0 -1
- package/dist/dto/entity.js +0 -5
- package/dist/dto/excalidraw.js +0 -1
- package/dist/dto/file.js +0 -1
- package/dist/dto/image.js +0 -1
- package/dist/dto/index.d.ts +0 -24
- package/dist/dto/index.js +0 -24
- package/dist/dto/judge.js +0 -1
- package/dist/dto/markdown.js +0 -1
- package/dist/dto/mermaid.js +0 -1
- package/dist/dto/organization.d.ts +0 -102
- package/dist/dto/organization.js +0 -1
- package/dist/dto/problem.js +0 -1
- package/dist/dto/scoreboard.js +0 -1
- package/dist/dto/session.js +0 -1
- package/dist/dto/socket.js +0 -1
- package/dist/dto/statistics.js +0 -1
- package/dist/dto/submission.js +0 -1
- package/dist/dto/system.js +0 -1
- package/dist/dto/url.js +0 -1
- package/dist/dto/user.js +0 -1
- package/dist/dto/virtual-user.js +0 -1
- package/dist/dto/worksheet-submissions.js +0 -1
- package/dist/dto/worksheet.js +0 -1
- package/dist/helpers/class.js +0 -10
- package/dist/helpers/comments.js +0 -4
- package/dist/helpers/commons.js +0 -191
- package/dist/helpers/contest.js +0 -21
- package/dist/helpers/document.js +0 -38
- package/dist/helpers/file.js +0 -4
- package/dist/helpers/index.d.ts +0 -14
- package/dist/helpers/index.js +0 -14
- package/dist/helpers/interval.d.ts +0 -2
- package/dist/helpers/interval.js +0 -22
- package/dist/helpers/judging.js +0 -107
- package/dist/helpers/object.d.ts +0 -1
- package/dist/helpers/object.js +0 -32
- package/dist/helpers/responses.d.ts +0 -8
- package/dist/helpers/responses.js +0 -78
- package/dist/helpers/socket.d.ts +0 -45
- package/dist/helpers/socket.js +0 -238
- package/dist/helpers/time.js +0 -101
- package/dist/helpers/user.js +0 -14
- package/dist/helpers/worksheet.d.ts +0 -10
- package/dist/helpers/worksheet.js +0 -131
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/prisma/enums/AssignmentClassType.d.ts +0 -7
- package/dist/prisma/enums/AssignmentClassType.js +0 -6
- package/dist/prisma/enums/ContestEventAction.d.ts +0 -10
- package/dist/prisma/enums/ContestEventAction.js +0 -9
- package/dist/prisma/enums/ContestProblemPrerequisiteType.d.ts +0 -5
- package/dist/prisma/enums/ContestProblemPrerequisiteType.js +0 -4
- package/dist/prisma/enums/ContestRole.d.ts +0 -11
- package/dist/prisma/enums/ContestRole.js +0 -10
- package/dist/prisma/enums/ContestStatus.d.ts +0 -6
- package/dist/prisma/enums/ContestStatus.js +0 -5
- package/dist/prisma/enums/CourseRole.d.ts +0 -12
- package/dist/prisma/enums/CourseRole.js +0 -11
- package/dist/prisma/enums/EntityObjectType.d.ts +0 -13
- package/dist/prisma/enums/EntityObjectType.js +0 -12
- package/dist/prisma/enums/EntityRole.d.ts +0 -8
- package/dist/prisma/enums/EntityRole.js +0 -7
- package/dist/prisma/enums/EntitySubjectType.d.ts +0 -7
- package/dist/prisma/enums/EntitySubjectType.js +0 -6
- package/dist/prisma/enums/FileRole.d.ts +0 -9
- package/dist/prisma/enums/FileRole.js +0 -8
- package/dist/prisma/enums/FileType.d.ts +0 -5
- package/dist/prisma/enums/FileType.js +0 -4
- package/dist/prisma/enums/GroupType.d.ts +0 -5
- package/dist/prisma/enums/GroupType.js +0 -4
- package/dist/prisma/enums/JudgeType.d.ts +0 -12
- package/dist/prisma/enums/JudgeType.js +0 -11
- package/dist/prisma/enums/OrganizationPlan.d.ts +0 -7
- package/dist/prisma/enums/OrganizationPlan.js +0 -6
- package/dist/prisma/enums/ProblemRole.d.ts +0 -11
- package/dist/prisma/enums/ProblemRole.js +0 -10
- package/dist/prisma/enums/ProblemScoringMode.d.ts +0 -6
- package/dist/prisma/enums/ProblemScoringMode.js +0 -5
- package/dist/prisma/enums/ProblemType.d.ts +0 -6
- package/dist/prisma/enums/ProblemType.js +0 -5
- package/dist/prisma/enums/ProblemVerdict.d.ts +0 -14
- package/dist/prisma/enums/ProblemVerdict.js +0 -13
- package/dist/prisma/enums/ShareLinkVisibility.d.ts +0 -5
- package/dist/prisma/enums/ShareLinkVisibility.js +0 -4
- package/dist/prisma/enums/SubmissionRunStatus.d.ts +0 -18
- package/dist/prisma/enums/SubmissionRunStatus.js +0 -17
- package/dist/prisma/enums/SystemRole.d.ts +0 -9
- package/dist/prisma/enums/SystemRole.js +0 -8
- package/dist/prisma/enums/TeamRole.d.ts +0 -9
- package/dist/prisma/enums/TeamRole.js +0 -8
- package/dist/prisma/enums/TelemetryType.d.ts +0 -9
- package/dist/prisma/enums/TelemetryType.js +0 -8
- package/dist/prisma/enums/UserRole.d.ts +0 -10
- package/dist/prisma/enums/UserRole.js +0 -9
- package/dist/prisma/enums/WorkingIn.d.ts +0 -8
- package/dist/prisma/enums/WorkingIn.js +0 -7
- package/dist/prisma/enums/WorksheetContentType.d.ts +0 -10
- package/dist/prisma/enums/WorksheetContentType.js +0 -9
- package/dist/prisma/enums/index.d.ts +0 -26
- package/dist/prisma/enums/index.js +0 -26
- package/dist/prototypes/Date.js +0 -218
- package/dist/prototypes/Error.js +0 -17
- package/dist/prototypes/Number.d.ts +0 -7
- package/dist/prototypes/Number.js +0 -8
- package/dist/prototypes/index.d.ts +0 -3
- package/dist/prototypes/index.js +0 -3
- package/dist/types/account.js +0 -10
- package/dist/types/class.js +0 -7
- package/dist/types/comments.js +0 -1
- package/dist/types/commons.js +0 -69
- package/dist/types/company.d.ts +0 -6
- package/dist/types/company.js +0 -7
- package/dist/types/contest.js +0 -6
- package/dist/types/course.js +0 -1
- package/dist/types/entity.js +0 -50
- package/dist/types/excalidraw.js +0 -1
- package/dist/types/file.js +0 -13
- package/dist/types/group.js +0 -1
- package/dist/types/index.js +0 -23
- package/dist/types/judge.js +0 -17
- package/dist/types/markdown.js +0 -1
- package/dist/types/mermaid.js +0 -1
- package/dist/types/notification.js +0 -8
- package/dist/types/problems.js +0 -16
- package/dist/types/services.d.ts +0 -214
- package/dist/types/services.js +0 -147
- package/dist/types/sheet.js +0 -16
- package/dist/types/socket.js +0 -49
- package/dist/types/submission.js +0 -1
- package/dist/types/teams.js +0 -28
- package/dist/types/users.js +0 -33
- package/dist/types/worksheet.js +0 -11
- /package/dist/{constants → types/constants}/date.d.ts +0 -0
- /package/dist/{constants → types/constants}/email.d.ts +0 -0
- /package/dist/{constants → types/constants}/routing.d.ts +0 -0
- /package/dist/{constants → types/constants}/time.d.ts +0 -0
- /package/dist/{dto → types/dto}/image.d.ts +0 -0
- /package/dist/{dto → types/dto}/url.d.ts +0 -0
- /package/dist/{helpers → types/helpers}/comments.d.ts +0 -0
- /package/dist/{helpers → types/helpers}/file.d.ts +0 -0
- /package/dist/{prototypes → types/prototypes}/Date.d.ts +0 -0
- /package/dist/types/{account.d.ts → types/account.d.ts} +0 -0
- /package/dist/types/{comments.d.ts → types/comments.d.ts} +0 -0
- /package/dist/types/{notification.d.ts → types/notification.d.ts} +0 -0
- /package/dist/types/{submission.d.ts → types/submission.d.ts} +0 -0
|
@@ -1,658 +0,0 @@
|
|
|
1
|
-
import { CodeLanguage, Language, Theme } from '../types/index.js';
|
|
2
|
-
export const LANGUAGE = {
|
|
3
|
-
[Language.EN]: { value: Language.EN, label: 'english' },
|
|
4
|
-
[Language.ES]: { value: Language.ES, label: 'español' },
|
|
5
|
-
};
|
|
6
|
-
export const THEME = {
|
|
7
|
-
[Theme.LIGHT]: { value: Theme.LIGHT, label: 'light' },
|
|
8
|
-
[Theme.DARK]: { value: Theme.DARK, label: 'dark' },
|
|
9
|
-
};
|
|
10
|
-
const GCC_VERSION = `gcc (Debian 12.2.0-14+deb12u1) 12.2.0
|
|
11
|
-
Copyright (C) 2022 Free Software Foundation, Inc.
|
|
12
|
-
This is free software; see the source for copying conditions. There is NO
|
|
13
|
-
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.`;
|
|
14
|
-
const GPP_VERSION = `g++ (Debian 12.2.0-14+deb12u1) 12.2.0
|
|
15
|
-
Copyright (C) 2022 Free Software Foundation, Inc.
|
|
16
|
-
This is free software; see the source for copying conditions. There is NO
|
|
17
|
-
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.`;
|
|
18
|
-
const JAVAC_VERSION = `javac 17.0.15`;
|
|
19
|
-
const NODE_VERSION = `v20.19.2`;
|
|
20
|
-
const PYTHON3_VERSION = 'Python 3.11.2';
|
|
21
|
-
const PYPY3_VERSION = `Python 3.9.16 (7.3.11+dfsg-2+deb12u3, Dec 30 2024, 22:36:23)
|
|
22
|
-
[PyPy 7.3.11 with GCC 12.2.0]`;
|
|
23
|
-
const PSEINT_VERSION = `PSeInt 20230904-l64-wx3
|
|
24
|
-
http://pseint.sourceforge.net
|
|
25
|
-
by Pablo Novara (zaskar_84@yahoo.com.ar)
|
|
26
|
-
psExport 20230904-l64-wx3
|
|
27
|
-
http://pseint.sourceforge.net
|
|
28
|
-
by Pablo Novara (zaskar_84@yahoo.com.ar)`;
|
|
29
|
-
const C = {
|
|
30
|
-
mime: 'text/x-csrc',
|
|
31
|
-
mainFilename: 'main.c',
|
|
32
|
-
fileExtension: ['c'],
|
|
33
|
-
hasBuildFile: true,
|
|
34
|
-
executable: 'gcc',
|
|
35
|
-
executableVersion: GCC_VERSION,
|
|
36
|
-
templateSourceCode: '#include <stdio.h>\n \nint main(void) {\n \n printf("Hello World\\n");\n \n return 0;\n}',
|
|
37
|
-
monacoKey: 'c',
|
|
38
|
-
codeMirrorKey: 'c',
|
|
39
|
-
highlightJsKey: 'c',
|
|
40
|
-
};
|
|
41
|
-
const CPP = {
|
|
42
|
-
mime: 'text/x-c++src',
|
|
43
|
-
mainFilename: 'main.cpp',
|
|
44
|
-
fileExtension: ['cpp', 'c++', 'cxx', 'cc'],
|
|
45
|
-
hasBuildFile: true,
|
|
46
|
-
executable: 'g++',
|
|
47
|
-
executableVersion: GPP_VERSION,
|
|
48
|
-
templateSourceCode: '#include <iostream>\n\nusing namespace std;\n\n' +
|
|
49
|
-
'int main() {\n \n cout << "Hello World" << endl;\n \n return 0;\n}',
|
|
50
|
-
monacoKey: 'cpp',
|
|
51
|
-
codeMirrorKey: 'cpp',
|
|
52
|
-
highlightJsKey: 'cpp',
|
|
53
|
-
};
|
|
54
|
-
const PYTHON = {
|
|
55
|
-
mime: 'text/x-python',
|
|
56
|
-
mainFilename: 'main.py',
|
|
57
|
-
fileExtension: ['py'],
|
|
58
|
-
hasBuildFile: false,
|
|
59
|
-
templateSourceCode: 'print("Hello World\\n")',
|
|
60
|
-
monacoKey: 'python',
|
|
61
|
-
codeMirrorKey: 'python',
|
|
62
|
-
highlightJsKey: 'python',
|
|
63
|
-
};
|
|
64
|
-
export const CODE_LANGUAGE = {
|
|
65
|
-
[CodeLanguage.C_11]: {
|
|
66
|
-
value: CodeLanguage.C_11,
|
|
67
|
-
label: 'C 11',
|
|
68
|
-
compilePattern: '/usr/bin/jk-c11 -static -fno-optimize-sibling-calls -fno-strict-aliasing -DONLINE_JUDGE -fno-asm -lm -s -O2 -std=gnu11 -o ' +
|
|
69
|
-
'{{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}',
|
|
70
|
-
runPattern: '{{folder_path}}/{{compiled_file_name}}',
|
|
71
|
-
...C,
|
|
72
|
-
/*
|
|
73
|
-
-static
|
|
74
|
-
Binario independiente.
|
|
75
|
-
-fno-optimize-sibling-calls
|
|
76
|
-
Desactiva la optimización de llamadas recursivas “tail call”. Facilita detectar desbordes de pila o trazas correctas.
|
|
77
|
-
-fno-strict-aliasing
|
|
78
|
-
Evita asumir aliasing de punteros agresivo. Previene bugs raros en código competitivo.
|
|
79
|
-
-DONLINE_JUDGE
|
|
80
|
-
Define la macro ONLINE_JUDGE, usada a veces para omitir logs o debug prints (#ifdef ONLINE_JUDGE).
|
|
81
|
-
-fno-asm
|
|
82
|
-
Prohíbe insertar código ensamblador inline (asm()). Seguridad en entornos restringidos.
|
|
83
|
-
-lm
|
|
84
|
-
Enlaza libm.
|
|
85
|
-
-s
|
|
86
|
-
“Strips symbols”: elimina toda información de depuración. Binario más pequeño y más difícil de desensamblar.
|
|
87
|
-
-O2
|
|
88
|
-
Nivel medio de optimización (rápido y seguro).
|
|
89
|
-
-std=gnu11
|
|
90
|
-
Usa el estándar C11 con extensiones GNU.
|
|
91
|
-
*/
|
|
92
|
-
},
|
|
93
|
-
[CodeLanguage.CPP_11]: {
|
|
94
|
-
value: CodeLanguage.CPP_11,
|
|
95
|
-
label: 'C++ 11',
|
|
96
|
-
compilePattern: '/usr/bin/jk-cpp11 -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=gnu++11 -o ' +
|
|
97
|
-
'{{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}',
|
|
98
|
-
runPattern: '{{folder_path}}/{{compiled_file_name}}',
|
|
99
|
-
...CPP,
|
|
100
|
-
},
|
|
101
|
-
[CodeLanguage.CPP_20]: {
|
|
102
|
-
value: CodeLanguage.CPP_20,
|
|
103
|
-
label: 'C++ 20',
|
|
104
|
-
compilePattern: '/usr/bin/jk-cpp20 -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=gnu++20 -o ' +
|
|
105
|
-
'{{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}',
|
|
106
|
-
runPattern: '{{folder_path}}/{{compiled_file_name}}',
|
|
107
|
-
...CPP,
|
|
108
|
-
},
|
|
109
|
-
[CodeLanguage.JAVA_21]: {
|
|
110
|
-
value: CodeLanguage.JAVA_21,
|
|
111
|
-
label: 'Java 21',
|
|
112
|
-
mime: 'text/x-java',
|
|
113
|
-
mainFilename: 'Main.java',
|
|
114
|
-
fileExtension: ['java'],
|
|
115
|
-
compilePattern: "/usr/bin/jk-javac -cp '.;*' {{folder_path}}/{{source_full_file_name}}",
|
|
116
|
-
// compilePattern: 'javac {{folder_path}}/{{source_full_file_name}}',
|
|
117
|
-
// runPattern: 'java -cp {{folder_path}} {{class_name}}'
|
|
118
|
-
runPattern: '/usr/bin/jk-java -Xmx512M -Xss64M -DONLINE_JUDGE=true -Duser.language=en -Duser.region=US -Duser.variant=US -cp ' +
|
|
119
|
-
'{{folder_path}} {{class_name}}',
|
|
120
|
-
templateSourceCode: 'class Main {\n public static void main (String[] args) {' +
|
|
121
|
-
'\n \n System.out.println("Hello World");\n \n }\n}',
|
|
122
|
-
hasBuildFile: true,
|
|
123
|
-
executable: 'java',
|
|
124
|
-
executableVersion: JAVAC_VERSION,
|
|
125
|
-
monacoKey: 'java',
|
|
126
|
-
codeMirrorKey: 'java',
|
|
127
|
-
highlightJsKey: 'java',
|
|
128
|
-
},
|
|
129
|
-
[CodeLanguage.PYTHON_2]: {
|
|
130
|
-
// DEPRECATED
|
|
131
|
-
value: CodeLanguage.PYTHON_2,
|
|
132
|
-
label: 'Python 2 *',
|
|
133
|
-
compilePattern: '/usr/bin/jk-python2 -m py_compile {{folder_path}}/{{source_full_file_name}}',
|
|
134
|
-
runPattern: '/usr/bin/jk-python2 {{folder_path}}/{{source_full_file_name}}',
|
|
135
|
-
executable: 'python2',
|
|
136
|
-
executableVersion: PYPY3_VERSION,
|
|
137
|
-
...PYTHON,
|
|
138
|
-
},
|
|
139
|
-
[CodeLanguage.PYTHON_3]: {
|
|
140
|
-
value: CodeLanguage.PYTHON_3,
|
|
141
|
-
label: 'Python 3',
|
|
142
|
-
compilePattern: '/usr/bin/jk-python3 -m py_compile {{folder_path}}/{{source_full_file_name}}',
|
|
143
|
-
runPattern: '/usr/bin/jk-python3 {{folder_path}}/{{source_full_file_name}}',
|
|
144
|
-
executable: 'python3',
|
|
145
|
-
executableVersion: PYPY3_VERSION,
|
|
146
|
-
...PYTHON,
|
|
147
|
-
},
|
|
148
|
-
[CodeLanguage.PYTHON_PYPY_2]: {
|
|
149
|
-
// DEPRECATED
|
|
150
|
-
value: CodeLanguage.PYTHON_PYPY_2,
|
|
151
|
-
label: 'PyPy 2 *',
|
|
152
|
-
compilePattern: '/usr/bin/jk-pypy2 -m py_compile {{folder_path}}/{{source_full_file_name}}',
|
|
153
|
-
runPattern: '/usr/bin/jk-pypy2 {{folder_path}}/{{source_full_file_name}}',
|
|
154
|
-
executable: 'pypy2',
|
|
155
|
-
executableVersion: PYPY3_VERSION,
|
|
156
|
-
...PYTHON,
|
|
157
|
-
},
|
|
158
|
-
[CodeLanguage.PYTHON_PYPY_3]: {
|
|
159
|
-
value: CodeLanguage.PYTHON_PYPY_3,
|
|
160
|
-
label: 'PyPy 3',
|
|
161
|
-
compilePattern: '/usr/bin/jk-pypy3 -m py_compile {{folder_path}}/{{source_full_file_name}}',
|
|
162
|
-
runPattern: '/usr/bin/jk-pypy3 {{folder_path}}/{{source_full_file_name}}',
|
|
163
|
-
executable: 'pypy3',
|
|
164
|
-
executableVersion: PYPY3_VERSION,
|
|
165
|
-
...PYTHON,
|
|
166
|
-
},
|
|
167
|
-
[CodeLanguage.JAVASCRIPT_NODE_JS_22]: {
|
|
168
|
-
value: CodeLanguage.JAVASCRIPT_NODE_JS_22,
|
|
169
|
-
label: 'Javascript Node.js 22',
|
|
170
|
-
mime: 'application/x-javascript',
|
|
171
|
-
mainFilename: 'main.js',
|
|
172
|
-
fileExtension: ['js'],
|
|
173
|
-
compilePattern: '',
|
|
174
|
-
runPattern: '/usr/bin/jk-node22 {{folder_path}}/{{source_full_file_name}}',
|
|
175
|
-
templateSourceCode: 'console.log("Hello World\\n")',
|
|
176
|
-
hasBuildFile: false,
|
|
177
|
-
executable: 'node',
|
|
178
|
-
executableVersion: NODE_VERSION,
|
|
179
|
-
monacoKey: 'javascript',
|
|
180
|
-
codeMirrorKey: 'javascript',
|
|
181
|
-
highlightJsKey: 'javascript',
|
|
182
|
-
},
|
|
183
|
-
[CodeLanguage.ICPC_C]: {
|
|
184
|
-
// DEPRECATED
|
|
185
|
-
value: CodeLanguage.ICPC_C,
|
|
186
|
-
label: 'ICPC C *',
|
|
187
|
-
compilePattern: 'gcc -x c -g -O2 -std=gnu11 -static -lm -o ' +
|
|
188
|
-
'{{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}',
|
|
189
|
-
runPattern: '{{folder_path}}/{{compiled_file_name}}',
|
|
190
|
-
...C,
|
|
191
|
-
},
|
|
192
|
-
[CodeLanguage.C]: {
|
|
193
|
-
// DEPRECATED
|
|
194
|
-
value: CodeLanguage.C,
|
|
195
|
-
label: 'C *',
|
|
196
|
-
compilePattern: 'gcc -static -fno-optimize-sibling-calls -fno-strict-aliasing -DONLINE_JUDGE -fno-asm -lm -s -O2 -o ' +
|
|
197
|
-
'{{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}',
|
|
198
|
-
runPattern: '{{folder_path}}/{{compiled_file_name}}',
|
|
199
|
-
...C,
|
|
200
|
-
},
|
|
201
|
-
[CodeLanguage.ICPC_CPP]: {
|
|
202
|
-
// DEPRECATED
|
|
203
|
-
value: CodeLanguage.ICPC_CPP,
|
|
204
|
-
label: 'ICPC C++ *',
|
|
205
|
-
compilePattern: 'g++ -x c++ -static -g -O2 -std=gnu++20 -o ' +
|
|
206
|
-
'{{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}',
|
|
207
|
-
runPattern: '{{folder_path}}/{{compiled_file_name}}',
|
|
208
|
-
...CPP,
|
|
209
|
-
},
|
|
210
|
-
[CodeLanguage.CPP]: {
|
|
211
|
-
// DEPRECATED
|
|
212
|
-
value: CodeLanguage.CPP,
|
|
213
|
-
label: 'C++ *',
|
|
214
|
-
compilePattern: 'g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -o ' +
|
|
215
|
-
'{{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}',
|
|
216
|
-
runPattern: '{{folder_path}}/{{compiled_file_name}}',
|
|
217
|
-
...CPP,
|
|
218
|
-
},
|
|
219
|
-
[CodeLanguage.CPP11]: {
|
|
220
|
-
// DEPRECATED
|
|
221
|
-
value: CodeLanguage.CPP11,
|
|
222
|
-
label: 'C++ 11 *',
|
|
223
|
-
compilePattern: 'g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++11 -o ' +
|
|
224
|
-
'{{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}',
|
|
225
|
-
// compilePattern: 'g++ -O2 -s -Wall -std=c++11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}} -lm',
|
|
226
|
-
runPattern: '{{folder_path}}/{{compiled_file_name}}',
|
|
227
|
-
...CPP,
|
|
228
|
-
},
|
|
229
|
-
[CodeLanguage.CPP14]: {
|
|
230
|
-
// DEPRECATED
|
|
231
|
-
value: CodeLanguage.CPP14,
|
|
232
|
-
label: 'C++ 14 *',
|
|
233
|
-
// compilePattern: 'g++ -O2 -s -Wall -std=c++14 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}} -lm',
|
|
234
|
-
compilePattern: 'g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++14 -o ' +
|
|
235
|
-
'{{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}',
|
|
236
|
-
runPattern: '{{folder_path}}/{{compiled_file_name}}',
|
|
237
|
-
...CPP,
|
|
238
|
-
},
|
|
239
|
-
[CodeLanguage.CPP17]: {
|
|
240
|
-
// DEPRECATED
|
|
241
|
-
value: CodeLanguage.CPP17,
|
|
242
|
-
label: 'C++ 17 *',
|
|
243
|
-
// compilePattern: 'g++ -O2 -s -Wall -std=c++17 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}} -lm',
|
|
244
|
-
compilePattern: 'g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++17 -o ' +
|
|
245
|
-
'{{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}',
|
|
246
|
-
runPattern: '{{folder_path}}/{{compiled_file_name}}',
|
|
247
|
-
...CPP,
|
|
248
|
-
},
|
|
249
|
-
[CodeLanguage.JAVA]: {
|
|
250
|
-
// DEPRECATED
|
|
251
|
-
value: CodeLanguage.JAVA,
|
|
252
|
-
label: 'Java *',
|
|
253
|
-
mime: 'text/x-java',
|
|
254
|
-
mainFilename: 'Main.java',
|
|
255
|
-
fileExtension: ['java'],
|
|
256
|
-
compilePattern: "javac -cp '.;*' {{folder_path}}/{{source_full_file_name}}",
|
|
257
|
-
// compilePattern: 'javac {{folder_path}}/{{source_full_file_name}}',
|
|
258
|
-
// runPattern: 'java -cp {{folder_path}} {{class_name}}'
|
|
259
|
-
runPattern: '/usr/lib/jvm/java-17-openjdk-amd64/bin/java -Xmx512M -Xss64M -DONLINE_JUDGE=true -Duser.language=en -Duser.region=US -Duser.variant=US -cp ' +
|
|
260
|
-
'{{folder_path}} {{class_name}}',
|
|
261
|
-
templateSourceCode: 'class Main {\n public static void main (String[] args) {' +
|
|
262
|
-
'\n \n System.out.println("Hello World");\n \n }\n}',
|
|
263
|
-
hasBuildFile: true,
|
|
264
|
-
executable: 'javac',
|
|
265
|
-
executableVersion: JAVAC_VERSION,
|
|
266
|
-
monacoKey: 'java',
|
|
267
|
-
codeMirrorKey: 'java',
|
|
268
|
-
highlightJsKey: 'java',
|
|
269
|
-
},
|
|
270
|
-
[CodeLanguage.ICPC_PYTHON]: {
|
|
271
|
-
// DEPRECATED
|
|
272
|
-
value: CodeLanguage.ICPC_PYTHON,
|
|
273
|
-
label: 'ICPC Python *',
|
|
274
|
-
compilePattern: 'pypy3 -m py_compile {{folder_path}}/{{source_full_file_name}}',
|
|
275
|
-
runPattern: '/usr/bin/pypy3 {{folder_path}}/{{source_full_file_name}}',
|
|
276
|
-
executable: 'pypy3',
|
|
277
|
-
executableVersion: PYPY3_VERSION,
|
|
278
|
-
...PYTHON,
|
|
279
|
-
},
|
|
280
|
-
[CodeLanguage.PYTHON]: {
|
|
281
|
-
// DEPRECATED
|
|
282
|
-
value: CodeLanguage.PYTHON,
|
|
283
|
-
label: 'Python *',
|
|
284
|
-
compilePattern: 'python3 -m py_compile {{folder_path}}/{{source_full_file_name}}',
|
|
285
|
-
runPattern: '/usr/bin/python3 {{folder_path}}/{{source_full_file_name}}',
|
|
286
|
-
executable: 'python3',
|
|
287
|
-
executableVersion: PYTHON3_VERSION,
|
|
288
|
-
...PYTHON,
|
|
289
|
-
},
|
|
290
|
-
[CodeLanguage.PYTHON2]: {
|
|
291
|
-
// DEPRECATED
|
|
292
|
-
value: CodeLanguage.PYTHON2,
|
|
293
|
-
label: 'Python 2 *',
|
|
294
|
-
compilePattern: 'python2 -m py_compile {{folder_path}}/{{source_full_file_name}}',
|
|
295
|
-
runPattern: '/usr/bin/python2 {{folder_path}}/{{source_full_file_name}}',
|
|
296
|
-
executable: 'python',
|
|
297
|
-
executableVersion: 'Python 2.7.18',
|
|
298
|
-
...PYTHON,
|
|
299
|
-
},
|
|
300
|
-
[CodeLanguage.PYTHON3]: {
|
|
301
|
-
// DEPRECATED
|
|
302
|
-
value: CodeLanguage.PYTHON3,
|
|
303
|
-
label: 'Python 3 *',
|
|
304
|
-
compilePattern: 'python3 -m py_compile {{folder_path}}/{{source_full_file_name}}',
|
|
305
|
-
runPattern: '/usr/bin/python3 {{folder_path}}/{{source_full_file_name}}',
|
|
306
|
-
executable: 'python3',
|
|
307
|
-
executableVersion: PYTHON3_VERSION,
|
|
308
|
-
...PYTHON,
|
|
309
|
-
},
|
|
310
|
-
[CodeLanguage.JAVASCRIPT]: {
|
|
311
|
-
// DEPRECATED
|
|
312
|
-
value: CodeLanguage.JAVASCRIPT,
|
|
313
|
-
label: 'Javascript *',
|
|
314
|
-
mime: 'application/x-javascript',
|
|
315
|
-
mainFilename: 'main.js',
|
|
316
|
-
fileExtension: ['js'],
|
|
317
|
-
compilePattern: '',
|
|
318
|
-
runPattern: '/usr/bin/node {{folder_path}}/{{source_full_file_name}}',
|
|
319
|
-
templateSourceCode: 'console.log("Hello World\\n")',
|
|
320
|
-
hasBuildFile: false,
|
|
321
|
-
executable: 'node',
|
|
322
|
-
executableVersion: NODE_VERSION,
|
|
323
|
-
monacoKey: 'javascript',
|
|
324
|
-
codeMirrorKey: 'javascript',
|
|
325
|
-
highlightJsKey: 'javascript',
|
|
326
|
-
},
|
|
327
|
-
[CodeLanguage.TYPESCRIPT]: {
|
|
328
|
-
// DEPRECATED
|
|
329
|
-
value: CodeLanguage.TYPESCRIPT,
|
|
330
|
-
label: 'Typescript *',
|
|
331
|
-
mime: 'application/x-typescript',
|
|
332
|
-
mainFilename: 'main.ts',
|
|
333
|
-
fileExtension: ['ts'],
|
|
334
|
-
compilePattern: '',
|
|
335
|
-
runPattern: '/usr/bin/node {{folder_path}}/{{source_full_file_name}}',
|
|
336
|
-
templateSourceCode: 'console.log("Hello World\\n")',
|
|
337
|
-
hasBuildFile: false,
|
|
338
|
-
executable: 'node',
|
|
339
|
-
executableVersion: NODE_VERSION,
|
|
340
|
-
monacoKey: 'typescript',
|
|
341
|
-
codeMirrorKey: 'typescript',
|
|
342
|
-
highlightJsKey: 'typescript',
|
|
343
|
-
},
|
|
344
|
-
[CodeLanguage.TSX]: {
|
|
345
|
-
// DEPRECATED
|
|
346
|
-
value: CodeLanguage.TSX,
|
|
347
|
-
label: 'TSX *',
|
|
348
|
-
mime: 'application/x-typescript',
|
|
349
|
-
mainFilename: 'main.tsx',
|
|
350
|
-
fileExtension: ['tsx'],
|
|
351
|
-
compilePattern: '',
|
|
352
|
-
runPattern: '/usr/bin/node {{folder_path}}/{{source_full_file_name}}',
|
|
353
|
-
templateSourceCode: 'console.log("Hello World\\n")',
|
|
354
|
-
hasBuildFile: false,
|
|
355
|
-
executable: 'node',
|
|
356
|
-
executableVersion: NODE_VERSION,
|
|
357
|
-
monacoKey: 'typescript',
|
|
358
|
-
codeMirrorKey: 'typescript',
|
|
359
|
-
highlightJsKey: 'typescript',
|
|
360
|
-
},
|
|
361
|
-
[CodeLanguage.JSX]: {
|
|
362
|
-
// DEPRECATED
|
|
363
|
-
value: CodeLanguage.JSX,
|
|
364
|
-
label: 'JSX *',
|
|
365
|
-
mime: 'application/x-javascript',
|
|
366
|
-
mainFilename: 'main.jsx',
|
|
367
|
-
fileExtension: ['jsx'],
|
|
368
|
-
compilePattern: '',
|
|
369
|
-
runPattern: '/usr/bin/node {{folder_path}}/{{source_full_file_name}}',
|
|
370
|
-
templateSourceCode: 'console.log("Hello World\\n")',
|
|
371
|
-
hasBuildFile: false,
|
|
372
|
-
executable: 'node',
|
|
373
|
-
executableVersion: NODE_VERSION,
|
|
374
|
-
monacoKey: 'javascript',
|
|
375
|
-
codeMirrorKey: 'javascript',
|
|
376
|
-
highlightJsKey: 'javascript',
|
|
377
|
-
},
|
|
378
|
-
[CodeLanguage.PSEUDOCODE_PSEINT]: {
|
|
379
|
-
value: CodeLanguage.PSEUDOCODE_PSEINT,
|
|
380
|
-
label: 'Pseudo-código (PSeInt)',
|
|
381
|
-
mime: 'text/plain',
|
|
382
|
-
mainFilename: 'main.psc',
|
|
383
|
-
fileExtension: ['psc'],
|
|
384
|
-
compilePattern: 'jk-pseint {{folder_path}}/{{source_full_file_name}} --norun --nouser' +
|
|
385
|
-
' && jk-pseint {{folder_path}}/{{source_full_file_name}} --draw {{folder_path}}/{{source_full_file_name}}.psd' +
|
|
386
|
-
' && jk-psexport {{folder_path}}/{{source_full_file_name}}.psd {{folder_path}}/{{source_full_file_name}}.cpp --lang=cpp' +
|
|
387
|
-
' && g++ -x c++ -g -O2 -std=gnu++20 -static -o ' +
|
|
388
|
-
'{{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}.cpp',
|
|
389
|
-
runPattern: '{{folder_path}}/{{compiled_file_name}}',
|
|
390
|
-
templateSourceCode: 'Algoritmo HOLA_MUNDO\n\tImprimir "Hello World"\nFinAlgoritmo\n',
|
|
391
|
-
hasBuildFile: false,
|
|
392
|
-
executable: '',
|
|
393
|
-
executableVersion: PSEINT_VERSION,
|
|
394
|
-
monacoKey: 'text',
|
|
395
|
-
codeMirrorKey: 'pseudocode-pseint',
|
|
396
|
-
highlightJsKey: 'plaintext',
|
|
397
|
-
},
|
|
398
|
-
[CodeLanguage.DOT]: {
|
|
399
|
-
value: CodeLanguage.DOT,
|
|
400
|
-
label: 'DOT',
|
|
401
|
-
mime: 'text/vnd.graphviz',
|
|
402
|
-
mainFilename: 'diagram.dot',
|
|
403
|
-
fileExtension: ['dot'],
|
|
404
|
-
compilePattern: '',
|
|
405
|
-
runPattern: '',
|
|
406
|
-
templateSourceCode: 'digraph G {\n A -> B;\n B -> C;\n}',
|
|
407
|
-
hasBuildFile: false,
|
|
408
|
-
executable: '',
|
|
409
|
-
executableVersion: '',
|
|
410
|
-
monacoKey: 'dot',
|
|
411
|
-
codeMirrorKey: 'dot',
|
|
412
|
-
highlightJsKey: 'plaintext',
|
|
413
|
-
},
|
|
414
|
-
[CodeLanguage.MERMAID]: {
|
|
415
|
-
value: CodeLanguage.MERMAID,
|
|
416
|
-
label: 'Mermaid',
|
|
417
|
-
mime: 'text/mermaid',
|
|
418
|
-
mainFilename: 'diagram.mmd',
|
|
419
|
-
fileExtension: ['mmd', 'mermaid'],
|
|
420
|
-
compilePattern: '',
|
|
421
|
-
runPattern: '',
|
|
422
|
-
templateSourceCode: `graph TD
|
|
423
|
-
A[Start] --> B{Is it working?}
|
|
424
|
-
B -- Yes --> C[Great!]
|
|
425
|
-
B -- No --> D[Fix it]
|
|
426
|
-
D --> B
|
|
427
|
-
`,
|
|
428
|
-
hasBuildFile: false,
|
|
429
|
-
executable: '',
|
|
430
|
-
executableVersion: '',
|
|
431
|
-
monacoKey: 'mermaid',
|
|
432
|
-
codeMirrorKey: 'mermaid',
|
|
433
|
-
highlightJsKey: 'plaintext',
|
|
434
|
-
},
|
|
435
|
-
[CodeLanguage.JSON]: {
|
|
436
|
-
value: CodeLanguage.JSON,
|
|
437
|
-
label: 'JSON',
|
|
438
|
-
mime: 'application/json',
|
|
439
|
-
mainFilename: 'main.json',
|
|
440
|
-
fileExtension: ['json'],
|
|
441
|
-
compilePattern: '',
|
|
442
|
-
runPattern: '',
|
|
443
|
-
templateSourceCode: '{\n \n}',
|
|
444
|
-
hasBuildFile: false,
|
|
445
|
-
executable: '',
|
|
446
|
-
executableVersion: '',
|
|
447
|
-
monacoKey: 'json',
|
|
448
|
-
codeMirrorKey: 'javascript',
|
|
449
|
-
highlightJsKey: 'json',
|
|
450
|
-
},
|
|
451
|
-
[CodeLanguage.TEXT]: {
|
|
452
|
-
value: CodeLanguage.TEXT,
|
|
453
|
-
label: 'plain text',
|
|
454
|
-
mime: 'text/plain',
|
|
455
|
-
mainFilename: 'main.txt',
|
|
456
|
-
fileExtension: ['txt', 'text', 'in', 'out'],
|
|
457
|
-
compilePattern: '',
|
|
458
|
-
runPattern: '',
|
|
459
|
-
templateSourceCode: '',
|
|
460
|
-
hasBuildFile: false,
|
|
461
|
-
executable: '',
|
|
462
|
-
executableVersion: '',
|
|
463
|
-
monacoKey: 'text',
|
|
464
|
-
codeMirrorKey: 'text',
|
|
465
|
-
highlightJsKey: 'plaintext',
|
|
466
|
-
},
|
|
467
|
-
[CodeLanguage.DIFF]: {
|
|
468
|
-
value: CodeLanguage.DIFF,
|
|
469
|
-
label: 'diff',
|
|
470
|
-
mime: 'text/plain',
|
|
471
|
-
mainFilename: 'main.patch',
|
|
472
|
-
fileExtension: ['diff', 'patch'],
|
|
473
|
-
compilePattern: '',
|
|
474
|
-
runPattern: '',
|
|
475
|
-
templateSourceCode: '',
|
|
476
|
-
hasBuildFile: false,
|
|
477
|
-
executable: '',
|
|
478
|
-
executableVersion: '',
|
|
479
|
-
monacoKey: 'diff',
|
|
480
|
-
codeMirrorKey: 'diff',
|
|
481
|
-
highlightJsKey: 'diff',
|
|
482
|
-
},
|
|
483
|
-
[CodeLanguage.LATEX]: {
|
|
484
|
-
value: CodeLanguage.LATEX,
|
|
485
|
-
label: 'LaTeX',
|
|
486
|
-
mime: 'application/x-latex',
|
|
487
|
-
mainFilename: 'main.tex',
|
|
488
|
-
fileExtension: ['tex'],
|
|
489
|
-
compilePattern: '',
|
|
490
|
-
runPattern: '',
|
|
491
|
-
templateSourceCode: '',
|
|
492
|
-
hasBuildFile: false,
|
|
493
|
-
executable: '',
|
|
494
|
-
executableVersion: '',
|
|
495
|
-
monacoKey: 'latex',
|
|
496
|
-
codeMirrorKey: 'stex',
|
|
497
|
-
highlightJsKey: 'latex',
|
|
498
|
-
},
|
|
499
|
-
// asc txt text diff pot
|
|
500
|
-
[CodeLanguage.MARKDOWN]: {
|
|
501
|
-
value: CodeLanguage.MARKDOWN,
|
|
502
|
-
label: 'Markdown',
|
|
503
|
-
mime: 'text/plain',
|
|
504
|
-
mainFilename: 'main.md',
|
|
505
|
-
fileExtension: ['md'],
|
|
506
|
-
compilePattern: '',
|
|
507
|
-
runPattern: '',
|
|
508
|
-
templateSourceCode: '# Hello World\n',
|
|
509
|
-
hasBuildFile: false,
|
|
510
|
-
executable: '',
|
|
511
|
-
executableVersion: '',
|
|
512
|
-
monacoKey: 'markdown',
|
|
513
|
-
codeMirrorKey: 'markdown',
|
|
514
|
-
highlightJsKey: 'markdown',
|
|
515
|
-
},
|
|
516
|
-
[CodeLanguage.MDX]: {
|
|
517
|
-
value: CodeLanguage.MDX,
|
|
518
|
-
label: 'MDX',
|
|
519
|
-
mime: 'text/plain',
|
|
520
|
-
mainFilename: 'main.mdx',
|
|
521
|
-
fileExtension: ['mdx'],
|
|
522
|
-
compilePattern: '',
|
|
523
|
-
runPattern: '',
|
|
524
|
-
templateSourceCode: '# Hello World\n',
|
|
525
|
-
hasBuildFile: false,
|
|
526
|
-
executable: '',
|
|
527
|
-
executableVersion: '',
|
|
528
|
-
monacoKey: 'markdown',
|
|
529
|
-
codeMirrorKey: 'markdown',
|
|
530
|
-
highlightJsKey: 'markdown',
|
|
531
|
-
},
|
|
532
|
-
[CodeLanguage.ARDUINO]: {
|
|
533
|
-
value: CodeLanguage.ARDUINO,
|
|
534
|
-
label: 'Arduino',
|
|
535
|
-
mime: 'text/plain',
|
|
536
|
-
mainFilename: 'main.c',
|
|
537
|
-
fileExtension: ['c', 'cpp', 'pde', 'h', 'ino'],
|
|
538
|
-
compilePattern: '',
|
|
539
|
-
runPattern: '',
|
|
540
|
-
templateSourceCode: '',
|
|
541
|
-
hasBuildFile: false,
|
|
542
|
-
executable: '',
|
|
543
|
-
executableVersion: '',
|
|
544
|
-
monacoKey: 'c',
|
|
545
|
-
codeMirrorKey: 'c',
|
|
546
|
-
highlightJsKey: 'c',
|
|
547
|
-
},
|
|
548
|
-
[CodeLanguage.HTML]: {
|
|
549
|
-
value: CodeLanguage.HTML,
|
|
550
|
-
label: 'HTML',
|
|
551
|
-
mime: 'text/HTML',
|
|
552
|
-
mainFilename: 'index.html',
|
|
553
|
-
fileExtension: ['html'],
|
|
554
|
-
compilePattern: '',
|
|
555
|
-
runPattern: '',
|
|
556
|
-
templateSourceCode: '',
|
|
557
|
-
hasBuildFile: false,
|
|
558
|
-
executable: '',
|
|
559
|
-
executableVersion: '',
|
|
560
|
-
monacoKey: 'html',
|
|
561
|
-
codeMirrorKey: 'html',
|
|
562
|
-
highlightJsKey: 'xml',
|
|
563
|
-
},
|
|
564
|
-
[CodeLanguage.BASH]: {
|
|
565
|
-
value: CodeLanguage.BASH,
|
|
566
|
-
label: 'Bash',
|
|
567
|
-
mime: 'text/plain',
|
|
568
|
-
mainFilename: 'main.sh',
|
|
569
|
-
fileExtension: ['sh', 'bash'],
|
|
570
|
-
compilePattern: '',
|
|
571
|
-
runPattern: '',
|
|
572
|
-
templateSourceCode: '#!/bin/bash\necho "Hello World"\n',
|
|
573
|
-
hasBuildFile: false,
|
|
574
|
-
executable: 'bash',
|
|
575
|
-
executableVersion: '',
|
|
576
|
-
monacoKey: 'shell',
|
|
577
|
-
codeMirrorKey: 'shell',
|
|
578
|
-
highlightJsKey: 'bash',
|
|
579
|
-
},
|
|
580
|
-
};
|
|
581
|
-
export const PAGE_SIZES = ['32', '64', '128', '256', '512'];
|
|
582
|
-
export const PALLETE = {
|
|
583
|
-
vivos: [
|
|
584
|
-
{ color: '#FF0000', title: 'Rojo' },
|
|
585
|
-
{ color: '#FF5900', title: 'Rojo - Naranja' },
|
|
586
|
-
{ color: '#FF8600', title: 'Naranja' },
|
|
587
|
-
{ color: '#FFBF00', title: 'Ámbar' },
|
|
588
|
-
{ color: '#FFFF00', title: 'Amarillo' },
|
|
589
|
-
{ color: '#A6FF00', title: 'Lima o Verde limon' },
|
|
590
|
-
{ color: '#00FF8C', title: 'Verde puro' },
|
|
591
|
-
{ color: '#00FF8C', title: 'Verde cian' },
|
|
592
|
-
{ color: '#00FFFF', title: 'Cian' },
|
|
593
|
-
{ color: '#0099FF', title: 'Cerúleo o Azur' },
|
|
594
|
-
{ color: '#0000FF', title: 'Azul' },
|
|
595
|
-
{ color: '#9F00FF', title: 'Violeta' },
|
|
596
|
-
{ color: '#FF00FF', title: 'Magenta' },
|
|
597
|
-
{ color: '#FF0099', title: 'Fucsia' },
|
|
598
|
-
],
|
|
599
|
-
oscuros: [
|
|
600
|
-
{ color: '#880000', title: 'Granate' },
|
|
601
|
-
{ color: '#882F00', title: 'Caoba o Rojo indio' },
|
|
602
|
-
{ color: '#884700', title: 'Marrón o Pardo' },
|
|
603
|
-
{ color: '#886600', title: 'Marrón dorado' },
|
|
604
|
-
{ color: '#888800', title: 'Oliva' },
|
|
605
|
-
{ color: '#588800', title: 'Verde palta' },
|
|
606
|
-
{ color: '#008800', title: 'Verde estándar' },
|
|
607
|
-
{ color: '#008858', title: 'Esmeralda' },
|
|
608
|
-
{ color: '#008888', title: 'Cerceta o Azul verde' },
|
|
609
|
-
{ color: '#005288', title: 'Añil' },
|
|
610
|
-
{ color: '#000080', title: 'Azul marino' },
|
|
611
|
-
{ color: '#880088', title: 'Azul púrpura' },
|
|
612
|
-
{ color: '#880088', title: 'Púrpura o Morado' },
|
|
613
|
-
{ color: '#880047', title: 'Vino' },
|
|
614
|
-
],
|
|
615
|
-
agrisados: [
|
|
616
|
-
{ color: '#BF4040', title: 'Lacre' },
|
|
617
|
-
{ color: '#BF6340', title: 'Cobre' },
|
|
618
|
-
{ color: '#BF8340', title: 'Cnalea o Ocre' },
|
|
619
|
-
{ color: '#BF9F40', title: 'Dorado' },
|
|
620
|
-
{ color: '#BFBF40', title: 'Chartreuse' },
|
|
621
|
-
{ color: '#93BF40', title: 'Verde manzana' },
|
|
622
|
-
{ color: '#93BF40', title: 'Verde bosque' },
|
|
623
|
-
{ color: '#40BF40', title: 'Verde mar' },
|
|
624
|
-
{ color: '#40BFBF', title: 'Turquesa' },
|
|
625
|
-
{ color: '#408CBF', title: 'Azul acero' },
|
|
626
|
-
{ color: '#4040BF', title: 'Zafiro' },
|
|
627
|
-
{ color: '#9340BF', title: 'Amastista' },
|
|
628
|
-
{ color: '#B140BF', title: 'Púrpureo' },
|
|
629
|
-
{ color: '#B140BF', title: 'Fandango' },
|
|
630
|
-
],
|
|
631
|
-
claros: [
|
|
632
|
-
{ color: '#FF7777', title: 'Coral' },
|
|
633
|
-
{ color: '#FF9977', title: 'Salmón' },
|
|
634
|
-
{ color: '#FFB977', title: 'Melón o Durazno' },
|
|
635
|
-
{ color: '#FFDA80', title: 'Crema' },
|
|
636
|
-
{ color: '#FFFF88', title: 'Maíz' },
|
|
637
|
-
{ color: '#CFFF77', title: 'Té verde' },
|
|
638
|
-
{ color: '#77FF77', title: 'Verde claro' },
|
|
639
|
-
{ color: '#77FFAA', title: 'Menta' },
|
|
640
|
-
{ color: '#80FFFF', title: 'Aguamarina' },
|
|
641
|
-
{ color: '#73C7FF', title: 'Celeste' },
|
|
642
|
-
{ color: '#8082FF', title: 'Bígaro o aciano' },
|
|
643
|
-
{ color: '#C977FF', title: 'Lavanda o lila' },
|
|
644
|
-
{ color: '#FF77FF', title: 'Malva' },
|
|
645
|
-
{ color: '#FF77C1', title: 'Rosado' },
|
|
646
|
-
],
|
|
647
|
-
};
|
|
648
|
-
export const UPPERCASE_LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
649
|
-
export const LOWERCASE_LETTERS = UPPERCASE_LETTERS.toLowerCase();
|
|
650
|
-
export const NUMBERS = '012345678';
|
|
651
|
-
export const DEFAULT_JUKI_PROFILE_IMAGE = 'https://juki-judge.s3.us-east-2.amazonaws.com/public/file/5f69783aa7a8e048ef8d0ce2.';
|
|
652
|
-
export const SEPARATOR_TOKEN = '\x1E';
|
|
653
|
-
export const HEADER_JUKI_FORWARDED_HOST = 'x-juki-forwarded-host';
|
|
654
|
-
export const HEADER_JUKI_VISITOR_SESSION_ID = 'x-juki-visitor-session-id';
|
|
655
|
-
export const HEADER_JUKI_METADATA = 'x-juki-metadata';
|
|
656
|
-
export const HEADER_JUKI_SECRET_TOKEN = 'x-juki-secret-token';
|
|
657
|
-
export const HEADER_JUKI_INTERNAL_API_KEY = 'x-juki-internal-api-key';
|
|
658
|
-
export const COOKIE_JUKI_SESSION_ID = 'juki-session-id';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { OrganizationPlan } from '../prisma/enums/index.js';
|
|
2
|
-
export const JUKI_APP_COMPANY_KEY = 'juki-app';
|
|
3
|
-
export const COMPANY_PLAN = {
|
|
4
|
-
[OrganizationPlan.FREE]: {
|
|
5
|
-
value: OrganizationPlan.FREE,
|
|
6
|
-
label: 'free',
|
|
7
|
-
description: 'the resources, runners and compilers, are shared with the juki.app giving priority to juki.app',
|
|
8
|
-
},
|
|
9
|
-
[OrganizationPlan.STANDARD]: {
|
|
10
|
-
value: OrganizationPlan.STANDARD,
|
|
11
|
-
label: 'standard',
|
|
12
|
-
description: 'the resources are dedicated, 1 runner and 1 compiler',
|
|
13
|
-
},
|
|
14
|
-
[OrganizationPlan.PREMIUM]: {
|
|
15
|
-
value: OrganizationPlan.PREMIUM,
|
|
16
|
-
label: 'premium',
|
|
17
|
-
description: 'the resources are dedicated and on demand use with at least 1 runner and 1 compiler',
|
|
18
|
-
},
|
|
19
|
-
[OrganizationPlan.CUSTOM]: {
|
|
20
|
-
value: OrganizationPlan.CUSTOM,
|
|
21
|
-
label: 'custom',
|
|
22
|
-
description: 'the resources are dedicated and on demand use with at least 1 (settable) runner and 1 (settable) compiler',
|
|
23
|
-
},
|
|
24
|
-
};
|