Commit Graph

78 Commits

Author SHA1 Message Date
Ralf Becker
582793d52b Revert "Bring web-component work into master branch"
To many things are not working :(
- addressbook, infolog, even timesheet index lacks at least r/o textbox and problably other widgets
- smallPART (with many extra widgets) is completly unusable
- *box widget seems not to skip empty boxes
--> we need more testing and progress, before we can merge that

This reverts commit 9cee681b94.
2021-09-03 11:28:22 +02:00
nathan
9cee681b94 Bring web-component work into master branch 2021-09-02 10:52:10 -06:00
nathan
ef3848fd3c - Fix including everything just for a unit test
- Start of some tests for Et2Button
2021-08-25 11:32:15 -06:00
nathan
d656eb0e69 Javascript unit testing
Runs over all files in api/js/etemplate/<widget>/test and <app>/js/test folders

Run from the commandline with: npm jstest
Can also run & watch for changed files, check package.json for scripts.
2021-08-24 14:52:09 -06:00
nathan
e34ca22499 Split textarea off from textbox & start implementing
Splitting the two made things a lot simpler to deal with
2021-08-20 15:52:22 -06:00
nathan
4f225054f8 WIP on Date widget
Something's not right with the parser/formatter, they're not getting called.

Times not handled yet
2021-08-13 15:26:18 -06:00
Hadi Nategh
d07a7ab194 WIP of replacing bower-asset packages:
- Get jquery-ui and touch event plugin working (although still modular import is not possible becuase of a wierd issue with jquery-ui tooltip plugin)
- Import timepicker-addon plugin as npm package
- Update composer.lock file
2021-08-12 14:51:38 +02:00
Hadi Nategh
a63416f6d6 Get fw sidebox sortable items working with sortablejs and removes the jquery.sortable 2021-08-11 16:43:16 +02:00
nathan
16be1dfd4f Should now give a warning if you try to build on an insufficient node version 2021-07-13 10:39:44 -06:00
Ralf Becker
d11cb4bb7e Adding carbon lit components tutorial
https://github.com/carbon-design-system/carbon-web-components#basic-usage
Thought Rollup gives following Babel error:
Error: Could not load /Volumes/htdocs/egw-test/node_modules/carbon-web-components/es/components/dropdown/@babel/runtime/helpers/esm/decorate.js (imported by node_modules/carbon-web-components/es/components/dropdown/dropdown-item.js): ENOENT: no such file or directory, open '/Volumes/htdocs/egw-test/node_modules/carbon-web-components/es/components/dropdown/@babel/runtime/helpers/esm/decorate.js'
2021-07-09 20:16:24 +02:00
nathangray
d5ce403a2b Add missed babel/core devDepencency for rollup 2021-06-29 09:02:26 -06:00
nathangray
3add958afa The results of Guy Bedford's help
Egroupware will load into addressbook & show rows
Most base files should be bundled server-side & included
rollup.config.js controls the process

Still needs work:
- consider /dist directory for best-practice
- cleanup
- other built-in apps
- EPL / external apps need Guy's multi-stage work
2021-06-25 14:49:24 -06:00
Ralf Becker
bc0cf17b13 remove (not used) grunt-ts to allow fixing dependabot alerts in dev packages 2021-06-15 10:34:37 +02:00
Ralf Becker
639bf0926a remove not used dev-dependencies giving a (non-exploitable) Dependabot warning 2021-06-01 17:39:57 +02:00
Ralf Becker
2acd3e12d2 adding kanban to .gitignore and commit package-lock.json 2021-03-16 10:30:34 +02:00
Ralf Becker
1739c88a53 remove npm packages grunt-{hub,contrib-uglify-es} not used in 20.1 2021-01-25 13:55:21 +02:00
Ralf Becker
7733c8dfd4 run a first unit-test with egw object on login page: npm test 2020-08-30 21:40:10 +02:00
nathangray
b5dceda99c Fix js packaging by switching from uglify-es to terser 2020-05-28 11:48:44 -06:00
Ralf Becker
9ed6b9b1d6 newer jQuery types allowing eg. JQuery<HTMLVideoElement> 2020-05-10 14:56:50 +02:00
Ralf Becker
901825bcfa first try with TypeScript: timesheet app.js incl. new egw_app base-class 2020-01-23 09:14:58 +01:00
Ralf Becker
8d94fc699d remove old grunt-contrib-uglify (replaced with grunt-contrib-uglify-es) 2018-08-03 09:52:45 +02:00
Hadi Nategh
dd4f998b36 Update uglifyjs to support ES6 syntax. @Devs: Make sure to install grunt-contrib-uglify-es (npm install grunt-contrib-uglify-es --save-dev) before running grunt. 2018-08-02 17:15:49 +02:00
Ralf Becker
2be145beda update to newest grunt* versions, you need to run npm install to update to them 2017-10-12 09:59:15 +02:00
Ralf Becker
57f8a9a8eb remove dependency on phpgwapi as far as css is concerned 2016-05-02 12:31:24 +00:00
Ralf Becker
9aac672e8f use Grunt&cssmin to minify CSS files, moved diverse conditional includes into etemplate2.css, as we anyway include all widgets from api 2016-04-30 09:29:54 +00:00
Ralf Becker
3377ef0483 install grunt-newer to run uglify only for targets with changed files 2016-03-02 20:00:41 +00:00
Ralf Becker
ecb4b7e74a remove ckeditor from api bundle (it does not work, is already minified and uglify work a lot faster without) 2016-03-02 14:34:01 +00:00
Ralf Becker
ec9063bb6c work in progress to use Grunt and UglifyJS to minify javascript 2016-02-28 21:35:24 +00:00