From 0d87d6590e055908be570ad53e4a6f50351ba6df Mon Sep 17 00:00:00 2001 From: Joshua Kuestersteffen Date: Mon, 16 Aug 2021 14:19:12 -0500 Subject: [PATCH] Bump up the bundle size of main.js --- package.json | 2 +- .../src/js/enketo/bootstrap-datepicker.bm.js | 24 ----------------- .../src/js/enketo/bootstrap-datepicker.hi.js | 26 ------------------- webapp/src/js/enketo/main.js | 4 +-- 4 files changed, 3 insertions(+), 53 deletions(-) delete mode 100644 webapp/src/js/enketo/bootstrap-datepicker.bm.js delete mode 100644 webapp/src/js/enketo/bootstrap-datepicker.hi.js diff --git a/package.json b/package.json index 5d48454f368..67e3f2ecf69 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,7 @@ "bundlesize": [ { "path": "./build/ddocs/medic/_attachments/main.js", - "maxSize": "800 kB" + "maxSize": "900 kB" }, { "path": "./build/ddocs/medic/_attachments/polyfills-es5.js", diff --git a/webapp/src/js/enketo/bootstrap-datepicker.bm.js b/webapp/src/js/enketo/bootstrap-datepicker.bm.js deleted file mode 100644 index e1d90293ad8..00000000000 --- a/webapp/src/js/enketo/bootstrap-datepicker.bm.js +++ /dev/null @@ -1,24 +0,0 @@ -/* -https://github.com/uxsolutions/bootstrap-datepicker/pull/2431 tracks contribution of this file to bootstrap-datepicker -*/ - -/* eslint-disable */ - -/** - * Bamanankan (bm) translation for bootstrap-datepicker - * Fatou Fall - */ -;(function($){ - $.fn.datepicker.dates['bm'] = { - days: ["Kari","Ntɛnɛn","Tarata","Araba","Alamisa","Juma","Sibiri"], - daysShort: ["Kar","Ntɛ","Tar","Ara","Ala","Jum","Sib"], - daysMin: ["Ka","Nt","Ta","Ar","Al","Ju","Si"], - months: ["Zanwuyekalo","Fewuruyekalo","Marisikalo","Awirilikalo","Mɛkalo","Zuwɛnkalo","Zuluyekalo","Utikalo","Sɛtanburukalo","ɔkutɔburukalo","Nowanburukalo","Desanburukalo"], - monthsShort: ["Zan","Few","Mar","Awi","Mɛ","Zuw","Zul","Uti","Sɛt","ɔku","Now","Des"], - today: "Bi", - monthsTitle: "Kalo", - clear: "Ka jɔsi", - weekStart: 1, - format: "dd/mm/yyyy" - }; -}(jQuery)); diff --git a/webapp/src/js/enketo/bootstrap-datepicker.hi.js b/webapp/src/js/enketo/bootstrap-datepicker.hi.js deleted file mode 100644 index 0757db0d4d2..00000000000 --- a/webapp/src/js/enketo/bootstrap-datepicker.hi.js +++ /dev/null @@ -1,26 +0,0 @@ -/* -This file is forked and unaltered from https://github.com/uxsolutions/bootstrap-datepicker/blob/master/js/locales/bootstrap-datepicker.hi.js -Enketo-core uses bootstrap-datepicker@1.6.4 but Hindi localization wasn't available until 1.8.0. -Solution is to use a duplicated copy of the file to avoid a breaking change to enketo-core. -*/ - -/* eslint-disable */ - -/** - * Hindi translation for bootstrap-datepicker - * Visar Uruqi - */ -; (function($){ - $.fn.datepicker.dates['hi'] = { - days: ["रविवार", "सोमवार", "मंगलवार", "बुधवार", "गुरुवार", "शुक्रवार", "शनिवार"], - daysShort: ["सूर्य", "सोम", "मंगल", "बुध", "गुरु", "शुक्र", "शनि"], - daysMin: ["र", "सो", "मं", "बु", "गु", "शु", "श"], - months: ["जनवरी", "फ़रवरी", "मार्च", "अप्रैल", "मई", "जून", "जुलाई", "अगस्त", "सितम्बर", "अक्टूबर", "नवंबर", "दिसम्बर"], - monthsShort: ["जन", "फ़रवरी", "मार्च", "अप्रैल", "मई", "जून", "जुलाई", "अगस्त", "सितं", "अक्टूबर", "नवं", "दिसम्बर"], - today: "आज", - monthsTitle: "महीने", - clear: "साफ", - weekStart: 1, - format: "dd / mm / yyyy" - }; -}(jQuery)); \ No newline at end of file diff --git a/webapp/src/js/enketo/main.js b/webapp/src/js/enketo/main.js index e623474ee74..deccc96f1b7 100644 --- a/webapp/src/js/enketo/main.js +++ b/webapp/src/js/enketo/main.js @@ -4,8 +4,8 @@ require('bootstrap-datepicker/js/locales/bootstrap-datepicker.es'); require('bootstrap-datepicker/js/locales/bootstrap-datepicker.fr'); require('bootstrap-datepicker/js/locales/bootstrap-datepicker.sw'); require('bootstrap-datepicker/js/locales/bootstrap-datepicker.id'); -require('./bootstrap-datepicker.bm'); -require('./bootstrap-datepicker.hi'); +require('bootstrap-datepicker/js/locales/bootstrap-datepicker.bm'); +require('bootstrap-datepicker/js/locales/bootstrap-datepicker.hi'); require('./bootstrap-datepicker.ceb'); require('./bootstrap-datepicker.hil'); require('./bootstrap-datepicker.tl');