summaryrefslogtreecommitdiff
path: root/packages/client/src/components/global/time.vue (follow)
Commit message (Collapse)AuthorAgeFilesLines
* refactor(client): align filename to component namesyuilo2022-08-311-56/+0
|
* perf(client): use shallowRef as possiblesyuilo2022-08-061-1/+1
|
* refactor(client): extract interval logic to a composable functionsyuilo2022-06-261-9/+9
| | | | あと`onUnmounted`を`onMounted`内で呼んでいたりしたのを修正したりとか
* refactor: improve code quality (#8751)Johann1502022-05-291-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove unnecessary if `Array.prototype.some` already returns a boolean so an if to return true or false is completely unnecessary in this case. * perf: use count instead of find When using `count` instead of `findOneBy`, the data is not unnecessarily loaded. * remove duplicate null check The variable is checked for null in the lines above and the function returns if so. Therefore, it can not be null at this point. * simplify `getJsonSchema` Because the assigned value is `null` and the used keys are only shallow, use of `nestedProperty.set` seems inappropriate. Because the value is not read, the initial for loop can be replaced by a `for..in` loop. Since all keys will be assigned `null`, the condition of the ternary expression in the nested function will always be true. Therefore the recursion case will never happen. With this the nested function can be eliminated. * remove duplicate condition The code above already checks `dragging` and returns if it is truthy. Checking it again later is therefore unnecessary. To make this more obvious the `return` is removed in favour of using an if...else construct. * remove impossible "unknown" time The `ago` variable will always be a number and all non-negative numbers are already covered by other cases, the negative case is handled with `future` so there is no case when `unkown` could be achieved.
* fix lints (#8737)Johann1502022-05-261-1/+1
| | | | | | | | | | | | | | | * fix: emits use ev instead of e * fix: errors use err instead of e * fix: replace use of data where possible * fix: events use evt instead of e * fix: use strict equals * fix: use emoji instead of e * fix: vue lints
* round relative time (#8199)Johann1502022-01-281-5/+5
|
* refactor(client): i18n.locale -> i18n.tssyuilo2022-01-281-3/+3
|
* wip: refactor(client): migrate components to composition apisyuilo2022-01-161-64/+48
|
* refactoringsyuilo2021-11-121-0/+73
Resolve #7779