@juki-team/commons 0.1.46 → 0.1.48
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/{types/constants → constants}/commons.d.ts +1 -1
- package/dist/constants/commons.js +648 -0
- package/dist/{types/constants → constants}/contest.d.ts +1 -1
- package/dist/constants/contest.js +28 -0
- package/dist/{types/constants → constants}/course.d.ts +1 -1
- package/dist/constants/course.js +12 -0
- package/dist/constants/date.js +23 -0
- package/dist/constants/email.js +34 -0
- package/dist/{types/constants → constants}/entity.d.ts +1 -1
- package/dist/constants/entity.js +18 -0
- package/dist/{types/constants → constants}/file.d.ts +1 -1
- package/dist/constants/file.js +45 -0
- package/dist/constants/index.d.ts +18 -0
- package/dist/constants/index.js +18 -0
- package/dist/{types/constants → constants}/judge.d.ts +1 -1
- package/dist/constants/judge.js +225 -0
- package/dist/{types/constants → constants}/organization.d.ts +1 -1
- package/dist/constants/organization.js +24 -0
- package/dist/{types/constants → constants}/problem.d.ts +1 -1
- package/dist/constants/problem.js +69 -0
- package/dist/constants/routing.js +7 -0
- package/dist/{types/constants → constants}/services.d.ts +1 -1
- package/dist/constants/services.js +157 -0
- package/dist/{types/constants → constants}/system.d.ts +1 -1
- package/dist/constants/system.js +9 -0
- package/dist/{types/constants → constants}/teams.d.ts +1 -1
- package/dist/constants/teams.js +17 -0
- package/dist/constants/time.js +9 -0
- package/dist/{types/constants → constants}/user.d.ts +2 -2
- package/dist/constants/user.js +40 -0
- package/dist/{types/constants → constants}/websocket.d.ts +7 -3
- package/dist/constants/websocket.js +56 -0
- package/dist/{types/constants → constants}/worksheet.d.ts +1 -1
- package/dist/constants/worksheet.js +66 -0
- package/dist/{types/dto → dto}/class.d.ts +3 -3
- package/dist/dto/class.js +1 -0
- package/dist/{types/dto → dto}/code.d.ts +1 -1
- package/dist/dto/code.js +1 -0
- package/dist/{types/dto → dto}/comments.d.ts +1 -1
- package/dist/dto/comments.js +1 -0
- package/dist/{types/dto → dto}/contest.d.ts +4 -4
- package/dist/dto/contest.js +7 -0
- package/dist/{types/dto → dto}/course.d.ts +4 -4
- package/dist/dto/course.js +1 -0
- package/dist/{types/dto → dto}/entity.d.ts +2 -2
- package/dist/dto/entity.js +5 -0
- package/dist/{types/dto → dto}/excalidraw.d.ts +3 -3
- package/dist/dto/excalidraw.js +1 -0
- package/dist/{types/dto → dto}/file.d.ts +2 -2
- package/dist/dto/file.js +1 -0
- package/dist/dto/image.js +1 -0
- package/dist/dto/index.d.ts +25 -0
- package/dist/dto/index.js +25 -0
- package/dist/{types/dto → dto}/judge.d.ts +1 -1
- package/dist/dto/judge.js +1 -0
- package/dist/{types/dto → dto}/markdown.d.ts +3 -3
- package/dist/dto/markdown.js +1 -0
- package/dist/{types/dto → dto}/mermaid.d.ts +3 -3
- package/dist/dto/mermaid.js +1 -0
- package/dist/{types/dto → dto}/organization.d.ts +3 -3
- package/dist/dto/organization.js +1 -0
- package/dist/{types/dto → dto}/problem.d.ts +3 -3
- package/dist/dto/problem.js +1 -0
- package/dist/{types/dto → dto}/scoreboard.d.ts +2 -2
- package/dist/dto/scoreboard.js +1 -0
- package/dist/{types/dto → dto}/session.d.ts +2 -2
- package/dist/dto/session.js +1 -0
- package/dist/{types/dto → dto}/socket.d.ts +5 -5
- package/dist/dto/socket.js +1 -0
- package/dist/{types/dto → dto}/statistics.d.ts +1 -1
- package/dist/dto/statistics.js +1 -0
- package/dist/{types/dto → dto}/submission.d.ts +3 -3
- package/dist/dto/submission.js +1 -0
- package/dist/{types/dto → dto}/system.d.ts +1 -1
- package/dist/dto/system.js +1 -0
- package/dist/dto/url.js +1 -0
- package/dist/{types/dto → dto}/user.d.ts +3 -3
- package/dist/dto/user.js +1 -0
- package/dist/{types/dto → dto}/virtual-user.d.ts +1 -1
- package/dist/dto/virtual-user.js +1 -0
- package/dist/{types/dto → dto}/worksheet-submissions.d.ts +3 -3
- package/dist/dto/worksheet-submissions.js +1 -0
- package/dist/{types/dto → dto}/worksheet.d.ts +3 -3
- package/dist/dto/worksheet.js +1 -0
- package/dist/{types/helpers → helpers}/class.d.ts +1 -1
- package/dist/helpers/class.js +10 -0
- package/dist/helpers/comments.js +4 -0
- package/dist/{types/helpers → helpers}/commons.d.ts +1 -1
- package/dist/helpers/commons.js +187 -0
- package/dist/{types/helpers → helpers}/contest.d.ts +1 -1
- package/dist/helpers/contest.js +21 -0
- package/dist/helpers/date.js +181 -0
- package/dist/{types/helpers → helpers}/document.d.ts +2 -2
- package/dist/helpers/document.js +51 -0
- package/dist/{types/helpers → helpers}/errors.d.ts +1 -1
- package/dist/helpers/errors.js +17 -0
- package/dist/helpers/file.js +4 -0
- package/dist/helpers/index.d.ts +17 -0
- package/dist/helpers/index.js +17 -0
- package/dist/helpers/interval.js +24 -0
- package/dist/{types/helpers → helpers}/judging.d.ts +1 -1
- package/dist/helpers/judging.js +124 -0
- package/dist/helpers/number.js +2 -0
- package/dist/helpers/object.js +33 -0
- package/dist/{types/helpers → helpers}/responses.d.ts +2 -2
- package/dist/helpers/responses.js +95 -0
- package/dist/{types/helpers → helpers}/socket.d.ts +3 -3
- package/dist/helpers/socket.js +279 -0
- package/dist/{types/helpers → helpers}/time.d.ts +1 -1
- package/dist/helpers/time.js +69 -0
- package/dist/{types/helpers → helpers}/user.d.ts +1 -1
- package/dist/helpers/user.js +14 -0
- package/dist/{types/helpers → helpers}/worksheet.d.ts +1 -1
- package/dist/helpers/worksheet.js +107 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/types/account.js +10 -0
- package/dist/types/{types/class.d.ts → class.d.ts} +2 -2
- package/dist/types/class.js +7 -0
- package/dist/types/comments.js +1 -0
- package/dist/types/{types/commons.d.ts → commons.d.ts} +1 -1
- package/dist/types/commons.js +69 -0
- package/dist/types/{types/contest.d.ts → contest.d.ts} +4 -4
- package/dist/types/contest.js +27 -0
- package/dist/types/{types/course.d.ts → course.d.ts} +1 -1
- package/dist/types/course.js +1 -0
- package/dist/types/entity.js +50 -0
- package/dist/types/{types/excalidraw.d.ts → excalidraw.d.ts} +1 -1
- package/dist/types/excalidraw.js +1 -0
- package/dist/types/{types/file.d.ts → file.d.ts} +2 -2
- package/dist/types/file.js +19 -0
- package/dist/types/{types/group.d.ts → group.d.ts} +1 -1
- package/dist/types/group.js +5 -0
- package/dist/types/index.d.ts +27 -4
- package/dist/types/index.js +27 -0
- package/dist/types/{types/judge.d.ts → judge.d.ts} +2 -2
- package/dist/types/judge.js +49 -0
- package/dist/types/{types/markdown.d.ts → markdown.d.ts} +1 -1
- package/dist/types/markdown.js +1 -0
- package/dist/types/{types/mermaid.d.ts → mermaid.d.ts} +1 -1
- package/dist/types/mermaid.js +1 -0
- package/dist/types/notification.js +8 -0
- package/dist/types/organization.js +14 -0
- package/dist/types/{types/prisma.d.ts → prisma.d.ts} +1 -1
- package/dist/types/prisma.js +106 -0
- package/dist/types/{types/problems.d.ts → problems.d.ts} +3 -3
- package/dist/types/problems.js +28 -0
- package/dist/types/scoreboard.js +1 -0
- package/dist/types/{types/services.d.ts → services.d.ts} +1 -1
- package/dist/types/services.js +152 -0
- package/dist/types/{types/sheet.d.ts → sheet.d.ts} +2 -2
- package/dist/types/sheet.js +16 -0
- package/dist/types/{types/socket.d.ts → socket.d.ts} +3 -2
- package/dist/types/socket.js +76 -0
- package/dist/types/submission.js +1 -0
- package/dist/types/system.js +1 -0
- package/dist/types/{types/teams.d.ts → teams.d.ts} +2 -2
- package/dist/types/teams.js +1 -0
- package/dist/types/{types/users.d.ts → users.d.ts} +2 -2
- package/dist/types/users.js +23 -0
- package/dist/types/virtual-user.js +8 -0
- package/dist/types/{types/worksheet.d.ts → worksheet.d.ts} +3 -3
- package/dist/types/worksheet.js +11 -0
- package/package.json +8 -11
- package/dist/cjs/index.cjs +0 -3695
- package/dist/esm/index.js +0 -3415
- package/dist/types/constants/index.d.ts +0 -18
- package/dist/types/dto/index.d.ts +0 -25
- package/dist/types/helpers/index.d.ts +0 -17
- package/dist/types/types/index.d.ts +0 -27
- /package/dist/{types/constants → constants}/date.d.ts +0 -0
- /package/dist/{types/constants → constants}/email.d.ts +0 -0
- /package/dist/{types/constants → constants}/routing.d.ts +0 -0
- /package/dist/{types/constants → constants}/time.d.ts +0 -0
- /package/dist/{types/dto → dto}/image.d.ts +0 -0
- /package/dist/{types/dto → dto}/url.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/comments.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/date.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/file.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/interval.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/number.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/object.d.ts +0 -0
- /package/dist/types/{types/account.d.ts → account.d.ts} +0 -0
- /package/dist/types/{types/comments.d.ts → comments.d.ts} +0 -0
- /package/dist/types/{types/entity.d.ts → entity.d.ts} +0 -0
- /package/dist/types/{types/notification.d.ts → notification.d.ts} +0 -0
- /package/dist/types/{types/organization.d.ts → organization.d.ts} +0 -0
- /package/dist/types/{types/scoreboard.d.ts → scoreboard.d.ts} +0 -0
- /package/dist/types/{types/submission.d.ts → submission.d.ts} +0 -0
- /package/dist/types/{types/system.d.ts → system.d.ts} +0 -0
- /package/dist/types/{types/virtual-user.d.ts → virtual-user.d.ts} +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subscriptions of the client. With the TOPIC channels they are not sent to the server anymore:
|
|
3
|
+
* they only say which channel the client attaches (`getChannelOfWebSocketSubscribeEvent`) and the dispatch key.
|
|
4
|
+
*/
|
|
5
|
+
export var WebSocketSubscriptionEvent;
|
|
6
|
+
(function (WebSocketSubscriptionEvent) {
|
|
7
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_CODE_RUN_STATUS"] = "SUBSCRIBE_CODE_RUN_STATUS";
|
|
8
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_CODE_RUN_STATUS"] = "UNSUBSCRIBE_CODE_RUN_STATUS";
|
|
9
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_SUBMISSION_RUN_STATUS"] = "SUBSCRIBE_SUBMISSION_RUN_STATUS";
|
|
10
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_SUBMISSION_RUN_STATUS"] = "UNSUBSCRIBE_SUBMISSION_RUN_STATUS";
|
|
11
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_GET_DATA"] = "SUBSCRIBE_GET_DATA";
|
|
12
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_GET_DATA"] = "SUBSCRIBE_GET_DATA";
|
|
13
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_PROBLEM_CRAWLED"] = "SUBSCRIBE_PROBLEM_CRAWLED";
|
|
14
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_PROBLEM_CRAWLED"] = "UNSUBSCRIBE_PROBLEM_CRAWLED";
|
|
15
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_SUBMISSIONS_CRAWL"] = "SUBSCRIBE_SUBMISSIONS_CRAWL";
|
|
16
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_SUBMISSIONS_CRAWL"] = "UNSUBSCRIBE_SUBMISSIONS_CRAWL";
|
|
17
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_CONTEST_CHANGES"] = "SUBSCRIBE_CONTEST_CHANGES";
|
|
18
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_CONTEST_CHANGES"] = "UNSUBSCRIBE_CONTEST_CHANGES";
|
|
19
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_USER_NOTIFICATION"] = "SUBSCRIBE_USER_NOTIFICATION";
|
|
20
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_USER_NOTIFICATION"] = "UNSUBSCRIBE_USER_NOTIFICATION";
|
|
21
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_SUBMISSIONS_JUDGING"] = "SUBSCRIBE_SUBMISSIONS_JUDGING";
|
|
22
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_SUBMISSIONS_JUDGING"] = "UNSUBSCRIBE_SUBMISSIONS_JUDGING";
|
|
23
|
+
})(WebSocketSubscriptionEvent || (WebSocketSubscriptionEvent = {}));
|
|
24
|
+
export var WebSocketResponseEvent;
|
|
25
|
+
(function (WebSocketResponseEvent) {
|
|
26
|
+
WebSocketResponseEvent["CODE_RUN_STATUS"] = "CODE_RUN_STATUS";
|
|
27
|
+
WebSocketResponseEvent["SUBMISSION_RUN_STATUS"] = "SUBMISSION_RUN_STATUS";
|
|
28
|
+
WebSocketResponseEvent["USER_MESSAGE"] = "USER_MESSAGE";
|
|
29
|
+
WebSocketResponseEvent["SEND_DATA_"] = "SEND_DATA_";
|
|
30
|
+
WebSocketResponseEvent["SEND_DATA_ECS_TASK_DEFINITIONS_LIST"] = "SEND_DATA_ECS_TASK_DEFINITIONS_LIST";
|
|
31
|
+
WebSocketResponseEvent["SEND_DATA_ECS_TASKS_LIST"] = "SEND_DATA_ECS_TASKS_LIST";
|
|
32
|
+
WebSocketResponseEvent["SEND_DATA_EC2_INSTANCES_LIST"] = "SEND_DATA_EC2_INSTANCES_LIST";
|
|
33
|
+
WebSocketResponseEvent["SEND_DATA_SSM_SESSIONS_LIST"] = "SEND_DATA_SSM_SESSIONS_LIST";
|
|
34
|
+
WebSocketResponseEvent["SEND_DATA_RUN_COMMAND"] = "SEND_DATA_RUN_COMMAND";
|
|
35
|
+
WebSocketResponseEvent["PROBLEM_CRAWLED"] = "PROBLEM_CRAWLED";
|
|
36
|
+
WebSocketResponseEvent["SUBMISSIONS_CRAWL"] = "SUBMISSIONS_CRAWL";
|
|
37
|
+
WebSocketResponseEvent["CONTEST_CHANGES"] = "CONTEST_CHANGES";
|
|
38
|
+
WebSocketResponseEvent["USER_NOTIFICATION_"] = "USER_NOTIFICATION_";
|
|
39
|
+
WebSocketResponseEvent["USER_NOTIFICATION_SUBMISSION"] = "USER_NOTIFICATION_SUBMISSION";
|
|
40
|
+
WebSocketResponseEvent["USER_NOTIFICATION_CONTEST_CLARIFICATION"] = "USER_NOTIFICATION_CONTEST_CLARIFICATION";
|
|
41
|
+
WebSocketResponseEvent["SUBMISSION_JUDGING"] = "SUBMISSION_JUDGING";
|
|
42
|
+
})(WebSocketResponseEvent || (WebSocketResponseEvent = {}));
|
|
43
|
+
/**
|
|
44
|
+
* Roles of a contest, with the same names as the contest members in the DB.
|
|
45
|
+
* Each role has its own Ably channel: `contest:{contestKey}:{role}` (see `CHANNEL_CONTEST`).
|
|
46
|
+
* The inclusions follow `getContestAccessPermissions`:
|
|
47
|
+
* spectators ⊇ managers ⊇ administrators, spectators ⊇ participants, spectators ⊇ guests
|
|
48
|
+
*/
|
|
49
|
+
export var ContestChannelRole;
|
|
50
|
+
(function (ContestChannelRole) {
|
|
51
|
+
ContestChannelRole["ADMINISTRATORS"] = "administrators";
|
|
52
|
+
ContestChannelRole["MANAGERS"] = "managers";
|
|
53
|
+
ContestChannelRole["PARTICIPANTS"] = "participants";
|
|
54
|
+
ContestChannelRole["GUESTS"] = "guests";
|
|
55
|
+
ContestChannelRole["SPECTATORS"] = "spectators";
|
|
56
|
+
})(ContestChannelRole || (ContestChannelRole = {}));
|
|
57
|
+
/**
|
|
58
|
+
* Roles of a problem, the ones computed by `getProblemAccessPermissions` (backend).
|
|
59
|
+
* Each role has its own Ably channel: `problem:{problemKey}:{role}` (see `CHANNEL_PROBLEM`).
|
|
60
|
+
*/
|
|
61
|
+
export var ProblemChannelRole;
|
|
62
|
+
(function (ProblemChannelRole) {
|
|
63
|
+
ProblemChannelRole["ADMINISTRATORS"] = "administrators";
|
|
64
|
+
ProblemChannelRole["MANAGERS"] = "managers";
|
|
65
|
+
ProblemChannelRole["SPECTATORS"] = "spectators";
|
|
66
|
+
})(ProblemChannelRole || (ProblemChannelRole = {}));
|
|
67
|
+
/**
|
|
68
|
+
* Roles of the public channels of a user: `user:{userKey}:{role}` (see `CHANNEL_USER_ROLE`), by its public key
|
|
69
|
+
* (`getUserKey(nickname, organizationKey)`) like problems and contests.
|
|
70
|
+
* There are no per-user permissions: `spectators` is everyone who can list the submissions of the user.
|
|
71
|
+
* The private channel of the user is `user:{userId}` (see `CHANNEL_USER`).
|
|
72
|
+
*/
|
|
73
|
+
export var UserChannelRole;
|
|
74
|
+
(function (UserChannelRole) {
|
|
75
|
+
UserChannelRole["SPECTATORS"] = "spectators";
|
|
76
|
+
})(UserChannelRole || (UserChannelRole = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MemberRole, AssignmentType, TeamStatus, UserTeamStatus } from './prisma';
|
|
2
|
-
import { UserBasic, UserProfile } from './users';
|
|
1
|
+
import { MemberRole, AssignmentType, TeamStatus, UserTeamStatus } from './prisma.js';
|
|
2
|
+
import { UserBasic, UserProfile } from './users.js';
|
|
3
3
|
export interface TeamMember {
|
|
4
4
|
user: UserProfile;
|
|
5
5
|
role: MemberRole;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProfileSetting } from './account';
|
|
2
|
-
import { CourseRole, Language, SystemRole, TeamRole, Theme, UserRole } from './prisma';
|
|
1
|
+
import { ProfileSetting } from './account.js';
|
|
2
|
+
import { CourseRole, Language, SystemRole, TeamRole, Theme, UserRole } from './prisma.js';
|
|
3
3
|
export interface UserBasicInfo {
|
|
4
4
|
nickname: string;
|
|
5
5
|
imageUrl: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ProfileSetting } from './account.js';
|
|
2
|
+
export var DataViewMode;
|
|
3
|
+
(function (DataViewMode) {
|
|
4
|
+
DataViewMode["CARDS"] = "CARDS";
|
|
5
|
+
DataViewMode["ROWS"] = "ROWS";
|
|
6
|
+
})(DataViewMode || (DataViewMode = {}));
|
|
7
|
+
export var MenuViewMode;
|
|
8
|
+
(function (MenuViewMode) {
|
|
9
|
+
MenuViewMode["HORIZONTAL"] = "HORIZONTAL";
|
|
10
|
+
MenuViewMode["VERTICAL"] = "VERTICAL";
|
|
11
|
+
})(MenuViewMode || (MenuViewMode = {}));
|
|
12
|
+
export var Role;
|
|
13
|
+
(function (Role) {
|
|
14
|
+
Role["SUPER_ADMIN"] = "SUPER_ADMIN";
|
|
15
|
+
Role["ADMIN"] = "ADMIN";
|
|
16
|
+
Role["MASTER"] = "MASTER";
|
|
17
|
+
Role["MANAGER"] = "MANAGER";
|
|
18
|
+
Role["CREATOR"] = "CREATOR";
|
|
19
|
+
Role["REGULAR"] = "REGULAR";
|
|
20
|
+
Role["LIMITED"] = "LIMITED";
|
|
21
|
+
Role["GUEST"] = "GUEST";
|
|
22
|
+
Role["RESTRICTED"] = "RESTRICTED";
|
|
23
|
+
})(Role || (Role = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var WorkingIn;
|
|
2
|
+
(function (WorkingIn) {
|
|
3
|
+
WorkingIn["NOTHING"] = "NOTHING";
|
|
4
|
+
WorkingIn["SEND_SUBMISSION"] = "SEND_SUBMISSION";
|
|
5
|
+
WorkingIn["TRACKING_SUBMISSION"] = "TRACKING_SUBMISSION";
|
|
6
|
+
WorkingIn["CRAWLING_LANGUAGES"] = "CRAWLING_LANGUAGES";
|
|
7
|
+
WorkingIn["CRAWLING_PROBLEM_DATA"] = "CRAWLING_PROBLEM_DATA";
|
|
8
|
+
})(WorkingIn || (WorkingIn = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EntityMembers } from './entity';
|
|
2
|
-
import { Theme } from './prisma';
|
|
3
|
-
import { BasicWorksheet, BodyWorksheet, NewPageSheet } from './sheet';
|
|
1
|
+
import { EntityMembers } from './entity.js';
|
|
2
|
+
import { Theme } from './prisma.js';
|
|
3
|
+
import { BasicWorksheet, BodyWorksheet, NewPageSheet } from './sheet.js';
|
|
4
4
|
export declare enum AspectRatio {
|
|
5
5
|
RATIO_21_9 = "21:9",
|
|
6
6
|
RATIO_20_9 = "20:9",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export var AspectRatio;
|
|
2
|
+
(function (AspectRatio) {
|
|
3
|
+
AspectRatio["RATIO_21_9"] = "21:9";
|
|
4
|
+
AspectRatio["RATIO_20_9"] = "20:9";
|
|
5
|
+
AspectRatio["RATIO_16_9"] = "16:9";
|
|
6
|
+
AspectRatio["RATIO_16_10"] = "16:10";
|
|
7
|
+
AspectRatio["RATIO_3_2"] = "3:2";
|
|
8
|
+
AspectRatio["RATIO_4_3"] = "4:3";
|
|
9
|
+
AspectRatio["RATIO_5_4"] = "5:4";
|
|
10
|
+
AspectRatio["RATIO_1_1"] = "1:1";
|
|
11
|
+
})(AspectRatio || (AspectRatio = {}));
|
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juki-team/commons",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.48",
|
|
4
4
|
"author": "juki-team",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"main": "dist/
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"sideEffects": false,
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
-
"types": "./dist/
|
|
13
|
-
"import": "./dist/
|
|
14
|
-
"require": "./dist/cjs/index.cjs"
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
15
14
|
}
|
|
16
15
|
},
|
|
17
16
|
"files": [
|
|
@@ -27,8 +26,6 @@
|
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
28
|
"prettier": "^3.8.1",
|
|
30
|
-
"rollup": "^4.57.1",
|
|
31
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
32
29
|
"typedoc": "^0.28.16",
|
|
33
30
|
"typescript": "^6.0.3"
|
|
34
31
|
},
|
|
@@ -37,8 +34,8 @@
|
|
|
37
34
|
},
|
|
38
35
|
"scripts": {
|
|
39
36
|
"docs": "typedoc src/index.ts",
|
|
40
|
-
"watch": "
|
|
41
|
-
"build": "rm -rf docs && rm -rf dist &&
|
|
37
|
+
"watch": "tsc --watch",
|
|
38
|
+
"build": "rm -rf docs && rm -rf dist && tsc && pnpm run docs",
|
|
42
39
|
"push-commit": "f() { git add -A && git commit -m \"${1:-chore}\" && pnpm push; }; f",
|
|
43
40
|
"push": "f() { pnpm version patch --no-git-tag-version --no-git-checks && pnpm build && pnpm publish --tag release-0.1 --no-git-checks && version=\"v$(node -p \"require('./package.json').version\")\" && git add -A && git commit -m $version && git tag -a $version -m $version && git push origin v0.1.x --follow-tags; }; f"
|
|
44
41
|
}
|