diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-31 19:19:47 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-02-01 09:15:30 +0100 |
commit | ab73c9c3282fa3550fcf349ea30e399de202f4ed (patch) | |
tree | ced754c494c98035e115bf8a8727afaaa31f83bf /core/src/globals.js | |
parent | 8709f6b218f16dd71200c715dd37a1d58736d4e4 (diff) | |
download | nextcloud-server-ab73c9c3282fa3550fcf349ea30e399de202f4ed.tar.gz nextcloud-server-ab73c9c3282fa3550fcf349ea30e399de202f4ed.zip |
Move global helper functions to the bundle and deprecate some of them
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/globals.js')
-rw-r--r-- | core/src/globals.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/globals.js b/core/src/globals.js index 4542a59b7b3..560c492fdde 100644 --- a/core/src/globals.js +++ b/core/src/globals.js @@ -52,7 +52,10 @@ import OC from './OC/index' import OCP from './OCP/index' import OCA from './OCA/index' import escapeHTML from './Util/escapeHTML' +import formatDate from './Util/format-date' +import getUrlParameter from './Util/get-url-parameter' import humanFileSize from './Util/human-file-size' +import relative_modified_date from './Util/relative-modified-date' window['_'] = _ window['$'] = $ @@ -75,7 +78,10 @@ window['OC'] = OC window['OCP'] = OCP window['OCA'] = OCA window['escapeHTML'] = escapeHTML +window['formatDate'] = formatDate +window['getUrlParameter'] = getUrlParameter window['humanFileSize'] = humanFileSize +window['relative_modified_date'] = relative_modified_date /** * translate a string |