Inside BeachFe we have a store $feStore
. This is a secondary store that should be used for communicating with Beach Api Core
.
type | params | description | |
---|---|---|---|
application/setTheme |
action | "dark" or "light" |
set main theme |
application/loaded |
action | set application as loaded | |
application/theme |
getter | returns main theme | |
application/loaded |
getter | returns true or false if app is loaded or not |
type | params | description | |
---|---|---|---|
sidebar/open |
action | open sidebar | |
sidebar/close |
action | close sidebar | |
sidebar/toggle |
action | toggle sidebar | |
sidebar/opened |
getter | true or false if sidebar opened or not |
type | params | description | |
---|---|---|---|
authorization/login |
action | {email, password} |
returns a promise that resolves a Bearer token |
authorization/register |
action | {email, password, username} |
create new account. Returns a promise that resolves a Bearer token |
authorization/signOut |
action | destroy session | |
authorization/token |
getter | Bearer token |
type | params | description | |
---|---|---|---|
user/fetch |
action | returns a promise that resolves current_user |
|
user/set |
action | {user} | set current user |
user/current |
getter | get current user |
type | params | description | |
---|---|---|---|
organisation/fetchAll |
action | returns a promise that resolves a list of available organisations | |
organisation/setList |
action | Array of organisations | set available organisations to store |
organisation/setCurrent |
action | Organisation | set organisation context |
organisation/fetchCurrent |
action | returns a promist that resolves an organisation context | |
organisation/create |
action | {name} | create new organisation. Returns a promist that resolves created organisation. Will add this organisation to list |
organisation/list |
getter | returns organisations list | |
organisation/current |
getter | returns current organisation context |
Slots:
default
Slots:
default
Props | Type | default | description |
---|---|---|---|
color | String |
"white" |
Can be one of white , gray , blue |
size | String |
"small" |
Can be one of large , small |
Slots:
none
Props | Type | default | description |
---|---|---|---|
v-model | String |
||
type | String |
"text" |
type of input |
label | String |
||
placeholder | String |
Slots:
none
Props | Type | default | description |
---|---|---|---|
v-model | String |
||
label | String |
||
placeholder | String |
Slots:
none
Props | Type | default | description |
---|---|---|---|
v-model | Array |
[] |
Array of selected ids |
options | Array |
[] |
[{id: ..., name: ...}, ...] Instead of name can be used title or text fields |
multiple | Boolean |
false |
|
placeholder | String |
Slots:
none
Props | Type | default | description |
---|---|---|---|
v-model | Array |
[] |
Array of selected ids |
options | Array |
[] |
[{id: ..., name: ...}, ...] Instead of name can be used title or text fields |
multiple | Boolean |
false |
Slots:
default
Props | Type | default | description |
---|---|---|---|
v-model | Boolean |
false |
Slots:
default
Props | Type | default | description |
---|---|---|---|
v-model | Any |
||
name | String |
Uniq name for radio group |
Slots:
default
Props | Type | default | description |
---|---|---|---|
justify | String |
"normal" |
justify-content |
Slots:
none
Props | Type | default | description |
---|---|---|---|
v-model | Array |
[] |
sorted array |
Root wrapper for BeachFe application
Slots:
default
Header wrapper
Slots:
default
Header Section. Use this component inside FeHeader
Slots:
default
Header Nav. Use this component inside FeHeaderSection
Slots:
none
Props | Type | default | description |
---|---|---|---|
items | Array |
[] |
Array of NavItems [{title, route},...] |
Actions Section. Use this component inside FeHeaderSection
Slots:
default
Action inside Actions Section. Use this component inside FeHeaderActions
Slots:
default
Action as a dropdown. Use this component inside FeHeaderAction
Slots:
default
andmain
Props | Type | default | description |
---|---|---|---|
position | String |
left |
left , right , center |
Profile Dropdown Component. Use this component inside FeHeaderAction
Slots:
default
Use this component inside FeHeaderActionDropdown
or FeHeaderActionProfile
Slots:
default
Slots:
default
Slots:
default
Slots:
default
Props | Type | default | description |
---|---|---|---|
items | Array |
[] |
Array of NavItem |
NavItem:
{
title: String[HTML-content],
rightSide: String[HTML-content],
leftSide: String[HTML-content],
opened: Boolean(false),
bold: Boolean(false),
click: () => {},
route: String
noMargin: Boolean(false),
items: [...NavItems...]
}
Slots:
default
Slots:
default
Slots:
none
Props | Type | default | description |
---|---|---|---|
size | Number, String |
16 |
|
name | String |
icon name |