Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements #1352

Open
wants to merge 70 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
3aba68c
Upgrade substance-bundler
obuchtala Aug 23, 2019
10300de
Adapt to bundler api changes.
obuchtala Aug 23, 2019
5a27858
Moved DAR server into a separated folder.
obuchtala Aug 29, 2019
8e5686a
Removed _require() hack.
obuchtala Aug 29, 2019
e75d27d
Build dist/dar-server.js
obuchtala Aug 29, 2019
0804f25
Fix Storage.test
obuchtala Aug 29, 2019
a343f75
Fix package configuration.
obuchtala Aug 29, 2019
c5c7968
Define entry points 'esnext' and 'module'
obuchtala Aug 29, 2019
fe5643b
Fix regressions in make
obuchtala Aug 29, 2019
f4e96bf
Fix app build
obuchtala Aug 29, 2019
38ef075
Added comment
obuchtala Aug 29, 2019
3e3a475
WIP
obuchtala Sep 1, 2019
b477a78
Fixes.
obuchtala Sep 1, 2019
137b71f
Set substance as peer dependency.
obuchtala Sep 1, 2019
486c127
version -> 3.0.0-preview-7
obuchtala Sep 1, 2019
ee249b4
Upgrade texture-xml-utils.
obuchtala Sep 2, 2019
18384d5
Fix package.json
obuchtala Sep 2, 2019
9e47231
version -> 3.0.0-preview-8
obuchtala Sep 2, 2019
2b4c040
Upgrade substance.
obuchtala Sep 4, 2019
dd85572
Fix regressions.
obuchtala Sep 4, 2019
b7607d1
Add missing export.
obuchtala Sep 4, 2019
28c18c1
Fix regression: use editor session for manifest manipulations.
obuchtala Sep 4, 2019
ab71f13
Tidy up.
obuchtala Sep 4, 2019
d315f75
version -> 3.0.0-preview-10
obuchtala Sep 4, 2019
b28ff4f
Upgrade substance.
obuchtala Sep 9, 2019
cb7383a
version -> 3.0.0-preview-11
obuchtala Sep 9, 2019
2756c42
Upgrade substance.
obuchtala Sep 12, 2019
8d678fa
Introduce prop 'editable'.
obuchtala Sep 12, 2019
f0afde5
Fixes.
obuchtala Sep 12, 2019
edc588f
Disable XrefEditor when editable=false
obuchtala Sep 12, 2019
7edc68c
Fix demo.
obuchtala Sep 12, 2019
75876b3
Extend context in EditorWorkflow.
obuchtala Sep 12, 2019
3d143c8
Adapt to new TypeIndex api.
obuchtala Sep 12, 2019
b0fde02
Upgrade substance.
obuchtala Sep 12, 2019
76990a5
Fix linter issue.
obuchtala Sep 12, 2019
ffe7078
Fix regression in PersistedDocumentArchive.
obuchtala Sep 12, 2019
32c984c
Workaround for regression in Storage test.
obuchtala Sep 12, 2019
18f6428
Remove sm-theme-light from button.css.
obuchtala Sep 12, 2019
a070efa
Fix redo and close icons for fontawesome 5.
obuchtala Sep 12, 2019
078f35f
Upgrade substance to resolve a problem with icon configuration.
obuchtala Sep 12, 2019
f7980a6
version -> 3.0.0-preview-12
obuchtala Sep 12, 2019
6039019
Upgrade substance.
obuchtala Sep 14, 2019
f3456a8
Introduce archive.getConfig()
obuchtala Sep 15, 2019
5568257
Upgrade substance.
obuchtala Sep 15, 2019
f367639
version -> 3.0.0-preview-13
obuchtala Sep 15, 2019
ddd2633
Upgrade substance.
obuchtala Sep 15, 2019
003c4d6
version -> 3.0.0-preview-14
obuchtala Sep 15, 2019
92af61c
Introduce BasicArticleEditor.
obuchtala Oct 7, 2019
2c78de5
Upgrade substance.
obuchtala Oct 7, 2019
e6f2bdb
Use substance.$$
obuchtala Oct 7, 2019
0c394cb
Bring back tool-panel compilation.
obuchtala Oct 7, 2019
d392f21
Working towards removing model API.
obuchtala Oct 7, 2019
b4883e2
Towards removing Model API.
obuchtala Oct 7, 2019
88b5b17
Tidy up.
obuchtala Oct 8, 2019
e252e3e
Upgrade substance.
obuchtala Oct 8, 2019
bf2eac4
Render section labels as given.
obuchtala Oct 8, 2019
500b26b
Throw if renderProperty is called with invalid path.
obuchtala Oct 8, 2019
9d8c0dc
version -> 3.0.0-preview-15
obuchtala Oct 9, 2019
718b204
Tidy up.
obuchtala Oct 9, 2019
897a4b1
Upgrade substance.
obuchtala Oct 9, 2019
3e0c0ce
Upgrade substance.
obuchtala Oct 9, 2019
9a83d43
Turn FigureManager et al. into services.
obuchtala Oct 9, 2019
acad8ee
version -> 3.0.0-preview-16
obuchtala Oct 9, 2019
904c68b
Removing FigurePanel support.
obuchtala Oct 10, 2019
c2f02b1
Introduce a global FileSelect.
obuchtala Oct 10, 2019
c0e83e4
Upgrade substance.
obuchtala Oct 10, 2019
8380ce1
version -> 3.0.0-preview-17
obuchtala Oct 10, 2019
9aa64b5
Fix context.editor
obuchtala Oct 10, 2019
727e30e
Introduce archive.replaceAsset()
obuchtala Oct 10, 2019
ce11d6c
version -> 3.0.0-preview-18
obuchtala Oct 10, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion builds/demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ window.addEventListener('load', () => {
storageType: getQueryStringParam('storage') || 'vfs',
storageUrl: getQueryStringParam('storageUrl') || '/archives',
vfs: window.vfs,
enableRouting: true
enableRouting: true,
editable: true
}, window.document.body)

// put the archive and some more things into global scope, for debugging
Expand Down
12 changes: 2 additions & 10 deletions builds/desktop/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const fs = require('fs')
const path = require('path')
const url = require('url')
const fsExtra = require('fs-extra')
const { DarFileStorage } = require('./lib/texture')
const { DarFileStorage } = require('./lib/dar-server')
const debug = require('debug')('main')

const {
Expand All @@ -13,10 +13,8 @@ const {
const DEBUG = process.env.DEBUG

const BLANK_DOCUMENT = path.join(__dirname, 'templates', 'blank.dar')
const BLANK_FIGURE_PACKAGE = path.join(__dirname, 'templates', 'blank-figure-package.dar')
const templates = {
'article': BLANK_DOCUMENT,
'figure-package': BLANK_FIGURE_PACKAGE
'article': BLANK_DOCUMENT
}

let argv = process.argv
Expand Down Expand Up @@ -282,12 +280,6 @@ function _createMenu () {
click () {
_openNew('article')
}
},
{
label: 'Figure Package',
click () {
_openNew('figure-package')
}
}
]
},
Expand Down
45 changes: 0 additions & 45 deletions data/blank-figure-package/figure.xml

This file was deleted.

8 changes: 0 additions & 8 deletions data/blank-figure-package/manifest.xml

This file was deleted.

Binary file removed data/blank-figure-package/placeholder.png
Binary file not shown.
Binary file removed data/elife-32671/fig1.jpg
Binary file not shown.
Binary file removed data/elife-32671/fig2.jpg
Binary file not shown.
Binary file removed data/elife-32671/fig3.jpg
Binary file not shown.
Binary file removed data/elife-32671/fig4.jpg
Binary file not shown.
Binary file removed data/elife-32671/fig5.jpg
Binary file not shown.
12 changes: 0 additions & 12 deletions data/elife-32671/manifest.xml

This file was deleted.

1,940 changes: 0 additions & 1,940 deletions data/elife-32671/manuscript.xml

This file was deleted.

Empty file.
Binary file removed data/figure-package/fig1a.jpg
Binary file not shown.
Binary file removed data/figure-package/fig1b.jpg
Binary file not shown.
142 changes: 0 additions & 142 deletions data/figure-package/figure.xml

This file was deleted.

10 changes: 0 additions & 10 deletions data/figure-package/manifest.xml

This file was deleted.

39 changes: 6 additions & 33 deletions data/kitchen-sink/manuscript.xml
Original file line number Diff line number Diff line change
Expand Up @@ -322,42 +322,15 @@ def read() = in.read()
</permissions>
</fig>
<p id="p-4">Lorem ipsum.</p>
<fig-group id="fig2">
<fig id="fig2a">
<label>Figure 2A</label>
<caption>
<title>First panel</title>
<p id="fig2a-caption-p1">First panel legend</p>
</caption>
<graphic id="fig2a-graphic" mimetype="image" mime-subtype="jpeg" xlink:href="fig2.jpg" />
</fig>
<fig id="fig2b">
<label>Figure 2B</label>
<caption>
<title>Second panel</title>
<p id="fig2b-caption-p1">Second panel caption</p>
</caption>
<graphic id="fig2b-graphic" mimetype="image" mime-subtype="jpeg" xlink:href="fig1.jpg" />
</fig>
</fig-group>
<p id="p-5">abc</p>
<fig id="fig3">
<label>Figure 3</label>
<fig id="fig2">
<label>Figure 2</label>
<caption>
<title>Figure with metadata.</title>
<p id="fig3-caption-p1">Legend.</p>
<title>First panel</title>
<p id="fig2-caption-p1">First panel legend</p>
</caption>
<kwd-group>
<label>Field I</label>
<kwd>Value A</kwd>
<kwd>Value B</kwd>
</kwd-group>
<kwd-group>
<label>Field II</label>
<kwd>Value C</kwd>
</kwd-group>
<graphic id="fig3-graphic-1" mimetype="image" mime-subtype="jpeg" xlink:href="placeholder.jpg" />
<graphic id="fig2-graphic" mimetype="image" mime-subtype="jpeg" xlink:href="fig2.jpg" />
</fig>
<p id="p-5">abc</p>
</sec>
<sec id="sec-3-3">
<title>Supplementary Files</title>
Expand Down
26 changes: 6 additions & 20 deletions docs/TextureJATS.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ id, xml:base, specific-use
</pre>
**Contains**:
<pre style="white-space:pre-wrap;">
(sec|boxed-text|chem-struct-wrap|fig|fig-group|table-wrap|disp-formula|disp-formula-group|def-list|list|p|preformat|disp-quote|supplementary-material|disp-formula|disp-formula-group|def-list|list|p|ack|disp-quote|speech|statement|verse-group)*
(sec|boxed-text|chem-struct-wrap|fig|table-wrap|disp-formula|disp-formula-group|def-list|list|p|preformat|disp-quote|supplementary-material|disp-formula|disp-formula-group|def-list|list|p|ack|disp-quote|speech|statement|verse-group)*
</pre>
**This element may be contained in:**
<pre style="white-space:pre-wrap;">
Expand Down Expand Up @@ -698,22 +698,7 @@ id, xml:base, position, orientation, specific-use, xml:lang, fig-type
</pre>
**Contains**:
<pre style="white-space:pre-wrap;">
object-id?,label?,caption?,kwd-group*,graphic,permissions?
</pre>
**This element may be contained in:**
<pre style="white-space:pre-wrap;">
fig-group, named-content, sec, body
</pre>

### `<fig-group>`

**Attributes**:
<pre style="white-space:pre-wrap;">
id, xml:base, position, orientation, specific-use, xml:lang, content-type
</pre>
**Contains**:
<pre style="white-space:pre-wrap;">
label?,fig+
object-id?,label?,caption?,graphic,permissions?
</pre>
**This element may be contained in:**
<pre style="white-space:pre-wrap;">
Expand Down Expand Up @@ -1032,7 +1017,7 @@ label?,kwd*
</pre>
**This element may be contained in:**
<pre style="white-space:pre-wrap;">
article-meta, fig
article-meta
</pre>

### `<label>`
Expand All @@ -1047,7 +1032,7 @@ id, xml:base, alt, xml:lang
</pre>
**This element may be contained in:**
<pre style="white-space:pre-wrap;">
aff, kwd-group, fn-group, fig-group, fig, supplementary-material, table-wrap, fn, disp-formula
aff, kwd-group, fn-group, fig, supplementary-material, table-wrap, fn, disp-formula
</pre>

### `<license>`
Expand Down Expand Up @@ -1538,7 +1523,7 @@ id, xml:base, xml:lang, sec-type, disp-level, specific-use
</pre>
**Contains**:
<pre style="white-space:pre-wrap;">
title?,(boxed-text|chem-struct-wrap|fig|fig-group|table-wrap|disp-formula|disp-formula-group|def-list|list|p|preformat|disp-quote|supplementary-material|disp-formula|disp-formula-group|def-list|list|p|ack|disp-quote|speech|statement|verse-group)*,sec*
title?,(boxed-text|chem-struct-wrap|fig|table-wrap|disp-formula|disp-formula-group|def-list|list|p|preformat|disp-quote|supplementary-material|disp-formula|disp-formula-group|def-list|list|p|ack|disp-quote|speech|statement|verse-group)*,sec*
</pre>
**This element may be contained in:**
<pre style="white-space:pre-wrap;">
Expand Down Expand Up @@ -2116,6 +2101,7 @@ element-citation, date, pub-date
- equation-count
- etal
- fig-count
- fig-group
- floats-group
- front-stub
- funding-statement
Expand Down
2 changes: 2 additions & 0 deletions index.node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './index.js'
export * from './src/dar-server/index.js'
Loading