TeraFy

Main Tera-Fy Client (class singleton) to be used in a frontend browser

new TeraFy()
Instance Members
settings
events
dom
methods
plugins
send(message)
sendRaw(message)
rpc(method, args?)
acceptMessage(rawMessage)
acceptPostboxes
createProjectStatePatch(newState, oldState)
applyProjectStatePatch(patch)
applyProjectStatePatchLocal(patch)
init(options?)
detectMode()
injectComms()
handshakeLoop(options?)
injectStylesheet()
injectMethods()
debug(msg?, method, verboseLevel)
set(key, value, options?)
setIfDev(key, value, options?)
use(source, options?)
mixin(target, source)
toggleDevMode(devModeEnabled)
toggleFocus(isFocused)
getEntropicString(maxLength)
selectProjectFile(options)

Data entities

Data entities
Static Members
FileFilters
Project
new ProjectFile()
User

Messaging

Messaging
Static Members
handshake()
setServerVerbosity(verbosity)

Sessions

Sessions
Static Members
getUser()
requireUser(options?)

Projects

Projects
Static Members
getProject()
getProjects()
requireProject(options?)
selectProject(options?)
setActiveProject(project)

Project State

Project State
Static Members
applyProjectStatePatch(Patch)
getProjectState(options?, Paths)
replaceProjectState(newState)
saveProjectState()
setProjectState(path, value, options?)
setProjectStateDefaults(path, value, options?)
setProjectStateFlush()
setProjectStateRefresh()
subscribeProjectState()

Project files

Project files
Static Members
createProjectFile(name)
deleteProjectFile(id)
getProjectFile(id, options?)
getProjectFileContents(id?, options?)
getProjectFiles(options)
selectProjectFile(options?)
setProjectFileContents(id?, contents, options?)

Project Libraries

Project Libraries
Static Members
getProjectLibrary(id, options?)
selectProjectLibrary(options?, options?)
setProjectLibrary(id?, refs?, options?)

Project Logging

Project Logging
Static Members
projectLog(log)

Web pages

Web pages
Static Members
setPage(options)

UI

UI
Static Members
uiAlert(text?, options?)
uiConfirm(text?, options?)
uiProgress(options?)
uiPrompt(text?, options?)
uiSplat(content, options?)
uiThrow(error)
uiWindow(url, options?)

uiPanic

Trigger a fatal error, killing the outer TERA site

uiPanic(text: String?)
Parameters
text (String?) Text to display