grasia / collaborative-writting-base Goto Github PK
View Code? Open in Web Editor NEWA tool to collaboratively mass writing and discussion of documents
License: GNU General Public License v3.0
A tool to collaboratively mass writing and discussion of documents
License: GNU General Public License v3.0
No sería más cómodo para los usuarios que se abriera una nueva pestaña con el contenido del doc?
Por qué mostrar el documento aqui?
https://github.com/Grasia/collaborative-writting-base/blob/dbe8925e5cf0f3e6be2bba5d7bd2da1803a1b2ca/src/app/documento
Hacer la restricción de un comentario por persona/anotacion
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.