2019-05-08 23:34:03 +02:00
|
|
|
import { getTimestampInSeconds } from "./helpers";
|
|
|
|
|
|
|
|
export const MIGRATE_VERSION = '2.0.0';
|
2019-05-02 23:45:10 +02:00
|
|
|
export const DEFAULT_DICTIONARY = {
|
|
|
|
name: 'New',
|
|
|
|
specification: 'Dictionary',
|
|
|
|
description: 'A new dictionary.',
|
|
|
|
partsOfSpeech: ['Noun', 'Adjective', 'Verb'],
|
|
|
|
alphabeticalOrder: [],
|
|
|
|
details: {
|
|
|
|
phonology: {
|
|
|
|
consonants: [],
|
|
|
|
vowels: [],
|
|
|
|
blends: [],
|
|
|
|
phonotactics: {
|
|
|
|
onset: [],
|
|
|
|
nucleus: [],
|
|
|
|
coda: [],
|
|
|
|
exceptions: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
orthography: {
|
|
|
|
notes: '',
|
|
|
|
},
|
|
|
|
grammar: {
|
|
|
|
notes: '',
|
|
|
|
},
|
|
|
|
// custom: [
|
|
|
|
// // {
|
|
|
|
// // name: 'Example Tab',
|
|
|
|
// // content: `This is an _example_ tab to show how **tabs** work with [Markdown](${ MARKDOWN_LINK })!`,
|
|
|
|
// // }
|
|
|
|
// ],
|
|
|
|
},
|
|
|
|
words: [
|
|
|
|
/* {
|
|
|
|
name: '',
|
|
|
|
pronunciation: '',
|
|
|
|
partOfSpeech: '',
|
2019-05-10 18:08:49 +02:00
|
|
|
definition: '',
|
|
|
|
details: '',
|
2019-05-02 23:45:10 +02:00
|
|
|
wordId: 0
|
|
|
|
}, */
|
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
allowDuplicates: false,
|
|
|
|
caseSensitive: false,
|
|
|
|
sortByDefinition: false,
|
2019-05-31 21:04:49 +02:00
|
|
|
theme: 'default',
|
2019-05-02 23:45:10 +02:00
|
|
|
isPublic: false,
|
|
|
|
},
|
2019-05-22 02:54:19 +02:00
|
|
|
lastUpdated: getTimestampInSeconds(),
|
2019-05-08 23:34:03 +02:00
|
|
|
createdOn: getTimestampInSeconds(),
|
|
|
|
version: MIGRATE_VERSION,
|
2019-05-07 00:28:51 +02:00
|
|
|
};
|
|
|
|
|
2019-05-09 22:24:47 +02:00
|
|
|
export const DEFAULT_SETTINGS = {
|
|
|
|
useIPAPronunciationField: true,
|
2019-05-10 21:08:03 +02:00
|
|
|
useHotkeys: true,
|
2019-05-31 21:11:01 +02:00
|
|
|
defaultTheme: 'default',
|
2019-05-09 22:24:47 +02:00
|
|
|
};
|
|
|
|
|
2019-06-04 19:11:58 +02:00
|
|
|
export const DISPLAY_AD_EVERY = 10;
|
|
|
|
|
2019-05-08 23:23:46 +02:00
|
|
|
export const DEFAULT_PAGE_SIZE = 50;
|
|
|
|
|
|
|
|
export const LOCAL_STORAGE_KEY = 'dictionary';
|
2019-05-09 22:24:47 +02:00
|
|
|
export const SETTINGS_KEY = 'settings';
|