summaryrefslogtreecommitdiff
path: root/scripts/textanalysis-ui.js
AgeCommit message (Collapse)Author
2014-10-20introduce require.js and rewrite testsAlon Levy
Yes, I'm being lazy. The purpose of require.js is to allow writing modules, i.e. individual smaller then the whole files with clear dependencies. This is achieved by using a new api provided by require.js: define, require, requirejs Read more at [requirejs] (http://requirejs.org) Tests have been rewritten to work correctly with require.js; they still use jsdom. Test output is now stored in the repository, all tests are run via run_tests.js; This is a hack - once a good harness (with assertions, suites - unittest like) presents itself it will be used. Hidden here is also using FileSaver for history saving, so history is saved to history.json instead to a random name. Plus dropping some dead code.
2014-10-12#63 don't start force simulation when no topological change doneAlon Levy
2014-09-28textanalysis: move graph touching function to non ui partAlon Levy
2014-09-28textanalysis-ui: lookup textanalyser a single timeAlon Levy
2014-09-28textanalysis-ui: protect #textanalyser access for easier node.js usage for ↵Alon Levy
testing
2014-09-28s/TextAnalyser2/textAnalyser2/ plus use function as varsAlon Levy
2014-09-23textanalysis-ui: a little cleanupAlon Levy
according to my yet unwritten coding conventions: 1. no single line blocks 2. no empty lines without a good reason
2014-09-21textanalysis-ui: Fixes #42 - remove helper text when sentence is edited then ↵Alon Levy
deleted
2014-09-21Fixes #41: conjugation/connector only sentences keep their linksAlon Levy
2014-09-21textanalysis: multiple changes to autocompleteAlon Levy
1. move the sugg variable to textanalysis.js instead of the ui part 2. use a callback for the autocomplete widget (it supports three options: array, string as url for a json returning service, or callback) 3. use a dictionary instead of an array to keep the list of suggestions. We iterate on the dictionary instead of using a Trie or some other datastructure in the callback. But the dictionary avoids iteration when adding a word. Overall a loss in performance, but not noticeable. Googling / memory suggests a Trie is what we want here, but I'm postponing that for later. See: http://ejohn.org/blog/javascript-trie-performance-analysis
2014-09-21textanalysis-ui: add note about 200 Hz text analysis being perhaps overzealousAlon Levy
2014-09-21textanalysis-ui: spaces before and after assignment and opening curliesAlon Levy
2014-09-12textanalysis-ui: use value and not keyAlon Levy
Fixes #58
2014-08-20textanalysis & textanalysis-ui split completeAlon Levy
2014-08-19textanalysis: remove usage of $Alon Levy
2014-08-19start breaking textanalysis to logic and uiAlon Levy