Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "store/index"

Index

Interfaces

Variables

Functions

Object literals

Variables

Let lang

lang: default = new Lang()

Message translation tool

Const store

store: StrictStore<State, object, object, object> = new Vuex.Store({strict: true,state,mutations,actions,getters})

Functions

updateObject

  • updateObject<T>(obj: T, newObj: T, createNew?: boolean): T
  • Replaces values of obj with those from newObj. Nested arrays and objects are merged. Keys of newObj that are not already in obj are ignored.

    Type parameters

    • T: object

    Parameters

    • obj: T
    • newObj: T
    • Default value createNew: boolean = false

    Returns T

Object literals

Const actions

actions: object

Store actions definition

logout

  • logout(context: ActionContext<State, State>): Promise<void>

Const getters

getters: object

Store getters definition

localeName

  • localeName(state: State): (Anonymous function)

scope

trans

  • trans(state: State): (Anonymous function)

transChoice

  • transChoice(state: State): (Anonymous function)

Const mutations

mutations: object

Store mutations definition

addFlash

addNotification

addReRoute

  • addReRoute(state: State): void

global

httpConnection

  • httpConnection(state: State, has: boolean): void

logout

  • logout(state: State): void

removeFlash

  • removeFlash(state: State, key: string): void

removeNotification

  • removeNotification(state: State, id: string): void

toggleLocale

  • toggleLocale(state: State): void

token

  • token(state: State, token: string): void

websocketConnection

  • websocketConnection(state: State, has: boolean): void

Const state

state: object

Initial store state

available_locales

available_locales: string[] = ['en']

connection_http

connection_http: null = null

connection_websocket

connection_websocket: null = null

currencies

currencies: object

Type declaration

currency_default

currency_default: 0 = 0

fallback_locale

fallback_locale: string = "en"

flash

flash: object

Type declaration

is_admin

is_admin: false = false

locale

locale: string = "en"

locale_names

locale_names: object

Type declaration

max_file_kb

max_file_kb: number = 0

max_file_uploads

max_file_uploads: number = 0

messages

messages: object

Type declaration

name

name: string = "Marketplace"

notifications

notifications: object

Type declaration

reRoutedTimes

reRoutedTimes: number = -1

socket_host

socket_host: null = null

token

token: null = null

user

user: null = null

Generated using TypeDoc