You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -51,20 +52,20 @@ To use the advantages of `vite serve` with hot module replacement (HMR) and not
51
52
52
53
1. Configure your webserver to redirect requests to `/apps/text/` to the vite serve server.
53
54
When using [nextcloud-docker-dev](https://github.com/juliusknorr/nextcloud-docker-dev), add the following snippet to `data/nginx/vhost.d/nextcloud.local` and restart the proxy container. You might have to replace `/apps/text/` with e.g. `/apps-extra/text/` depending on where the text app resides in your dev setup.
# fallback to nextcloud server if vite serve doesn't answer
59
+
error_page 502 = @fallback;
60
+
}
61
+
location @fallback {
62
+
proxy_pass http://nextcloud.local;
63
+
}
64
+
```
64
65
2. Run `npm run serve` to start the vite serve server. If text resides somewhere else than `/apps/text`, run e.g. `BASE=/apps-extra/text npm run serve`.
65
66
66
67
Afterwards all changes to the code will apply to the application in your browser automatically thanks to hot module replacement (HMR).
67
-
68
+
68
69
### 🧙 Advanced development stuff
69
70
70
71
To build the Javascript whenever you make changes, instead of the full `make` you can also run `npm run build`. Or run `npm run watch` to rebuild on every file save.
@@ -90,7 +91,6 @@ Or you might set the `CYPRESS_baseUrl` environment variable for a custom nextclo
90
91
- Once that is there, please open a pull request to add them to https://github.com/nextcloud/text/blob/12df66ffdd3d71cc696438e2e4ec60fa17b89a64/src/helpers/mime.js#L35-L61
91
92
- You can test them like other mime types in cypress/e2e/files.spec.js
92
93
93
-
94
94
## 🛠️ Integrate text in your app
95
95
96
96
## Load the editor
@@ -111,7 +111,6 @@ if (class_exists(LoadEditor::class)) {
111
111
112
112
Make sure to check if OCA.Text is available as the Text app needs to be enabled. If you want your app to work without Text being installed, you will need to provide an editor fallback on your own.
0 commit comments