Commit Graph
222 Commits
Author SHA1 Message Date
Taso b8ef6b1695 Merge pull request #155 from project-error/tweak/remove-esx-code
feat(standalone): Allows for the phone to be free from framework requirements
2021-03-10 21:50:55 -05:00
Taso 08e477f360 tweak(server/players): Commented getPlayers command for debug 2021-03-10 21:49:10 -05:00
Taso 044f5ba39c chore(server/players): Unused import cleanup 2021-03-10 21:44:00 -05:00
Taso 7fd02913da Revert "tweak(server/player): Added regex replace to getIdentifierByPhoneNumber"
Reverted as to ensure current compatibility with messages app, messages
should be altered to deal with this in the future.

This reverts commit 258ea66746.
2021-03-10 21:27:21 -05:00
Taso b0e5458504 refactor(server/discord): Refactored Discord reports to use webhooks (#158) 2021-03-10 21:10:34 -05:00
Taso c6bdf4b331 fix(sellout/report): Fixed sellout discord reports 2021-03-10 21:04:59 -05:00
Taso 1801255c04 fix(server/players): Fixed public name setters 2021-03-10 17:21:36 -05:00
Taso 6dd57beae5 fix(server/players): Fixed getIdentifierFromPhoneNumber 2021-03-10 22:18:27 +00:00
Taso e20e39728a tweak(server/player): Debug tools 2021-03-10 16:44:32 -05:00
J Francisco Rader c066e1a464 Add unread count from actual participant 2021-03-10 13:27:11 -05:00
Taso 258ea66746 tweak(server/player): Added regex replace to getIdentifierByPhoneNumber
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
2021-03-08 20:35:25 -05:00
Taso 6e9c3e6d1a enhance(server/player): Several enhancements
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
2021-03-08 20:18:20 -05: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 de53b12763 feat(resources): set number as keytype for Players map 2021-03-08 22:53:00 +01:00
Christopher 7e9ad952cf fix(resources/notes): resolve fetch on deletion 2021-03-08 20:13:34 +01:00
Christopher 425c09edc9 update tsconfig 2021-03-07 21:29:16 +01:00
Christopher a424a67f05 tweak(resources/main): getPlayerIdentifirs use 2021-03-07 20:39:55 +01:00
Christopher 5d456d18c1 change to playerJoining event 2021-03-07 18:59:01 +01:00
Christopher c99d0780ae feat(resources): remove all esx code, almost 2021-03-07 18:26:28 +01:00
Christopher Gjelten 6b6080c4b2 Tweak/marketplace additions (#137)
Checks for being the OP of the listing. Calling, Message, Delete and Report. 

Updates to Locale is needed.
2021-03-07 16:30:58 +01:00
Erik 0203ebbe51 Feature/Twitter Notification Filters (#147)
Feature: Twitter notification update
2021-03-07 16:25:10 +01:00
Erik 21152fa38a [Feature] Twitter retweets (#143)
Feature: Retweets
2021-03-07 16:03:33 +01:00
9abac70427 feat/messages additions (in memory of Leonard Nimoy) (#118)
* feat(resouces/messages): broadcast messagse to participants

* feat(phone/messages): notifications for messages

* remove weird empty onNet

* reformat?

* last reformat! This pr will be squashed

* tweak(phone/messages): send groupName to notification alert

* fix identifer

* fixing notification groupName

* resbasee...i think

* feat(messages): check for unread messages

* send nui event is count > 0

* remove usless test

* import.sql update

* Refactor NotificationsProvider and fix messages notifications

* Send groupId on message broadcast

* Update phone/src/apps/messages/components/modal/Conversation.tsx

* Update phone/src/apps/messages/hooks/useMessageNotifications.ts

* Update phone/src/os/notifications/providers/NotificationsProvider.tsx

* Update phone/src/common/typings/messages.ts

* Update phone/src/apps/messages/hooks/useMessageNotifications.ts

* clean sql file

* Update resources/server/sv_messages.ts

* Fetch message groups when other person created for you

* fix sql

* Select unreadCount from messageGroups

* whatever husky again

* Add members menu and add contact in messages

* Add from group bubbles

* Fix messages scroll with new msg

* Message image menu flicker + justify bottom messages

* Improve debugging

* Add container to Slider

* Improve logger

* Fix create message

* add creator identifier to group hash

* Fix dafuq i broke

* group_id bigger varchar in column

* group_id bigger varchar in column

* Phone visibility default browser

* Add debugging

Co-authored-by: J Francisco Rader <[email protected]>
Co-authored-by: J Francisco Rader <[email protected]>
2021-03-04 18:35:33 -05:00
Christopher 6f4ee009a9 printWidth: 100 2021-03-02 21:03:06 +01:00
Christopher d27aeb3b0e 120 in printWidth since rocky got md 2021-03-02 20:56:15 +01:00
Christopher f552c1212c more formatting 2021-03-02 20:45:41 +01:00
Christopher 046447b0fb mad formatting 2021-03-02 20:41:25 +01:00
Christopher 80132e48d7 more cleanup 2021-03-02 20:13:13 +01:00
Christopher bf06c1ed3f feat(resources/marketplace): more cleanup 2021-03-02 20:05:11 +01:00
Christopher 864a6c2402 feat(resources/marketplace): added typings server side 2021-03-02 19:56:41 +01:00
Taso 95866cc51c tweak(server/logging): Added try catch and logging to calls fetch 2021-03-02 13:42:37 -05:00
Christopher Gjelten 51f9b20857 Merge branch 'master' into feat/alerts-for-apps 2021-02-28 02:00:34 +01:00
Christopher 09d397b6cf feat(resources/messages): server and client functionality for alerts 2021-02-28 01:37:22 +01:00
Christopher ec913fbef4 remove(phone/messages): remove alerts components 2021-02-28 01:35:02 +01:00
Christopher 1c81bfa7f2 fix(camera): resolve issue for deleting images 2021-02-28 00:05:07 +01:00
RockySouthpaw 54bdd07e9c Fix/number generating (#114)
* Fix number not generating on player join.

* Update import.sql

* Check for existing number

Kidz pretty much did this kek

* Added error catch to esx:playerLoaded
2021-02-27 14:14:49 -05:00
Christopher 47218e63f5 feat(phone|resources/bank): useSnackbar for alert 2021-02-26 12:48:27 +01:00
RockySouthpaw d2461bab16 Sort contacts alphabetically (#116)
Does it for contacts app and phone app.
2021-02-23 22:13:36 -05:00
Christopher e14bb5701a feat(Twitter): Remove success on create | useSnackbar 2021-02-19 21:19:00 +01:00
Christopher 5244ff3a57 feat(Marketplace): minor alerts 2021-02-19 18:26:53 +01:00
Christopher 283832f17e feat(Alerts): alerts for contacts 2021-02-19 18:26:52 +01:00
Christopher 9ebc433ac9 fix(resources/core): possible fix for generating numbers
A weird 'bug' that caused phone numbers not being generated. Hopefully changing this to the event 'playerConnecting' will fix this
2021-02-18 21:32:25 +01: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
RockySouthpaw 6be68c8e9f Fix: Call history is now sorted.
Call history Is now ordered by ID so recent calls show up first instead of last. Previously it was just at the bottom.

(Courtesy of Chip)
2021-02-16 20:57:09 -05:00
Christopher Gjelten cd5131ef57 Merge branch 'master' into feature/message-from-contacts 2021-02-16 23:46:43 +01:00
Christopher 15d7d3dcea fix(phone/messages): change how we get source | remove useEffect for parts 2021-02-16 23:33:23 +01:00
J Francisco Rader de952dc555 Remove shit 2021-02-16 17:10:46 -05:00
J Francisco Rader b93d5faee1 Redirect when new msg group is created, and use contacts to push a new message from there 2021-02-16 17:10:45 -05:00
Taso 1aa6a383ab refactor(server/source-handling): Altered how we handle source
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
2021-02-14 20:17:41 -05:00
TasoandChristopher Gjelten 211576e237 feat(server/debug): Added initial implementation of new Logger (#84)
- Logs out to a file w/ relevant meta data
- Provides better readability for end user

This should help provide better troubleshooting for both
development and end users.

This also fixes any previous catches that were attempting to print stack traces,
causing the [object Object] message to appear.

Co-authored-by: Christopher Gjelten <[email protected]>
2021-02-14 17:28:13 -05:00