From 2fa01e495008790591fbac63290f92d2875acd74 Mon Sep 17 00:00:00 2001 From: abenitoc Date: Fri, 17 Nov 2017 16:31:28 +0100 Subject: [PATCH] Visor subfix -> Visor Prefix --- .../canvas/{BoxVisor.jsx => VisorBox.jsx} | 6 ++-- ...SortableVisor.jsx => VisorBoxSortable.jsx} | 8 ++--- .../{CanvasVisor.jsx => VisorCanvas.jsx} | 12 +++---- ...{CanvasVisorDoc.jsx => VisorCanvasDoc.jsx} | 16 ++++----- ...{CanvasVisorSli.jsx => VisorCanvasSli.jsx} | 12 +++---- ...nvasVisor.jsx => VisorContainedCanvas.jsx} | 12 +++---- .../{HeaderVisor.jsx => VisorHeader.jsx} | 6 ++-- ...erVisor.jsx => VisorPluginPlaceholder.jsx} | 8 ++--- .../{SideNavVisor.jsx => VisorSideNav.jsx} | 4 +-- .../{EditorVisor.jsx => VisorApp.jsx} | 12 +++---- doc/importMdFiles.es6 | 36 +++++++++---------- doc/locales/es/components.js | 18 +++++----- webpack.dev.js | 2 +- webpack.noserver.js | 2 +- webpack.prod.js | 2 +- 15 files changed, 78 insertions(+), 78 deletions(-) rename _visor/components/canvas/{BoxVisor.jsx => VisorBox.jsx} (98%) rename _visor/components/canvas/{BoxSortableVisor.jsx => VisorBoxSortable.jsx} (96%) rename _visor/components/canvas/{CanvasVisor.jsx => VisorCanvas.jsx} (85%) rename _visor/components/canvas/{CanvasVisorDoc.jsx => VisorCanvasDoc.jsx} (95%) rename _visor/components/canvas/{CanvasVisorSli.jsx => VisorCanvasSli.jsx} (96%) rename _visor/components/canvas/{ContainedCanvasVisor.jsx => VisorContainedCanvas.jsx} (88%) rename _visor/components/canvas/{HeaderVisor.jsx => VisorHeader.jsx} (97%) rename _visor/components/canvas/{PluginPlaceholderVisor.jsx => VisorPluginPlaceholder.jsx} (94%) rename _visor/components/navigation/{SideNavVisor.jsx => VisorSideNav.jsx} (97%) rename _visor/containers/{EditorVisor.jsx => VisorApp.jsx} (98%) diff --git a/_visor/components/canvas/BoxVisor.jsx b/_visor/components/canvas/VisorBox.jsx similarity index 98% rename from _visor/components/canvas/BoxVisor.jsx rename to _visor/components/canvas/VisorBox.jsx index 85fd64f21..8acc8a7d8 100644 --- a/_visor/components/canvas/BoxVisor.jsx +++ b/_visor/components/canvas/VisorBox.jsx @@ -1,9 +1,9 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import PluginPlaceholderVisor from './PluginPlaceholderVisor'; +import PluginPlaceholderVisor from './VisorPluginPlaceholder'; import { isSortableBox, isAncestorOrSibling } from '../../../common/utils'; -export default class BoxVisor extends Component { +export default class VisorBox extends Component { constructor(props) { super(props); this.borderSize = 2; @@ -222,7 +222,7 @@ export default class BoxVisor extends Component { } } -BoxVisor.propTypes = { +VisorBox.propTypes = { /** * Identificador de la caja */ diff --git a/_visor/components/canvas/BoxSortableVisor.jsx b/_visor/components/canvas/VisorBoxSortable.jsx similarity index 96% rename from _visor/components/canvas/BoxSortableVisor.jsx rename to _visor/components/canvas/VisorBoxSortable.jsx index dfc633e64..d3ed2fe41 100644 --- a/_visor/components/canvas/BoxSortableVisor.jsx +++ b/_visor/components/canvas/VisorBoxSortable.jsx @@ -1,8 +1,8 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import BoxVisor from './BoxVisor'; +import VisorBox from './VisorBox'; -export default class BoxSortableVisor extends Component { +export default class VisorBoxSortable extends Component { render() { let box = this.props.boxes[this.props.id]; return ( @@ -30,7 +30,7 @@ export default class BoxSortableVisor extends Component { style={{ height: row + "%" }}> {container.children.map((idBox, ind) => { if (this.props.boxes[idBox].col === i && this.props.boxes[idBox].row === j) { - return ({this.props.changeCurrentView(element);}} @@ -57,7 +57,7 @@ export default class BoxSortableVisor extends Component { } } -BoxSortableVisor.propTypes = { +VisorBoxSortable.propTypes = { /** * Identificador de la caja */ diff --git a/_visor/components/canvas/CanvasVisor.jsx b/_visor/components/canvas/VisorCanvas.jsx similarity index 85% rename from _visor/components/canvas/CanvasVisor.jsx rename to _visor/components/canvas/VisorCanvas.jsx index 8eece4fa0..91d86ac02 100644 --- a/_visor/components/canvas/CanvasVisor.jsx +++ b/_visor/components/canvas/VisorCanvas.jsx @@ -1,15 +1,15 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import CanvasVisorDoc from './CanvasVisorDoc'; -import CanvasVisorSli from './CanvasVisorSli'; +import VisorCanvasDoc from './VisorCanvasDoc'; +import VisorCanvasSli from './VisorCanvasSli'; import { isSlide } from '../../../common/utils'; -export default class CanvasVisor extends Component { +export default class VisorCanvas extends Component { render() { return (isSlide(this.props.navItems[this.props.currentView].type)) ? - () : - (); + () : + (); } @@ -19,7 +19,7 @@ export default class CanvasVisor extends Component { } -CanvasVisor.propTypes = { +VisorCanvas.propTypes = { /** * Diccionario que contiene todas las cajas */ diff --git a/_visor/components/canvas/CanvasVisorDoc.jsx b/_visor/components/canvas/VisorCanvasDoc.jsx similarity index 95% rename from _visor/components/canvas/CanvasVisorDoc.jsx rename to _visor/components/canvas/VisorCanvasDoc.jsx index 42bd65d32..727b369ea 100644 --- a/_visor/components/canvas/CanvasVisorDoc.jsx +++ b/_visor/components/canvas/VisorCanvasDoc.jsx @@ -1,13 +1,13 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import BoxVisor from './BoxVisor'; -import BoxSortableVisor from './BoxSortableVisor'; +import VisorBox from './VisorBox'; +import VisorBoxSortable from './VisorBoxSortable'; import { Col, Tooltip, OverlayTrigger } from 'react-bootstrap'; -import HeaderVisor from './HeaderVisor'; +import VisorHeader from './VisorHeader'; import { isContainedView, isSortableBox, isSection, isView } from '../../../common/utils'; import i18n from 'i18next'; -export default class CanvasVisorDoc extends Component { +export default class VisorCanvasDoc extends Component { render() { let titles = []; @@ -53,7 +53,7 @@ export default class CanvasVisorDoc extends Component { }.bind(this), 500); a.stopPropagation(); }}>close) : ()} - this.setState({ showTitle: true })} courseTitle={this.props.title} titleMode={itemSelected.titleMode} @@ -91,7 +91,7 @@ export default class CanvasVisorDoc extends Component { {boxes.map(id => { let box = this.props.boxes[id]; if (!isSortableBox(box.id)) { - return ; } - return close) : ()} - this.setState({ showTitle: true })} courseTitle={this.props.title} titleMode={itemSelected.titleMode} @@ -93,7 +93,7 @@ export default class CanvasVisorSli extends Component { {boxes.map(id => { let box = this.props.boxes[id]; - return ; + visorContent = ; }else{ - visorContent = ; + visorContent = ; } return ( {container.children.map((idBox, index) => { if (this.props.boxes[idBox].col === i && this.props.boxes[idBox].row === j) { - return ( - {this.changeCurrentView(page);}} courseTitle={title} show={visorNav.sidebar} @@ -234,7 +234,7 @@ export default class Visor extends Component { ) : null} { !isContainedView(this.getLastCurrentViewElement()) ? - ( {this.changeCurrentView(element);}} canvasRatio={ratio} @@ -249,7 +249,7 @@ export default class Visor extends Component { triggeredMarks={this.state.triggeredMarks} viewsArray={this.state.currentView} />) : - ( {this.changeCurrentView(element);}} canvasRatio={ratio} diff --git a/doc/importMdFiles.es6 b/doc/importMdFiles.es6 index cb1a1fec7..a1d443248 100644 --- a/doc/importMdFiles.es6 +++ b/doc/importMdFiles.es6 @@ -35,15 +35,15 @@ export * as GridConfigurator_en from './files/en/GridConfigurator.md'; export * as PluginToolbar_en from './files/en/PluginToolbar.md'; export * as RadioButtonFormGroup_en from './files/en/RadioButtonFormGroup.md'; export * as XMLConfigModal_en from './files/en/XMLConfigModal.md'; -export * as BoxSortableVisor_en from './files/en/BoxSortableVisor.md'; -export * as BoxVisor_en from './files/en/BoxVisor.md'; -export * as CanvasVisor_en from './files/en/CanvasVisor.md'; -export * as CanvasVisorDoc_en from './files/en/CanvasVisorDoc.md'; -export * as CanvasVisorSli_en from './files/en/CanvasVisorSli.md'; -export * as ContainedCanvasVisor_en from './files/en/ContainedCanvasVisor.md'; -export * as HeaderVisor_en from './files/en/HeaderVisor.md'; -export * as PluginPlaceholderVisor_en from './files/en/PluginPlaceholderVisor.md'; -export * as SideNavVisor_en from './files/en/SideNavVisor.md'; +export * as VisorBoxSortable_en from './files/en/VisorBoxSortable.md'; +export * as VisorBox_en from './files/en/VisorBox.md'; +export * as VisorCanvas_en from './files/en/VisorCanvas.md'; +export * as VisorCanvasDoc_en from './files/en/VisorCanvasDoc.md'; +export * as VisorCanvasSli_en from './files/en/VisorCanvasSli.md'; +export * as VisorContainedCanvas_en from './files/en/VisorContainedCanvas.md'; +export * as VisorHeader_en from './files/en/VisorHeader.md'; +export * as VisorPluginPlaceholder_en from './files/en/VisorPluginPlaceholder.md'; +export * as VisorSideNav_en from './files/en/VisorSideNav.md'; export * as VisorNavSection_en from './files/en/VisorNavSection.md'; export * as VisorPlayer_en from './files/en/VisorPlayer.md'; export * as ScormComponent_en from './files/en/ScormComponent.md'; @@ -84,15 +84,15 @@ export * as GridConfigurator_es from './files/es/GridConfigurator.md'; export * as PluginToolbar_es from './files/es/PluginToolbar.md'; export * as RadioButtonFormGroup_es from './files/es/RadioButtonFormGroup.md'; export * as XMLConfigModal_es from './files/es/XMLConfigModal.md'; -export * as BoxSortableVisor_es from './files/es/BoxSortableVisor.md'; -export * as BoxVisor_es from './files/es/BoxVisor.md'; -export * as CanvasVisor_es from './files/es/CanvasVisor.md'; -export * as CanvasVisorDoc_es from './files/es/CanvasVisorDoc.md'; -export * as CanvasVisorSli_es from './files/es/CanvasVisorSli.md'; -export * as ContainedCanvasVisor_es from './files/es/ContainedCanvasVisor.md'; -export * as HeaderVisor_es from './files/es/HeaderVisor.md'; -export * as PluginPlaceholderVisor_es from './files/es/PluginPlaceholderVisor.md'; -export * as SideNavVisor_es from './files/es/SideNavVisor.md'; +export * as VisorBoxSortable_es from './files/es/VisorBoxSortable.md'; +export * as VisorBox_es from './files/es/VisorBox.md'; +export * as VisorCanvas_es from './files/es/VisorCanvas.md'; +export * as VisorCanvasDoc_es from './files/es/VisorCanvasDoc.md'; +export * as VisorCanvasSli_es from './files/es/VisorCanvasSli.md'; +export * as VisorContainedCanvas_es from './files/es/VisorContainedCanvas.md'; +export * as VisorHeader_es from './files/es/VisorHeader.md'; +export * as VisorPluginPlaceholder_es from './files/es/VisorPluginPlaceholder.md'; +export * as VisorSideNav_es from './files/es/VisorSideNav.md'; export * as VisorNavSection_es from './files/es/VisorNavSection.md'; export * as VisorPlayer_es from './files/es/VisorPlayer.md'; export * as ScormComponent_es from './files/es/ScormComponent.md'; diff --git a/doc/locales/es/components.js b/doc/locales/es/components.js index e9078fc35..27e2c018f 100644 --- a/doc/locales/es/components.js +++ b/doc/locales/es/components.js @@ -447,7 +447,7 @@ let components = { "isBusy": "Indica si hay una operación con el servidor en curso", "hideModal": "Oculta el popup", }, - "BoxSortableVisor": { + "VisorBoxSortable": { "id": "Identificador de la caja", "boxes": "Diccionario que contiene todas las cajas", "changeCurrentView": "Cambia la vista actual", @@ -455,7 +455,7 @@ let components = { "toolbars": "Diccionario que contiene todas las toolbars", "richElementsState": "Estado del plugin enriquecido en la transición", }, - "BoxVisor": { + "VisorBox": { "id": "Identificador de la caja", "boxes": "Diccionario que contiene todas las cajas", "changeCurrentView": "Cambia la vista actual", @@ -463,7 +463,7 @@ let components = { "toolbars": "Diccionario que contiene todas las toolbars", "richElementsState": "Estado del plugin enriquecido en la transición", }, - "CanvasVisor": { + "VisorCanvas": { "boxes": "Diccionario que contiene todas las cajas", "canvasRatio": "Relación de aspecto para las diapositivas", "changeCurrentView": "Cambia la vista actual", @@ -478,7 +478,7 @@ let components = { "triggeredMarks": "Lista de marcas en curso o lanzadas", "viewsArray": "Array de vistas", }, - "CanvasVisorDoc": { + "VisorCanvasDoc": { "boxes": "Diccionario que contiene todas las cajas", "changeCurrentView": "Cambia la vista actual", "containedViews": "Diccionario que contiene todas las vistas contenidas, accesibles por su *id*", @@ -492,7 +492,7 @@ let components = { "triggeredMarks": "Lista de marcas en curso o lanzadas", "viewsArray": "Array de vistas", }, - "CanvasVisorSli": { + "VisorCanvasSli": { "boxes": "Diccionario que contiene todas las cajas", "canvasRatio": "Relación de aspecto para las diapositivas", "changeCurrentView": "Cambia la vista actual", @@ -507,7 +507,7 @@ let components = { "triggeredMarks": "Lista de marcas en curso o lanzadas", "viewsArray": "Array de vistas", }, - "ContainedCanvasVisor": { + "VisorContainedCanvas": { "boxes": "Diccionario que contiene todas las cajas", "canvasRatio": "Relación de aspecto para las diapositivas", "changeCurrentView": "Cambia la vista actual", @@ -522,14 +522,14 @@ let components = { "triggeredMarks": "Lista de marcas en curso o lanzadas", "viewsArray": "Array de vistas", }, - "HeaderVisor": { + "VisorHeader": { "titles": "Array que contiene el título desglosado de la página. Ej: `['Sección 1'. 'Página 1']`", "courseTitle": "Título del curso", "navItems": "Diccionario que contiene todas las vistas creadas, accesibles por su *id*", "currentView": "Vista actual", "containedViews": "Diccionario que contiene todas las vistas contenidas, accesibles por su *id*", }, - "PluginPlaceholderVisor": { + "VisorPluginPlaceholder": { "pluginContainer": "Identificador del contenedor de plugins", "resizable": "Indica si se puede redimensionar el contenedor", "parentBox": "Identificador de la caja", @@ -539,7 +539,7 @@ let components = { "toolbars": "Diccionario que contiene todas las toolbars", "richElementsState": "Estado del plugin enriquecido en la transición", }, - "SideNavVisor": { + "VisorSideNav": { "changeCurrentView": "Cambia la vista actual", "courseTitle": "Título del curso", "currentViews": "Diccionario que contiene todas las vistas y vistas contenidas, accesibles por su *id*", diff --git a/webpack.dev.js b/webpack.dev.js index 130aebd99..d9bbb5684 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -12,7 +12,7 @@ module.exports = merge.smart(common, { 'bootstrap-loader', // Loads Twitter Bootstrap './index.jsx', ], // Appʼs entry point - 'visor': path.join(__dirname, '/_visor/containers/EditorVisor.jsx'), + 'visor': path.join(__dirname, '/_visor/containers/VisorApp.jsx'), }, output: { path: path.join(__dirname, '/dist'), diff --git a/webpack.noserver.js b/webpack.noserver.js index fa18dd775..96daec7a0 100644 --- a/webpack.noserver.js +++ b/webpack.noserver.js @@ -10,7 +10,7 @@ module.exports = merge.smart(common, { 'bootstrap-loader', // Loads Twitter Bootstrap './index.jsx', ], // Appʼs entry point - 'visor': path.join(__dirname, '/_visor/containers/EditorVisor.jsx'), + 'visor': path.join(__dirname, '/_visor/containers/VisorApp.jsx'), }, output: { path: path.join(__dirname, '/doc/dist/demo'), diff --git a/webpack.prod.js b/webpack.prod.js index e7e2a20da..6cbad1b49 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -10,7 +10,7 @@ module.exports = merge.smart(common, { 'bootstrap-loader', // Loads Twitter Bootstrap './index.jsx', ], // Appʼs entry point - 'visor': path.join(__dirname, '/_visor/containers/EditorVisor.jsx'), + 'visor': path.join(__dirname, '/_visor/containers/VisorApp.jsx'), }, output: { path: path.join(__dirname, '/dist'),