# TerraSolstice Online <!-- Put the link to this slide here so people can follow --> slide: https://hackmd.io/@tHjuUyWPRbyXQMVwQ5382Q/HyXbJz18q --- We discuss the future of Global Rennovation projects and Open-Source Contributions toward the building and managing of smart cities, token economies and the use of geo-engineering in everyday products for spatial optimization. Please prepare laptop or smartphone to join! --- ## Who am I? - Founder/CEO - Blockchain Developer :link: - I have a :cat: --- ### We're 100% Open-Source and perpetually building new projects. Visit our [GitHub](https://github.com/terrasolstice). {%youtube E8Nj7RwXf0s %} --- ### Usage flow This is how our system is organized currently and plans to grow in order to scale with the size of the DAO contributions. ```graphviz digraph { compound=true rankdir=RL graph [ fontname="Source Sans Pro", fontsize=20 ]; node [ fontname="Source Sans Pro", fontsize=18]; edge [ fontname="Source Sans Pro", fontsize=12 ]; subgraph core { c [label="Hackmd-it \ncore"] [shape=box] } c -> sync [ltail=session lhead=session] subgraph cluster1 { concentrate=true a [label="Text source\nGithub, Gitlab, ..."] [shape=box] b [label="HackMD Editor"] [shape=box] sync [label="sync" shape=plaintext ] b -> sync [dir="both"] sync -> a [dir="both"] label="An edit session" } } ``` --- ### Architecture of Communty --- ![](https://i.imgur.com/ij69tPh.png) --- ## Library of Scripts - Bind with each page - Manipulate DOM - Add event listeners - Isolated JavaScript environment - It doesn't break things --- <style> code.blue { color: #337AB7 !important; } code.orange { color: #F7A004 !important; } </style> - <code class="orange">onMessage('event')</code>: Register event listener - <code class="blue">sendMessage('event')</code>: Trigger event --- # :bulb: --- - Dead simple API - Only cares about application logic --- ```typescript import * as Channeru from 'channeru' // setup channel in different page environment, once const channel = Channeru.create() ``` --- ```typescript // in background script const fakeLogin = async () => true channel.answer('isLogin', async () => { return await fakeLogin() }) ``` <br> ```typescript // in inject script const isLogin = await channel.callBackground('isLogin') console.log(isLogin) //-> true ``` --- # :100: :muscle: :tada: --- ### Wrap up - Cross envornment commnication - A small library to solve messaging pain - TypeScript Rocks :tada: --- ### Thank you! :sheep: You can find me on - GitHub - Twitter - or email me
{"metaMigratedAt":"2023-06-17T00:16:31.360Z","metaMigratedFrom":"YAML","title":"GEOG176C Project","breaks":true,"description":"View the slide with \"Slide Mode\".","contributors":"[{\"id\":\"b478ee53-258f-45bc-9740-c570439dfcd9\",\"add\":2891,\"del\":146}]"}
    91 views