Commit Graph
51 Commits
Author SHA1 Message Date
J Francisco Rader faf4edfbc6 Tweak / Effect dependencies and Fivem-Nui-lib (#216)
* Fix Nui.send effect dependencies and upgrade lib to fixed version

* Remove log
2021-04-30 22:52:35 +02:00
Taso b14562eb9d tweak(phone): Remove FontAwesome dependency
All icons were switched to @material-ui/icons
2021-04-13 22:49:05 -04:00
Taso 71bb73b54e fix(phone/watch): Fixed in-game watch and prevent debug inject
If using the `watch` script in game, the debug injections will not occur.
2021-04-13 22:04:23 -04:00
J Francisco RaderandTaso 8dc59c47bd fix(phone): Fix subsequent rerenders & added WDYR (#209)
Fixed an issue with infinite rerendering on app routes by making it a Pure component.

Adds `why-did-you-render` for development use.

Co-authored-by: Taso <[email protected]>
2021-04-13 21:33:18 -04:00
Taso 4fceb3750b tweak(phone/deps): Remove @types/jest as we use enzyme 2021-04-13 21:24:25 -04:00
Taso 771483b7b5 fix(phone/watch): Implement watch using craco and writing to disk 2021-04-13 21:24:25 -04:00
Taso 1ef01f291b fix(phone/tests): Fixed enzyme test for React 17 2021-04-13 21:24:25 -04:00
Taso 6154dfc7a3 tweak(phone): Bumped deps & tweaked craco
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.
2021-04-13 21:24:25 -04:00
J Francisco Rader 8e79eb1345 Make use of library instead of having code duplicated (#201)
* Use fivem-nui-react-lib
2021-04-07 19:07:10 -03: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
Taso 2a4457b323 feat(phone/settings): Schema validation & Reset Settings
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.
2021-03-20 12:57:22 -04:00
Christopher f552c1212c more formatting 2021-03-02 20:45:41 +01:00
J Francisco Rader 83a093e36b Add script for getting missing keys 2021-03-01 11:18:39 -05:00
Taso 187e534e08 chore(dependencies): Cleaned up dependencies/package.json 2021-02-17 14:43:12 -05:00
Taso 68360e7619 feat(phone/useSound): Initial useSound implementation 2021-02-14 23:16:09 -05:00
Christopher 32f6f6ebcc fix(phone/build): incorrect file reference 2021-02-14 23:53:52 +01:00
Taso 1f07a469d8 Merge branch 'master' into enhance/debug 2021-02-14 17:15:01 -05:00
J Francisco Rader 8af43eca04 Fix copy config in windows (#86) 2021-02-13 14:25:43 -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 b73919c147 fix(phone/tweet): Fixed possible XSS vector
As we were parsing user input for \n in order to convert to <br> tags, a XSS vulnerability was introduced allowing for users to pass arbitrary script tags to be rendered in tweets.
2021-02-09 11:14:52 -05:00
Taso 7b6d49f661 feat(phone/webpack): Allow for use of react-devtools in game
This is dynamically added to the bundle depending on the environment. In production, react-devtools will not be bundled. Build a development bundle using `yarn build:dev`
2021-02-08 23:00:33 -05:00
J Francisco Rader 40f9555b39 Make Camera app use router (#69)
* Make Camera app use router

* Remove unused hooks

* Fucking communicate messages with camera with router

* Improved sharing in messages flow

* Fix clipboard

* Removeunused imports

* improve routing helpers

* Fix bug :D

* Fix stupid thing

* Add docs to useQueryParams hook
2021-02-06 22:24:50 +01:00
Christopher Gjelten 63aea89e2b Merge pull request #61 from project-error/feat/calling-lua-ts
Feat/calling lua ts
2021-02-03 00:00:06 +01:00
Christopher e48864c6dc feat(calling): using unix as call time 2021-02-02 23:47:43 +01:00
Taso d0de0e4bac Feat: Lerna integration with husky for precommit checks (#57)
* feat: Lerna integration with husky

* Lint-staged integration

* tweak(ci/cd): Removed prettier integration

* Added lint-staged to precommit hook call

* tweak: removed git add from lint-staged

* tweak(gitignore): Removed package.json from ignore
2021-01-18 15:17:41 -05:00
Taso a29ba86577 tweak(webpack): Added copy plugin to webpack allowing for easier build
Also changed build script name
2021-01-12 22:09:56 -05:00
Taso 73a5bab1c7 Feat: Settings localStorage state 2021-01-12 12:04:46 -05:00
Taso 8912650f0e refactor: LocalStorage state integration 2021-01-12 11:28:20 -05:00
Taso dce7528c7a Feat: Sentry for issue tracking/exception handling 2021-01-06 11:16:05 -05:00
Taso f70f6b8034 remove(husky & lint-stage: integrated into CI
These packages are no longer useful considering we have integrated them into the CI now
2020-12-13 12:27:10 -05:00
Taso 9bd927ce68 Got rid of husky precommit hook now that we have CI on github 2020-12-13 12:15:16 -05:00
Taso 58160f2207 deploy(ci): Added ci that takes care of most of husky's tasks 2020-12-13 11:57:35 -05:00
Taso 81d1d7fae7 add(phone): Added lint-staged and regen yarn.lock 2020-12-13 10:53:10 -05:00
erik-sn 2c4c54109f more error handling 2020-11-21 00:30:23 -05:00
erik-sn 3a1bd75f97 formatting 2020-10-18 13:38:01 -04:00
erik-sn e48263838f added testing for TwitterNotification 2020-10-18 13:31:01 -04:00
chip 99ab7ad208 Package for fontawesome, I think 2020-10-16 20:19:53 +02:00
chip db9f99d9c7 Installed fontawesome package 2020-10-11 15:27:17 +02:00
erik-sn 9e09ce8879 updated typescript version 2020-10-09 22:00:01 -04:00
erik-sn 845d4acd3a working client & server 2020-10-07 16:11:00 -04:00
erik-sn cff746aa38 working typescript version 2020-10-07 12:19:55 -04:00
erik-sn 46e836a913 working javascript tests
adds some arguments to unit tests to get around some windows shenanigans
and adds enzyme to the project for use in testing
2020-10-05 18:40:13 -04:00
erik-sn 6a07bd9e47 ok remove unnecessary package for real 2020-10-03 16:01:09 -04:00
erik-sn 585eb43f4e working callbacks and status updates on user interaction with the database 2020-09-26 22:26:09 -04:00
erik-sn e577b37d6b working emoji integration and workflow 2020-09-20 20:09:51 -04:00
erik-sn 2fc78df59b working media adding and removal 2020-09-20 11:51:41 -04:00
erik-sn 04473f0e14 updates to readme, updating development workflow 2020-09-14 21:04:53 -04:00
chip dde1bd6931 Feat(Contacts | Components): Contact modal | Input compoent | New dependency 2020-09-01 21:37:53 +02:00
J Francisco Rader b6b5558598 fix dev 2020-08-23 20:11:47 -03:00
J Francisco Rader 1838de04ba Add webpack and script build:resources to build into resources/html and generate manifest! 2020-08-23 19:31:09 -03:00