Lexiconga/src/constants.js

69 lines
1.4 KiB
JavaScript
Raw Normal View History

import { getTimestampInSeconds } from "./helpers";
2019-07-10 22:59:37 +02:00
export const MIGRATE_VERSION = '2.1.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', 'Adverb', 'Preposition', 'Pronoun', 'Conjunction'],
2019-05-02 23:45:10 +02:00
alphabeticalOrder: [],
details: {
phonology: {
consonants: [],
vowels: [],
blends: [],
2019-07-10 20:14:27 +02:00
notes: '',
},
phonotactics: {
onset: [],
nucleus: [],
coda: [],
notes: '',
2019-05-02 23:45:10 +02:00
},
orthography: {
translations: [],
2019-05-02 23:45:10 +02:00
notes: '',
},
grammar: {
notes: '',
},
},
words: [
/* {
name: '',
pronunciation: '',
partOfSpeech: '',
definition: '',
details: '',
etymology: [],
2020-05-04 08:16:52 +02:00
related: [],
2020-05-08 07:57:27 +02:00
principalParts: [],
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-07-10 22:59:37 +02:00
customCSS: '',
2019-05-02 23:45:10 +02:00
isPublic: false,
},
lastUpdated: getTimestampInSeconds(),
createdOn: getTimestampInSeconds(),
version: MIGRATE_VERSION,
};
export const DEFAULT_SETTINGS = {
useIPAPronunciationField: true,
2019-05-10 21:08:03 +02:00
useHotkeys: true,
showAdvanced: false,
defaultTheme: 'default',
2020-07-31 23:14:41 +02:00
templates: [],
};
export const DEFAULT_PAGE_SIZE = 50;
export const LOCAL_STORAGE_KEY = 'dictionary';
export const SETTINGS_KEY = 'settings';