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
@@ -34,7 +35,7 @@ If the local branch becomes corrupted and needs to be reset, resynced or rebased
34
35
35
36
```bash
36
37
git checkout main
37
-
git pull --rebase origin/main
38
+
git pull --rebase originmain
38
39
git checkout <your-local-branch>
39
40
git reset --hard origin/main
40
41
git merge <remote-branch>
@@ -52,22 +53,73 @@ New web-extensions must be placed inside the `packages` folder and be prefixed w
52
53
53
54
- Add the new web-extension to the `APPS` variable in the `.drone.star` file.
54
55
- Add the `dist` folder of the web-extension to the list of volume mounts in the `docker-compose.yml` file in the `ocis` service section.
55
-
- If the web-extension requires additional external docker images, they must be added to the `docker-compose.yml` file.
56
+
- If the web-extension requires additional external docker images, they must be added to the `docker-compose.yml` file for testing.
56
57
- Add any changes to content security policies, if required, to `dev/docker/csp.yaml`.
57
58
- Follow the structure of files and folders of other web-extensions.
58
59
- Provide a README file for the web-extension.
59
-
- Use the actual stable tag of web In the `dependencies` and `devDependencies` section of the `package.json` file.\
60
+
- Use the actual stable tag of web In the `dependencies` and `devDependencies` section of the `package.json` file, for details see below.\
60
61
This tag must be updated on new ocis production releases, see the [RELEASE_WORKFLOW](./RELEASE_WORKFLOW.md) documentation.
61
62
- Post creating the `package.json` file or on changes, run from the repo-root `pnpm install`.\
62
63
To avoid rare issues, delete the `pnpm-lock.json` file before running `pnpm install`.
63
64
- If texts are printed to the webUI:
64
65
- Texts must be translatable. Use `l10n` and `gettext` to do so.
65
66
- Use other web-extensions as template for the `l10n` folder.
66
-
- On merge, the resource to translate is available on [Transifex](https://app.transifex.com/owncloud-org/owncloud-web/translate/#de).\
67
+
- On merge, the resource to translate or changes to source strings are available on [Transifex](https://app.transifex.com/owncloud-org/owncloud-web/translate/#de).\
67
68
Note that an account is required and you need to be promoted as translator for defined languages, otherwise, you will not see the data.
69
+
- Note that translations made will be downloaded and committed via an automated nightly sync. Changes are available with the next app-release.
68
70
- Web provides themes (light and dark). Check that the web-extension supports the themes.
69
71
- Provide tests
70
72
73
+
Template **package.json** file for the web-app:
74
+
75
+
- These sections and their dependencies are required at minimum. Replace variables and versions updates accordingly.
76
+
```json
77
+
{
78
+
"name": "<extension name>",
79
+
"version": "x.y.z",
80
+
"private": true,
81
+
"description": "<place description here",
82
+
"license": "AGPL-3.0",
83
+
"type": "module",
84
+
"scripts": {
85
+
"build": "pnpm vite build",
86
+
"build:w": "pnpm vite build --watch --mode development",
The design-system is added via the `web-pkg` dependency automatically.\
110
+
The provided link includes further information and documentation.
111
+
112
+
## The Design System
113
+
114
+
Web provides a design system that makes it easy to reuse and configure the provided designs, such as icons, bottons etc. You must use the design system and can only use your e.g. own SVG icons if there is absolutely no matching one. Otherwise, the PR will not be approved!
For a list of available icons see [src/assets/icons](https://github.com/owncloud/web/tree/master/packages/design-system/src/assets/icons). Please note that due to the size of the list, you may need to view it via a browser on a local clone.
122
+
71
123
## Linting and Typescript Checks
72
124
73
125
During a CI run, a linter and typecheck are initiated. No other tests will be started if these do not pass.
0 commit comments