Commit Graph
36 Commits
Author SHA1 Message Date
Dylan Mld 94633e53a6 feat(resources): added support for identifier prefix for older esx versions. (#244) 2021-06-09 19:08:26 +02:00
Taso 44a9595463 refactor(notes): Refactor to new promise event format 2021-06-08 23:10:16 -04:00
Taso 5e225ca736 tweak(marketplace): Tweak marketplace to match current fetching std 2021-06-08 16:35:41 -04:00
Taso 3df2f88759 refactor(server/marketplace): Refactor to use promise events 2021-06-08 15:46:57 -04:00
Taso 4afa9c691b refactor(phone/marketplace): Refactor state management and fetching 2021-06-08 15:46:39 -04:00
Taso 51d8aa6322 types(contacts): Cleanup unused types 2021-06-08 15:36:56 -04:00
Taso d036243d64 refactor(contacts): Refactor contacts to efficient data fetching 2021-06-08 14:58:05 -04:00
Taso dcb7556edc tweak(resources/promise-events): Tweak promise event resp and req types 2021-06-08 12:06:52 -04:00
Jan Lecoutere 870aeda3c3 Disable walking when an inputfield is focused (#234)
* feat(phone) Disable walking when an input is focused

* refactor(phone) renamed var & replaced copy paste code

Instead of copying the code it now uses a custom hook

* refactor(phone/input): removed useMemo from hook

* style(phone/input): changed indentation to spaces & added de-structured import
2021-05-24 12:22:00 -04: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 8efcf2e5b5 refactor(resources/messages): refactor messages 2021-04-21 14:01:10 +02:00
Taso 046aeffb76 fix(phone/marketplace): Fix open fetch event 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 b684656379 feat(server/types): Play around with a standardized resp type 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 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 8ce6ec7559 fix(config): Fixed typos in resource config 2021-04-13 22:06:43 -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
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 e70c540ce8 Fix fetch on initialize (fixing notifications too) (#202)
* Fix fetch on initialize (fixing notifications too)

* Add multiline support to messages input field
2021-04-08 10:53:12 -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 c5115777c5 Merge pull request #177 from project-error/feat/bank-enums
Feat(phone): Update to use all enums.
2021-03-27 17:20:31 +01: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
Christopher a6f98d7ac0 update marketplace enums 2021-03-25 13:07:07 +01:00
Christopher 5ce6cf2d4a update notes enums 2021-03-25 12:53:18 +01:00
Christopher 2e4d752cd3 update conatct enums 2021-03-25 11:42:44 +01:00
Christopher 2cd3e9e93d update dial events 2021-03-25 11:31:05 +01:00
Christopher 98efed4e64 fix bank enums 2021-03-24 19:02:02 +01:00
Christopher de10ce92b2 fix(bank): update all events 2021-03-22 23:15:02 +01: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
Erik a52ffc4e79 Feature/twitter refresh (#160)
* receive and process broadcasted tweets to the clients

* removing profile fetch and cleaning up unused functions

* defend against null profile

* move defenseive check to top pof notifications

* fix bug where delete was visible for non owners

* remove polling implementation
2021-03-20 18:17:14 -04:00
Christopher 9d2aeddd4b clean up bank hook 2021-03-15 10:13:25 +01:00
Taso f0c5e5101e chore(typings): Moved common typings to root dir 2021-03-14 15:19:30 -04:00