Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,312 @@
[
{
"surfaceUpdate": {
"surfaceId": "gallery-flight-status",
"components": [
{
"id": "root",
"component": {
"Card": {
"child": "main-column"
}
}
},
{
"id": "main-column",
"component": {
"Column": {
"children": {
"explicitList": [
"header-row",
"route-row",
"divider",
"times-row"
]
},
"alignment": "stretch"
}
}
},
{
"id": "header-row",
"component": {
"Row": {
"children": {
"explicitList": [
"header-left",
"date"
]
},
"distribution": "spaceBetween",
"alignment": "center"
}
}
},
{
"id": "header-left",
"component": {
"Row": {
"children": {
"explicitList": [
"flight-indicator",
"flight-number"
]
},
"alignment": "center"
}
}
},
{
"id": "flight-indicator",
"component": {
"Icon": {
"name": {
"literalString": "send"
}
}
}
},
{
"id": "flight-number",
"component": {
"Text": {
"text": {
"path": "/flightNumber"
},
"usageHint": "h3"
}
}
},
{
"id": "date",
"component": {
"Text": {
"text": {
"path": "/date"
},
"usageHint": "caption"
}
}
},
{
"id": "route-row",
"component": {
"Row": {
"children": {
"explicitList": [
"origin",
"arrow",
"destination"
]
},
"alignment": "center"
}
}
},
{
"id": "origin",
"component": {
"Text": {
"text": {
"path": "/origin"
},
"usageHint": "h2"
}
}
},
{
"id": "arrow",
"component": {
"Text": {
"text": {
"literalString": "\u2192"
},
"usageHint": "h2"
}
}
},
{
"id": "destination",
"component": {
"Text": {
"text": {
"path": "/destination"
},
"usageHint": "h2"
}
}
},
{
"id": "divider",
"component": {
"Divider": {}
}
},
{
"id": "times-row",
"component": {
"Row": {
"children": {
"explicitList": [
"departure-col",
"status-col",
"arrival-col"
]
},
"distribution": "spaceBetween"
}
}
},
{
"id": "departure-col",
"component": {
"Column": {
"children": {
"explicitList": [
"departure-label",
"departure-time"
]
},
"alignment": "start"
}
}
},
{
"id": "departure-label",
"component": {
"Text": {
"text": {
"literalString": "Departs"
},
"usageHint": "caption"
}
}
},
{
"id": "departure-time",
"component": {
"Text": {
"text": {
"path": "/departureTime"
},
"usageHint": "h3"
}
}
},
{
"id": "status-col",
"component": {
"Column": {
"children": {
"explicitList": [
"status-label",
"status-value"
]
},
"alignment": "center"
}
}
},
{
"id": "status-label",
"component": {
"Text": {
"text": {
"literalString": "Status"
},
"usageHint": "caption"
}
}
},
{
"id": "status-value",
"component": {
"Text": {
"text": {
"path": "/status"
},
"usageHint": "body"
}
}
},
{
"id": "arrival-col",
"component": {
"Column": {
"children": {
"explicitList": [
"arrival-label",
"arrival-time"
]
},
"alignment": "end"
}
}
},
{
"id": "arrival-label",
"component": {
"Text": {
"text": {
"literalString": "Arrives"
},
"usageHint": "caption"
}
}
},
{
"id": "arrival-time",
"component": {
"Text": {
"text": {
"path": "/arrivalTime"
},
"usageHint": "h3"
}
}
}
]
}
},
{
"dataModelUpdate": {
"surfaceId": "gallery-flight-status",
"contents": [
{
"key": "flightNumber",
"valueString": "OS 87"
},
{
"key": "date",
"valueString": "Mon, Dec 15"
},
{
"key": "origin",
"valueString": "Vienna"
},
{
"key": "destination",
"valueString": "New York"
},
{
"key": "departureTime",
"valueString": "10:15 AM"
},
{
"key": "status",
"valueString": "On Time"
},
{
"key": "arrivalTime",
"valueString": "2:30 PM"
}
]
}
},
{
"beginRendering": {
"surfaceId": "gallery-flight-status",
"root": "root"
}
}
]
Loading