mirror of
https://github.com/requarks/wiki.git
synced 2026-08-27 05:37:10 -05:00
feat: make user defaults global + add accessible view docs / refresh labels in admin
This commit is contained in:
@@ -58,9 +58,10 @@ export class Site extends Model {
|
||||
footerExtra: '',
|
||||
pageExtensions: ['md', 'html', 'txt'],
|
||||
defaults: {
|
||||
timezone: 'America/New_York',
|
||||
dateFormat: 'YYYY-MM-DD',
|
||||
timeFormat: '12h'
|
||||
tocDepth: {
|
||||
min: 1,
|
||||
max: 2
|
||||
}
|
||||
},
|
||||
features: {
|
||||
ratings: false,
|
||||
|
||||
@@ -588,10 +588,10 @@ export class User extends Model {
|
||||
},
|
||||
prefs: {
|
||||
cvd: 'none',
|
||||
timezone: 'America/New_York',
|
||||
timezone: WIKI.config.userDefaults.timezone || 'America/New_York',
|
||||
appearance: 'site',
|
||||
dateFormat: 'YYYY-MM-DD',
|
||||
timeFormat: '12h'
|
||||
dateFormat: WIKI.config.userDefaults.dateFormat || 'YYYY-MM-DD',
|
||||
timeFormat: WIKI.config.userDefaults.timeFormat || '12h'
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user