Giter Club home page Giter Club logo

collaborative-writting-base's Introduction

collaborative-writting-base

A tool to collaboratively mass writing and discussion of documents

This project was generated with Angular CLI version 1.7.1.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Authors

Carlos Lozano
Jorge Fdez-Montes

collaborative-writting-base's People

Contributors

jorgefmc avatar pablojan avatar

Watchers

James Cloos avatar Samer Hassan avatar Jorge Gómez Sanz avatar Juan Pavón avatar  avatar  avatar  avatar

Forkers

jorgefmc

collaborative-writting-base's Issues

Cambiar de fase sólo desde vista "gestión de fase"

Me parece más adecuado sólo gestionar las fases desde la pestaña correspondiente de la pantalla de información general.
En las vistas de texto sólo mostraría en que fase se está y si se pincha, redirigir a la ventana y pestaña anterior.

imagen

Integración con SwellRT

Aquí indico cuales son los pasos que se deben dar en el proyecto para que pueda acceder a una instancia de SwellRT.

  • Instalar y ejecutar SwellRT en local.
    Se debe utilizar la última versión en master de SwellRT. Para ello clonar el proyecto fuente desde github y seguir las instrucciones para construir y ejecutar el proyecto (https://github.com/P2Pvalue/swellrt#building-swellrt-from-source-code)
    Recordar que se necesita tener una instancia de mongodb instalada

  • Cargar cliente JS en proyecto angular
    En el index.html añadir antes de la etiqueta </body> la carga del cliente SwellRT

 <script src="http://localhost:9898/swellrt-beta.js"></script>

el cliente se carga de forma asíncrona, por tanto, no se puede comenzar a utilizar SwellRT hasta que estemos seguros de que está cargado. Para ello, debemos habilitar en un servicio un método que devuelva una promesa a la instancia del servicio de Swell:

Ejemplo de servicio:

...

// the global swellrt namespace
declare let swell: any;
// access to window global var
declare let window: any;

@Injectable()
export class SwellService {

private instance: any = null;

public getInstancePromise() {

return new Promise((resolve, reject) => {
               if (this.instance != null) {
                   resolve(this.serviceInstance);
                }
                swellrt.onReady((serviceInstance) => {
                  this.instance = serviceInstance;
                  resolve(serviceInstance);
                });
                setTimeout(() => {
                   reject(new Error('Error loading swellrt client: timeout'));
                }, 15000);
           });
}


} // end SwellService

comentarios

Hacer la restricción de un comentario por persona/anotacion

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.