Frontend Toolkit Showcase
Setup
yarn install
Local development
yarn run watch-local
You can then open http://127.0.0.1:8001/.
Adding demo pages
- Add demo activity path to
input
list ofrollup.config.js
- Create
assets/*.metadata.json
file likeassets/file-handling.metadata.json
- Reference in
assets/*.metadata.json
file in theactivities
part ofassets/dbp-toolkit-showcase.topic.metadata.json.ejs
Importing demo activities
- imported demo activity has to be a
export class
- Add the line
import readme from 'path-to-activity/README.md';
- example:
import readme from '@dbp-toolkit/person-select/README.md';
- example:
- Add the line
import {ExportclassName} from 'path-to-activity/src/activity-name';
- example:
import {PersonSelectDemo} from '@dbp-toolkit/person-select/src/dbp-person-select-demo';
- example:
- Add the class to scopedElements
- example
static get scopedElements() { return { 'dbp-person-select-demo': PersonSelectDemo, }; }'
- example