Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
emo
TIDO
Commits
276d185b
Commit
276d185b
authored
Apr 08, 2020
by
schneider210
Browse files
fix build; define entrypoint
parent
ca759c75
Pipeline
#130629
failed with stage
in 2 minutes and 56 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
276d185b
...
...
@@ -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
...
...
src/index.template.html
View file @
276d185b
...
...
@@ -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>
...
...
src/layouts/EmoViewer.vue
View file @
276d185b
...
...
@@ -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
;
...
...
src/router/routes.js
View file @
276d185b
...
...
@@ -11,8 +11,8 @@
const
routes
=
[
{
path
:
'
/
'
,
name
:
'
Twin
View
'
,
component
:
()
=>
import
(
'
@/pages/quasar-twinv
iew.vue
'
),
name
:
'
Emo
View
er
'
,
component
:
()
=>
import
(
'
layouts/EmoV
iew
er
.vue
'
),
},
];
// Always leave this as last one
...
...
Mathias Goebel
🎠
@mgoebel
mentioned in issue
viewer#30 (closed)
·
Apr 22, 2020
mentioned in issue
viewer#30 (closed)
mentioned in issue viewer#30
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment