Commit 276d185b authored by schneider210's avatar schneider210
Browse files

fix build; define entrypoint

parent ca759c75
Pipeline #130629 failed with stage
in 2 minutes and 56 seconds
......@@ -10,8 +10,8 @@ build:
image: node:latest
stage: build
script:
- yarn
- yarn run build
- npm install
- npm run build
artifacts:
paths:
- dist/
......@@ -34,8 +34,8 @@ production:
- master
stage: deploy
script:
- yarn
- yarn run build
- npm install
- npm run build
- mkdir emo-viewer && mv dist/js/* emo-viewer/
artifacts:
expire_in: 5 yrs
......
......@@ -16,6 +16,18 @@
<link rel="icon" type="image/ico" href="statics/icons/favicon.ico">
</head>
<body>
<noscript>
<strong>We're sorry but TextViewer doesn't work properly without JavaScript
enabled. Please enable it to continue.</strong>
</noscript>
<script id="emo-config" type="application/json">
{
"entrypoint": "https://ahikar-test.sub.uni-goettingen.de/api/textapi/ahikar/3r9ps/collection.json"
}
</script>
<!-- "entrypoint": "api/sampledata/collection.json" -->
<!-- DO NOT touch the following DIV -->
<div id="q-app"></div>
</body>
......
......@@ -97,7 +97,7 @@ export default {
this.collection = data;
this.label = this.getLabel(data);
data.sequence.map(seq => this.getManifest(seq.id));
data.sequence.map((seq) => this.getManifest(seq.id));
});
},
getConfig() {
......@@ -121,7 +121,7 @@ export default {
this.manifests.push(data);
this.tree.push({ label: data.label, nodes: data.sequence });
data.sequence.map(seq => this.itemurls.push(seq.id));
data.sequence.map((seq) => this.itemurls.push(seq.id));
// make sure that urls are set just once on init
if (!this.itemurl) {
this.itemurl = data.sequence[0].id;
......
......@@ -11,8 +11,8 @@
const routes = [
{
path: '/',
name: 'TwinView',
component: () => import('@/pages/quasar-twinview.vue'),
name: 'EmoViewer',
component: () => import('layouts/EmoViewer.vue'),
},
];
// Always leave this as last one
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment