Commit 2a2db117 authored by Amirjanyan's avatar Amirjanyan
Browse files

Merge branch 'social-media-page' into 'main'

Added Social Update tab

See merge request !38
parents cd231949 c69a0814
Pipeline #3209 canceled with stage
Post > list {
VStack {
alignment: left
HStack {
alignment: center
ZStack {
alignment: top
margin: 0 15 0 0
Image {
image: {{.author.owner.profilePicture}}
sizingMode: fill
minHeight: 50
maxHeight: 50
minWidth: 50
maxWidth: 50
cornerRadius: 30
}
}
VStack {
alignment: leading
HStack {
alignment: leading
Text {
text: "{.author.owner.firstName} {.author.owner.lastName}"
font: 18 semibold
color: primary
padding: 0 0 3 0
}
}
HStack {
alignment: leading
Text {
text: "Posted at {.postDate} on {.author.network.name}"
lineLimit: 1
font: 12 semibold
color: secondary
padding: 0 0 5 0
}
}
}
}
Text {
text: "{.message}"
removeWhiteSpace: true
maxChar: 100
color: secondary
font: 14 regular
}
Grid {
show: {{.photo[].count() > 1}}
height: 100
minColumnHeight: 100
spacing: 1
items: {{.photo[]}}
ForEach {
items: {{.photo[]}}
Image {
image: {{.}}
sizingMode: fill
background: background
width: 120
}
}
}
Image {
show: {{.photo[].count() = 1}}
image: {{.photo}}
}
}
}
.allPosts {
title: "Social updates"
emptyResultText: "There are no posts here yet"
defaultRenderer: list
[datasource = pod] {
query: "Post"
sortProperty: postDate
sortAscending: false
}
}
......@@ -43,6 +43,11 @@
"title":"notes",
"sessionName":"allNotes"
},
{
"_type": "NavigationItem",
"title": "Social media",
"sessionName": "allPosts"
},
{
"_type":"NavigationItem",
"title":"people",
......
......@@ -47,6 +47,7 @@
},
{
"_type":"Photo",
"id": 79201,
"allEdges":[
{
"_type":"file",
......@@ -84,6 +85,7 @@
},
{
"_type":"Photo",
"id": 79202,
"dateCreated":1589691657000,
"allEdges":[
{
......@@ -2301,6 +2303,11 @@
"itemType":"twitter",
"handle":"@eagleve91",
"allEdges":[
{
"targetType": "Person",
"id": 3,
"_type": "owner"
},
{
"_type":"network",
"targetType":"Network",
......@@ -2314,6 +2321,11 @@
"itemType":"facebook",
"handle":"@eagleve2393",
"allEdges":[
{
"targetType": "Person",
"id": 3,
"_type": "owner"
},
{
"_type":"network",
"targetType":"Network",
......@@ -3182,5 +3194,85 @@
"_type":"file"
}
]
},
{
"_type": "Post",
"message": "OMG. I love @TheSuffers so much! When I need some inspiration I just listen. https://www.youtube.com/watch?v=RM3hj-6F1pk",
"postDate": 1589699512540,
"allEdges": [
{
"_type": "author",
"targetType": "Account",
"id": 1008
}
]
},
{
"_type": "Post",
"message": "#nature #sprint #travel",
"id": 89200,
"postDate": 1589691657000,
"allEdges": [
{
"_type": "author",
"targetType": "Account",
"id": 20000000002
},
{
"_type": "photo",
"targetType": "Photo",
"id": 79202
},
{
"_type": "parent",
"targetType": "Post",
"id": 89201
}
]
},
{
"_type": "Post",
"message": "This morning we went exploring a bit closer to our hotel. First we found an amazing bakery just around the corner - their pastries where amazing!",
"id": 89201,
"postDate": 1589691657000,
"allEdges": [
{
"_type": "author",
"targetType": "Account",
"id": 20000000002
},
{
"_type": "comment",
"targetType": "Post",
"id": 89200
}
]
},
{
"_type": "Post",
"message": "",
"postDate": 1589691657000,
"allEdges": [
{
"_type": "author",
"targetType": "Account",
"id": 1009
},
{
"_type": "photo",
"targetType": "Photo",
"id": 79200
},
{
"_type": "photo",
"targetType": "Photo",
"id": 79201
},
{
"_type": "photo",
"targetType": "Photo",
"id": 79202
}
]
}
]
......@@ -1903,6 +1903,26 @@
"item_type": "WrittenWork",
"property": "itemType",
"value_type": "string"
},
{
"item_type": "Post",
"property": "message",
"value_type": "string"
},
{
"item_type": "Post",
"property": "postDate",
"value_type": "datetime"
},
{
"item_type": "Post",
"property": "type",
"value_type": "string"
},
{
"item_type": "Post",
"property": "externalId",
"value_type": "string"
}
],
......@@ -3413,6 +3433,26 @@
"source_type": "Video",
"edge": "thumbnail",
"target_type": "File"
},
{
"source_type": "Post",
"edge": "author",
"target_type": "Account"
},
{
"source_type": "Post",
"edge": "parent",
"target_type": "Post"
},
{
"source_type": "Post",
"edge": "comment",
"target_type": "Post"
},
{
"source_type": "Post",
"edge": "photo",
"target_type": "Photo"
}
]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment