started work on persistent tags...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-06-02 00:01:38 +03:00
parent 60d10fbfe4
commit 9d02a2d15f

81
ui (gen4)/features/tags.js Executable file
View File

@ -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 })