added tons of features
This commit is contained in:
1
lib/config/constants.ts
Normal file
1
lib/config/constants.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const STORE_ID: number = 1
|
||||
10
lib/config/dayjs.ts
Normal file
10
lib/config/dayjs.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import dayjs from 'dayjs'
|
||||
import 'dayjs/locale/es'
|
||||
import timezone from 'dayjs/plugin/timezone'
|
||||
import utc from 'dayjs/plugin/utc'
|
||||
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(timezone)
|
||||
dayjs.locale('uk')
|
||||
|
||||
export default dayjs
|
||||
60
lib/config/editor.ts
Normal file
60
lib/config/editor.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
export const BaseEditorConfig = {
|
||||
readonly: false, // all options from https://xdsoft.net/jodit/docs/,
|
||||
placeholder: 'Start typings...',
|
||||
spellcheck: true,
|
||||
language: 'ua',
|
||||
//toolbarAdaptive: false,
|
||||
//toolbarButtonSize: 'small',
|
||||
saveHeightInStorage: true,
|
||||
saveModeInStorage: true,
|
||||
//defaultActionOnPaste: 'insert_as_text',
|
||||
//defaultActionOnPaste: 'insert_only_text',
|
||||
//disablePlugins: 'ai-assistant,mobile,print,speech-recognize,table,table-keyboard-navigation,powered-by-jodit,iframe',
|
||||
minHeight: 240,
|
||||
maxHeight: 640,
|
||||
maxWidth: 890,
|
||||
uploader: {
|
||||
insertImageAsBase64URI: true,
|
||||
imagesExtensions: ['jpg', 'png', 'jpeg', 'gif', 'svg', 'webp']
|
||||
}
|
||||
// cleanHTML: {
|
||||
// allowTags: {
|
||||
// p: true,
|
||||
// h1: true,
|
||||
// h2: true,
|
||||
// h3: true,
|
||||
// h4: true,
|
||||
// h5: true,
|
||||
// h6: true,
|
||||
// div: true,
|
||||
// strong: true,
|
||||
// li: true,
|
||||
// ul: true,
|
||||
// ol: true,
|
||||
// i: true,
|
||||
// blockquote: true,
|
||||
// code: true,
|
||||
// img: true,
|
||||
// cite: true,
|
||||
// small: true,
|
||||
// sub: true,
|
||||
// sup: true
|
||||
// }
|
||||
// }
|
||||
// controls: {
|
||||
// paragraph: {
|
||||
// list: {
|
||||
// h1: 'Heading 1',
|
||||
// h2: 'Heading 2',
|
||||
// h3: 'Heading 3',
|
||||
// h4: 'Heading 4',
|
||||
// h5: 'Heading 5',
|
||||
// h6: 'Heading 6',
|
||||
// blockquote: 'Quote',
|
||||
// div: 'Div',
|
||||
// pre: 'Source code'
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// buttons: 'bold,italic,underline,strikethrough,eraser,ul,ol,font,fontsize,paragraph,lineHeight,superscript,subscript,classSpan,file,image,video,spellcheck,cut'
|
||||
}
|
||||
3
lib/config/http.ts
Normal file
3
lib/config/http.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const HEADERS = {
|
||||
xSiteLocale: 'x-site-locale'
|
||||
}
|
||||
5
lib/config/routes.ts
Normal file
5
lib/config/routes.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const ADMIN_DASHBOARD_PATH = '/admin'
|
||||
|
||||
export const translatableRoutesRegEx = /^\/(|ru|uk).*/
|
||||
export const protectedRoutesRegEx =
|
||||
/^\/admin|(\/(|ru\/|uk\/)?(cabinet|checkout))/
|
||||
Reference in New Issue
Block a user