Search
Preparing search index...
The search index is not available
@youwol/flux-core
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@youwol/flux-core
lib/environment
MockEnvironment
Class MockEnvironment
Hierarchy
MockEnvironment
Implements
IEnvironment
Index
Constructors
constructor
Properties
console
css
errors$
flux
PacksDB
host
Command
Request$
js
Addons
loading
Graph
Responses
projectsDB
saved
Projects
Methods
fetch
Javascript
Add
On
fetch
Loading
Graph
fetch
Style
Sheets
get
Loading
Graph
get
Project
post
Project
Constructors
constructor
new
Mock
Environment
(
data
?:
{
console
?:
IConsole
;
fluxPacks
?:
FluxPack
[]
;
loadingGraphResponses
?:
[
KeyLoadingGraphStore
,
LoadingGraphSchema
]
[]
;
projectsDB
?:
{}
}
)
:
MockEnvironment
Parameters
data:
{
console
?:
IConsole
;
fluxPacks
?:
FluxPack
[]
;
loadingGraphResponses
?:
[
KeyLoadingGraphStore
,
LoadingGraphSchema
]
[]
;
projectsDB
?:
{}
}
= ...
Optional
console
?:
IConsole
Optional
flux
Packs
?:
FluxPack
[]
Optional
loading
Graph
Responses
?:
[
KeyLoadingGraphStore
,
LoadingGraphSchema
]
[]
Optional
projectsDB
?:
{}
[
key:
string
]:
ProjectSchema
Returns
MockEnvironment
Properties
Readonly
console
console
:
IConsole
css
css
:
string
[]
= ...
Readonly
errors$
errors$
:
ReplaySubject
<
ErrorLog
<
any
,
unknown
>
>
= ...
Readonly
flux
PacksDB
flux
PacksDB
:
{}
Type declaration
[
key:
string
]:
FluxPack
Readonly
host
Command
Request$
host
Command
Request$
:
Subject
<
HostCommandRequest
>
= ...
js
Addons
js
Addons
:
string
[]
= ...
Readonly
loading
Graph
Responses
loading
Graph
Responses
:
{}
Type declaration
[
key:
string
]:
LoadingGraphSchema
Readonly
projectsDB
projectsDB
:
{}
Type declaration
[
key:
string
]:
ProjectSchema
saved
Projects
saved
Projects
:
{}
= ...
Type declaration
[
key:
string
]:
ProjectSchema
Methods
fetch
Javascript
Add
On
fetch
Javascript
Add
On
(
resources
:
string
|
string
[]
)
:
Observable
<
string
[]
>
Parameters
resources:
string
|
string
[]
Returns
Observable
<
string
[]
>
fetch
Loading
Graph
fetch
Loading
Graph
(
loadingGraph
:
LoadingGraphSchema
)
:
Observable
<
LoadingGraphSchema
>
Parameters
loadingGraph:
LoadingGraphSchema
Returns
Observable
<
LoadingGraphSchema
>
fetch
Style
Sheets
fetch
Style
Sheets
(
resources
:
string
|
string
[]
)
:
Observable
<
HTMLLinkElement
[]
>
Parameters
resources:
string
|
string
[]
Returns
Observable
<
HTMLLinkElement
[]
>
get
Loading
Graph
get
Loading
Graph
(
body
:
KeyLoadingGraphStore
)
:
Observable
<
LoadingGraphSchema
>
Parameters
body:
KeyLoadingGraphStore
Returns
Observable
<
LoadingGraphSchema
>
get
Project
get
Project
(
projectId
:
string
)
:
Observable
<
ProjectSchema
>
Parameters
projectId:
string
Returns
Observable
<
ProjectSchema
>
post
Project
post
Project
(
projectId
:
string
, project
:
ProjectSchema
)
:
Observable
<
void
>
Parameters
projectId:
string
project:
ProjectSchema
Returns
Observable
<
void
>
Exports
lib/environment
Environment
Mock
Environment
constructor
console
css
errors$
flux
PacksDB
host
Command
Request$
js
Addons
loading
Graph
Responses
projectsDB
saved
Projects
fetch
Javascript
Add
On
fetch
Loading
Graph
fetch
Style
Sheets
get
Loading
Graph
get
Project
post
Project
IEnvironment
Key
Loading
Graph
Store
create
Observable
From
Fetch
Generated using
TypeDoc