Lexiconga/src/constants.js

69 lines
1.4 KiB
JavaScript
Raw Normal View History

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: '',
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,
},
lastUpdated: getTimestampInSeconds(),
createdOn: getTimestampInSeconds(),
version: MIGRATE_VERSION,
};
export const DEFAULT_SETTINGS = {
useIPAPronunciationField: true,
2019-05-10 21:08:03 +02:00
useHotkeys: true,
defaultTheme: 'default',
};
export const DISPLAY_AD_EVERY = 10;
export const DEFAULT_PAGE_SIZE = 50;
export const LOCAL_STORAGE_KEY = 'dictionary';
export const SETTINGS_KEY = 'settings';