Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tests
dist
node_modules
.github
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM owncloudci/nodejs:20 AS stage

WORKDIR /extension

COPY . .
RUN pnpm install
RUN pnpm build

FROM alpine:3.20
WORKDIR /app
COPY --from=stage /extension/dist ./
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ It allows users to:

Apps directory is set using the `WEB_ASSET_APPS_PATH` environment variable.

### App Installation With [oCIS Deployment](https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_full)

1. Copy [`deployments/mdpresentation-viewer.yml`](./deployments/mdpresentation-viewer.yml) into the [web_extensions](https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_full/web_extensions)
subfolder of oCIS full deployment example.
2. Add `MDPRESENTATION_VIEWER=:web_extensions/mdpresentation-viewer.yml` to the `## oCIS Web Extensions ##` section of the `.env` file of your installation (file is located in `deployments/examples/ocis_full`) and append it to the `COMPOSE_FILE` variable.
```env
## oCIS Web Extensions ##
MDPRESENTATION_VIEWER=:web_extensions/mdpresentation-viewer.yml

COMPOSE_FILE=docker-compose.yml${...}${MDPRESENTATION_VIEWER:-}
```
3. Run `docker compose up` to run oCIS with the extensions

oCIS URL: [ocis.owncloud.test](https://ocis.owncloud.test)

See the [docs](https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_full).

## Creating Presentation

Please, refer to the [documentation](https://revealjs.com/markdown/) for more information about creating a presentation using markdown.
Expand Down
14 changes: 14 additions & 0 deletions deployments/mdpresentation-viewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
services:
ocis:
depends_on:
mdpresentation-viewer:
condition: service_completed_successfully

mdpresentation-viewer:
image: jankaritech/mdpresentation-viewer:2.0.0
volumes:
- ocis-apps:/apps
entrypoint:
- /bin/sh
command: ["-c", "cp -R /app/* /apps"]
2 changes: 1 addition & 1 deletion tests/e2e/pageObjects/OcisPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Ocis {
this.loginFormSelector = '.oc-login-form'
this.usernameInputFieldSelector = '#oc-login-username'
this.passwordInputFieldSelector = '#oc-login-password'
this.loginBtnSelector = '.jss8 .oc-button-primary'
this.loginBtnSelector = 'button[type="submit"]'
this.filesContainerSelector = '#files-view'
this.contextMenuBtnSelector = '.resource-table-btn-action-dropdown'
this.openInPresentationViewerBtnSelector = '.oc-files-actions-presentation-viewer-trigger'
Expand Down
Loading