4 Commits

Author SHA1 Message Date
99bc7a319f Merge feature/api
* Added backend capabilities with SQLite3
* Added routes for Next.js backend
2023-03-19 10:21:19 +07:00
Emil Nielsen
e820f1c45b Merge feature/resource_store
* Add two views to resource store

* Add the endpoints (#4)

* add handleAmountChange

* add template changes

* add components to resourceAccounts

* refactor the storeview layout a bit

* clean up some stuff, change grand total
2023-03-19 10:06:22 +07:00
Emil Andreas Nielsen
801532759d
Feature/resource yields (#3)
* Add  handleSetUpgrade function and other related stuff

* Fix select drill to upgrade

* Small refactor - apply drill on upgrade

* Refactor types - WIP

* Add handleBuy function, sort storeItems by owned

* Add tiers to storeItems

* Show equipment on moon, add radiobutton to select

* Modify types

* Cleanup some code and comments  etc.

* Add claim function to increment user balance and decrement well

* Add API to get data

* Set inventoryItem and activeTier in state

* Update stakingSource whenever inventoryItems are updated

* Disable upgrade button when mining is active

* Add initial implementation of lightbox

---------

Co-authored-by: Nico Li <nilindenau@gmail.com>
2023-02-24 13:37:07 +07:00
Emil Andreas Nielsen
0c1f15464f
Feature/homepage (#2)
* Basic UI for resources

* Style upgrades etc.

* Add template for drill

* Add moons and drill templates

* Add mining timer

* Delete comment

* Modify some styling to cards and resources

* Enhance styling on difference components

---------

Co-authored-by: Nico Li <nilindenau@gmail.com>
2023-02-12 12:40:35 +07:00