From cb458ec44bac925bc5e9520d892c82d15051b05d Mon Sep 17 00:00:00 2001 From: Bertrand Chevrier Date: Tue, 9 Mar 2021 10:34:08 +0100 Subject: [PATCH 1/2] fix: remove args --- views/js/controller/Foo/moodex.js | 1 - 1 file changed, 1 deletion(-) diff --git a/views/js/controller/Foo/moodex.js b/views/js/controller/Foo/moodex.js index 5b7b762..87c200d 100644 --- a/views/js/controller/Foo/moodex.js +++ b/views/js/controller/Foo/moodex.js @@ -5,7 +5,6 @@ define([], function(){ start(){ //foo starts - window.console.log('foobar baz noz', arguments); window.console.warn('Ooops'); window.console.log('That is a cool new feature'); window.console.log('Now the feature is complete'); From d0e24722606dff724a9113551c37d0d2aa2870b5 Mon Sep 17 00:00:00 2001 From: Bertrand Chevrier Date: Tue, 9 Mar 2021 11:21:04 +0100 Subject: [PATCH 2/2] chore: bundle assets --- views/js/loader/taoFooBar.min.js | 2 +- views/js/loader/taoFooBar.min.js.map | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/js/loader/taoFooBar.min.js b/views/js/loader/taoFooBar.min.js index 5d6a953..12e703d 100644 --- a/views/js/loader/taoFooBar.min.js +++ b/views/js/loader/taoFooBar.min.js @@ -1,2 +1,2 @@ -define("taoFooBar/controller/Foo/foodex",[],function(){'use strict';return{start:function start(){window.console&&(window.console.warn("Ooops"),window.console.log("That is a cool new feature"),window.console.log("Now the feature is complete"),window.console.log("yet another console log..."),window.console.log("Never use alerts, they block the event loop"),window.console.log("that was really nasty :-O"),window.console.log("Are you sure, alert are pretty convenient"),window.console.log("document.write is actually convenient"),window.console.log("or just write in document.body.innerHTML"),window.console.log("May the force be with you"),window.console.log("I prefer the dark side"),window.console.log("You're kidding, right ?"),window.addEventListener("error",function(err){window.console.error(err)}))},stop:function stop(){window.console.log("stop it")}}}),define("taoFooBar/controller/Foo/index",[],function(){'use strict';return{start:function(){console.log("A some new features."),new Promise(function(resolve){setTimeout(function(){resolve()},150)}).then(function(){console.log("Master of the time ?"),console.log("Master of puppets..."),console.log("Master of BBQ")}).catch(function(err){window.console.error("Master of the space ",err)})}}}),define("taoFooBar/controller/Foo/moodex",[],function(){'use strict';return{start:function start(){window.console.log("foobar baz noz",arguments),window.console.warn("Ooops"),window.console.log("That is a cool new feature"),window.console.log("Now the feature is complete"),window.console.log("Never use alerts, they block the event loop"),window.console.log("that was really nasty :-O"),window.addEventListener("error",function(err){window.console.error(err)})}}}),define("taoFooBar/controller/routes",[],function(){'use strict';return{Foo:{actions:{index:"controller/Foo/index",foodex:"controller/Foo/foodex",moodex:"controller/Foo/foodex",yoodex:"controller/Foo/foodex",ploodex:"controller/Foo/foodex"}}}}),define("taoFooBar/loader/taoFooBar.bundle",function(){}); +define("taoFooBar/controller/Foo/foodex",[],function(){'use strict';return{start:function start(){window.console&&(window.console.warn("Ooops"),window.console.log("That is a cool new feature"),window.console.log("Now the feature is complete"),window.console.log("yet another console log..."),window.console.log("Never use alerts, they block the event loop"),window.console.log("that was really nasty :-O"),window.console.log("Are you sure, alert are pretty convenient"),window.console.log("document.write is actually convenient"),window.console.log("or just write in document.body.innerHTML"),window.console.log("May the force be with you"),window.console.log("I prefer the dark side"),window.console.log("You're kidding, right ?"),window.addEventListener("error",function(err){window.console.error(err)}))},stop:function stop(){window.console.log("stop it")}}}),define("taoFooBar/controller/Foo/index",[],function(){'use strict';return{start:function(){console.log("A some new features."),new Promise(function(resolve){setTimeout(function(){resolve()},150)}).then(function(){console.log("Master of the time ?"),console.log("Master of puppets..."),console.log("Master of BBQ")}).catch(function(err){window.console.error("Master of the space ",err)})}}}),define("taoFooBar/controller/Foo/moodex",[],function(){'use strict';return{start:function start(){window.console.warn("Ooops"),window.console.log("That is a cool new feature"),window.console.log("Now the feature is complete"),window.console.log("Never use alerts, they block the event loop"),window.console.log("that was really nasty :-O"),window.addEventListener("error",function(err){window.console.error(err)})}}}),define("taoFooBar/controller/routes",[],function(){'use strict';return{Foo:{actions:{index:"controller/Foo/index",foodex:"controller/Foo/foodex",moodex:"controller/Foo/foodex",yoodex:"controller/Foo/foodex",ploodex:"controller/Foo/foodex"}}}}),define("taoFooBar/loader/taoFooBar.bundle",function(){}); //# sourceMappingURL=taoFooBar.min.js.map \ No newline at end of file diff --git a/views/js/loader/taoFooBar.min.js.map b/views/js/loader/taoFooBar.min.js.map index 81c1cd0..458cf44 100644 --- a/views/js/loader/taoFooBar.min.js.map +++ b/views/js/loader/taoFooBar.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["../controller/Foo/foodex.js","../controller/Foo/index.js","../controller/Foo/moodex.js","../controller/routes.js","module-create.js"],"names":[],"mappings":"AAAA,MAAA,CAAA,iCAAA,CAAA,EAAA,CAAA,UAAA,CACA,aAEA,MAAA,CACA,KADA,iBACA,CAIA,MAAA,CAAA,OAJA,GAQA,MAAA,CAAA,OAAA,CAAA,IAAA,CAAA,OAAA,CARA,CASA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,4BAAA,CATA,CAUA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,6BAAA,CAVA,CAWA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,4BAAA,CAXA,CAaA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,6CAAA,CAbA,CAcA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,2BAAA,CAdA,CAeA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,2CAAA,CAfA,CAgBA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,uCAAA,CAhBA,CAiBA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,0CAAA,CAjBA,CAkBA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,2BAAA,CAlBA,CAmBA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,wBAAA,CAnBA,CAoBA,MAAA,CAAA,OAAA,CAAA,GAAA,2BApBA,CAsBA,MAAA,CAAA,gBAAA,CAAA,OAAA,CAAA,SAAA,GAAA,CAAA,CACA,MAAA,CAAA,OAAA,CAAA,K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CApBA,C,CCqBA,MAAA,CAAA,6BAAA,CAAA,EAAA,CAAA,UAAA,CACA,aAEA,MAAA,CACA,IAAA,CACA,QAAA,CACA,MAAA,sBADA,CAEA,OAAA,uBAFA,CAGA,OAAA,uBAHA,CAIA,OAAA,uBAJA,CAKA,QAAA,uBALA,CADA,CADA,CAWA,CAdA,C,CCpBA,MAAA,CAAA,mCAAA,CAAA,UAAA,CAAA,CAAA,C","sourcesContent":["define('taoFooBar/controller/Foo/foodex',[], function(){\n 'use strict';\n\n return {\n start(){\n //foo starts\n\n // if developper tool is not open in ie, console is not available on window\n if (!window.console) {\n return;\n }\n\n window.console.warn('Ooops');\n window.console.log('That is a cool new feature');\n window.console.log('Now the feature is complete');\n window.console.log('yet another console log...');\n\n window.console.log('Never use alerts, they block the event loop');\n window.console.log('that was really nasty :-O');\n window.console.log('Are you sure, alert are pretty convenient');\n window.console.log('document.write is actually convenient');\n window.console.log('or just write in document.body.innerHTML');\n window.console.log('May the force be with you');\n window.console.log('I prefer the dark side');\n window.console.log(`You're kidding, right ?`);\n\n window.addEventListener('error', function(err){\n window.console.error(err);\n });\n },\n\n stop(){\n window.console.log(`stop it`);\n }\n };\n});\n\n","define('taoFooBar/controller/Foo/index',[], function(){\n 'use strict';\n\n return {\n start : function restart(){\n\n console.log('A some new features.');\n\n new Promise(function(resolve){\n setTimeout(function(){\n resolve();\n }, 150);\n })\n .then(function(){\n console.log('Master of the time ?');\n console.log('Master of puppets...');\n console.log('Master of BBQ');\n })\n .catch(function(err){\n window.console.error('Master of the space ', err);\n });\n }\n };\n});\n\n","define('taoFooBar/controller/Foo/moodex',[], function(){\n 'use strict';\n\n return {\n start(){\n\n //foo starts\n window.console.log('foobar baz noz', arguments);\n window.console.warn('Ooops');\n window.console.log('That is a cool new feature');\n window.console.log('Now the feature is complete');\n\n window.console.log('Never use alerts, they block the event loop');\n window.console.log('that was really nasty :-O');\n\n window.addEventListener('error', function(err){\n window.console.error(err);\n });\n }\n };\n});\n\n","/**\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; under version 2\n * of the License (non-upgradable).\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n *\n * Copyright (c) 2017 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT);\n *\n *\n */\n\n//@see http://forge.taotesting.com/projects/tao/wiki/Front_js\ndefine('taoFooBar/controller/routes',[],function(){\n 'use strict';\n\n return {\n 'Foo' : {\n 'actions' : {\n 'index' : 'controller/Foo/index',\n 'foodex' : 'controller/Foo/foodex',\n 'moodex' : 'controller/Foo/foodex',\n 'yoodex' : 'controller/Foo/foodex',\n 'ploodex' : 'controller/Foo/foodex'\n }\n }\n };\n});\n\n","\ndefine(\"taoFooBar/loader/taoFooBar.bundle\", function(){});\n"]} \ No newline at end of file +{"version":3,"sources":["../controller/Foo/foodex.js","../controller/Foo/index.js","../controller/Foo/moodex.js","../controller/routes.js","module-create.js"],"names":[],"mappings":"AAAA,MAAA,CAAA,iCAAA,CAAA,EAAA,CAAA,UAAA,CACA,aAEA,MAAA,CACA,KADA,iBACA,CAIA,MAAA,CAAA,OAJA,GAQA,MAAA,CAAA,OAAA,CAAA,IAAA,CAAA,OAAA,CARA,CASA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,4BAAA,CATA,CAUA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,6BAAA,CAVA,CAWA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,4BAAA,CAXA,CAaA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,6CAAA,CAbA,CAcA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,2BAAA,CAdA,CAe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AIA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,4BAAA,CAJA,CAKA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,6BAAA,CALA,CAOA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,6CAAA,CAPA,CAQA,MAAA,CAAA,OAAA,CAAA,GAAA,CAAA,2BAAA,CARA,CAUA,MAAA,CAAA,gBAAA,CAAA,OAAA,CAAA,SAAA,GAAA,CAAA,CACA,MAAA,CAAA,OAAA,CAAA,KAAA,CAAA,GAAA,CACA,CAFA,CAGA,CAdA,CAgBA,CAnBA,C,CCqBA,MAAA,CAAA,6BAAA,CAAA,EAAA,CAAA,UAAA,CACA,aAEA,MAAA,CACA,IAAA,CACA,QAAA,CACA,MAAA,sBADA,CAEA,OAAA,uBAFA,CAGA,OAAA,uBAHA,CAIA,OAAA,uBAJA,CAKA,QAAA,uBALA,CADA,CADA,CAWA,CAdA,C,CCpBA,MAAA,CAAA,mCAAA,CAAA,UAAA,CAAA,CAAA,C","sourcesContent":["define('taoFooBar/controller/Foo/foodex',[], function(){\n 'use strict';\n\n return {\n start(){\n //foo starts\n\n // if developper tool is not open in ie, console is not available on window\n if (!window.console) {\n return;\n }\n\n window.console.warn('Ooops');\n window.console.log('That is a cool new feature');\n window.console.log('Now the feature is complete');\n window.console.log('yet another console log...');\n\n window.console.log('Never use alerts, they block the event loop');\n window.console.log('that was really nasty :-O');\n window.console.log('Are you sure, alert are pretty convenient');\n window.console.log('document.write is actually convenient');\n window.console.log('or just write in document.body.innerHTML');\n window.console.log('May the force be with you');\n window.console.log('I prefer the dark side');\n window.console.log(`You're kidding, right ?`);\n\n window.addEventListener('error', function(err){\n window.console.error(err);\n });\n },\n\n stop(){\n window.console.log(`stop it`);\n }\n };\n});\n\n","define('taoFooBar/controller/Foo/index',[], function(){\n 'use strict';\n\n return {\n start : function restart(){\n\n console.log('A some new features.');\n\n new Promise(function(resolve){\n setTimeout(function(){\n resolve();\n }, 150);\n })\n .then(function(){\n console.log('Master of the time ?');\n console.log('Master of puppets...');\n console.log('Master of BBQ');\n })\n .catch(function(err){\n window.console.error('Master of the space ', err);\n });\n }\n };\n});\n\n","define('taoFooBar/controller/Foo/moodex',[], function(){\n 'use strict';\n\n return {\n start(){\n\n //foo starts\n window.console.warn('Ooops');\n window.console.log('That is a cool new feature');\n window.console.log('Now the feature is complete');\n\n window.console.log('Never use alerts, they block the event loop');\n window.console.log('that was really nasty :-O');\n\n window.addEventListener('error', function(err){\n window.console.error(err);\n });\n }\n };\n});\n\n","/**\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; under version 2\n * of the License (non-upgradable).\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n *\n * Copyright (c) 2017 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT);\n *\n *\n */\n\n//@see http://forge.taotesting.com/projects/tao/wiki/Front_js\ndefine('taoFooBar/controller/routes',[],function(){\n 'use strict';\n\n return {\n 'Foo' : {\n 'actions' : {\n 'index' : 'controller/Foo/index',\n 'foodex' : 'controller/Foo/foodex',\n 'moodex' : 'controller/Foo/foodex',\n 'yoodex' : 'controller/Foo/foodex',\n 'ploodex' : 'controller/Foo/foodex'\n }\n }\n };\n});\n\n","\ndefine(\"taoFooBar/loader/taoFooBar.bundle\", function(){});\n"]} \ No newline at end of file