aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/js
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-311-0/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Purge unused legacy code and drop 3rdparty jscolor dependencyChristopher Ng2022-10-284-2777/+0
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add admin user customization kill switchJohn Molakvoæ2022-10-191-0/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #33332 from ↵Vincent Petry2022-09-011-1/+2
|\ | | | | | | | | nextcloud/fix-handling-of-internal-errors-when-uploading-theming-files Fix handling of internal errors when uploading theming files
| * Fix handling of internal errors when uploading theming filesDaniel Calviño Sánchez2022-07-241-1/+2
| | | | | | | | | | | | | | | | | | | | When a file can not be uploaded in the Theming app due to an expected error (like an invalid mime type) the response contains a "data.message" field. However, if the upload fails due to an unexpected error (like an internal error, for example if the "mime_content_type" function is disabled) there is no such field, so it should not be used. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Add ```aria-expanded``` value to select2-container om systemtag and file tagsjulia.kirschenheuter2022-08-172-0/+3
|/ | | | | | | | | | | | Add ```aria-expanded``` to color picker Add ```aria-expanded``` to UnifiedSearch.vue Add ```aria-expanded``` to new button on files Add ```aria-expanded``` to action menu Add ```aria-expanded``` to icon .federation-menu Add ```aria-expanded``` to app navigation collapse button Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Start theming providersJoas Schilling2022-04-211-31/+21
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Migrate deprecated toolip methodsMichaIng2021-09-261-1/+1
| | | | | | | With Bootstrap v4, the tooltip methods "fixTitle" and "destroy" have been removed. Only core/src/Polyfill/tooltip.js keeps them methods valid by translating them. Signed-off-by: MichaIng <micha@dietpi.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Use DOMContentLoaded and fix sharebymail loading issueJohn Molakvoæ (skjnldsv)2020-07-201-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move theming js to initial stateRoeland Jago Douma2020-06-051-0/+1
| | | | | | | | A bit more elegant. Plus it will allow us to also write a proper @nextcloud/theming package. To make life easier down the line for all. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Validate urls in theming settings and properly handle error messagesJulius Härtl2019-07-311-3/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* prevent potential XSS via unchecked use innerHTMLMax Fichtelmann2019-07-291-1/+1
| | | | Signed-off-by: Max Fichtelmann <max.fichtelmann@procilon.de>
* Remove replace call which does not replace anythingStefan Weil2018-10-241-1/+1
| | | | | | The original code replaced / by /. Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Manually instantiate jscolor to avoid csp errorsJulius Härtl2018-10-021-0/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* also add a privacy linkArthur Schiwon2018-05-241-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix undo for url-typed inputsArthur Schiwon2018-05-111-1/+2
| | | | | | and minor adjustments Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow to specify a link to a legal noticeArthur Schiwon2018-05-091-10/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove unneeded preview image handlingJulius Härtl2018-04-191-3/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix undo preview and remove duplicate codeJulius Härtl2018-04-191-28/+27
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use generic image upload in theming JSJulius Härtl2018-04-191-45/+17
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Empty name not allowedSagorika Das2018-02-271-5/+32
| | | | | | Do not allow empty name in theming app. Signed-off-by: Sagorika Das <sagorika1996@gmail.com>
* Allows adding of hex color to the theme-colorAbijeet2017-12-081-1/+5
| | | | | | | | | | | | | | | | Fixes #7158. Adds a # on the color if missing. Increased maxlength, added hash:true for jscolor, and adding a # if not present on the change event. Since the input element now allows a hex code, changed values to hexcode. In addition, added a function to get RGB array from hex or rgb values. Calling it in both methods and using it to perform comparison. Also changed the way we were determining whether the jscolor component had loaded. Changed the control to use data-jscolor rather than defining opts in the class. Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Theming: Fix message/loading display on errorsJulius Härtl2017-10-031-0/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix preview of themingDaniel Calviño Sánchez2017-08-101-5/+9
| | | | | | | | | | | | | | | | Pull request #5429 made cached SCSS files depend on a hash of the base URL, so the "/css/core/server.css" file does no longer exist; as the file can not be loaded the "Loading preview" message is never removed and the "Saved" message is never shown. As it now depends on the hash of the base URL the file to be reloaded can no longer be hardcoded, so the full URL to the "server.css" file that has to be reloaded (if any) is now got from the DataResponse provided by the controller. Fixes #5975 Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Refactor reloadStylesheets to receive absolute URLsDaniel Calviño Sánchez2017-08-101-3/+3
| | | | | | | This is a preparatory step for a following change in which reloadStylesheets will have to be able to receive absolute URLs. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Simplified Nextcloud logo iconMarin Treselj2017-07-021-2/+2
| | | | Signed-off-by: Marin Treselj <marin@pixelipo.com>
* Don't open the dialog for logo and backgroundJoas Schilling2017-05-121-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Clicking on theming preview triggers fileupload dialogMorris Jobke2017-05-111-0/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Theming app: Add plain background color optionJulius Haertl2017-05-081-8/+25
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Code cleanup and preview for undo actionsJulius Härtl2017-04-291-33/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use generated SCSS for theming previewJulius Härtl2017-04-291-40/+29
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Theming: Show loading spinner while uploading filesJulius Haertl2016-08-301-1/+10
|
* Increase theming performanceLukas Reschke2016-08-271-4/+4
| | | | | | | | 1. Set proper caching headers (`Pragma: cache`) 2. Resize image proportionally to a max size of 1920px 3. Store images with progressive mode This resizes a previous 2.8 MB picture to 300kb and makes it rendering going down from 11 seconds to less than 1 here. And future requests won't have to download the file newly.
* Theming: Preview for page titleJulius Haertl2016-08-261-0/+3
|
* Theming: Hide undo button on default valuesJulius Haertl2016-08-261-1/+29
|
* Theming: Add preview for login screenJulius Haertl2016-08-261-4/+15
|
* Theming: Cleanup and remove opacity from checkbox/radiobuttonJulius Haertl2016-07-271-2/+1
|
* Theming: Generate colorized radio buttons dynamicallyJulius Haertl2016-07-271-6/+9
|
* Theming: Colorize radio buttons and append new styles on previewJulius Haertl2016-07-271-6/+10
|
* Theming: Preview for colorized checkboxesJulius Haertl2016-07-271-5/+18
|
* Theming: Fix preview and center alignment of logoJulius Haertl2016-07-251-4/+4
|
* Theming: Fix image paths for caret iconJulius Haertl2016-07-161-1/+1
|
* Theming: Fix spaces in settings-admin.jsJulius Haertl2016-07-151-4/+4
|
* Theming: Implement swapping the foreground color for bright colorsJulius Haertl2016-07-151-0/+33
|
* Only save when value changed or enter is pressedLukas Reschke2016-06-271-9/+15
|
* Add tooltipLukas Reschke2016-06-271-0/+1
|
* make sure that the preview gets updated every time a new image gets uploadedBjoern Schiessle2016-06-271-2/+3
|
* scale preview imageBjoern Schiessle2016-06-271-3/+5
|
* Disable drop zoneLukas Reschke2016-06-271-0/+2
| | | | Otherwise dropping something somewhere can by mistake upload the file and make it available
* Migrate logic to dynamic controllerLukas Reschke2016-06-271-8/+24
| | | | Also adds support for having custom login backgrounds