Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SugarTurboS/Sugar-Electron
/ functions
Functions
78 in github.com/SugarTurboS/Sugar-Electron
⨍
Functions
78
◇
Types & classes
12
↓ 9 callers
Function
cb
(json = {})
core/ipc/render.js:79
↓ 7 callers
Method
response
(eventName, callback)
core/ipc/main.js:244
↓ 7 callers
Method
unsubscribe
()
core/ipc/main.js:309
↓ 6 callers
Function
send
(json = {})
core/ipc/render.js:20
↓ 5 callers
Method
subscribe
()
core/ipc/main.js:274
↓ 4 callers
Method
_publisher
(params = {})
core/ipc/main.js:134
↓ 4 callers
Method
_register
(name, process)
core/ipc/main.js:174
↓ 4 callers
Method
request
(toId = '', eventName = '', data, timeout = defaultRequestTimeout)
core/ipc/main.js:197
↓ 3 callers
Method
_requestResponseMessageForwarding
(params = {})
core/ipc/main.js:54
↓ 3 callers
Method
_send
(params = {})
core/ipc/main.js:78
↓ 3 callers
Function
callback
()
core/ipc/render.js:160
↓ 2 callers
Method
_responseNoSerice
(header = {})
core/ipc/main.js:168
↓ 2 callers
Function
_subscribe
(toId, eventName, callback)
core/ipc/render.js:173
↓ 2 callers
Method
_unregister
(name)
core/ipc/main.js:178
↓ 2 callers
Function
_unsubscribe
(toId = '', eventName, callback)
core/ipc/render.js:217
↓ 2 callers
Function
createCb
(header)
core/ipc/render.js:113
↓ 2 callers
Method
getInstance
()
core/BaseWindow/main.js:91
↓ 2 callers
Method
open
(option = {})
core/BaseWindow/main.js:60
↓ 2 callers
Function
unsubscribe
()
core/ipc/render.js:202
↓ 1 callers
Method
_subscribe
(params = {})
core/ipc/main.js:95
↓ 1 callers
Method
_unegister
(name)
core/windowCenter/main.js:18
↓ 1 callers
Method
_unsubscribe
(params = {})
core/ipc/main.js:112
↓ 1 callers
Function
actionWindow
(windowName, action = '', args)
core/windowCenter/render.js:7
↓ 1 callers
Method
getConfig
({ useAppPathConfig, configPath })
core/config/main.js:56
↓ 1 callers
Function
getConfigFromAppData
(useAppPathConfig)
core/config/main.js:21
↓ 1 callers
Function
getDefaultPath
()
core/plugins/render.js:40
↓ 1 callers
Function
getLocalBaseConfig
(configPath)
core/config/main.js:36
↓ 1 callers
Function
getLocalConfig
(configPath, env)
core/config/main.js:45
↓ 1 callers
Function
getProcessArgv
()
core/config/main.js:7
↓ 1 callers
Function
initStore
(store, modules = [])
core/store/main.js:12
↓ 1 callers
Function
installPlugins
()
core/plugins/render.js:12
↓ 1 callers
Method
installPlugins
()
core/plugins/main.js:4
↓ 1 callers
Method
publisher
(eventName, params = {})
core/BaseWindow/main.js:96
↓ 1 callers
Function
ready
()
core/common/main.js:10
↓ 1 callers
Function
setState
(json)
core/store/main.js:42
↓ 1 callers
Function
start
(isDebug)
test/services/service/index.js:4
↓ 1 callers
Method
start
(isDebug)
core/service/main.js:15
Method
_getSubscriberTasks
()
core/ipc/main.js:129
Method
_register
(name, process)
core/windowCenter/main.js:13
Function
callAPI
(action, options)
test/plugins/adpter/index.js:9
Method
callback
()
core/ipc/main.js:277
Method
cb
(json = {})
core/ipc/main.js:204
Method
constructor
(name, runPath, isDebug = false)
core/service/main.js:7
Method
constructor
(name, option = {})
core/BaseWindow/main.js:49
Method
constructor
()
core/ipc/main.js:23
Method
createCb
(header)
core/ipc/main.js:246
Function
createStore
(store = {})
core/store/main.js:65
Function
debounce
* 防抖
core/util/index.js:38
Function
getModule
(moduleName, modules = [])
core/store/main.js:107
Function
getModule
(moduleName, modules = [])
core/store/render.js:50
Function
getModules
(modules = [])
core/store/main.js:87
Function
getModules
(modules = [])
core/store/render.js:30
Function
getThreadId
()
core/util/index.js:19
Function
install
* 安装插件,每一个自定义插件必备 * @ctx [object] 框架上下文对象{ config, ipc, store } * @params [object] 配置参数
test/plugins/adpter/index.js:7
Function
isArray
(value)
core/util/index.js:32
Function
isBoolean
(value)
core/util/index.js:26
Method
isInstanceExist
()
core/BaseWindow/main.js:87
Function
isObject
(value)
core/util/index.js:29
Function
publisher
(eventName = '', params)
core/ipc/render.js:143
Method
publisher
(eventName = '', params)
core/ipc/main.js:270
Function
request
(toId = '', eventName = '', data, timeout = defaultRequestTimeout)
core/ipc/render.js:70
Method
request
(eventName = '', data = {}, timeout)
core/BaseWindow/main.js:101
Function
response
(eventName, callback)
core/ipc/render.js:111
Method
setDefaultOption
(option)
core/BaseWindow/main.js:45
Function
setDefaultRequestTimeout
(timeout = 20000)
core/ipc/render.js:66
Method
setDefaultRequestTimeout
(timeout = 20000)
core/ipc/main.js:193
Function
setState
()
core/store/render.js:9
Function
start
* 启动sugar * @param option [object] 启动参数 * @param option.useAppPathConfig [boolean] 是否使用%appData%配置 * @param option.basePath [string] 启动
core/common/main.js:33
Method
stop
()
core/service/main.js:66
Function
subscribe
(cb, modules = [])
core/store/main.js:96
Function
subscribe
(cb, modules = [])
core/store/render.js:39
Function
subscribe
()
core/ipc/render.js:157
Method
subscribe
(eventName = '', callback)
core/BaseWindow/main.js:105
Function
unresponse
(eventName)
core/ipc/render.js:138
Method
unresponse
(eventName)
core/ipc/main.js:266
Function
unsubscribe
(cb, modules = [])
core/store/main.js:103
Function
unsubscribe
(cb, modules = [])
core/store/render.js:46
Method
unsubscribe
(eventName, callback)
core/BaseWindow/main.js:109