2018-02-14 16:49:44 +03:00
|
|
|
/**********************************************************************
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define)
|
|
|
|
|
(function(require){ var module={} // make module AMD/node compatible...
|
|
|
|
|
/*********************************************************************/
|
|
|
|
|
|
|
|
|
|
var actions = require('lib/actions')
|
|
|
|
|
var features = require('lib/features')
|
|
|
|
|
|
|
|
|
|
var core = require('features/core')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*********************************************************************/
|
2018-02-15 06:41:54 +03:00
|
|
|
// XXX TODO:
|
|
|
|
|
// - key syntax (path)
|
|
|
|
|
// <store>:<path>
|
|
|
|
|
// - path variables
|
|
|
|
|
// $VAR or ${VAR}
|
|
|
|
|
// - ability to store/load only a specific key from a specific store
|
|
|
|
|
// Q: path patterns??
|
|
|
|
|
// localstorage:* - save/load everything on localstorage
|
|
|
|
|
// *:config - save load config from all stores...
|
2018-02-14 16:49:44 +03:00
|
|
|
|
|
|
|
|
// XXX should we unify this with the save/load API
|
|
|
|
|
var StoreActions = actions.Actions({
|
|
|
|
|
config: {
|
|
|
|
|
// Storage mode...
|
|
|
|
|
//
|
|
|
|
|
// This can be:
|
|
|
|
|
// 'read-only'
|
|
|
|
|
// 'read-write'
|
|
|
|
|
// null - ignore store
|
|
|
|
|
//
|
|
|
|
|
// NOTE: this only affects start/stop/timer event handling, manual
|
|
|
|
|
// call to .loadData(..) / .saveData(..) are not affected...
|
|
|
|
|
'store-mode': 'read-write',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Store handler dict...
|
|
|
|
|
//
|
|
|
|
|
// Format:
|
|
|
|
|
// {
|
|
|
|
|
// <store-tag>: <handler-action>,
|
|
|
|
|
// ...
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// XXX this is almost the same as .collection_handlers...
|
2018-02-18 00:57:28 +03:00
|
|
|
get stores(){
|
|
|
|
|
return this.cache('stores', function(d){
|
2018-02-14 16:49:44 +03:00
|
|
|
var res = {}
|
|
|
|
|
|
|
|
|
|
this.actions.forEach(function(action){
|
|
|
|
|
var store = this.getActionAttr(action, 'handle_data_store')
|
|
|
|
|
res[store]
|
|
|
|
|
&& console.warn('Multiple handlers for store:', store)
|
|
|
|
|
if(store){
|
|
|
|
|
res[store] = action
|
|
|
|
|
}
|
|
|
|
|
}.bind(this))
|
|
|
|
|
|
|
|
|
|
return res
|
|
|
|
|
}) },
|
2018-02-18 00:57:28 +03:00
|
|
|
// XXX need store client list (???)
|
|
|
|
|
//get store_clients(){ return [] },
|
2018-02-14 16:49:44 +03:00
|
|
|
|
|
|
|
|
// events...
|
|
|
|
|
storeDataLoaded: ['- Store/',
|
|
|
|
|
core.doc`Store data loaded event...
|
|
|
|
|
|
|
|
|
|
This is tirggered as soon per store as soon as data is loaded,
|
|
|
|
|
this is sync for sync stores.
|
|
|
|
|
|
|
|
|
|
NOTE: only one store data set is included per call.`,
|
|
|
|
|
core.Event(function(data){
|
|
|
|
|
// Store data loaded event...
|
|
|
|
|
//
|
|
|
|
|
// Not intended for direct use, use .declareReady() to initiate.
|
|
|
|
|
return data
|
|
|
|
|
})],
|
|
|
|
|
|
2018-02-18 00:57:28 +03:00
|
|
|
|
|
|
|
|
// XXX do we need to parse date here???
|
|
|
|
|
parseStoreQuery: ['- Store/',
|
|
|
|
|
core.doc`
|
|
|
|
|
|
|
|
|
|
Query syntax:
|
|
|
|
|
<event>:<store>:<key>
|
|
|
|
|
<store>:<key>
|
|
|
|
|
<store>
|
|
|
|
|
<key>
|
|
|
|
|
|
|
|
|
|
Format:
|
|
|
|
|
{
|
|
|
|
|
query: <input-query>,
|
|
|
|
|
date: <timestamp>,
|
|
|
|
|
event: 'manual' | <event>,
|
|
|
|
|
store: '*' | <store> | [<store>, ...]
|
|
|
|
|
key: '*' | <key> | [<key>, ...]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
`,
|
|
|
|
|
function(query, date){
|
|
|
|
|
var defaults = {
|
|
|
|
|
date: date || Date.timeStamp(),
|
|
|
|
|
event: 'manual',
|
|
|
|
|
store: '*',
|
|
|
|
|
key: '*',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// parse string...
|
|
|
|
|
if(typeof(query) == typeof('str')){
|
|
|
|
|
var res = {}
|
|
|
|
|
res.query = query
|
|
|
|
|
|
|
|
|
|
query = query.split(/:/g)
|
|
|
|
|
|
|
|
|
|
res.event = query.length > 2 ?
|
|
|
|
|
query.shift()
|
|
|
|
|
: defaults.event
|
|
|
|
|
res.store = (this.stores[query[0]] || query.length > 1) ?
|
|
|
|
|
query.shift().split(/\|/g)
|
|
|
|
|
: defaults.store
|
|
|
|
|
res.key = query.length > 0 ?
|
|
|
|
|
query.pop().split(/\|/g)
|
|
|
|
|
: defaults.key
|
|
|
|
|
res.date = date || defaults.date
|
|
|
|
|
|
|
|
|
|
return res
|
|
|
|
|
|
|
|
|
|
// get the defaults...
|
|
|
|
|
} else if(query == null){
|
|
|
|
|
return defaults
|
|
|
|
|
|
|
|
|
|
// pass on the input...
|
|
|
|
|
} else {
|
|
|
|
|
if(date){
|
|
|
|
|
query.date = date
|
|
|
|
|
}
|
|
|
|
|
return query
|
|
|
|
|
}
|
|
|
|
|
}],
|
|
|
|
|
|
2018-02-14 16:49:44 +03:00
|
|
|
// base API...
|
2018-02-17 04:41:07 +03:00
|
|
|
// XXX we need to be able to save/load specific part of the data...
|
|
|
|
|
// ...i.e. query by store and/or key...
|
|
|
|
|
// the syntax could be:
|
|
|
|
|
// <store>:<path>
|
2018-02-18 00:57:28 +03:00
|
|
|
// <store>:<event>:<path>
|
2018-02-17 04:41:07 +03:00
|
|
|
//
|
|
|
|
|
// Example:
|
|
|
|
|
// 'localstorage:config' - save config to localStorage
|
|
|
|
|
// 'localstorage:*' - save all to localstorage
|
|
|
|
|
// '*:config' - save config to all supported stores
|
|
|
|
|
// '*:*' - save everything
|
|
|
|
|
//
|
|
|
|
|
// ...this must be supported by .prepareStoreToSave(..)
|
2018-02-14 16:49:44 +03:00
|
|
|
prepareStoreToSave: ['- Store/',
|
|
|
|
|
core.doc`
|
|
|
|
|
|
|
|
|
|
Format:
|
|
|
|
|
{
|
|
|
|
|
// metadata...
|
|
|
|
|
mode: <mode>,
|
|
|
|
|
data: <timestamp>,
|
|
|
|
|
|
|
|
|
|
// the actual data...
|
2018-02-18 00:57:28 +03:00
|
|
|
data: {
|
|
|
|
|
<data-type>: {
|
2018-02-14 16:49:44 +03:00
|
|
|
<data-key>: <data>,
|
|
|
|
|
...
|
|
|
|
|
},
|
|
|
|
|
...
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
`,
|
2018-02-18 00:57:28 +03:00
|
|
|
function(query, data){
|
|
|
|
|
var defaults = this.parseStoreQuery()
|
|
|
|
|
query = this.parseStoreQuery(query)
|
|
|
|
|
var stores = query.store || defaults.store
|
|
|
|
|
|
2018-02-14 16:49:44 +03:00
|
|
|
// populate the store...
|
2018-02-18 00:57:28 +03:00
|
|
|
data = data || {}
|
|
|
|
|
Object.keys(this.stores)
|
|
|
|
|
// only populate the requested handlers...
|
|
|
|
|
.filter(function(store){
|
|
|
|
|
return (stores == '*'
|
|
|
|
|
|| stores == 'all')
|
|
|
|
|
|| stores == store
|
|
|
|
|
|| stores.indexOf(store) >= 0 })
|
|
|
|
|
.forEach(function(key){ data[key] = {} })
|
|
|
|
|
|
2018-02-14 16:49:44 +03:00
|
|
|
return {
|
2018-02-18 00:57:28 +03:00
|
|
|
date: query.date || Date.timeStamp(),
|
2018-02-14 16:49:44 +03:00
|
|
|
|
2018-02-18 00:57:28 +03:00
|
|
|
event: query.event || defaults.event,
|
|
|
|
|
key: query.key || defaults.key,
|
|
|
|
|
|
|
|
|
|
data: data,
|
2018-02-14 16:49:44 +03:00
|
|
|
}
|
|
|
|
|
}],
|
2018-02-18 00:57:28 +03:00
|
|
|
// XXX use query???
|
2018-02-14 16:49:44 +03:00
|
|
|
prepareStoreToLoad: ['- Store/',
|
|
|
|
|
core.doc`
|
|
|
|
|
|
|
|
|
|
NOTE: this can be called multiple times, once per each store.
|
|
|
|
|
NOTE: only one store data set is included per call.`,
|
|
|
|
|
function(data){ return data || {} }],
|
2018-02-18 00:57:28 +03:00
|
|
|
// XXX this is different from .prepareIndexForWrite(..) in that there
|
|
|
|
|
// is no default data set...
|
2018-02-14 16:49:44 +03:00
|
|
|
// XXX async???
|
|
|
|
|
saveData: ['- Store/',
|
2018-02-18 00:57:28 +03:00
|
|
|
// XXX signature not final...
|
|
|
|
|
function(query, data){
|
|
|
|
|
var handlers = this.stores
|
|
|
|
|
|
|
|
|
|
// save the given data...
|
|
|
|
|
// NOTE: we are not calling .prepareStoreToSave(..) here, thus
|
|
|
|
|
// we need not care about .key, .date, and other stuff...
|
|
|
|
|
if(data){
|
|
|
|
|
var defaults = this.parseStoreQuery()
|
|
|
|
|
query = this.parseStoreQuery(query)
|
|
|
|
|
|
|
|
|
|
if(query.store == defaults.store || query.key == defaults.key){
|
|
|
|
|
console.error('saveData: at least "store" and "key" '
|
|
|
|
|
+'must be explicitly set in query...')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var d = {
|
|
|
|
|
data: {}
|
|
|
|
|
}
|
|
|
|
|
var stores = query.store == '*' ? handlers : query.store
|
|
|
|
|
stores = stores instanceof Array ? stores : [stores]
|
|
|
|
|
stores.forEach(function(s){
|
|
|
|
|
d.data[s] = {
|
|
|
|
|
[query.key]: data,
|
|
|
|
|
} })
|
|
|
|
|
|
|
|
|
|
data = d
|
|
|
|
|
|
|
|
|
|
// build the data...
|
|
|
|
|
} else {
|
|
|
|
|
data = this.prepareStoreToSave(query)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// iterate and handle stores...
|
|
|
|
|
Object.keys(data.data).forEach(function(store){
|
2018-02-14 16:49:44 +03:00
|
|
|
var handler = handlers[store]
|
|
|
|
|
handler
|
2018-02-18 00:57:28 +03:00
|
|
|
&& this[handler].call(this, data.data[store])
|
2018-02-14 16:49:44 +03:00
|
|
|
}.bind(this))
|
|
|
|
|
}],
|
2018-02-18 00:57:28 +03:00
|
|
|
// XXX add query support... (???)
|
|
|
|
|
// ...we can't support keys other than '*' until we register
|
|
|
|
|
// store keys...
|
2018-02-14 16:49:44 +03:00
|
|
|
loadData: ['- Store/',
|
2018-02-18 00:57:28 +03:00
|
|
|
function(query){
|
|
|
|
|
var handlers = this.stores
|
|
|
|
|
|
|
|
|
|
var defaults = this.parseStoreQuery()
|
|
|
|
|
query = this.parseStoreQuery(query)
|
|
|
|
|
|
|
|
|
|
query.store = query.store == defaults.store ? Object.keys(handlers) : query.store
|
|
|
|
|
query.store = query.store instanceof Array ? query.store : [query.store]
|
|
|
|
|
|
|
|
|
|
// XXX need to filter loading by query.key...
|
2018-02-14 16:49:44 +03:00
|
|
|
var data = {}
|
|
|
|
|
return Promise
|
2018-02-18 00:57:28 +03:00
|
|
|
.all(query.store
|
2018-02-14 16:49:44 +03:00
|
|
|
.map(function(s){
|
|
|
|
|
var res = this[handlers[s]]()
|
|
|
|
|
return res instanceof Promise ?
|
|
|
|
|
// async store...
|
|
|
|
|
res.then(function(d){ d
|
|
|
|
|
&& (data[s] = d)
|
|
|
|
|
&& this.storeDataLoaded(
|
|
|
|
|
this.prepareStoreToLoad({[s]: d})) }.bind(this))
|
|
|
|
|
// sync store...
|
|
|
|
|
: (res
|
|
|
|
|
&& (data[s] = res)
|
|
|
|
|
&& this.storeDataLoaded(
|
|
|
|
|
this.prepareStoreToLoad({[s]: res})))
|
|
|
|
|
}.bind(this)))
|
|
|
|
|
.then(function(){ return data })}],
|
|
|
|
|
// XXX do we need to do a partial clear???
|
|
|
|
|
clearData: ['- Store/',
|
|
|
|
|
function(target){
|
2018-02-18 00:57:28 +03:00
|
|
|
var handlers = this.stores
|
2018-02-14 16:49:44 +03:00
|
|
|
|
|
|
|
|
Object.keys(handlers).forEach(function(store){
|
|
|
|
|
var handler = handlers[store]
|
|
|
|
|
handler
|
|
|
|
|
&& this[handler].call(this, null)
|
|
|
|
|
}.bind(this))
|
|
|
|
|
}],
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
var Store =
|
|
|
|
|
module.Store = core.ImageGridFeatures.Feature({
|
|
|
|
|
title: '',
|
|
|
|
|
doc: '',
|
|
|
|
|
|
|
|
|
|
tag: 'store',
|
|
|
|
|
depends: [
|
|
|
|
|
'cache',
|
|
|
|
|
],
|
|
|
|
|
suggested: [
|
|
|
|
|
'store-localstorage',
|
|
|
|
|
],
|
|
|
|
|
isApplicable: function(){ return typeof(localStorage) != 'undefined' },
|
|
|
|
|
|
|
|
|
|
actions: StoreActions,
|
|
|
|
|
|
|
|
|
|
handlers: [
|
|
|
|
|
['start.pre',
|
|
|
|
|
function(){
|
|
|
|
|
if(this.config['store-mode'] != null){
|
|
|
|
|
this.requestReadyAnnounce()
|
|
|
|
|
this
|
|
|
|
|
.loadData()
|
|
|
|
|
.then(function(){
|
|
|
|
|
this.declareReady() }.bind(this))
|
|
|
|
|
} }],
|
|
|
|
|
['stop',
|
|
|
|
|
function(){
|
|
|
|
|
this.config['store-mode'] == 'read-write' && this.saveData() }],
|
|
|
|
|
// XXX timer???
|
|
|
|
|
// XXX
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
2018-02-15 06:41:54 +03:00
|
|
|
|
2018-02-14 16:49:44 +03:00
|
|
|
//---------------------------------------------------------------------
|
|
|
|
|
|
2018-02-18 00:57:28 +03:00
|
|
|
// NOTE: the doc is reused for both localStorage and sessionStorage with
|
|
|
|
|
// appropriate automated changes...
|
|
|
|
|
var __storageHandler_doc =
|
|
|
|
|
core.doc`Handle localStorage store data...
|
|
|
|
|
|
|
|
|
|
Get localStorage data...
|
|
|
|
|
.localStorageDataHandler()
|
|
|
|
|
-> data
|
|
|
|
|
|
|
|
|
|
Save data set to localStorage...
|
|
|
|
|
.localStorageDataHandler(data)
|
|
|
|
|
-> this
|
|
|
|
|
|
|
|
|
|
Save data to key in localStorage...
|
|
|
|
|
.localStorageDataHandler(data, key)
|
|
|
|
|
-> this
|
|
|
|
|
|
|
|
|
|
Delete all data from localStorage...
|
|
|
|
|
.localStorageDataHandler(null)
|
|
|
|
|
-> this
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NOTE: load resolves to the same keys as were passed to load, while
|
|
|
|
|
localStorage stores the expanded keys...
|
|
|
|
|
'/$\{ROOT_PATH}/path'
|
|
|
|
|
--(store)--> this.config['store-root-key'] +'/path'
|
|
|
|
|
--(load)--> '/$\{ROOT_PATH}/path'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Root keys of data partially support path syntax:
|
|
|
|
|
'/key' or '../key'
|
|
|
|
|
stored in localStorage[key]
|
|
|
|
|
'./key' or 'key'
|
|
|
|
|
stored as-is in localStorage[this.config['store-root-key']]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Path variables:
|
|
|
|
|
$\{ROOT_PATH} - resolves to .config['store-root-key']
|
|
|
|
|
NOTE: './key' and $\{ROOT_PATH}/key are
|
|
|
|
|
not the same, the former will be stored in:
|
|
|
|
|
localStorage[this.config['store-root-key']][key]
|
|
|
|
|
while the later is stored in:
|
|
|
|
|
localStorage[this.config['store-root-key/' + key]
|
|
|
|
|
XXX not yet sure this is the right way to go...
|
|
|
|
|
|
|
|
|
|
HOTE: other path syntax is ignored and the key will be saved as-is.
|
|
|
|
|
`
|
2018-02-15 06:41:54 +03:00
|
|
|
function makeStorageHandler(storage){
|
2018-02-17 04:41:07 +03:00
|
|
|
var func = function(data, key){
|
2018-02-15 06:41:54 +03:00
|
|
|
storage = typeof(storage) == typeof('str') ? window[storage] : storage
|
|
|
|
|
|
|
|
|
|
var root_pattern = /^(\.\.)?[\\\/]/
|
|
|
|
|
var root = this.config['store-root-key']
|
|
|
|
|
|
|
|
|
|
var resolvePath = function(p){
|
|
|
|
|
return p
|
|
|
|
|
.replace('${ROOT_PATH}', root)
|
|
|
|
|
.replace(root_pattern, '') }
|
|
|
|
|
|
|
|
|
|
// clear...
|
|
|
|
|
if(data === null){
|
|
|
|
|
var d = storage[root]
|
|
|
|
|
d = d != undefined ? JSON.parse(d) : {}
|
|
|
|
|
;(d.__root_paths__ || [])
|
|
|
|
|
.forEach(function(p){
|
|
|
|
|
var key = resolvePath(p)
|
|
|
|
|
delete storage[key] })
|
|
|
|
|
delete storage[root]
|
|
|
|
|
|
|
|
|
|
// set...
|
|
|
|
|
} else if(data){
|
2018-02-17 04:41:07 +03:00
|
|
|
if(key){
|
|
|
|
|
data = { key: data }
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-15 06:41:54 +03:00
|
|
|
var root_data = {}
|
|
|
|
|
var root_paths = []
|
|
|
|
|
|
|
|
|
|
// handle root paths...
|
|
|
|
|
Object.keys(data)
|
|
|
|
|
.forEach(function(p){
|
|
|
|
|
if(root_pattern.test(p)){
|
|
|
|
|
var key = resolvePath(p)
|
|
|
|
|
root_paths.push(p)
|
|
|
|
|
root_data[key] = JSON.stringify(data[p])
|
|
|
|
|
delete data[p]
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
data.__root_paths__ = root_paths
|
|
|
|
|
|
|
|
|
|
storage[root] = JSON.stringify(data)
|
|
|
|
|
|
|
|
|
|
// store root stuff...
|
|
|
|
|
Object.assign(storage, root_data)
|
|
|
|
|
|
|
|
|
|
// get...
|
|
|
|
|
} else {
|
|
|
|
|
var d = storage[root]
|
|
|
|
|
d = d != undefined ? JSON.parse(d) : {}
|
|
|
|
|
|
|
|
|
|
// load root paths...
|
|
|
|
|
;(d.__root_paths__ || [])
|
|
|
|
|
.forEach(function(p){
|
|
|
|
|
var key = resolvePath(p)
|
|
|
|
|
var o = storage[key]
|
|
|
|
|
o = o != undefined ? JSON.parse(o) : o
|
|
|
|
|
|
|
|
|
|
d[p] = o
|
|
|
|
|
})
|
|
|
|
|
delete d.__root_paths__
|
|
|
|
|
|
|
|
|
|
return d
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(typeof(storage) == typeof('str')){
|
2018-02-18 00:57:28 +03:00
|
|
|
func.long_doc = __storageHandler_doc.replace(/localStorage/g, storage)
|
2018-02-15 06:41:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return func
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
|
|
2018-02-14 16:49:44 +03:00
|
|
|
// XXX we should have a separate store config with settings of how to
|
|
|
|
|
// load the store... (???)
|
|
|
|
|
var StoreLocalStorageActions = actions.Actions({
|
|
|
|
|
config: {
|
|
|
|
|
'store-root-key': 'ImageGrid.Viewer.main',
|
|
|
|
|
},
|
|
|
|
|
|
2018-02-18 00:57:28 +03:00
|
|
|
// NOTE: for docs see __storageHandler_doc...
|
2018-02-14 16:49:44 +03:00
|
|
|
localStorageDataHandler: ['- Store/',
|
|
|
|
|
{handle_data_store: 'localStorage',},
|
2018-02-15 06:41:54 +03:00
|
|
|
makeStorageHandler('localStorage')],
|
2018-02-14 16:49:44 +03:00
|
|
|
sessionStorageDataHandler: ['- Store/',
|
|
|
|
|
{handle_data_store: 'sessionStorage',},
|
2018-02-15 06:41:54 +03:00
|
|
|
makeStorageHandler('sessionStorage')],
|
2018-02-14 16:49:44 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
var StoreLocalStorage =
|
|
|
|
|
module.StoreLocalStorage = core.ImageGridFeatures.Feature({
|
|
|
|
|
title: '',
|
|
|
|
|
doc: '',
|
|
|
|
|
|
|
|
|
|
tag: 'store-localstorage',
|
|
|
|
|
depends: [
|
|
|
|
|
'store',
|
|
|
|
|
],
|
|
|
|
|
isApplicable: function(){
|
|
|
|
|
return typeof(localStorage) != 'undefined'
|
|
|
|
|
&& typeof(sessionStorage) != 'undefined' },
|
|
|
|
|
|
|
|
|
|
actions: StoreLocalStorageActions,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
2018-02-15 06:41:54 +03:00
|
|
|
|
2018-02-14 16:49:44 +03:00
|
|
|
//---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
// XXX StoreFSJSONSync
|
|
|
|
|
// Lookup order:
|
|
|
|
|
// - app dir
|
|
|
|
|
// - $HOME
|
|
|
|
|
|
|
|
|
|
|
2018-02-15 06:41:54 +03:00
|
|
|
|
2018-02-14 16:49:44 +03:00
|
|
|
//---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
// XXX StoreFSJSON
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
|
* vim:set ts=4 sw=4 : */ return module })
|