Skip to content

Commit

Permalink
This commit removes a significant amount of code related to a Pokédex…
Browse files Browse the repository at this point in the history
… implementation, including fetching data from an external API, displaying it in a table, and implementing pagination. It also removes several supporting files like images, styling, and testing files. Specifically:

* **Source Code Removal:**  The core files for the Pokédex feature (`pokedex.ts`, `index.ts`, `counter.ts`, `footer.ts`, `sum.ts`) are deleted entirely. This suggests the complete removal of the Pokédex functionality.
* **Asset Removal:** Associated assets like images (`bootstrap.svg`, `typescript.svg`, `vite.svg`)  are also deleted, further confirming the feature's removal.
* **Styling Removal:**  Styling files (`style.css`, `styles.scss`) are removed, indicating a change in the overall styling or removal of styling specific to the Pokédex.
* **Testing Removal:** The Pokédex test file (`pokedex.test.ts`) and mock response (`response.json`) are deleted, removing the automated tests associated with this feature.
* **Configuration and Tooling Removal:** Files related to library build configuration (`dts-bundle-generator.config.ts`, `vite.config.ts`), type declarations (`vite-env.d.ts`), linting, and formatting (`.eslintrc`, `.eslintignore`, `.prettierrc`, `.prettierignore`, `.stylelintrc`, `.stylelintignore`) are removed. This suggests a shift in the project's purpose, possibly away from being a reusable library.  The changelog (`CHANGELOG.md`) and license (`LICENSE.md`) are also deleted.
* **HTML Structure Removal:**  The `index.html` file, which presumably contained the markup for displaying the Pokédex and related elements, is deleted.
* **Git Hooks Removal:** The `.husky/pre-commit` file and lint-staged configuration (`.lintstagedrc`) are removed, indicating a change in the pre-commit workflow.  The removal of these files, alongside the linting configuration, implies less emphasis on automated code quality checks in this version, or a switch to a different tooling setup.
* **Documentation Removal:**  The `pokedex_pagination.adoc` and the main `README.md` are gone, eliminating user documentation.

This commit essentially clears out the previous project based around the Pokédex feature and likely represents a complete reset or repurposing of the project.  Without more context on the new direction, it's difficult to provide a more specific analysis, but it seems like a fresh start. The removal of configuration files indicates there might be no more TypeScript, SCSS, or linting in place. The project might be switching to a simpler HTML/CSS/JavaScript structure, or perhaps an entirely different technology stack.
  • Loading branch information
cheroliv committed Nov 19, 2024
1 parent ffae0e9 commit 4df779c
Show file tree
Hide file tree
Showing 44 changed files with 10 additions and 10,665 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
codebase
.settings
.project
launch4j-3.50-linux-x64.tgz
Expand Down
15 changes: 9 additions & 6 deletions api/src/main/kotlin/school/users/dao/UserDao.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import school.base.utils.AppUtils.cleanField
import school.base.utils.Constants
import school.users.Signup
import school.users.User
import school.users.UserActivation
import school.users.dao.UserActivationDao.Dao.save
import school.users.dao.UserActivationDao.Fields
import school.users.dao.UserDao.Attributes.EMAIL_ATTR
import school.users.dao.UserDao.Attributes.ID_ATTR
Expand Down Expand Up @@ -399,12 +401,13 @@ object UserDao {
second.getBean<TransactionalOperator>().executeAndAwait {
(first to second).save()
}
second.findOneByEmail<User>(first.email)
.mapLeft { return Exception("Unable to find user by email").left() }
.map {
(UserRole(userId = it, role = Constants.ROLE_USER) to second).signup()
return it.right()
}
second.findOneByEmail<User>(first.email).mapLeft {
return Exception("Unable to find user by email").left()
}.map {
(UserRole(userId = it, role = Constants.ROLE_USER) to second).signup()
(UserActivation(id = it) to second).save()
return it.right()
}
} catch (e: Throwable) {
e.left()
}
Expand Down
3 changes: 0 additions & 3 deletions codebase/.aiexclude

This file was deleted.

7 changes: 0 additions & 7 deletions codebase/html-css-design/vite-html-css/.eslintignore

This file was deleted.

18 changes: 0 additions & 18 deletions codebase/html-css-design/vite-html-css/.eslintrc

This file was deleted.

31 changes: 0 additions & 31 deletions codebase/html-css-design/vite-html-css/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions codebase/html-css-design/vite-html-css/.husky/pre-commit

This file was deleted.

4 changes: 0 additions & 4 deletions codebase/html-css-design/vite-html-css/.lintstagedrc

This file was deleted.

7 changes: 0 additions & 7 deletions codebase/html-css-design/vite-html-css/.prettierignore

This file was deleted.

16 changes: 0 additions & 16 deletions codebase/html-css-design/vite-html-css/.prettierrc

This file was deleted.

7 changes: 0 additions & 7 deletions codebase/html-css-design/vite-html-css/.stylelintignore

This file was deleted.

21 changes: 0 additions & 21 deletions codebase/html-css-design/vite-html-css/.stylelintrc

This file was deleted.

15 changes: 0 additions & 15 deletions codebase/html-css-design/vite-html-css/CHANGELOG.md

This file was deleted.

9 changes: 0 additions & 9 deletions codebase/html-css-design/vite-html-css/LICENSE.md

This file was deleted.

61 changes: 0 additions & 61 deletions codebase/html-css-design/vite-html-css/README.md

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions codebase/html-css-design/vite-html-css/favicon.svg

This file was deleted.

74 changes: 0 additions & 74 deletions codebase/html-css-design/vite-html-css/index.html

This file was deleted.

Loading

0 comments on commit 4df779c

Please sign in to comment.