mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 17:45:56 +08:00
8966dad344
* count things in redis * add rest routes for daily comment totals * add route for new commenters * retrieve hourly totals for new commenters and comments * add rate limiting * add routes and components for dashboard * add top stories component * add activity charts * clean up rest responses * style dashboard components * make dashboard site-aware * change new commenters to new signups * generate new signups by day chart * update status pie chart * update status pie chart * allow site selection in dashboard * cache daily signups * count user bans in redis * clean up route and method names * clean up comment statuses chart and change from pie to bar * fix package lock * make daily counts time zone aware * count rejected comments * clean up today counts * count comments from site * store hourly keys in utc * show daily user signups * move siteID from params to query params * add average line for daily comments chart * make average comments count hourly * show percent values for rejected comments * style dashboard * simplify dashboard rest routes * style today totals and top stories * style signup and comment activity chart * add site selector to nav * feat: redis/mongo refactor * fix: some small tweaks - Added comments to magic numbers - Added errors for missing input - Consolidated promise resolutions * Revert "add site selector to nav" This reverts commit 1c2b1dee34fb2742b04932079fd45f7f3de98418. * show first site dashboard by default * style dashboard site switcher * updte snapshot * add dashboard 118n keys * udpate comment activiyt chart with legend and tooltip * implement refresh button and loading states * change colours of charts for today * adjust today values spacing * remove unused package * don't pass redis into oauth strat * remove unused package * Revert "remove unused package" This reverts commit 5b7c83a072604810ce7097865655e9ef8114d9e0. * fix merge conflicts * Fix icons bug on smaller screens * resolve merge conflict Co-authored-by: Wyatt Johnson <me@wyattjoh.ca>
59 lines
1.6 KiB
JSON
59 lines
1.6 KiB
JSON
{
|
|
"files.associations": {
|
|
"*.css": "postcss"
|
|
},
|
|
"files.exclude": {
|
|
"**/.git": true,
|
|
"**/.svn": true,
|
|
"**/.hg": true,
|
|
"**/CVS": true,
|
|
"**/.DS_Store": true,
|
|
".vs": true
|
|
},
|
|
"tslint.enable": false,
|
|
"eslint.validate": [
|
|
{ "language": "javascript", "autoFix": true },
|
|
{ "language": "typescript", "autoFix": true },
|
|
{ "language": "typescriptreact", "autoFix": true }
|
|
],
|
|
"typescript.tsdk": "node_modules/typescript/lib",
|
|
"postcss.validate": false,
|
|
"javascript.preferences.importModuleSpecifier": "non-relative",
|
|
"importSorter.importStringConfiguration.quoteMark": "double",
|
|
"importSorter.importStringConfiguration.maximumNumberOfImportExpressionsPerLine.count": 80,
|
|
"importSorter.sortConfiguration.customOrderingRules.rules": [
|
|
{
|
|
"type": "importMember",
|
|
"regex": "^$",
|
|
"orderLevel": 70,
|
|
"disableSort": true
|
|
},
|
|
{
|
|
"regex": "__generated__",
|
|
"orderLevel": 40
|
|
},
|
|
{
|
|
"regex": "^coral-",
|
|
"orderLevel": 30
|
|
},
|
|
{
|
|
"regex": "\\.css$",
|
|
"orderLevel": 60,
|
|
"disableSort": true
|
|
},
|
|
{
|
|
"regex": "^[.]",
|
|
"orderLevel": 50
|
|
}
|
|
],
|
|
"importSorter.importStringConfiguration.maximumNumberOfImportExpressionsPerLine.type": "newLineEachExpressionAfterCountLimitExceptIfOnlyOne",
|
|
"importSorter.importStringConfiguration.trailingComma": "multiLine",
|
|
"importSorter.importStringConfiguration.tabSize": 2,
|
|
"eslint.enable": true,
|
|
"importSorter.generalConfiguration.exclude": ["d\\.ts$", "__generated__"],
|
|
"search.exclude": {
|
|
"package-lock.json": true
|
|
},
|
|
"debug.node.autoAttach": "off"
|
|
}
|