Added actors page. Added site logos with overview on network page.
This commit is contained in:
22
assets/js/actors/actions.js
Normal file
22
assets/js/actors/actions.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { get } from '../api';
|
||||
|
||||
function initActorActions(_store, _router) {
|
||||
async function fetchActors({ _commit }, actorId) {
|
||||
const networks = await get(`/actors/${actorId || ''}`);
|
||||
|
||||
return networks;
|
||||
}
|
||||
|
||||
async function fetchActorReleases({ _commit }, actorId) {
|
||||
const releases = await get(`/actors/${actorId}/releases`);
|
||||
|
||||
return releases;
|
||||
}
|
||||
|
||||
return {
|
||||
fetchActors,
|
||||
fetchActorReleases,
|
||||
};
|
||||
}
|
||||
|
||||
export default initActorActions;
|
||||
13
assets/js/actors/actors.js
Normal file
13
assets/js/actors/actors.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import state from './state';
|
||||
import mutations from './mutations';
|
||||
import actions from './actions';
|
||||
|
||||
function initActorsStore(store, router) {
|
||||
return {
|
||||
state,
|
||||
mutations,
|
||||
actions: actions(store, router),
|
||||
};
|
||||
}
|
||||
|
||||
export default initActorsStore;
|
||||
1
assets/js/actors/mutations.js
Normal file
1
assets/js/actors/mutations.js
Normal file
@@ -0,0 +1 @@
|
||||
export default {};
|
||||
1
assets/js/actors/state.js
Normal file
1
assets/js/actors/state.js
Normal file
@@ -0,0 +1 @@
|
||||
export default {};
|
||||
Reference in New Issue
Block a user