Skip to content

Commit

Permalink
Merge pull request #100 from substance/alpha2-release
Browse files Browse the repository at this point in the history
Alpha 2 release
  • Loading branch information
Michael Aufreiter authored Oct 7, 2016
2 parents 4b3cc23 + 2afef63 commit 1d64c5b
Show file tree
Hide file tree
Showing 248 changed files with 320 additions and 247 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
node_modules
.lock-wscript
.test
.npm
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 42 additions & 0 deletions examples/author.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<html>
<head>
<title>Texture Author</title>
<meta charset="UTF-8">
<script type="text/javascript" src="../substance/substance.js"></script>
<script type="text/javascript" src="../texture.js"></script>
<script type="text/javascript" src="./data.js"></script>
<style>
/* Texture Component styles */
@import '../texture.css';
/* You may want to use your own reset and pagestyle */
/* @import '../substance/substance-reset.css';*/
@import '../texture-reset.css';
@import '../texture-pagestyle.css';
/* Using url here, so font-awesome does not get bundled. */
@import url('../font-awesome/css/font-awesome.min.css');
body { overflow: hidden; }
.sc-author { position: absolute; left: 0px; right: 0px; bottom: 0px; top: 0px; }
</style>
<script>
var t = window.texture;

/* Author Configuration */
var configurator = new t.TextureConfigurator()
.import(t.AuthorPackage)
.setXMLStore(t.ExampleXMLStore, XMLFILES)

if (typeof window !== 'undefined') {
window.onload = function() {
var app = t.Texture.mount({
configurator: configurator,
documentId: 'elife-15278'
}, document.body)
window.app = app
}
}
</script>
</head>
<body>

</body>
</html>
11 changes: 0 additions & 11 deletions examples/author/app.css

This file was deleted.

11 changes: 0 additions & 11 deletions examples/author/index.html

This file was deleted.

6 changes: 0 additions & 6 deletions examples/config.js

This file was deleted.

7 changes: 0 additions & 7 deletions examples/index.html

This file was deleted.

43 changes: 43 additions & 0 deletions examples/publisher.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<html>
<head>
<title>Texture Publisher</title>
<meta charset="UTF-8">
<script type="text/javascript" src="../substance/substance.js"></script>
<script type="text/javascript" src="../texture.js"></script>
<script type="text/javascript" src="./data.js"></script>
<style>
/* Substance Component styles */
@import '../substance/substance.css';
/* Texture Component styles */
@import '../texture.css';
/* You may want to use your own reset and pagestyle */
@import '../substance/substance-reset.css';
@import '../substance/substance-pagestyle.css';
/* Using url here, so font-awesome does not get bundled. */
@import url('../font-awesome/css/font-awesome.min.css');
body { overflow: hidden; }
.sc-author { position: absolute; left: 0px; right: 0px; bottom: 0px; top: 0px; }
</style>
<script>
var t = texture;

/* Author Configuration */
var configurator = new t.TextureConfigurator()
.import(t.PublisherPackage)
.setXMLStore(t.ExampleXMLStore, XMLFILES)

if (typeof window !== 'undefined') {
window.onload = function() {
var app = t.Texture.mount({
configurator: configurator,
documentId: 'elife-15278'
}, document.body)
window.app = app
}
}
</script>
</head>
<body>

</body>
</html>
11 changes: 0 additions & 11 deletions examples/publisher/app.css

This file was deleted.

23 changes: 0 additions & 23 deletions examples/publisher/app.js

This file was deleted.

12 changes: 0 additions & 12 deletions examples/publisher/index.html

This file was deleted.

45 changes: 45 additions & 0 deletions examples/tagging.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<html>
<head>
<title>Texture Publisher</title>
<meta charset="UTF-8">
<script type="text/javascript" src="../substance/substance.js"></script>
<script type="text/javascript" src="../texture.js"></script>
<script type="text/javascript" src="./data.js"></script>
<style>
/* Substance Component styles */
@import '../substance/substance.css';
/* Texture Component styles */
@import '../texture.css';
/* You may want to use your own reset and pagestyle */
@import '../substance/substance-reset.css';
@import '../substance/substance-pagestyle.css';
/* Using url here, so font-awesome does not get bundled. */
@import url('../font-awesome/css/font-awesome.min.css');
body { overflow: hidden; }
.sc-author { position: absolute; left: 0px; right: 0px; bottom: 0px; top: 0px; }
</style>
<script>
var t = window.texture;

/* Configure example */
var configurator = new t.TextureConfigurator()
.import(t.AuthorPackage)
// enable tagging abilities
.import(t.TaggingPackage)
.setXMLStore(t.ExampleXMLStore, XMLFILES)

if (typeof window !== 'undefined') {
window.onload = function() {
var app = t.Texture.mount({
configurator: configurator,
documentId: 'kitchen-sink-author'
}, document.body)
window.app = app
}
}
</script>
</head>
<body>

</body>
</html>
11 changes: 0 additions & 11 deletions examples/tagging/app.css

This file was deleted.

25 changes: 0 additions & 25 deletions examples/tagging/app.js

This file was deleted.

11 changes: 0 additions & 11 deletions examples/tagging/index.html

This file was deleted.

16 changes: 16 additions & 0 deletions index.es.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// texture
export { default as Texture } from './lib/texture/Texture'
export { default as TextureConfigurator } from './lib/texture/TextureConfigurator'
export { default as ExampleXMLStore } from './lib/texture/ExampleXMLStore'

// author
export { default as Author } from './lib/author/Author'
export { default as AuthorPackage } from './lib/author/AuthorPackage'

// publisher
export { default as Publisher } from './lib/publisher/Publisher'
export { default as PublisherPackage } from './lib/publisher/PublisherPackage'

// tagging
export { default as TaggingPackage } from './lib/tagging/TaggingPackage'

7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<h3>Texture Examples</h3>

<ul>
<li><a href="./examples/author.html">Author</a> - word-like editing interface</li>
<li><a href="./examples/publisher.html">Publisher</a> - QC-interface for publishers</li>
<li><a href="./examples/tagging.html">Tagging</a> - Experiment for post-conversion tagging UI</li>
</ul>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions examples/author/app.js → lib/author/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { substanceGlobals } from 'substance'
import Texture from '../../packages/texture/Texture'
import TextureConfigurator from '../../packages/texture/TextureConfigurator'
import AuthorPackage from '../../packages/author/AuthorPackage'
import Texture from '../../lib/texture/Texture'
import TextureConfigurator from '../../lib/texture/TextureConfigurator'
import AuthorPackage from '../../lib/author/AuthorPackage'
import ExampleXMLStore from '../ExampleXMLStore'

substanceGlobals.DEBUG_RENDERING = true;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/jats/aff/affUtils.js → lib/jats/aff/affUtils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import toDOM from '../../../util/toDOM'
import toDOM from '../../util/toDOM'

/*
Get all affiliations for a doc
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from 'substance'
import renderNodeComponent from '../../../util/renderNodeComponent'
import renderNodeComponent from '../../util/renderNodeComponent'

class ArticleMetaComponent extends Component {
render($$) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import XMLIterator from '../../../util/XMLIterator'
import XMLIterator from '../../util/XMLIterator'
import JATS from '../JATS'

export default {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from 'substance'
import renderNodeComponent from '../../../util/renderNodeComponent'
import renderNodeComponent from '../../util/renderNodeComponent'

class ArticleComponent extends Component {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import XMLIterator from '../../../util/XMLIterator'
import XMLIterator from '../../util/XMLIterator'

export default {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from 'substance'
import renderNodeComponent from '../../../util/renderNodeComponent'
import renderNodeComponent from '../../util/renderNodeComponent'

class BackComponent extends Component {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import XMLIterator from '../../../util/XMLIterator'
import XMLIterator from '../../util/XMLIterator'
let BACK_CONTENT = ["ack", "app-group", "bio", "fn-group", "glossary", "ref-list", "notes", "sec"]

export default {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import JATS from '../JATS'
import XMLIterator from '../../../util/XMLIterator'
import XMLIterator from '../../util/XMLIterator'

export default {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import XMLIterator from '../../../util/XMLIterator'
import XMLIterator from '../../util/XMLIterator'

export default {

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from 'substance'
import renderNodeComponent from '../../../util/renderNodeComponent'
import renderNodeComponent from '../../util/renderNodeComponent'

class ContribGroupComponent extends Component {
didMount() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import XMLIterator from '../../../util/XMLIterator'
import XMLIterator from '../../util/XMLIterator'

let CONTRIB_GROUP = ['contrib', 'address', 'aff', 'aff-alternatives', 'author-comment', 'bio', 'email', 'etal', 'ext-link', 'fn', 'on-behalf-of', 'role', 'uri', 'xref', 'x']

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import toDOM from '../../../util/toDOM'
import getFullName from '../../../util/getFullName'
import toDOM from '../../util/toDOM'
import getFullName from '../../util/getFullName'
import { getAffs } from '../aff/affUtils'

/*
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 1d64c5b

Please sign in to comment.