2021-07-23 16:28:16 +00:00
import QtQuick 2.14
import StatusQ . Components 0.1
QtObject {
property var demoChatListItems: ListModel {
id: demoChatListItems
ListElement {
chatId: "0"
name: "#status"
chatType: StatusChatListItem . Type . PublicChat
muted: false
unreadMessagesCount: 0
mentionsCount: 0
color: "blue"
2021-07-28 11:08:56 +00:00
position: 0
2021-07-23 16:28:16 +00:00
}
ListElement {
chatId: "1"
name: "status-desktop"
chatType: StatusChatListItem . Type . PublicChat
muted: false
color: "red"
unreadMessagesCount: 1
mentionsCount: 1
2021-07-28 11:08:56 +00:00
position: 1
2021-07-23 16:28:16 +00:00
}
ListElement {
chatId: "2"
name: "Amazing Funny Squirrel"
chatType: StatusChatListItem . Type . OneToOneChat
muted: false
color: "green"
identicon: " data: image / png ; base64 , iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh / 5 nv3cFhY9vUIYQiNITSG0Bh
CExPynn1gWf9bx498P7 / nzPcxEzGExhBdJGYihtAYQlO + tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD //+wwFVpz+yqXAAAAAElFTkSuQmCC"
unreadMessagesCount: 0
2021-07-28 11:08:56 +00:00
position: 2
2021-07-23 16:28:16 +00:00
}
ListElement {
chatId: "3"
name: "Black Ops"
chatType: StatusChatListItem . Type . GroupChat
muted: false
color: "purple"
unreadMessagesCount: 0
2021-07-28 11:08:56 +00:00
position: 3
2021-07-23 16:28:16 +00:00
}
ListElement {
chatId: "4"
name: "Spectacular Growing Otter"
chatType: StatusChatListItem . Type . OneToOneChat
muted: true
color: "Orange"
unreadMessagesCount: 0
2021-07-28 11:08:56 +00:00
position: 4
2021-07-23 16:28:16 +00:00
}
ListElement {
chatId: "5"
name: "channel-with-a-super-duper-long-name"
chatType: StatusChatListItem . Type . PublicChat
muted: false
color: "green"
unreadMessagesCount: 0
2021-07-28 11:08:56 +00:00
position: 5
2021-07-23 16:28:16 +00:00
}
}
property var demoCommunityChatListItems: ListModel {
id: demoCommunityChatListItems
ListElement {
chatId: "0"
name: "general"
chatType: StatusChatListItem . Type . CommunityChat
muted: false
unreadMessagesCount: 0
color: "orange"
2021-07-28 11:08:56 +00:00
position: 0
2021-07-23 16:28:16 +00:00
}
ListElement {
chatId: "1"
name: "random"
chatType: StatusChatListItem . Type . CommunityChat
muted: false
unreadMessagesCount: 0
color: "orange"
categoryId: "public"
2021-07-28 11:08:56 +00:00
position: 0
2021-07-23 16:28:16 +00:00
}
ListElement {
chatId: "2"
name: "watercooler"
chatType: StatusChatListItem . Type . CommunityChat
muted: false
unreadMessagesCount: 0
color: "orange"
categoryId: "public"
2021-07-28 11:08:56 +00:00
position: 1
2021-07-23 16:28:16 +00:00
}
ListElement {
chatId: "3"
name: "language-design"
chatType: StatusChatListItem . Type . CommunityChat
muted: false
unreadMessagesCount: 0
color: "orange"
categoryId: "dev"
2021-07-28 11:08:56 +00:00
position: 0
2021-07-23 16:28:16 +00:00
}
}
property var demoCommunityCategoryItems: ListModel {
id: demoCommunityCategoryItems
ListElement {
categoryId: "public"
name: "Public"
2021-08-26 19:33:45 +00:00
position: 0
2021-07-23 16:28:16 +00:00
}
ListElement {
categoryId: "dev"
name: "Development"
2021-08-26 19:33:45 +00:00
position: 1
2021-07-23 16:28:16 +00:00
}
}
property var demoProfileGeneralMenuItems: ListModel {
id: demoProfileGeneralMenuItems
ListElement {
title: "My Profile"
icon: "profile"
}
ListElement {
title: "Contacts"
icon: "contact"
}
ListElement {
title: "ENS Usernames"
icon: "username"
}
}
property var demoProfileSettingsMenuItems: ListModel {
id: demoProfileSettingsMenuItems
ListElement {
title: "Privacy & Security"
icon: "security"
}
ListElement {
title: "Appearance"
icon: "appearance"
}
ListElement {
title: "Browser"
icon: "browser"
}
ListElement {
title: "Sounds"
icon: "sound"
}
ListElement {
title: "Language"
icon: "language"
}
ListElement {
title: "Notifications"
icon: "notification"
}
ListElement {
title: "Sync settings"
icon: "mobile"
}
ListElement {
title: "Advanced"
icon: "settings"
}
}
property var demoProfileOtherMenuItems: ListModel {
id: demoProfileOtherMenuItems
ListElement {
title: "Need help?"
icon: "help"
}
ListElement {
title: "About"
icon: "info"
}
ListElement {
title: "Sign out & Quit"
icon: "logout"
}
}
//dummy search popup models
property var searchResultsA: ListModel {
2021-08-16 12:01:38 +00:00
ListElement { itemId: "i1" ; titleId: "t1" ; title: "@Flea" ; sectionName: "Messages" ; time: "18:55 AM" ; content: "lorem ipsum <font color='#4360DF'>@Nick</font> dolor sit amet" ;
2021-07-23 16:28:16 +00:00
badgeImage: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg" ;
badgePrimaryText: "CryptoKities" ;
badgeSecondaryText: "" ;
badgeIdenticonColor: "" ;
isLetterIdenticon: false }
2021-08-16 12:01:38 +00:00
ListElement { itemId: "i2" ; titleId: "t2" ; title: "core" ; sectionName: "Channels" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i3" ; titleId: "t3" ; title: "communities-phase3" ; sectionName: "Channels" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i4" ; titleId: "t4" ; title: "core-ui" ; sectionName: "Channels" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i5" ; titleId: "t5" ; title: "desktop" ; sectionName: "Channels" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i6" ; titleId: "t6" ; title: "Crocodile Vanilla Bird" ; sectionName: "Chat" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i7" ; titleId: "t7" ; title: "carmen eth" ; sectionName: "Chat" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i8" ; titleId: "t8" ; title: "CryptoKitties" ; sectionName: "Communities" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i9" ; titleId: "t9" ; title: "MyCommunity" ; sectionName: "Communities" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i10" ; titleId: "t10" ; title: "Foo" ; sectionName: "Communities" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
2021-07-23 16:28:16 +00:00
}
property var searchResultsB: ListModel {
2021-08-16 12:01:38 +00:00
ListElement { itemId: "i1" ; titleId: "t1" ; title: "@Ant" ; sectionName: "Messages" ; time: "11:43 AM" ; content: "<font color='#4360DF'>@John</font>, lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum " ;
2021-07-23 16:28:16 +00:00
badgeImage: "" ;
badgePrimaryText: "CryptoKities" ;
badgeSecondaryText: "#design" ;
badgeIdenticonColor: "pink" ; isLetterIdenticon: true }
2021-08-16 12:01:38 +00:00
ListElement { itemId: "i2" ; titleId: "t2" ; title: "support" ; sectionName: "Channels" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i3" ; titleId: "t3" ; title: "desktop-ui" ; sectionName: "Channels" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i4" ; titleId: "t4" ; title: "climate-change" ; sectionName: "Chat" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i5" ; titleId: "t5" ; title: "food" ; sectionName: "Chat" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "pink" ; isLetterIdenticon: true }
ListElement { itemId: "i6" ; titleId: "t6" ; title: "CryptoKitties" ; sectionName: "Communities" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i7" ; titleId: "t7" ; title: "CryptoRangers" ; sectionName: "Communities" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "" ; isLetterIdenticon: false }
ListElement { itemId: "i8" ; titleId: "t8" ; title: "Foo" ; sectionName: "Communities" ; time: "" ; content: "" ; badgeImage: "" ; badgePrimaryText: "" ; badgeSecondaryText: "" ; badgeIdenticonColor: "orange" ; isLetterIdenticon: true }
2021-07-23 16:28:16 +00:00
}
property ListModel optionsModel: ListModel {
ListElement {
2021-08-16 12:04:00 +00:00
value: "item_1"
title: "Item with icon"
2021-07-23 16:28:16 +00:00
imageSource: ""
iconName: "chat"
iconColor: ""
isIdenticon: false
subItems: [
ListElement {
2021-08-16 12:04:00 +00:00
value: "sub_item_1_1"
2021-07-23 16:28:16 +00:00
text: "Profile image item"
imageSource: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
iconName: ""
iconColor: ""
isIdenticon: false
} ,
ListElement {
2021-08-16 12:04:00 +00:00
value: "sub_item_1_2"
2021-07-23 16:28:16 +00:00
text: "identicon item"
imageSource: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
iconName: ""
iconColor: ""
isIdenticon: true
} ] }
ListElement {
2021-08-16 12:04:00 +00:00
value: "item_2"
2021-07-23 16:28:16 +00:00
title: "Community item" ;
imageSource: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
iconName: ""
iconColor: ""
isIdenticon: false
subItems: [
ListElement {
2021-08-16 12:04:00 +00:00
value: "sub_item_2_1"
2021-07-23 16:28:16 +00:00
text: "welcome"
imageSource: ""
iconName: "channel"
iconColor: ""
isIdenticon: false
} ,
ListElement {
2021-08-16 12:04:00 +00:00
value: "sub_item_2_2"
2021-07-23 16:28:16 +00:00
text: "support"
imageSource: ""
iconName: "channel"
iconColor: ""
isIdenticon: false
} ,
ListElement {
2021-08-16 12:04:00 +00:00
value: "sub_item_2_3"
2021-07-23 16:28:16 +00:00
text: "news"
imageSource: ""
iconName: "channel"
iconColor: ""
isIdenticon: false
} ] }
ListElement {
2021-08-16 12:04:00 +00:00
value: "item_3"
2021-07-23 16:28:16 +00:00
title: "Other" ;
imageSource: "" ;
iconName: "info"
iconColor: ""
isIdenticon: false
subItems: [
ListElement {
2021-08-16 12:04:00 +00:00
value: "sub_item_3_1"
2021-07-23 16:28:16 +00:00
text: "news"
imageSource: ""
iconName: "channel"
iconColor: ""
isIdenticon: false
} ] }
ListElement {
2021-08-16 12:04:00 +00:00
value: "item_4"
2021-07-23 16:28:16 +00:00
title: "Letter identicon" ;
imageSource: "" ;
iconName: ""
iconColor: "red"
isIdenticon: false
subItems: [
ListElement {
2021-08-16 12:04:00 +00:00
value: "sub_item_4_1"
2021-07-23 16:28:16 +00:00
text: "news"
imageSource: ""
iconName: "channel"
iconColor: ""
isIdenticon: false
} ] }
}
}