Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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 ./
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ It allows users to:

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

### Installating Md-Viewer to the oCIS Deployment

1. Navigate to the `deployments/examples/ocis_full/web_extensions` folder of your installation and copy [`mdviewer.yml`] into the [`web_extensions`](https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_full/web_extensions) subfolder.

2. Add `MDVIEWER=:web_extensions/mdviewer.yml` to the `## oCIS Web Extensions ##` section of the `.env` file of your installation (file is located in `deployments/examples/ocis_full`).\ Add that variable in the `COMPOSE_FILE` variable at the last line.
3. Run `docker compose up` to run the extension with oCIS
oCIS URL: [ocis.owncloud.test](https://ocis.owncloud.test)

## Creating Presentation

Please, refer to the [documentation](https://revealjs.com/markdown/) for more information about creating a presentation using markdown.
Expand Down
16 changes: 16 additions & 0 deletions mdviewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

---
services:
ocis:
depends_on:
md-viewer:
condition: service_completed_successfully

md-viewer:
image: jankaritech/md-presentation-viewer:2.0.0
user: root
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