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

Develop #175

Merged
merged 43 commits into from
Aug 13, 2019
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
7ec2609
added support for docx - needs better integration altho it works
Mar 22, 2019
0a408f9
adding timecodes and speakers to plain text export
Mar 22, 2019
58db590
develop: Fix 159 performance problem (#171)
Jul 31, 2019
59505b0
develop: Update timestamps diff (#172)
Jul 31, 2019
a8ed136
develop: Murezzda update timestamps diff (#173)
Jul 31, 2019
b0ac0c0
develop: Murezzda update timestamps diff dpe groups words by speaker …
Jul 31, 2019
2e364d8
updated package-lock
Jul 31, 2019
1d4e992
fixed vulneranilities
Jul 31, 2019
ce31500
Getting ready to publish alpha
Jul 31, 2019
ac7658a
1.0.4-alpha.0
Jul 31, 2019
8602e1b
1.0.4@alpha
Jul 31, 2019
f5dfcd5
fixed notes
Jul 31, 2019
9535e02
changing speaker and timecodes to be unselectable
Jul 31, 2019
c09b748
1.0.4-alpha.1
Jul 31, 2019
f7f536d
1.0.4-alpha.1
Jul 31, 2019
fe8d03b
fix speaker and timecodes at paragraph level after realignement
Jul 31, 2019
efe3ada
1.0.4-alpha.2
Jul 31, 2019
d9020b9
merged conflicts with develop branch
Jul 31, 2019
6f49b05
Merge branch 'docx-spike-2' into develop
Jul 31, 2019
4319001
fixed docx integration
Jul 31, 2019
ffb68a8
Subtitles export (#168)
Jul 31, 2019
36aaf0a
fixed npm audit
Jul 31, 2019
a176e54
implemented export in UI
Jul 31, 2019
9d725b7
fixed test
Jul 31, 2019
c1e7ebc
added optional analytics
Jul 31, 2019
df10a38
updated CSS
Jul 31, 2019
a8a89b2
1.0.4-alpha.3
Jul 31, 2019
91eaa93
fixed subtiles segmentation
Aug 1, 2019
3b7ae7f
moved PR template in github folder
Aug 1, 2019
66174ae
cleaned up code for subtitles parsing
Aug 1, 2019
08742c1
1.0.4-alpha.4
Aug 1, 2019
ee3f4ec
fixed alignement algo
Aug 1, 2019
7710c17
fixed interpolation
Aug 1, 2019
40cdb5f
fixed filename of word doc export
Aug 1, 2019
df111a1
fixed TimeBox
Aug 1, 2019
0855005
1.0.4-alpha.5
Aug 2, 2019
af019bd
removed scroll sync (#181)
Aug 12, 2019
3588b26
refactor
Aug 12, 2019
fe495f2
Develop branch - should component update refactor (#182)
Aug 12, 2019
058a271
fix from PR review
Aug 13, 2019
71e9dee
Merge branch 'develop' of github.com:bbc/react-transcript-editor into…
Aug 13, 2019
e132bb9
Update package.json
Aug 13, 2019
14151ea
Update package.json
Aug 13, 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
File renamed without changes.
10 changes: 8 additions & 2 deletions demo/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import React from 'react';

// NOTE: This slows down performance, even during development
// if (process.env.NODE_ENV !== 'production') {
// const { whyDidYouUpdate } = require('why-did-you-update');
// whyDidYouUpdate(React, { exclude: [ /^HotKeysWrapper/ ] } );
// }
import TranscriptEditor from '../packages/components/transcript-editor';
import SttTypeSelect from './select-stt-json-type';
import ExportFormatSelect from './select-export-format';
Expand Down Expand Up @@ -116,7 +120,9 @@ class App extends React.Component {
if (ext === 'json') {
tmpData = JSON.stringify(data, null, 2);
}
this.download(tmpData, `${ this.state.mediaUrl }.${ ext }`);
if (ext !== 'docx') {
this.download(tmpData, `${ this.state.mediaUrl }.${ ext }`);
}
};

// https://stackoverflow.com/questions/2897619/using-html5-javascript-to-generate-and-save-a-file
Expand Down
1 change: 0 additions & 1 deletion demo/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ body {
@media (max-width: 767px) {
body {
padding: 0;
text-align: center;
}

.demoNavItem {
Expand Down
9 changes: 9 additions & 0 deletions demo/select-export-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ const ExportFormatSelect = props => {
<option value="html" disabled>HTML</option>
<option value="word" disabled>MS Word</option>
<option value="digitalpaperedit">Digital Paper Edit</option>
<option value="srt">Srt - Captions</option>
<option value="ttml">TTML - Captions</option>
<option value="premiereTTML">TTML for Adobe Premiere - Captions</option>
<option value="itt">iTT - Captions</option>
<option value="csv">CSV - Captions</option>
<option value="vtt">VTT - Captions</option>
<option value="pre-segment-txt">Pre-segment-txt - Captions</option>
<option value="docx">MS Word</option>
<option value="json-captions">Json - Captions</option>
</select>;
};

Expand Down
330 changes: 330 additions & 0 deletions docs/notes/2019-05-16-prevent-unnecessary-re-renders-in-react.md

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions docs/notes/2019-07-31-npm-tags.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Npm tags

First make sure you have done a commit of latest changes then

>You can run `npm version 1.0.4-alpha.1` to update `package.json` and create a git tag in one go (see https://docs.npmjs.com/cli/version).

- [Publishing a beta or alpha version to NPM](https://medium.com/@kevinkreuzer/publishing-a-beta-or-alpha-version-to-npm-46035b630dd7)

this changes `package.json` version to be

```json
"version": "1.0.4-alpha.0",
```

then you can run `npm run publish:public` which under the hood preps the files and folder and runs `npm publish dist --access public`.

To install in another repo

```
npm install @bbc/react-transcript-editor@alpha
```
Loading