From 8465f4b9380a2e4d4fc0604c0958370a7a9111dd Mon Sep 17 00:00:00 2001 From: Arnau Date: Fri, 2 Aug 2024 11:59:39 +0200 Subject: [PATCH] feat: rename all files and folders from snake case to kebab case --- graphql.schema.json | 624 +++++++++--------- graphql_codegen.yml | 2 +- ...up_extensions.d.ts => yup-extensions.d.ts} | 0 ...onstructor_type.ts => constructor-type.ts} | 0 .../{data_model.ts => data-model.ts} | 0 ...est_data_source.ts => rest-data-source.ts} | 0 .../rest/{rest_client.ts => rest-client.ts} | 0 ...ss_transformer.ts => class-transformer.ts} | 4 +- .../{yup_extensions.ts => yup-extensions.ts} | 0 src/common/utils/zustand.tsx | 6 +- ...{page_data_model.ts => page-data-model.ts} | 4 +- ...service.ts => json-placeholder-service.ts} | 8 +- .../{mock_service.ts => mock-service.ts} | 8 +- .../interfaces/{env_vars.ts => env-vars.ts} | 0 .../models/{base_error.ts => base-error.ts} | 0 .../models/{env_vars.ts => env-vars.ts} | 2 +- src/core/app/domain/models/page.ts | 2 +- ...reate_post.graphql => create-post.graphql} | 0 ...{post_data_model.ts => post-data-model.ts} | 4 +- ...osts_repository.ts => posts-repository.ts} | 20 +- ...osts_repository.ts => posts-repository.ts} | 4 +- ...ut_model.ts => create-post-input-model.ts} | 2 +- src/core/posts/domain/models/post.ts | 2 +- .../create-post-use-case.ts} | 6 +- .../get-posts-use-case.ts} | 6 +- .../{base_user.graphql => base-user.graphql} | 0 .../users/data/graphql/queries/users.graphql | 2 +- ...{user_data_model.ts => user-data-model.ts} | 4 +- ...sers_repository.ts => users-repository.ts} | 14 +- ...sers_repository.ts => users-repository.ts} | 0 src/core/users/domain/models/user.ts | 2 +- .../get-users-use-case.ts} | 8 +- src/main.tsx | 18 +- .../app-error-boundary.css.ts} | 0 .../app-error-boundary.tsx} | 6 +- .../base-page.css.ts} | 0 .../base_page.tsx => base-page/base-page.tsx} | 4 +- src/ui/components/button/button.tsx | 2 +- .../{error_pages => error-pages}/404.tsx | 0 .../{error_pages => error-pages}/500.tsx | 0 .../icon-button.css.ts} | 0 .../icon-button.tsx} | 4 +- .../logging-modal.css.ts} | 0 .../logging-modal.tsx} | 2 +- .../main-loader.css.ts} | 0 .../main-loader.tsx} | 6 +- .../simple-card.css.ts} | 0 .../simple-card.tsx} | 6 +- .../suspense-main-loader.tsx} | 2 +- src/ui/containers/modal/modal.tsx | 4 +- .../home-page.css.ts} | 0 .../home_page.tsx => home-page/home-page.tsx} | 6 +- .../providers/home-provider.ts} | 2 +- .../view-models/home-state.ts} | 0 .../{root_page.css.ts => root-page.css.ts} | 0 .../root/{root_page.tsx => root-page.tsx} | 12 +- .../create-post-page.css.ts} | 0 .../create-post-page.tsx} | 14 +- .../containers/post-results.tsx} | 4 +- .../posts-list-page.tsx} | 6 +- .../providers/posts.provider.tsx | 11 +- .../view-models/posts-state.ts} | 0 .../user-modal.css.ts} | 0 .../user-modal.tsx} | 2 +- .../providers/users-list.provider.ts} | 12 +- .../users-list-page.tsx} | 8 +- .../view-models/users-list-state.ts} | 0 src/ui/providers/ui.provider.ts | 2 +- src/ui/providers/user.provider.ts | 2 +- ...ware.hook.tsx => auth-middleware.hook.tsx} | 6 +- ...te_middleware.tsx => route-middleware.tsx} | 2 +- src/ui/router/routes.tsx | 26 +- .../{view_models => view-models}/cypress.ts | 0 .../ui_state.ts => view-models/ui-state.ts} | 0 .../user-state.ts} | 0 .../{create_post.cy.ts => create-post.cy.ts} | 2 +- tests/e2e/features/users.cy.ts | 2 +- ...ql_test_utils.ts => graphql-test-utils.ts} | 0 78 files changed, 440 insertions(+), 467 deletions(-) rename src/common/@types/{yup_extensions.d.ts => yup-extensions.d.ts} (100%) rename src/common/interfaces/{constructor_type.ts => constructor-type.ts} (100%) rename src/common/interfaces/{data_model.ts => data-model.ts} (100%) rename src/common/interfaces/{rest_data_source.ts => rest-data-source.ts} (100%) rename src/common/network/rest/{rest_client.ts => rest-client.ts} (100%) rename src/common/utils/{class_transformer.ts => class-transformer.ts} (85%) rename src/common/utils/{yup_extensions.ts => yup-extensions.ts} (100%) rename src/core/app/data/models/{page_data_model.ts => page-data-model.ts} (93%) rename src/core/app/data/services/{json_placeholder_service.ts => json-placeholder-service.ts} (88%) rename src/core/app/data/services/{mock_service.ts => mock-service.ts} (93%) rename src/core/app/domain/interfaces/{env_vars.ts => env-vars.ts} (100%) rename src/core/app/domain/models/{base_error.ts => base-error.ts} (100%) rename src/core/app/domain/models/{env_vars.ts => env-vars.ts} (93%) rename src/core/posts/data/graphql/mutations/{create_post.graphql => create-post.graphql} (100%) rename src/core/posts/data/models/{post_data_model.ts => post-data-model.ts} (86%) rename src/core/posts/data/repositories/{posts_repository.ts => posts-repository.ts} (91%) rename src/core/posts/domain/interfaces/{posts_repository.ts => posts-repository.ts} (90%) rename src/core/posts/domain/models/{create_post_input_model.ts => create-post-input-model.ts} (93%) rename src/core/posts/domain/{use_cases/create_post_use_case.ts => use-cases/create-post-use-case.ts} (95%) rename src/core/posts/domain/{use_cases/get_posts_use_case.ts => use-cases/get-posts-use-case.ts} (95%) rename src/core/users/data/graphql/fragments/{base_user.graphql => base-user.graphql} (100%) rename src/core/users/data/models/{user_data_model.ts => user-data-model.ts} (85%) rename src/core/users/data/repositories/{users_repository.ts => users-repository.ts} (95%) rename src/core/users/domain/interfaces/{users_repository.ts => users-repository.ts} (100%) rename src/core/users/domain/{use_cases/get_users_use_case.ts => use-cases/get-users-use-case.ts} (95%) rename src/ui/components/{app_error_boundary/app_error_boundary.css.ts => app-error-boundary/app-error-boundary.css.ts} (100%) rename src/ui/components/{app_error_boundary/app_error_boundary.tsx => app-error-boundary/app-error-boundary.tsx} (95%) rename src/ui/components/{base_page/base_page.css.ts => base-page/base-page.css.ts} (100%) rename src/ui/components/{base_page/base_page.tsx => base-page/base-page.tsx} (70%) rename src/ui/components/{error_pages => error-pages}/404.tsx (100%) rename src/ui/components/{error_pages => error-pages}/500.tsx (100%) rename src/ui/components/{icon_button/icon_button.css.ts => icon-button/icon-button.css.ts} (100%) rename src/ui/components/{icon_button/icon_button.tsx => icon-button/icon-button.tsx} (88%) rename src/ui/components/{logging_modal/logging_modal.css.ts => logging-modal/logging-modal.css.ts} (100%) rename src/ui/components/{logging_modal/logging_modal.tsx => logging-modal/logging-modal.tsx} (86%) rename src/ui/components/{main_loader/main_loader.css.ts => main-loader/main-loader.css.ts} (100%) rename src/ui/components/{main_loader/main_loader.tsx => main-loader/main-loader.tsx} (86%) rename src/ui/components/{simple_card/simple_card.css.ts => simple-card/simple-card.css.ts} (100%) rename src/ui/components/{simple_card/simple_card.tsx => simple-card/simple-card.tsx} (87%) rename src/ui/components/{suspense_main_loader/suspense_main_loader.tsx => suspense-main-loader/suspense-main-loader.tsx} (80%) rename src/ui/features/home/views/{home_page/home_page.css.ts => home-page/home-page.css.ts} (100%) rename src/ui/features/home/views/{home_page/home_page.tsx => home-page/home-page.tsx} (96%) rename src/ui/features/home/views/{home_page/providers/home_provider.ts => home-page/providers/home-provider.ts} (95%) rename src/ui/features/home/views/{home_page/view_models/home_state.ts => home-page/view-models/home-state.ts} (100%) rename src/ui/features/misc/root/{root_page.css.ts => root-page.css.ts} (100%) rename src/ui/features/misc/root/{root_page.tsx => root-page.tsx} (91%) rename src/ui/features/posts/views/{create_post_page/create_post_page.css.ts => create-post-page/create-post-page.css.ts} (100%) rename src/ui/features/posts/views/{create_post_page/create_post_page.tsx => create-post-page/create-post-page.tsx} (97%) rename src/ui/features/posts/views/{posts_list_page/containers/post_results.tsx => posts-list-page/containers/post-results.tsx} (87%) rename src/ui/features/posts/views/{posts_list_page/posts_list_page.tsx => posts-list-page/posts-list-page.tsx} (68%) rename src/ui/features/posts/views/{posts_list_page => posts-list-page}/providers/posts.provider.tsx (85%) rename src/ui/features/posts/views/{posts_list_page/view_models/posts_state.ts => posts-list-page/view-models/posts-state.ts} (100%) rename src/ui/features/users/components/{user_modal/user_modal.css.ts => user-modal/user-modal.css.ts} (100%) rename src/ui/features/users/components/{user_modal/user_modal.tsx => user-modal/user-modal.tsx} (94%) rename src/ui/features/users/views/{users_list_page/providers/users_list.provider.ts => users-list-page/providers/users-list.provider.ts} (94%) rename src/ui/features/users/views/{users_list_page/users_list_page.tsx => users-list-page/users-list-page.tsx} (77%) rename src/ui/features/users/views/{users_list_page/view_models/users_list_state.ts => users-list-page/view-models/users-list-state.ts} (100%) rename src/ui/router/middlewares/{auth_middleware.hook.tsx => auth-middleware.hook.tsx} (82%) rename src/ui/router/{route_middleware.tsx => route-middleware.tsx} (98%) rename src/ui/{view_models => view-models}/cypress.ts (100%) rename src/ui/{view_models/ui_state.ts => view-models/ui-state.ts} (100%) rename src/ui/{view_models/user_state.ts => view-models/user-state.ts} (100%) rename tests/e2e/features/{create_post.cy.ts => create-post.cy.ts} (88%) rename tests/e2e/utils/{graphql_test_utils.ts => graphql-test-utils.ts} (100%) diff --git a/graphql.schema.json b/graphql.schema.json index b5d233f..dbead85 100644 --- a/graphql.schema.json +++ b/graphql.schema.json @@ -11,11 +11,11 @@ { "kind": "OBJECT", "name": "Address", - "description": "", + "description": null, "fields": [ { "name": "city", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -27,7 +27,7 @@ }, { "name": "geo", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -39,7 +39,7 @@ }, { "name": "street", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -51,7 +51,7 @@ }, { "name": "suite", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -63,7 +63,7 @@ }, { "name": "zipcode", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -82,12 +82,12 @@ { "kind": "INPUT_OBJECT", "name": "AddressInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "city", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -99,7 +99,7 @@ }, { "name": "geo", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "GeoInput", @@ -111,7 +111,7 @@ }, { "name": "street", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -123,7 +123,7 @@ }, { "name": "suite", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -135,7 +135,7 @@ }, { "name": "zipcode", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -153,11 +153,11 @@ { "kind": "OBJECT", "name": "Album", - "description": "", + "description": null, "fields": [ { "name": "id", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -169,11 +169,11 @@ }, { "name": "photos", - "description": "", + "description": null, "args": [ { "name": "options", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "PageQueryOptions", @@ -194,7 +194,7 @@ }, { "name": "title", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -206,7 +206,7 @@ }, { "name": "user", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -225,11 +225,11 @@ { "kind": "OBJECT", "name": "AlbumsPage", - "description": "", + "description": null, "fields": [ { "name": "data", - "description": "", + "description": null, "args": [], "type": { "kind": "LIST", @@ -245,7 +245,7 @@ }, { "name": "links", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -257,7 +257,7 @@ }, { "name": "meta", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -283,37 +283,14 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "ENUM", - "name": "CacheControlScope", - "description": "", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PRIVATE", - "description": "", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PUBLIC", - "description": "", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, { "kind": "OBJECT", "name": "Comment", - "description": "", + "description": null, "fields": [ { "name": "body", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -325,7 +302,7 @@ }, { "name": "email", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -337,7 +314,7 @@ }, { "name": "id", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -349,7 +326,7 @@ }, { "name": "name", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -361,7 +338,7 @@ }, { "name": "post", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -380,11 +357,11 @@ { "kind": "OBJECT", "name": "CommentsPage", - "description": "", + "description": null, "fields": [ { "name": "data", - "description": "", + "description": null, "args": [], "type": { "kind": "LIST", @@ -400,7 +377,7 @@ }, { "name": "links", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -412,7 +389,7 @@ }, { "name": "meta", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -431,11 +408,11 @@ { "kind": "OBJECT", "name": "Company", - "description": "", + "description": null, "fields": [ { "name": "bs", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -447,7 +424,7 @@ }, { "name": "catchPhrase", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -459,7 +436,7 @@ }, { "name": "name", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -478,12 +455,12 @@ { "kind": "INPUT_OBJECT", "name": "CompanyInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "bs", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -495,7 +472,7 @@ }, { "name": "catchPhrase", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -507,7 +484,7 @@ }, { "name": "name", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -525,12 +502,12 @@ { "kind": "INPUT_OBJECT", "name": "CreateAlbumInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "title", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -546,7 +523,7 @@ }, { "name": "userId", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -568,12 +545,12 @@ { "kind": "INPUT_OBJECT", "name": "CreateCommentInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "body", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -589,7 +566,7 @@ }, { "name": "email", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -605,7 +582,7 @@ }, { "name": "name", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -627,12 +604,12 @@ { "kind": "INPUT_OBJECT", "name": "CreatePhotoInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "thumbnailUrl", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -648,7 +625,7 @@ }, { "name": "title", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -664,7 +641,7 @@ }, { "name": "url", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -686,12 +663,12 @@ { "kind": "INPUT_OBJECT", "name": "CreatePostInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "body", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -707,7 +684,7 @@ }, { "name": "title", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -729,12 +706,12 @@ { "kind": "INPUT_OBJECT", "name": "CreateTodoInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "completed", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -750,7 +727,7 @@ }, { "name": "title", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -772,12 +749,12 @@ { "kind": "INPUT_OBJECT", "name": "CreateUserInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "address", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "AddressInput", @@ -789,7 +766,7 @@ }, { "name": "company", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "CompanyInput", @@ -801,7 +778,7 @@ }, { "name": "email", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -817,7 +794,7 @@ }, { "name": "name", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -833,7 +810,7 @@ }, { "name": "phone", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -845,7 +822,7 @@ }, { "name": "username", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -861,7 +838,7 @@ }, { "name": "website", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -889,11 +866,11 @@ { "kind": "OBJECT", "name": "Geo", - "description": "", + "description": null, "fields": [ { "name": "lat", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -905,7 +882,7 @@ }, { "name": "lng", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -924,12 +901,12 @@ { "kind": "INPUT_OBJECT", "name": "GeoInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "lat", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "Float", @@ -941,7 +918,7 @@ }, { "name": "lng", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "Float", @@ -979,11 +956,11 @@ { "kind": "OBJECT", "name": "Mutation", - "description": "", + "description": null, "fields": [ { "name": "_", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -995,11 +972,11 @@ }, { "name": "createAlbum", - "description": "", + "description": null, "args": [ { "name": "input", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1024,11 +1001,11 @@ }, { "name": "createComment", - "description": "", + "description": null, "args": [ { "name": "input", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1053,11 +1030,11 @@ }, { "name": "createPhoto", - "description": "", + "description": null, "args": [ { "name": "input", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1082,11 +1059,11 @@ }, { "name": "createPost", - "description": "", + "description": null, "args": [ { "name": "input", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1111,11 +1088,11 @@ }, { "name": "createTodo", - "description": "", + "description": null, "args": [ { "name": "input", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1140,11 +1117,11 @@ }, { "name": "createUser", - "description": "", + "description": null, "args": [ { "name": "input", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1169,11 +1146,11 @@ }, { "name": "deleteAlbum", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1198,11 +1175,11 @@ }, { "name": "deleteComment", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1227,11 +1204,11 @@ }, { "name": "deletePhoto", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1256,11 +1233,11 @@ }, { "name": "deletePost", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1285,11 +1262,11 @@ }, { "name": "deleteTodo", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1314,11 +1291,11 @@ }, { "name": "deleteUser", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1343,11 +1320,11 @@ }, { "name": "updateAlbum", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1363,7 +1340,7 @@ }, { "name": "input", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1388,11 +1365,11 @@ }, { "name": "updateComment", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1408,7 +1385,7 @@ }, { "name": "input", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1433,11 +1410,11 @@ }, { "name": "updatePhoto", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1453,7 +1430,7 @@ }, { "name": "input", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1478,11 +1455,11 @@ }, { "name": "updatePost", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1498,7 +1475,7 @@ }, { "name": "input", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1523,11 +1500,11 @@ }, { "name": "updateTodo", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1543,7 +1520,7 @@ }, { "name": "input", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1568,11 +1545,11 @@ }, { "name": "updateUser", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1588,7 +1565,7 @@ }, { "name": "input", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -1620,32 +1597,32 @@ { "kind": "ENUM", "name": "OperatorKindEnum", - "description": "", + "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": [ { "name": "GTE", - "description": "", + "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "LIKE", - "description": "", + "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "LTE", - "description": "", + "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "NE", - "description": "", + "description": null, "isDeprecated": false, "deprecationReason": null } @@ -1655,12 +1632,12 @@ { "kind": "INPUT_OBJECT", "name": "OperatorOptions", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "field", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -1672,7 +1649,7 @@ }, { "name": "kind", - "description": "", + "description": null, "type": { "kind": "ENUM", "name": "OperatorKindEnum", @@ -1684,7 +1661,7 @@ }, { "name": "value", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -1702,11 +1679,11 @@ { "kind": "OBJECT", "name": "PageLimitPair", - "description": "", + "description": null, "fields": [ { "name": "limit", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -1718,7 +1695,7 @@ }, { "name": "page", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -1737,11 +1714,11 @@ { "kind": "OBJECT", "name": "PageMetadata", - "description": "", + "description": null, "fields": [ { "name": "totalCount", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -1760,12 +1737,12 @@ { "kind": "INPUT_OBJECT", "name": "PageQueryOptions", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "operators", - "description": "", + "description": null, "type": { "kind": "LIST", "name": null, @@ -1781,7 +1758,7 @@ }, { "name": "paginate", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "PaginateOptions", @@ -1793,7 +1770,7 @@ }, { "name": "search", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "SearchOptions", @@ -1805,7 +1782,7 @@ }, { "name": "slice", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "SliceOptions", @@ -1817,7 +1794,7 @@ }, { "name": "sort", - "description": "", + "description": null, "type": { "kind": "LIST", "name": null, @@ -1839,12 +1816,12 @@ { "kind": "INPUT_OBJECT", "name": "PaginateOptions", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "limit", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "Int", @@ -1856,7 +1833,7 @@ }, { "name": "page", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "Int", @@ -1874,11 +1851,11 @@ { "kind": "OBJECT", "name": "PaginationLinks", - "description": "", + "description": null, "fields": [ { "name": "first", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -1890,7 +1867,7 @@ }, { "name": "last", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -1902,7 +1879,7 @@ }, { "name": "next", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -1914,7 +1891,7 @@ }, { "name": "prev", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -1933,11 +1910,11 @@ { "kind": "OBJECT", "name": "Photo", - "description": "", + "description": null, "fields": [ { "name": "album", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -1949,7 +1926,7 @@ }, { "name": "id", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -1961,7 +1938,7 @@ }, { "name": "thumbnailUrl", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -1973,7 +1950,7 @@ }, { "name": "title", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -1985,7 +1962,7 @@ }, { "name": "url", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -2004,11 +1981,11 @@ { "kind": "OBJECT", "name": "PhotosPage", - "description": "", + "description": null, "fields": [ { "name": "data", - "description": "", + "description": null, "args": [], "type": { "kind": "LIST", @@ -2024,7 +2001,7 @@ }, { "name": "links", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -2036,7 +2013,7 @@ }, { "name": "meta", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -2055,11 +2032,11 @@ { "kind": "OBJECT", "name": "Post", - "description": "", + "description": null, "fields": [ { "name": "body", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -2071,11 +2048,11 @@ }, { "name": "comments", - "description": "", + "description": null, "args": [ { "name": "options", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "PageQueryOptions", @@ -2096,7 +2073,7 @@ }, { "name": "id", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -2108,7 +2085,7 @@ }, { "name": "title", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -2120,7 +2097,7 @@ }, { "name": "user", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -2139,11 +2116,11 @@ { "kind": "OBJECT", "name": "PostsPage", - "description": "", + "description": null, "fields": [ { "name": "data", - "description": "", + "description": null, "args": [], "type": { "kind": "LIST", @@ -2159,7 +2136,7 @@ }, { "name": "links", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -2171,7 +2148,7 @@ }, { "name": "meta", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -2190,11 +2167,11 @@ { "kind": "OBJECT", "name": "Query", - "description": "", + "description": null, "fields": [ { "name": "_", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -2206,11 +2183,11 @@ }, { "name": "album", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -2235,11 +2212,11 @@ }, { "name": "albums", - "description": "", + "description": null, "args": [ { "name": "options", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "PageQueryOptions", @@ -2260,11 +2237,11 @@ }, { "name": "comment", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -2289,11 +2266,11 @@ }, { "name": "comments", - "description": "", + "description": null, "args": [ { "name": "options", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "PageQueryOptions", @@ -2314,11 +2291,11 @@ }, { "name": "photo", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -2343,11 +2320,11 @@ }, { "name": "photos", - "description": "", + "description": null, "args": [ { "name": "options", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "PageQueryOptions", @@ -2368,11 +2345,11 @@ }, { "name": "post", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -2397,11 +2374,11 @@ }, { "name": "posts", - "description": "", + "description": null, "args": [ { "name": "options", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "PageQueryOptions", @@ -2422,11 +2399,11 @@ }, { "name": "todo", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -2451,11 +2428,11 @@ }, { "name": "todos", - "description": "", + "description": null, "args": [ { "name": "options", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "PageQueryOptions", @@ -2476,11 +2453,11 @@ }, { "name": "user", - "description": "", + "description": null, "args": [ { "name": "id", - "description": "", + "description": null, "type": { "kind": "NON_NULL", "name": null, @@ -2505,11 +2482,11 @@ }, { "name": "users", - "description": "", + "description": null, "args": [ { "name": "options", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "PageQueryOptions", @@ -2537,12 +2514,12 @@ { "kind": "INPUT_OBJECT", "name": "SearchOptions", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "q", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -2560,12 +2537,12 @@ { "kind": "INPUT_OBJECT", "name": "SliceOptions", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "end", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "Int", @@ -2577,7 +2554,7 @@ }, { "name": "limit", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "Int", @@ -2589,7 +2566,7 @@ }, { "name": "start", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "Int", @@ -2607,12 +2584,12 @@ { "kind": "INPUT_OBJECT", "name": "SortOptions", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "field", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -2624,7 +2601,7 @@ }, { "name": "order", - "description": "", + "description": null, "type": { "kind": "ENUM", "name": "SortOrderEnum", @@ -2642,20 +2619,20 @@ { "kind": "ENUM", "name": "SortOrderEnum", - "description": "", + "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": [ { "name": "ASC", - "description": "", + "description": null, "isDeprecated": false, "deprecationReason": null }, { "name": "DESC", - "description": "", + "description": null, "isDeprecated": false, "deprecationReason": null } @@ -2675,11 +2652,11 @@ { "kind": "OBJECT", "name": "Todo", - "description": "", + "description": null, "fields": [ { "name": "completed", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -2691,7 +2668,7 @@ }, { "name": "id", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -2703,7 +2680,7 @@ }, { "name": "title", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -2715,7 +2692,7 @@ }, { "name": "user", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -2734,11 +2711,11 @@ { "kind": "OBJECT", "name": "TodosPage", - "description": "", + "description": null, "fields": [ { "name": "data", - "description": "", + "description": null, "args": [], "type": { "kind": "LIST", @@ -2754,7 +2731,7 @@ }, { "name": "links", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -2766,7 +2743,7 @@ }, { "name": "meta", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -2785,12 +2762,12 @@ { "kind": "INPUT_OBJECT", "name": "UpdateAlbumInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "title", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -2802,7 +2779,7 @@ }, { "name": "userId", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "ID", @@ -2820,12 +2797,12 @@ { "kind": "INPUT_OBJECT", "name": "UpdateCommentInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "body", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -2837,7 +2814,7 @@ }, { "name": "email", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -2849,7 +2826,7 @@ }, { "name": "name", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -2867,12 +2844,12 @@ { "kind": "INPUT_OBJECT", "name": "UpdatePhotoInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "thumbnailUrl", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -2884,7 +2861,7 @@ }, { "name": "title", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -2896,7 +2873,7 @@ }, { "name": "url", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -2914,12 +2891,12 @@ { "kind": "INPUT_OBJECT", "name": "UpdatePostInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "body", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -2931,7 +2908,7 @@ }, { "name": "title", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -2949,12 +2926,12 @@ { "kind": "INPUT_OBJECT", "name": "UpdateTodoInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "completed", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "Boolean", @@ -2966,7 +2943,7 @@ }, { "name": "title", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -2984,12 +2961,12 @@ { "kind": "INPUT_OBJECT", "name": "UpdateUserInput", - "description": "", + "description": null, "fields": null, "inputFields": [ { "name": "address", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "AddressInput", @@ -3001,7 +2978,7 @@ }, { "name": "company", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "CompanyInput", @@ -3013,7 +2990,7 @@ }, { "name": "email", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -3025,7 +3002,7 @@ }, { "name": "name", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -3037,7 +3014,7 @@ }, { "name": "phone", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -3049,7 +3026,7 @@ }, { "name": "username", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -3061,7 +3038,7 @@ }, { "name": "website", - "description": "", + "description": null, "type": { "kind": "SCALAR", "name": "String", @@ -3076,24 +3053,14 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "SCALAR", - "name": "Upload", - "description": "The `Upload` scalar type represents a file upload.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "User", - "description": "", + "description": null, "fields": [ { "name": "address", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -3105,11 +3072,11 @@ }, { "name": "albums", - "description": "", + "description": null, "args": [ { "name": "options", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "PageQueryOptions", @@ -3130,7 +3097,7 @@ }, { "name": "company", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -3142,7 +3109,7 @@ }, { "name": "email", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -3154,7 +3121,7 @@ }, { "name": "id", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -3166,7 +3133,7 @@ }, { "name": "name", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -3178,7 +3145,7 @@ }, { "name": "phone", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -3190,11 +3157,11 @@ }, { "name": "posts", - "description": "", + "description": null, "args": [ { "name": "options", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "PageQueryOptions", @@ -3215,11 +3182,11 @@ }, { "name": "todos", - "description": "", + "description": null, "args": [ { "name": "options", - "description": "", + "description": null, "type": { "kind": "INPUT_OBJECT", "name": "PageQueryOptions", @@ -3240,7 +3207,7 @@ }, { "name": "username", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -3252,7 +3219,7 @@ }, { "name": "website", - "description": "", + "description": null, "args": [], "type": { "kind": "SCALAR", @@ -3271,11 +3238,11 @@ { "kind": "OBJECT", "name": "UsersPage", - "description": "", + "description": null, "fields": [ { "name": "data", - "description": "", + "description": null, "args": [], "type": { "kind": "LIST", @@ -3291,7 +3258,7 @@ }, { "name": "links", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -3303,7 +3270,7 @@ }, { "name": "meta", - "description": "", + "description": null, "args": [], "type": { "kind": "OBJECT", @@ -4228,47 +4195,20 @@ } ], "directives": [ - { - "name": "cacheControl", - "description": "", - "isRepeatable": false, - "locations": ["FIELD_DEFINITION", "INTERFACE", "OBJECT"], - "args": [ - { - "name": "maxAge", - "description": "", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "scope", - "description": "", - "type": { - "kind": "ENUM", - "name": "CacheControlScope", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - }, { "name": "deprecated", "description": "Marks an element of a GraphQL schema as no longer supported.", "isRepeatable": false, - "locations": ["ENUM_VALUE", "FIELD_DEFINITION"], + "locations": [ + "ARGUMENT_DEFINITION", + "ENUM_VALUE", + "FIELD_DEFINITION", + "INPUT_FIELD_DEFINITION" + ], "args": [ { "name": "reason", - "description": "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).", + "description": "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).", "type": { "kind": "SCALAR", "name": "String", @@ -4284,7 +4224,11 @@ "name": "include", "description": "Directs the executor to include this field or fragment only when the `if` argument is true.", "isRepeatable": false, - "locations": ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"], + "locations": [ + "FIELD", + "FRAGMENT_SPREAD", + "INLINE_FRAGMENT" + ], "args": [ { "name": "if", @@ -4308,7 +4252,11 @@ "name": "skip", "description": "Directs the executor to skip this field or fragment when the `if` argument is true.", "isRepeatable": false, - "locations": ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"], + "locations": [ + "FIELD", + "FRAGMENT_SPREAD", + "INLINE_FRAGMENT" + ], "args": [ { "name": "if", @@ -4327,7 +4275,33 @@ "deprecationReason": null } ] + }, + { + "name": "specifiedBy", + "description": "Exposes a URL that specifies the behavior of this scalar.", + "isRepeatable": false, + "locations": [ + "SCALAR" + ], + "args": [ + { + "name": "url", + "description": "The URL that specifies the behavior of this scalar.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ] } ] } -} +} \ No newline at end of file diff --git a/graphql_codegen.yml b/graphql_codegen.yml index 8804369..08af403 100644 --- a/graphql_codegen.yml +++ b/graphql_codegen.yml @@ -14,7 +14,7 @@ generates: plugins: - "typescript-operations" - "typescript-graphql-files-modules" - src/core/app/data/__generated__/graphql_introspection.ts: + src/core/app/data/__generated__/graphql-introspection.ts: plugins: - "fragment-matcher" ./graphql.schema.json: diff --git a/src/common/@types/yup_extensions.d.ts b/src/common/@types/yup-extensions.d.ts similarity index 100% rename from src/common/@types/yup_extensions.d.ts rename to src/common/@types/yup-extensions.d.ts diff --git a/src/common/interfaces/constructor_type.ts b/src/common/interfaces/constructor-type.ts similarity index 100% rename from src/common/interfaces/constructor_type.ts rename to src/common/interfaces/constructor-type.ts diff --git a/src/common/interfaces/data_model.ts b/src/common/interfaces/data-model.ts similarity index 100% rename from src/common/interfaces/data_model.ts rename to src/common/interfaces/data-model.ts diff --git a/src/common/interfaces/rest_data_source.ts b/src/common/interfaces/rest-data-source.ts similarity index 100% rename from src/common/interfaces/rest_data_source.ts rename to src/common/interfaces/rest-data-source.ts diff --git a/src/common/network/rest/rest_client.ts b/src/common/network/rest/rest-client.ts similarity index 100% rename from src/common/network/rest/rest_client.ts rename to src/common/network/rest/rest-client.ts diff --git a/src/common/utils/class_transformer.ts b/src/common/utils/class-transformer.ts similarity index 85% rename from src/common/utils/class_transformer.ts rename to src/common/utils/class-transformer.ts index c734d0b..9fe3379 100644 --- a/src/common/utils/class_transformer.ts +++ b/src/common/utils/class-transformer.ts @@ -1,7 +1,7 @@ +import { PageDataModel } from "@/src/core/app/data/models/page-data-model"; import { instanceToPlain, plainToClass, plainToClassFromExist } from "class-transformer"; import type { ClassConstructor } from "class-transformer/types/interfaces"; -import { PageDataModel } from "@/src/core/app/data/models/page_data_model"; -import type { DataModel } from "../interfaces/data_model"; +import type { DataModel } from "../interfaces/data-model"; export const fromJson = (model: ClassConstructor, json: Record): U => plainToClass(model, json, { excludeExtraneousValues: true, exposeDefaultValues: true }) as U; diff --git a/src/common/utils/yup_extensions.ts b/src/common/utils/yup-extensions.ts similarity index 100% rename from src/common/utils/yup_extensions.ts rename to src/common/utils/yup-extensions.ts diff --git a/src/common/utils/zustand.tsx b/src/common/utils/zustand.tsx index 7a4b137..5ff9f63 100644 --- a/src/common/utils/zustand.tsx +++ b/src/common/utils/zustand.tsx @@ -1,9 +1,9 @@ -import type { StateCreator, StoreMutatorIdentifier } from "zustand"; -import { createStore, useStore } from "zustand"; +import type { ConstructorType } from "@/src/common/interfaces/constructor-type"; import type { PropsWithChildren } from "react"; import { createContext, useContext, useRef } from "react"; +import type { StateCreator, StoreMutatorIdentifier } from "zustand"; +import { createStore, useStore } from "zustand"; import { immer } from "zustand/middleware/immer"; -import type { ConstructorType } from "@/src/common/interfaces/constructor_type"; interface StateProviderProps { initialState?: ConstructorType; diff --git a/src/core/app/data/models/page_data_model.ts b/src/core/app/data/models/page-data-model.ts similarity index 93% rename from src/core/app/data/models/page_data_model.ts rename to src/core/app/data/models/page-data-model.ts index 816f7d9..13e466c 100644 --- a/src/core/app/data/models/page_data_model.ts +++ b/src/core/app/data/models/page-data-model.ts @@ -1,6 +1,6 @@ -import { Exclude, Expose, Type } from "class-transformer"; +import type { DataModel } from "@/src/common/interfaces/data-model"; import { Page } from "@/src/core/app/domain/models/page"; -import type { DataModel } from "@/src/common/interfaces/data_model"; +import { Exclude, Expose, Type } from "class-transformer"; export class PageDataModel, ItemDomainType> { @Exclude() diff --git a/src/core/app/data/services/json_placeholder_service.ts b/src/core/app/data/services/json-placeholder-service.ts similarity index 88% rename from src/core/app/data/services/json_placeholder_service.ts rename to src/core/app/data/services/json-placeholder-service.ts index 51d1518..3946ac3 100644 --- a/src/core/app/data/services/json_placeholder_service.ts +++ b/src/core/app/data/services/json-placeholder-service.ts @@ -1,8 +1,8 @@ -import { inject, injectable } from "inversify"; -import { RestClient } from "@/src/common/network/rest/rest_client"; -import type { IEnvVars } from "@/src/core/app/domain/interfaces/env_vars"; +import type { IRestDataSource, RestDataSourceOptions } from "@/src/common/interfaces/rest-data-source"; +import { RestClient } from "@/src/common/network/rest/rest-client"; +import type { IEnvVars } from "@/src/core/app/domain/interfaces/env-vars"; import { TYPES } from "@/src/core/app/ioc/__generated__/types"; -import type { IRestDataSource, RestDataSourceOptions } from "@/src/common/interfaces/rest_data_source"; +import { inject, injectable } from "inversify"; import { generatorConf } from "inversify-generator/decorators"; @injectable() diff --git a/src/core/app/data/services/mock_service.ts b/src/core/app/data/services/mock-service.ts similarity index 93% rename from src/core/app/data/services/mock_service.ts rename to src/core/app/data/services/mock-service.ts index 869ddff..c4d558e 100644 --- a/src/core/app/data/services/mock_service.ts +++ b/src/core/app/data/services/mock-service.ts @@ -1,11 +1,11 @@ -import { inject, injectable } from "inversify"; -import type { DocumentNode } from "graphql"; -import type { IEnvVars } from "@/src/core/app/domain/interfaces/env_vars"; +import type { IEnvVars } from "@/src/core/app/domain/interfaces/env-vars"; import { TYPES } from "@/src/core/app/ioc/__generated__/types"; import type { NetworkInterfaces } from "@front_web_mrmilu/network"; import { GraphqlClient } from "@front_web_mrmilu/network"; -import generatedIntrospection from "../__generated__/graphql_introspection"; +import type { DocumentNode } from "graphql"; +import { inject, injectable } from "inversify"; import { generatorConf } from "inversify-generator/decorators"; +import generatedIntrospection from "../__generated__/graphql-introspection"; @injectable() @generatorConf({ typeName: "MockService" }) diff --git a/src/core/app/domain/interfaces/env_vars.ts b/src/core/app/domain/interfaces/env-vars.ts similarity index 100% rename from src/core/app/domain/interfaces/env_vars.ts rename to src/core/app/domain/interfaces/env-vars.ts diff --git a/src/core/app/domain/models/base_error.ts b/src/core/app/domain/models/base-error.ts similarity index 100% rename from src/core/app/domain/models/base_error.ts rename to src/core/app/domain/models/base-error.ts diff --git a/src/core/app/domain/models/env_vars.ts b/src/core/app/domain/models/env-vars.ts similarity index 93% rename from src/core/app/domain/models/env_vars.ts rename to src/core/app/domain/models/env-vars.ts index 3462f82..4ecf866 100644 --- a/src/core/app/domain/models/env_vars.ts +++ b/src/core/app/domain/models/env-vars.ts @@ -1,6 +1,6 @@ -import type { IEnvVars } from "../interfaces/env_vars"; import { injectable } from "inversify"; import { generatorConf } from "inversify-generator/decorators"; +import type { IEnvVars } from "../interfaces/env-vars"; @injectable() @generatorConf({ binding: "default" }) diff --git a/src/core/app/domain/models/page.ts b/src/core/app/domain/models/page.ts index 3772c31..5964fec 100644 --- a/src/core/app/domain/models/page.ts +++ b/src/core/app/domain/models/page.ts @@ -1,4 +1,4 @@ -import type { ConstructorType } from "@/src/common/interfaces/constructor_type"; +import type { ConstructorType } from "@/src/common/interfaces/constructor-type"; export class Page { items: Array = []; diff --git a/src/core/posts/data/graphql/mutations/create_post.graphql b/src/core/posts/data/graphql/mutations/create-post.graphql similarity index 100% rename from src/core/posts/data/graphql/mutations/create_post.graphql rename to src/core/posts/data/graphql/mutations/create-post.graphql diff --git a/src/core/posts/data/models/post_data_model.ts b/src/core/posts/data/models/post-data-model.ts similarity index 86% rename from src/core/posts/data/models/post_data_model.ts rename to src/core/posts/data/models/post-data-model.ts index f13b7bd..8472843 100644 --- a/src/core/posts/data/models/post_data_model.ts +++ b/src/core/posts/data/models/post-data-model.ts @@ -1,6 +1,6 @@ -import { Expose } from "class-transformer"; +import type { DataModel } from "@/src/common/interfaces/data-model"; import { Post } from "@/src/core/posts/domain/models/post"; -import type { DataModel } from "@/src/common/interfaces/data_model"; +import { Expose } from "class-transformer"; export class PostDataModel implements DataModel { @Expose() diff --git a/src/core/posts/data/repositories/posts_repository.ts b/src/core/posts/data/repositories/posts-repository.ts similarity index 91% rename from src/core/posts/data/repositories/posts_repository.ts rename to src/core/posts/data/repositories/posts-repository.ts index b5616df..21afc92 100644 --- a/src/core/posts/data/repositories/posts_repository.ts +++ b/src/core/posts/data/repositories/posts-repository.ts @@ -1,16 +1,16 @@ -import type { IPostsRepository } from "../../domain/interfaces/posts_repository"; -import { inject, injectable } from "inversify"; -import { TYPES } from "@/src/core/app/ioc/__generated__/types"; -import CreatePostMutationOperation from "../graphql/mutations/create_post.graphql"; -import type { MockService } from "@/src/core/app/data/services/mock_service"; import type { CreatePostInput } from "@/src/__generated__/graphql"; -import type { Post } from "@/src/core/posts/domain/models/post"; -import type { JSONPlaceholderService } from "@/src/core/app/data/services/json_placeholder_service"; -import { PostDataModel } from "@/src/core/posts/data/models/post_data_model"; -import { fromJson, fromJsonPage } from "@/src/common/utils/class_transformer"; +import { fromJson, fromJsonPage } from "@/src/common/utils/class-transformer"; +import type { JSONPlaceholderService } from "@/src/core/app/data/services/json-placeholder-service"; +import type { MockService } from "@/src/core/app/data/services/mock-service"; import type { Page } from "@/src/core/app/domain/models/page"; -import type { CreatePostMutation } from "@/src/core/posts/data/graphql/mutations/__generated__/create_post"; +import { TYPES } from "@/src/core/app/ioc/__generated__/types"; import type { IocProvider } from "@/src/core/app/ioc/interfaces"; +import type { CreatePostMutation } from "@/src/core/posts/data/graphql/mutations/__generated__/create-post"; +import { PostDataModel } from "@/src/core/posts/data/models/post-data-model"; +import type { Post } from "@/src/core/posts/domain/models/post"; +import { inject, injectable } from "inversify"; +import type { IPostsRepository } from "../../domain/interfaces/posts-repository"; +import CreatePostMutationOperation from "../graphql/mutations/create-post.graphql"; @injectable() export class PostsRepository implements IPostsRepository { diff --git a/src/core/posts/domain/interfaces/posts_repository.ts b/src/core/posts/domain/interfaces/posts-repository.ts similarity index 90% rename from src/core/posts/domain/interfaces/posts_repository.ts rename to src/core/posts/domain/interfaces/posts-repository.ts index 35b1587..310e9e5 100644 --- a/src/core/posts/domain/interfaces/posts_repository.ts +++ b/src/core/posts/domain/interfaces/posts-repository.ts @@ -1,6 +1,6 @@ -import type { CreatePostInputModel } from "@/src/core/posts/domain/models/create_post_input_model"; -import type { Post } from "@/src/core/posts/domain/models/post"; import type { Page } from "@/src/core/app/domain/models/page"; +import type { CreatePostInputModel } from "@/src/core/posts/domain/models/create-post-input-model"; +import type { Post } from "@/src/core/posts/domain/models/post"; export interface IPostsRepository { createPost(input: CreatePostInputModel): Promise; diff --git a/src/core/posts/domain/models/create_post_input_model.ts b/src/core/posts/domain/models/create-post-input-model.ts similarity index 93% rename from src/core/posts/domain/models/create_post_input_model.ts rename to src/core/posts/domain/models/create-post-input-model.ts index de3af70..7dd1498 100644 --- a/src/core/posts/domain/models/create_post_input_model.ts +++ b/src/core/posts/domain/models/create-post-input-model.ts @@ -1,4 +1,4 @@ -import type { ConstructorType } from "@/src/common/interfaces/constructor_type"; +import type { ConstructorType } from "@/src/common/interfaces/constructor-type"; export class CreatePostInputModel { title: string; diff --git a/src/core/posts/domain/models/post.ts b/src/core/posts/domain/models/post.ts index bcf2fc7..43ab1dd 100644 --- a/src/core/posts/domain/models/post.ts +++ b/src/core/posts/domain/models/post.ts @@ -1,4 +1,4 @@ -import type { ConstructorType } from "@/src/common/interfaces/constructor_type"; +import type { ConstructorType } from "@/src/common/interfaces/constructor-type"; export class Post { id: string; diff --git a/src/core/posts/domain/use_cases/create_post_use_case.ts b/src/core/posts/domain/use-cases/create-post-use-case.ts similarity index 95% rename from src/core/posts/domain/use_cases/create_post_use_case.ts rename to src/core/posts/domain/use-cases/create-post-use-case.ts index 1d15522..578a4ff 100644 --- a/src/core/posts/domain/use_cases/create_post_use_case.ts +++ b/src/core/posts/domain/use-cases/create-post-use-case.ts @@ -1,7 +1,7 @@ -import { inject, injectable } from "inversify"; -import type { IocProvider } from "@/src/core/app/ioc/interfaces"; import { TYPES } from "@/src/core/app/ioc/__generated__/types"; -import type { IPostsRepository } from "@/src/core/posts/domain/interfaces/posts_repository"; +import type { IocProvider } from "@/src/core/app/ioc/interfaces"; +import type { IPostsRepository } from "@/src/core/posts/domain/interfaces/posts-repository"; +import { inject, injectable } from "inversify"; @injectable() export class CreatePostUseCase { diff --git a/src/core/posts/domain/use_cases/get_posts_use_case.ts b/src/core/posts/domain/use-cases/get-posts-use-case.ts similarity index 95% rename from src/core/posts/domain/use_cases/get_posts_use_case.ts rename to src/core/posts/domain/use-cases/get-posts-use-case.ts index ffa526d..5e0ebf9 100644 --- a/src/core/posts/domain/use_cases/get_posts_use_case.ts +++ b/src/core/posts/domain/use-cases/get-posts-use-case.ts @@ -1,8 +1,8 @@ -import { inject, injectable } from "inversify"; -import type { IocProvider } from "@/src/core/app/ioc/interfaces"; import { TYPES } from "@/src/core/app/ioc/__generated__/types"; -import type { IPostsRepository } from "@/src/core/posts/domain/interfaces/posts_repository"; +import type { IocProvider } from "@/src/core/app/ioc/interfaces"; +import type { IPostsRepository } from "@/src/core/posts/domain/interfaces/posts-repository"; import type { Post } from "@/src/core/posts/domain/models/post"; +import { inject, injectable } from "inversify"; @injectable() export class GetPostsUseCase { diff --git a/src/core/users/data/graphql/fragments/base_user.graphql b/src/core/users/data/graphql/fragments/base-user.graphql similarity index 100% rename from src/core/users/data/graphql/fragments/base_user.graphql rename to src/core/users/data/graphql/fragments/base-user.graphql diff --git a/src/core/users/data/graphql/queries/users.graphql b/src/core/users/data/graphql/queries/users.graphql index b3b24b1..10628f4 100644 --- a/src/core/users/data/graphql/queries/users.graphql +++ b/src/core/users/data/graphql/queries/users.graphql @@ -1,4 +1,4 @@ -#import "../fragments/base_user.graphql" +#import "../fragments/base-user.graphql" query Users { users { diff --git a/src/core/users/data/models/user_data_model.ts b/src/core/users/data/models/user-data-model.ts similarity index 85% rename from src/core/users/data/models/user_data_model.ts rename to src/core/users/data/models/user-data-model.ts index 9454f76..0b199a3 100644 --- a/src/core/users/data/models/user_data_model.ts +++ b/src/core/users/data/models/user-data-model.ts @@ -1,6 +1,6 @@ -import { Expose } from "class-transformer"; +import type { DataModel } from "@/src/common/interfaces/data-model"; import { User } from "@/src/core/users/domain/models/user"; -import type { DataModel } from "@/src/common/interfaces/data_model"; +import { Expose } from "class-transformer"; export class UserDataModel implements DataModel { @Expose() diff --git a/src/core/users/data/repositories/users_repository.ts b/src/core/users/data/repositories/users-repository.ts similarity index 95% rename from src/core/users/data/repositories/users_repository.ts rename to src/core/users/data/repositories/users-repository.ts index 7dc6afd..38c1582 100644 --- a/src/core/users/data/repositories/users_repository.ts +++ b/src/core/users/data/repositories/users-repository.ts @@ -1,13 +1,13 @@ -import { inject, injectable } from "inversify"; +import type { MockService } from "@/src/core/app/data/services/mock-service"; import { TYPES } from "@/src/core/app/ioc/__generated__/types"; -import type { User } from "@/src/core/users/domain/models/user"; -import UsersQueryOperation from "../graphql/queries/users.graphql"; -import { plainToClass } from "class-transformer"; -import type { MockService } from "@/src/core/app/data/services/mock_service"; import type { IocProvider } from "@/src/core/app/ioc/interfaces"; -import { UserDataModel } from "@/src/core/users/data/models/user_data_model"; -import type { IUsersRepository } from "@/src/core/users/domain/interfaces/users_repository"; import type { UsersQuery } from "@/src/core/users/data/graphql/queries/__generated__/users"; +import { UserDataModel } from "@/src/core/users/data/models/user-data-model"; +import type { IUsersRepository } from "@/src/core/users/domain/interfaces/users-repository"; +import type { User } from "@/src/core/users/domain/models/user"; +import { plainToClass } from "class-transformer"; +import { inject, injectable } from "inversify"; +import UsersQueryOperation from "../graphql/queries/users.graphql"; @injectable() export class UsersRepository implements IUsersRepository { diff --git a/src/core/users/domain/interfaces/users_repository.ts b/src/core/users/domain/interfaces/users-repository.ts similarity index 100% rename from src/core/users/domain/interfaces/users_repository.ts rename to src/core/users/domain/interfaces/users-repository.ts diff --git a/src/core/users/domain/models/user.ts b/src/core/users/domain/models/user.ts index ca79cba..6af8f94 100644 --- a/src/core/users/domain/models/user.ts +++ b/src/core/users/domain/models/user.ts @@ -1,4 +1,4 @@ -import type { ConstructorType } from "@/src/common/interfaces/constructor_type"; +import type { ConstructorType } from "@/src/common/interfaces/constructor-type"; export class User { id: string; diff --git a/src/core/users/domain/use_cases/get_users_use_case.ts b/src/core/users/domain/use-cases/get-users-use-case.ts similarity index 95% rename from src/core/users/domain/use_cases/get_users_use_case.ts rename to src/core/users/domain/use-cases/get-users-use-case.ts index a6cd849..2f3279c 100644 --- a/src/core/users/domain/use_cases/get_users_use_case.ts +++ b/src/core/users/domain/use-cases/get-users-use-case.ts @@ -1,8 +1,8 @@ -import { inject, injectable } from "inversify"; -import type { User } from "@/src/core/users/domain/models/user"; -import type { IocProvider } from "@/src/core/app/ioc/interfaces"; import { TYPES } from "@/src/core/app/ioc/__generated__/types"; -import type { IUsersRepository } from "@/src/core/users/domain/interfaces/users_repository"; +import type { IocProvider } from "@/src/core/app/ioc/interfaces"; +import type { IUsersRepository } from "@/src/core/users/domain/interfaces/users-repository"; +import type { User } from "@/src/core/users/domain/models/user"; +import { inject, injectable } from "inversify"; @injectable() export class GetUsersUseCase { diff --git a/src/main.tsx b/src/main.tsx index 83f12e1..c1ded1b 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,15 +1,15 @@ -import React, { StrictMode } from "react"; -import reportWebVitals from "./reportWebVitals"; -import { createRoot } from "react-dom/client"; -import { RouterProvider } from "react-router-dom"; -import "@/src/ui/i18n/index"; -import * as Sentry from "@sentry/react"; -import { BrowserTracing } from "@sentry/tracing"; +import "@/src/common/utils/yup-extensions"; +import type { IEnvVars } from "@/src/core/app/domain/interfaces/env-vars"; import { locator } from "@/src/core/app/ioc/__generated__"; -import type { IEnvVars } from "@/src/core/app/domain/interfaces/env_vars"; import { TYPES } from "@/src/core/app/ioc/__generated__/types"; -import "@/src/common/utils/yup_extensions"; +import "@/src/ui/i18n/index"; import { router } from "@/src/ui/router/routes"; +import * as Sentry from "@sentry/react"; +import { BrowserTracing } from "@sentry/tracing"; +import { StrictMode } from "react"; +import { createRoot } from "react-dom/client"; +import { RouterProvider } from "react-router-dom"; +import reportWebVitals from "./reportWebVitals"; if (locator.get(TYPES.IEnvVars).sentryEnabled) { Sentry.init({ diff --git a/src/ui/components/app_error_boundary/app_error_boundary.css.ts b/src/ui/components/app-error-boundary/app-error-boundary.css.ts similarity index 100% rename from src/ui/components/app_error_boundary/app_error_boundary.css.ts rename to src/ui/components/app-error-boundary/app-error-boundary.css.ts diff --git a/src/ui/components/app_error_boundary/app_error_boundary.tsx b/src/ui/components/app-error-boundary/app-error-boundary.tsx similarity index 95% rename from src/ui/components/app_error_boundary/app_error_boundary.tsx rename to src/ui/components/app-error-boundary/app-error-boundary.tsx index 8da40c9..2906581 100644 --- a/src/ui/components/app_error_boundary/app_error_boundary.tsx +++ b/src/ui/components/app-error-boundary/app-error-boundary.tsx @@ -1,8 +1,8 @@ +import type { BaseError } from "@/src/core/app/domain/models/base-error"; +import * as Sentry from "@sentry/react"; import type { PropsWithChildren } from "react"; import { Component } from "react"; -import type { BaseError } from "@/src/core/app/domain/models/base_error"; -import * as Sentry from "@sentry/react"; -import css from "./app_error_boundary.css"; +import css from "./app-error-boundary.css"; interface State { hasError: boolean; diff --git a/src/ui/components/base_page/base_page.css.ts b/src/ui/components/base-page/base-page.css.ts similarity index 100% rename from src/ui/components/base_page/base_page.css.ts rename to src/ui/components/base-page/base-page.css.ts diff --git a/src/ui/components/base_page/base_page.tsx b/src/ui/components/base-page/base-page.tsx similarity index 70% rename from src/ui/components/base_page/base_page.tsx rename to src/ui/components/base-page/base-page.tsx index 48d7434..9a5fe6e 100644 --- a/src/ui/components/base_page/base_page.tsx +++ b/src/ui/components/base-page/base-page.tsx @@ -1,6 +1,6 @@ +import type { CypressProps } from "@/src/ui/view-models/cypress"; import type { PropsWithChildren } from "react"; -import css from "./base_page.css"; -import type { CypressProps } from "@/src/ui/view_models/cypress"; +import css from "./base-page.css"; export default function BasePage({ children, ...rest }: PropsWithChildren) { return ( diff --git a/src/ui/components/button/button.tsx b/src/ui/components/button/button.tsx index 9d9c157..599e5e9 100644 --- a/src/ui/components/button/button.tsx +++ b/src/ui/components/button/button.tsx @@ -1,7 +1,7 @@ import type { MouseEventHandler, PropsWithChildren } from "react"; import type { ButtonVariants } from "./button.css"; import css from "./button.css"; -import type { CypressProps } from "@/src/ui/view_models/cypress"; +import type { CypressProps } from "@/src/ui/view-models/cypress"; export interface ButtonProps extends CypressProps { onClick?: MouseEventHandler; diff --git a/src/ui/components/error_pages/404.tsx b/src/ui/components/error-pages/404.tsx similarity index 100% rename from src/ui/components/error_pages/404.tsx rename to src/ui/components/error-pages/404.tsx diff --git a/src/ui/components/error_pages/500.tsx b/src/ui/components/error-pages/500.tsx similarity index 100% rename from src/ui/components/error_pages/500.tsx rename to src/ui/components/error-pages/500.tsx diff --git a/src/ui/components/icon_button/icon_button.css.ts b/src/ui/components/icon-button/icon-button.css.ts similarity index 100% rename from src/ui/components/icon_button/icon_button.css.ts rename to src/ui/components/icon-button/icon-button.css.ts diff --git a/src/ui/components/icon_button/icon_button.tsx b/src/ui/components/icon-button/icon-button.tsx similarity index 88% rename from src/ui/components/icon_button/icon_button.tsx rename to src/ui/components/icon-button/icon-button.tsx index ce1c176..8588f79 100644 --- a/src/ui/components/icon_button/icon_button.tsx +++ b/src/ui/components/icon-button/icon-button.tsx @@ -1,7 +1,7 @@ +import type { CypressProps } from "@/src/ui/view-models/cypress"; import type { MouseEventHandler, ReactNode } from "react"; import { forwardRef } from "react"; -import css from "./icon_button.css"; -import type { CypressProps } from "@/src/ui/view_models/cypress"; +import css from "./icon-button.css"; export interface IconButtonProps extends CypressProps { onClick?: MouseEventHandler; diff --git a/src/ui/components/logging_modal/logging_modal.css.ts b/src/ui/components/logging-modal/logging-modal.css.ts similarity index 100% rename from src/ui/components/logging_modal/logging_modal.css.ts rename to src/ui/components/logging-modal/logging-modal.css.ts diff --git a/src/ui/components/logging_modal/logging_modal.tsx b/src/ui/components/logging-modal/logging-modal.tsx similarity index 86% rename from src/ui/components/logging_modal/logging_modal.tsx rename to src/ui/components/logging-modal/logging-modal.tsx index 4395a85..5884c8f 100644 --- a/src/ui/components/logging_modal/logging_modal.tsx +++ b/src/ui/components/logging-modal/logging-modal.tsx @@ -1,5 +1,5 @@ import { forwardRef } from "react"; -import css from "./logging_modal.css"; +import css from "./logging-modal.css"; export const LoggingModal = forwardRef((props, ref) => { return ( diff --git a/src/ui/components/main_loader/main_loader.css.ts b/src/ui/components/main-loader/main-loader.css.ts similarity index 100% rename from src/ui/components/main_loader/main_loader.css.ts rename to src/ui/components/main-loader/main-loader.css.ts diff --git a/src/ui/components/main_loader/main_loader.tsx b/src/ui/components/main-loader/main-loader.tsx similarity index 86% rename from src/ui/components/main_loader/main_loader.tsx rename to src/ui/components/main-loader/main-loader.tsx index 47e23ea..6ce4ca5 100644 --- a/src/ui/components/main_loader/main_loader.tsx +++ b/src/ui/components/main-loader/main-loader.tsx @@ -1,7 +1,7 @@ -import css from "./main_loader.css"; -import { easings, useTransition, animated } from "@react-spring/web"; -import { useUiProvider } from "@/src/ui/providers/ui.provider"; import { Loader } from "@/src/ui/components/loader/loader"; +import { useUiProvider } from "@/src/ui/providers/ui.provider"; +import { animated, easings, useTransition } from "@react-spring/web"; +import css from "./main-loader.css"; export const MainLoader = () => { const showLoader = useUiProvider((state) => state.showLoader); diff --git a/src/ui/components/simple_card/simple_card.css.ts b/src/ui/components/simple-card/simple-card.css.ts similarity index 100% rename from src/ui/components/simple_card/simple_card.css.ts rename to src/ui/components/simple-card/simple-card.css.ts diff --git a/src/ui/components/simple_card/simple_card.tsx b/src/ui/components/simple-card/simple-card.tsx similarity index 87% rename from src/ui/components/simple_card/simple_card.tsx rename to src/ui/components/simple-card/simple-card.tsx index 2a52474..715a09b 100644 --- a/src/ui/components/simple_card/simple_card.tsx +++ b/src/ui/components/simple-card/simple-card.tsx @@ -1,7 +1,7 @@ -import type { MouseEventHandler } from "react"; import { typographyStyles } from "@/src/ui/styles/typography.css"; -import css from "./simple_card.css"; -import type { CypressProps } from "@/src/ui/view_models/cypress"; +import type { CypressProps } from "@/src/ui/view-models/cypress"; +import type { MouseEventHandler } from "react"; +import css from "./simple-card.css"; export interface SimpleCardProps extends CypressProps { title: string; diff --git a/src/ui/components/suspense_main_loader/suspense_main_loader.tsx b/src/ui/components/suspense-main-loader/suspense-main-loader.tsx similarity index 80% rename from src/ui/components/suspense_main_loader/suspense_main_loader.tsx rename to src/ui/components/suspense-main-loader/suspense-main-loader.tsx index ab76d28..548b0c1 100644 --- a/src/ui/components/suspense_main_loader/suspense_main_loader.tsx +++ b/src/ui/components/suspense-main-loader/suspense-main-loader.tsx @@ -1,6 +1,6 @@ import type { PropsWithChildren } from "react"; import { Suspense } from "react"; -import { MainLoader } from "../main_loader/main_loader"; +import { MainLoader } from "../main-loader/main-loader"; export const SuspenseMainLoader = ({ children }: PropsWithChildren) => { return }>{children}; diff --git a/src/ui/containers/modal/modal.tsx b/src/ui/containers/modal/modal.tsx index bfbf56f..74d32cb 100644 --- a/src/ui/containers/modal/modal.tsx +++ b/src/ui/containers/modal/modal.tsx @@ -1,12 +1,12 @@ import CloseIcon from "@/src/ui/assets/icons/close.svg?react"; -import { IconButton } from "@/src/ui/components/icon_button/icon_button"; +import { IconButton } from "@/src/ui/components/icon-button/icon-button"; import { useUiProvider } from "@/src/ui/providers/ui.provider"; +import type { CypressProps } from "@/src/ui/view-models/cypress"; import { useClickOutside } from "@front_web_mrmilu/hooks"; import { animated, easings, useTransition } from "@react-spring/web"; import type { PropsWithChildren, ReactElement } from "react"; import { cloneElement, forwardRef, useEffect, useRef, useState } from "react"; import css from "./modal.css"; -import type { CypressProps } from "@/src/ui/view_models/cypress"; const MODAL_TRANSITION_CONFIG = { duration: 450, diff --git a/src/ui/features/home/views/home_page/home_page.css.ts b/src/ui/features/home/views/home-page/home-page.css.ts similarity index 100% rename from src/ui/features/home/views/home_page/home_page.css.ts rename to src/ui/features/home/views/home-page/home-page.css.ts diff --git a/src/ui/features/home/views/home_page/home_page.tsx b/src/ui/features/home/views/home-page/home-page.tsx similarity index 96% rename from src/ui/features/home/views/home_page/home_page.tsx rename to src/ui/features/home/views/home-page/home-page.tsx index 391efc4..4c02367 100644 --- a/src/ui/features/home/views/home_page/home_page.tsx +++ b/src/ui/features/home/views/home-page/home-page.tsx @@ -1,14 +1,14 @@ +import { BaseError } from "@/src/core/app/domain/models/base-error"; import { Button } from "@/src/ui/components/button/button"; import { ControlledInput } from "@/src/ui/components/input/input"; -import { useHomeProvider, useHomeProviderBis } from "@/src/ui/features/home/views/home_page/providers/home_provider"; +import { useHomeProvider, useHomeProviderBis } from "@/src/ui/features/home/views/home-page/providers/home-provider"; import { timeout } from "@front_web_mrmilu/utils"; import { yupResolver } from "@hookform/resolvers/yup"; import { useEffect, useMemo } from "react"; import { FormProvider, useForm } from "react-hook-form"; import { useTranslation } from "react-i18next"; import { object, string } from "yup"; -import css from "./home_page.css"; -import { BaseError } from "@/src/core/app/domain/models/base_error"; +import css from "./home-page.css"; interface FormValues { name: string; diff --git a/src/ui/features/home/views/home_page/providers/home_provider.ts b/src/ui/features/home/views/home-page/providers/home-provider.ts similarity index 95% rename from src/ui/features/home/views/home_page/providers/home_provider.ts rename to src/ui/features/home/views/home-page/providers/home-provider.ts index 9403553..9b02ac6 100644 --- a/src/ui/features/home/views/home_page/providers/home_provider.ts +++ b/src/ui/features/home/views/home-page/providers/home-provider.ts @@ -1,5 +1,5 @@ import { createProvider } from "@/src/common/utils/zustand"; -import type { HomeStateViewModel } from "@/src/ui/features/home/views/home_page/view_models/home_state"; +import type { HomeStateViewModel } from "@/src/ui/features/home/views/home-page/view-models/home-state"; interface HomeProviderBuilderProps { amount: "none" | "twenty" | "thirty"; diff --git a/src/ui/features/home/views/home_page/view_models/home_state.ts b/src/ui/features/home/views/home-page/view-models/home-state.ts similarity index 100% rename from src/ui/features/home/views/home_page/view_models/home_state.ts rename to src/ui/features/home/views/home-page/view-models/home-state.ts diff --git a/src/ui/features/misc/root/root_page.css.ts b/src/ui/features/misc/root/root-page.css.ts similarity index 100% rename from src/ui/features/misc/root/root_page.css.ts rename to src/ui/features/misc/root/root-page.css.ts diff --git a/src/ui/features/misc/root/root_page.tsx b/src/ui/features/misc/root/root-page.tsx similarity index 91% rename from src/ui/features/misc/root/root_page.tsx rename to src/ui/features/misc/root/root-page.tsx index b0659af..0370d33 100644 --- a/src/ui/features/misc/root/root_page.tsx +++ b/src/ui/features/misc/root/root-page.tsx @@ -1,14 +1,14 @@ import { Button } from "@/src/ui/components/button/button"; -import { useUserProvider } from "@/src/ui/providers/user.provider"; -import { Link, Outlet } from "react-router-dom"; -import { SuspenseMainLoader } from "../../../components/suspense_main_loader/suspense_main_loader"; -import css from "./root_page.css"; +import { MainLoader } from "@/src/ui/components/main-loader/main-loader"; import { Modal } from "@/src/ui/containers/modal/modal"; -import { MainLoader } from "@/src/ui/components/main_loader/main_loader"; -import { theme } from "@/src/ui/styles/theme.css"; +import { useUserProvider } from "@/src/ui/providers/user.provider"; import "@/src/ui/styles/fonts.css"; import "@/src/ui/styles/globals.css"; import "@/src/ui/styles/reset.css"; +import { theme } from "@/src/ui/styles/theme.css"; +import { Link, Outlet } from "react-router-dom"; +import { SuspenseMainLoader } from "../../../components/suspense-main-loader/suspense-main-loader"; +import css from "./root-page.css"; export const RootPage = () => { const userLogged = useUserProvider((state) => state.logged); diff --git a/src/ui/features/posts/views/create_post_page/create_post_page.css.ts b/src/ui/features/posts/views/create-post-page/create-post-page.css.ts similarity index 100% rename from src/ui/features/posts/views/create_post_page/create_post_page.css.ts rename to src/ui/features/posts/views/create-post-page/create-post-page.css.ts diff --git a/src/ui/features/posts/views/create_post_page/create_post_page.tsx b/src/ui/features/posts/views/create-post-page/create-post-page.tsx similarity index 97% rename from src/ui/features/posts/views/create_post_page/create_post_page.tsx rename to src/ui/features/posts/views/create-post-page/create-post-page.tsx index b6e3f61..7ff2b63 100644 --- a/src/ui/features/posts/views/create_post_page/create_post_page.tsx +++ b/src/ui/features/posts/views/create-post-page/create-post-page.tsx @@ -1,13 +1,13 @@ -import { useCallback, useState } from "react"; -import { Button } from "@/src/ui/components/button/button"; +import { locator } from "@/src/core/app/ioc/__generated__"; +import { TYPES } from "@/src/core/app/ioc/__generated__/types"; import type { IocProvider } from "@/src/core/app/ioc/interfaces"; -import { debounce } from "lodash"; +import type { CreatePostUseCase } from "@/src/core/posts/domain/use-cases/create-post-use-case"; +import { Button } from "@/src/ui/components/button/button"; import { Switch } from "@/src/ui/components/switch/switch"; import { useAsyncState } from "@front_web_mrmilu/hooks"; -import type { CreatePostUseCase } from "@/src/core/posts/domain/use_cases/create_post_use_case"; -import css from "./create_post_page.css"; -import { locator } from "@/src/core/app/ioc/__generated__"; -import { TYPES } from "@/src/core/app/ioc/__generated__/types"; +import { debounce } from "lodash"; +import { useCallback, useState } from "react"; +import css from "./create-post-page.css"; export default function CreatePostPage() { const [postNumber, setPostNumber] = useState(1); diff --git a/src/ui/features/posts/views/posts_list_page/containers/post_results.tsx b/src/ui/features/posts/views/posts-list-page/containers/post-results.tsx similarity index 87% rename from src/ui/features/posts/views/posts_list_page/containers/post_results.tsx rename to src/ui/features/posts/views/posts-list-page/containers/post-results.tsx index d8ee1bb..ff7b9ac 100644 --- a/src/ui/features/posts/views/posts_list_page/containers/post_results.tsx +++ b/src/ui/features/posts/views/posts-list-page/containers/post-results.tsx @@ -1,5 +1,5 @@ -import { usePostsProvider } from "@/src/ui/features/posts/views/posts_list_page/providers/posts.provider"; -import { SimpleCard } from "@/src/ui/components/simple_card/simple_card"; +import { SimpleCard } from "@/src/ui/components/simple-card/simple-card"; +import { usePostsProvider } from "@/src/ui/features/posts/views/posts-list-page/providers/posts.provider"; import { Suspense } from "react"; export function PostsResults() { diff --git a/src/ui/features/posts/views/posts_list_page/posts_list_page.tsx b/src/ui/features/posts/views/posts-list-page/posts-list-page.tsx similarity index 68% rename from src/ui/features/posts/views/posts_list_page/posts_list_page.tsx rename to src/ui/features/posts/views/posts-list-page/posts-list-page.tsx index 9211c59..649e5b6 100644 --- a/src/ui/features/posts/views/posts_list_page/posts_list_page.tsx +++ b/src/ui/features/posts/views/posts-list-page/posts-list-page.tsx @@ -1,6 +1,6 @@ -import BasePage from "@/src/ui/components/base_page/base_page"; -import { PostsResults } from "@/src/ui/features/posts/views/posts_list_page/containers/post_results"; -import { useInitPostsProvider } from "@/src/ui/features/posts/views/posts_list_page/providers/posts.provider"; +import BasePage from "@/src/ui/components/base-page/base-page"; +import { PostsResults } from "@/src/ui/features/posts/views/posts-list-page/containers/post-results"; +import { useInitPostsProvider } from "@/src/ui/features/posts/views/posts-list-page/providers/posts.provider"; export default function PostsListPage() { useInitPostsProvider(); diff --git a/src/ui/features/posts/views/posts_list_page/providers/posts.provider.tsx b/src/ui/features/posts/views/posts-list-page/providers/posts.provider.tsx similarity index 85% rename from src/ui/features/posts/views/posts_list_page/providers/posts.provider.tsx rename to src/ui/features/posts/views/posts-list-page/providers/posts.provider.tsx index e157c3e..cc7e121 100644 --- a/src/ui/features/posts/views/posts_list_page/providers/posts.provider.tsx +++ b/src/ui/features/posts/views/posts-list-page/providers/posts.provider.tsx @@ -1,12 +1,11 @@ +import { createProvider } from "@/src/common/utils/zustand"; import { locator } from "@/src/core/app/ioc/__generated__"; -import type { IocProvider } from "@/src/core/app/ioc/interfaces"; import { TYPES } from "@/src/core/app/ioc/__generated__/types"; -import { timeout, wrapPromise } from "@front_web_mrmilu/utils"; -import { createProvider } from "@/src/common/utils/zustand"; +import type { IocProvider } from "@/src/core/app/ioc/interfaces"; +import type { GetPostsUseCase } from "@/src/core/posts/domain/use-cases/get-posts-use-case"; +import type { PostsState } from "@/src/ui/features/posts/views/posts-list-page/view-models/posts-state"; import { useEffectStrictMode } from "@front_web_mrmilu/hooks"; -import type { PostsState } from "@/src/ui/features/posts/views/posts_list_page/view_models/posts_state"; -import type { GetPostsUseCase } from "@/src/core/posts/domain/use_cases/get_posts_use_case"; -import { wrapPromisePending } from "@front_web_mrmilu/utils"; +import { timeout, wrapPromise, wrapPromisePending } from "@front_web_mrmilu/utils"; export const usePostsProvider = createProvider(() => (set) => ({ posts: wrapPromisePending(), diff --git a/src/ui/features/posts/views/posts_list_page/view_models/posts_state.ts b/src/ui/features/posts/views/posts-list-page/view-models/posts-state.ts similarity index 100% rename from src/ui/features/posts/views/posts_list_page/view_models/posts_state.ts rename to src/ui/features/posts/views/posts-list-page/view-models/posts-state.ts diff --git a/src/ui/features/users/components/user_modal/user_modal.css.ts b/src/ui/features/users/components/user-modal/user-modal.css.ts similarity index 100% rename from src/ui/features/users/components/user_modal/user_modal.css.ts rename to src/ui/features/users/components/user-modal/user-modal.css.ts diff --git a/src/ui/features/users/components/user_modal/user_modal.tsx b/src/ui/features/users/components/user-modal/user-modal.tsx similarity index 94% rename from src/ui/features/users/components/user_modal/user_modal.tsx rename to src/ui/features/users/components/user-modal/user-modal.tsx index 13f2596..66ffcc4 100644 --- a/src/ui/features/users/components/user_modal/user_modal.tsx +++ b/src/ui/features/users/components/user-modal/user-modal.tsx @@ -1,7 +1,7 @@ import type { User } from "@/src/core/users/domain/models/user"; import { ModalContent } from "@/src/ui/containers/modal/modal"; import { forwardRef } from "react"; -import css from "./user_modal.css"; +import css from "./user-modal.css"; interface UserModalProps { user: User; diff --git a/src/ui/features/users/views/users_list_page/providers/users_list.provider.ts b/src/ui/features/users/views/users-list-page/providers/users-list.provider.ts similarity index 94% rename from src/ui/features/users/views/users_list_page/providers/users_list.provider.ts rename to src/ui/features/users/views/users-list-page/providers/users-list.provider.ts index 47cde5f..cad1f47 100644 --- a/src/ui/features/users/views/users_list_page/providers/users_list.provider.ts +++ b/src/ui/features/users/views/users-list-page/providers/users-list.provider.ts @@ -1,12 +1,12 @@ +import { createProvider } from "@/src/common/utils/zustand"; import { locator } from "@/src/core/app/ioc/__generated__"; -import type { IocProvider } from "@/src/core/app/ioc/interfaces"; import { TYPES } from "@/src/core/app/ioc/__generated__/types"; -import { makeCancelable, timeout } from "@front_web_mrmilu/utils"; -import { createProvider } from "@/src/common/utils/zustand"; -import type { GetUsersUseCase } from "@/src/core/users/domain/use_cases/get_users_use_case"; -import { useEffectStrictMode } from "@front_web_mrmilu/hooks"; +import type { IocProvider } from "@/src/core/app/ioc/interfaces"; +import type { GetUsersUseCase } from "@/src/core/users/domain/use-cases/get-users-use-case"; +import type { UsersListStateViewModel } from "@/src/ui/features/users/views/users-list-page/view-models/users-list-state"; import { uiProvider } from "@/src/ui/providers/ui.provider"; -import type { UsersListStateViewModel } from "@/src/ui/features/users/views/users_list_page/view_models/users_list_state"; +import { useEffectStrictMode } from "@front_web_mrmilu/hooks"; +import { makeCancelable, timeout } from "@front_web_mrmilu/utils"; export const useUsersListProvider = createProvider(() => (set) => ({ users: [], diff --git a/src/ui/features/users/views/users_list_page/users_list_page.tsx b/src/ui/features/users/views/users-list-page/users-list-page.tsx similarity index 77% rename from src/ui/features/users/views/users_list_page/users_list_page.tsx rename to src/ui/features/users/views/users-list-page/users-list-page.tsx index 479127c..172874e 100644 --- a/src/ui/features/users/views/users_list_page/users_list_page.tsx +++ b/src/ui/features/users/views/users-list-page/users-list-page.tsx @@ -1,10 +1,10 @@ import type { User } from "@/src/core/users/domain/models/user"; -import BasePage from "@/src/ui/components/base_page/base_page"; -import { SimpleCard } from "@/src/ui/components/simple_card/simple_card"; -import { useInitUsersListProvider, useUsersListProvider } from "@/src/ui/features/users/views/users_list_page/providers/users_list.provider"; +import BasePage from "@/src/ui/components/base-page/base-page"; +import { SimpleCard } from "@/src/ui/components/simple-card/simple-card"; +import { useInitUsersListProvider, useUsersListProvider } from "@/src/ui/features/users/views/users-list-page/providers/users-list.provider"; import { useUiProvider } from "@/src/ui/providers/ui.provider"; import { useBreakpointsMatch } from "@front_web_mrmilu/hooks"; -import { UserModal } from "../../components/user_modal/user_modal"; +import { UserModal } from "../../components/user-modal/user-modal"; export default function UsersListPage() { useInitUsersListProvider(); diff --git a/src/ui/features/users/views/users_list_page/view_models/users_list_state.ts b/src/ui/features/users/views/users-list-page/view-models/users-list-state.ts similarity index 100% rename from src/ui/features/users/views/users_list_page/view_models/users_list_state.ts rename to src/ui/features/users/views/users-list-page/view-models/users-list-state.ts diff --git a/src/ui/providers/ui.provider.ts b/src/ui/providers/ui.provider.ts index 881cd48..d510a14 100644 --- a/src/ui/providers/ui.provider.ts +++ b/src/ui/providers/ui.provider.ts @@ -1,8 +1,8 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -import type { UiStateViewModel } from "../view_models/ui_state"; import type { ReactNode } from "react"; import { createStore, useStore } from "zustand"; import { immer } from "zustand/middleware/immer"; +import type { UiStateViewModel } from "../view-models/ui-state"; export const uiProvider = createStore()( immer((set) => ({ diff --git a/src/ui/providers/user.provider.ts b/src/ui/providers/user.provider.ts index 237a76b..9c3ccda 100644 --- a/src/ui/providers/user.provider.ts +++ b/src/ui/providers/user.provider.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ +import type { UserStateViewModel } from "@/src/ui/view-models/user-state"; import { createStore, useStore } from "zustand"; -import type { UserStateViewModel } from "@/src/ui/view_models/user_state"; export const userProvider = createStore((set) => ({ logged: false, diff --git a/src/ui/router/middlewares/auth_middleware.hook.tsx b/src/ui/router/middlewares/auth-middleware.hook.tsx similarity index 82% rename from src/ui/router/middlewares/auth_middleware.hook.tsx rename to src/ui/router/middlewares/auth-middleware.hook.tsx index f38cdc9..74cf0de 100644 --- a/src/ui/router/middlewares/auth_middleware.hook.tsx +++ b/src/ui/router/middlewares/auth-middleware.hook.tsx @@ -1,8 +1,8 @@ -import type { MiddlewareHook } from "@/src/ui/router/route_middleware"; -import { useEffect } from "react"; +import { LoggingModal } from "@/src/ui/components/logging-modal/logging-modal"; import { useUiProvider } from "@/src/ui/providers/ui.provider"; -import { LoggingModal } from "@/src/ui/components/logging_modal/logging_modal"; import { useUserProvider } from "@/src/ui/providers/user.provider"; +import type { MiddlewareHook } from "@/src/ui/router/route-middleware"; +import { useEffect } from "react"; export const useAuthMiddleware: MiddlewareHook = () => { const showModal = useUiProvider((state) => state.showModal); diff --git a/src/ui/router/route_middleware.tsx b/src/ui/router/route-middleware.tsx similarity index 98% rename from src/ui/router/route_middleware.tsx rename to src/ui/router/route-middleware.tsx index 8041d7e..5996c5d 100644 --- a/src/ui/router/route_middleware.tsx +++ b/src/ui/router/route-middleware.tsx @@ -1,5 +1,5 @@ import { Await, Navigate, useLocation, defer } from "react-router-dom"; -import { SuspenseMainLoader } from "@/src/ui/components/suspense_main_loader/suspense_main_loader"; +import { SuspenseMainLoader } from "@/src/ui/components/suspense-main-loader/suspense-main-loader"; export interface TrackedPromise extends Promise { _tracked?: boolean; diff --git a/src/ui/router/routes.tsx b/src/ui/router/routes.tsx index cad32a0..9016170 100644 --- a/src/ui/router/routes.tsx +++ b/src/ui/router/routes.tsx @@ -1,18 +1,18 @@ -import { AppErrorBoundary } from "@/src/ui/components/app_error_boundary/app_error_boundary"; -import Page404 from "@/src/ui/components/error_pages/404"; -import React, { lazy } from "react"; -import { SuspenseMainLoader } from "@/src/ui/components/suspense_main_loader/suspense_main_loader"; -import { RouteMiddleware } from "@/src/ui/router/route_middleware"; -import { useAuthMiddleware } from "@/src/ui/router/middlewares/auth_middleware.hook"; -import { useUsersListProvider } from "@/src/ui/features/users/views/users_list_page/providers/users_list.provider"; -import { usePostsProvider } from "@/src/ui/features/posts/views/posts_list_page/providers/posts.provider"; +import { AppErrorBoundary } from "@/src/ui/components/app-error-boundary/app-error-boundary"; +import Page404 from "@/src/ui/components/error-pages/404"; +import { SuspenseMainLoader } from "@/src/ui/components/suspense-main-loader/suspense-main-loader"; +import { RootPage } from "@/src/ui/features/misc/root/root-page"; +import { usePostsProvider } from "@/src/ui/features/posts/views/posts-list-page/providers/posts.provider"; +import { useUsersListProvider } from "@/src/ui/features/users/views/users-list-page/providers/users-list.provider"; +import { useAuthMiddleware } from "@/src/ui/router/middlewares/auth-middleware.hook"; +import { RouteMiddleware } from "@/src/ui/router/route-middleware"; +import { lazy } from "react"; import { createBrowserRouter } from "react-router-dom"; -import { RootPage } from "@/src/ui/features/misc/root/root_page"; -const HomePage = lazy(() => import("@/src/ui/features/home/views/home_page/home_page")); -const UsersListPage = lazy(() => import("@/src/ui/features/users/views/users_list_page/users_list_page")); -const PostsListPage = lazy(() => import("@/src/ui/features/posts/views/posts_list_page/posts_list_page")); -const CreatePostPage = lazy(() => import("@/src/ui/features/posts/views/create_post_page/create_post_page")); +const HomePage = lazy(() => import("@/src/ui/features/home/views/home-page/home-page")); +const UsersListPage = lazy(() => import("@/src/ui/features/users/views/users-list-page/users-list-page")); +const PostsListPage = lazy(() => import("@/src/ui/features/posts/views/posts-list-page/posts-list-page")); +const CreatePostPage = lazy(() => import("@/src/ui/features/posts/views/create-post-page/create-post-page")); // TODO migrate to new DataRouter API export const router = createBrowserRouter([ diff --git a/src/ui/view_models/cypress.ts b/src/ui/view-models/cypress.ts similarity index 100% rename from src/ui/view_models/cypress.ts rename to src/ui/view-models/cypress.ts diff --git a/src/ui/view_models/ui_state.ts b/src/ui/view-models/ui-state.ts similarity index 100% rename from src/ui/view_models/ui_state.ts rename to src/ui/view-models/ui-state.ts diff --git a/src/ui/view_models/user_state.ts b/src/ui/view-models/user-state.ts similarity index 100% rename from src/ui/view_models/user_state.ts rename to src/ui/view-models/user-state.ts diff --git a/tests/e2e/features/create_post.cy.ts b/tests/e2e/features/create-post.cy.ts similarity index 88% rename from tests/e2e/features/create_post.cy.ts rename to tests/e2e/features/create-post.cy.ts index e749c8b..07d5d4c 100644 --- a/tests/e2e/features/create_post.cy.ts +++ b/tests/e2e/features/create-post.cy.ts @@ -1,4 +1,4 @@ -import { aliasMutation } from "../utils/graphql_test_utils"; +import { aliasMutation } from "../utils/graphql-test-utils"; describe("Create post", () => { before(() => { diff --git a/tests/e2e/features/users.cy.ts b/tests/e2e/features/users.cy.ts index cadc892..77a86e9 100644 --- a/tests/e2e/features/users.cy.ts +++ b/tests/e2e/features/users.cy.ts @@ -1,4 +1,4 @@ -import { aliasQuery } from "../utils/graphql_test_utils"; +import { aliasQuery } from "../utils/graphql-test-utils"; describe("Visit users page", () => { beforeEach(() => { diff --git a/tests/e2e/utils/graphql_test_utils.ts b/tests/e2e/utils/graphql-test-utils.ts similarity index 100% rename from tests/e2e/utils/graphql_test_utils.ts rename to tests/e2e/utils/graphql-test-utils.ts