Commit 9d65e863 authored by schneider210's avatar schneider210
Browse files

Feature/#39 substitute counter labels

parent 0c109a9c
......@@ -5,13 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.0.19] - 2020-07-10
## [0.0.20] - 2020-07-10
### Changed
- The page deployment now takes places without having to store any data externally.
We only rely on previous artifacts for new pipelines.
## [0.0.19] - 2020-07-03
### Added
- replace basic page / sheet counter by *original* pagelabel delivered by the api.
## [0.0.18] - 2020-07-02
### Fixed
......
......@@ -118,13 +118,14 @@ export default {
},
getItemUrls(sequence, label) {
const urls = [];
let ctr = 0;
sequence.forEach((obj) => {
const pagelabel = this.getPageLabel(obj.id);
urls.push(
{
label: obj.id,
'label-key': `${this.config.labels.item} ${ctr += 1}`,
'label-key': `${this.config.labels.item} ${pagelabel}`,
handler: (node) => {
if (this.itemurl === node.label) {
return;
......@@ -178,6 +179,9 @@ export default {
}
});
},
getPageLabel(itemurl) {
return itemurl.replace(/.*-(.*)\/latest.*$/, '$1');
},
getSequenceIndex(label) {
let index = 0;
this.manifests.forEach((manifest, idx) => {
......
Supports Markdown
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