Skip to content

Commit 628165a

Browse files
authored
Merge pull request #101 from BinaryStudioAcademy/task/thjs-54-backend-package-structure-improvements
thjs-54: Package structure improvements
2 parents bbd5b4c + d424fae commit 628165a

File tree

106 files changed

+363
-354
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+363
-354
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export {
22
CommentPayloadKey,
3-
CommentsApiPath } from 'shared/src/packages/comment/comment';
3+
CommentsApiPath
4+
} from 'shared/src/packages/comment/comment.js';

client/src/pages/thread/components/add-comment/add-comment.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Button } from '~/libs/components/button/button.jsx';
44
import { Input } from '~/libs/components/input/input.jsx';
55
import { ButtonType } from '~/libs/enums/enums.js';
66
import { useAppForm, useCallback } from '~/libs/hooks/hooks.js';
7-
import { CommentPayloadKey } from '~/packages/comment/libs/enums/enums.js';
7+
import { CommentPayloadKey } from '~/packages/comment/comment.js';
88

99
import { DEFAULT_ADD_COMMENT_PAYLOAD } from './libs/constants/constants.js';
1010

client/src/pages/thread/components/add-comment/libs/constants/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommentPayloadKey } from '~/packages/comment/libs/enums/enums.js';
1+
import { CommentPayloadKey } from '~/packages/comment/comment.js';
22

33
const DEFAULT_ADD_COMMENT_PAYLOAD = {
44
[CommentPayloadKey.BODY]: ''

server/src/db/seed-data/users-seed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { encryptSync } from '#libs/helpers/helpers.js';
1+
import { encryptSync } from '#packages/auth/helpers/helpers.js';
22

33
const hash = password => encryptSync(password);
44

server/src/libs/enums/api/api.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

server/src/libs/enums/comment/comment.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

server/src/libs/enums/enums.js

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
export {
22
ApiPath,
3-
AuthApiPath,
4-
CommentsApiPath,
5-
ControllerHook,
6-
ImagesApiPath,
7-
PasswordApiPath,
8-
PostsApiPath,
9-
UsersApiPath
10-
} from './api/api.js';
11-
export { CommentPayloadKey } from './comment/comment.js';
12-
export { ExceptionMessage, ExceptionName } from './exception/exception.js';
13-
export { ImagePayloadKey } from './image/image.js';
14-
export { NotificationSocketEvent } from './notifications/notifications.js';
15-
export { FilterUserMode, PostPayloadKey } from './post/post.js';
16-
export { SocketEvent, SocketNamespace } from './socket/socket.js';
17-
export { UserPayloadKey } from './user/user.js';
18-
export { AppEnvironment } from 'shared/src/libs/enums/enums.js';
3+
AppEnvironment,
4+
ExceptionMessage,
5+
ExceptionName
6+
} from 'shared/src/libs/enums/enums.js';

server/src/libs/enums/exception/exception.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

server/src/libs/enums/image/image.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

server/src/libs/enums/notifications/notifications.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)