Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the Thingweb URLs #482

Merged
merged 3 commits into from
Jul 31, 2023
Merged
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
2 changes: 1 addition & 1 deletion .github/scripts/deploy-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

TMP_PASS_FILE="$(mktemp)"
echo "$SSH_PASS" > $TMP_PASS_FILE
ssh -i $TMP_PASS_FILE -o StrictHostKeyChecking=no -o LogLevel=error $SSH_HOST "rm -r -f thingweb-playground; git clone https://github.com/thingweb/thingweb-playground.git; cd thingweb-playground; lerna bootstrap; cd ./packages/web; rm -r -f /var/www/html/playground/*; cp -L -r ./* /var/www/html/playground; echo cleaned and copy to webdir; echo CD DONE"
ssh -i $TMP_PASS_FILE -o StrictHostKeyChecking=no -o LogLevel=error $SSH_HOST "rm -r -f thingweb-playground; git clone https://github.com/eclipse-thingweb/playground.git; cd playground; lerna bootstrap; cd ./packages/web; rm -r -f /var/www/html/playground/*; cp -L -r ./* /var/www/html/playground; echo cleaned and copy to webdir; echo CD DONE"
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Thus, before your contribution can be accepted by the project team, contributors
- Sign-off every commit using the same email address used for your Eclipse account
- Set the Git user email address with `git config user.email "<your Eclipse account email>"`
- Add the `-s` flag when you make the commit(s), e.g. `git commit -s -m "feat: add support for magic"`
- Open a [Pull Request](https://github.com/eclipse/thingweb.td-playground/pulls)
- Open a [Pull Request](https://github.com/eclipse-thingweb/playground/pulls)

For more information, please see the Eclipse Committer Handbook:
https://www.eclipse.org/projects/handbook/#resources-commit
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ Examples are included in the [core](./packages/core/examples) and in the [exampl

## Batch Testing

Please have a look at the `cli` [package](https://github.com/eclipse/thingweb.td-playground/tree/master/packages/cli#batch-testing) for batch testing of Thing Descriptions.
Please have a look at the `cli` [package](https://github.com/eclipse-thingweb/playground/tree/master/packages/cli#batch-testing) for batch testing of Thing Descriptions.

## Script based Assertion Tester

Please have a look at the `cli` [package](https://github.com/eclipse/thingweb.td-playground/tree/master/packages/cli#script-based-assertion-tester--a-parameter) for script based assertion testing, or at the `assertions` package, if you're planning to integrate the assertion testing as a dependency in your own NPM modules.
Please have a look at the `cli` [package](https://github.com/eclipse-thingweb/playground/tree/master/packages/cli#script-based-assertion-tester--a-parameter) for script based assertion testing, or at the `assertions` package, if you're planning to integrate the assertion testing as a dependency in your own NPM modules.

## Script based Thing Description Validation

Please have look at the `cli` [package](https://github.com/eclipse/thingweb.td-playground/tree/master/packages/cli#script-based-thing-description-validation) for script based TD validation, or at the `core` package, if you're planning to integrate the TD validation as a dependency in your own NPM modules.
Please have look at the `cli` [package](https://github.com/eclipse-thingweb/playground/tree/master/packages/cli#script-based-thing-description-validation) for script based TD validation, or at the `core` package, if you're planning to integrate the TD validation as a dependency in your own NPM modules.

## License

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "thingweb.td-playground",
"name": "thingweb.playground",
"description": "W3C Web of Things (WoT) Thing Description tooling (root project, not published)",
"private": true,
"author": "Eclipse Thingweb <thingweb-dev@eclipse.org> (https://thingweb.io/)",
"license": "EPL-2.0 OR W3C-20150513",
"repository": {
"type": "git",
"url": "https://github.com/eclipse/thingweb.td-playground.git"
"url": "https://github.com/eclipse-thingweb/playground.git"
},
"devDependencies": {
"@microsoft/eslint-formatter-sarif": "^2.1.7",
Expand Down
12 changes: 6 additions & 6 deletions packages/assertions/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @thing-description-playground/**ASSERTIONS**

This package provides the assertion testing functionality for the Web of Things Playground.
You can find more information about the Thingweb-Playground [here](https://github.com/eclipse/thingweb.td-playground).
You can find more information about the Thingweb-Playground [here](https://github.com/eclipse-thingweb/playground).

Validation tool for W3C WoT Thing Descriptions. Your Thing Descriptions should be written according to the W3C standard found [here](https://w3c.github.io/wot-thing-description/#).

Expand Down Expand Up @@ -125,20 +125,20 @@ You can contribute by providing new JSON Schemas for assertions or by correcting
Some assertions cannot be verified just by a schema, even when the complex schemas are used.
Examples are checking that all multi language definitions like titles and descriptions contain the same language tags.

When a new one is added, it is advised to add it to the [shared.js](https://github.com/eclipse/thingweb.td-playground/blob/master/packages/core/shared.js) since such checks can be used by the core package as well.
When a new one is added, it is advised to add it to the [shared.js](https://github.com/eclipse-thingweb/playground/blob/master/packages/core/shared.js) since such checks can be used by the core package as well.

After adding the function, you should do the following:

1. Add it to the exports of `shared.js`
2. Add it to the exports of `index.js` of the core package
3. Add its name to the details object in `index.js` and its description to the detailComments of the `index.js`
4. In the assertions package, adding it to the imports at the [assertionTests.js](https://github.com/eclipse/thingweb.td-playground/blob/master/packages/assertions/assertionTests.js)
4. In the assertions package, adding it to the imports at the [assertionTests.js](https://github.com/eclipse-thingweb/playground/blob/master/packages/assertions/assertionTests.js)
5. In the same file, calling it whenever needed. The other ones are done at around line 80.
6. Adding it to the expected results of the tests (refResults) at the core package.

## Known Bugs

- td-json-open assertion exists multiple times, [see issue 124](https://github.com/eclipse/thingweb.td-playground/issues/124)
- td-json-open assertion exists multiple times, [see issue 124](https://github.com/eclipse-thingweb/playground/issues/124)

[web]: https://github.com/eclipse/thingweb.td-playground/tree/master/packages/web
[cli]: https://github.com/eclipse/thingweb.td-playground/tree/master/packages/cli
[web]: https://github.com/eclipse-thingweb/playground/tree/master/packages/web
[cli]: https://github.com/eclipse-thingweb/playground/tree/master/packages/cli
6 changes: 3 additions & 3 deletions packages/assertions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"license": "EPL-2.0 OR W3C-20150513",
"version": "1.5.0",
"description": "Provides the assertion testing functionality for the Web of Things - Thing Description Playground.",
"homepage": "https://github.com/eclipse/thingweb.td-playground#readme",
"homepage": "https://github.com/eclipse-thingweb/playground#readme",
"bugs": {
"url": "https://github.com/eclipse/thingweb.td-playground/issues"
"url": "https://github.com/eclipse-thingweb/playground/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/eclipse/thingweb.td-playground.git",
"url": "https://github.com/eclipse-thingweb/playground.git",
"directory": "packages/assertions"
},
"main": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @thing-description-playground/**CLI**

This package provides a Command Line Interface (CLI) for the Web of Things Playground.
You can find more information about the Thingweb-Playground [here](https://github.com/eclipse/thingweb.td-playground).
You can find more information about the Thingweb-Playground [here](https://github.com/eclipse-thingweb/playground).

You can validate whether one, or several given TDs are valid.
Furthermore you can generate an assertion test report (`-a`) to see which assertions are implemented in your TD.
Expand Down Expand Up @@ -100,7 +100,7 @@ The core validation report is an object, which contains three objects (as you ca

## Known Bugs

- td-json-open assertion exists multiple times, [see issue 124](https://github.com/eclipse/thingweb.td-playground/issues/124)
- td-json-open assertion exists multiple times, [see issue 124](https://github.com/eclipse-thingweb/playground/issues/124)

## Parameters

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"license": "EPL-2.0 OR W3C-20150513",
"version": "1.6.0",
"description": "Provides a Command Line Interface for the Web of Things - Thing Description Playground.",
"homepage": "https://github.com/eclipse/thingweb.td-playground#readme",
"homepage": "https://github.com/eclipse-thingweb/playground#readme",
"bugs": {
"url": "https://github.com/eclipse/thingweb.td-playground/issues"
"url": "https://github.com/eclipse-thingweb/playground/issues"
},
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @thing-description-playground/**CORE**

This package provides the main functionality of the Web of Things Playground, i.e., validating given Thing Descriptions.
You can find more information about the Thingweb-Playground [here](https://github.com/eclipse/thingweb.td-playground).
You can find more information about the Thingweb-Playground [here](https://github.com/eclipse-thingweb/playground).

Limitations:

Expand Down Expand Up @@ -115,8 +115,8 @@ The core validation report is an object, which contains three objects (as you ca
- The `details` object contains the results of the additional checks. The keywords can have the same values as in report.
- The `detailComments` explains the meaning of every additional check.

[web]: https://github.com/eclipse/thingweb.td-playground/tree/master/packages/web
[cli]: https://github.com/eclipse/thingweb.td-playground/tree/master/packages/cli
[web]: https://github.com/eclipse-thingweb/playground/tree/master/packages/web
[cli]: https://github.com/eclipse-thingweb/playground/tree/master/packages/cli

## Test Usage

Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"license": "EPL-2.0 OR W3C-20150513",
"version": "1.4.0",
"description": "Provides the validation functionality for the Web of Things - Thing Description Playground.",
"homepage": "https://github.com/eclipse/thingweb.td-playground#readme",
"homepage": "https://github.com/eclipse-thingweb/playground#readme",
"bugs": {
"url": "https://github.com/eclipse/thingweb.td-playground/issues"
"url": "https://github.com/eclipse-thingweb/playground/issues"
},
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/eclipse/thingweb.td-playground.git",
"url": "https://github.com/eclipse-thingweb/playground.git",
"directory": "packages/core"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions packages/defaults/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The package adds/removes defaults according to the Thing Description (TD) specification for every property with a default that is not filled with a value.
Currently using [this](https://www.w3.org/TR/2020/REC-wot-thing-description-20200409/) version of the TD specification.
It is part of the Thingweb-Playground, you can find more information about the Thingweb-Playground [here](https://github.com/eclipse/thingweb.td-playground).
It is part of the Thingweb-Playground, you can find more information about the Thingweb-Playground [here](https://github.com/eclipse-thingweb/playground).

## License

Expand Down Expand Up @@ -75,5 +75,5 @@ You can use this package to integrate TD default value adding/removing in your a
#20 | }
```

[web]: https://github.com/eclipse/thingweb.td-playground/tree/master/packages/web
[cli]: https://github.com/eclipse/thingweb.td-playground/tree/master/packages/cli
[web]: https://github.com/eclipse-thingweb/playground/tree/master/packages/web
[cli]: https://github.com/eclipse-thingweb/playground/tree/master/packages/cli
6 changes: 3 additions & 3 deletions packages/defaults/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"license": "EPL-2.0 OR W3C-20150513",
"version": "1.4.0",
"description": "Adds/removes defaults for Thing Descriptions in the Web of Things - Thing Description Playground.",
"homepage": "https://github.com/eclipse/thingweb.td-playground#readme",
"homepage": "https://github.com/eclipse-thingweb/playground#readme",
"bugs": {
"url": "https://github.com/eclipse/thingweb.td-playground/issues"
"url": "https://github.com/eclipse-thingweb/playground/issues"
},
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/eclipse/thingweb.td-playground.git",
"url": "https://github.com/eclipse-thingweb/playground.git",
"directory": "packages/defaults"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/json-spell-checker/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @thing-description-playground/**JSON-SPELL-CHECKER**

This package provides spell-checking support for JSON files when a JSON Schema is given.
You can find more information about the Thingweb-Playground [here](https://github.com/eclipse/thingweb.td-playground).
You can find more information about the Thingweb-Playground [here](https://github.com/eclipse-thingweb/playground).

Limitations:

Expand Down
6 changes: 3 additions & 3 deletions packages/json-spell-checker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"license": "EPL-2.0 OR W3C-20150513",
"version": "1.0.1",
"description": "Checks the spelling of a JSON file depending on the JSON schema",
"homepage": "https://github.com/eclipse/thingweb.td-playground#readme",
"homepage": "https://github.com/eclipse-thingweb/playground#readme",
"bugs": {
"url": "https://github.com/eclipse/thingweb.td-playground/issues"
"url": "https://github.com/eclipse-thingweb/playground/issues"
},
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/eclipse/thingweb.td-playground.git",
"url": "https://github.com/eclipse-thingweb/playground.git",
"directory": "packages/json-spell-checker"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/td_to_asyncapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ You can use this package to integrate AsyncAPI instance generation from a TD in

Licensed under the MIT license, see [License](../../LICENSE.md).

[web]: https://github.com/eclipse/thingweb.td-playground/tree/master/packages/web
[cli]: https://github.com/eclipse/thingweb.td-playground/tree/master/packages/cli
[web]: https://github.com/eclipse-thingweb/playground/tree/master/packages/web
[cli]: https://github.com/eclipse-thingweb/playground/tree/master/packages/cli
6 changes: 3 additions & 3 deletions packages/td_to_asyncapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"license": "EPL-2.0 OR W3C-20150513",
"version": "1.1.1",
"description": "Provides AsyncAPI instance generation for Thing Descriptions in the Web of Things - Thing Description Playground.",
"homepage": "https://github.com/eclipse/thingweb.td-playground#readme",
"homepage": "https://github.com/eclipse-thingweb/playground#readme",
"bugs": {
"url": "https://github.com/eclipse/thingweb.td-playground/issues"
"url": "https://github.com/eclipse-thingweb/playground/issues"
},
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/eclipse/thingweb.td-playground.git",
"url": "https://github.com/eclipse-thingweb/playground.git",
"directory": "packages/td_to_asyncapi"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/td_to_openAPI/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ You can use this package to integrate OpenAPI instance generation from a TD in y

Licensed under the MIT license, see [License](../../LICENSE.md).

[web]: https://github.com/eclipse/thingweb.td-playground/tree/master/packages/web
[cli]: https://github.com/eclipse/thingweb.td-playground/tree/master/packages/cli
[web]: https://github.com/eclipse-thingweb/playground/tree/master/packages/web
[cli]: https://github.com/eclipse-thingweb/playground/tree/master/packages/cli
6 changes: 3 additions & 3 deletions packages/td_to_openAPI/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"license": "EPL-2.0 OR W3C-20150513",
"version": "1.3.1",
"description": "Provides openAPI instance generation for Thing Descriptions in the Web of Things - Thing Description Playground.",
"homepage": "https://github.com/eclipse/thingweb.td-playground#readme",
"homepage": "https://github.com/eclipse-thingweb/playground#readme",
"bugs": {
"url": "https://github.com/eclipse/thingweb.td-playground/issues"
"url": "https://github.com/eclipse-thingweb/playground/issues"
},
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/eclipse/thingweb.td-playground.git",
"url": "https://github.com/eclipse-thingweb/playground.git",
"directory": "packages/td_to_openAPI"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This package provides the web interface of the Web of Things Thing Desciption Playground.
It uses the functionality of the `core` package to validate Thing Descriptions and `assertions` to generate an assertion Test report.
You can find more information about the Thingweb-Playground [here](https://github.com/eclipse/thingweb.td-playground).
You can find more information about the Thingweb-Playground [here](https://github.com/eclipse-thingweb/playground).

The TDs can be exported as URLs which can be copied anywhere and reopened here.

Expand Down
6 changes: 3 additions & 3 deletions packages/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Thing Description Playground - Validate your W3C Thing Description</title>
<title>Eclipse Thingweb Playground | Validate and play with W3C Thing Descriptions</title>
<link rel="shortcut icon" type="image/x-icon" href="./media/favlogo.png" />
<link rel="stylesheet" type="text/css" href="node_modules/bootstrap-css-only/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="./style.css" />
Expand Down Expand Up @@ -161,12 +161,12 @@ <h3>Thing Description Playground</h3>

<div class="col-4 navcol">
<nav class="navbar navbar-dark bg-info">
<a class="navbar-brand btn" href="https://github.com/eclipse/thingweb.td-playground/issues/new"
<a class="navbar-brand btn" href="https://github.com/eclipse-thingweb/playground/issues/new"
>Create Issue</a
>
<a
class="navbar-brand btn"
href="https://github.com/eclipse/thingweb.td-playground/tree/master/packages/cli"
href="https://github.com/eclipse-thingweb/playground/tree/master/packages/cli"
>Playground CLI</a
>
</nav>
Expand Down
6 changes: 3 additions & 3 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"license": "EPL-2.0 OR W3C-20150513",
"version": "1.6.0",
"description": "Provides a browser GUI for the Web of Things - Thing Description Playground.",
"homepage": "https://github.com/eclipse/thingweb.td-playground#readme",
"homepage": "https://github.com/eclipse-thingweb/playground#readme",
"bugs": {
"url": "https://github.com/eclipse/thingweb.td-playground/issues"
"url": "https://github.com/eclipse-thingweb/playground/issues"
},
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/eclipse/thingweb.td-playground.git",
"url": "https://github.com/eclipse-thingweb/playground.git",
"directory": "packages/web"
},
"scripts": {
Expand Down
Loading