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`
This updates our craco config to match our current custom webpack build rather than having to eject. This also bumps several of our dependencies that were outdated for React 17.
* 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
Tweaked root package.json scripts to better improve dev experience.
* Install npm dependencies for both packages using `yarn bootstrap` in root directory
* Build both NUI and game scripts using `yarn build` in the root directory.
* Precommit git hook references script rather than global pretty-quick
* 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
You can now reset your settings to default using the action in the Settings App
Setting schema validation has been added that will temporarily reset to default settings if
the JSON string contains unexpected values. A alert will pop up informing the user
that they should reset to default settings using the action in the settings app,
as a permanent solution.
Time has been changed to a relative format. Locale specifics are pending
merge of #168.
Several typos have been fixed where "DAILER" was referenced instead of
"DIALER"
A translation key was added for when a user has no call history.
The input box has been unlocked so users can use their keyboard directly
rather than using the dial pad.
I wasn't sure what the comment was referring to, but changed this to a
standard top offset, and it fixed a issue with the transform being
screwed up between tweets.
Reverted as to ensure current compatibility with messages app, messages
should be altered to deal with this in the future.
This reverts commit 258ea66746.
Added a regex replace to match the old signature for this function. Also
migrated messages to use the new util function rather than a locally
defined query
Attach a readonly username property to Player class
Implement setters/getters for Player class to ensure future
compatibility for servers who implement a character switching system
Attach a fetch argument to getIdentifierByPhoneNumber that will force a
DB query if player is not online
These changes are made in case source is not guranteed to remain the same
Due to how JS should operate, this shouldn't be an issue but this just ensures that