From 9d02a2d15ff62fe95a528b19f99dfa36737d8a90 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 2 Jun 2016 00:01:38 +0300 Subject: [PATCH] started work on persistent tags... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/tags.js | 81 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100755 ui (gen4)/features/tags.js diff --git a/ui (gen4)/features/tags.js b/ui (gen4)/features/tags.js new file mode 100755 index 00000000..e8025c86 --- /dev/null +++ b/ui (gen4)/features/tags.js @@ -0,0 +1,81 @@ +/********************************************************************** +* +* +* +**********************************************************************/ + +define(function(require){ var module = {} + +//var DEBUG = DEBUG != null ? DEBUG : true + +var actions = require('lib/actions') +var features = require('lib/features') + +var core = require('features/core') + + + +/*********************************************************************/ +// Persistent tags (tree) +// +// XXX add save/load tree to fs... + +var PersistentTagsActions = actions.Actions({ +}) + + +var PersistentTags = +module.PersistentTags = core.ImageGridFeatures.Feature({ + title: '', + doc: '', + + tag: 'persistent-tags', + depends: [ + // XXX + ], + + actions: TagCloudActions, + + handlers: [], +}) + + + +//--------------------------------------------------------------------- +// Persistent tags UI... +// +// Provide the following interfaces: +// - cloud +// - tree +// +// Use-cases: +// - edit tag tree +// - edit image tags +// + +var TagUIActions = actions.Actions({ +}) + + +var TagUI = +module.TagUI = core.ImageGridFeatures.Feature({ + title: '', + doc: '', + + // XXX + tag: 'ui-tag', + depends: [ + // XXX + ], + + actions: TagUIActions, + + handlers: [], +}) + + + + +/********************************************************************** +* vim:set ts=4 sw=4 : */ +return module })