Files
freeplanet/src/model/GlobalStore.ts

151 lines
2.6 KiB
TypeScript
Raw Normal View History

2019-04-29 01:01:31 +02:00
import { IAction } from '@src/model/Projects'
import { Component } from 'vue-router/types/router'
export interface IPost {
title: string
}
export interface IConnData {
downloading_server: number
downloading_indexeddb: number
uploading_server: number
uploading_indexeddb: number
}
export interface ICfgServer {
chiave: string
2019-03-04 17:28:29 +01:00
userId: string
valore: string
}
export interface ICfgData {
_id?: string
lang?: string
token?: string
userId?: string
}
export interface ITestp1 {
contatore: number
mioarray: ICfgServer[]
}
export type StateConnection = 'online' | 'offline'
2019-03-04 17:28:29 +01:00
export interface IConfig {
_id: string,
key?: string,
value: string
}
export interface IGlobalState {
conta: number
2019-02-13 18:48:30 +01:00
wasAlreadySubOnDb: boolean
wasAlreadySubscribed: boolean
isLoginPage: boolean
layoutNeeded: boolean
mobileMode: boolean
menuCollapse: boolean
leftDrawerOpen: boolean
category: string
stateConnection: string
networkDataReceived: boolean
cfgServer: ICfgServer[]
testp1: ITestp1
connData: IConnData
posts: IPost[]
2019-03-13 01:53:53 +01:00
menulinks: {}
listatodo: IMenuList[]
2019-03-04 17:28:29 +01:00
arrConfig: IConfig[]
2019-04-29 01:01:31 +02:00
lastaction: IAction
}
export interface IMenuList {
nametranslate: string
2019-04-25 00:30:13 +02:00
description?: string
idelem?: string
icon?: string
2019-04-25 00:30:13 +02:00
name?: string
level_parent?: number
level_child?: number
urlroute?: string
routes2?: IMenuList[]
}
export interface IListRoutes {
path: string
name: string
materialIcon?: string
component?: Component
reqauth?: boolean
inmenu?: boolean
submenu?: boolean
// ------------------------
faIcon?: string
text?: string
2019-04-25 00:30:13 +02:00
routes2?: IListRoutes[]
level_parent?: number
level_child?: number
}
export interface IPerson {
index?: number
tab?: string
name: string
sub1: string
sub2?: string
sub3?: string
img: string
cell?: string
email?: string
paginaweb?: string
paginafb?: string
intro?: string
info?: string
vario?: string
}
export interface ILang {
label: string
icon: string
value: string
image: string
short: string
}
export interface IAllLang {
es?: string
enUs?: string
fr?: string
it?: string
}
export interface ITimeLineEntry {
date: string
title: string
description: IAllLang
description2?: IAllLang
description3?: IAllLang
icon: string
image: string
image2?: string
image3?: string
image4?: string
side: string
link_url?: string
link_text?: IAllLang
}
export interface ITimeLineMain {
titlemain: IAllLang
body: ITimeLineEntry[]
}
export interface IGallery {
title: string
subtitle?: IAllLang
img: string
width?: number
height?: number
}