This repository has been archived by the owner on Feb 26, 2022. It is now read-only.
forked from bbc/react-transcript-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Task: added lerna * WIP: storybook conversion * mend * WIP: adding MediaPlayer * move TimedTextEditor, TranscriptEditor and adapters util to packages (bbc#128) * moved TimedTextEditor and TranscriptEditor to packages also created stories, and package.json for each, but can't test them in storybook coz they have dependencies on adapters in Util folder * moved Util and demdemo app * got storybook working * added demo app to storybook * mend * Fix: commenting out demo * Changed repo packages folder structure (bbc#129) * cleaned up adapters * changed folder structure * fixed timecode converter duplice module * made all packages private except for TranscriptEditor * working * "Monorepo" refactor spike remove lerna (bbc#135) * got storybook working tests not working yet * fixed tests using jest, and removed CRA dependency, updated babel config for babel 7 and stubbed css files for jest tests for css node modules * Added support for demo app in storybook * fixed eslint CRA had it's own linter internally, so added linting + dependencies * cleaned up export scripts in package.json * updated README * finalised refactor see PR description for more details * rename demo app editor to demoTranscript * bringing back style lint, and fixing lint in storybook config * updated with current master AWS adapter * linting * fix bbc#132 playtime displaied double playtime on display is double of actual total playtime * temporary fix bbc#73 monospace duration and current time in media player to stop moving while playing * Feature: Added custom css loading to storybook (bbc#136) * Resolved conflict iwth AWS adapter
- Loading branch information
Showing
133 changed files
with
39,534 additions
and
25,793 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,3 +88,5 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
|
||
stats.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
src | ||
demo | ||
lib | ||
packages | ||
build | ||
.babelrc | ||
.babel.config.js | ||
webpack.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import '@storybook/addon-options/register'; | ||
import '@storybook/addon-actions/register'; | ||
import '@storybook/addon-links/register'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { configure } from '@storybook/react'; | ||
import { setOptions } from '@storybook/addon-options'; | ||
|
||
// automatically import all files ending in *.stories.js | ||
// https://webpack.js.org/guides/dependency-management/ | ||
const components = require.context('../packages/components/', true, /.stories.js$/); | ||
const demo = require.context('../demo/', true, /.stories.js$/); | ||
const styles = require.context('./styles', true, /\.scss$/); | ||
|
||
function loadStories() { | ||
demo.keys().forEach((filename) => demo(filename)); | ||
components.keys().forEach((filename) => components(filename)); | ||
styles.keys().forEach((filename) => styles(filename)); | ||
} | ||
|
||
setOptions({ | ||
name: 'react-transcript-editor', | ||
url: 'https://github.com/bbc/react-transcript-editor', | ||
addonPanelInRight: true | ||
}); | ||
|
||
configure(loadStories, module); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import url('https://gel.files.bbci.co.uk/r2.302/bbc-reith.css'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
body * { | ||
// font-family: ReithSans, Helvetica, sans-serif !important; | ||
font-family: ReithSerif, Fallback, sans-serif; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// https://github.com/storybooks/storybook/issues/270#issuecomment-318101549 | ||
// this config augments the storybook one with support for css modules | ||
// storybook does not have support for css modules out of the box | ||
// if CRA were to be present, storybook webpack augment those configs | ||
module.exports = { | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.module.css$/, | ||
use: [ | ||
{ | ||
loader: "style-loader" | ||
}, | ||
{ | ||
loader: "css-loader", | ||
options: { | ||
modules: true | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
test: /\.scss$/, | ||
use: [ | ||
{ | ||
loader: "style-loader" | ||
}, | ||
{ | ||
loader: "css-loader", | ||
options: { | ||
sourceMap: true | ||
} | ||
}, | ||
{ | ||
loader: "sass-loader", | ||
options: { | ||
sourcemap: true | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
"media-feature-range-operator-space-after": "always", | ||
"media-feature-colon-space-after": "always" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
**Is your Pull Request request related to another [issue](https://github.com/bbc/react-transcript-editor/issues) in this repository ?** | ||
_If so please link to other issues and PRs as appropriate_ | ||
<!-- _If so please link to other issues and PRs as appropriate_ --> | ||
|
||
**Describe what the PR does** | ||
_A clear and concise description of what the PR does. Feel free to use bulletpoints and checkboxes if needed [...]_ | ||
<!-- _A clear and concise description of what the PR does. Feel free to use bulletpoints and checkboxes if needed [...]_ --> | ||
|
||
|
||
**State whether the PR is ready for review or whether it needs extra work** | ||
_If you are still working on it and just setting it up for later review, or if it's ready to be reviewed for merging_ | ||
<!-- _If you are still working on it and just setting it up for later review, or if it's ready to be reviewed for merging_ --> | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the PR. | ||
<!-- Add any other context or screenshots about the PR. --> |
Oops, something went wrong.