summaryrefslogtreecommitdiff
path: root/src/client
AgeCommit message (Collapse)Author
2015-02-24attach d3 to #graph-view__canvas html div hookLV-426
2015-02-24client/textanalysis: drop star case. Fixes #330Alon Levy
This fixes the "remove chainlink" (aka star case) part of #330. The rest of #330, i.e. supporting "#1 is #2 not #3" to create two links, now with double spaces, is already fixed by textanalysis refactoring.
2015-02-24client/textanalysis: more accurate comments, s/edge/verb/Alon Levy
2015-02-24client: set double spaces as separator instead of hashAlon Levy
2015-02-24client/textanalysis: fix double spaceAlon Levy
handle correctly node separator containing spaces, of which a double space is a special case.
2015-02-24client/textanalysis: fix empty string caseAlon Levy
2015-02-24client/textanalysis rewriteAlon Levy
I considered breaking this into multiple parts but it is too much work and not worth it at this point. Logically there are two parts: a bunch of support functions, most of them are generic (list_* and obj_*, subsets) plus a few special functions: tokens_to_graph_elements and groups_to_thirds "thirds" is a list of objects representing either a node or a link with start, end and token. The token is the node/link name, the start and end are used to later lookup the node based on cursor position (for type changing from the command line). groups is just an intermediate step where each individual token (space separates them, except when in quotes) is still a separate entry in the list. The logic of textanalysis remains: - prefix (text before the first node) means the first link is the complete sentence - starCase ramains (creating a single center node of the complete sentence and linking everything to it with the 'chained' link name) - and logic is updated to include multiple and sequences (the simple case remains for a single stretch of ands). Simplifications of the code: - single place calls for __addNode and __addLink - no more orderStack, instead we have a thirds array of node,link pairs flattened to a single list, each with start/end in the sentence (this takes into account the hash mark).
2015-02-24client/textanalysis: add new node_token module global variable and use in ↵Alon Levy
tokenize
2015-02-24jshint: client/textanalysis: remove dead code (we create suggestions from ↵Alon Levy
scratch on every update)
2015-02-24jshint: client/textanalysis: various lint fixesAlon Levy
2015-02-24jshint: client/textanalysis: move use strict to function to avoid stricting ↵Alon Levy
everything
2015-02-23client/textanalysis: code style for and_connectAlon Levy
2015-02-23client/textanalysis: s/token_set_new_node_names/node_names/ (and _links)Alon Levy
2015-02-23pw-reset: client side codeLV-426
2015-02-23util.js: input_validation__password()LV-426
2015-02-23util.js: form_common__rest_post()LV-426
2015-02-23user_signup.html: removing triple underscoringLV-426
2015-02-22client: fix broken completerAlon Levy
2015-02-18client/completer: wip handle multiple delimiters for search (| and space)Alon Levy
2015-02-17client/server: support optimizing with require.js using node run r.jsAlon Levy
built is controlled by property do-client-optimize which defaults to false. Even if the optimized main is built (single file main-built.js and source map file main-built.js.map) they are not used unless rhizi-config.conf client_optimize is set to True which causes app.js to use main-built.js and not main.js The resulting file is 687 KiloBytes large. Pretty scary, but it still loads faster this way. (from very small tests locally). This is without compression done by the server.
2015-02-17client: adding r.js build fileAlon Levy
2015-02-17client: expand textanalyser input up to 80%. Fixes #239Alon Levy
drops animation of width because I couldn't get the plus button to animate the same.
2015-02-17client/view/node_info: listen on input event too (available in newer / ↵Alon Levy
specific browsers)
2015-02-17client/textanalysis.ui: move main to it's own top level functionAlon Levy
2015-02-17client/main: possible bug fix seen on LightTable/webkit - not criticalAlon Levy
2015-02-16client/graph/merge: re-instate confirm dialog for rename-to-mergeAlon Levy
2015-02-15client/node_info: remove save button, listen to keyup as well, debounce for ↵Alon Levy
half a second. Fixes #43
2015-02-15client/node_info: track changes and commit on any field change. partially ↵Alon Levy
Fixes #43
2015-02-15client: make shift+click be selection augmentation for better pc/mac ↵Alon Levy
compatibility, instead of ctrl+click
2015-02-15client/node_info: wip getting automatic save, some fixesAlon Levy
2015-02-15client/node_info: show message on delete/change of open dialog underlying ↵Alon Levy
node (informational only)
2015-02-15{client/rz_mesh: make commit_diff__topo input a TopoDiff, relied on by ↵Alon Levy
various diffBus listeners
2015-02-15client: node_info cleanup: still missing edge cases (edits/deletes while open)Alon Levy
2015-02-15client/model: update_node can now do merge. Fixes #226Alon Levy
2015-02-15client/view/selection: try to avoid asEventStream not being defined (doesn't ↵Alon Levy
work)
2015-02-15client: node merge: don't add self referencial linksAlon Levy
2015-02-15client: search selection: follow same path as mouse selection (can now be ↵Alon Levy
used for merge)
2015-02-15client: implement merge of nodesAlon Levy
2015-02-15client: add merge button, does nothing, enabled for two or more selected nodesAlon Levy
2015-02-15add underscore, implement ctrl-click to append to selectionAlon Levy
2015-02-15client/node_edit: show start/end dateAlon Levy
2015-02-15client/url clean: fix to allow empty urlsAlon Levy
2015-02-15client: force schema in url's, allow any, add https if none. Fixes #296Alon Levy
2015-02-11client/node_info: resize description on show, limit both name & desc to 150Alon Levy
we don't allow moving nor scrolling when property dialog overflows window height, so this is an interim measure at best.
2015-02-11client/node_info: show title completely on init; doesn't automatically ↵Alon Levy
resize; fixes #309
2015-02-11client/view/completer: hide on click outside. this is complex! fixes #200Alon Levy
specifically: 1. take care to remove handler on any hide condition, not click as well 2. previous patch to avoid needlessly hiding completer on showing it after clicking (we could change that behaviour but not as a unexpected consequence).
2015-02-11client/textanalysis: on input element click stop handling after completer ↵Alon Levy
handler
2015-02-11client/textanalysis.ui: coding style fix onelinerAlon Levy
2015-02-11client/textanalysis.ui: set typeselection position at node, fixes #261Alon Levy
Note that the selection doesn't move with the node, so it is possible to create a discrepancy, this can happen either when: 1. dragging or zooming the graph 2. causing the bubble animation to playout The selection text will not be next to the node in both cases until Tab is pressed again. Fixing this right now seems too much work, will revisit if this is really bothersome. Would require either timers or another connection, or different implementation as a foreign object under the svg node (and so tied by the layout, no need to change).
2015-02-11client/textanalysis.ui: add helper for body location of SVG nodeAlon Levy