@cpany/app
Advanced tools
Comparing version 0.1.13 to 0.1.14
{ | ||
"name": "@cpany/app", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"description": "CPany web app", | ||
@@ -16,4 +16,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@cpany/compress": "0.1.13", | ||
"@cpany/types": "0.1.13", | ||
"@cpany/compress": "0.1.14", | ||
"@cpany/types": "0.1.14", | ||
"tippy.js": "^6.3.1", | ||
@@ -20,0 +20,0 @@ "vue": "^3.2.12", |
import rawHistory from '~cpany/log'; | ||
import { load } from '@cpany/compress/load'; | ||
import { FetchLog, UserDiffLog } from '@cpany/types'; | ||
import { toDay } from '@/utils'; | ||
import { DiffLog, UserDiffLog } from '@cpany/types'; | ||
import { toDay, toDate } from '@/utils'; | ||
export const history = load<FetchLog>(rawHistory).history ?? {}; | ||
const content = load<{ history: DiffLog; commits: string[]; startTime: number }>(rawHistory); | ||
export const history = content.history; | ||
export const commits = content.commits; | ||
export const startTime = toDate(content.startTime); | ||
export type ISub = UserDiffLog['newSubmissions'][0]; | ||
@@ -36,2 +42,3 @@ | ||
for (const sub of userLog.newSubmissions) { | ||
if (sub.creationTime < content.startTime) continue; | ||
const d = toDay(sub.creationTime).value; | ||
@@ -38,0 +45,0 @@ if (!groupByDay.has(d)) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
9927575
1901
+ Added@cpany/compress@0.1.14(transitive)
+ Added@cpany/types@0.1.14(transitive)
- Removed@cpany/compress@0.1.13(transitive)
- Removed@cpany/types@0.1.13(transitive)
Updated@cpany/compress@0.1.14
Updated@cpany/types@0.1.14