Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Aug 12, 2023
1 parent 87c1b7d commit 09927a5
Show file tree
Hide file tree
Showing 31 changed files with 331 additions and 331 deletions.
8 changes: 4 additions & 4 deletions src/.decls/cn/jsstp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import type jsstp_t from "./types/jsstp_t.d.ts";
//定义一个包装器
/**
* sstp包装器
* @example
* jsstp.SEND({
* Event: "OnTest",
* Script: "\\s[0]Hell Wold!\\e"
* @example
* jsstp.SEND({
* Event: "OnTest",
* Script: "\\s[0]Hell Wold!\\e"
* });
* @var jsstp
* @type {jsstp_t}
Expand Down
6 changes: 3 additions & 3 deletions src/.decls/cn/types/base_sstp_info_t.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Option: notranslate
*/
/**
* 基础sstp报文类
* @example
* let info = jsstp.base_sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* @example
* let info = jsstp.base_sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* console.log(info.Option);//notranslate
* @alias jsstp.base_sstp_info_t
*/
Expand Down
52 changes: 26 additions & 26 deletions src/.decls/cn/types/fmo_info_t.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ import type base_sstp_info_t from "./base_sstp_info_t.d.ts";
import type { info_object } from "./info_object.d.ts";

/**
* fmo报文类:单个fmo信息类
* fmo报文类:单个fmo信息类
* 记录单个ghost所有的fmo信息
* @example
* info_object {
* path: 'E:\\ssp\\',
* hwnd: '918820',
* name: '橘花',
* keroname: '斗和',
* 'sakura.surface': '-1',
* 'kero.surface': '-1',
* kerohwnd: '67008',
* hwndlist: '918820,67008',
* ghostpath: 'E:\\ssp\\ghost\\Taromati2\\',
* fullname: 'Taromati2',
* modulestate: 'shiori:running'
* @example
* info_object {
* path: 'E:\\ssp\\',
* hwnd: '918820',
* name: '橘花',
* keroname: '斗和',
* 'sakura.surface': '-1',
* 'kero.surface': '-1',
* kerohwnd: '67008',
* hwndlist: '918820,67008',
* ghostpath: 'E:\\ssp\\ghost\\Taromati2\\',
* fullname: 'Taromati2',
* modulestate: 'shiori:running'
* }
* @see {@link http://ssp.shillest.net/ukadoc/manual/spec_fmo_mutex.html}
*/
Expand Down Expand Up @@ -80,10 +80,10 @@ declare interface single_fmo_info_t extends info_object<string,string> {
/**
* fmo报文类:类定义实现
* @see fmo_info_t
* @example
* let fmo = jsstp.get_fmo_infos();
* let kikka_uuid = fmo.get_uuid_by("name", "橘花");
* if(kikka_uuid)
* @example
* let fmo = jsstp.get_fmo_infos();
* let kikka_uuid = fmo.get_uuid_by("name", "橘花");
* if(kikka_uuid)
* console.log(fmo[kikka_uuid].ghostpath);
* @see {@link jsstp_t.get_fmo_infos}
* @see {@link http://ssp.shillest.net/ukadoc/manual/spec_fmo_mutex.html}
Expand Down Expand Up @@ -164,10 +164,10 @@ type fmo_info_t_constructor = {
};
/**
* fmo报文类
* @example
* let fmo = jsstp.get_fmo_infos();
* let kikka_uuid = fmo.get_uuid_by("name", "橘花");
* if(kikka_uuid)
* @example
* let fmo = jsstp.get_fmo_infos();
* let kikka_uuid = fmo.get_uuid_by("name", "橘花");
* if(kikka_uuid)
* console.log(fmo[kikka_uuid].ghostpath);
* @alias jsstp.fmo_info_t
* @see {@link jsstp_t.get_fmo_infos}
Expand All @@ -177,10 +177,10 @@ type fmo_info_t_constructor = {
declare const fmo_info_t: typeof fmo_info_t_class_impl & fmo_info_t_constructor;
/**
* fmo报文类
* @example
* let fmo = jsstp.get_fmo_infos();
* let kikka_uuid = fmo.get_uuid_by("name", "橘花");
* if(kikka_uuid)
* @example
* let fmo = jsstp.get_fmo_infos();
* let kikka_uuid = fmo.get_uuid_by("name", "橘花");
* if(kikka_uuid)
* console.log(fmo[kikka_uuid].ghostpath);
* @alias jsstp.fmo_info_t
* @see {@link jsstp_t.get_fmo_infos}
Expand Down
36 changes: 18 additions & 18 deletions src/.decls/cn/types/fmo_info_t.s.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ import type base_sstp_info_t from "./base_sstp_info_t.d.ts";
import type { info_object } from "./info_object.d.ts";

/**
* fmo报文类:单个fmo信息类
* fmo报文类:单个fmo信息类
* 记录单个ghost所有的fmo信息
* @example
* info_object {
* path: 'E:\\ssp\\',
* hwnd: '918820',
* name: '橘花',
* keroname: '斗和',
* 'sakura.surface': '-1',
* 'kero.surface': '-1',
* kerohwnd: '67008',
* hwndlist: '918820,67008',
* ghostpath: 'E:\\ssp\\ghost\\Taromati2\\',
* fullname: 'Taromati2',
* modulestate: 'shiori:running'
* @example
* info_object {
* path: 'E:\\ssp\\',
* hwnd: '918820',
* name: '橘花',
* keroname: '斗和',
* 'sakura.surface': '-1',
* 'kero.surface': '-1',
* kerohwnd: '67008',
* hwndlist: '918820,67008',
* ghostpath: 'E:\\ssp\\ghost\\Taromati2\\',
* fullname: 'Taromati2',
* modulestate: 'shiori:running'
* }
* @see {@link http://ssp.shillest.net/ukadoc/manual/spec_fmo_mutex.html}
*/
Expand Down Expand Up @@ -79,10 +79,10 @@ declare interface single_fmo_info_t extends info_object<string,string> {
};
/**
* fmo报文类
* @example
* let fmo = jsstp.get_fmo_infos();
* let kikka_uuid = fmo.get_uuid_by("name", "橘花");
* if(kikka_uuid)
* @example
* let fmo = jsstp.get_fmo_infos();
* let kikka_uuid = fmo.get_uuid_by("name", "橘花");
* if(kikka_uuid)
* console.log(fmo[kikka_uuid].ghostpath);
* @alias jsstp.fmo_info_t
* @see {@link jsstp_t.get_fmo_infos}
Expand Down
30 changes: 15 additions & 15 deletions src/.decls/cn/types/ghost_events_queryer_t.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import type { ExtensibleFunction, security_level_t } from "../base/tools.d.ts"

/**
* ghost事件查询器:类定义实现
* @example
* let ghost_events_queryer = jsstp.new_event_queryer();
* if(!ghost_events_queryer.available)
* console.log("当前ghost不支持事件查询");
* if(ghost_events_queryer.has_event("OnBoom"))
* @example
* let ghost_events_queryer = jsstp.new_event_queryer();
* if(!ghost_events_queryer.available)
* console.log("当前ghost不支持事件查询");
* if(ghost_events_queryer.has_event("OnBoom"))
* jsstp.OnBoom();
* @see {@link jsstp_t.new_event_queryer}
* @group ghost_events_queryer_t implementations
Expand Down Expand Up @@ -94,11 +94,11 @@ type ghost_events_queryer_t_constructor = {
}
/**
* ghost事件查询器
* @example
* let ghost_events_queryer = jsstp.new_event_queryer();
* if(!ghost_events_queryer.available)
* console.log("当前ghost不支持事件查询");
* if(ghost_events_queryer.has_event("OnBoom"))
* @example
* let ghost_events_queryer = jsstp.new_event_queryer();
* if(!ghost_events_queryer.available)
* console.log("当前ghost不支持事件查询");
* if(ghost_events_queryer.has_event("OnBoom"))
* jsstp.OnBoom();
* @alias jsstp.ghost_events_queryer_t
* @see {@link jsstp_t.new_event_queryer}
Expand All @@ -107,11 +107,11 @@ type ghost_events_queryer_t_constructor = {
declare const ghost_events_queryer_t: typeof ghost_events_queryer_t_class_impl & ghost_events_queryer_t_constructor;
/**
* ghost事件查询器
* @example
* let ghost_events_queryer = jsstp.new_event_queryer();
* if(!ghost_events_queryer.available)
* console.log("当前ghost不支持事件查询");
* if(ghost_events_queryer.has_event("OnBoom"))
* @example
* let ghost_events_queryer = jsstp.new_event_queryer();
* if(!ghost_events_queryer.available)
* console.log("当前ghost不支持事件查询");
* if(ghost_events_queryer.has_event("OnBoom"))
* jsstp.OnBoom();
* @alias jsstp.ghost_events_queryer_t
* @see {@link jsstp_t.new_event_queryer}
Expand Down
44 changes: 22 additions & 22 deletions src/.decls/cn/types/jsstp_t.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ interface base_event_caller{
[key: string]: base_event_caller,//扩展事件名称
}
/**
* 简易事件调用器
* 简易事件调用器
* 直接调用以触发事件!
* @example
* let data=await jsstp.OnTest(123,"abc");
* //等价于
* let data = await jsstp.SEND({
* "Event": "OnTest",
* "Reference0": 123,
* "Reference1": "abc"
* @example
* let data=await jsstp.OnTest(123,"abc");
* //等价于
* let data = await jsstp.SEND({
* "Event": "OnTest",
* "Reference0": 123,
* "Reference1": "abc"
* });
* @group callers
*/
Expand All @@ -39,20 +39,20 @@ interface simple_event_caller extends base_event_caller {
[key: string]: simple_event_caller,//扩展事件名称
}
/**
* 通用事件调用器
* 通用事件调用器
* 调用时传入一个对象以触发事件!
* @example
* let caller=jsstp.get_caller_of_event("OnTest");
* //...
* let data=await caller({
* "Reference0": 123,
* "Reference1": "abc"
* });
* //等价于
* let data = await jsstp.SEND({
* "Event": "OnTest",
* "Reference0": 123,
* "Reference1": "abc"
* @example
* let caller=jsstp.get_caller_of_event("OnTest");
* //...
* let data=await caller({
* "Reference0": 123,
* "Reference1": "abc"
* });
* //等价于
* let data = await jsstp.SEND({
* "Event": "OnTest",
* "Reference0": 123,
* "Reference1": "abc"
* });
* @group callers
*/
Expand All @@ -73,7 +73,7 @@ interface jsstp_with_ghost_info_t extends jsstp_t{
* jsstp对象
* @see {@link jsstp}
* @alias jsstp.type
* @example
* @example
* let my_jsstp=new jsstp.type("my_coooool_jsstp",sstp_server_url);
*/
declare class jsstp_t{
Expand Down
18 changes: 9 additions & 9 deletions src/.decls/cn/types/sstp_info_t.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Option: notranslate
/**
* sstp报文类:类定义实现
* @see sstp_info_t
* @example
* let info = jsstp.sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* @example
* let info = jsstp.sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* console.log(info.Option);//notranslate
* @alias jsstp.sstp_info_t
* @group sstp_info_t implementations
Expand Down Expand Up @@ -94,19 +94,19 @@ type sstp_info_t_constructor = {
};
/**
* sstp报文类
* @example
* let info = jsstp.sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* @example
* let info = jsstp.sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* console.log(info.Option);//notranslate
* @alias jsstp.sstp_info_t
* @group sstp_info_t implementations
*/
declare const sstp_info_t: typeof sstp_info_t_class_impl & sstp_info_t_constructor;
/**
* sstp报文类
* @example
* let info = jsstp.sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* @example
* let info = jsstp.sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* console.log(info.Option);//notranslate
* @alias jsstp.sstp_info_t
* @group sstp_info_t implementations
Expand Down
6 changes: 3 additions & 3 deletions src/.decls/cn/types/sstp_info_t.s.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Option: notranslate
*/
/**
* sstp报文类
* @example
* let info = jsstp.sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* @example
* let info = jsstp.sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* console.log(info.Option);//notranslate
* @alias jsstp.sstp_info_t
*/
Expand Down
8 changes: 4 additions & 4 deletions src/.decls/en/jsstp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import type jsstp_t from "./types/jsstp_t.d.ts";
//Define a wrapper
/**
* sstp wrapper
* @example
* jsstp.SEND({
* Event: "OnTest",
* Script: "\\s[0]Hell Wold!\\e"
* @example
* jsstp.SEND({
* Event: "OnTest",
* Script: "\\s[0]Hell Wold!\\e"
* });
* @var jsstp
* @type {jsstp_t}
Expand Down
6 changes: 3 additions & 3 deletions src/.decls/en/types/base_sstp_info_t.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Option: notranslate
*/
/**
* Base sstp message class
* @example
* let info = jsstp.base_sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* @example
* let info = jsstp.base_sstp_info_t.from_string("SSTP/1.4 200 OK\r\nCharset: UTF-8\r\nSender: SSTPクライアント\r\nScript: \\h\\s0テストー。\\u\\s[10]テストやな。\r\nOption: notranslate\r\n\r\n");
* console.log(info.head);//SSTP/1.4 200 OK
* console.log(info.Option);//notranslate
* @alias jsstp.base_sstp_info_t
*/
Expand Down
Loading

0 comments on commit 09927a5

Please sign in to comment.