-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: update WOPI and COLLABORA env variables to PUBLIC
- Loading branch information
1 parent
2214042
commit 891d0af
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { env } from "$env/dynamic/public" | ||
|
||
export const WOPI_URL = env.WOPI_URL || "" | ||
export const COLLABORA_URL: string = env.COLLABORA_URL || "" | ||
export const PUBLIC_WOPI_URL = env.PUBLIC_WOPI_URL || "" | ||
export const PUBLIC_COLLABORA_URL: string = env.PUBLIC_COLLABORA_URL || "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<script lang="ts"> | ||
import { COLLABORA_URL, WOPI_URL } from "$lib/publicEnv" | ||
import { PUBLIC_COLLABORA_URL, PUBLIC_WOPI_URL } from "$lib/publicEnv" | ||
const wopisrc = WOPI_URL + "/wopi/files/test3.docx" | ||
const wopisrc = PUBLIC_WOPI_URL + "/wopi/files/test3.docx" | ||
const encodedWopisrc = encodeURIComponent(wopisrc) | ||
const src = COLLABORA_URL + `/browser/80a6f97/cool.html?WOPISrc=${encodedWopisrc}` | ||
const src = PUBLIC_COLLABORA_URL + `/browser/80a6f97/cool.html?WOPISrc=${encodedWopisrc}` | ||
</script> | ||
|
||
<iframe title={"Editor"} {src} width="90%" height="1200px"></iframe> |