mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
Feature/floating notifications calling and twitter (#112)
* Add floating notifications :O * Add phone notifications and refactor calling ui * This is unsafe * Fix controls null check * Remove go to alert * Fix phone stuck after call * Remove lazy mount for Phone * Fix open/close cl_main * Use effect for notification visibility * Remove all alerts when phone closes * Avoid re-render useNuiEvent * It works now :c
This commit is contained in:
1 parent
4633146d40
commit
f6d7a3dbe1
42 files changed
+869
-679
No files matched your search
@@ -21,100 +21,6 @@ import { useProfile } from '../hooks/useProfile';
|
||||
import ProfilePrompt from './profile/ProfilePrompt';
|
||||
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
||||
|
||||
InjectDebugData([
|
||||
{
|
||||
app: 'TWITTER',
|
||||
method: 'getOrCreateTwitterProfile',
|
||||
data: {
|
||||
profile_name: 'Angular_Dev',
|
||||
bio: 'Angular FTW',
|
||||
job: 'Googler @ Google',
|
||||
location: '1600 Amphitheatre Parkway, CA, USA',
|
||||
avatar_url: 'https://i.tasoagc.dev/i9Ig',
|
||||
},
|
||||
},
|
||||
{
|
||||
app: 'TWITTER',
|
||||
method: 'createTweetBroadcast',
|
||||
data: {
|
||||
id: 111,
|
||||
profile_id: 111,
|
||||
profile_name: 'Kidz',
|
||||
isMine: false,
|
||||
isReported: false,
|
||||
message: 'I have tweeted this because Im badass'
|
||||
}
|
||||
},
|
||||
{
|
||||
app: 'TWITTER',
|
||||
method: 'createTweetBroadcast',
|
||||
data: {
|
||||
id: 111,
|
||||
profile_id: 111,
|
||||
profile_name: 'ItsChip',
|
||||
isMine: false,
|
||||
isReported: false,
|
||||
message: 'I have tweeted this because Im even more badass'
|
||||
}
|
||||
},
|
||||
{
|
||||
app: 'TWITTER',
|
||||
method: 'fetchTweets',
|
||||
data: [
|
||||
{
|
||||
id: 59,
|
||||
message: 'XSS\n<script src="test.js">Test</script>\nBro',
|
||||
avatar_url: 'http://i.tasoagc.dev/jtKL',
|
||||
seconds_since_tweet: 500,
|
||||
isMine: false,
|
||||
updateAt: '2021-02-08 14:37:46',
|
||||
visible: 1,
|
||||
likes: 50000,
|
||||
profile_name: 'jQuery Main',
|
||||
images: 'http://i.tasoagc.dev/0xdp',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
message: 'GCPhone will never die',
|
||||
avatar_url: 'http://i.tasoagc.dev/jtKL',
|
||||
seconds_since_tweet: 500,
|
||||
isMine: false,
|
||||
updateAt: '2021-02-08 14:37:46',
|
||||
visible: 1,
|
||||
likes: 50000,
|
||||
profile_name: 'GCPhone_v9999',
|
||||
images: 'http://i.tasoagc.dev/0xdp',
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
message: 'I love angular',
|
||||
avatar_url: 'https://i.tasoagc.dev/i9Ig',
|
||||
seconds_since_tweet: 800,
|
||||
isMine: true,
|
||||
updateAt: '2021-02-08 14:37:46',
|
||||
visible: 1,
|
||||
likes: 50000,
|
||||
profile_name: 'Angular_Dev',
|
||||
images: 'http://i.tasoagc.dev/i9Ig',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
message:
|
||||
'Anyways uhm... I bought a whole bunch of shungite, rocks, ' +
|
||||
'do you know what shungite is? Anybody know what shungite is. No, no ' +
|
||||
'Suge Knight, I think hes locked up in prison.',
|
||||
avatar_url: 'http://i.tasoagc.dev/0v64',
|
||||
seconds_since_tweet: 800,
|
||||
isMine: true,
|
||||
updateAt: '2021-02-08 14:37:46',
|
||||
visible: 1,
|
||||
likes: 50000,
|
||||
profile_name: 'The_Doc',
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
const useStyles = makeStyles(() => ({
|
||||
backgroundModal: {
|
||||
background: 'black',
|
||||
@@ -188,3 +94,103 @@ export const TwitterApp = () => {
|
||||
</AppWrapper>
|
||||
);
|
||||
};
|
||||
|
||||
InjectDebugData([
|
||||
{
|
||||
app: 'TWITTER',
|
||||
method: 'getOrCreateTwitterProfile',
|
||||
data: {
|
||||
profile_name: 'Angular_Dev',
|
||||
bio: 'Angular FTW',
|
||||
job: 'Googler @ Google',
|
||||
location: '1600 Amphitheatre Parkway, CA, USA',
|
||||
avatar_url: 'https://i.tasoagc.dev/i9Ig',
|
||||
},
|
||||
},
|
||||
{
|
||||
app: 'TWITTER',
|
||||
method: 'fetchTweets',
|
||||
data: [
|
||||
{
|
||||
id: 59,
|
||||
message: 'XSS\n<script src="test.js">Test</script>\nBro',
|
||||
avatar_url: 'http://i.tasoagc.dev/jtKL',
|
||||
seconds_since_tweet: 500,
|
||||
isMine: false,
|
||||
updateAt: '2021-02-08 14:37:46',
|
||||
visible: 1,
|
||||
likes: 50000,
|
||||
profile_name: 'jQuery Main',
|
||||
images: 'http://i.tasoagc.dev/0xdp',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
message: 'GCPhone will never die',
|
||||
avatar_url: 'http://i.tasoagc.dev/jtKL',
|
||||
seconds_since_tweet: 500,
|
||||
isMine: false,
|
||||
updateAt: '2021-02-08 14:37:46',
|
||||
visible: 1,
|
||||
likes: 50000,
|
||||
profile_name: 'GCPhone_v9999',
|
||||
images: 'http://i.tasoagc.dev/0xdp',
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
message: 'I love angular',
|
||||
avatar_url: 'https://i.tasoagc.dev/i9Ig',
|
||||
seconds_since_tweet: 800,
|
||||
isMine: true,
|
||||
updateAt: '2021-02-08 14:37:46',
|
||||
visible: 1,
|
||||
likes: 50000,
|
||||
profile_name: 'Angular_Dev',
|
||||
images: 'http://i.tasoagc.dev/i9Ig',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
message:
|
||||
'Anyways uhm... I bought a whole bunch of shungite, rocks, ' +
|
||||
'do you know what shungite is? Anybody know what shungite is. No, no ' +
|
||||
'Suge Knight, I think hes locked up in prison.',
|
||||
avatar_url: 'http://i.tasoagc.dev/0v64',
|
||||
seconds_since_tweet: 800,
|
||||
isMine: true,
|
||||
updateAt: '2021-02-08 14:37:46',
|
||||
visible: 1,
|
||||
likes: 50000,
|
||||
profile_name: 'The_Doc',
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
InjectDebugData(
|
||||
[
|
||||
{
|
||||
app: 'TWITTER',
|
||||
method: 'createTweetBroadcast',
|
||||
data: {
|
||||
id: 111,
|
||||
profile_id: 111,
|
||||
profile_name: 'Kidz',
|
||||
isMine: false,
|
||||
isReported: false,
|
||||
message: 'I have tweeted this because Im badass',
|
||||
},
|
||||
},
|
||||
{
|
||||
app: 'TWITTER',
|
||||
method: 'createTweetBroadcast',
|
||||
data: {
|
||||
id: 111,
|
||||
profile_id: 111,
|
||||
profile_name: 'ItsChip',
|
||||
isMine: false,
|
||||
isReported: false,
|
||||
message: 'I have tweeted this because Im even more badass',
|
||||
},
|
||||
},
|
||||
],
|
||||
2000
|
||||
);
|
||||
Reference in new issue
Block a user