Moved SiteFiles.files to SFObjects

This commit is contained in:
斟酌 鵬兄 2019-04-02 00:52:14 +08:00
parent 6f326d5b80
commit 9ac3479008
4 changed files with 14 additions and 12 deletions

View File

@ -29,10 +29,9 @@
var postData = __import( "System.Net.postData" );
var prettyDate = __import( "Astro.utils.Date.pretty" );
var SiteLibrary = function ( basePath, processorGet, processorSet ) {
var
view_index = []
var SiteLibrary = function ( basePath, processorGet, processorSet )
{
var view_index = []
, currentView
, inCollection = 0
, indexingItem

View File

@ -86,9 +86,10 @@
config = Conf.get( "SiteFile" );
if( config )
{
for( var i in config.files )
var SFOs = Conf.get( "SFObjects" );
for( var i in SFOs )
{
var f = config.files[i];
var f = SFOs[i];
new Album( f[0], f[1] );
}
}

View File

@ -61,9 +61,10 @@
throw new Error( obj );
};
for( var i in config.files )
var SFOs = Conf.get( "SFObjects" );
for( var i in SFOs )
{
var f = config.files[i];
var f = SFOs[i];
var id = f[0];
if( id == bId )
{

View File

@ -45,8 +45,8 @@
/** @type {_AstJson_.SiteFile} */
var finfo = JSON.parse( obj ).file;
switch( finfo.type ) {
switch( finfo.type )
{
case "image":
var node = Dand.wrap('img');
var k = new IKey( "src", null );
@ -151,9 +151,10 @@
config = Conf.get( "SiteFile" );
if( config )
{
for( var i in config.files )
var SFOs = Conf.get( "SFObjects" );
for( var i in SFOs )
{
var f = config.files[i];
var f = SFOs[i];
new SiteFile( f[0], f[1] );
}
}