From 37739f9832fcd6a4b35bedb850f9f988e03f2292 Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi <41103328+SwikritiT@users.noreply.github.com> Date: Thu, 2 Mar 2023 00:23:16 +0000 Subject: [PATCH] commit c92d70abda84f28976ffd8ffba9cbbf418ac8a91 Author: Swikriti Tripathi <41103328+SwikritiT@users.noreply.github.com> Date: Wed Mar 1 16:20:29 2023 +0545 [tests-only][full-ci] Add a e2e test for quick link (#8499) Co-authored-by: Roshan Lamichhane Co-authored-by: Saw-jan --- getting-started.md | 5 - testing/testing.md | 4 +- theming/_index.md | 227 +++++++++++++++++++++------------------------ 3 files changed, 106 insertions(+), 130 deletions(-) diff --git a/getting-started.md b/getting-started.md index 469e5de1ba0..21f793ff7ff 100644 --- a/getting-started.md +++ b/getting-started.md @@ -45,12 +45,9 @@ Depending on the backend you are using, there are sample config files provided i menu item. The user will not be jailed in that directory. It simply serves as a default location. You can either provide a static location, or you can use variables of the user object to come up with a user specific home path. This uses twig template variable style and allows you to pick a value or a substring of a value of the authenticated user. Examples are `/Shares`, `/{{.Id}}` and `/{{substr 0 3 .Id}}/{{.Id}`. -- `options.openAppsInTab` Configures whether apps and extensions generally should open in a new tab. Defaults to false. - `options.disablePreviews` Set this option to `true` to disable previews in all the different file listing views. The only list view that is not affected by this is the trash bin, as that doesn't allow showing previews at all. - `options.previewFileMimeTypes` Specifies which mimeTypes will be previewed in the ui. For example to only preview jpg and text files set this option to `["image/jpeg", "text/plain"]`. -- `options.accountEditLink` This accepts an object with the following optional fields to have a link on the account page: - - `options.accountEditLink.href` Set a different target URL for the edit link. Make sure to prepend it with `http(s)://`. - `options.disableFeedbackLink` Set this option to `true` to disable the feedback link in the topbar. Keeping it enabled (value `false` or absence of the option) allows ownCloud to get feedback from your user base through a dedicated survey website. - `options.feedbackLink` This accepts an object with the following optional fields to customize the feedback link in the topbar: @@ -66,8 +63,6 @@ hovers the row with his mouse. Defaults to `false`. - `option.routing` This accepts an object with the following fields to customize the routing behaviour: - `options.routing.idBased` Enable or disable fileIds being added to the URL. Defaults to `true` because otherwise e.g. spaces with name clashes can't be resolved correctly. Only disable this if you can guarantee server side that spaces of the same namespace can't have name clashes. - `options.upload.xhr.timeout` Specifies the timeout for XHR uploads in milliseconds. -- `options.editor.autosaveEnabled` Specifies if the autosave for the editor apps is enabled. -- `options.editor.autosaveInterval` Specifies the time interval for the autosave of editor apps in seconds. ### Sentry diff --git a/testing/testing.md b/testing/testing.md index 85c9d4f5b41..3cc16ec8374 100644 --- a/testing/testing.md +++ b/testing/testing.md @@ -88,13 +88,13 @@ and make sure there are no conflicting ports and everything runs smoothly. You c Depending on the backend you want to run the tests on, you can either run ```shell -$ pnpm test:e2e:cucumber 'tests/e2e/cucumber/**/*[!.ocis].feature' +$ pnpm test:e2e:cucumber tests/e2e/cucumber/**/*[!.ocis].feature ``` for an **ownCloud 10** backend (filenames including `.ocis` are excluded) or ```shell -$ OCIS=true pnpm test:e2e:cucumber 'tests/e2e/cucumber/**/*[!.oc10].feature' +$ OCIS=true pnpm test:e2e:cucumber tests/e2e/cucumber/**/*[!.oc10].feature ``` for an **oCIS** backend (filenames including `.oc10` are excluded). diff --git a/theming/_index.md b/theming/_index.md index 281ad127e75..96328683b46 100644 --- a/theming/_index.md +++ b/theming/_index.md @@ -35,32 +35,24 @@ You can use the snippet below as a base for writing your own theme by replacing ```json { - "common": { - "name": "ownCloud", - "slogan": "ownCloud – A safe home for all your data", - "logo": "themes/owncloud/assets/logo.svg" - }, - "ios": {}, - "web": { - "default": { - "general": { - "name": "ownCloud", - "slogan": "ownCloud – A safe home for all your data" - }, - "logo": { - "topbar": "https://externalurl.example.com/url/for/remote/theme/assets/logo.svg", - "favicon": "https://externalurl.example.com/url/for/remote/theme/assets/favicon.jpg", - "login": "relative/path/for/local/theme/logo.svg" - }, - "loginPage": { - "autoRedirect": true, - "backgroundImg": "relative/path/for/local/theme/background.jpg" - }, - "designTokens": {} + "default": { + "general": { + "name": "ownCloud", + "slogan": "ownCloud – A safe home for all your data" }, - "alternative": {}, - "dark": {} - } + "logo": { + "topbar": "https://externalurl.example.com/url/for/remote/theme/assets/logo.svg", + "favicon": "https://externalurl.example.com/url/for/remote/theme/assets/favicon.jpg", + "login": "relative/path/for/local/theme/logo.svg" + }, + "loginPage": { + "autoRedirect": true, + "backgroundImg": "relative/path/for/local/theme/background.jpg" + }, + "designTokens": {} + }, + "alternative": {}, + "dark": {} } ``` @@ -89,18 +81,14 @@ In general, the theme loader looks for a `designTokens` key inside your theme co ```json { - "common": {}, - "ios": {}, - "web": { - "default": { - "general": {}, - "designTokens": { - "breakpoints": {}, - "colorPalette": {}, - "fontSizes": {}, - "sizes": {}, - "spacing": {} - } + "default": { + "general": {}, + "designTokens": { + "breakpoints": {}, + "colorPalette": {}, + "fontSizes": {}, + "sizes": {}, + "spacing": {} } } } @@ -244,95 +232,88 @@ An empty template for your custom theme is provided below, and you can use the i ```json { - "common": { - "name": "", - "slogan": "", - "logo": "" - }, - "ios": {}, - "web": { - "default": { - "general": { - "name": "", - "slogan": "" + "default": { + "general": { + "name": "", + "slogan": "" + }, + "logo": { + "topbar": "", + "favicon": "", + "login": "", + "notFound": "" + }, + "loginPage": { + "autoRedirect": true, + "backgroundImg": "" + }, + "designTokens": { + "breakpoints": { + "xsmall-max": "", + "small-default": "", + "small-max": "", + "medium-default": "", + "medium-max": "", + "large-default": "", + "large-max": "", + "xlarge": "" + }, + "colorPalette": { + "background-accentuate": "", + "background-default": "", + "background-highlight": "", + "background-muted": "", + "border": "", + "input-bg": "", + "input-border": "", + "input-text-default": "", + "input-text-muted": "", + "swatch-brand-default": "", + "swatch-brand-hover": "", + "swatch-danger-default": "", + "swatch-danger-hover": "", + "swatch-danger-muted": "", + "swatch-inverse-default": "", + "swatch-inverse-hover": "", + "swatch-inverse-muted": "", + "swatch-passive-default": "", + "swatch-passive-hover": "", + "swatch-passive-muted": "", + "swatch-primary-default": "", + "swatch-primary-hover": "", + "swatch-primary-muted": "", + "swatch-primary-gradient": "", + "swatch-success-default": "", + "swatch-success-hover": "", + "swatch-success-muted": "", + "swatch-warning-default": "", + "swatch-warning-hover": "", + "swatch-warning-muted": "", + "text-default": "", + "text-inverse": "", + "text-muted": "" }, - "logo": { - "topbar": "", - "favicon": "", - "login": "" + "fontSizes": { + "default": "", + "large": "", + "medium": "" }, - "loginPage": { - "autoRedirect": true, - "backgroundImg": "" + "sizes": { + "form-check-default": "", + "height-small": "", + "height-table-row": "", + "icon-default": "", + "max-height-logo": "", + "max-width-logo": "", + "width-medium": "" }, - "designTokens": { - "breakpoints": { - "xsmall-max": "", - "small-default": "", - "small-max": "", - "medium-default": "", - "medium-max": "", - "large-default": "", - "large-max": "", - "xlarge": "" - }, - "colorPalette": { - "background-accentuate": "", - "background-default": "", - "background-highlight": "", - "background-muted": "", - "border": "", - "input-bg": "", - "input-border": "", - "input-text-default": "", - "input-text-muted": "", - "swatch-brand-default": "", - "swatch-brand-hover": "", - "swatch-danger-default": "", - "swatch-danger-hover": "", - "swatch-danger-muted": "", - "swatch-inverse-default": "", - "swatch-inverse-hover": "", - "swatch-inverse-muted": "", - "swatch-passive-default": "", - "swatch-passive-hover": "", - "swatch-passive-muted": "", - "swatch-primary-default": "", - "swatch-primary-hover": "", - "swatch-primary-muted": "", - "swatch-primary-gradient": "", - "swatch-success-default": "", - "swatch-success-hover": "", - "swatch-success-muted": "", - "swatch-warning-default": "", - "swatch-warning-hover": "", - "swatch-warning-muted": "", - "text-default": "", - "text-inverse": "", - "text-muted": "" - }, - "fontSizes": { - "default": "", - "large": "", - "medium": "" - }, - "sizes": { - "form-check-default": "", - "height-small": "", - "height-table-row": "", - "icon-default": "", - "max-height-logo": "", - "max-width-logo": "", - "width-medium": "" - }, - "spacing": { - "xsmall": "", - "small": "", - "medium": "", - "large": "", - "xlarge": "", - "xxlarge": "" - } + "spacing": { + "xsmall": "", + "small": "", + "medium": "", + "large": "", + "xlarge": "", + "xxlarge": "" } } }