mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
started work on persistent tags...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
60d10fbfe4
commit
9d02a2d15f
81
ui (gen4)/features/tags.js
Executable file
81
ui (gen4)/features/tags.js
Executable 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 })
|
||||
Loading…
x
Reference in New Issue
Block a user