Code Monkey home page Code Monkey logo

gcphone-rewritten's Introduction

Hey there ๐Ÿ‘‹

Franco's github stats

gcphone-rewritten's People

Contributors

aultra avatar axozer avatar coach1337 avatar dependabot[bot] avatar dkden7e avatar dmackgl avatar dogrocker avatar driftkingevo avatar fantastic-dave avatar fbfezz avatar github-actions[bot] avatar manueljlz avatar nichogx avatar pawsative avatar sw1ft avatar yagizher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gcphone-rewritten's Issues

NavigationDuplicated: Avoided redundant navigation to current location: "/".

Sentry Issue: APP-2

NavigationDuplicated: Avoided redundant navigation to current location: "/".
  at createRouterError (webpack-internal:///8345:1950:15)
  at createNavigationDuplicatedError (webpack-internal:///8345:1920:15)
  at HashHistory.confirmTransition (webpack-internal:///8345:2213:18)
  at HashHistory.transitionTo (webpack-internal:///8345:2145:8)
  at HashHistory.push (webpack-internal:///8345:2589:10)
...
(8 additional frame(s) were not displayed)

GC Phone Twitter image URL

Is your feature request related to a problem? Please describe.
it is a bit tiring to be manually copying a link from an image, which could enable the function to directly copy and paste the link in "Change avatar (URL) (in Twitter app)"

Describe the solution you'd like
You can add the esx_menu instead of the actual modal. Or just enable the CTRL + C CTRL + V

Describe alternatives you've considered
Enable the CTRL + C CTRL + V

[BUG] Phone doesn't show up

Describe the bug
When I press F1 the map gets big and nothing more happen, there no errors in the consol

To Reproduce
Steps to reproduce the behavior:

  1. F1
  2. Map gets big

Expected behavior
Map gets big

Screenshots
image

FiVEM(please complete the following information):

  • SaltyChat

Additional context

[BUG]

Describe the bug
Unable to send messages or receive messages

To Reproduce
I just try to send message but it doesnt send it and gives me error

Expected behavior
I expected the message to be sent

Screenshots
https://gyazo.com/dace22634e9d2aa2fa3a8a64d25191c5

FiVEM(please complete the following information):
I use mumble-voip and the newest artifact

Additional context

[BUG] Click Mouse

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Settings'
  2. Click on 'Enable Mouse Mod (true)'
  3. i tried to set the mode to false and nothing happens

Expected behavior
Set mouse mod in false ?

Screenshots
I dont have sorry

FiVEM(please complete the following information):

  • Artifact [sorry, i dont have my version.]
  • Voice Software [Mumble Voip]

[BUG, AND BUG FIX]

I found a solution to fix bugs:

  • phone animation when u get message
  • calling people

I don't know why but you need to delete if hasPhone() then in line 331

and replace event in line 441

RegisterNetEvent("gcPhone:waitingCall")
AddEventHandler("gcPhone:waitingCall", function(infoCall, initiator)
  SendNUIMessage({event = 'waitingCall', infoCall = infoCall, initiator = initiator})
  if initiator == true then
    PhonePlayCall()
    if menuIsOpen == false then
      TooglePhone()
    end
  end
end)

Also i found a new bug, when u have phone open and u receive a message - animation will trigger... dont know how to fix it

Text/Twitter/Call Notifications

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
I think a nopixel like call/text/tweet notification would be cool. Where the phone slightly pops up enough to see the drop down from the top of the phone with the notification.

[BUG] Call not working

Hello,

Since yesterday I have a problem when I want to make the action of calling.

When I want the old action to call (by clicking on the button) nothing happens and I turned everything around.

I did the test with 4 different phones, 4 different server bases, one of which was empty and also 3 different artifacts and nothing ever changed.

I have no errors, nothing that can point me to this problem that only my friends and I encounter.

Do you have a solution?

Thank you for reading and looking forward to your answer. Thank you in advance.

UI bug[BUG]

Describe the bug
Hi guys how you doing? I get some UI errors (IN-GAME) after try the npm run build command, Looks like the bundle is not correct or (also a possibility) I'm doing something bad in the build process. Have a good day guys!

To Reproduce
Steps to reproduce the behavior:

  1. Build the project
  2. Use HTML folder in your fivem server
  3. Try to open contacts or something like that
  4. Press F8 and see those javavascript errors.

Expected behavior
The UI should render in the phone

Screenshots
image

Additional context
No more additional context

Imgur implementation

Is your feature request related to a problem? Please describe.
Since the actual api link was removed, maybe you can implement the same functionality with this docs: https://apidocs.imgur.com/

Describe the solution you'd like
You can use this file as a good "example": https://gist.github.com/eirikb/7404666 . But obviously without using jquery because (like) it won't be necessary since we have vue tools and axios method. After implement this approach, you can include in the config file the client ID, the cliente secret, the token and the refresh token to generate the URL.

Describe alternatives you've considered
Probably another solution will be that each user create a self-hosted image server, with nodeJS or Java.

Refactor index.js:src_htmlPhone/src/router/index.js

I've selected index.js:src_htmlPhone/src/router/index.js for refactoring, which is a unit of 103 lines of code. Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Short Units of Code guideline rating! ๐Ÿ‘

Here's the gist of this guideline:

  • Definition ๐Ÿ“–
    Limit the length of code units to 15 lines of code.
  • Whyโ“
    Small units are easier to analyse, test and reuse.
  • How ๐Ÿ”ง
    When writing new units, don't let them grow above 15 lines of code. When a unit grows beyond this, split it in smaller units of no longer than 15 lines.

You can find more info about this guideline in Building Maintainable Software. ๐Ÿ“–


โ„น๏ธ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the ๐Ÿ”ฒ next to them. The risk profile below the candidates signals (โœ…) when it's enough! ๐Ÿ


Good luck and happy coding! :shipit: โœจ ๐Ÿ’ฏ

[BUG] Contact UI

Describe the bug
UI interface is bug when "create a new contact"

To Reproduce
Steps to reproduce the behavior:

  1. Go to Menu
  2. Click on Contact
  3. Click on "New Contact"
  4. See the bug

Expected behavior
Input and labels should render with a friendly space between them

Screenshots
image

Additional context
The problem should be solved after remove "absolute" value for position property in:
image

But I don't know if you use the same CSS identifier for other components. After removing absolute:
image

[BUG]

Mesagges (dispatch) works only for Police, EMS doesn't work.
Where can I find event which create this message?

Jobs App

Would be great to have an app to join Jobs from instead of using other job listing scripts.

[BUG] SaltyChat

Describe the bug
From reading SaltyChat Documentation and doing a quick code review, the current way is not a valide use case.

EstablishCall
EndCall

Are both server side export, so should not be able to be called from client side, and should not be called twice should only be triggered once.

Solution
On call accept call server side trigger, send over user id's and trigger the export, same goes for ending call.

TypeError: _this5.newTweet is not a function

Sentry Issue: APP-T

TypeError: _this5.newTweet is not a function
  at _callee3$ (webpack-internal:///5757:414:24)
  at tryCatch (webpack-internal:///5666:63:40)
  at Generator.invoke [as _invoke] (webpack-internal:///5666:293:22)
  at Generator.eval [as next] (webpack-internal:///5666:118:21)
  at asyncGeneratorStep (webpack-internal:///2137:6:24)
...
(8 additional frame(s) were not displayed)

Notification sound not working[BUG]

*Describe the bug
Twitter, message notification sound not working

To Reproduce
Steps to reproduce the behavior
1 try to send message .
2 try to send distress signal
Message is coming currently but no notification sound

**Expected.

[BUG] Notification animation not consistent

Describe the bug
Testing the notifications I realize the animations aren't consistent in all the zooms.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Settings
  2. Click on Zoom
  3. Change the zoom
  4. Close the phone
  5. Run testnotification in F8
  6. Change the zoom
  7. Run testnotification again
  8. Check the difference between both

Expected behavior
Notification animation consistent in all zooms

Screenshots
If applicable, add screenshots to help explain your problem. See the difference in the trash bins
image
image

FiVEM(please complete the following information):

  • Artifact 3674
  • Voice Software Mumble-Voip

Additional context
Add any other context about the problem here.
None

Using phone booths

Unable to use phone booths by pressing E, an example of the message that comes up when near a phone booth.
Also unable to use the police department phone.

[BUG]

Describe the bug
When trying to call someone, the person will not get a notification at all of the incoming call and this error appears clientside.
SCRIPT ERROR: @gcphone/client/client.lua:37: attempt to call a nil value (local 'cb')
handler client/client.lue: 433

To Reproduce
Steps to reproduce the behavior:
Attempt to call someone

Expected behavior
Other person's phone to ring and give a notification

Screenshots
If applicable, add screenshots to help explain your problem.

FiVEM(please complete the following information):

  • Artifact: Latest (as of 4/6/21)
  • Voice Software TokoVoip

Additional context
None

[BUG] Race menu

When i open race menu its fully blank i can see just Header.
Can't create race etc... also can leave menu only with f1.

TypeError: Cannot read property 'id' of undefined

Sentry Issue: APP-3

TypeError: Cannot read property 'id' of undefined
  at _callee$ (webpack-internal:///1040:690:63)
  at tryCatch (webpack-internal:///5666:63:40)
  at Generator.invoke [as _invoke] (webpack-internal:///5666:293:22)
  at Generator.eval [as next] (webpack-internal:///5666:118:21)
  at asyncGeneratorStep (webpack-internal:///2137:6:24)
...
(18 additional frame(s) were not displayed)

Bug camera

Hello,
If you are in the camera app and you then close your phone with esc you stay in the camera position and you have to restart the script.

TypeError: Cannot read property 'toLowerCase' of undefined

Sentry Issue: APP-X

TypeError: Cannot read property 'toLowerCase' of undefined
  at Store.addTweet (webpack-internal:///7776:1127:90)
  at Array.wrappedActionHandler (webpack-internal:///629:796:23)
  at Store.dispatch (webpack-internal:///629:488:15)
  at Store.boundDispatch [as dispatch] (webpack-internal:///629:393:21)
  at PhoneAPI.ontwitter_newTweet (webpack-internal:///9265:1612:37)
...
(1 additional frame(s) were not displayed)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.