Removed old impl

This commit is contained in:
2026-06-12 04:51:38 +08:00
parent 4fcd58b5ed
commit f532ada7c4
63 changed files with 717 additions and 1359 deletions
@@ -9,6 +9,7 @@
// Character cloud creates a cloud of character with randomized properties
var create = function( ch, char_class, size, cloudRange, charSize )
{
var marginLeft;
var cloudMap = Dand.wrapc( "characterCloud" )
, charElmt
, rx, ry, rs
+1 -1
View File
@@ -18,7 +18,7 @@
|| window.mozRequestAnimationFrame
|| window.oRequestAnimationFrame
|| window.msRequestAnimationFrame
|| function( f ) { window.setTimeout( draw1, 1000 / 60 ); }
|| function( f ) { window.setTimeout( f, 1000 / 60 ); }
);
var cssSlide = function( element, slide_index, distance )
+4 -3
View File
@@ -58,7 +58,7 @@
, led = null
, ticking = function () {
if( debugEnv )
if( window[ "debugEnv" ] )
{
time_txt.innerHTML = ( sTick.count - cycle ) + " cps, Sampling " + sampling + "ms";
cycle = sTick.count;
@@ -130,12 +130,13 @@
var autoHide = function () { this.style.top = ""; }.bind(stage);
Cycle.perma('gTicker' + Perf.uuid, ticking, sampling);
Cycle.perma('gTicker' + Perf.uuid, autoHide, 3000);
debugEnv = true;
window[ "debugEnv" ] = true;
ticking();
var f9Binding = function ( e )
{
var code;
e = e || window.event;
if ( e.keyCode ) code = e.keyCode;
else if ( e.which ) code = e.which;
@@ -167,7 +168,7 @@
// This will output the debug info
if( window["debug_info"] )
{
debug.Info( objTreeView( debug_info, 0, "[Server] " ) );
debug.Info( objTreeView( window[ "debug_info" ], 0, "[Server] " ) );
}
};
+2 -2
View File
@@ -66,7 +66,7 @@ var BotanEvent = function( name, data )
};
/** @constructor
* @extends EventTarget
* @implements {EventTarget}
**/
var EventDispatcher = function() {
var events = {};
@@ -206,7 +206,7 @@ __namespace = __namespace || function( ns )
target.__TRIGGERS = [];
nsObj = new NamespaceObj;
var nsObj = new NamespaceObj;
nsObj[ NS_EXPORT ] = function( type, name, obj )
{
if( this.t[ name ] ) return;
@@ -1,8 +1,8 @@
/** @constructor */
Astro.Blog.AstroEdit.SmartInput.ICandidateAction = function(){};
/** @type {function} */
/** @type {function(function(): void): void} */
Astro.Blog.AstroEdit.SmartInput.ICandidateAction.GetCandidates;
/** @type {function} */
/** @type {function(string): void} */
Astro.Blog.AstroEdit.SmartInput.ICandidateAction.Process;
/** @type {function} */
/** @type {function(Astro.Blog.AstroEdit.SmartInput.ICandidateAction, Event): boolean} */
Astro.Blog.AstroEdit.SmartInput.ICandidateAction.Retreat;
+5 -5
View File
@@ -12,13 +12,13 @@ Astro.utils.Date.smstamp;
/** @type {Function}*/
Astro.utils.Date.chinese;
/** @type {constant}*/
/** @const*/
Astro.utils.Date.MONTH;
/** @type {constant}*/
/** @const*/
Astro.utils.Date.MONTH_ABBR;
/** @type {constant}*/
/** @const*/
Astro.utils.Date.DAY;
/** @type {constant}*/
/** @const*/
Astro.utils.Date.DAY_ABBR;
/** @type {constant}*/
/** @const*/
Astro.utils.Date.CAP_MONTHS;
+9 -9
View File
@@ -1,31 +1,31 @@
/** @constructor */
var Dandelion = function (){}
/** @type {Function} */
/** @type {function(...?): HTMLElement} */
Dandelion.wrap;
/** @type {Function} */
/** @type {function(...?): HTMLElement} */
Dandelion.wrapc;
/** @type {Function} */
/** @type {function(...?): HTMLElement} */
Dandelion.wrape;
/** @type {Function} */
/** @type {function(...?): HTMLElement} */
Dandelion.wrapne;
/** @type {Function} */
/** @type {function(...?): HTMLElement} */
Dandelion.wrapna;
/** @type {Function} */
/** @type {function(string): HTMLElement} */
Dandelion.textNode;
/** @type {Function} */
/** @type {function(string): HTMLElement} */
Dandelion.bubbleUp;
/** @type {Function} */
/** @type {function(HTMLElement, function(HTMLElement): boolean): void} */
Dandelion.chainUpApply;
/** @type {Function} */
/** @type {function(string, boolean=): (HTMLElement|Dandelion.IDOMElement)} */
Dandelion.id;
/** @type {Function} */
@@ -1,42 +1,60 @@
/** @constructor */
Libraries.SyntaxHighlighter = function (){};
Libraries.SyntaxHighlighter = function() {};
/** @type {Function} */
/** @type {function(...?): ?} */
Libraries.SyntaxHighlighter.all;
/** @type {Object} */
/** @type {!Object<string, *>} */
Libraries.SyntaxHighlighter.defaults;
/** @type {Function} */
/** @type {function(...?): ?} */
Libraries.SyntaxHighlighter.highlight;
/** @type {Object} */
/** @type {!Object<string, *>} */
Libraries.SyntaxHighlighter.Highlighter;
/** @type {Object} */
/** @type {!Object<string, *>} */
Libraries.SyntaxHighlighter.brushes;
/** @type {Object} */
/** @type {!Object<string, !RegExp>} */
Libraries.SyntaxHighlighter.regexLib;
/** @constructor */
/** @const */
var SyntaxHighlighter = {};
/** @type {RegExp} */
SyntaxHighlighter.regexLib.aspScriptTags
/** @type {RegExp} */
SyntaxHighlighter.regexLib.doubleQuotedString
/** @type {RegExp} */
SyntaxHighlighter.regexLib.multiLineCComments
/** @type {RegExp} */
SyntaxHighlighter.regexLib.multiLineDoubleQuotedString
/** @type {RegExp} */
SyntaxHighlighter.regexLib.multiLineSingleQuotedString
/** @type {RegExp} */
SyntaxHighlighter.regexLib.phpScriptTags
/** @type {RegExp} */
SyntaxHighlighter.regexLib.scriptScriptTags
/** @type {RegExp} */
SyntaxHighlighter.regexLib.singleLineCComments
/** @type {RegExp} */
SyntaxHighlighter.regexLib.singleLinePerlComments
/** @type {RegExp} */
SyntaxHighlighter.regexLib.singleQuotedString
/** @type {RegExp} */
SyntaxHighlighter.regexLib.xmlComments
/** @type {!Object<string, !RegExp>} */
SyntaxHighlighter.regexLib;
/** @type {!RegExp} */
SyntaxHighlighter.regexLib.aspScriptTags;
/** @type {!RegExp} */
SyntaxHighlighter.regexLib.doubleQuotedString;
/** @type {!RegExp} */
SyntaxHighlighter.regexLib.multiLineCComments;
/** @type {!RegExp} */
SyntaxHighlighter.regexLib.multiLineDoubleQuotedString;
/** @type {!RegExp} */
SyntaxHighlighter.regexLib.multiLineSingleQuotedString;
/** @type {!RegExp} */
SyntaxHighlighter.regexLib.phpScriptTags;
/** @type {!RegExp} */
SyntaxHighlighter.regexLib.scriptScriptTags;
/** @type {!RegExp} */
SyntaxHighlighter.regexLib.singleLineCComments;
/** @type {!RegExp} */
SyntaxHighlighter.regexLib.singleLinePerlComments;
/** @type {!RegExp} */
SyntaxHighlighter.regexLib.singleQuotedString;
/** @type {!RegExp} */
SyntaxHighlighter.regexLib.xmlComments;
@@ -1,7 +1,7 @@
/** @type {constructor} */
/** @constructor */
System.Compression.Zlib = function(){};
/** @type {constructor} */
/** @constructor */
System.Compression.Zlib.Deflate = function(){};
/** @type {Function} */
+3 -3
View File
@@ -8,9 +8,9 @@ System.Log.registerHandler;
/** @type {Function} */
System.Log.removeHandler;
/** @type {const} */
/** @const */
System.Log.ERROR;
/** @type {const} */
/** @const */
System.Log.INFO;
/** @type {const} */
/** @const */
System.Log.SYSTEM;
+2 -2
View File
@@ -1,8 +1,8 @@
/** @type {Object} */
/** @type {!Object<string, *>} */
_AstConf_.AstroEdit = {};
/** @type {String} */
_AstConf_.AstroEdit.article_id;
/** @type {object} */
/** @type {!Object<string, *>} */
_AstConf_.AstroEdit.paths = {};
/** @type {string} */
_AstConf_.AstroEdit.paths.set_article;