refactoring
This commit is contained in:
parent
d96bf657e0
commit
16c49e9fba
@ -3,6 +3,8 @@ const mockData = [
|
||||
id: 1,
|
||||
avatar: "",
|
||||
displayName: "Ilya Genkin",
|
||||
userType: "Power user",
|
||||
role: "owner",
|
||||
status: "Online",
|
||||
platform: "Windows 10",
|
||||
browser: "Chrome 120",
|
||||
@ -14,12 +16,40 @@ const mockData = [
|
||||
page: "http://192.168.0.239/wizard",
|
||||
tenantId: 1,
|
||||
userId: "66faa6e4-f133-11ea-b126-00ffeec8b4ef",
|
||||
sessions: [
|
||||
{
|
||||
id: 1,
|
||||
platform: "Windows 10",
|
||||
browser: "Chrome 120",
|
||||
country: "Russia",
|
||||
city: "Kstovo",
|
||||
date: "2023-12-26T17:13:28+00:00",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
platform: "Mac OS 14.1.2",
|
||||
browser: "Safari 17",
|
||||
country: "Russia",
|
||||
city: "Kstovo",
|
||||
date: "2023-12-26T17:13:28+00:00",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
platform: "iOS 17 Apple iPhone",
|
||||
browser: "Mobile Safari 17",
|
||||
country: "Russia",
|
||||
city: "Kstovo",
|
||||
date: "2023-12-26T17:13:28+00:00",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
avatar: "",
|
||||
displayName: "Timur Aliev",
|
||||
status: "Online",
|
||||
userType: "Room admin",
|
||||
role: "admin",
|
||||
platform: "Mac OS 14.1.2",
|
||||
browser: "Safari 17",
|
||||
country: "Uzbekistan",
|
||||
@ -30,12 +60,24 @@ const mockData = [
|
||||
page: "http://192.168.0.239/wizard",
|
||||
tenantId: 1,
|
||||
userId: "66faa6e4-f133-11ea-b126-00ffeec8b4ea",
|
||||
sessions: [
|
||||
{
|
||||
id: 1,
|
||||
platform: "Windows 10",
|
||||
browser: "Chrome 120",
|
||||
country: "Uzbekistan",
|
||||
city: "Tashkent",
|
||||
date: "2023-12-26T17:13:28+00:00",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
avatar: "",
|
||||
displayName: "Aleksei Safronov",
|
||||
status: "8 minutes ago",
|
||||
userType: "Room admin",
|
||||
role: "user",
|
||||
platform: "Windows 10",
|
||||
browser: "Chrome 119",
|
||||
country: "Armenia",
|
||||
@ -46,11 +88,23 @@ const mockData = [
|
||||
page: "http://192.168.0.239/wizard",
|
||||
tenantId: 1,
|
||||
userId: "66faa6e4-f133-11ea-b126-00ffeec8b4eb",
|
||||
sessions: [
|
||||
{
|
||||
id: 1,
|
||||
platform: "Windows 11",
|
||||
browser: "Chrome 120",
|
||||
country: "Armeni",
|
||||
city: "Yerevan",
|
||||
date: "2023-07-26T17:13:28+00:00",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
displayName: "Dmitry Vanyukov",
|
||||
status: "3 hours ago",
|
||||
userType: "Room admin",
|
||||
role: "user",
|
||||
platform: "Mac OS 14.1.2",
|
||||
browser: "Safari 15",
|
||||
country: "Russia",
|
||||
@ -61,11 +115,23 @@ const mockData = [
|
||||
page: "http://192.168.0.239/wizard",
|
||||
tenantId: 1,
|
||||
userId: "66faa6e4-f133-11ea-b126-00ffeec8b4ec",
|
||||
sessions: [
|
||||
{
|
||||
id: 1,
|
||||
platform: "Mac OS 13.4.2",
|
||||
browser: "Safari 15",
|
||||
country: "Russia",
|
||||
city: "Kuznechikha",
|
||||
date: "2023-08-26T17:13:28+00:00",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
displayName: "Elizabeth Rayen",
|
||||
status: "Yesterday, 5:12 PM",
|
||||
userType: "Power user",
|
||||
role: "user",
|
||||
platform: "Mac OS X 10",
|
||||
browser: "Chrome 119",
|
||||
country: "Germany",
|
||||
@ -76,6 +142,16 @@ const mockData = [
|
||||
page: "http://192.168.0.239/wizard",
|
||||
tenantId: 1,
|
||||
userId: "66faa6e4-f133-11ea-b126-00ffeec8b4ed",
|
||||
sessions: [
|
||||
{
|
||||
id: 1,
|
||||
platform: "iOS 16 Apple iPhone",
|
||||
browser: "Mobile Safari 16",
|
||||
country: "Germany",
|
||||
city: "Frankfurt",
|
||||
date: "2023-04-26T17:13:28+00:00",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -538,17 +538,7 @@ class SettingsSetupStore {
|
||||
|
||||
setSessionModalData = (data) => {
|
||||
this.sessionModalData = {
|
||||
id: data.id,
|
||||
avatar: data.avatar,
|
||||
displayName: data.displayName,
|
||||
status: data.status,
|
||||
platform: data.platform,
|
||||
browser: data.browser,
|
||||
country: data.country,
|
||||
city: data.city,
|
||||
date: data.date,
|
||||
ip: data.ip,
|
||||
userId: data.userId,
|
||||
...data,
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user