Getting Started
The source code is hosted at https://github.com/owncloud/web. Please refer to the build documentation for Web.
Make sure to have Docker, Docker-Compose, Node.js and pnpm installed.
If you plan to work with translations, you also need to install the Transifex Client. Note when installing the Transifex Client, change to your ~/.local/bin directory first because it installs at the current location.
This setup currently doesn’t work on Windows out of the box.
Workaround
One of our contributors has opened a PR to a dependency that prevents us from successfully bundling the frontend. Feel free to check out [his changes](https://github.com/egoist/rollup-plugin-postcss/pull/384) and build them locally if you absolutely want to work on Windows.
After cloning the source code, install the dependencies via pnpm install and bundle the frontend code by running pnpm build:w.
Then, you can start the server by running docker-compose up ocis and access it via https://host.docker.internal:9200. If you’re not using Docker Desktop, you might have to modify your /etc/hosts and add 127.0.0.1 host.docker.internal to make the host.docker.internal links work.
The bundled frontend code automatically gets mounted into the Docker containers, recompiles on changes and you can log in using the demo user (admin/admin) and take a look around!
For more details on how to set up Web for development, please see tooling.
Depending on the backend you are using, there are sample config files provided in the config folder of the ownCloud Web git repository. See below for available backends. Also, find some of the configuration details below.
customTranslationsYou can specify one or multiple files to overwrite existing translations. For example set this option to[{url: "https://localhost:9200/customTranslations.json"}].
options.accountEditLinkThis accepts an object with the following optional fields to have a link on the account page:options.accountEditLink.hrefSet a different target URL for the edit link. Make sure to prepend it withhttp(s)://.
options.disableFeedbackLinkSet this option totrueto disable the feedback link in the topbar. Keeping it enabled (valuefalseor absence of the option) allows ownCloud to get feedback from your user base through a dedicated survey website.options.feedbackLinkThis accepts an object with the following optional fields to customize the feedback link in the topbar:options.feedbackLink.hrefSet a different target URL for the feedback link. Make sure to prepend it withhttp(s)://. Defaults tohttps://owncloud.com/web-design-feedback.options.feedbackLink.ariaLabelSince the link only has an icon, you can set an e.g. screen reader accessible label. Defaults toownCloud feedback survey.options.feedbackLink.descriptionProvide any description you want to see as tooltip and as accessible description. Defaults toProvide your feedback: We'd like to improve the web design and would be happy to hear your feedback. Thank you! Your ownCloud team.
options.sharingRecipientsPerPageSets the amount of users shown as recipients in the dropdown when sharing resources. Default amount is 200.options.runningOnEosSet this option totrueif running on an EOS storage backend to enable its specific features. Defaults tofalse, and we recommend reaching out to the ownCloud web team if you’re not CERN and thinking about enabling this feature flag.options.cernFeaturesEnabling this will activate CERN-specific features. Defaults tofalse.options.editor.autosaveEnabledSpecifies if the autosave for the editor apps is enabled.options.editor.autosaveIntervalSpecifies the time interval for the autosave of editor apps in seconds.options.editor.openAsPreviewSpecifies if non-personal files i.e. files in shares, spaces or public links are being opened in read only mode so the user needs to manually switch to edit mode. Can be set totrue,falseor an array of web app/editor names.options.contextHelpersReadMoreSpecifies whether the “Read more” link should be displayed or not.options.tokenStorageLocalSpecifies whether the access token will be stored in the local storage when set totrueor in the session storage when set tofalse. If stored in the local storage, login state will be persisted across multiple browser tabs, means no additional logins are required. Defaults totrue.options.loginUrlSpecifies the target URL to the login page. This is helpful when an external IdP is used. This option is disabled by default. Example URL like: ‘https://www.myidp.com/login'.options.logoutUrlAdds a link to the user’s profile page to point him to an external page, where he can manage his session and devices. This is helpful when an external IdP is used. This option is disabled by default.options.userListRequiresFilterDefines whether one or more filters must be set in order to list users in the Web admin settings. Set this option to ’true’ if running in an environment with a lot of users and listing all users could slow down performance. Defaults tofalse.options.concurrentRequestsThis accepts an object with the following optional fields to customize the maximum number of concurrent requests in code paths where we limit concurrent requestsresourceBatchActionsConcurrent number of file/folder/space batch actions like e.g. accepting shares. Defaults to 4.sseConcurrent number of SSE event handlers. Defaults to 4.sharesAccepts an object regarding the following sharing related options:createConcurrent number of share invites. Defaults to 4.listConcurrent number of individually loaded shares. Defaults to 2.
Web supports adding additional CSS and JavaScript files to further customize the user experience and adapt it to your specific needs. Please consider opening a feature request if you feel like your customization could be a benefit to the upstream project, and keep an eye open for future major releases of web since this API may change.
stylesexpects an array of objects that specify ahrefattribute, pointing to the path/URL of your stylesheet, like[{ "href": "css/custom.css" }].scriptsexpects an array of objects that specify asrcattribute, pointing to the path/URL of your script, and an optionalasyncattribute (defaults to false), like[{ "src": "js/custom.js", "async": true }].
Web supports Sentry to provide monitoring and error tracking. To enable sending data to a Sentry instance, you can use the following configuration keys:
sentry.dsnShould contain the DSN for your sentry project.sentry.environment: Lets you specify the environment to use in Sentry. Defaults toproduction.
Any other key under sentry will be forwarded to the Sentry initialization. You can find out more
settings in the Sentry docs.
If you are using an old version of Sentry (9 and before), you might want to add the settingsentry.autoSessionTracking: falseto avoid errors related to breaking changes introduced in the integration libraries.
Newer versions of Web (> 7.0.2) can only run against oCIS, whereas older versions (< 7.1.0) can run against ownCloud 10 as well. Depending which one you chose, please check the matching section: