Commit Graph
405 Commits
Author SHA1 Message Date
Taso 3031e650e3 cleanup(server/marketplace): General cleanup of marketplace
Tweaked SQL tables to reference 'marketplace' and not 'sellout'

Removed if/else in favor of if/return
2021-03-16 16:24:27 -04:00
Taso 23ef9b8cd6 chore(server/photo): Added try/catch to missing sql query 2021-03-16 16:24:27 -04:00
Taso 598bcd2eb3 chore(server/notes): Removed redundant pSource call 2021-03-16 16:24:27 -04:00
Taso 78961b788f tweak(server/messages): General cleanup changes and added missing docs
I personally don't like if else chains, so changed to if checks
2021-03-16 16:24:27 -04:00
Taso adf9758d9f tweak(server/calls): Tweaked call handling
Added Sanity checks

Switched timestamp creation to server
2021-03-16 16:24:27 -04:00
Christopher Gjelten bc8a89d825 Update discord.ts 2021-03-16 16:55:11 +01:00
Christopher 458839488e tweak(resources): use 'custom appMessageEvent' 2021-03-15 10:53:02 +01:00
Christopher 5c9f36f754 feat(resource): messageEvent for each app 2021-03-15 10:52:11 +01:00
Christopher 4045acc162 yet again, we fuck off with typings 2021-03-15 10:22:12 +01:00
Taso f0c5e5101e chore(typings): Moved common typings to root dir 2021-03-14 15:19:30 -04:00
Taso 378830245d chore(server/players): Removed unused imports & misc debug logs 2021-03-14 15:07:04 -04:00
Christopher b9fbc067c6 feat(resources/call): check if receiver of call is online 2021-03-11 22:21:53 +01:00
dependabot[bot] 3ec6e5a6ae chore(deps): bump elliptic from 6.5.3 to 6.5.4 in /resources
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <[email protected]>
2021-03-11 03:08:33 -05:00
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
Christopher 4c8902f16a remove unused token
no this is not valid anymore
2021-03-10 20:51:29 +01: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
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
Taso da5694863a tweak(sql): Moved import.sql to resource root 2021-03-05 11:45:11 -05: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
dependabot[bot] 5969d33dc3 chore(deps): bump axios from 0.21.0 to 0.21.1 in /resources (#136)
Bumps [axios](https://github.com/axios/axios) from 0.21.0 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.0...v0.21.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 22:54:05 -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 9584d2864e fixed husky 2021-03-02 20:33:09 +01:00
Christopher 91cbb8356f husky works now 2021-03-02 20:30:08 +01:00
Christopher 1c39a48c30 fuck husky 2021-03-02 20:26: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