mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
mock data
This commit is contained in:
1 parent
c2456708eb
commit
96e5f1a46d
1 file changed
+25
-31
+25
-31
@@ -21,8 +21,30 @@ import { useTwitterService } from "./apps/twitter/hooks/useTwitterService";
|
|||||||
import { useSelloutService } from "./apps/sellout/hooks/useSelloutService";
|
import { useSelloutService } from "./apps/sellout/hooks/useSelloutService";
|
||||||
import { useBankService } from './apps/bank/hooks/useBankService';
|
import { useBankService } from './apps/bank/hooks/useBankService';
|
||||||
import { useNotesService } from "./apps/notes/hooks/useNotesService";
|
import { useNotesService } from "./apps/notes/hooks/useNotesService";
|
||||||
|
import { usePhotoService } from "./apps/camera/hooks/usePhotoService";
|
||||||
|
|
||||||
//These events are just for testing. Comment it out before building.
|
//These events are just for testing. Comment it out before building.
|
||||||
|
setTimeout(() => {
|
||||||
|
window.dispatchEvent(
|
||||||
|
new MessageEvent("message", {
|
||||||
|
data: {
|
||||||
|
app: "CAMERA",
|
||||||
|
method: "setPhotos",
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
image: 'https://i.imgur.com/OO8wx6Z.jpg',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
image: 'https://i.imgur.com/pqGBiST.jpg'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.dispatchEvent(
|
window.dispatchEvent(
|
||||||
new MessageEvent("message", {
|
new MessageEvent("message", {
|
||||||
@@ -35,6 +57,8 @@ setTimeout(() => {
|
|||||||
);
|
);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.dispatchEvent(
|
window.dispatchEvent(
|
||||||
new MessageEvent("message", {
|
new MessageEvent("message", {
|
||||||
@@ -160,37 +184,6 @@ setTimeout(() => {
|
|||||||
)
|
)
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
setTimeout(() => {
|
|
||||||
window.dispatchEvent(
|
|
||||||
new MessageEvent("message", {
|
|
||||||
data: {
|
|
||||||
app: "CONTACTS",
|
|
||||||
method: "setContacts",
|
|
||||||
data: [
|
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
number: "345-4366",
|
|
||||||
display: "chip",
|
|
||||||
avatar: 'https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Rotating_earth_%28large%29.gif/200px-Rotating_earth_%28large%29.gif'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 2,
|
|
||||||
number: "456-4366",
|
|
||||||
display: "shit",
|
|
||||||
avatar: ''
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 3,
|
|
||||||
number: "123-4366",
|
|
||||||
display: "rocky",
|
|
||||||
avatar: 'https://i.imgur.com/B8ta5Aa.jpeg'
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}, 1000);
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.dispatchEvent(
|
window.dispatchEvent(
|
||||||
new MessageEvent("message", {
|
new MessageEvent("message", {
|
||||||
@@ -233,6 +226,7 @@ function Phone() {
|
|||||||
useSelloutService();
|
useSelloutService();
|
||||||
useBankService();
|
useBankService();
|
||||||
useNotesService();
|
useNotesService();
|
||||||
|
usePhotoService();
|
||||||
|
|
||||||
if (visibility === false) {
|
if (visibility === false) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in new issue
Block a user