Skip to content

Instantly share code, notes, and snippets.

@sjmiles
Created September 25, 2018 23:08
Show Gist options
  • Save sjmiles/a6c855bf8943aa5f66fc0111ecbbeecc to your computer and use it in GitHub Desktop.
Save sjmiles/a6c855bf8943aa5f66fc0111ecbbeecc to your computer and use it in GitHub Desktop.
Serialization
meta
name: '!332959691591444:app-shell-cnrslo6955v3oiua'
storageKey: 'firebase://arcs-storage.firebaseio.com/AIzaSyBme42moeI-2k8WgXh-6YK_wYyjEXo4Oz8/0_5_0-alpha/arcs/-LMyXkk2dCzIRHthsQ4v'
import './in-memory.manifest'
resource Store2_DataResource
start
[{"id":"-LMtek9LSN6eSMg97nXV","name":"User","location":{"latitude":38.173081599999996,"longitude":-122.24512},"$id":"SYSTEM_user:0"},{"id":"-LMtek9KSKzIom2zVZvp","name":"Alphonse","$id":"SYSTEM_users:0"},{"id":"-LMtek9KSKzIom2zVZvq","name":"Barney","$id":"SYSTEM_users:1"},{"id":"-LMtek9LSN6eSMg97nXV","name":"Cletus","$id":"SYSTEM_users:2"},{"id":"-LMtek9Mdy1iAc3MAkNw","name":"Berni","$id":"SYSTEM_users:3"},{"id":"-LMtek9Mdy1iAc3MAkNx","name":"Doug","$id":"SYSTEM_users:4"},{"id":"-LMtek9Nzp8f5pwiLuF6","name":"Maria","$id":"SYSTEM_users:5"},{"id":"-LMtek9Nzp8f5pwiLuF7","name":"Matt","$id":"SYSTEM_users:6"},{"id":"-LMtek9Nzp8f5pwiLuF8","name":"McNulty","$id":"SYSTEM_users:7"},{"id":"-LMtek9Nzp8f5pwiLuF9","name":"Mike","$id":"SYSTEM_users:8"},{"id":"-LMtek9Od_C2Fv1Z_l0-","name":"Myk","$id":"SYSTEM_users:9"},{"id":"-LMtek9Od_C2Fv1Z_l00","name":"Noé","$id":"SYSTEM_users:10"},{"id":"-LMtek9PqU4K5N_0tH1T","name":"Piotr","$id":"SYSTEM_users:11"},{"id":"-LMtek9PqU4K5N_0tH1U","name":"Scott","$id":"SYSTEM_users:12"},{"id":"-LMtek9PqU4K5N_0tH1V","name":"Shane","$id":"SYSTEM_users:13"},{"id":"-LMtek9PqU4K5N_0tH1W","name":"Stephan","$id":"SYSTEM_users:14"},{"id":"-LMtek9QG2Qv3squ5wtI","name":"Walt","$id":"SYSTEM_users:15"},{"id":"-LMtek9QG2Qv3squ5wtJ","name":"Yuin","$id":"SYSTEM_users:16"},{"id":"-LMtek9RCM1NZ8XsHLQ9","name":"Zach","$id":"SYSTEM_users:17"},{"id":"-LMtek9RCM1NZ8XsHLQA","name":"Jochen","$id":"SYSTEM_users:18"},{"id":"-LMtek9RCM1NZ8XsHLQB","name":"Raul","$id":"SYSTEM_users:19"},{"id":"-LMtek9SKKSs1uUKqjVl","name":"Paul","$id":"SYSTEM_users:20"},{"id":"-LMtek9SKKSs1uUKqjVm","name":"Ray","$id":"SYSTEM_users:21"},{"id":"-LMtek9KSKzIom2zVZvp","$id":"!172093360441633:app-shell-ce5l89pckzj8z99k:0:inner:2:0:uid:-LMtek9LSN6eSMg97nXV"},{"id":"-LMtek9KSKzIom2zVZvq","$id":"!172093360441633:app-shell-ce5l89pckzj8z99k:0:inner:2:2:uid:-LMtek9LSN6eSMg97nXV"},{"id":"-LMtek9LSN6eSMg97nXV","$id":"!966258129708453:app-shell-cewuhz7spqlg78gze:0:inner:2:0:uid:-LMtek9KSKzIom2zVZvp"},{"id":"-LMtek9KSKzIom2zVZvq","$id":"!966258129708453:app-shell-cewuhz7spqlg78gze:0:inner:2:2:uid:-LMtek9KSKzIom2zVZvp"},{"id":"-LMtek9KSKzIom2zVZvp","$id":"!468029517155158:app-shell-cepbs1wm41dignvf:0:inner:2:0:uid:-LMtek9KSKzIom2zVZvq"},{"id":"-LMtek9LSN6eSMg97nXV","$id":"!468029517155158:app-shell-cepbs1wm41dignvf:0:inner:2:2:uid:-LMtek9KSKzIom2zVZvq"}]
resource Store2Resource
start
[{"id":"SYSTEM_users:0","storageKey":"Store2_Data"},{"id":"SYSTEM_users:1","storageKey":"Store2_Data"},{"id":"SYSTEM_users:2","storageKey":"Store2_Data"},{"id":"SYSTEM_users:3","storageKey":"Store2_Data"},{"id":"SYSTEM_users:4","storageKey":"Store2_Data"},{"id":"SYSTEM_users:5","storageKey":"Store2_Data"},{"id":"SYSTEM_users:6","storageKey":"Store2_Data"},{"id":"SYSTEM_users:7","storageKey":"Store2_Data"},{"id":"SYSTEM_users:8","storageKey":"Store2_Data"},{"id":"SYSTEM_users:9","storageKey":"Store2_Data"},{"id":"SYSTEM_users:10","storageKey":"Store2_Data"},{"id":"SYSTEM_users:11","storageKey":"Store2_Data"},{"id":"SYSTEM_users:12","storageKey":"Store2_Data"},{"id":"SYSTEM_users:13","storageKey":"Store2_Data"},{"id":"SYSTEM_users:14","storageKey":"Store2_Data"},{"id":"SYSTEM_users:15","storageKey":"Store2_Data"},{"id":"SYSTEM_users:16","storageKey":"Store2_Data"},{"id":"SYSTEM_users:17","storageKey":"Store2_Data"},{"id":"SYSTEM_users:18","storageKey":"Store2_Data"},{"id":"SYSTEM_users:19","storageKey":"Store2_Data"},{"id":"SYSTEM_users:20","storageKey":"Store2_Data"},{"id":"SYSTEM_users:21","storageKey":"Store2_Data"}]
store Store0 of Avatar {URL url} '!332959691591444:app-shell-cnrslo6955v3oiua:22' @0 #avatar at 'firebase://arcs-storage.firebaseio.com/AIzaSyBme42moeI-2k8WgXh-6YK_wYyjEXo4Oz8/0_5_0-alpha/arcs/-LMyXkk2dCzIRHthsQ4v/handles/!332959691591444:app-shell-cnrslo6955v3oiua:22'
store Store1 of [User {Text id, Text name, Object location}] '!332959691591444:app-shell-cnrslo6955v3oiua:23' @1 #friends at 'firebase://arcs-storage.firebaseio.com/AIzaSyBme42moeI-2k8WgXh-6YK_wYyjEXo4Oz8/0_5_0-alpha/arcs/-LMyXkk2dCzIRHthsQ4v/handles/!332959691591444:app-shell-cnrslo6955v3oiua:23'
store Store2_Data of [User {Text id, Text name, Object location}] 'User {Text id, Text name, Object location}' @33 in Store2_DataResource
store Store2 of [User {Text id, Text name, Object location}] 'SYSTEM_users' @22 in Store2Resource
store Store3 of UserName {Text userName} '!332959691591444:app-shell-cnrslo6955v3oiua:25' @0 #userName at 'firebase://arcs-storage.firebaseio.com/AIzaSyBme42moeI-2k8WgXh-6YK_wYyjEXo4Oz8/0_5_0-alpha/arcs/-LMyXkk2dCzIRHthsQ4v/handles/!332959691591444:app-shell-cnrslo6955v3oiua:25'
particle BasicProfile in './../../../artifacts/Profile/source/BasicProfile.js'
inout Avatar {URL url} avatar
affordance dom
consume root
provide userName
provide friends
particle FriendsPicker in './../../../artifacts/Profile/source/FriendsPicker.js'
in User {Text id, Text name, Object location} user
in [User {Text id, Text name, Object location}] users
in [Avatar {URL url}] avatars
inout [User {Text id, Text name, Object location}] friends
affordance dom
consume friends
description `select friends`
particle UserNameForm in './../../../artifacts/Profile/source/UserNameForm.js'
inout UserName {Text userName} userName
affordance dom
consume userName
@active
recipe BasicProfile
use '!332959691591444:app-shell-cnrslo6955v3oiua:22' #avatar as handle0 // Avatar {...}
map 'BOXED_avatar' as handle1 // [Avatar {...}]
use '!332959691591444:app-shell-cnrslo6955v3oiua:23' #friends as handle2 // [User {...}]
map 'SYSTEM_user' as handle3 // User {...}
use 'SYSTEM_users' as handle4 // [User {...}]
use '!332959691591444:app-shell-cnrslo6955v3oiua:25' #userName as handle5 // UserName {...}
slot 'slotid-!332959691591444:app-shell-cnrslo6955v3oiua:20' as slot0
slot 'rootslotid-root' #root as slot1
slot 'slotid-!332959691591444:app-shell-cnrslo6955v3oiua:21' as slot2
BasicProfile as particle0
avatar = handle0
consume root as slot1
provide friends as slot0
provide userName as slot2
FriendsPicker as particle1
avatars <- handle1
friends = handle2
user <- handle3
users <- handle4
consume friends as slot0
UserNameForm as particle2
userName = handle5
consume userName as slot2
description `Edit user profile (name, avatar, and friends)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment