Commit graph

40 commits

Author SHA1 Message Date
djmaze
ce63ba506a Keep AUTH_SPEC_TOKEN_KEY
And now we can embed theme and language in index.html template
2021-04-28 12:08:07 +02:00
djmaze
ca59c21602 Bugfix: translator "undefined" 2021-04-12 16:30:39 +02:00
djmaze
fa371e25bf Revamp language system for #82 2021-04-12 12:57:35 +02:00
djmaze
23e15fd161 Use own createElement() instead of doc.createElement 2021-03-25 09:38:45 +01:00
djmaze
7eaaa0a793 Upgrade i18n() to use Object.entries()
And replace quoted object keys to be without quotes
2021-03-24 21:26:40 +01:00
djmaze
11fd6736bb Set response ErrorCode as iError for easier fetch error handling 2021-03-18 12:33:13 +01:00
djmaze
7ccc44616d Small code cleanups and fix translations 2021-01-27 00:26:31 +01:00
djmaze
ad8fd8879b This version uses Rollup instead of WebPack.
Due to that the code is smaller and has changes to prevent Circular Dependencies
2021-01-25 22:00:13 +01:00
djmaze
0d13484cdc Cleanup and simplify i18n code
There's no need for I18N_NOTIFICATION_DATA and I18N_NOTIFICATION_MAP
Also bugfix: NEW_PASSWORD_FORBIDDENT => NEW_PASSWORD_FORBIDDEN
2021-01-04 12:08:41 +01:00
djmaze
0528bcf911 Cleanup language loader 2020-10-15 12:59:56 +02:00
djmaze
6f585e1f1d Use Intl.DateTimeFormat instead of momentjs where we can
Need to solve the Intl.RelativeTimeFormat to drop momentjs
2020-10-15 00:26:40 +02:00
djmaze
4977494f6b Bugfix: Translator append() should be appendChild() 2020-08-31 11:31:35 +02:00
djmaze
bdb36ec128 Use less jQuery, more native 2020-08-27 15:45:47 +02:00
djmaze
1d4224d733 Drop License code (not used by comunity) 2020-08-18 20:45:43 +02:00
djmaze
97a73c6639 Replace timeOutAction() with debounce
Replace delegateRun()
Revert my throttle/debounce setTimeout() to Function.prototype[throttle/debounce]
2020-08-18 20:24:17 +02:00
djmaze
1b811428e7 new Date().getTime() to Date.now() 2020-08-17 21:35:03 +02:00
djmaze
efc2dd89e1 Momentor.reload to CustomEvent 2020-08-14 21:19:06 +02:00
djmaze
e7180a86ce Made eslint using 'browser' environment and added globals, because RainLoop is used in browsers.
This also allowed to remove all webpack 'externals' overhead.
2020-08-12 00:25:36 +02:00
djmaze
ea48f5060b isArray to native Array.isArray
isUnd(*) to native undefined === *
isFunc to native typeof * === 'function'
isObject to native typeof * === 'object'
microtime() to native Date().getTime();
noop to native ()=>{}
noopFalse to native ()=>false
noopTrue to native ()=>true
boolToAjax to native *?'1':'0'
Underscore.js to native
2020-07-29 21:49:41 +02:00
djmaze
134cb7d52a Replace missed $.ajax with window.fetch 2020-07-23 20:35:37 +02:00
djmaze
43c92a82e6 Underscore.js _.delay() to native setTimeout() 2020-07-22 20:28:25 +02:00
djmaze
178e5f6ef7 Remove _.isNull 2020-07-22 10:54:28 +02:00
djmaze
756fe81091 Replaced _.has() with native Object.prototype.hasOwnProperty.call() 2020-07-20 22:06:21 +02:00
djmaze
db2d95d684 JavaScript inArray()/indexOf() to .includes() 2020-07-20 14:33:33 +02:00
djmaze
ec3fd5b7e4 Remove jquery-letterfx, just like cd55e3ccc2 2020-07-20 11:26:40 +02:00
djmaze
0b0747b8dc Upgraded some old JavaScript to ECMAScript 1.6
Removed some jQuery references
Added JavaScript Globals.$htmlCL for frequently used window.document.documentElement.classList
2020-07-15 14:25:51 +02:00
RainLoop Team
8a0be3212d prettier --write 2019-07-04 22:19:24 +03:00
RainLoop Team
8da988fef2 Synchronize localizations from Transifex
Update package.json dependencies
Fix eslint errors
webpack 2 -> webpack 3
2017-06-24 22:26:27 +03:00
RainLoop Team
e6e0b02849 Code refactoring
Flow first look
2016-09-10 02:27:53 +03:00
RainLoop Team
e6e1a19477 Add cmd interface 2016-08-23 23:15:14 +03:00
RainLoop Team
e88c193334 *.jsx -> *.js 2016-08-11 02:34:09 +03:00
RainLoop Team
445cd155e5 ES2015 first look / babeljs 2015-11-15 03:24:02 +03:00
RainLoop Team
5123841540 Pgp improvements 2015-07-29 21:23:10 +04:00
RainLoop Team
3dac6809d1 Admin Panel localization (#467) 2015-03-28 02:09:36 +04:00
RainLoop Team
30b7ce263f i18n optimizations 2015-03-21 00:23:41 +04:00
RainLoop Team
bab64a7cea Code refactoring (promises for folders management) 2015-03-17 18:30:17 +04:00
RainLoop Team
147dce6e4a Momentor (moment optimization) 2015-03-07 04:41:38 +04:00
RainLoop Team
abddb3d828 Pre release fixes and improvements 2015-02-01 19:44:44 +04:00
RainLoop Team
0152f1583b Sieve filters (pre release) 2015-01-29 01:24:58 +04:00
RainLoop Team
b42ce01e7e Code refactoring (Translator, Stores, ko) 2015-01-26 03:13:12 +04:00