diff --git a/README.md b/README.md index 9e6fc80..5b5d6cd 100644 --- a/README.md +++ b/README.md @@ -15,36 +15,20 @@ It allows users to: ## Supported oCIS and Web Versions -- [oCIS](https://github.com/owncloud/ocis) (>= 5.1.x) +- [oCIS](https://github.com/owncloud/ocis) (>= 6.x.x) - [Web](https://nodejs.org/en/) (>= 9.x.x) ## App Installation -#### 1. Install Dependencies +> NOTE: Requires oCIS >= 6.0.0 -```bash -pnpm install -``` - -#### 2. Build the extension - -```bash -pnpm build -``` - -The extension will be built in the `dist` directory. +1. Download the zip file from the [releases page](https://github.com/JankariTech/web-app-presentation-viewer/releases) -> NOTE: Requires oCIS >= 5.1 (not released yet) + For example: `mdpresentation-x.x.x.zip` -External apps can be loaded into the oCIS without separate app server. We just have to use `WEB_ASSET_APPS_PATH`, an oCIS environment variable, while running oCIS server to set the directory where all the external apps are located. +2. Extract the zip file to the `apps` directory of the oCIS server. -For example: - -```bash -... -WEB_ASSET_APPS_PATH= \ -ocis server -``` + Apps directory is set using the `WEB_ASSET_APPS_PATH` environment variable. ## Development @@ -70,7 +54,7 @@ pnpm build:w #### 3. Load the extension -> NOTE: Requires oCIS >= 5.1 (not released yet) +> NOTE: Requires oCIS >= 6.0.0 Run the oCIS server: diff --git a/package.json b/package.json index a015107..a77632c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web-app-presentation-viewer", - "version": "2.0.0-alpha.1", + "version": "2.0.0-beta.1", "description": "Markdown Presentation Viewer for ownCloud Web", "license": "Apache-2.0", "private": true, diff --git a/tests/e2e/ci/nginx/nginx.conf b/tests/e2e/ci/nginx/nginx.conf deleted file mode 100644 index fa5d268..0000000 --- a/tests/e2e/ci/nginx/nginx.conf +++ /dev/null @@ -1,15 +0,0 @@ -server { - listen 443 ssl; - server_name localhost; - - ssl_certificate /etc/nginx/conf.d/nginx-ssl.crt; - ssl_certificate_key /etc/nginx/conf.d/nginx-ssl.key; - - location / { - add_header 'Access-Control-Allow-Origin' '*'; - } - - root /usr/share/nginx/html; - index index.html index.htm; - try_files $uri $uri/ /index.html; -} \ No newline at end of file diff --git a/tests/e2e/ci/web.config.json b/tests/e2e/ci/web.config.json deleted file mode 100644 index e4a1dca..0000000 --- a/tests/e2e/ci/web.config.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "server": "https://localhost:9200", - "theme": "https://localhost:9200/themes/owncloud/theme.json", - "openIdConnect": { - "metadata_url": "https://localhost:9200/.well-known/openid-configuration", - "authority": "https://localhost:9200", - "client_id": "web", - "response_type": "code", - "scope": "openid profile email" - }, - "options": { - "topCenterNotifications": true, - "disablePreviews": true, - "displayResourcesLazy": false, - "sidebar": { - "shares": { - "showAllOnLoad": true - } - }, - "previewFileMimeTypes": [ - "image/gif", - "image/png", - "image/jpeg", - "text/plain", - "image/tiff", - "image/bmp", - "image/x-ms-bmp" - ], - "contextHelpersReadMore": true - }, - "apps": [ - "files", - "text-editor", - "pdf-viewer", - "search", - "external", - "admin-settings", - "ocm", - "webfinger" - ], - "external_apps": [ - { - "id": "preview", - "path": "web-app-preview", - "config": { - "mimeTypes": ["image/tiff", "image/bmp", "image/x-ms-bmp"] - } - }, - { - "id": "presentation-viewer", - "path": "https://localhost:8443/com.github.jankaritech.web.mdpresentation/extension.js" - } - ] -}