forked from Botanical/BotanJS
Generalize tags to flags
This commit is contained in:
@@ -13,8 +13,8 @@
|
||||
var Article = __import( "Astro.Blog.AstroEdit.Article" );
|
||||
/** @type {Astro.Blog.AstroEdit.Draft} */
|
||||
var Draft = __import( "Astro.Blog.AstroEdit.Draft" );
|
||||
/** @type {Astro.Blog.AstroEdit.Tag} */
|
||||
var Tag = __import( "Astro.Blog.AstroEdit.Tag" );
|
||||
/** @type {Astro.Blog.AstroEdit.Flag} */
|
||||
var Flag = __import( "Astro.Blog.AstroEdit.Flag" );
|
||||
/** @type {Astro.Blog.AstroEdit.Visualizer} */
|
||||
var Visualizer = __import( "Astro.Blog.AstroEdit.Visualizer" );
|
||||
/** @type {Astro.Blog.AstroEdit.Uploader} */
|
||||
@@ -44,11 +44,16 @@
|
||||
}
|
||||
);
|
||||
|
||||
article = new Article( a_conf.paths.set_article );
|
||||
article = new Article(
|
||||
a_conf.paths.set_article
|
||||
, [
|
||||
new Flag( "tags", "ae_tags", a_conf.paths.tags )
|
||||
, new Flag( "section", "ae_secs", a_conf.paths.sections )
|
||||
]
|
||||
);
|
||||
|
||||
// Article modules
|
||||
new Draft( article, a_conf.paths.get_drafts );
|
||||
new Tag( article, a_conf.paths.tag_count );
|
||||
new Visualizer(
|
||||
article
|
||||
, Dand.id( "ae_visual_snippets" )
|
||||
|
||||
Reference in New Issue
Block a user