Added actors page. Added site logos with overview on network page.

This commit is contained in:
2019-11-10 04:20:22 +01:00
parent 76618cee83
commit a9b91ff76c
44 changed files with 1065 additions and 13 deletions

View 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;

View 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;

View File

@@ -0,0 +1 @@
export default {};

View File

@@ -0,0 +1 @@
export default {};

View File

@@ -0,0 +1,22 @@
import { get } from '../api';
function initNetworksActions(_store, _router) {
async function fetchNetworks({ _commit }, networkId) {
const networks = await get(`/networks/${networkId || ''}`);
return networks;
}
async function fetchNetworkReleases({ _commit }, networkId) {
const releases = await get(`/networks/${networkId}/releases`);
return releases;
}
return {
fetchNetworks,
fetchNetworkReleases,
};
}
export default initNetworksActions;

View File

@@ -0,0 +1 @@
export default {};

View File

@@ -0,0 +1,13 @@
import state from './state';
import mutations from './mutations';
import actions from './actions';
function initNetworksStore(store, router) {
return {
state,
mutations,
actions: actions(store, router),
};
}
export default initNetworksStore;

View File

@@ -0,0 +1 @@
export default {};

View File

@@ -4,6 +4,7 @@ import Vuex from 'vuex';
import initAuthStore from './auth/auth';
import initReleasesStore from './releases/releases';
import initNetworksStore from './networks/networks';
import initActorsStore from './actors/actors';
function initStore(router) {
Vue.use(Vuex);
@@ -12,6 +13,7 @@ function initStore(router) {
store.registerModule('auth', initAuthStore(store, router));
store.registerModule('releases', initReleasesStore(store, router));
store.registerModule('actors', initActorsStore(store, router));
store.registerModule('networks', initNetworksStore(store, router));
return store;