Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.04 KB

README.md

File metadata and controls

23 lines (18 loc) · 1.04 KB

doc-viewer-api-interface

The project is not in development and not yet ready for production.

API

/viewer/index.html?url=http://anotherdomain.com/file.docx

Tasks

  1. Supported API's and file formats supported by them are listed in config/services.json.
  2. Read the url parameter passed to the html page and should open it in an iFrame passing it to supported API.

Notes for Developers

  • If you have any issues, create an issue on project's github page
  • You may modify the code and create a pull request before merging.
  • Keep code clean:
    • Use lint and recommended code formatting tools
    • Avoid code comments
    • Avoid inline JS and CSS
    • Do NOT use any libraries/frameworks unless necessary.
    • Try using modern language features (like ES6) but make sure they are at least supported by browser versions released five months earlier. Or use transpilers (like Babel for Javascript)

Style guides