1
0

models.js 82 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843
  1. // @ts-check
  2. // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
  3. // This file is automatically generated. DO NOT EDIT
  4. // eslint-disable-next-line @typescript-eslint/ban-ts-comment
  5. // @ts-ignore: Unused imports
  6. import { Create as $Create } from "@wailsio/runtime";
  7. /**
  8. * APIStatus API 服务运行状态,供「主机」页展示
  9. */
  10. export class APIStatus {
  11. /**
  12. * Creates a new APIStatus instance.
  13. * @param {Partial<APIStatus>} [$$source = {}] - The source object to create the APIStatus.
  14. */
  15. constructor($$source = {}) {
  16. if (!("addr" in $$source)) {
  17. /**
  18. * 当前监听地址
  19. * @member
  20. * @type {string}
  21. */
  22. this["addr"] = "";
  23. }
  24. if (!("running" in $$source)) {
  25. /**
  26. * 是否正在监听
  27. * @member
  28. * @type {boolean}
  29. */
  30. this["running"] = false;
  31. }
  32. if (!("startedAt" in $$source)) {
  33. /**
  34. * 启动时间
  35. * @member
  36. * @type {string}
  37. */
  38. this["startedAt"] = "";
  39. }
  40. if (!("error" in $$source)) {
  41. /**
  42. * 最近错误信息
  43. * @member
  44. * @type {string}
  45. */
  46. this["error"] = "";
  47. }
  48. Object.assign(this, $$source);
  49. }
  50. /**
  51. * Creates a new APIStatus instance from a string or object.
  52. * @param {any} [$$source = {}]
  53. * @returns {APIStatus}
  54. */
  55. static createFrom($$source = {}) {
  56. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  57. return new APIStatus(/** @type {Partial<APIStatus>} */($$parsedSource));
  58. }
  59. }
  60. /**
  61. * AppSettings 保存全部可自定义配置,序列化为 JSON 存于用户配置目录
  62. */
  63. export class AppSettings {
  64. /**
  65. * Creates a new AppSettings instance.
  66. * @param {Partial<AppSettings>} [$$source = {}] - The source object to create the AppSettings.
  67. */
  68. constructor($$source = {}) {
  69. if (!("theme" in $$source)) {
  70. /**
  71. * 界面主题:dark / light
  72. * @member
  73. * @type {string}
  74. */
  75. this["theme"] = "";
  76. }
  77. if (!("autostart" in $$source)) {
  78. /**
  79. * 系统启动时运行
  80. * @member
  81. * @type {boolean}
  82. */
  83. this["autostart"] = false;
  84. }
  85. if (!("alwaysOnTop" in $$source)) {
  86. /**
  87. * 窗口置顶
  88. * @member
  89. * @type {boolean}
  90. */
  91. this["alwaysOnTop"] = false;
  92. }
  93. if (!("startCompact" in $$source)) {
  94. /**
  95. * 启动时自动收拢为圆点(窗口缩小)
  96. * @member
  97. * @type {boolean}
  98. */
  99. this["startCompact"] = false;
  100. }
  101. if (!("windowWidth" in $$source)) {
  102. /**
  103. * 主窗口宽度(px),随窗口调整自动保存
  104. * @member
  105. * @type {number}
  106. */
  107. this["windowWidth"] = 0;
  108. }
  109. if (!("windowHeight" in $$source)) {
  110. /**
  111. * 主窗口高度(px),随窗口调整自动保存
  112. * @member
  113. * @type {number}
  114. */
  115. this["windowHeight"] = 0;
  116. }
  117. if (!("hotkey" in $$source)) {
  118. /**
  119. * 呼出(显示)窗口的全局热键
  120. * @member
  121. * @type {string}
  122. */
  123. this["hotkey"] = "";
  124. }
  125. if (!("tabOrder" in $$source)) {
  126. /**
  127. * Tab 显示顺序(tabId 列表,未列出的追加到末尾)
  128. * @member
  129. * @type {string[]}
  130. */
  131. this["tabOrder"] = [];
  132. }
  133. if (!("stockCodes" in $$source)) {
  134. /**
  135. * 股市页展示的股票代码列表
  136. * @member
  137. * @type {string[]}
  138. */
  139. this["stockCodes"] = [];
  140. }
  141. if (!("links" in $$source)) {
  142. /**
  143. * 常用网址列表
  144. * @member
  145. * @type {LinkItem[]}
  146. */
  147. this["links"] = [];
  148. }
  149. if (!("newsKeywords" in $$source)) {
  150. /**
  151. * 新闻关注关键词,逗号分隔
  152. * @member
  153. * @type {string}
  154. */
  155. this["newsKeywords"] = "";
  156. }
  157. if (!("biliCookie" in $$source)) {
  158. /**
  159. * B站登录 cookie(含 SESSDATA),用于抓取「关注的人最新动态」
  160. * @member
  161. * @type {string}
  162. */
  163. this["biliCookie"] = "";
  164. }
  165. if (!("githubRepos" in $$source)) {
  166. /**
  167. * 关注的 GitHub 仓库列表
  168. * @member
  169. * @type {RepoItem[]}
  170. */
  171. this["githubRepos"] = [];
  172. }
  173. if (!("customTabs" in $$source)) {
  174. /**
  175. * 用户自定义 Tab 页面(名字 + 网址)
  176. * @member
  177. * @type {CustomTab[]}
  178. */
  179. this["customTabs"] = [];
  180. }
  181. if (!("localTools" in $$source)) {
  182. /**
  183. * 「本地」页资源(标题|启动命令|说明,在设置中维护)
  184. * @member
  185. * @type {LocalTool[]}
  186. */
  187. this["localTools"] = [];
  188. }
  189. if (!("controlKeys" in $$source)) {
  190. /**
  191. * 控制页按键配置(前 5 键固定 上/下/左/右/休眠,第 6 键起为额外按键)
  192. * @member
  193. * @type {ControlKeyConfig[]}
  194. */
  195. this["controlKeys"] = [];
  196. }
  197. if (!("controlRepeatSecs" in $$source)) {
  198. /**
  199. * 控制页长按连发频率(秒,0.0-10.0,默认 1.0)
  200. * @member
  201. * @type {number}
  202. */
  203. this["controlRepeatSecs"] = 0;
  204. }
  205. if (!("apiAddr" in $$source)) {
  206. /**
  207. * 内置 API 服务监听地址
  208. * @member
  209. * @type {string}
  210. */
  211. this["apiAddr"] = "";
  212. }
  213. if (!("serviceAddr" in $$source)) {
  214. /**
  215. * Windows 服务模式(--service)监听地址,仅电源类接口
  216. * @member
  217. * @type {string}
  218. */
  219. this["serviceAddr"] = "";
  220. }
  221. if (!("apiAutoStart" in $$source)) {
  222. /**
  223. * 应用启动时自动启动内置 API 服务(默认开启)
  224. * @member
  225. * @type {boolean}
  226. */
  227. this["apiAutoStart"] = false;
  228. }
  229. if (!("uploadPassword" in $$source)) {
  230. /**
  231. * 文件上传密码(空=不启用上传/下载接口)
  232. * @member
  233. * @type {string}
  234. */
  235. this["uploadPassword"] = "";
  236. }
  237. if (!("uploadDir" in $$source)) {
  238. /**
  239. * 文件上传保存目录(空=用户配置目录/uploads)
  240. * @member
  241. * @type {string}
  242. */
  243. this["uploadDir"] = "";
  244. }
  245. if (!("uploadMaxSize" in $$source)) {
  246. /**
  247. * 单个上传文件大小上限(MB),<=0 用默认 512
  248. * @member
  249. * @type {number}
  250. */
  251. this["uploadMaxSize"] = 0;
  252. }
  253. if (!("todoPath" in $$source)) {
  254. /**
  255. * 待办(TODO)文件路径
  256. * @member
  257. * @type {string}
  258. */
  259. this["todoPath"] = "";
  260. }
  261. if (!("recordPath" in $$source)) {
  262. /**
  263. * 记录(Record)文件路径:每行「姓名|名称|值」(保留兼容)
  264. * @member
  265. * @type {string}
  266. */
  267. this["recordPath"] = "";
  268. }
  269. if (!("recordDBPath" in $$source)) {
  270. /**
  271. * 记录数据库路径:SQLite3 数据库文件(记录 Tab 实际存储)
  272. * @member
  273. * @type {string}
  274. */
  275. this["recordDBPath"] = "";
  276. }
  277. if (!("backupDir" in $$source)) {
  278. /**
  279. * 文本文件备份目录(文件类自定义 Tab「备份」按钮使用)
  280. * @member
  281. * @type {string}
  282. */
  283. this["backupDir"] = "";
  284. }
  285. if (!("stockTicker" in $$source)) {
  286. /**
  287. * 股票滚动条配置
  288. * @member
  289. * @type {TickerConfig}
  290. */
  291. this["stockTicker"] = (new TickerConfig());
  292. }
  293. if (!("newsTicker" in $$source)) {
  294. /**
  295. * 新闻滚动条配置
  296. * @member
  297. * @type {TickerConfig}
  298. */
  299. this["newsTicker"] = (new TickerConfig());
  300. }
  301. if (!("poem" in $$source)) {
  302. /**
  303. * 随机古诗显示配置
  304. * @member
  305. * @type {PoemConfig}
  306. */
  307. this["poem"] = (new PoemConfig());
  308. }
  309. if (!("mouseAlert" in $$source)) {
  310. /**
  311. * 系统级鼠标提醒气泡配置
  312. * @member
  313. * @type {MouseAlertConfig}
  314. */
  315. this["mouseAlert"] = (new MouseAlertConfig());
  316. }
  317. if (!("browserPath" in $$source)) {
  318. /**
  319. * 指定浏览器 exe 路径(空=系统默认浏览器)
  320. * @member
  321. * @type {string}
  322. */
  323. this["browserPath"] = "";
  324. }
  325. if (!("ledColor" in $$source)) {
  326. /**
  327. * LED 滚动文字点阵颜色(如 #ff4d4d)
  328. * @member
  329. * @type {string}
  330. */
  331. this["ledColor"] = "";
  332. }
  333. if (!("stockUpColor" in $$source)) {
  334. /**
  335. * 股票上涨颜色
  336. * @member
  337. * @type {string}
  338. */
  339. this["stockUpColor"] = "";
  340. }
  341. if (!("stockDownColor" in $$source)) {
  342. /**
  343. * 股票下跌颜色
  344. * @member
  345. * @type {string}
  346. */
  347. this["stockDownColor"] = "";
  348. }
  349. if (!("stockRefreshSecs" in $$source)) {
  350. /**
  351. * 股市自动刷新间隔(秒)
  352. * @member
  353. * @type {number}
  354. */
  355. this["stockRefreshSecs"] = 0;
  356. }
  357. if (!("stockClosedRefreshSecs" in $$source)) {
  358. /**
  359. * 股市休市时自动刷新间隔(秒)
  360. * @member
  361. * @type {number}
  362. */
  363. this["stockClosedRefreshSecs"] = 0;
  364. }
  365. if (!("newsRefreshMinutes" in $$source)) {
  366. /**
  367. * 新闻自动刷新间隔(分钟)
  368. * @member
  369. * @type {number}
  370. */
  371. this["newsRefreshMinutes"] = 0;
  372. }
  373. if (!("newsCount" in $$source)) {
  374. /**
  375. * 新闻页显示条数
  376. * @member
  377. * @type {number}
  378. */
  379. this["newsCount"] = 0;
  380. }
  381. if (!("githubRefreshMinutes" in $$source)) {
  382. /**
  383. * Github 自动刷新间隔(分钟)
  384. * @member
  385. * @type {number}
  386. */
  387. this["githubRefreshMinutes"] = 0;
  388. }
  389. if (!("fontDelta" in $$source)) {
  390. /**
  391. * 全局字号偏移(px),+-3 范围内调整
  392. * @member
  393. * @type {number}
  394. */
  395. this["fontDelta"] = 0;
  396. }
  397. if (!("localSend" in $$source)) {
  398. /**
  399. * LocalSend 文件互传配置(本机名/接收目录/接收模式等)
  400. * @member
  401. * @type {LocalSendConfig}
  402. */
  403. this["localSend"] = (new LocalSendConfig());
  404. }
  405. if (!("croc" in $$source)) {
  406. /**
  407. * Croc 传送配置(发送/接收共用密码)
  408. * @member
  409. * @type {CrocConfig}
  410. */
  411. this["croc"] = (new CrocConfig());
  412. }
  413. if (!("ytdlp" in $$source)) {
  414. /**
  415. * 视频下载配置(yt-dlp 保存目录)
  416. * @member
  417. * @type {YTDLPConfig}
  418. */
  419. this["ytdlp"] = (new YTDLPConfig());
  420. }
  421. if (!("memos" in $$source)) {
  422. /**
  423. * Memos 速记配置(地址/访问令牌)
  424. * @member
  425. * @type {MemosConfig}
  426. */
  427. this["memos"] = (new MemosConfig());
  428. }
  429. if (!("brightness" in $$source)) {
  430. /**
  431. * 显示器亮度配置(记住亮度、启动恢复)
  432. * @member
  433. * @type {BrightnessConfig}
  434. */
  435. this["brightness"] = (new BrightnessConfig());
  436. }
  437. if (!("toolOrder" in $$source)) {
  438. /**
  439. * 工具页卡片显示顺序(工具 id 列表,未列出的追加到末尾)
  440. * @member
  441. * @type {string[]}
  442. */
  443. this["toolOrder"] = [];
  444. }
  445. if (!("gitLab" in $$source)) {
  446. /**
  447. * 私有 GitLab 自动升级配置
  448. * @member
  449. * @type {GitLabConfig}
  450. */
  451. this["gitLab"] = (new GitLabConfig());
  452. }
  453. if (!("skippedUpdateVersion" in $$source)) {
  454. /**
  455. * 已跳过的版本(启动检查时视为无更新)
  456. * @member
  457. * @type {string}
  458. */
  459. this["skippedUpdateVersion"] = "";
  460. }
  461. if (!("proxy" in $$source)) {
  462. /**
  463. * 网络代理配置(工具页「网络代理」卡片)
  464. * @member
  465. * @type {ProxyConfig}
  466. */
  467. this["proxy"] = (new ProxyConfig());
  468. }
  469. Object.assign(this, $$source);
  470. }
  471. /**
  472. * Creates a new AppSettings instance from a string or object.
  473. * @param {any} [$$source = {}]
  474. * @returns {AppSettings}
  475. */
  476. static createFrom($$source = {}) {
  477. const $$createField7_0 = $$createType0;
  478. const $$createField8_0 = $$createType0;
  479. const $$createField9_0 = $$createType2;
  480. const $$createField12_0 = $$createType4;
  481. const $$createField13_0 = $$createType6;
  482. const $$createField14_0 = $$createType8;
  483. const $$createField15_0 = $$createType10;
  484. const $$createField27_0 = $$createType11;
  485. const $$createField28_0 = $$createType11;
  486. const $$createField29_0 = $$createType12;
  487. const $$createField30_0 = $$createType13;
  488. const $$createField41_0 = $$createType14;
  489. const $$createField42_0 = $$createType15;
  490. const $$createField43_0 = $$createType16;
  491. const $$createField44_0 = $$createType17;
  492. const $$createField45_0 = $$createType18;
  493. const $$createField46_0 = $$createType0;
  494. const $$createField47_0 = $$createType19;
  495. const $$createField49_0 = $$createType20;
  496. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  497. if ("tabOrder" in $$parsedSource) {
  498. $$parsedSource["tabOrder"] = $$createField7_0($$parsedSource["tabOrder"]);
  499. }
  500. if ("stockCodes" in $$parsedSource) {
  501. $$parsedSource["stockCodes"] = $$createField8_0($$parsedSource["stockCodes"]);
  502. }
  503. if ("links" in $$parsedSource) {
  504. $$parsedSource["links"] = $$createField9_0($$parsedSource["links"]);
  505. }
  506. if ("githubRepos" in $$parsedSource) {
  507. $$parsedSource["githubRepos"] = $$createField12_0($$parsedSource["githubRepos"]);
  508. }
  509. if ("customTabs" in $$parsedSource) {
  510. $$parsedSource["customTabs"] = $$createField13_0($$parsedSource["customTabs"]);
  511. }
  512. if ("localTools" in $$parsedSource) {
  513. $$parsedSource["localTools"] = $$createField14_0($$parsedSource["localTools"]);
  514. }
  515. if ("controlKeys" in $$parsedSource) {
  516. $$parsedSource["controlKeys"] = $$createField15_0($$parsedSource["controlKeys"]);
  517. }
  518. if ("stockTicker" in $$parsedSource) {
  519. $$parsedSource["stockTicker"] = $$createField27_0($$parsedSource["stockTicker"]);
  520. }
  521. if ("newsTicker" in $$parsedSource) {
  522. $$parsedSource["newsTicker"] = $$createField28_0($$parsedSource["newsTicker"]);
  523. }
  524. if ("poem" in $$parsedSource) {
  525. $$parsedSource["poem"] = $$createField29_0($$parsedSource["poem"]);
  526. }
  527. if ("mouseAlert" in $$parsedSource) {
  528. $$parsedSource["mouseAlert"] = $$createField30_0($$parsedSource["mouseAlert"]);
  529. }
  530. if ("localSend" in $$parsedSource) {
  531. $$parsedSource["localSend"] = $$createField41_0($$parsedSource["localSend"]);
  532. }
  533. if ("croc" in $$parsedSource) {
  534. $$parsedSource["croc"] = $$createField42_0($$parsedSource["croc"]);
  535. }
  536. if ("ytdlp" in $$parsedSource) {
  537. $$parsedSource["ytdlp"] = $$createField43_0($$parsedSource["ytdlp"]);
  538. }
  539. if ("memos" in $$parsedSource) {
  540. $$parsedSource["memos"] = $$createField44_0($$parsedSource["memos"]);
  541. }
  542. if ("brightness" in $$parsedSource) {
  543. $$parsedSource["brightness"] = $$createField45_0($$parsedSource["brightness"]);
  544. }
  545. if ("toolOrder" in $$parsedSource) {
  546. $$parsedSource["toolOrder"] = $$createField46_0($$parsedSource["toolOrder"]);
  547. }
  548. if ("gitLab" in $$parsedSource) {
  549. $$parsedSource["gitLab"] = $$createField47_0($$parsedSource["gitLab"]);
  550. }
  551. if ("proxy" in $$parsedSource) {
  552. $$parsedSource["proxy"] = $$createField49_0($$parsedSource["proxy"]);
  553. }
  554. return new AppSettings(/** @type {Partial<AppSettings>} */($$parsedSource));
  555. }
  556. }
  557. /**
  558. * BiliDynamicItem 一条 B站动态,供「新闻」页展示
  559. */
  560. export class BiliDynamicItem {
  561. /**
  562. * Creates a new BiliDynamicItem instance.
  563. * @param {Partial<BiliDynamicItem>} [$$source = {}] - The source object to create the BiliDynamicItem.
  564. */
  565. constructor($$source = {}) {
  566. if (!("source" in $$source)) {
  567. /**
  568. * 来源:B站动态
  569. * @member
  570. * @type {string}
  571. */
  572. this["source"] = "";
  573. }
  574. if (!("title" in $$source)) {
  575. /**
  576. * 标题(动态文案或视频标题)
  577. * @member
  578. * @type {string}
  579. */
  580. this["title"] = "";
  581. }
  582. if (!("url" in $$source)) {
  583. /**
  584. * 详情页地址
  585. * @member
  586. * @type {string}
  587. */
  588. this["url"] = "";
  589. }
  590. if (!("matched" in $$source)) {
  591. /**
  592. * 是否命中关注关键词
  593. * @member
  594. * @type {boolean}
  595. */
  596. this["matched"] = false;
  597. }
  598. Object.assign(this, $$source);
  599. }
  600. /**
  601. * Creates a new BiliDynamicItem instance from a string or object.
  602. * @param {any} [$$source = {}]
  603. * @returns {BiliDynamicItem}
  604. */
  605. static createFrom($$source = {}) {
  606. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  607. return new BiliDynamicItem(/** @type {Partial<BiliDynamicItem>} */($$parsedSource));
  608. }
  609. }
  610. /**
  611. * BiliFeedResult B站动态抓取结果:列表 + 需要提示用户的说明(如 cookie 过期后回退热门)
  612. */
  613. export class BiliFeedResult {
  614. /**
  615. * Creates a new BiliFeedResult instance.
  616. * @param {Partial<BiliFeedResult>} [$$source = {}] - The source object to create the BiliFeedResult.
  617. */
  618. constructor($$source = {}) {
  619. if (!("items" in $$source)) {
  620. /**
  621. * @member
  622. * @type {BiliDynamicItem[]}
  623. */
  624. this["items"] = [];
  625. }
  626. if (!("notice" in $$source)) {
  627. /**
  628. * @member
  629. * @type {string}
  630. */
  631. this["notice"] = "";
  632. }
  633. Object.assign(this, $$source);
  634. }
  635. /**
  636. * Creates a new BiliFeedResult instance from a string or object.
  637. * @param {any} [$$source = {}]
  638. * @returns {BiliFeedResult}
  639. */
  640. static createFrom($$source = {}) {
  641. const $$createField0_0 = $$createType22;
  642. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  643. if ("items" in $$parsedSource) {
  644. $$parsedSource["items"] = $$createField0_0($$parsedSource["items"]);
  645. }
  646. return new BiliFeedResult(/** @type {Partial<BiliFeedResult>} */($$parsedSource));
  647. }
  648. }
  649. /**
  650. * BrightnessConfig 显示器亮度配置:记住各显示器亮度(按显示器名称),供启动时恢复
  651. */
  652. export class BrightnessConfig {
  653. /**
  654. * Creates a new BrightnessConfig instance.
  655. * @param {Partial<BrightnessConfig>} [$$source = {}] - The source object to create the BrightnessConfig.
  656. */
  657. constructor($$source = {}) {
  658. if (!("restoreOnStart" in $$source)) {
  659. /**
  660. * 启动应用时恢复上次亮度
  661. * @member
  662. * @type {boolean}
  663. */
  664. this["restoreOnStart"] = false;
  665. }
  666. if (!("levels" in $$source)) {
  667. /**
  668. * 显示器名称 -> 亮度百分比(0-100)
  669. * @member
  670. * @type {{ [_ in string]?: number }}
  671. */
  672. this["levels"] = {};
  673. }
  674. Object.assign(this, $$source);
  675. }
  676. /**
  677. * Creates a new BrightnessConfig instance from a string or object.
  678. * @param {any} [$$source = {}]
  679. * @returns {BrightnessConfig}
  680. */
  681. static createFrom($$source = {}) {
  682. const $$createField1_0 = $$createType23;
  683. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  684. if ("levels" in $$parsedSource) {
  685. $$parsedSource["levels"] = $$createField1_0($$parsedSource["levels"]);
  686. }
  687. return new BrightnessConfig(/** @type {Partial<BrightnessConfig>} */($$parsedSource));
  688. }
  689. }
  690. /**
  691. * CommitItem 仓库的一条提交记录
  692. */
  693. export class CommitItem {
  694. /**
  695. * Creates a new CommitItem instance.
  696. * @param {Partial<CommitItem>} [$$source = {}] - The source object to create the CommitItem.
  697. */
  698. constructor($$source = {}) {
  699. if (!("title" in $$source)) {
  700. /**
  701. * 提交标题(首行)
  702. * @member
  703. * @type {string}
  704. */
  705. this["title"] = "";
  706. }
  707. if (!("url" in $$source)) {
  708. /**
  709. * 提交详情页地址
  710. * @member
  711. * @type {string}
  712. */
  713. this["url"] = "";
  714. }
  715. if (!("updated" in $$source)) {
  716. /**
  717. * 提交时间(MM-DD HH:MM)
  718. * @member
  719. * @type {string}
  720. */
  721. this["updated"] = "";
  722. }
  723. Object.assign(this, $$source);
  724. }
  725. /**
  726. * Creates a new CommitItem instance from a string or object.
  727. * @param {any} [$$source = {}]
  728. * @returns {CommitItem}
  729. */
  730. static createFrom($$source = {}) {
  731. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  732. return new CommitItem(/** @type {Partial<CommitItem>} */($$parsedSource));
  733. }
  734. }
  735. /**
  736. * ControlKeyConfig 控制页方向盘单个按键配置(图标 + 命令 URL)
  737. */
  738. export class ControlKeyConfig {
  739. /**
  740. * Creates a new ControlKeyConfig instance.
  741. * @param {Partial<ControlKeyConfig>} [$$source = {}] - The source object to create the ControlKeyConfig.
  742. */
  743. constructor($$source = {}) {
  744. if (!("icon" in $$source)) {
  745. /**
  746. * 按钮显示字符,如 ↑、↓、←、→、休眠
  747. * @member
  748. * @type {string}
  749. */
  750. this["icon"] = "";
  751. }
  752. if (!("cmd" in $$source)) {
  753. /**
  754. * 点击时 GET 请求的完整 URL;空则回退旧指令信箱模式
  755. * @member
  756. * @type {string}
  757. */
  758. this["cmd"] = "";
  759. }
  760. Object.assign(this, $$source);
  761. }
  762. /**
  763. * Creates a new ControlKeyConfig instance from a string or object.
  764. * @param {any} [$$source = {}]
  765. * @returns {ControlKeyConfig}
  766. */
  767. static createFrom($$source = {}) {
  768. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  769. return new ControlKeyConfig(/** @type {Partial<ControlKeyConfig>} */($$parsedSource));
  770. }
  771. }
  772. /**
  773. * CrocConfig 是 Croc 传送的配置(发送/接收共用密码)。
  774. */
  775. export class CrocConfig {
  776. /**
  777. * Creates a new CrocConfig instance.
  778. * @param {Partial<CrocConfig>} [$$source = {}] - The source object to create the CrocConfig.
  779. */
  780. constructor($$source = {}) {
  781. if (!("password" in $$source)) {
  782. /**
  783. * 发送/接收共用密码:作为 croc 传输码(--code),空=使用随机传输码
  784. * @member
  785. * @type {string}
  786. */
  787. this["password"] = "";
  788. }
  789. if (!("dir" in $$source)) {
  790. /**
  791. * 接收保存目录,空=当前工作目录
  792. * @member
  793. * @type {string}
  794. */
  795. this["dir"] = "";
  796. }
  797. Object.assign(this, $$source);
  798. }
  799. /**
  800. * Creates a new CrocConfig instance from a string or object.
  801. * @param {any} [$$source = {}]
  802. * @returns {CrocConfig}
  803. */
  804. static createFrom($$source = {}) {
  805. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  806. return new CrocConfig(/** @type {Partial<CrocConfig>} */($$parsedSource));
  807. }
  808. }
  809. /**
  810. * CrocInfo 描述本机 croc 的可用性,用于前端决定是否展示工具卡片。
  811. */
  812. export class CrocInfo {
  813. /**
  814. * Creates a new CrocInfo instance.
  815. * @param {Partial<CrocInfo>} [$$source = {}] - The source object to create the CrocInfo.
  816. */
  817. constructor($$source = {}) {
  818. if (!("available" in $$source)) {
  819. /**
  820. * PATH 中是否找到 croc
  821. * @member
  822. * @type {boolean}
  823. */
  824. this["available"] = false;
  825. }
  826. if (!("path" in $$source)) {
  827. /**
  828. * croc 可执行文件路径
  829. * @member
  830. * @type {string}
  831. */
  832. this["path"] = "";
  833. }
  834. if (!("version" in $$source)) {
  835. /**
  836. * 版本信息(croc --version 输出)
  837. * @member
  838. * @type {string}
  839. */
  840. this["version"] = "";
  841. }
  842. Object.assign(this, $$source);
  843. }
  844. /**
  845. * Creates a new CrocInfo instance from a string or object.
  846. * @param {any} [$$source = {}]
  847. * @returns {CrocInfo}
  848. */
  849. static createFrom($$source = {}) {
  850. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  851. return new CrocInfo(/** @type {Partial<CrocInfo>} */($$parsedSource));
  852. }
  853. }
  854. /**
  855. * CustomTab 用户自定义 Tab 页面
  856. */
  857. export class CustomTab {
  858. /**
  859. * Creates a new CustomTab instance.
  860. * @param {Partial<CustomTab>} [$$source = {}] - The source object to create the CustomTab.
  861. */
  862. constructor($$source = {}) {
  863. if (!("name" in $$source)) {
  864. /**
  865. * 页面名称(Tab 按钮显示文字)
  866. * @member
  867. * @type {string}
  868. */
  869. this["name"] = "";
  870. }
  871. if (!("url" in $$source)) {
  872. /**
  873. * 页面地址(iframe 加载)
  874. * @member
  875. * @type {string}
  876. */
  877. this["url"] = "";
  878. }
  879. if (!("desc" in $$source)) {
  880. /**
  881. * 备注/提示信息(可空),Tab 说明文字优先显示
  882. * @member
  883. * @type {string}
  884. */
  885. this["desc"] = "";
  886. }
  887. Object.assign(this, $$source);
  888. }
  889. /**
  890. * Creates a new CustomTab instance from a string or object.
  891. * @param {any} [$$source = {}]
  892. * @returns {CustomTab}
  893. */
  894. static createFrom($$source = {}) {
  895. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  896. return new CustomTab(/** @type {Partial<CustomTab>} */($$parsedSource));
  897. }
  898. }
  899. /**
  900. * GitLabConfig 私有 GitLab(git.scwy.net)自动升级配置。
  901. * PrivateToken 为空时也可从 gitlab-cred.json 读取,避免令牌明文进设置文件。
  902. */
  903. export class GitLabConfig {
  904. /**
  905. * Creates a new GitLabConfig instance.
  906. * @param {Partial<GitLabConfig>} [$$source = {}] - The source object to create the GitLabConfig.
  907. */
  908. constructor($$source = {}) {
  909. if (!("baseUrl" in $$source)) {
  910. /**
  911. * GitLab 根地址,如 https://git.scwy.net
  912. * @member
  913. * @type {string}
  914. */
  915. this["baseUrl"] = "";
  916. }
  917. if (!("projectPath" in $$source)) {
  918. /**
  919. * 项目路径,如 ease/toolbox
  920. * @member
  921. * @type {string}
  922. */
  923. this["projectPath"] = "";
  924. }
  925. if (!("privateToken" in $$source)) {
  926. /**
  927. * 私有访问令牌(PRIVATE_TOKEN)
  928. * @member
  929. * @type {string}
  930. */
  931. this["privateToken"] = "";
  932. }
  933. if (!("branch" in $$source)) {
  934. /**
  935. * 版本清单所在分支或 Tag,默认 main
  936. * @member
  937. * @type {string}
  938. */
  939. this["branch"] = "";
  940. }
  941. Object.assign(this, $$source);
  942. }
  943. /**
  944. * Creates a new GitLabConfig instance from a string or object.
  945. * @param {any} [$$source = {}]
  946. * @returns {GitLabConfig}
  947. */
  948. static createFrom($$source = {}) {
  949. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  950. return new GitLabConfig(/** @type {Partial<GitLabConfig>} */($$parsedSource));
  951. }
  952. }
  953. /**
  954. * KLineBar 日 K 的一根柱子
  955. */
  956. export class KLineBar {
  957. /**
  958. * Creates a new KLineBar instance.
  959. * @param {Partial<KLineBar>} [$$source = {}] - The source object to create the KLineBar.
  960. */
  961. constructor($$source = {}) {
  962. if (!("date" in $$source)) {
  963. /**
  964. * 交易日
  965. * @member
  966. * @type {string}
  967. */
  968. this["date"] = "";
  969. }
  970. if (!("open" in $$source)) {
  971. /**
  972. * 开盘价
  973. * @member
  974. * @type {number}
  975. */
  976. this["open"] = 0;
  977. }
  978. if (!("close" in $$source)) {
  979. /**
  980. * 收盘价
  981. * @member
  982. * @type {number}
  983. */
  984. this["close"] = 0;
  985. }
  986. if (!("high" in $$source)) {
  987. /**
  988. * 最高价
  989. * @member
  990. * @type {number}
  991. */
  992. this["high"] = 0;
  993. }
  994. if (!("low" in $$source)) {
  995. /**
  996. * 最低价
  997. * @member
  998. * @type {number}
  999. */
  1000. this["low"] = 0;
  1001. }
  1002. if (!("volume" in $$source)) {
  1003. /**
  1004. * 成交量(手)
  1005. * @member
  1006. * @type {number}
  1007. */
  1008. this["volume"] = 0;
  1009. }
  1010. Object.assign(this, $$source);
  1011. }
  1012. /**
  1013. * Creates a new KLineBar instance from a string or object.
  1014. * @param {any} [$$source = {}]
  1015. * @returns {KLineBar}
  1016. */
  1017. static createFrom($$source = {}) {
  1018. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1019. return new KLineBar(/** @type {Partial<KLineBar>} */($$parsedSource));
  1020. }
  1021. }
  1022. /**
  1023. * LinkItem 常用网址条目
  1024. */
  1025. export class LinkItem {
  1026. /**
  1027. * Creates a new LinkItem instance.
  1028. * @param {Partial<LinkItem>} [$$source = {}] - The source object to create the LinkItem.
  1029. */
  1030. constructor($$source = {}) {
  1031. if (!("name" in $$source)) {
  1032. /**
  1033. * 网站名称
  1034. * @member
  1035. * @type {string}
  1036. */
  1037. this["name"] = "";
  1038. }
  1039. if (!("url" in $$source)) {
  1040. /**
  1041. * 网站地址
  1042. * @member
  1043. * @type {string}
  1044. */
  1045. this["url"] = "";
  1046. }
  1047. Object.assign(this, $$source);
  1048. }
  1049. /**
  1050. * Creates a new LinkItem instance from a string or object.
  1051. * @param {any} [$$source = {}]
  1052. * @returns {LinkItem}
  1053. */
  1054. static createFrom($$source = {}) {
  1055. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1056. return new LinkItem(/** @type {Partial<LinkItem>} */($$parsedSource));
  1057. }
  1058. }
  1059. /**
  1060. * LocalSendConfig 是 LocalSend 的运行时配置。
  1061. */
  1062. export class LocalSendConfig {
  1063. /**
  1064. * Creates a new LocalSendConfig instance.
  1065. * @param {Partial<LocalSendConfig>} [$$source = {}] - The source object to create the LocalSendConfig.
  1066. */
  1067. constructor($$source = {}) {
  1068. if (!("enabled" in $$source)) {
  1069. /**
  1070. * 是否已启动服务
  1071. * @member
  1072. * @type {boolean}
  1073. */
  1074. this["enabled"] = false;
  1075. }
  1076. if (!("alias" in $$source)) {
  1077. /**
  1078. * 本机名称(广播给其他设备)
  1079. * @member
  1080. * @type {string}
  1081. */
  1082. this["alias"] = "";
  1083. }
  1084. if (!("receiveDir" in $$source)) {
  1085. /**
  1086. * 接收文件保存目录
  1087. * @member
  1088. * @type {string}
  1089. */
  1090. this["receiveDir"] = "";
  1091. }
  1092. if (!("autoAccept" in $$source)) {
  1093. /**
  1094. * true=自动接收;false=手动确认
  1095. * @member
  1096. * @type {boolean}
  1097. */
  1098. this["autoAccept"] = false;
  1099. }
  1100. if (!("port" in $$source)) {
  1101. /**
  1102. * 监听端口
  1103. * @member
  1104. * @type {number}
  1105. */
  1106. this["port"] = 0;
  1107. }
  1108. if (!("fingerprint" in $$source)) {
  1109. /**
  1110. * 本机证书指纹
  1111. * @member
  1112. * @type {string}
  1113. */
  1114. this["fingerprint"] = "";
  1115. }
  1116. Object.assign(this, $$source);
  1117. }
  1118. /**
  1119. * Creates a new LocalSendConfig instance from a string or object.
  1120. * @param {any} [$$source = {}]
  1121. * @returns {LocalSendConfig}
  1122. */
  1123. static createFrom($$source = {}) {
  1124. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1125. return new LocalSendConfig(/** @type {Partial<LocalSendConfig>} */($$parsedSource));
  1126. }
  1127. }
  1128. /**
  1129. * LocalTool 本地资源/工具配置项(「本地」页,在设置中维护)
  1130. */
  1131. export class LocalTool {
  1132. /**
  1133. * Creates a new LocalTool instance.
  1134. * @param {Partial<LocalTool>} [$$source = {}] - The source object to create the LocalTool.
  1135. */
  1136. constructor($$source = {}) {
  1137. if (!("title" in $$source)) {
  1138. /**
  1139. * 显示标题
  1140. * @member
  1141. * @type {string}
  1142. */
  1143. this["title"] = "";
  1144. }
  1145. if (!("cmd" in $$source)) {
  1146. /**
  1147. * 启动命令(程序/脚本,可带参数与环境变量)
  1148. * @member
  1149. * @type {string}
  1150. */
  1151. this["cmd"] = "";
  1152. }
  1153. if (!("desc" in $$source)) {
  1154. /**
  1155. * 说明文字(可空)
  1156. * @member
  1157. * @type {string}
  1158. */
  1159. this["desc"] = "";
  1160. }
  1161. Object.assign(this, $$source);
  1162. }
  1163. /**
  1164. * Creates a new LocalTool instance from a string or object.
  1165. * @param {any} [$$source = {}]
  1166. * @returns {LocalTool}
  1167. */
  1168. static createFrom($$source = {}) {
  1169. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1170. return new LocalTool(/** @type {Partial<LocalTool>} */($$parsedSource));
  1171. }
  1172. }
  1173. /**
  1174. * MemosConfig 保存 Memos 速记所需的配置。
  1175. */
  1176. export class MemosConfig {
  1177. /**
  1178. * Creates a new MemosConfig instance.
  1179. * @param {Partial<MemosConfig>} [$$source = {}] - The source object to create the MemosConfig.
  1180. */
  1181. constructor($$source = {}) {
  1182. if (!("url" in $$source)) {
  1183. /**
  1184. * 实例地址,如 https://m.scwy.net
  1185. * @member
  1186. * @type {string}
  1187. */
  1188. this["url"] = "";
  1189. }
  1190. if (!("token" in $$source)) {
  1191. /**
  1192. * 个人访问令牌(PAT),只存本地
  1193. * @member
  1194. * @type {string}
  1195. */
  1196. this["token"] = "";
  1197. }
  1198. Object.assign(this, $$source);
  1199. }
  1200. /**
  1201. * Creates a new MemosConfig instance from a string or object.
  1202. * @param {any} [$$source = {}]
  1203. * @returns {MemosConfig}
  1204. */
  1205. static createFrom($$source = {}) {
  1206. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1207. return new MemosConfig(/** @type {Partial<MemosConfig>} */($$parsedSource));
  1208. }
  1209. }
  1210. /**
  1211. * MinuteChart 分时图数据
  1212. */
  1213. export class MinuteChart {
  1214. /**
  1215. * Creates a new MinuteChart instance.
  1216. * @param {Partial<MinuteChart>} [$$source = {}] - The source object to create the MinuteChart.
  1217. */
  1218. constructor($$source = {}) {
  1219. if (!("code" in $$source)) {
  1220. /**
  1221. * 股票代码
  1222. * @member
  1223. * @type {string}
  1224. */
  1225. this["code"] = "";
  1226. }
  1227. if (!("prevClose" in $$source)) {
  1228. /**
  1229. * 昨收,作为分时基准线
  1230. * @member
  1231. * @type {number}
  1232. */
  1233. this["prevClose"] = 0;
  1234. }
  1235. if (!("points" in $$source)) {
  1236. /**
  1237. * 分时点序列
  1238. * @member
  1239. * @type {MinutePoint[]}
  1240. */
  1241. this["points"] = [];
  1242. }
  1243. Object.assign(this, $$source);
  1244. }
  1245. /**
  1246. * Creates a new MinuteChart instance from a string or object.
  1247. * @param {any} [$$source = {}]
  1248. * @returns {MinuteChart}
  1249. */
  1250. static createFrom($$source = {}) {
  1251. const $$createField2_0 = $$createType25;
  1252. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1253. if ("points" in $$parsedSource) {
  1254. $$parsedSource["points"] = $$createField2_0($$parsedSource["points"]);
  1255. }
  1256. return new MinuteChart(/** @type {Partial<MinuteChart>} */($$parsedSource));
  1257. }
  1258. }
  1259. /**
  1260. * MinutePoint 分时图上的一个点
  1261. */
  1262. export class MinutePoint {
  1263. /**
  1264. * Creates a new MinutePoint instance.
  1265. * @param {Partial<MinutePoint>} [$$source = {}] - The source object to create the MinutePoint.
  1266. */
  1267. constructor($$source = {}) {
  1268. if (!("time" in $$source)) {
  1269. /**
  1270. * HH:MM
  1271. * @member
  1272. * @type {string}
  1273. */
  1274. this["time"] = "";
  1275. }
  1276. if (!("price" in $$source)) {
  1277. /**
  1278. * 当前价
  1279. * @member
  1280. * @type {number}
  1281. */
  1282. this["price"] = 0;
  1283. }
  1284. if (!("avg" in $$source)) {
  1285. /**
  1286. * 均价
  1287. * @member
  1288. * @type {number}
  1289. */
  1290. this["avg"] = 0;
  1291. }
  1292. Object.assign(this, $$source);
  1293. }
  1294. /**
  1295. * Creates a new MinutePoint instance from a string or object.
  1296. * @param {any} [$$source = {}]
  1297. * @returns {MinutePoint}
  1298. */
  1299. static createFrom($$source = {}) {
  1300. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1301. return new MinutePoint(/** @type {Partial<MinutePoint>} */($$parsedSource));
  1302. }
  1303. }
  1304. /**
  1305. * MonitorBrightnessInfo 单个显示器的亮度状态(返回给前端渲染滑块)
  1306. */
  1307. export class MonitorBrightnessInfo {
  1308. /**
  1309. * Creates a new MonitorBrightnessInfo instance.
  1310. * @param {Partial<MonitorBrightnessInfo>} [$$source = {}] - The source object to create the MonitorBrightnessInfo.
  1311. */
  1312. constructor($$source = {}) {
  1313. if (!("index" in $$source)) {
  1314. /**
  1315. * 显示器序号(与 SetBrightness 的 index 一致)
  1316. * @member
  1317. * @type {number}
  1318. */
  1319. this["index"] = 0;
  1320. }
  1321. if (!("name" in $$source)) {
  1322. /**
  1323. * 显示器名称(物理监视器描述,取不到时用设备名)
  1324. * @member
  1325. * @type {string}
  1326. */
  1327. this["name"] = "";
  1328. }
  1329. if (!("percent" in $$source)) {
  1330. /**
  1331. * 当前亮度百分比 0-100
  1332. * @member
  1333. * @type {number}
  1334. */
  1335. this["percent"] = 0;
  1336. }
  1337. if (!("hardware" in $$source)) {
  1338. /**
  1339. * true=DDC/CI 硬件调光;false=Gamma 软件调光
  1340. * @member
  1341. * @type {boolean}
  1342. */
  1343. this["hardware"] = false;
  1344. }
  1345. Object.assign(this, $$source);
  1346. }
  1347. /**
  1348. * Creates a new MonitorBrightnessInfo instance from a string or object.
  1349. * @param {any} [$$source = {}]
  1350. * @returns {MonitorBrightnessInfo}
  1351. */
  1352. static createFrom($$source = {}) {
  1353. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1354. return new MonitorBrightnessInfo(/** @type {Partial<MonitorBrightnessInfo>} */($$parsedSource));
  1355. }
  1356. }
  1357. /**
  1358. * MouseAlertConfig 系统级鼠标提醒气泡的显示配置
  1359. */
  1360. export class MouseAlertConfig {
  1361. /**
  1362. * Creates a new MouseAlertConfig instance.
  1363. * @param {Partial<MouseAlertConfig>} [$$source = {}] - The source object to create the MouseAlertConfig.
  1364. */
  1365. constructor($$source = {}) {
  1366. if (!("fontSize" in $$source)) {
  1367. /**
  1368. * 字号(px)
  1369. * @member
  1370. * @type {number}
  1371. */
  1372. this["fontSize"] = 0;
  1373. }
  1374. if (!("width" in $$source)) {
  1375. /**
  1376. * 气泡窗口宽度(px)
  1377. * @member
  1378. * @type {number}
  1379. */
  1380. this["width"] = 0;
  1381. }
  1382. if (!("speed" in $$source)) {
  1383. /**
  1384. * 超长文字滚动速度(px/s)
  1385. * @member
  1386. * @type {number}
  1387. */
  1388. this["speed"] = 0;
  1389. }
  1390. if (!("color" in $$source)) {
  1391. /**
  1392. * 文字颜色
  1393. * @member
  1394. * @type {string}
  1395. */
  1396. this["color"] = "";
  1397. }
  1398. if (!("background" in $$source)) {
  1399. /**
  1400. * 气泡背景色(COLORKEY 抠成透明,仅作底色参考)
  1401. * @member
  1402. * @type {string}
  1403. */
  1404. this["background"] = "";
  1405. }
  1406. if (!("duration" in $$source)) {
  1407. /**
  1408. * 显示时长(秒)
  1409. * @member
  1410. * @type {number}
  1411. */
  1412. this["duration"] = 0;
  1413. }
  1414. if (!("outlineColor" in $$source)) {
  1415. /**
  1416. * 文字描边颜色(白边/黑边,与文字形成反差)
  1417. * @member
  1418. * @type {string}
  1419. */
  1420. this["outlineColor"] = "";
  1421. }
  1422. if (!("outlineWidth" in $$source)) {
  1423. /**
  1424. * 文字描边宽度(px),0 表示关闭描边
  1425. * @member
  1426. * @type {number}
  1427. */
  1428. this["outlineWidth"] = 0;
  1429. }
  1430. Object.assign(this, $$source);
  1431. }
  1432. /**
  1433. * Creates a new MouseAlertConfig instance from a string or object.
  1434. * @param {any} [$$source = {}]
  1435. * @returns {MouseAlertConfig}
  1436. */
  1437. static createFrom($$source = {}) {
  1438. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1439. return new MouseAlertConfig(/** @type {Partial<MouseAlertConfig>} */($$parsedSource));
  1440. }
  1441. }
  1442. /**
  1443. * NewsItem 一条新闻标题,供「新闻」页与新闻滚动条使用
  1444. */
  1445. export class NewsItem {
  1446. /**
  1447. * Creates a new NewsItem instance.
  1448. * @param {Partial<NewsItem>} [$$source = {}] - The source object to create the NewsItem.
  1449. */
  1450. constructor($$source = {}) {
  1451. if (!("source" in $$source)) {
  1452. /**
  1453. * 来源:煎蛋 / 腾讯 / Solidot / 财联社 / 热榜
  1454. * @member
  1455. * @type {string}
  1456. */
  1457. this["source"] = "";
  1458. }
  1459. if (!("title" in $$source)) {
  1460. /**
  1461. * 标题
  1462. * @member
  1463. * @type {string}
  1464. */
  1465. this["title"] = "";
  1466. }
  1467. if (!("url" in $$source)) {
  1468. /**
  1469. * 详情页地址
  1470. * @member
  1471. * @type {string}
  1472. */
  1473. this["url"] = "";
  1474. }
  1475. if (!("matched" in $$source)) {
  1476. /**
  1477. * 是否命中关注关键词
  1478. * @member
  1479. * @type {boolean}
  1480. */
  1481. this["matched"] = false;
  1482. }
  1483. if (!("hits" in $$source)) {
  1484. /**
  1485. * 命中的关键词个数(越多排越前,前端按档位配色)
  1486. * @member
  1487. * @type {number}
  1488. */
  1489. this["hits"] = 0;
  1490. }
  1491. Object.assign(this, $$source);
  1492. }
  1493. /**
  1494. * Creates a new NewsItem instance from a string or object.
  1495. * @param {any} [$$source = {}]
  1496. * @returns {NewsItem}
  1497. */
  1498. static createFrom($$source = {}) {
  1499. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1500. return new NewsItem(/** @type {Partial<NewsItem>} */($$parsedSource));
  1501. }
  1502. }
  1503. /**
  1504. * PCStatus 电源命令状态快照,供 API 与「主机」页查询
  1505. */
  1506. export class PCStatus {
  1507. /**
  1508. * Creates a new PCStatus instance.
  1509. * @param {Partial<PCStatus>} [$$source = {}] - The source object to create the PCStatus.
  1510. */
  1511. constructor($$source = {}) {
  1512. if (!("command" in $$source)) {
  1513. /**
  1514. * 最近一次命令类型
  1515. * @member
  1516. * @type {string}
  1517. */
  1518. this["command"] = "";
  1519. }
  1520. if (!("pending" in $$source)) {
  1521. /**
  1522. * 是否有待执行命令
  1523. * @member
  1524. * @type {boolean}
  1525. */
  1526. this["pending"] = false;
  1527. }
  1528. if (!("executeAt" in $$source)) {
  1529. /**
  1530. * 计划执行时间
  1531. * @member
  1532. * @type {string}
  1533. */
  1534. this["executeAt"] = "";
  1535. }
  1536. if (!("remainingSecs" in $$source)) {
  1537. /**
  1538. * 剩余秒数
  1539. * @member
  1540. * @type {number}
  1541. */
  1542. this["remainingSecs"] = 0;
  1543. }
  1544. if (!("clientIp" in $$source)) {
  1545. /**
  1546. * 最近一次请求的客户端 IP
  1547. * @member
  1548. * @type {string}
  1549. */
  1550. this["clientIp"] = "";
  1551. }
  1552. if (!("requestTime" in $$source)) {
  1553. /**
  1554. * 最近一次请求时间
  1555. * @member
  1556. * @type {string}
  1557. */
  1558. this["requestTime"] = "";
  1559. }
  1560. if (!("requested" in $$source)) {
  1561. /**
  1562. * 是否收到过请求
  1563. * @member
  1564. * @type {boolean}
  1565. */
  1566. this["requested"] = false;
  1567. }
  1568. Object.assign(this, $$source);
  1569. }
  1570. /**
  1571. * Creates a new PCStatus instance from a string or object.
  1572. * @param {any} [$$source = {}]
  1573. * @returns {PCStatus}
  1574. */
  1575. static createFrom($$source = {}) {
  1576. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1577. return new PCStatus(/** @type {Partial<PCStatus>} */($$parsedSource));
  1578. }
  1579. }
  1580. /**
  1581. * PoemConfig 古诗显示的配置
  1582. */
  1583. export class PoemConfig {
  1584. /**
  1585. * Creates a new PoemConfig instance.
  1586. * @param {Partial<PoemConfig>} [$$source = {}] - The source object to create the PoemConfig.
  1587. */
  1588. constructor($$source = {}) {
  1589. if (!("enabled" in $$source)) {
  1590. /**
  1591. * 是否启用古诗显示
  1592. * @member
  1593. * @type {boolean}
  1594. */
  1595. this["enabled"] = false;
  1596. }
  1597. if (!("color" in $$source)) {
  1598. /**
  1599. * 文字颜色
  1600. * @member
  1601. * @type {string}
  1602. */
  1603. this["color"] = "";
  1604. }
  1605. if (!("fontSize" in $$source)) {
  1606. /**
  1607. * 字号(px)
  1608. * @member
  1609. * @type {number}
  1610. */
  1611. this["fontSize"] = 0;
  1612. }
  1613. if (!("tts" in $$source)) {
  1614. /**
  1615. * 允许 TTS 阅读(显示朗读按钮)
  1616. * @member
  1617. * @type {boolean}
  1618. */
  1619. this["tts"] = false;
  1620. }
  1621. if (!("interval" in $$source)) {
  1622. /**
  1623. * 自动换诗间隔(秒),0 表示不自动换
  1624. * @member
  1625. * @type {number}
  1626. */
  1627. this["interval"] = 0;
  1628. }
  1629. if (!("speed" in $$source)) {
  1630. /**
  1631. * 滚动速度(秒/轮),即滚动一个文本周期所需秒数,越小越快
  1632. * @member
  1633. * @type {number}
  1634. */
  1635. this["speed"] = 0;
  1636. }
  1637. Object.assign(this, $$source);
  1638. }
  1639. /**
  1640. * Creates a new PoemConfig instance from a string or object.
  1641. * @param {any} [$$source = {}]
  1642. * @returns {PoemConfig}
  1643. */
  1644. static createFrom($$source = {}) {
  1645. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1646. return new PoemConfig(/** @type {Partial<PoemConfig>} */($$parsedSource));
  1647. }
  1648. }
  1649. /**
  1650. * PoemData 一首古诗的完整数据(从接口解析)
  1651. */
  1652. export class PoemData {
  1653. /**
  1654. * Creates a new PoemData instance.
  1655. * @param {Partial<PoemData>} [$$source = {}] - The source object to create the PoemData.
  1656. */
  1657. constructor($$source = {}) {
  1658. if (!("title" in $$source)) {
  1659. /**
  1660. * 题目
  1661. * @member
  1662. * @type {string}
  1663. */
  1664. this["title"] = "";
  1665. }
  1666. if (!("author" in $$source)) {
  1667. /**
  1668. * 作者
  1669. * @member
  1670. * @type {string}
  1671. */
  1672. this["author"] = "";
  1673. }
  1674. if (!("dynasty" in $$source)) {
  1675. /**
  1676. * 朝代
  1677. * @member
  1678. * @type {string}
  1679. */
  1680. this["dynasty"] = "";
  1681. }
  1682. if (!("content" in $$source)) {
  1683. /**
  1684. * 每句诗(数组,按行显示)
  1685. * @member
  1686. * @type {string[]}
  1687. */
  1688. this["content"] = [];
  1689. }
  1690. if (!("type" in $$source)) {
  1691. /**
  1692. * 体裁,如 五言律诗
  1693. * @member
  1694. * @type {string}
  1695. */
  1696. this["type"] = "";
  1697. }
  1698. Object.assign(this, $$source);
  1699. }
  1700. /**
  1701. * Creates a new PoemData instance from a string or object.
  1702. * @param {any} [$$source = {}]
  1703. * @returns {PoemData}
  1704. */
  1705. static createFrom($$source = {}) {
  1706. const $$createField3_0 = $$createType0;
  1707. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1708. if ("content" in $$parsedSource) {
  1709. $$parsedSource["content"] = $$createField3_0($$parsedSource["content"]);
  1710. }
  1711. return new PoemData(/** @type {Partial<PoemData>} */($$parsedSource));
  1712. }
  1713. }
  1714. /**
  1715. * ProxyConfig 网络代理配置(工具页「网络代理」卡片)。
  1716. * 仅保存地址,开关状态由系统代理注册表(ProxyEnable)实时决定,不在配置里持久化。
  1717. */
  1718. export class ProxyConfig {
  1719. /**
  1720. * Creates a new ProxyConfig instance.
  1721. * @param {Partial<ProxyConfig>} [$$source = {}] - The source object to create the ProxyConfig.
  1722. */
  1723. constructor($$source = {}) {
  1724. if (!("server" in $$source)) {
  1725. /**
  1726. * 代理服务器地址,如 127.0.0.1:7890
  1727. * @member
  1728. * @type {string}
  1729. */
  1730. this["server"] = "";
  1731. }
  1732. Object.assign(this, $$source);
  1733. }
  1734. /**
  1735. * Creates a new ProxyConfig instance from a string or object.
  1736. * @param {any} [$$source = {}]
  1737. * @returns {ProxyConfig}
  1738. */
  1739. static createFrom($$source = {}) {
  1740. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1741. return new ProxyConfig(/** @type {Partial<ProxyConfig>} */($$parsedSource));
  1742. }
  1743. }
  1744. /**
  1745. * ProxyStatus 网络代理当前状态
  1746. */
  1747. export class ProxyStatus {
  1748. /**
  1749. * Creates a new ProxyStatus instance.
  1750. * @param {Partial<ProxyStatus>} [$$source = {}] - The source object to create the ProxyStatus.
  1751. */
  1752. constructor($$source = {}) {
  1753. if (!("enabled" in $$source)) {
  1754. /**
  1755. * 系统代理是否开启
  1756. * @member
  1757. * @type {boolean}
  1758. */
  1759. this["enabled"] = false;
  1760. }
  1761. if (!("server" in $$source)) {
  1762. /**
  1763. * 代理服务器地址(如 127.0.0.1:7890)
  1764. * @member
  1765. * @type {string}
  1766. */
  1767. this["server"] = "";
  1768. }
  1769. if (!("configured" in $$source)) {
  1770. /**
  1771. * 配置里是否保存了代理地址(用于前端区分「未设置」)
  1772. * @member
  1773. * @type {boolean}
  1774. */
  1775. this["configured"] = false;
  1776. }
  1777. Object.assign(this, $$source);
  1778. }
  1779. /**
  1780. * Creates a new ProxyStatus instance from a string or object.
  1781. * @param {any} [$$source = {}]
  1782. * @returns {ProxyStatus}
  1783. */
  1784. static createFrom($$source = {}) {
  1785. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1786. return new ProxyStatus(/** @type {Partial<ProxyStatus>} */($$parsedSource));
  1787. }
  1788. }
  1789. /**
  1790. * RecordItem 一条记录:姓名 + 名称 + 值 + 备注 + 录入时间,供记录 Tab 列表与柱状图使用
  1791. */
  1792. export class RecordItem {
  1793. /**
  1794. * Creates a new RecordItem instance.
  1795. * @param {Partial<RecordItem>} [$$source = {}] - The source object to create the RecordItem.
  1796. */
  1797. constructor($$source = {}) {
  1798. if (!("name" in $$source)) {
  1799. /**
  1800. * 姓名
  1801. * @member
  1802. * @type {string}
  1803. */
  1804. this["name"] = "";
  1805. }
  1806. if (!("item" in $$source)) {
  1807. /**
  1808. * 名称
  1809. * @member
  1810. * @type {string}
  1811. */
  1812. this["item"] = "";
  1813. }
  1814. if (!("value" in $$source)) {
  1815. /**
  1816. * 值
  1817. * @member
  1818. * @type {number}
  1819. */
  1820. this["value"] = 0;
  1821. }
  1822. if (!("remark" in $$source)) {
  1823. /**
  1824. * 备注(可选)
  1825. * @member
  1826. * @type {string}
  1827. */
  1828. this["remark"] = "";
  1829. }
  1830. if (!("createdAt" in $$source)) {
  1831. /**
  1832. * 录入时间 YYYY-MM-DD HH:MM:SS(前端新增时生成;为空时后端用当前时间)
  1833. * @member
  1834. * @type {string}
  1835. */
  1836. this["createdAt"] = "";
  1837. }
  1838. Object.assign(this, $$source);
  1839. }
  1840. /**
  1841. * Creates a new RecordItem instance from a string or object.
  1842. * @param {any} [$$source = {}]
  1843. * @returns {RecordItem}
  1844. */
  1845. static createFrom($$source = {}) {
  1846. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1847. return new RecordItem(/** @type {Partial<RecordItem>} */($$parsedSource));
  1848. }
  1849. }
  1850. /**
  1851. * ReleaseItem 一个 GitHub release 的简略信息,用于列出 Latest 之后的版本(Pre-release 等)
  1852. */
  1853. export class ReleaseItem {
  1854. /**
  1855. * Creates a new ReleaseItem instance.
  1856. * @param {Partial<ReleaseItem>} [$$source = {}] - The source object to create the ReleaseItem.
  1857. */
  1858. constructor($$source = {}) {
  1859. if (!("tagName" in $$source)) {
  1860. /**
  1861. * 版本标签,如 v1.3.0-beta.1
  1862. * @member
  1863. * @type {string}
  1864. */
  1865. this["tagName"] = "";
  1866. }
  1867. if (!("name" in $$source)) {
  1868. /**
  1869. * release 显示名称(标题),可能比 tag 更完整,如 "Rolling: v2.1.0-..."
  1870. * @member
  1871. * @type {string}
  1872. */
  1873. this["name"] = "";
  1874. }
  1875. if (!("url" in $$source)) {
  1876. /**
  1877. * release 详情页地址
  1878. * @member
  1879. * @type {string}
  1880. */
  1881. this["url"] = "";
  1882. }
  1883. if (!("isPrerelease" in $$source)) {
  1884. /**
  1885. * 是否预发布版本
  1886. * @member
  1887. * @type {boolean}
  1888. */
  1889. this["isPrerelease"] = false;
  1890. }
  1891. if (!("isDraft" in $$source)) {
  1892. /**
  1893. * 是否草稿版本
  1894. * @member
  1895. * @type {boolean}
  1896. */
  1897. this["isDraft"] = false;
  1898. }
  1899. if (!("publishedAt" in $$source)) {
  1900. /**
  1901. * 发布时间(MM-DD HH:MM)
  1902. * @member
  1903. * @type {string}
  1904. */
  1905. this["publishedAt"] = "";
  1906. }
  1907. Object.assign(this, $$source);
  1908. }
  1909. /**
  1910. * Creates a new ReleaseItem instance from a string or object.
  1911. * @param {any} [$$source = {}]
  1912. * @returns {ReleaseItem}
  1913. */
  1914. static createFrom($$source = {}) {
  1915. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  1916. return new ReleaseItem(/** @type {Partial<ReleaseItem>} */($$parsedSource));
  1917. }
  1918. }
  1919. /**
  1920. * RepoFeed 一个 GitHub 仓库的最新提交摘要
  1921. */
  1922. export class RepoFeed {
  1923. /**
  1924. * Creates a new RepoFeed instance.
  1925. * @param {Partial<RepoFeed>} [$$source = {}] - The source object to create the RepoFeed.
  1926. */
  1927. constructor($$source = {}) {
  1928. if (!("url" in $$source)) {
  1929. /**
  1930. * 仓库地址(设置中配置)
  1931. * @member
  1932. * @type {string}
  1933. */
  1934. this["url"] = "";
  1935. }
  1936. if (!("desc" in $$source)) {
  1937. /**
  1938. * 项目说明
  1939. * @member
  1940. * @type {string}
  1941. */
  1942. this["desc"] = "";
  1943. }
  1944. if (!("repo" in $$source)) {
  1945. /**
  1946. * owner/repo 短名
  1947. * @member
  1948. * @type {string}
  1949. */
  1950. this["repo"] = "";
  1951. }
  1952. if (!("version" in $$source)) {
  1953. /**
  1954. * 本地已安装版本(设置中配置)
  1955. * @member
  1956. * @type {string}
  1957. */
  1958. this["version"] = "";
  1959. }
  1960. if (!("versionTime" in $$source)) {
  1961. /**
  1962. * 本地版本对应 release 的发布时间(MM-DD HH:MM),用于鼠标提示
  1963. * @member
  1964. * @type {string}
  1965. */
  1966. this["versionTime"] = "";
  1967. }
  1968. if (!("latest" in $$source)) {
  1969. /**
  1970. * 最新正式 release 版本号,无正式 release 时为空
  1971. * @member
  1972. * @type {string}
  1973. */
  1974. this["latest"] = "";
  1975. }
  1976. if (!("latestTime" in $$source)) {
  1977. /**
  1978. * 最新正式 release 发布时间(MM-DD HH:MM),用于鼠标提示
  1979. * @member
  1980. * @type {string}
  1981. */
  1982. this["latestTime"] = "";
  1983. }
  1984. if (!("hasUpdate" in $$source)) {
  1985. /**
  1986. * 是否存在可用更新(本地版本低于最新正式 release)
  1987. * @member
  1988. * @type {boolean}
  1989. */
  1990. this["hasUpdate"] = false;
  1991. }
  1992. if (!("releaseURL" in $$source)) {
  1993. /**
  1994. * 最新正式 release 的下载 / 详情页地址
  1995. * @member
  1996. * @type {string}
  1997. */
  1998. this["releaseURL"] = "";
  1999. }
  2000. if (!("newer" in $$source)) {
  2001. /**
  2002. * Latest 之后的版本(Pre-release 等,仅列出不参与更新比较)
  2003. * @member
  2004. * @type {ReleaseItem[]}
  2005. */
  2006. this["newer"] = [];
  2007. }
  2008. if (!("commits" in $$source)) {
  2009. /**
  2010. * 最近提交(最多 5 条)
  2011. * @member
  2012. * @type {CommitItem[]}
  2013. */
  2014. this["commits"] = [];
  2015. }
  2016. if (!("error" in $$source)) {
  2017. /**
  2018. * 抓取失败原因,为空表示正常
  2019. * @member
  2020. * @type {string}
  2021. */
  2022. this["error"] = "";
  2023. }
  2024. Object.assign(this, $$source);
  2025. }
  2026. /**
  2027. * Creates a new RepoFeed instance from a string or object.
  2028. * @param {any} [$$source = {}]
  2029. * @returns {RepoFeed}
  2030. */
  2031. static createFrom($$source = {}) {
  2032. const $$createField9_0 = $$createType27;
  2033. const $$createField10_0 = $$createType29;
  2034. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  2035. if ("newer" in $$parsedSource) {
  2036. $$parsedSource["newer"] = $$createField9_0($$parsedSource["newer"]);
  2037. }
  2038. if ("commits" in $$parsedSource) {
  2039. $$parsedSource["commits"] = $$createField10_0($$parsedSource["commits"]);
  2040. }
  2041. return new RepoFeed(/** @type {Partial<RepoFeed>} */($$parsedSource));
  2042. }
  2043. }
  2044. /**
  2045. * RepoItem 关注的 GitHub 仓库条目
  2046. */
  2047. export class RepoItem {
  2048. /**
  2049. * Creates a new RepoItem instance.
  2050. * @param {Partial<RepoItem>} [$$source = {}] - The source object to create the RepoItem.
  2051. */
  2052. constructor($$source = {}) {
  2053. if (!("url" in $$source)) {
  2054. /**
  2055. * 仓库地址,如 https://github.com/wailsapp/wails
  2056. * @member
  2057. * @type {string}
  2058. */
  2059. this["url"] = "";
  2060. }
  2061. if (!("desc" in $$source)) {
  2062. /**
  2063. * 项目说明
  2064. * @member
  2065. * @type {string}
  2066. */
  2067. this["desc"] = "";
  2068. }
  2069. if (!("version" in $$source)) {
  2070. /**
  2071. * 本地已安装版本(用于与最新 release 比较),可为空
  2072. * @member
  2073. * @type {string}
  2074. */
  2075. this["version"] = "";
  2076. }
  2077. Object.assign(this, $$source);
  2078. }
  2079. /**
  2080. * Creates a new RepoItem instance from a string or object.
  2081. * @param {any} [$$source = {}]
  2082. * @returns {RepoItem}
  2083. */
  2084. static createFrom($$source = {}) {
  2085. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  2086. return new RepoItem(/** @type {Partial<RepoItem>} */($$parsedSource));
  2087. }
  2088. }
  2089. /**
  2090. * ServiceModeStatus 服务模式运行状态(服务页展示)
  2091. */
  2092. export class ServiceModeStatus {
  2093. /**
  2094. * Creates a new ServiceModeStatus instance.
  2095. * @param {Partial<ServiceModeStatus>} [$$source = {}] - The source object to create the ServiceModeStatus.
  2096. */
  2097. constructor($$source = {}) {
  2098. if (!("addr" in $$source)) {
  2099. /**
  2100. * 服务模式监听地址
  2101. * @member
  2102. * @type {string}
  2103. */
  2104. this["addr"] = "";
  2105. }
  2106. if (!("running" in $$source)) {
  2107. /**
  2108. * 该地址上的电源 API 是否可用
  2109. * @member
  2110. * @type {boolean}
  2111. */
  2112. this["running"] = false;
  2113. }
  2114. if (!("managed" in $$source)) {
  2115. /**
  2116. * true=由真正的 Windows 服务提供;false=界面进程兜底
  2117. * @member
  2118. * @type {boolean}
  2119. */
  2120. this["managed"] = false;
  2121. }
  2122. if (!("occupied" in $$source)) {
  2123. /**
  2124. * 端口被其他程序占用(既非服务模式也非本程序)
  2125. * @member
  2126. * @type {boolean}
  2127. */
  2128. this["occupied"] = false;
  2129. }
  2130. if (!("version" in $$source)) {
  2131. /**
  2132. * 服务端版本(可用时)
  2133. * @member
  2134. * @type {string}
  2135. */
  2136. this["version"] = "";
  2137. }
  2138. Object.assign(this, $$source);
  2139. }
  2140. /**
  2141. * Creates a new ServiceModeStatus instance from a string or object.
  2142. * @param {any} [$$source = {}]
  2143. * @returns {ServiceModeStatus}
  2144. */
  2145. static createFrom($$source = {}) {
  2146. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  2147. return new ServiceModeStatus(/** @type {Partial<ServiceModeStatus>} */($$parsedSource));
  2148. }
  2149. }
  2150. /**
  2151. * StockQuote 单只股票的行情快照,供前端「股市」页展示
  2152. */
  2153. export class StockQuote {
  2154. /**
  2155. * Creates a new StockQuote instance.
  2156. * @param {Partial<StockQuote>} [$$source = {}] - The source object to create the StockQuote.
  2157. */
  2158. constructor($$source = {}) {
  2159. if (!("code" in $$source)) {
  2160. /**
  2161. * 带市场前缀的代码,如 sh600519
  2162. * @member
  2163. * @type {string}
  2164. */
  2165. this["code"] = "";
  2166. }
  2167. if (!("name" in $$source)) {
  2168. /**
  2169. * 股票名称
  2170. * @member
  2171. * @type {string}
  2172. */
  2173. this["name"] = "";
  2174. }
  2175. if (!("price" in $$source)) {
  2176. /**
  2177. * 当前价
  2178. * @member
  2179. * @type {number}
  2180. */
  2181. this["price"] = 0;
  2182. }
  2183. if (!("change" in $$source)) {
  2184. /**
  2185. * 涨跌额
  2186. * @member
  2187. * @type {number}
  2188. */
  2189. this["change"] = 0;
  2190. }
  2191. if (!("changePercent" in $$source)) {
  2192. /**
  2193. * 涨跌幅(%)
  2194. * @member
  2195. * @type {number}
  2196. */
  2197. this["changePercent"] = 0;
  2198. }
  2199. if (!("amount" in $$source)) {
  2200. /**
  2201. * 成交额(万元)
  2202. * @member
  2203. * @type {number}
  2204. */
  2205. this["amount"] = 0;
  2206. }
  2207. if (!("time" in $$source)) {
  2208. /**
  2209. * 行情时间 HH:MM:SS
  2210. * @member
  2211. * @type {string}
  2212. */
  2213. this["time"] = "";
  2214. }
  2215. Object.assign(this, $$source);
  2216. }
  2217. /**
  2218. * Creates a new StockQuote instance from a string or object.
  2219. * @param {any} [$$source = {}]
  2220. * @returns {StockQuote}
  2221. */
  2222. static createFrom($$source = {}) {
  2223. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  2224. return new StockQuote(/** @type {Partial<StockQuote>} */($$parsedSource));
  2225. }
  2226. }
  2227. /**
  2228. * TickerConfig 置顶滚动条(股票 / 新闻)的显示配置
  2229. */
  2230. export class TickerConfig {
  2231. /**
  2232. * Creates a new TickerConfig instance.
  2233. * @param {Partial<TickerConfig>} [$$source = {}] - The source object to create the TickerConfig.
  2234. */
  2235. constructor($$source = {}) {
  2236. if (!("enabled" in $$source)) {
  2237. /**
  2238. * 是否显示滚动条窗口
  2239. * @member
  2240. * @type {boolean}
  2241. */
  2242. this["enabled"] = false;
  2243. }
  2244. if (!("width" in $$source)) {
  2245. /**
  2246. * 窗口宽度(px),0 表示默认 1400
  2247. * @member
  2248. * @type {number}
  2249. */
  2250. this["width"] = 0;
  2251. }
  2252. if (!("fontSize" in $$source)) {
  2253. /**
  2254. * 字号(px)
  2255. * @member
  2256. * @type {number}
  2257. */
  2258. this["fontSize"] = 0;
  2259. }
  2260. if (!("color" in $$source)) {
  2261. /**
  2262. * 文字颜色
  2263. * @member
  2264. * @type {string}
  2265. */
  2266. this["color"] = "";
  2267. }
  2268. if (!("speed" in $$source)) {
  2269. /**
  2270. * 滚动速度(px/s)
  2271. * @member
  2272. * @type {number}
  2273. */
  2274. this["speed"] = 0;
  2275. }
  2276. if (!("transparent" in $$source)) {
  2277. /**
  2278. * 背景透明,不遮挡下方内容
  2279. * @member
  2280. * @type {boolean}
  2281. */
  2282. this["transparent"] = false;
  2283. }
  2284. if (!("x" in $$source)) {
  2285. /**
  2286. * 窗口位置,-1 表示未设置(系统默认位置)
  2287. * @member
  2288. * @type {number}
  2289. */
  2290. this["x"] = 0;
  2291. }
  2292. if (!("y" in $$source)) {
  2293. /**
  2294. * 窗口位置,-1 表示未设置
  2295. * @member
  2296. * @type {number}
  2297. */
  2298. this["y"] = 0;
  2299. }
  2300. Object.assign(this, $$source);
  2301. }
  2302. /**
  2303. * Creates a new TickerConfig instance from a string or object.
  2304. * @param {any} [$$source = {}]
  2305. * @returns {TickerConfig}
  2306. */
  2307. static createFrom($$source = {}) {
  2308. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  2309. return new TickerConfig(/** @type {Partial<TickerConfig>} */($$parsedSource));
  2310. }
  2311. }
  2312. /**
  2313. * TranslateResult 一次翻译的结果,供前端展示。
  2314. */
  2315. export class TranslateResult {
  2316. /**
  2317. * Creates a new TranslateResult instance.
  2318. * @param {Partial<TranslateResult>} [$$source = {}] - The source object to create the TranslateResult.
  2319. */
  2320. constructor($$source = {}) {
  2321. if (!("text" in $$source)) {
  2322. /**
  2323. * 翻译结果文本
  2324. * @member
  2325. * @type {string}
  2326. */
  2327. this["text"] = "";
  2328. }
  2329. if (!("detected" in $$source)) {
  2330. /**
  2331. * 检测到的源语言(zh / en)
  2332. * @member
  2333. * @type {string}
  2334. */
  2335. this["detected"] = "";
  2336. }
  2337. if (!("target" in $$source)) {
  2338. /**
  2339. * 目标语言(zh / en)
  2340. * @member
  2341. * @type {string}
  2342. */
  2343. this["target"] = "";
  2344. }
  2345. Object.assign(this, $$source);
  2346. }
  2347. /**
  2348. * Creates a new TranslateResult instance from a string or object.
  2349. * @param {any} [$$source = {}]
  2350. * @returns {TranslateResult}
  2351. */
  2352. static createFrom($$source = {}) {
  2353. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  2354. return new TranslateResult(/** @type {Partial<TranslateResult>} */($$parsedSource));
  2355. }
  2356. }
  2357. /**
  2358. * TrendingRepo 一个热门仓库条目(来源可为 GitHub Trending 或 HelloGitHub)
  2359. */
  2360. export class TrendingRepo {
  2361. /**
  2362. * Creates a new TrendingRepo instance.
  2363. * @param {Partial<TrendingRepo>} [$$source = {}] - The source object to create the TrendingRepo.
  2364. */
  2365. constructor($$source = {}) {
  2366. if (!("name" in $$source)) {
  2367. /**
  2368. * owner/repo 短名
  2369. * @member
  2370. * @type {string}
  2371. */
  2372. this["name"] = "";
  2373. }
  2374. if (!("url" in $$source)) {
  2375. /**
  2376. * 仓库主页地址(GitHub 直链)
  2377. * @member
  2378. * @type {string}
  2379. */
  2380. this["url"] = "";
  2381. }
  2382. if (!("desc" in $$source)) {
  2383. /**
  2384. * 简介(英文已自动翻译为中文,翻译失败保留原文)
  2385. * @member
  2386. * @type {string}
  2387. */
  2388. this["desc"] = "";
  2389. }
  2390. if (!("lang" in $$source)) {
  2391. /**
  2392. * 主要语言,无则空
  2393. * @member
  2394. * @type {string}
  2395. */
  2396. this["lang"] = "";
  2397. }
  2398. if (!("stars" in $$source)) {
  2399. /**
  2400. * 总星数(如 "106,375")
  2401. * @member
  2402. * @type {string}
  2403. */
  2404. this["stars"] = "";
  2405. }
  2406. if (!("todayStars" in $$source)) {
  2407. /**
  2408. * 今日新增星数(如 "1,140",无则空)
  2409. * @member
  2410. * @type {string}
  2411. */
  2412. this["todayStars"] = "";
  2413. }
  2414. if (!("forks" in $$source)) {
  2415. /**
  2416. * fork 数(如 "9,365",无则空)
  2417. * @member
  2418. * @type {string}
  2419. */
  2420. this["forks"] = "";
  2421. }
  2422. if (!("source" in $$source)) {
  2423. /**
  2424. * 来源:"github"(GitHub Trending)/ "hellogithub"
  2425. * @member
  2426. * @type {string}
  2427. */
  2428. this["source"] = "";
  2429. }
  2430. if (!("heat" in $$source)) {
  2431. /**
  2432. * 热度(HelloGitHub 点击量,其它来源为空)
  2433. * @member
  2434. * @type {string}
  2435. */
  2436. this["heat"] = "";
  2437. }
  2438. Object.assign(this, $$source);
  2439. }
  2440. /**
  2441. * Creates a new TrendingRepo instance from a string or object.
  2442. * @param {any} [$$source = {}]
  2443. * @returns {TrendingRepo}
  2444. */
  2445. static createFrom($$source = {}) {
  2446. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  2447. return new TrendingRepo(/** @type {Partial<TrendingRepo>} */($$parsedSource));
  2448. }
  2449. }
  2450. /**
  2451. * UDPInfo 描述一次 UDP 键值服务的运行状态,供前端展示。
  2452. */
  2453. export class UDPInfo {
  2454. /**
  2455. * Creates a new UDPInfo instance.
  2456. * @param {Partial<UDPInfo>} [$$source = {}] - The source object to create the UDPInfo.
  2457. */
  2458. constructor($$source = {}) {
  2459. if (!("running" in $$source)) {
  2460. /**
  2461. * 是否运行中
  2462. * @member
  2463. * @type {boolean}
  2464. */
  2465. this["running"] = false;
  2466. }
  2467. if (!("port" in $$source)) {
  2468. /**
  2469. * 监听端口
  2470. * @member
  2471. * @type {number}
  2472. */
  2473. this["port"] = 0;
  2474. }
  2475. if (!("addr" in $$source)) {
  2476. /**
  2477. * 监听地址 udp://0.0.0.0:port
  2478. * @member
  2479. * @type {string}
  2480. */
  2481. this["addr"] = "";
  2482. }
  2483. if (!("startedAt" in $$source)) {
  2484. /**
  2485. * 启动时间
  2486. * @member
  2487. * @type {string}
  2488. */
  2489. this["startedAt"] = "";
  2490. }
  2491. if (!("error" in $$source)) {
  2492. /**
  2493. * 最近一次错误
  2494. * @member
  2495. * @type {string}
  2496. */
  2497. this["error"] = "";
  2498. }
  2499. if (!("rxCount" in $$source)) {
  2500. /**
  2501. * 累计接收数据包数
  2502. * @member
  2503. * @type {number}
  2504. */
  2505. this["rxCount"] = 0;
  2506. }
  2507. if (!("txCount" in $$source)) {
  2508. /**
  2509. * 累计发送(回发/手动)数据包数
  2510. * @member
  2511. * @type {number}
  2512. */
  2513. this["txCount"] = 0;
  2514. }
  2515. Object.assign(this, $$source);
  2516. }
  2517. /**
  2518. * Creates a new UDPInfo instance from a string or object.
  2519. * @param {any} [$$source = {}]
  2520. * @returns {UDPInfo}
  2521. */
  2522. static createFrom($$source = {}) {
  2523. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  2524. return new UDPInfo(/** @type {Partial<UDPInfo>} */($$parsedSource));
  2525. }
  2526. }
  2527. /**
  2528. * WebServiceInfo 描述一次 Web 服务运行实例的状态,供前端展示。
  2529. */
  2530. export class WebServiceInfo {
  2531. /**
  2532. * Creates a new WebServiceInfo instance.
  2533. * @param {Partial<WebServiceInfo>} [$$source = {}] - The source object to create the WebServiceInfo.
  2534. */
  2535. constructor($$source = {}) {
  2536. if (!("running" in $$source)) {
  2537. /**
  2538. * 是否运行中
  2539. * @member
  2540. * @type {boolean}
  2541. */
  2542. this["running"] = false;
  2543. }
  2544. if (!("dir" in $$source)) {
  2545. /**
  2546. * 服务目录
  2547. * @member
  2548. * @type {string}
  2549. */
  2550. this["dir"] = "";
  2551. }
  2552. if (!("url" in $$source)) {
  2553. /**
  2554. * 访问地址 http://127.0.0.1:port/
  2555. * @member
  2556. * @type {string}
  2557. */
  2558. this["url"] = "";
  2559. }
  2560. if (!("indexName" in $$source)) {
  2561. /**
  2562. * 实际用作默认页的文件(index.html / readme.md / 空)
  2563. * @member
  2564. * @type {string}
  2565. */
  2566. this["indexName"] = "";
  2567. }
  2568. if (!("startedAt" in $$source)) {
  2569. /**
  2570. * 启动时间
  2571. * @member
  2572. * @type {string}
  2573. */
  2574. this["startedAt"] = "";
  2575. }
  2576. if (!("error" in $$source)) {
  2577. /**
  2578. * 最近一次错误
  2579. * @member
  2580. * @type {string}
  2581. */
  2582. this["error"] = "";
  2583. }
  2584. if (!("connections" in $$source)) {
  2585. /**
  2586. * 累计请求次数
  2587. * @member
  2588. * @type {number}
  2589. */
  2590. this["connections"] = 0;
  2591. }
  2592. Object.assign(this, $$source);
  2593. }
  2594. /**
  2595. * Creates a new WebServiceInfo instance from a string or object.
  2596. * @param {any} [$$source = {}]
  2597. * @returns {WebServiceInfo}
  2598. */
  2599. static createFrom($$source = {}) {
  2600. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  2601. return new WebServiceInfo(/** @type {Partial<WebServiceInfo>} */($$parsedSource));
  2602. }
  2603. }
  2604. /**
  2605. * YTDLPConfig 是「视频下载」的配置。
  2606. */
  2607. export class YTDLPConfig {
  2608. /**
  2609. * Creates a new YTDLPConfig instance.
  2610. * @param {Partial<YTDLPConfig>} [$$source = {}] - The source object to create the YTDLPConfig.
  2611. */
  2612. constructor($$source = {}) {
  2613. if (!("dir" in $$source)) {
  2614. /**
  2615. * 下载保存目录,空=程序当前工作目录
  2616. * @member
  2617. * @type {string}
  2618. */
  2619. this["dir"] = "";
  2620. }
  2621. if (!("mp3Quality" in $$source)) {
  2622. /**
  2623. * mp3 转换质量:0-9(VBR,0 最好)或 128K/192K/320K,默认 0
  2624. * @member
  2625. * @type {string}
  2626. */
  2627. this["mp3Quality"] = "";
  2628. }
  2629. Object.assign(this, $$source);
  2630. }
  2631. /**
  2632. * Creates a new YTDLPConfig instance from a string or object.
  2633. * @param {any} [$$source = {}]
  2634. * @returns {YTDLPConfig}
  2635. */
  2636. static createFrom($$source = {}) {
  2637. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  2638. return new YTDLPConfig(/** @type {Partial<YTDLPConfig>} */($$parsedSource));
  2639. }
  2640. }
  2641. /**
  2642. * YTDLPInfo 描述本机 yt-dlp 的可用性,用于前端决定是否展示工具卡片。
  2643. */
  2644. export class YTDLPInfo {
  2645. /**
  2646. * Creates a new YTDLPInfo instance.
  2647. * @param {Partial<YTDLPInfo>} [$$source = {}] - The source object to create the YTDLPInfo.
  2648. */
  2649. constructor($$source = {}) {
  2650. if (!("available" in $$source)) {
  2651. /**
  2652. * PATH 中是否找到 yt-dlp
  2653. * @member
  2654. * @type {boolean}
  2655. */
  2656. this["available"] = false;
  2657. }
  2658. if (!("path" in $$source)) {
  2659. /**
  2660. * yt-dlp 可执行文件路径
  2661. * @member
  2662. * @type {string}
  2663. */
  2664. this["path"] = "";
  2665. }
  2666. if (!("version" in $$source)) {
  2667. /**
  2668. * 版本信息(yt-dlp --version 输出)
  2669. * @member
  2670. * @type {string}
  2671. */
  2672. this["version"] = "";
  2673. }
  2674. if (!("ffmpeg" in $$source)) {
  2675. /**
  2676. * PATH 中是否找到 ffmpeg(用于「下载转 mp3」)
  2677. * @member
  2678. * @type {boolean}
  2679. */
  2680. this["ffmpeg"] = false;
  2681. }
  2682. Object.assign(this, $$source);
  2683. }
  2684. /**
  2685. * Creates a new YTDLPInfo instance from a string or object.
  2686. * @param {any} [$$source = {}]
  2687. * @returns {YTDLPInfo}
  2688. */
  2689. static createFrom($$source = {}) {
  2690. let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
  2691. return new YTDLPInfo(/** @type {Partial<YTDLPInfo>} */($$parsedSource));
  2692. }
  2693. }
  2694. // Private type creation functions
  2695. const $$createType0 = $Create.Array($Create.Any);
  2696. const $$createType1 = LinkItem.createFrom;
  2697. const $$createType2 = $Create.Array($$createType1);
  2698. const $$createType3 = RepoItem.createFrom;
  2699. const $$createType4 = $Create.Array($$createType3);
  2700. const $$createType5 = CustomTab.createFrom;
  2701. const $$createType6 = $Create.Array($$createType5);
  2702. const $$createType7 = LocalTool.createFrom;
  2703. const $$createType8 = $Create.Array($$createType7);
  2704. const $$createType9 = ControlKeyConfig.createFrom;
  2705. const $$createType10 = $Create.Array($$createType9);
  2706. const $$createType11 = TickerConfig.createFrom;
  2707. const $$createType12 = PoemConfig.createFrom;
  2708. const $$createType13 = MouseAlertConfig.createFrom;
  2709. const $$createType14 = LocalSendConfig.createFrom;
  2710. const $$createType15 = CrocConfig.createFrom;
  2711. const $$createType16 = YTDLPConfig.createFrom;
  2712. const $$createType17 = MemosConfig.createFrom;
  2713. const $$createType18 = BrightnessConfig.createFrom;
  2714. const $$createType19 = GitLabConfig.createFrom;
  2715. const $$createType20 = ProxyConfig.createFrom;
  2716. const $$createType21 = BiliDynamicItem.createFrom;
  2717. const $$createType22 = $Create.Array($$createType21);
  2718. const $$createType23 = $Create.Map($Create.Any, $Create.Any);
  2719. const $$createType24 = MinutePoint.createFrom;
  2720. const $$createType25 = $Create.Array($$createType24);
  2721. const $$createType26 = ReleaseItem.createFrom;
  2722. const $$createType27 = $Create.Array($$createType26);
  2723. const $$createType28 = CommitItem.createFrom;
  2724. const $$createType29 = $Create.Array($$createType28);