Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions .eslintrc.ng.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"extends": [
"@digita-ai/eslint-config"
"@useid/eslint-config"
],
"overrides": [
{
"files": ["*.ts", "*.js"],
"extends": [
"@digita-ai/eslint-config",
"@useid/eslint-config",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
Expand Down
34 changes: 22 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ jobs:

- name: Extract tag
id: extract-tag
run: echo "::set-output name=tag::${GITHUB_REF/refs\/tags\//}"
run: echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT

- name: Check tag
run: echo ${{ steps.extract-tag.outputs.tag }}

- name: Extract branch
id: extract-branch
run: echo "::set-output name=branch::${GITHUB_REF/refs\/heads\//}"
run: echo "branch=${GITHUB_REF/refs\/heads\//}" >> $GITHUB_OUTPUT

- name: Check branch
run: echo ${{ steps.extract-branch.outputs.branch }}

- uses: actions/setup-node@v1
with:
node-version: 14
node-version: 18

- run: npm run bootstrap

Expand Down Expand Up @@ -87,30 +87,40 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: 14
node-version: 18
registry-url: https://npm.pkg.github.com/

- run: npm run bootstrap

- run: npm run build:all

- run: npm publish packages/semcom-core
- run: |
cd packages/semcom-core
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- run: npm publish packages/semcom-node
- run: |
cd packages/semcom-node
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- run: npm publish packages/semcom-sdk
- run: |
cd packages/semcom-sdk
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- run: npm publish packages/semcom-components
- run: |
cd packages/semcom-components
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- run: npm publish packages/semcom-upload-component
- run: |
cd packages/semcom-upload-component
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

Expand Down Expand Up @@ -147,8 +157,8 @@ jobs:
context: packages/semcom-node/
push: true
tags: |
ghcr.io/digita-ai/semcom-node:latest
ghcr.io/digita-ai/semcom-node:${{ steps.extract-tag.outputs.tag }}
ghcr.io/useid/semcom-node:latest
ghcr.io/useid/semcom-node:${{ steps.extract-tag.outputs.tag }}
build-args: |
NPM_TOKEN=${{secrets.GA_TOKEN}}

Expand All @@ -162,7 +172,7 @@ jobs:
# See https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment
- name: Update deployment
run: |
kubectl set image deployment/semcom-deployment semcom-node=ghcr.io/digita-ai/semcom-node:${{ steps.extract-tag.outputs.tag }} --record
kubectl set image deployment/semcom-deployment semcom-node=ghcr.io/useid/semcom-node:${{ steps.extract-tag.outputs.tag }} --record
- name: Verify deployment
run: |
kubectl rollout status deployment/semcom-deployment
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
registry=https://registry.npmjs.org/

@digita-ai:registry=https://npm.pkg.github.com
@useid:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}
always-auth=true
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Semantic Components

![GitHub package.json version](https://img.shields.io/github/package-json/v/digita-ai/semcom)
![Build Status](https://github.com/digita-ai/semcom/workflows/CI/badge.svg)
![GitHub package.json version](https://img.shields.io/github/package-json/v/useid/semcom)
![Build Status](https://github.com/useid/semcom/workflows/CI/badge.svg)

The goal of this project is to construct a decentralised registry to support the dynamic binding of semantic components in Solid data browsers. This registry is based on insights of practical solutions such as OpenComponents and Bit.dev while using theoretical building blocks such as linked data shapes as a foundation.

Please note that:
* The source code of this project will be made available at https://github.com/digita-ai/semcom
* The source code of this project will be made available at https://github.com/useid/semcom
* The documentation is available at [https://docs.digita.ai/semcom](https://docs.digita.ai/semcom).

This project has received funding from the European Union’s H2020 research and innovation programme under Grant Agreement no 871498.
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/concepts.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= Concepts
:description: A description of the data model.
:sectanchors:
:url-repo: https://github.com/digita-ai/semcom
:url-repo: https://github.com/useid/semcom
:page-tags: semcom

== Specification and ecosystem
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
= Introduction
:description: A description of the project.
:sectanchors:
:url-repo: https://github.com/digita-ai/semcom
:url-repo: https://github.com/useid/semcom
:page-tags: semcom

The goal of this project is to construct a decentralised registry to support the dynamic binding of semantic components in Solid data browsers. This registry is based on insights of practical solutions such as OpenComponents and Bit.dev while using theoretical building blocks such as linked data shapes as a foundation.

Please note that:

* The source code of this project will be made available at https://github.com/digita-ai/semcom
* The source code of this project will be made available at https://github.com/useid/semcom
* The documentation is available at https://docs.digita.ai/semcom.

This project has received funding from the European Union’s H2020 research and innovation programme under Grant Agreement no 871498.
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/user-stories.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= User stories
:description: A description of the user stories.
:sectanchors:
:url-repo: https://github.com/digita-ai/semcom
:url-repo: https://github.com/useid/semcom
:page-tags: semcom

== Functional requirements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

* Branch: `feature/639404111-create-data-overview-page`
* Projects:
** https://github.com/digita-ai/semcom[semcom-demo-app]
** https://github.com/useid/semcom[semcom-demo-app]

=== Introduction

Expand Down
4 changes: 2 additions & 2 deletions docs/modules/analyses/pages/create-login-page.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

* Branch: `feature/639404034-create-login-page`
* Projects:
** https://github.com/digita-ai/semcom[semcom-demo-app]
** https://github.com/useid/semcom[semcom-demo-app]

=== Introduction

Expand All @@ -33,7 +33,7 @@ Some tips:

You can view styling information (font, font-size, colors, margins, ...) when clicking on components in Figma. It should appear on the right.

Margins in Figma are usually multiples of 10px. https://github.com/digita-ai/dgt-browser/blob/develop/client/theme/utilities/_measures.scss[In dgt-browser], these multiples are bound to scss variables, in the same way you assigned `$color-primary-normal` to `#70808F` in the setup. Feel free to assign them to variables in this project as well.
Margins in Figma are usually multiples of 10px. https://github.com/useid/dgt-browser/blob/develop/client/theme/utilities/_measures.scss[In dgt-browser], these multiples are bound to scss variables, in the same way you assigned `$color-primary-normal` to `#70808F` in the setup. Feel free to assign them to variables in this project as well.

====== AppComponent

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/analyses/pages/create-models-services.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

* Branch: `feature/637357186-create-models-services`
* Projects:
** https://github.com/digita-ai/semcom[semcom]
** https://github.com/useid/semcom[semcom]

=== Introduction

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/analyses/pages/refactor.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

== References

* Project: https://github.com/digita-ai/dgt-semcom[@digita-ai/semcom-components]
* Project: https://github.com/useid/dgt-semcom[@useid/semcom-components]
* Branch: `feature/641783722-create-example-components`


Expand Down
2 changes: 1 addition & 1 deletion docs/modules/analyses/pages/replace-lists-with-store.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

* Branch: `643973993-replace-lists-with-store`
* Projects:
** https://github.com/digita-ai/semcom[semcom]
** https://github.com/useid/semcom[semcom]

== Introduction

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

* Branch: `637440573-support-registering-components`
* Projects:
** https://github.com/digita-ai/semcom[semcom]
** https://github.com/useid/semcom[semcom]

== Introduction

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/node/pages/api.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= API
:description: A description of Components on a node's REST API.
:sectanchors:
:url-repo: https://github.com/digita-ai/semcom
:url-repo: https://github.com/useid/semcom
:page-tags: semcom

== Get all components
Expand Down
8 changes: 4 additions & 4 deletions docs/modules/sdk/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
Wouter Termont <wouter.termont@digita.ai>
:description: A description of the software development kit.
:sectanchors:
:url-repo: https://github.com/digita-ai/semcom
:url-repo: https://github.com/useid/semcom
:page-tags: semcom

:toc:

This document describes a Software Development Kit for JavaScript to easily write applications that use the SemCom ecosystem of decentralized component registries to support the dynamic binding of semantic components. This SDK can be imported as `@digita-ai/semcom-sdk`.
This document describes a Software Development Kit for JavaScript to easily write applications that use the SemCom ecosystem of decentralized component registries to support the dynamic binding of semantic components. This SDK can be imported as `@useid/semcom-sdk`.

[[core]]
== Core interfaces

The package `@digita-ai/semcom-core` provides a number of core interfaces that adhere to the SemCom specification and are used by this SDK. In particular, these comprise of the `Component`, `ComponentMetadata`, `ComponentDataTypes` and `ComponentEventTypes` as described in the the specification.
The package `@useid/semcom-core` provides a number of core interfaces that adhere to the SemCom specification and are used by this SDK. In particular, these comprise of the `Component`, `ComponentMetadata`, `ComponentDataTypes` and `ComponentEventTypes` as described in the the specification.

[[discovering]]
== Discovering shapes
Expand Down Expand Up @@ -53,7 +53,7 @@ For each instance of its SemCom components, the host application has to define s
[[base]]
== The base component

Where the functions in the SemCom SDK provide welcome help for the application developer, another package called `@digita-ai/semcom-components` provides some syntactic sugar for the component developer. This sugar comes in the form of the abstract `BaseComponent` class: a LitElement Web Component providing the following helper functions.
Where the functions in the SemCom SDK provide welcome help for the application developer, another package called `@useid/semcom-components` provides some syntactic sugar for the component developer. This sugar comes in the form of the abstract `BaseComponent` class: a LitElement Web Component providing the following helper functions.

- `readData<D extends keyof ComponentDataTypes>(uri: string, type: D, mime?: string): void`: takes a URL and type of the resource to read, and sends a `ComponentReadEvent` to the host application.

Expand Down
Loading