Commit Graph
51 Commits
Author SHA1 Message Date
Taso 853b335ef9 feat(phone): Added a game time indicator to top bar (#176) 2021-03-26 13:30:09 -04: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 97f5c99cc0 handle all configuration cases 2021-03-22 10:37:10 -04:00
Christopher 458839488e tweak(resources): use 'custom appMessageEvent' 2021-03-15 10:53:02 +01:00
Taso e5fac800ee refactor(server/player): Added player management system internally
This system stores loaded players in maps handled entirely by NPWD.

This should entirely remove the ESX dependency on practically everything.
2021-03-08 18:43:21 -05:00
Christopher a424a67f05 tweak(resources/main): getPlayerIdentifirs use 2021-03-07 20:39:55 +01:00
Christopher c99d0780ae feat(resources): remove all esx code, almost 2021-03-07 18:26:28 +01:00
J Francisco Rader 1a09fa57ae Fix: Workaround for ESX errors pertaining to player loading (#153)
* Set phone ready before sending any init events + Show initializing phone message if not ready yet

* Send phone ready to nui
2021-03-06 19:25:32 -05:00
Taso 605f957f9a feat(client/debug): Phone restart command (#145)
Trigger a UI restart by entering the command `phone:restart` in the F8 console.
2021-03-06 10:38:10 -05:00
Christopher f552c1212c more formatting 2021-03-02 20:45:41 +01:00
Taso 52992b7d10 chore(client): Removed unused variables 2021-03-02 13:54:32 -05:00
J Francisco Rader f6d7a3dbe1 Feature/floating notifications calling and twitter (#112)
* Add floating notifications :O

* Add phone notifications and refactor calling ui

* This is unsafe

* Fix controls null check

* Remove go to alert

* Fix phone stuck after call

* Remove lazy mount for Phone

* Fix open/close cl_main

* Use effect for notification visibility

* Remove all alerts when phone closes

* Avoid re-render useNuiEvent

* It works now :c
2021-02-23 13:19:10 -05:00
RockySouthpawandTaso 3a572cbc7b feat(client/anim): Added animation flow for calls (#104)
Co-authored-by: Taso <[email protected]>
2021-02-18 12:39:30 -05:00
Christopher db5ef05687 tweak(resources/main): fetch contacts on initalize 2021-02-17 18:36:48 +01:00
Darrian Gaylor 001f1425df Fix phone not opening with keybind 2021-02-14 14:17:07 -05:00
Taso 587185535f fix(phone/anim): Added missing phoneClose anim to handler 2021-02-10 17:46:46 -05:00
Taso 8f78423591 Merge branch 'master' into cleanup/game-scripts 2021-02-10 16:31:00 -05:00
Taso f0a2d8c77e refactor(phone/visibility): Improved organization of visibility flow 2021-02-10 14:25:00 -05:00
J Francisco RaderandTaso 81f5e27064 Remove client phoneConfig event (#73)
* Remove client phoneConfig event

* Remove unused debug

* Remove unused import

* Remove unused import

* Remove duplicated functions | fix useEffect dependency | etc

* Fix warnings

* Update phone/src/apps/twitter/components/TwitterApp.tsx

Co-authored-by: Taso <[email protected]>

Co-authored-by: Taso <[email protected]>
2021-02-10 12:04:28 -05:00
Taso 368a8c57f8 optimize(scripts/anims): Optimized and organized open/close animations 2021-02-09 18:45:48 -05:00
Taso 47e1f2950e fix(scripts/nui-callbacks): Fixed NUI callback stalls 2021-02-09 18:43:54 -05:00
Christopher eaf764cd01 feat(phone/client): fetch contacts on dailer
This is for knowing if the contact exist, so we can show the name or the phone number, and NOT open the contacts page first
2021-01-31 16:08:12 +01:00
itschip 26a4c1c31a Prettified Code! 2021-01-29 18:57:12 +00:00
Christopher 9895ea2089 tweak(calling/server|client): more history and calling 2021-01-29 19:56:00 +01:00
Christopher 5ae49f4c7a feat(calling/server): more client-side handling for calling
We need to come up with a better way of doing this
2021-01-26 21:41:28 +01:00
Taso ec1451a9aa Fix: prettier config in resources\ not being standard. 2021-01-13 20:36:03 -05:00
Taso 54daa42454 styling: Enforced styling across all files (#55) 2021-01-12 21:31:03 -05:00
Christopher 550eb8f38f feat(phone/hooks): implemented clipboard 2020-12-11 20:42:03 +01:00
Christopher f7ffd461ac feat(phone/client): fetch photos when opening camera app 2020-12-04 23:06:56 +01:00
chip b0b8a687e8 new nui callbacks for each app 2020-11-06 12:55:11 +01:00
chip 351fd96c27 (phone/client): triggering more events for note app 2020-10-30 00:14:30 +01:00
chip e1b3fe5b28 feat(bank/client): triggering events for credentials 2020-10-26 15:44:46 +01:00
chip 5dfc5a890d feat(bank): Calling events when opening phone | adding new events 2020-10-20 18:33:03 +02:00
chip 29686b9b06 fix(main): fixed how events are triggerd when opnening the phone 2020-10-20 00:47:34 +02:00
Darrian Gaylor 88f527707c Adjusted animations/cursor location 2020-10-18 20:05:03 -04:00
Christopher Gjelten 771ad147d7 Merge branch 'master' into feat/sellout-app 2020-10-18 22:08:56 +02:00
chip 68be13ed39 Feat(Main:Client): Fetching event when opening the phone 2020-10-18 21:54:47 +02:00
erik-sn 65dd1c03c2 updated formatting on cl_main.ts 2020-10-17 18:34:19 -04:00
erik-sn 11f0302fea Merge branch 'master' of github.com:Re-Ignited-Development/new-phone-who-dis into bug/mysql-connection-strings 2020-10-17 18:33:57 -04:00
erik-sn a5d1e54b56 Mysql connection strings, unit tests, prettier on server
This adds support for the other type of Mysql connection string
specified by mysql async. Support for both strings and their respective
options are necessary to support backwards compatibility of existing
server configurations.

This also adds support for jest & unit testing on the server/client and
some unit tests for some of the connection string parsing.

It runs these test and prettier in a pre-commit hook.
2020-10-17 18:14:08 -04:00
RockySouthpaw ab7390f56c Fixed animations. 2020-10-17 00:22:05 -04:00
RockySouthpaw 1f7a457762 Removed const kek 2020-10-17 00:03:40 -04:00
RockySouthpaw b769bf0cde Added some debug code 2020-10-16 21:23:52 -04:00
chip 1e3b8ce6a7 Fix(Main): Event handling 2020-10-15 18:10:20 +02:00
chip 6bd6184602 Feat(Events): Added contacts events 2020-10-15 03:18:25 +02:00
chip bd37aa5da7 Feat(Main): Sending credentials 2020-10-15 00:03:50 +02:00
erik-sn 1bb7a60e4d remove unused line in import.sql 2020-10-14 11:28:48 -04:00
erik-sn bc873e5a14 Wait -> Delay 2020-10-14 11:09:22 -04:00
erik-sn f672cd9645 fixed up client.ts 2020-10-13 22:39:48 -04:00