Commit graph

54 commits

Author SHA1 Message Date
Muhammad Nauman Raza
30fd524747 Merge branch 'main' of github.com:devraza/ambition 2023-07-31 13:58:05 +01:00
Muhammad Nauman Raza
29aa823a0f feat(frontend): login interface boilerplate 2023-07-31 13:57:50 +01:00
6d5b74f7d0 Merge branch 'main' of https://github.com/devraza/ambition 2023-07-28 18:20:41 +01:00
8cf3bbda1f feat(backend): update and delete users
The title says most of it. For authentication, the token gotten from the POST
method can be put as a 'Token' header. It's then validated before being used.

Other changes caused by this update are:
- Fixed a bug where the creation token was unusable due to lacking the
  user password hash
- Changed the signing method to HMAC, requiring a string for encryption
  This is mentioned in the README.md
2023-07-28 18:17:01 +01:00
Muhammad Nauman Raza
dba75dde1b feat(frontend): FiraCode as a default font as well as more fonts 2023-07-27 20:42:48 +01:00
Muhammad Nauman Raza
bf1e867040 docs(backend): improve README 2023-07-27 15:57:32 +01:00
Muhammad Nauman Raza
f9294eb780 hotfix(frontend): chat window overlapping everything
The chat window is now a simple container within the left bar
2023-07-27 13:43:03 +01:00
Muhammad Nauman Raza
c2d608e0e0 chore(frontend): move chat window to left bar (still draggable) 2023-07-27 13:21:43 +01:00
Muhammad Nauman Raza
e69afa3f75 Merge branch 'main' of github.com:devraza/ambition 2023-07-27 13:04:25 +01:00
Muhammad Nauman Raza
a8e3d0b291 refactor(frontend): everything
The player.go and ui.go files have been separated into their own
separate packages.
Additionally, all go.mod files have been modified to point to local
directories.

This change should not only clean up the frontend codebase, but also
make it easier to send/recieve data from the backend (at least
regarding the player)
2023-07-27 12:57:11 +01:00
52002e8f1e chore(backend): remove mentions of .env
This is no longer need in our implementation
2023-07-27 12:13:41 +01:00
Muhammad Nauman Raza
f800cafb1d chore(backend): polish things up a little 2023-07-26 22:09:31 +01:00
950fe47f52 Merge branch 'main' of https://github.com/devraza/ambition 2023-07-26 21:25:44 +01:00
e08adc96ae feat(backend): Create Users and Get JWT
Introducing a unified signup and login API. You can post to the /user
route with credentials (so far just name and password), and if the user
doesn't exist, we create the user and return a token. If the user does
exist, if the password inputted matches the database password, we return
a token for that user, else we return an error.

i've never wanted to kms more during a programming session
2023-07-26 21:16:25 +01:00
Muhammad Nauman Raza
2b73526e42 docs: fix a slight GIMDM 2023-07-25 11:53:36 +01:00
Muhammad Nauman Raza
5e15a03c58 feat(ui): basic chat window initialised 2023-07-24 13:45:52 +01:00
Muhammad Nauman Raza
36589b9cda chore: remove accidentally added executable 2023-07-24 13:45:13 +01:00
Muhammad Nauman Raza
ccbd906c6f chore(ui): add placeholder content for remaining tabs 2023-07-23 21:48:49 +01:00
Muhammad Nauman Raza
3cb0cc61d0 feat(ui): profile content within tabbar (within leftbar) 2023-07-23 21:37:24 +01:00
Muhammad Nauman Raza
769e90fa88 chore: font/face code improvement 2023-07-23 17:07:39 +01:00
Muhammad Nauman Raza
65c57d1d3e hotfix: bad code 2023-07-23 15:28:06 +01:00
Muhammad Nauman Raza
888bcb0404 feat(ui): tabbar within leftbar 2023-07-23 15:27:31 +01:00
Muhammad Nauman Raza
21f0e8a429 hotfix: move assets folder 2023-07-23 13:52:03 +01:00
Muhammad Nauman Raza
0575572157 chore: add assets/fonts 2023-07-23 13:50:11 +01:00
Muhammad Nauman Raza
cd0e88990c docs: fix typo 2023-07-23 09:27:58 +01:00
99471afc4a feat(frontend): basic player structure
Player has health, level, exp (which is gained constantly while online)
and ambition (which affects the rate of exp gain). More stats will be
added later. This is mostly just a test implementation. Will clean up
later.
2023-07-23 09:25:31 +01:00
2ecb20ff3a refactor(fronten): user interface
- Moved user interface code to seperate file
- Added a simple wrapper over ebitenui.UI to allow storage of colors
and such

Hopefully this makes it possible for colors to be changed by users in
the future
2023-07-23 09:24:52 +01:00
9157bfe8a1 feat(frontend): Basic Player Init
Player has health, level, exp (which is gained constantly while online)
and ambition (which affects the rate of exp gain). More stats will be
added later. This is mostly just a test implementation. Will clean up
later.
2023-07-23 09:20:48 +01:00
8b0bcef568 frontend: UI refactoring
- moved ui code to seperate file
- added a simple wrapper over ebitenui.UI to allow storage of colors
and such

Hopefully this makes it possible for colors to be changed by users in
the future
2023-07-23 07:57:28 +01:00
Muhammad Nauman Raza
d525bc8fff chore(docs): comments 2023-07-23 00:36:55 +01:00
Muhammad Nauman Raza
044f2022e7 feat: hazakura colorscheme + basic interface 2023-07-23 00:34:44 +01:00
Muhammad Nauman Raza
0b3803c8ad feat: random window titles 2023-07-22 23:40:06 +01:00
Muhammad Nauman Raza
ce42172eaf docs: update styling 2023-07-22 22:24:38 +01:00
Muhammad Nauman Raza
84580e8a78 chore: split frontend/backend into separate folders 2023-07-22 22:19:15 +01:00
Muhammad Nauman Raza
7d846987b7 docs: update roles 2023-07-22 22:15:53 +01:00
7cd8f7be12 core: UI boilerplate 2023-07-22 20:26:25 +01:00
Muhammad Nauman Raza
a5347293f4 chore: add basic project structure 2023-07-21 21:51:00 +01:00
Muhammad Nauman Raza
5f32b9ceb4 chore: remove everything 2023-07-20 22:00:44 +01:00
Muhammad Nauman Raza
41bbcb249a chore: initalise Rust project 2023-07-20 16:20:02 +01:00
Abdulmujeeb Raji
c9def010ef docs: add Dungeon Credits to Adam Khan
He still doesn't do shit
2023-07-20 16:19:43 +01:00
Abdulmujeeb Raji
013fad0422 docs: list Abdulmujeeb Raji as quest designer 2023-07-20 16:19:19 +01:00
Muhammad Nauman Raza
5851d36e1a docs: add Adam Khan to credit list
He doesn't do shit, to be honest.
2023-07-20 16:19:12 +01:00
Nightmare
d8f75a7089 docs: update README.md 2023-07-20 16:19:03 +01:00
Nightmare
4ea491e66c docs: update README.md 2023-07-20 16:18:54 +01:00
Nightmare
2968af3942 docs: update README.md 2023-07-20 16:18:43 +01:00
Nightmare
1f34280021 docs: update README.md 2023-07-20 16:18:33 +01:00
Nightmare
d7c4eaabad docs: update README.md 2023-07-20 16:18:16 +01:00
Nightmare
98ffd64413 docs: update README.md 2023-07-20 16:17:54 +01:00
5ad18b9027 chore: initialise backend
This won't be touched until a basic player prototype is implemented.
The backend itself is implemented in Go.
2023-07-20 16:17:24 +01:00
Abdulmujeeb Raji
a8ddd3d740 docs: update README.md 2023-07-20 16:17:19 +01:00