Commit Graph
67 Commits
Author SHA1 Message Date
Jos van den Oever 08aa2f8f58 Update JSLint. 2012-04-25 19:24:49 +02:00
Jos van den Oever 87fcc99fba Add a ui based on sencha touch 2.0. 2012-02-17 11:16:26 +01:00
Jos van den Oever c5d191a4a8 Better error message when a class cannot be loaded. 2011-11-30 09:43:54 +01:00
Jos van den Oever 4356f16938 Fixes for IE9. 2011-11-22 15:39:43 +01:00
Jos van den Oever ffb57232c2 Add workarounds for Firefox extension submission.
Firefox extensions are submitted to static code analysis. In this analysis, some features are flagged and some are fixed by this commit:
 - eval() is not allowed. it is replaced by evil(). Only dead code refers to it.
 - the variable 'windows' is renamed to 'mywindow'.
 - setTimeout calls a literal function instead of a function variable.
2011-10-21 11:21:56 +02:00
Jos van den Oever f7f23ac9a5 Simplify dynamic creation of package objects. 2011-10-03 11:19:33 +02:00
Jos van den Oever 4c3f535093 Use manifest.js files to speed up loading.
The manifest.js file lists for each directory in the path, the available js files. This avoids looking for files in places where they are not.
2011-09-30 16:23:35 +02:00
Jos van den Oever cd4f75c624 Use "use strict" to have more sanity checks. 2011-09-30 12:23:09 +02:00
Jos van den Oever 054f8e1517 Add all JSLint configuration options.
This makes it easier to know what has been defined.
2011-09-29 14:37:02 +02:00
Jos van den Oever 1a82610f9f Update to a new JSLint
and fix all the new errors it finds.
2011-09-29 13:57:04 +02:00
Jos van den Oever 9cf1318458 Simplify Qt based executables.
Zip implementation is no longer in C++ but in JavaScript. Runtime customization is now shared between the two Qt executables.
2011-07-26 13:23:46 +02:00
Jos van den Oever a97612ce83 Upgrade to new version of JSLint.
And update code to meet better checks.
2011-07-13 10:21:31 +02:00
Jos van den Oever 75a4317ae7 Make error messages more verbose. 2011-06-10 09:59:53 +02:00
Jos van den Oever 6e20bc3848 Adapt nativeQtClient to use webodf.js. 2011-06-07 22:24:51 +02:00
Jos van den Oever 13c077b970 Add licenses and copyright statements to all javascript files. 2011-06-06 12:30:35 +02:00
Jos van den Oever f19b1110e7 Fix closure compiler errors. 2011-06-02 00:32:03 +02:00
Jos van den Oever 7e2af1539b More fixes for IE9
Improvements for reading binary data via Internet Explorer 9.
2011-06-01 23:40:27 +02:00
Jos van den Oever 6213b58ac7 Work towards support for Internet Explorer 9.
This may end when we come across an insurmountable problem like we did with IE8.
2011-06-01 20:17:27 +02:00
Jos van den Oever 8a8c70a1cb Compile fixes for new stricter Closure Compiler version. 2011-04-20 11:55:41 +02:00
Jos van den Oever 8f0b6f563f Fix conversion to utf8 array. The last part was left out of the converted array, because the native array did not autoexpand when access with an index outside of the range.
Now required length is calculated first.
2011-03-23 11:54:25 +01:00
Jos van den Oever 9fd8c6ba44 Fix Runtime so it can use native arrays in Firefox 4 and still send binary data. 2011-03-22 19:26:35 +01:00
Jos van den Oever a0c0937ee9 Remove erroneous "new". 2011-03-22 17:33:34 +01:00
Jos van den Oever 8ade963731 Fix implementation to signature for loadXML. 2011-03-16 23:34:32 +01:00
Jos van den Oever 4331dff7a0 Send binary data via an ArrayBuffer if that is available.
ArrayBuffer is part of http://www.khronos.org/registry/typedarray/specs/latest/ and http://dev.w3.org/2006/webapi/XMLHttpRequest-2/ .
This works in Chromium 10.
2011-03-01 00:28:47 +01:00
Jos van den Oever 419891095d Fix writeFile unit test in Firefox. 2011-02-28 22:00:25 +01:00
Jos van den Oever f7e162b7a1 Fix concatByteArrays so it works with native byte arrays. 2011-02-28 15:03:55 +01:00
Jos van den Oever f15261c9ff A few small JSDoc improvments. 2011-02-28 12:11:47 +01:00
Jos van den Oever b40dc50eae Fix unit tests on Rhino runtime.
Also fix closure compiler error.
2011-02-28 09:46:44 +01:00
Jos van den Oever 2e99596c52 Remove debug output. 2011-02-27 22:56:12 +01:00
Jos van den Oever b621beafed Use typed arrays for the buffers
if they are available in the browser.
2011-02-27 22:47:22 +01:00
Jos van den Oever b978a0fb40 Refactor use of byte arrays
Previously, byte arrays were implemented as string with values from 0 to 255 inclusive. Some runtimes such as Node and modern browsers have native array implementations. These should be faster.

This commit changes changes WebODF to use the native arrays. Since byte arrays differ across runtimes, they are now abstracted by the Runtime.
2011-02-27 21:46:38 +01:00
Jos van den Oever 1e04a25194 Fix runtime.js so that it can be used in qtjsruntime. 2011-02-18 16:31:36 +01:00
Jos van den Oever 175a8c4fea Add compile step to check JavaScript with JSLint and fixed errors in some files. 2011-02-14 09:40:08 +01:00
Jos van den Oever 229288c013 Switch from Makefile to CMake and from NodeJS 0.2 to 0.4.
Now CMake will retrieve and compile Node and other requirements.
2011-02-12 21:56:13 +01:00
Jos van den Oever ac19c72424 Clear cache when using nativeio. 2010-12-01 16:12:11 +01:00
Jos van den Oever 7bd8f79db7 Add exit and deleteFile functions to nativeio. 2010-12-01 12:09:56 +01:00
Jos van den Oever c1adc63df4 use nativeio for io if it is available 2010-12-01 11:14:05 +01:00
Jos van den Oever 501d35f3f8 Cache reading of files to speed up loading of zip files. 2010-11-30 13:41:11 +01:00
Jos van den Oever 10c877dff6 Shorten name for XMLHttpRequest variable from xmlHttp to xhr. 2010-11-27 23:55:59 +01:00
Jos van den Oever 067a64dcde Add test for writing of data and fix it for firefox. for other browsers this will be really hard. 2010-11-27 12:29:50 +01:00
Jos van den Oever 4fc715f7f5 If not element to log into is available, write to the console. 2010-11-25 08:48:41 +01:00
Jos van den Oever 8d51fbb009 Fix error that exited node too soon.
This was introduced in the previous commit.
2010-11-22 17:56:38 +01:00
Jos van den Oever e5ca097881 Run script code such that command-line arguments are in array "arguments" in the script. 2010-11-22 14:26:06 +01:00
Jos van den Oever 475b77c424 Only send binary when no encoding is specified. 2010-11-15 23:12:28 +01:00
Jos van den Oever bea5815788 Add support for writing binary files to a web server.
This works in current Chromium and Firefox 3.6. It does not work in Opera 10.
2010-11-15 22:42:32 +01:00
Jos van den Oever 7f32fbe561 Add very simple support for writing zip files
Zip files written are not compressed, have wrong crc and mtime set to zero.
2010-11-15 21:57:11 +01:00
Jos van den Oever 38f7449a21 Fix loading on local filesystem. 2010-11-15 12:11:58 +01:00
Jos van den Oever 678f7cfe92 Fix setTimeout function. 2010-11-11 23:26:02 +01:00
Jos van den Oever 61aec176e7 Small fixes for demo. 2010-11-10 00:36:28 +01:00
Jos van den Oever c02fa13bf9 Finish porting of WebODF canvas and demo to new runtime. 2010-11-10 00:27:07 +01:00