Migrate old externs 7/x

This commit is contained in:
2026-06-16 08:33:04 +08:00
parent 3bc6957677
commit c2fb5b205a
51 changed files with 390 additions and 317 deletions
@@ -11,13 +11,13 @@
var IKey = __import( "System.utils.IKey" );
/** @type {typeof System.utils.DataKey} */
var DataKey = __import( "System.utils.DataKey" );
/** @type {System.utils.EventKey} */
/** @type {typeof System.utils.EventKey} */
var EventKey = __import( "System.utils.EventKey" );
/** @type {typeof Dandelion} */
var Dand = __import( "Dandelion" );
/** @type {typeof Components.MessageBox} */
var MessageBox = __import( "Components.MessageBox" );
/** @type {Components.Mouse.ContextMenu} */
/** @type {typeof Components.Mouse.ContextMenu} */
var ContextMenu = __import( "Components.Mouse.ContextMenu" );
/** @type {Astro.Bootstrap} */
var Bootstrap = __import( "Astro.Bootstrap" );
@@ -32,7 +32,7 @@
var init = function ()
{
var stage = Dand.id( "notifications" );
var nt_body = Dand.id( "nt_body" );
var nt_body = /** @type HTMLElement */ (Dand.id( "nt_body" ));
var bodyStyle = nt_body.style;
/** @type {_AstConf_.Notification} */
@@ -156,10 +156,12 @@
var items = [], menuShow = false;
var hasNotis = 0 < e.data.length;
/** @type {_AstJson_.AJaxGetNotis} */
var data;
for( var n in e.data )
{
/** @type {_AstJson_.AJaxGetNotis} */
var data = e.data[n];
data = e.data[n];
// Create items
items[ items.length ] = new IKey(
data.mesg
@@ -173,7 +175,7 @@
Dand.glass( "nt_icon_settings", true )[0].addEventListener( "Click", popupSettings );
contextMenu = new ContextMenu(
Dand.id( "nt_open_menu" )
/** @type HTMLElement */ (Dand.id( "nt_open_menu" ))
, items
, "LMB"
, nt_body
@@ -220,8 +222,7 @@
for( n in e.data )
{
/** @type {_AstJson_.AJaxGetNotis} */
var data = e.data[n];
data = e.data[n];
var li = contextMenu.getItemByKey( "m_" + data.id ).stage;
li.appendChild(