Commit Graph

181 Commits

Author SHA1 Message Date
Roeland Jago Douma 5406a5408f
Merge pull request #21254 from nextcloud/td/js/remove/_capabilities
Actually remove _capabilities
2020-06-06 09:30:04 +02:00
Roeland Jago Douma 6949c29586
Fix linting on systemtags and use @nextcloud/router
Makes the linter happy. And thus me a bit happy since it now is
complaining less.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-06-05 16:26:58 +02:00
Roeland Jago Douma 8c3c985952
Actually remove _capabilities
Leftover from a previous PR.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-06-05 15:23:00 +02:00
Roeland Jago Douma 22c00295d8
Do not import the full OC since we don't need it
Import what we need. Saves off a bunch of bytes of the bundle (600
kilobytes to be exact)

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-06-05 09:42:39 +02:00
Christoph Wurst eaf4724acc
Move humanFileSize and OC.getCanonicalLocale to npm packages
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-06-05 08:48:49 +02:00
Roeland Jago Douma 94ae04d303
OC.routing is just a @nextcloud/routing proxy
So lets kill the duplicate code!

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-06-04 11:11:18 +02:00
Roeland Jago Douma 3bca70999a
Fix some linter warning
Part of my ongoing battle against deprecation messages.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-06-02 14:24:55 +02:00
Roeland Jago Douma 0209532638
Move to @nextcloud/capabilities package
And kill of oc_capabilities and _oc_capabilities globals

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-05-29 16:10:08 +02:00
Roeland Jago Douma b9e7fd2418 Remove the escape-html global
Already announced for 19 that it would go. So now it realy does go.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-05-29 08:34:10 +00:00
Roeland Jago Douma 28f8a445e4 Move the systemtags to core/src
* Move to the handlebar loader from webpack

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-05-28 19:05:09 +00:00
Christoph Wurst 74db91910c
Make the translation sanitization optional
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-05-27 15:06:54 +02:00
Julius Härtl bde5b9577b
Update hub bundle and add proxy rule to htaccess
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-05-25 16:04:54 +02:00
Roeland Jago Douma 44d05bf356
Move core/js/files to webpack
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-05-22 20:28:31 +02:00
Ruben Barkow-Kuder 4ad622a720 compress some images with tinypng.com
Signed-off-by: Ruben Barkow-Kuder <github@r.z11.de>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-05-22 13:07:11 +00:00
Roeland Jago Douma d5a13f8c4a Deprectae OC.Util.formatDate and OC.Util.relativeModifiedDate
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-05-15 17:46:57 +00:00
Christoph Wurst 3c7939f7ad
Remove the long deprecated jQuery tipsy
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-05-14 20:40:58 +02:00
Christoph Wurst f9e1418098 Deprecate String.prototype.toRgb
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-05-14 17:39:39 +00:00
Christoph Wurst f4ba82f38f
Import md5 for the jquery placeholder plugin
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-05-14 15:12:55 +02:00
Christoph Wurst 4ed6284cdc
Bump jQuery to v2.2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-05-14 11:53:32 +02:00
Christoph Wurst 9db32a48f8
Revert "Log trace when deprecated globals are used" 2020-05-12 11:54:34 +02:00
Christoph Wurst 13b34ca0be Log trace when deprecated globals are used
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-05-12 07:30:26 +00:00
Roeland Jago Douma 2be21fab9a Fix replacement dialog
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-05-07 17:44:56 +00:00
Sergey Shliakhov 09ecf4b4eb Generate legacy image placeholder text by taking first letters
https://github.com/nextcloud/server/issues/19335
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-04-30 07:17:47 +00:00
Julius Härtl a143e36630
Make sure that the legacy jsunit tests can still inject OC.config
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-04-23 20:19:47 +02:00
Julius Härtl 84330f1d36
Add config fallback for legacy tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-04-23 19:12:54 +02:00
Julius Härtl 9e7f8b85dd
Add config for auto logout after browser inactivity
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-04-23 19:12:54 +02:00
Liam JACK d71b93235d Fix #20551 - Disable autocapitalize for username field on login / reset password pages
Signed-off-by: Liam JACK <1422590-liamjack@users.noreply.gitlab.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-04-21 07:07:11 +00:00
Loïc Hermann 6c60b85a87 Fix breadcrumb in move or copy file dialog
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-04-17 06:47:17 +00:00
Joas Schilling 0b53084ccb Use the primary element color in case it primary color is too bright
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-04-10 06:49:21 +00:00
Christoph Wurst 8119e0b18e
Inline usages of OCP.Toast in bundled files
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-06 17:19:57 +02:00
Christoph Wurst 01a70e5d0f
Use external Toast implementation and deprecate the OCP API
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-06 17:00:58 +02:00
Daniel Kesselberg 531b1288e4 Add fieldset to align arrow
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-04-01 11:38:01 +00:00
Roeland Jago Douma 53db05a1f6
Start with webauthn
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-03-31 22:17:07 +02:00
Christoph Wurst fa9c206fc8
Migrate from @babel/polyfill to core-js@3
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-26 13:22:35 +01:00
Christoph Wurst 6af1ed8cb3
Update eslint and switch to @nextcloud packages
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-25 11:53:59 +01:00
Julius Härtl 02f898fa07
Use jquery-ui to only embed button components
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-03-11 14:19:38 +01:00
Julius Härtl bba26cb2eb
Move install scripts to bundle
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-03-11 14:06:25 +01:00
Joas Schilling dfd6454e6f
No tabs in translations
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-09 17:16:14 +01:00
Christoph Wurst bb1d8b3189
Remove deprecated global variables
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-09 13:31:50 +01:00
Joas Schilling e05362959f
Copy isFileNameValid function, so the filepicker works without the files app
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-25 12:01:14 +01:00
Joas Schilling 4cc017d52e
Fix "TypeError: u.$form is undefined"
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-25 11:57:45 +01:00
Joas Schilling 22e748ed38
Allow to create directories when they are selectable
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-25 11:55:35 +01:00
Christoph Wurst 80450427d1
Add removal version number for global deprecations
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-02-14 17:39:49 +01:00
Christoph Wurst d4e68dd64a
Deprecate OC router helpers that are provided by packages
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-02-13 16:41:45 +01:00
Christoph Wurst 328f9673b5 Deprecate jQuery
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-02-11 07:39:10 +00:00
Christoph Wurst c47a0a0153
Add more tests for the new js modules
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-02-10 12:05:43 +01:00
Christoph Wurst b267409d38
Add webpack-based js tests
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-02-07 16:56:35 +01:00
Christoph Wurst d1886b57ce
Fetch a new request token as soon as the browser becomes online
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-02-06 14:15:47 +01:00
Julius Härtl 2c67276e33
Use escape-html library
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-02-05 20:16:47 +01:00
rakekniven 08fa1f05b5 Added space before ellipsis
Signed-off-by: rakekniven <mark.ziegler@rakekniven.de>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-02-05 10:49:19 +00:00