-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #388 from coasys/release-v0.5.0
Release v0.5.0
- Loading branch information
Showing
436 changed files
with
23,091 additions
and
37,668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Agent Language | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- staging | ||
- bootstrap-languages | ||
|
||
jobs: | ||
pull: | ||
name: Test | ||
|
||
strategy: | ||
matrix: | ||
platform: [ubuntu-22.04] | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.63.0 | ||
- name: Cache cargo | ||
id: cache-cargo | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: rustup target add wasm32-unknown-unknown | ||
- run: yarn install | ||
- run: yarn run build-languages | ||
- run: cargo install --version 0.2.3 lair_keystore || echo "lair already installed" | ||
- run: cd bootstrap-languages/agent-language/hc-dna/zomes/tests && yarn install && yarn run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Direct Message Language | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- staging | ||
- bootstrap-languages | ||
|
||
jobs: | ||
pull: | ||
name: Test | ||
|
||
strategy: | ||
matrix: | ||
platform: [ubuntu-22.04] | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.63.0 | ||
- name: Cache cargo | ||
id: cache-cargo | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: rustup target add wasm32-unknown-unknown | ||
- run: yarn install | ||
- run: yarn run build-languages | ||
- run: cargo install --version 0.2.3 lair_keystore || echo "lair already installed" | ||
- run: cd bootstrap-languages/direct-message-language/hc-dna/tests && yarn install && yarn run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: File Storage | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- staging | ||
- bootstrap-languages | ||
|
||
jobs: | ||
holochain: | ||
name: Holochain Tests | ||
|
||
strategy: | ||
matrix: | ||
platform: [ubuntu-22.04] | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.63.0 | ||
- name: Cache cargo | ||
id: cache-cargo | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: rustup target add wasm32-unknown-unknown | ||
- run: yarn install | ||
- run: yarn run build-languages | ||
- run: cargo install --version 0.2.3 lair_keystore || echo "lair already installed" | ||
- run: cd bootstrap-languages/file-storage/hc-dna/tests && yarn install && yarn run test | ||
|
||
integration: | ||
name: Integration Test | ||
|
||
strategy: | ||
matrix: | ||
platform: [ubuntu-22.04] | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.63.0 | ||
- name: Cache cargo | ||
id: cache-cargo | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: rustup target add wasm32-unknown-unknown | ||
- run: yarn install | ||
- run: yarn run build | ||
- run: cargo install --version 0.2.3 lair_keystore || echo "lair already installed" | ||
- run: cd bootstrap-languages/file-storage && yarn run integration-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,8 @@ on: | |
push: | ||
branches: | ||
- main | ||
pull_request: | ||
- staging | ||
- bootstrap-languages | ||
|
||
jobs: | ||
unit: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
dist/ | ||
node_modules/ | ||
target/ | ||
.hc | ||
.cargo | ||
*.log | ||
*.dna | ||
build/* | ||
*.js | ||
*.js.map | ||
!*.config.icons.js | ||
!*.config.js | ||
!dna.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<svelte:options tag={null}/> | ||
|
||
<script lang="ts"> | ||
export let commitExpression | ||
</script> | ||
|
||
<div> | ||
</div> | ||
|
||
<style lang="scss"> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<svelte:options tag={null}/> | ||
|
||
<script lang="ts"> | ||
import type { Expression } from "@perspect3vism/ad4m"; | ||
import { Literal, Perspective } from "@perspect3vism/ad4m"; | ||
import emailValidator from 'email-validator' | ||
import md5 from 'md5' | ||
export let expression: Expression | ||
let did | ||
let email | ||
let firstName | ||
let lastName | ||
async function update() { | ||
let perspective = new Perspective(expression.data.perspective.links) | ||
did = expression.data.did | ||
try { | ||
firstName = Literal.fromUrl(await perspective.getSingleTarget({source: did, predicate: 'foaf://givenName'})).get() | ||
}catch(e) { | ||
firstName = undefined | ||
} | ||
try { | ||
lastName = Literal.fromUrl(await perspective.getSingleTarget({source: did, predicate: 'foaf://familyName'})).get() | ||
}catch(e) { | ||
lastName = undefined | ||
} | ||
try { | ||
email = Literal.fromUrl(await perspective.getSingleTarget({source: did, predicate: 'foaf://mbox'})).get() | ||
}catch(e) { | ||
email = undefined | ||
} | ||
} | ||
$: if(expression) update() | ||
</script> | ||
|
||
<div class="container"> | ||
|
||
<div class="text"> | ||
<h1>{did}</h1> | ||
<h2>{firstName} {lastName}</h2> | ||
<h2>{email}</h2> | ||
</div> | ||
|
||
{#if emailValidator.validate(email) } | ||
<img src="http://www.gravatar.com/avatar/{md5(email)}?s=360" alt="gravatar" class="image"> | ||
{/if} | ||
</div> | ||
|
||
|
||
<style> | ||
h1 { | ||
width: 100%; | ||
word-break: break-all; | ||
} | ||
.container { | ||
color: white; | ||
width: 400px; | ||
height: 300px; | ||
text-shadow: black; | ||
} | ||
.text { | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
z-index: 3; | ||
} | ||
.image { | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
} | ||
</style> |
Oops, something went wrong.