2019-05-08 15:34:03 -06:00
|
|
|
import { getTimestampInSeconds } from "./helpers";
|
|
|
|
|
2019-07-10 14:59:37 -06:00
|
|
|
export const MIGRATE_VERSION = '2.1.0';
|
2019-05-02 15:45:10 -06:00
|
|
|
export const DEFAULT_DICTIONARY = {
|
|
|
|
name: 'New',
|
|
|
|
specification: 'Dictionary',
|
|
|
|
description: 'A new dictionary.',
|
2019-07-14 11:03:19 -06:00
|
|
|
partsOfSpeech: ['Noun', 'Adjective', 'Verb', 'Adverb', 'Preposition', 'Pronoun', 'Conjunction'],
|
2019-05-02 15:45:10 -06:00
|
|
|
alphabeticalOrder: [],
|
|
|
|
details: {
|
|
|
|
phonology: {
|
|
|
|
consonants: [],
|
|
|
|
vowels: [],
|
|
|
|
blends: [],
|
2019-07-10 12:14:27 -06:00
|
|
|
notes: '',
|
2019-07-05 10:28:32 -06:00
|
|
|
},
|
|
|
|
phonotactics: {
|
|
|
|
onset: [],
|
|
|
|
nucleus: [],
|
|
|
|
coda: [],
|
|
|
|
notes: '',
|
2019-05-02 15:45:10 -06:00
|
|
|
},
|
|
|
|
orthography: {
|
2019-07-05 10:28:32 -06:00
|
|
|
translations: [],
|
2019-05-02 15:45:10 -06:00
|
|
|
notes: '',
|
|
|
|
},
|
|
|
|
grammar: {
|
|
|
|
notes: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
words: [
|
|
|
|
/* {
|
|
|
|
name: '',
|
|
|
|
pronunciation: '',
|
|
|
|
partOfSpeech: '',
|
2019-05-10 10:08:49 -06:00
|
|
|
definition: '',
|
|
|
|
details: '',
|
2020-04-29 23:51:53 -06:00
|
|
|
etymology: [],
|
2020-05-04 00:16:52 -06:00
|
|
|
related: [],
|
2020-05-07 23:57:27 -06:00
|
|
|
principalParts: [],
|
2019-05-02 15:45:10 -06:00
|
|
|
wordId: 0
|
|
|
|
}, */
|
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
allowDuplicates: false,
|
|
|
|
caseSensitive: false,
|
|
|
|
sortByDefinition: false,
|
2019-05-31 13:04:49 -06:00
|
|
|
theme: 'default',
|
2019-07-10 14:59:37 -06:00
|
|
|
customCSS: '',
|
2019-05-02 15:45:10 -06:00
|
|
|
isPublic: false,
|
|
|
|
},
|
2019-05-21 18:54:19 -06:00
|
|
|
lastUpdated: getTimestampInSeconds(),
|
2019-05-08 15:34:03 -06:00
|
|
|
createdOn: getTimestampInSeconds(),
|
|
|
|
version: MIGRATE_VERSION,
|
2019-05-06 16:28:51 -06:00
|
|
|
};
|
|
|
|
|
2019-05-09 14:24:47 -06:00
|
|
|
export const DEFAULT_SETTINGS = {
|
|
|
|
useIPAPronunciationField: true,
|
2019-05-10 13:08:03 -06:00
|
|
|
useHotkeys: true,
|
2020-04-30 01:20:10 -06:00
|
|
|
showAdvanced: false,
|
2019-05-31 13:11:01 -06:00
|
|
|
defaultTheme: 'default',
|
2020-07-31 15:14:41 -06:00
|
|
|
templates: [],
|
2019-05-09 14:24:47 -06:00
|
|
|
};
|
|
|
|
|
2019-05-08 15:23:46 -06:00
|
|
|
export const DEFAULT_PAGE_SIZE = 50;
|
|
|
|
|
|
|
|
export const LOCAL_STORAGE_KEY = 'dictionary';
|
2019-05-09 14:24:47 -06:00
|
|
|
export const SETTINGS_KEY = 'settings';
|