Files
remark42/frontend/app/common/static_store.ts
T
Pavel MineevandUmputun c69e375e45 Add "simple view" mode (#502)
* Add "simple view" mode support

It just hide elements from view when SIMPLE_VIEW recived from server

* Fix typing and add ts check before push

* proper input styling

* Changes for frontend dev compose

* remove SIMPLE_VIEW from default settings for forntend dev
* add private compose to gitignore

* Added simpleView mode for replay and edit modes.

* `simpleView` changed to required param

* FIx border-width in reply form

* Fix border-width in editing mode
2020-01-04 01:31:06 -06:00

33 lines
808 B
TypeScript

import { Config } from './types';
import { QuerySettingsType, querySettings } from './settings';
interface StaticStoreType {
config: Config;
query: QuerySettingsType;
/** used in fetcher, fer example to set comment edit temiout */
serverClientTimeDiff?: number;
}
/**
* Represent store of values that and will not change, or doesn't need reactivity
*
* Initialized once at webpack's entry points (i.e remark.tsx)
*/
export const StaticStore: StaticStoreType = {
config: {
version: '',
edit_duration: 5000,
max_comment_size: 5000,
admins: [],
admin_email: '',
auth_providers: [],
critical_score: 0,
low_score: 0,
positive_score: false,
readonly_age: 0,
max_image_size: 0,
simple_view: false,
},
query: querySettings as QuerySettingsType,
};