2020-06-06 20:03:55 +02:00
|
|
|
export const models = Object.freeze({
|
|
|
|
lists: 'lists',
|
|
|
|
subscribers: 'subscribers',
|
|
|
|
campaigns: 'campaigns',
|
|
|
|
templates: 'templates',
|
|
|
|
media: 'media',
|
|
|
|
});
|
|
|
|
|
|
|
|
// Ad-hoc URIs that are used outside of vuex requests.
|
|
|
|
export const uris = Object.freeze({
|
|
|
|
previewCampaign: '/api/campaigns/:id/preview',
|
|
|
|
previewTemplate: '/api/templates/:id/preview',
|
|
|
|
previewRawTemplate: '/api/templates/preview',
|
|
|
|
});
|
|
|
|
|
|
|
|
// Keys used in Vuex store.
|
|
|
|
export const storeKeys = Object.freeze({
|
|
|
|
models: 'models',
|
|
|
|
isLoading: 'isLoading',
|
|
|
|
});
|
|
|
|
|
|
|
|
export const timestamp = 'ddd D MMM YYYY, hh:mm A';
|