2020-06-06 20:03:55 +02:00
|
|
|
export const models = Object.freeze({
|
2020-07-08 13:00:14 +02:00
|
|
|
// This is the config loaded from /api/config.js directly onto the page
|
|
|
|
// via a <script> tag.
|
|
|
|
serverConfig: 'serverConfig',
|
|
|
|
|
2020-07-04 18:55:02 +02:00
|
|
|
dashboard: 'dashboard',
|
2020-06-06 20:03:55 +02:00
|
|
|
lists: 'lists',
|
|
|
|
subscribers: 'subscribers',
|
|
|
|
campaigns: 'campaigns',
|
|
|
|
templates: 'templates',
|
|
|
|
media: 'media',
|
2020-07-08 13:00:14 +02:00
|
|
|
settings: 'settings',
|
2020-10-10 20:24:03 +02:00
|
|
|
logs: 'logs',
|
2020-06-06 20:03:55 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
// 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';
|
2020-07-04 18:55:02 +02:00
|
|
|
|
|
|
|
export const colors = Object.freeze({
|
|
|
|
primary: '#7f2aff',
|
|
|
|
});
|