wiki-plugin-rcntimeline 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/rcntimeline.js +4 -1
- package/package.json +1 -1
package/client/rcntimeline.js
CHANGED
|
@@ -708,7 +708,8 @@
|
|
|
708
708
|
if (!m.intervals.length) {
|
|
709
709
|
$item.append(`<div style="background:#f5f5f5;padding:12px;color:#64748b">`
|
|
710
710
|
+ (lineup ? `Nothing to collect yet. Open co-op pages to the left of this one, then press ↻. ${controls}`
|
|
711
|
-
: `No intervals yet.
|
|
711
|
+
: `No intervals yet. Draw them in the full tool, or double-click and add lines of the form <code>Label = Jan 2020 .. Jun 2021</code>.`
|
|
712
|
+
+ `<div style="padding:8px 0 0;text-align:center;"><button class="rcnt-open" style="cursor:pointer;">Open in RCN Timeline ↗</button></div>`)
|
|
712
713
|
+ `</div>`)
|
|
713
714
|
return
|
|
714
715
|
}
|
|
@@ -834,6 +835,8 @@
|
|
|
834
835
|
const tl = event.data.timeline
|
|
835
836
|
voicesToFiles(tl.walks).then(note => {
|
|
836
837
|
item.timeline = Object.assign({ intervals: tl.intervals || [], links: tl.links || [] }, Array.isArray(tl.walks) && tl.walks.length ? { walks: tl.walks } : {})
|
|
838
|
+
// story bands, their order and the file's note come back too
|
|
839
|
+
;['bands', 'sort', 'note'].forEach(k => { if (tl[k] != null) item.timeline[k] = tl[k] })
|
|
837
840
|
delete item.frozen // what was frozen is now in the item's own timeline
|
|
838
841
|
item.text = words(item, item.timeline)
|
|
839
842
|
save($item, item)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wiki-plugin-rcntimeline",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "Federated Wiki plugin: a small RCN timeline on a page — intervals with fuzzy edges, the links between them, a date axis; each bar opens its page",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wiki",
|