b965371fe5
Handle null when item hasn't been upgraded
2023-04-29 15:20:43 +07:00
6c1ac1838f
Delete on cascade, Readme, small dockerfile changes
2023-04-27 19:45:33 +07:00
Emil Nielsen
a7e7c4dbe9
UI changes moons and items
2023-04-27 13:35:13 +07:00
Emil Nielsen
87ac3c373b
UI: Tabs, full color resources, omit modals
2023-04-24 15:09:08 +07:00
01cc1d78ef
Permissions for plpython3u and add claim_boost
2023-04-22 16:34:56 +07:00
Emil Nielsen
d0bcdde4c8
Small tweaks
2023-04-22 08:25:06 +07:00
9f01712230
Fix some functions still using integers, and use division for selling res
2023-04-21 20:00:35 +07:00
40060686a0
Change to floating point numbers for prices and claims
2023-04-21 19:26:02 +07:00
d040970e97
Show import-config error message
2023-04-21 18:51:42 +07:00
b9390c18ab
Add some additional checking and clearer error messages to sql functions
2023-04-21 18:23:11 +07:00
Emil Nielsen
b7e43f3526
add utils page to reset data and load game config
2023-04-20 09:29:49 +07:00
Emil Nielsen
0668895422
refactor to use gameConfig from endpoint
2023-04-15 09:54:46 +07:00
2f809bf889
Get game config endpoint
2023-04-14 20:17:24 +07:00
46580c800e
Fix staking multiple times bug and csv import bugs
2023-04-14 15:13:41 +07:00
Emil Nielsen
96d6f83c1f
Fix avaiable storeItems
2023-04-14 15:03:44 +07:00
08b227200b
Sell resources endpoint and postgres function
2023-04-14 13:18:05 +07:00
8aa241afdd
Forgot to commit file
2023-04-11 21:36:18 +07:00
Emil Nielsen
abd3dc9895
Fix image error
2023-04-11 08:20:50 +07:00
06fe914fa6
Add a clear-data endpoint
2023-04-10 20:22:36 +07:00
e68de31a6a
Leaderboards endpoint
2023-04-10 19:37:34 +07:00
Emil Nielsen
39df55b19c
Change id on wells, storeitems and inventory items. Modify UI a bit
2023-04-09 09:18:58 +07:00
5ae726064c
Import config from Google spreadsheets into the database
2023-04-08 19:15:28 +07:00
Emil Nielsen
611494ad1c
add moon images
2023-04-07 15:34:09 +07:00
Emil Nielsen
e20775068f
refactor resourceStore
2023-04-07 14:29:29 +07:00
Emil Nielsen
b84b8eadb5
Cleanup some UI stuff
2023-04-07 08:24:41 +07:00
Emil Nielsen
595bd18b14
refactor stakingSourceView, add vertical navigation, other styling stuff
2023-04-02 09:06:16 +07:00
9b753cf103
Porting database from SQLite to PostgreSQL
...
- New Postgres table schemas
- Using Stored Procedures with transactions that validate business logic
- User Ids now use UUID
- Updated and simplified all endpoints to call the stored procedures
Notes: There are still a few things missing that broke because of the migration,
in particular, because we moved a lot of the business logic into the database,
we now require that certain data that lived in the game-config.json to be
present in the database as well, to prevent cheating and truly have a single
source of truth.
2023-03-30 14:13:30 +07:00
Emil Nielsen
63a92b90da
add storeItemId to inventory-items PUT
2023-03-25 14:53:47 +07:00
Emil Nielsen
e90c0c9809
Modify UI
2023-03-24 15:41:31 +07:00
Emil Nielsen
16eb1405e6
Add chart.js, modify StoreItems
2023-03-23 19:55:57 +07:00
Emil Nielsen
a5c2ebb0ea
Show staking countdown, refetch data
2023-03-22 14:44:59 +07:00
d110fba3ff
Return data as camelCase
2023-03-22 13:10:57 +07:00
Emil Nielsen
27bd95aa11
wip: stakingSources, startStake
2023-03-22 12:21:33 +07:00
9df27aea2d
Delete database and comment out staking_event
2023-03-22 11:07:22 +07:00
Emil Nielsen
6b7cf87fcf
Add startStake to stakingOverview
2023-03-22 08:55:00 +07:00
Emil Nielsen
a21facaa6f
Update inventoryItems when buying and upgrading
2023-03-21 13:43:22 +07:00
87a188a814
Update upgrading to use the inventory item DB id
2023-03-21 10:40:49 +07:00
Emil Nielsen
406a0e0c89
Updates to StoreItemView
2023-03-20 21:05:36 +07:00
Emil Nielsen
6ae0673db4
fix resources views
2023-03-19 10:38:24 +07:00
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
7098346b51
Fix some legacy issues in the resourceStore
2023-03-19 10:13:40 +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 Nielsen
8b10db0de5
Add the endpoints
2023-02-25 09:40:12 +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
nicoxify
988920afc0
Test ( #1 )
...
* test
* test
* test
2023-02-12 12:14:16 +07:00
Nico Li
e5c4d8eae8
Initial commit
2023-02-09 21:38:59 +07:00
Nico Li
99ac7890c0
Initial commit from Create Next App
2023-02-09 16:56:13 +07:00