Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
a0785f3e
Commit
a0785f3e
authored
4 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Add a basic readme
parent
79ab145d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/app-shell/README.md
+83
-0
83 additions, 0 deletions
packages/app-shell/README.md
packages/app-shell/assets/index.html
+1
-1
1 addition, 1 deletion
packages/app-shell/assets/index.html
with
84 additions
and
1 deletion
packages/app-shell/README.md
+
83
−
0
View file @
a0785f3e
# VPU App Shell Component
[
GitLab Repository
](
https://gitlab.tugraz.at/VPU/Apps/AppShell
)
A web component for building SPAs consisting of one topic with multiple
activities. Handles login, language selection, activity switching, menus etc.
## Usage
```
html
<vpu-app
src=
"/example.topic.metadata.json"
></vpu-app>
```
## Attributes
-
`lang`
(optional, default:
`de`
): set to
`de`
or
`en`
for German or English
-
example
`<vpu-auth lang="de" </vpu-auth>`
-
`src`
: The path to a topic metadata file (json)
-
`base-path`
(optional, default:
`/`
: An absolute base path for routing
-
`entry-point-url`
: Entry point URL to access the API
## Topic Metadata
```
json
{
"name"
:
{
"de"
:
"Beispiel"
,
"en"
:
"Example"
},
"short_name"
:
{
"de"
:
"Beispiel"
,
"en"
:
"Example"
},
"description"
:
{
"de"
:
"Ich bin eine Beschreibung der Applikation"
,
"en"
:
"I am a description of this application"
},
"routing_name"
:
"example"
,
"activities"
:
[
{
"path"
:
"example.metadata.json"
,
visible:
true
}
],
"attributes"
:
[]
}
```
## Activity Metada
```
json
{
"element"
:
"vpu-activity-example"
,
"module_src"
:
"vpu-activity-example.js"
,
"routing_name"
:
"activity-example"
,
"name"
:
{
"de"
:
"Beispielaktivität"
,
"en"
:
"Example Activity"
},
"short_name"
:
{
"de"
:
"Beispielaktivität"
,
"en"
:
"Example Activity"
},
"description"
:
{
"de"
:
"Eine Beschreibung"
,
"en"
:
"A Description"
}
}
```
## Local development
```
bash
# get the source
git clone git@gitlab.tugraz.at:VPU/Apps/AppShell.git
cd
AppShell
git submodule update
--init
# install dependencies (make sure you have npm version 4+ installed, so symlinks to the git submodules are created automatically)
npm
install
# constantly build dist/bundle.js and run a local web-server on port 8002
npm run watch
```
Jump to
<http://localhost:8002>
and you should get a Single Sign On login page.
This diff is collapsed.
Click to expand it.
packages/app-shell/assets/index.html
+
1
−
1
View file @
a0785f3e
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<body>
<body>
<vpu-app
lang=
"de"
src=
"/example.topic.metadata.json"
></vpu-app>
<vpu-app
src=
"/example.topic.metadata.json"
></vpu-app>
</body>
</body>
</html>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment