Astro Classes

This commit is contained in:
2015-08-14 21:06:23 +08:00
parent d3f924adf3
commit 0a25f87965
157 changed files with 11676 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
/** @constructor */
Astro.Blog.AstroEdit.Article = function(){};
/** @type {Function} */
Astro.Blog.AstroEdit.Article.saveOrBackup;
/** @type {Function} */
Astro.Blog.AstroEdit.Article.load;
/** @type {Function} */
Astro.Blog.AstroEdit.Article.getArticleId;
/** @type {Function} */
Astro.Blog.AstroEdit.Article.preview;
/** @type {Function} */
Astro.Blog.AstroEdit.Article.invoke;
/** @type {Function} */
Astro.Blog.AstroEdit.Article.saveAndPublish;
/** @type {Function} */
Astro.Blog.AstroEdit.Article.drop;
/** @type {Function} */
Astro.Blog.AstroEdit.Article.updateContent;

View File

@@ -0,0 +1,6 @@
/** @constructor */
Astro.Blog.AstroEdit.Tag = function(){};
/** @type {Function} */
Astro.Blog.AstroEdit.Tag.getTags;
/** @type {Function} */
Astro.Blog.AstroEdit.Tag.setTags;

View File

@@ -0,0 +1,6 @@
/** @constructor */
Astro.Blog.AstroEdit.Visualizer.Snippet.Model = function(){};
/** @type {Function} */
Astro.Blog.AstroEdit.Visualizer.Snippet.Model.compile;
/** @type {Object} */
Astro.Blog.AstroEdit.Visualizer.Snippet.Model.alias;

View File

@@ -0,0 +1,6 @@
/** @constructor */
Astro.Blog.AstroEdit.Visualizer.Snippet = function(){};
/** @type {Function} */
Astro.Blog.AstroEdit.Visualizer.Snippet.escapeStr;
/** @type {Function} */
Astro.Blog.AstroEdit.Visualizer.Snippet.compileProp;

View File

@@ -0,0 +1,12 @@
/** @constructor */
Astro.Blog.AstroEdit.Visualizer = function(){};
/** @type {Function} */
Astro.Blog.AstroEdit.Visualizer.setContentDiv;
/** @type {Function} */
Astro.Blog.AstroEdit.Visualizer.saveRaw;
/** @type {Function} */
Astro.Blog.AstroEdit.Visualizer.visualizeData;
/** @type {Function} */
Astro.Blog.AstroEdit.Visualizer.saveSelection;
/** @type {Function} */
Astro.Blog.AstroEdit.Visualizer.restoreSelection;

View File

@@ -0,0 +1,2 @@
/** @type {Object} */
Astro.Blog.AstroEdit = {};

View File

@@ -0,0 +1,18 @@
/** @constructor */
Astro.Blog.Components.Bubble = function() {};
/** @type {Function} */
Astro.Blog.Components.Bubble.prototype.init;
/** @type {Function} */
Astro.Blog.Components.Bubble.prototype.blurp;
/** @type {Function}
* @param {String} mesg
*/
Astro.Blog.Components.Bubble.prototype.pop = function( mesg ) { };
/** @type {Function}
* @param {String} color
*/
Astro.Blog.Components.Bubble.prototype.setColor = function( color ) { };

View File

@@ -0,0 +1,13 @@
/** @constructor */
Astro.Blog.Components.Calendar = function() {};
/** @type {Function}*/
Astro.Blog.Components.Calendar.init;
/** @type {Function}*/
Astro.Blog.Components.Calendar.prevMon;
/** @type {Function}*/
Astro.Blog.Components.Calendar.nextMon;
/** @type {Function}*/
Astro.Blog.Components.Calendar.pop;
/** @type {Function}*/
Astro.Blog.Components.Calendar.draw;

View File

@@ -0,0 +1,2 @@
/** @constructor */
Astro.Blog.Components = function() {};

View File

@@ -0,0 +1,5 @@
/** @constructor */
Astro.Blog.Config = function() {};
/** @type {Function} */
Astro.Blog.Config.get;

View File

@@ -0,0 +1,8 @@
/** @type {Object} */
Astro.Blog.Events.Responsive = {};
/** @type {Object} */
Astro.Blog.Events.Responsive.data = {};
/** @type {Number} */
Astro.Blog.Events.Responsive.data.ratio = {};

View File

@@ -0,0 +1,2 @@
/** @type {Object} */
Astro.Blog.Events = {};

View File

@@ -0,0 +1,2 @@
/** @constructor */
Astro.Blog = function() {};

View File

@@ -0,0 +1,8 @@
/** @constructor */
Astro.Bootstrap = function() {};
/** @type {Function} */
Astro.Bootstrap.init;
/** @type {Function} */
Astro.Bootstrap.regInit;

View File

@@ -0,0 +1,5 @@
/** @constructor */
Astro.Mechanism.CharacterCloud = function() {};
/** @type {Function} */
Astro.Mechanism.CharacterCloud.create;

View File

@@ -0,0 +1,9 @@
/** @constructor */
Astro.Mechanism.Parallax = function() {};
/** @type {Function} */
Astro.Mechanism.Parallax.cssSlide;
/** @type {Function} */
Astro.Mechanism.Parallax.verticalSlideTo;
/** @type {Function} */
Astro.Mechanism.Parallax.attach;

View File

@@ -0,0 +1,2 @@
/** @constructor */
Astro.Mechanism = function() {};

View File

@@ -0,0 +1,2 @@
/** @constructor */
var Astro = function() {};

View File

@@ -0,0 +1,24 @@
/** @constructor */
Astro.utils.Date = function() {};
/** @type {Function}*/
Astro.utils.Date.pretty;
/** @type {Function}*/
Astro.utils.Date.prettyDay;
/** @type {Function}*/
Astro.utils.Date.diff;
/** @type {Function}*/
Astro.utils.Date.smstamp;
/** @type {Function}*/
Astro.utils.Date.chinese;
/** @type {constant}*/
Astro.utils.Date.MONTH;
/** @type {constant}*/
Astro.utils.Date.MONTH_ABBR;
/** @type {constant}*/
Astro.utils.Date.DAY;
/** @type {constant}*/
Astro.utils.Date.DAY_ABBR;
/** @type {constant}*/
Astro.utils.Date.CAP_MONTHS;

View File

@@ -0,0 +1,2 @@
/** @constructor */
Astro.utils = function() {};

View File

@@ -0,0 +1,12 @@
/** @constructor */
_3rdParty_.Recaptcha = function() {};
/** @type {Number} */
_3rdParty_.Recaptcha.timer_id;
/** @type {Function} */
_3rdParty_.render;
/** @type {Function} */
_3rdParty_.reset;
/** @type {Function} */
_3rdParty_.getResponse;

View File

@@ -0,0 +1,2 @@
/** @type {Object} */
var _3rdParty_ = {};

View File

@@ -0,0 +1,4 @@
/** @type {Object} */
_AstConf_.Article = {};
/** @type {String} */
_AstConf_.Article.id;

View File

@@ -0,0 +1,20 @@
/** @type {Object} */
_AstConf_.AstroEdit = {};
/** @type {String} */
_AstConf_.AstroEdit.article_id;
/** @type {object} */
_AstConf_.AstroEdit.paths = {};
/** @type {string} */
_AstConf_.AstroEdit.paths.set_article;
/** @type {string} */
_AstConf_.AstroEdit.paths.get_article;
/** @type {string} */
_AstConf_.AstroEdit.paths.get_drafts;
/** @type {string} */
_AstConf_.AstroEdit.paths.get_files;
/** @type {string} */
_AstConf_.AstroEdit.paths.set_file;
/** @type {string} */
_AstConf_.AstroEdit.paths.tag_count;
/** @type {string} */
_AstConf_.AstroEdit.paths.set_tag;

View File

@@ -0,0 +1,6 @@
/** @type {Object} */
_AstConf_.Comment = {};
/** @type {String} */
_AstConf_.Comment.processor;
/** @type {String} */
_AstConf_.Comment.siteKey;

View File

@@ -0,0 +1,6 @@
/** @type {Object} */
_AstConf_.Control = {};
/** @type {Object} */
_AstConf_.Control.action;
/** @type {String} */
_AstConf_.Control.action.del;

View File

@@ -0,0 +1,6 @@
/** @type {Object} */
_AstConf_.Login = {};
/** @type {String} */
_AstConf_.Login.formAct;
/** @type {String} */
_AstConf_.Login.sHeat;

View File

@@ -0,0 +1,21 @@
/** @type {Object} */
_AstConf_.SiteFile = {};
/** @type {String} */
_AstConf_.SiteFile.f_host;
/** @type {Object} */
_AstConf_.SiteFile.path;
/** @type {String} */
_AstConf_.SiteFile.path.download;
/** @type {String} */
_AstConf_.SiteFile.path.info;
/** @type {Object} */
_AstConf_.SiteFile.path.image;
/** @type {String} */
_AstConf_.SiteFile.path.image.small;
/** @type {String} */
_AstConf_.SiteFile.path.image.medium;
/** @type {String} */
_AstConf_.SiteFile.path.image.large;
/** @type {Array} */
_AstConf_.SiteFile.files;

View File

@@ -0,0 +1,9 @@
/** @type {Object} */
_AstConf_.UserInfo = {};
/** @type {String} */
_AstConf_.UserInfo.name;
/** @type {String} */
_AstConf_.UserInfo.website;
/** @type {String} */
_AstConf_.UserInfo.avatar;

View File

@@ -0,0 +1,2 @@
/** @type {Object} */
var _AstConf_ = {};

View File

@@ -0,0 +1,29 @@
/** @type {Object} */
_AstJson_.AJaxGetArticle = {};
/** @type {Boolean} */
_AstJson_.AJaxGetArticle.status;
/** @type {String} */
_AstJson_.AJaxGetArticle.backup;
/** @type {Object} */
_AstJson_.AJaxGetArticle.entry;
/** @type {String} */
_AstJson_.AJaxGetArticle.entry.slug;
/** @type {Boolean} */
_AstJson_.AJaxGetArticle.entry.archived;
/** @type {String} */
_AstJson_.AJaxGetArticle.entry.date_created;
/** @type {Boolean} */
_AstJson_.AJaxGetArticle.entry.draft;
/** @type {Boolean} */
_AstJson_.AJaxGetArticle.entry.featured;
/** @type {String} */
_AstJson_.AJaxGetArticle.entry.date_modified;
/** @type {String} */
_AstJson_.AJaxGetArticle.entry.date_published;
/** @type {Array} */
_AstJson_.AJaxGetArticle.entry.tags;
/** @type {String} */
_AstJson_.AJaxGetArticle.entry.text;
/** @type {String} */
_AstJson_.AJaxGetArticle.entry.title;

View File

@@ -0,0 +1,18 @@
/** @type {Object} */
_AstJson_.AJaxGetDrafts = {};
/** @type {Boolean} */
_AstJson_.AJaxGetDrafts.status;
/** @type {Array} */
_AstJson_.AJaxGetDrafts.entries;
/** @type {Object} */
_AstJson_.AJaxGetDrafts.entry = {};
/** @type {String} */
_AstJson_.AJaxGetDrafts.entry.content;
/** @type {String} */
_AstJson_.AJaxGetDrafts.entry.date;
/** @type {String} */
_AstJson_.AJaxGetDrafts.entry._id;
/** @type {String} */
_AstJson_.AJaxGetDrafts.entry.title;

View File

@@ -0,0 +1,13 @@
/** @type {Object} */
_AstJson_.AJaxGetFiles.Request = {};
/** @type {String} */
_AstJson_.AJaxGetFiles.Request.from;
/** @type {String} */
_AstJson_.AJaxGetFiles.Request.to;
/** @type {String} */
_AstJson_.AJaxGetFiles.Request.group;
/** @type {String} */
_AstJson_.AJaxGetFiles.Request.listFiles;
/** @type {String} */
_AstJson_.AJaxGetFiles.Request.aid;

View File

@@ -0,0 +1,24 @@
/** @type {Object} */
_AstJson_.AJaxGetFiles = {};
/** @type {Boolean} */
_AstJson_.AJaxGetFiles.status;
/** @type {Array} */
_AstJson_.AJaxGetFiles.files;
/** @type {Object} */
_AstJson_.AJaxGetFiles.file = {};
/** @type {String} */
_AstJson_.AJaxGetFiles.file.author;
/** @type {String} */
_AstJson_.AJaxGetFiles.file.cCount;
/** @type {String} */
_AstJson_.AJaxGetFiles.file.date;
/** @type {String} */
_AstJson_.AJaxGetFiles.file.hash;
/** @type {String} */
_AstJson_.AJaxGetFiles.file.id;
/** @type {String} */
_AstJson_.AJaxGetFiles.file.name;
/** @type {String} */
_AstJson_.AJaxGetFiles.file.src_location;

View File

@@ -0,0 +1,21 @@
/** @type {Object} */
_AstJson_.SiteFile = {};
/** @type {Boolean} */
_AstJson_.SiteFile.status;
/** @type {String} */
_AstJson_.SiteFile.message;
/** @type {Object} */
_AstJson_.SiteFile.file;
/** @type {String} */
_AstJson_.SiteFile.file.date_created;
/** @type {String} */
_AstJson_.SiteFile.file.name;
/** @type {String} */
_AstJson_.SiteFile.file.id;
/** @type {String} */
_AstJson_.SiteFile.file.nickname;
/** @type {String} */
_AstJson_.SiteFile.file.type;
/** @type {String} */
_AstJson_.SiteFile.file.src_location;

View File

@@ -0,0 +1,2 @@
/** @type {Object} */
var _AstJson_ = {};