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
@@ -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;
@@ -0,0 +1,6 @@
/** @constructor */
Astro.Blog.AstroEdit.Tag = function(){};
/** @type {Function} */
Astro.Blog.AstroEdit.Tag.getTags;
/** @type {Function} */
Astro.Blog.AstroEdit.Tag.setTags;
@@ -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;
@@ -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;
@@ -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;
@@ -0,0 +1,2 @@
/** @type {Object} */
Astro.Blog.AstroEdit = {};
@@ -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 ) { };
@@ -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;
@@ -0,0 +1,2 @@
/** @constructor */
Astro.Blog.Components = function() {};
+5
View File
@@ -0,0 +1,5 @@
/** @constructor */
Astro.Blog.Config = function() {};
/** @type {Function} */
Astro.Blog.Config.get;
@@ -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 = {};
+2
View File
@@ -0,0 +1,2 @@
/** @type {Object} */
Astro.Blog.Events = {};
+2
View File
@@ -0,0 +1,2 @@
/** @constructor */
Astro.Blog = function() {};
+8
View File
@@ -0,0 +1,8 @@
/** @constructor */
Astro.Bootstrap = function() {};
/** @type {Function} */
Astro.Bootstrap.init;
/** @type {Function} */
Astro.Bootstrap.regInit;
@@ -0,0 +1,5 @@
/** @constructor */
Astro.Mechanism.CharacterCloud = function() {};
/** @type {Function} */
Astro.Mechanism.CharacterCloud.create;
@@ -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;
+2
View File
@@ -0,0 +1,2 @@
/** @constructor */
Astro.Mechanism = function() {};
+2
View File
@@ -0,0 +1,2 @@
/** @constructor */
var Astro = function() {};
+24
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;
+2
View File
@@ -0,0 +1,2 @@
/** @constructor */
Astro.utils = function() {};
@@ -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;
+2
View File
@@ -0,0 +1,2 @@
/** @type {Object} */
var _3rdParty_ = {};
+4
View File
@@ -0,0 +1,4 @@
/** @type {Object} */
_AstConf_.Article = {};
/** @type {String} */
_AstConf_.Article.id;
@@ -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;
+6
View File
@@ -0,0 +1,6 @@
/** @type {Object} */
_AstConf_.Comment = {};
/** @type {String} */
_AstConf_.Comment.processor;
/** @type {String} */
_AstConf_.Comment.siteKey;
+6
View File
@@ -0,0 +1,6 @@
/** @type {Object} */
_AstConf_.Control = {};
/** @type {Object} */
_AstConf_.Control.action;
/** @type {String} */
_AstConf_.Control.action.del;
+6
View File
@@ -0,0 +1,6 @@
/** @type {Object} */
_AstConf_.Login = {};
/** @type {String} */
_AstConf_.Login.formAct;
/** @type {String} */
_AstConf_.Login.sHeat;
+21
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;
@@ -0,0 +1,9 @@
/** @type {Object} */
_AstConf_.UserInfo = {};
/** @type {String} */
_AstConf_.UserInfo.name;
/** @type {String} */
_AstConf_.UserInfo.website;
/** @type {String} */
_AstConf_.UserInfo.avatar;
+2
View File
@@ -0,0 +1,2 @@
/** @type {Object} */
var _AstConf_ = {};
@@ -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;
@@ -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;
@@ -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;
@@ -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;
+21
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;
+2
View File
@@ -0,0 +1,2 @@
/** @type {Object} */
var _AstJson_ = {};