References
summary | ||
public |
Base class for an Application |
|
public |
C Auth Handles Authentication |
|
public |
Basic Application Helper |
|
public |
Clipboard Manager |
|
public |
C Core Main Core class for OS.js service providers and bootstrapping. |
|
public |
C Desktop Desktop Class |
|
public |
Filesystem Class that manages filesystems and adapters |
|
public |
C Login OS.js Login UI |
|
public |
Middleware Manager |
|
public |
Notification Implementation |
|
public |
Notification Factory |
|
public |
C Packages Package Manager |
|
public |
C Search Search Service |
|
public |
C Session Session Handler |
|
public |
C Settings OS.js Settings Manager |
|
public |
C Splash Splash Screen UI |
|
public |
C Tray Tray Handler |
|
public |
Application Socket |
|
public |
Default Window Behavior |
|
public |
C Window Window Implementation |
|
public |
F capabilities(path: string | VFSFile, options: VFSMethodOptions): Promise<object[]> Get vfs capabilities |
|
public |
Copies a file or directory (move) |
|
public |
F download(path: string | VFSFile, options: VFSDownloadOptions): Promise<any> Initiates a native browser download of the file |
|
public |
Checks if path exists |
|
public |
Creates a directory |
|
public |
Read a directory |
|
public |
F readfile(path: string | VFSFile, type: string, options: VFSMethodOptions): Promise<ArrayBuffer> Reads a file |
|
public |
Renames a file or directory (move) |
|
public |
Searches for files and folders |
|
public |
Gets the stats of the file or directory |
|
public |
Touches a file |
|
public |
Removes a file or directory |
|
public |
Gets an URL to a resource defined by file |
|
public |
F writefile(path: string | VFSFile, data: ArrayBuffer | Blob | string, options: VFSMethodOptions): Promise<number> Writes a file |
|
public |
V move(from: string | VFSFile, to: string | VFSFile, options: VFSMethodOptions): Promise<boolean>: * Alias of 'rename' |
|
public |
Application Data |
|
public |
Application Options |
|
public |
Application Session |
|
public |
TODO: typedef |
|
public |
TODO: typedef |
|
public |
|
|
public |
|
|
public |
Basic Application Options |
|
public |
Clipboard Data |
|
public |
T CoreConfig: Object TODO: typedef |
|
public |
Core Options |
|
public |
User Data |
|
public |
Desktop Options |
|
public |
TODO: typedef |
|
public |
|
|
public |
TODO: typedef |
|
public |
Desktop Viewport Rectangle |
|
public |
Filesystem Adapter Methods TODO: typedef |
|
public |
VFS Mountpoint |
|
public |
VFS Mountpoint attributes |
|
public |
Filesystem Options |
|
public |
Login Options |
|
public |
Middleware Data |
|
public |
Notification Options |
|
public |
Package Launch Options |
|
public |
A package metadata |
|
public |
A registered package reference |
|
public |
TODO: typedef |
|
public |
TODO: typedef |
|
public |
Settings Options |
|
public |
Tray Icon Entry |
|
public |
Tray Icon Data |
|
public |
VFS Download Options |
|
public |
VFS File Object |
|
public |
VFS Method Options |
|
public |
Websocket options |
|
public |
Window attributes definition |
|
public |
Window dimension definition |
|
public |
Window options definition |
|
public |
Window position definition |
|
public |
Window session |
|
public |
Window state definition |
adapters/auth
summary | ||
public |
F localStorageAuth(core: Core, options: object) LocalStorage Auth adapter |
|
public |
F serverAuth(core: Core, options: object): {"register": *, "login": *, "logout": *} Server Auth adapter |
adapters/settings
summary | ||
public |
F localStorageSettings(core: Core, options: object): * LocalStorage Settings adapter |
|
public |
F serverSettings(core: Core, options: object) Server Settings adapter |
adapters/ui
adapters/vfs
summary | ||
public |
Application VFS adapter |
|
public |
System VFS adapter |
|
public |
V nullAdapter(core: Core, options: object): {"capabilities": *, "readdir": *, "readfile": *, "writefile": *, "copy": *, "rename": *, "mkdir": *, "unlink": *, "exists": *, "stat": *, "url": *, "mount": *, "unmount": *, "search": *, "touch": *} Null VFS adapter |
providers
summary | ||
public |
OS.js Auth Service Provider |
|
public |
OS.js Core Service Provider |
|
public |
OS.js Desktop Service Provider |
|
public |
OS.js Notification Service Provider |
|
public |
OS.js Settings Service Provider |
|
public |
OS.js Virtual Filesystem Service Provider |
|
public |
Auth Service Contract TODO: typedef |
|
public |
Auth Service Options |
|
public |
Core Provider Clipboard Contract TODO: typedef |
|
public |
Core Provider Theme Contract TODO: typedef |
|
public |
Core Provider DnD Contract TODO: typedef |
|
public |
Core Provider Locale Contract TODO: typedef |
|
public |
Core Provider Middleware Contract TODO: typedef |
|
public |
Core Provider Options |
|
public |
Core Provider Packages Contract TODO: typedef |
|
public |
Core Provider Session Contract TODO: typedef |
|
public |
Core Provider Sound Contract TODO: typedef |
|
public |
Core Provider Theme Contract TODO: typedef |
|
public |
Core Provider Tray Contract TODO: typedef |
|
public |
Core Provider Window Contract TODO: typedef |
|
public |
Desktop Service Contract TODO: typedef |
|
public |
Settings Service Contract TODO: typedef |
|
public |
TODO: typedef |
|
public |
VFS Service Contract TODO: typedef |
|
public |
Filesytem Service Contract TODO: typedef |
|
public |
VFS Service Options |
utils
summary | ||
public |
The Preloader loads styles and scripts |
|
public |
Inverts a HEX color |
|
public |
F applyBackgroundStyles(core: *, background: *) Creates a set of styles based on background settings |
|
public |
F createPanelSubtraction(panel: *, panels: *): * Creates a rectangle with the realestate panels takes up |
|
public |
F isDroppingImage(data: *): boolean Check if droppable data contains image |
|
public |
F validVfsDrop(data: *): boolean Check if droppable data is a VFS type |
|
public |
F draggable(el: Element, options: DraggableOptions): DraggableInstance Creates a "draggable" element |
|
public |
F droppable(el: Element, options: DroppableOptions): DroppableInstance Creates a "droppable" element |
|
public |
F createCssText(obj: object): string Serialize an object to CSS |
|
public |
F createNativeNotification(options: object, onclick: Function): Promise<window.Notification> Creates a native notification |
|
public |
F escapeHtml(text: string): string Escape text so it is "safe" for HTML usage |
|
public |
F handleTabOnTextarea(ev: Event) Inserts a tab in the given event target |
|
public |
Plays a sound |
|
public |
Creates a new Script DOM element |
|
public |
Creates a new CSS DOM element |
|
public |
F supportedMedia(): object Gets supported media types |
|
public |
Make a HTTP request |
|
public |
Creates a double-tap event handler |
|
public |
F getEvent(ev: Event): NormalizedEventPosition Normalizes event input (position) |
|
public |
F matchKeyCombo(combo: string, ev: Event): boolean Checks if keycombo matches |
|
public |
F browserLocale(nav: object): string Returns the navigator language |
|
public |
Formats a given Date to a specified format |
|
public |
Gest the set localization |
|
public |
F translatable(k: string, Format: ...args): Function Translates a given tree of locales. |
|
public |
F translatableFlat(list: object, defaultValue: string): string Translates a given flat tree of locales |
|
private |
Translates a key + arguments from a tree of translations |
|
public |
F urlResolver(configuration: CoreConfig): * Resolves an URL |
|
public |
Get basename of a file |
|
public |
F createFileIter(stat: object): object Creates a file iter for scandir |
|
public |
F createWatchEvents(method: *, args: *): object[] Creates a list of VFS events to simulate server-side file watching |
|
public |
F filterMountByGroups(userGroups: *): boolean Filters a mountpoint by user groups |
|
public |
F getFileIcon(file: object): string | object Gets an icon from file stat |
|
public |
F humanFileSize(bytes: Number, si: Boolean): string Converts a number (bytez) into human-readable string |
|
public |
F parentDirectory(path: string): string Get parent directory |
|
public |
F parseMountpointPrefix(str: string): string Gets prefix from vfs path |
|
public |
Joins paths |
|
public |
F transformArrayBuffer(ab: ArrayBuffer, mime: string, type: string): DOMString | string | Blob | ArrayBuffer Transform an ArrayBuffer |
|
public |
F transformReaddir(root: object, options: object): Object[] Transforms a readdir result |
|
public |
F createDOMAttributes(id: string, state: WindowState, attributes: WindowAttributes): object Creates data attributes for window DOM |
|
public |
F createDOMStyles(state: WindowState, attributes: WindowAttributes): object Creates styles for window DOM |
|
public |
F loadOptionsFromConfig(config: *, appName: *, windowId: *): * Loads [certain] window options from configuration |
|
public |
V supportsPassive: boolean: * Checks if passive events is supported |
|
public |
V supportsTransition: boolean: * Gets if CSS transitions is supported |
|
public |
V clientLocale(defaultLocale: string): string: * Figures out what locale the browser is running as |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
T PreloaderEntryElement: HTMLScriptElement | HTMLLinkElement |
|
public |
|
|
public |
|