Home Reference Source

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

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

Package Manager

public

C Search

Search Service

public

Session Handler

public

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

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

Reads a file

public

Renames a file or directory (move)

public

F search(root: string | VFSFile, pattern: string, options: VFSMethodOptions): Promise<object[]>

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

F url(path: string | VFSFile, options: VFSMethodOptions): Promise<string>

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

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

summary
public

Desktop Icon View

public

F create(options: *, login: *, startHidden: *, $container: *): *

Login UI Adapter

public

F create(core: *, $element: *): *

Search UI Adapter

adapters/vfs

summary
public

F adapter(core: Core, options: object): {"readdir": *}

Application VFS adapter

public

F adapter(core: Core, options: object): *

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

Serialize an object to CSS

public

F createNativeNotification(options: object, onclick: Function): Promise<window.Notification>

Creates a native notification

public

Escape text so it is "safe" for HTML usage

public

F handleTabOnTextarea(ev: Event)

Inserts a tab in the given event target

public

F playSound(src: string, options: object): Promise<HTMLAudioElement>

Plays a sound

public

F script(root: Element, src: string, options: Object): Promise<StyleElement>

Creates a new Script DOM element

public

F style(root: Element, src: string): Promise<ScriptElement>

Creates a new CSS DOM element

public

Gets supported media types

public

F fetch(url: string, options: Options, type: string): Promise<*>

Make a HTTP request

public

F doubleTap(timeout: number): Function

Creates a double-tap event handler

public

Normalizes event input (position)

public

F matchKeyCombo(combo: string, ev: Event): boolean

Checks if keycombo matches

public

Returns the navigator language

public

F format(date: Date, fmt: string): string

Formats a given Date to a specified format

public

F getLocale(core: Core, key: string): object

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

F translate(list: object, ul: string, dl: string, k: string, args: ...*): string

Translates a key + arguments from a tree of translations

public

F urlResolver(configuration: CoreConfig): *

Resolves an URL

public

F basename(path: string): string

Get basename of a file

public

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

Gets an icon from file stat

public

Converts a number (bytez) into human-readable string

public

Get parent directory

public

Gets prefix from vfs path

public

F pathJoin(args: string[]): string

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

Creates data attributes for window DOM

public

Creates styles for window DOM

public

F loadOptionsFromConfig(config: *, appName: *, windowId: *): *

Loads [certain] window options from configuration

public

Checks if passive events is supported

public

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