Skip to content
Snippets Groups Projects
Unverified Commit 2e6467da authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Publish app-shell (#36)

parent 2319fa61
No related branches found
No related tags found
No related merge requests found
Pipeline #14619 passed
node_modules
.idea
npm-debug.log
package-lock.json
index.html
...@@ -3,10 +3,17 @@ ...@@ -3,10 +3,17 @@
A web component for building SPAs consisting of one topic with multiple A web component for building SPAs consisting of one topic with multiple
activities. Handles login, language selection, activity switching, menus etc. activities. Handles login, language selection, activity switching, menus etc.
You can install these component via npm:
```bash
npm i @dbp-toolkit/app-shell
```
## Usage ## Usage
```html ```html
<dbp-app-shell src="/example.topic.metadata.json"></dbp-app-shell> <dbp-app-shell src="/example.topic.metadata.json"></dbp-app-shell>
<script type="module" src="node_modules/@dbp-toolkit/app-shell/dist/dbp-app-shell.js"></script>
``` ```
## Attributes ## Attributes
...@@ -83,6 +90,9 @@ yarn run watch ...@@ -83,6 +90,9 @@ yarn run watch
# run tests # run tests
yarn test yarn test
# build local packages in dist directory
yarn run build
``` ```
Jump to <http://localhost:8002> and you should get a Single Sign On login page. Jump to <http://localhost:8002> and you should get a Single Sign On login page.
{ {
"name": "@dbp-toolkit/app-shell", "name": "@dbp-toolkit/app-shell",
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/app-shell", "homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/app-shell",
"version": "0.1.0", "version": "0.1.1",
"main": "src/index.js", "main": "src/index.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
"private": true,
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^16.0.0", "@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-json": "^4.1.0", "@rollup/plugin-json": "^4.1.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment