listmonk/frontend/src/constants.js

33 lines
802 B
JavaScript
Raw Normal View History

export const models = Object.freeze({
serverConfig: 'serverConfig',
lang: 'lang',
2020-07-04 18:55:02 +02:00
dashboard: 'dashboard',
lists: 'lists',
subscribers: 'subscribers',
campaigns: 'campaigns',
templates: 'templates',
media: 'media',
settings: 'settings',
logs: 'logs',
});
// 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',
2021-01-23 13:53:29 +01:00
exportSubscribers: '/api/subscribers/export',
});
// 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',
});