Generating thumbnails. Added site overview page.

This commit is contained in:
2019-11-11 03:20:00 +01:00
parent 948597d265
commit 50816d7b28
28 changed files with 780 additions and 182 deletions

View File

@@ -0,0 +1,22 @@
import { get } from '../api';
function initSitesActions(_store, _router) {
async function fetchSites({ _commit }, siteId) {
const sites = await get(`/sites/${siteId || ''}`);
return sites;
}
async function fetchSiteReleases({ _commit }, siteId) {
const releases = await get(`/sites/${siteId}/releases`);
return releases;
}
return {
fetchSites,
fetchSiteReleases,
};
}
export default initSitesActions;

View File

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

13
assets/js/sites/sites.js Normal file
View File

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

1
assets/js/sites/state.js Normal file
View File

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