Commit Graph
283 Commits
Author SHA1 Message Date
Christopher 054f89c03d fix(phone): fixed? 2021-05-20 18:29:01 +02:00
Christopher 2f0f83a17e fix(resources): load config when player spawns
this is a solution for standalone
2021-05-20 16:42:34 +02:00
Christopher 346d194e97 fix(resources): use database config for sql queries 2021-05-16 02:39:19 +02:00
Christopher f89ffc3060 fix(init): remove player/ui ready events 2021-05-16 02:20:17 +02:00
Christopher Gjelten 0134b9052c Merge branch 'master' into cleanup/config 2021-05-16 01:57:30 +02:00
Christopher 46484be9bc fix(calls): check if player does not exist --no-verify 2021-05-15 05:08:51 +02:00
Christopher aa5eb4be2d fix(resources/calls): emit events for start and accepting calls 2021-05-09 15:18:18 +02:00
Christopher b92cf0d6fa fix(resources/messages): fix coercion comparsion 2021-05-09 15:15:20 +02:00
Taso 1fe8541476 fix(server/players): Handle new player event in controller
For some reason this event actually lacked the new player handle
2021-05-04 23:32:48 -04:00
Christopher 4f658181d2 fix(resources/server): fix imports 2021-04-26 17:07:57 +02:00
Christopher 10e28b911e refactor(resources/photo): refactor photos 2021-04-21 14:34:07 +02:00
Christopher 3470700fc1 fix(resources/messages): actaully use the class property 2021-04-21 14:18:45 +02:00
Christopher 8efcf2e5b5 refactor(resources/messages): refactor messages 2021-04-21 14:01:10 +02:00
Christopher 0df1c123b0 feat(resources): refactor marketplace 2021-04-19 19:13:56 +02:00
Taso 0de2495bfa tweak(server): Add some service instantiation logs 2021-04-18 15:38:51 -04:00
Taso ad7adcdeb6 fix(server): Actually reference PlayerService method 2021-04-18 15:38:51 -04:00
Taso af9ff9c92f fix(server): Actually import the correct controllers 2021-04-18 15:38:51 -04:00
Taso 8af7530f18 fix(server/notes): Temporarily use old resp format 2021-04-18 15:38:51 -04:00
Taso 635dc907ce fix(server/contacts): Use old response structure for time being 2021-04-18 15:38:51 -04:00
Taso 2dafbcc13f fix(server): Fix server's referencing old player system 2021-04-18 15:38:51 -04:00
Taso 51b5620866 feat(net-events): Initial opinionated promise wrapper around net events
Lets see how I & the rest of the team feel about this specific standard and we can tweak it from there.
2021-04-18 15:38:51 -04:00
Taso c94c69c646 refactor(server/contacts): Implement singleton architecture 2021-04-18 15:38:51 -04:00
Taso 0bb20fff31 refactor(server/notes): Implement singleton architecture
Also trying something out with the response structure on the server to cut down on redundant calls.
2021-04-18 15:38:51 -04:00
Taso d93bdd20d8 tweak(server/calls): Tweaked structure and added enum constants 2021-04-18 15:38:51 -04:00
Taso b051ae9fac tweak(server/player): Tweaked structure slightly 2021-04-18 15:38:51 -04:00
Taso bf95ccb06b refactor(server/calls): Calls singleton architecture 2021-04-18 15:38:51 -04:00
Taso bb7d938b07 refactor(server/player): Player singleton architecture 2021-04-18 15:38:51 -04:00
Taso e01fa0ab0a WIP 2021-04-18 15:38:50 -04:00
Taso 949ea4ba4b tweak(player): Altered PLAYER_IS_READY event to emit a bool
This will set the client var to true when NPWD loads a player and false when NPWD unloads a player.
2021-04-18 15:38:50 -04:00
Taso 268bd4f4a4 refactor(server/players): Take a different approach to multichar
This changes how multicharacter support is implemented entirely.

Instead there are now events for creating a new player & unloading a player. These should be called whenever a character is switched. Documentation will be added for `npwd:newPlayer` & `npwd:unloadPlayer`
2021-04-18 15:38:50 -04:00
Taso 2ec049ca12 fix(server/players): Aliased global.exports 2021-04-18 15:38:50 -04:00
Taso db03394487 feat(player/npwd): Update identifier & name
Still need to include a public facing phone number update
2021-04-18 15:38:50 -04:00
Taso dd3eac4a0e tweak(config): Config var & send as event method
config -> ResourceConfig for readability and the resource config in NUI is now being referenced consistently from state so it can be referenced at runtime and not compile time.

Also removes the need to copy the config before using `cp`
2021-04-13 22:07:22 -04:00
Taso 8ce6ec7559 fix(config): Fixed typos in resource config 2021-04-13 22:06:43 -04:00
Taso 390319deda fix(types): Fixed incorrectly referenced type 2021-04-11 10:32:31 -04:00
Taso b5fca6b35b cleanup: Recoil State Type Safety + Misc Cleanup (#189)
* chore(phone/settings): Removed unused state

* cleanup(phone/photos): Added type safety to photo state

* tweak(phone/marketplace): Added type safety to marketplace state

* chore(phone/match): Removed unnecessary console.log

* tweak(phone/messages): Added type safety to messages state

Also fixed ESLint warning for exported anonymous hook in useMessages.ts

* tweak(phone/match): Added type safety to match state

* tweak(phone/dialer): Cleanup & type safety for state

Renamed some types to better represent their data

* cleanup(phone/gen): Added NUI event enums for phone events

* tweak(phone/contacts): Type safety for contacts state & variable rename

Renamed and type variable in setFilteredContacts to better represent its use

* tweak(phone/gen-state): Added type-safety to gen phone global state

* tweak(phone/settings): Type safety for settings state

* tweak(phone/photos): Tweaked type for photo referral

* fix(phone/notification-comp): Fix reference to old theme config

* chore(phone/hooks): Remove keyboard service

Removed as this was unused and ESLint was not happy with it

* chore(phone): Cleaned up eslint warnings

No more warnings hooray!

* tweak(phone): Set time in dev mode

* fix(phone): Remove useNuiService that appeared somehow

* fix(phone/gallery): Fixed missing import for gallery

* Revert removing the keyboard service as this is built upon in another PR

This reverts commit 82d12255a84e918da087d988b599af98ce1fe54d.

* fix(phone/keyboard): Add useKeyboardService hook back to Phone.tsx

* fix(phone/gallery): Fix and standardized GalleryPhoto type
2021-04-11 10:01:38 -04:00
Taso a880ae66ea feat(config): Allow config to be edited without rebuild 2021-04-11 09:38:20 -04:00
J Francisco Rader b97cc4102d Feature / Add loading state to camera app (#200)
* (feat/camera-loading): Add loading state to camera app

* Fix imports + Add timeout

* Use actual function :D
2021-04-10 16:19:25 -03:00
J Francisco Rader d315d72e93 Fix first time login 2021-04-01 11:42:28 -03:00
J Francisco Rader 107dc43624 Improve messages error handling (#181)
* Improve messages error handling

* Add types to getPlayerFromIdentifier function

* Add phone validation regex to message group form

* Add correct alert types to enum

* Improve locale

* Improve error message for unregistered numbers
2021-03-29 18:55:27 -04:00
Christopher Gjelten a88286f97a Improve/marketplace (#184)
Overall fixes for sellout => marketplace.
2021-03-28 04:20:12 +02:00
Erik 6b865f2e73 Feature/tinder (#179)
* basic framework for match/tinder

* working version of swiping

* working version of profile editing

* introducing backend

* working matching system

* working profile updating

* fix all linting issues

* updated events to Enum

* working profile generation

* documentation updates

* general PR feedback

* working profile loading, matches show matchedAt

* slight modification to event strings

* added sql imports
2021-03-26 13:29:51 -04:00
Taso 0f61088999 refactor(events): Events are now tied to a common enum typings (#167)
* chore(scripts/twitter): Refactored twitter to use event enums

* chore(scripts/marketplace): Refactored marketplace to use event enums

* chore(scripts/messages): Refactored messages to use event enums

* chore(scripts/contacts): Refactored contacts to use event enums

* chore(scripts/calls): Refactored calls to use event enums

* chore(scripts/notes): Refactored notes to use event enums

* chore(scripts/photos): Refactored photos to use event enums

* chore(scripts/bank): Refactored bank to use event enums

* chore(scripts/phone): Refactored phone to use event enums

* chore(events): Removed old events object

* refactor(phone/nui-events): Attached NUI events to respective enum

* tweak(event-enums): Added npwd prefix to all events

* tweak(phone/serve): Added craco to override CRA without eject

Also bumped react-scripts to 4.0.1, with seemingly no issues

* fix(typings/twitter): Fixed method enums for twitter
2021-03-22 13:37:07 -04:00
Kire c8f680fdfb update for PR feedback 2021-03-22 10:37:10 -04:00
Kire 21a2f8912d initial PR review changes 2021-03-22 10:37:10 -04:00
Kire 97f5c99cc0 handle all configuration cases 2021-03-22 10:37:10 -04:00
Christopher 9261025b4f fix typo = 2021-03-22 10:58:54 +01:00
J Francisco Rader 0ec2b682e7 Messages bugfix again :D (#164)
* Handle offline messages | Fetch messages when broadcasted | Fetch message groups

* Fetch messages on notification click

* Dont fetch groups if duplicate group

* Only submit new message on click submit

* Fix infinite loading when duplicated group is creatded

* Fix infinite loading when group already existed

* Make code prettier

* Centralize fetch messages on goToConversation

* Remove duplicated event

* Improve message groups mapping to include yourself for unreadCount + Fix redirection after adding contact + General improvements

* Remove conflicts

* Fix media paths
2021-03-18 23:01:54 -03:00
Taso a244183976 fix(server/types): Fixed type on Tweet create sql resp 2021-03-16 16:24:27 -04:00
Taso e01057d818 refactor(server/tweets): Slight tweaks to twitter handling on server 2021-03-16 16:24:27 -04:00