-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: create text tag * feat: init * feat: text data * feat: zoom * feat: text detail * feat: step * style * fix: width * fix: change * fix: change * feat: modal title * fix: line clamp * test: text log * Squashed commit of the following: commit 6ec7f6d Author: KAAANG <79990647+SAKURA-CAT@users.noreply.github.com> Date: Thu Feb 22 16:13:17 2024 +0800 record max step and min step (#341) commit ce48cd8 Author: KAAANG <cunykang@gmail.com> Date: Thu Feb 22 15:51:42 2024 +0800 delete Video commit a11a7ed Author: Bote Huang <106975133+KashiwaByte@users.noreply.github.com> Date: Thu Feb 22 15:36:32 2024 +0800 Feat/video chart (#338) * feat:create class Video * feat:add __init__,add video chart * feat:add function for saving video * feat:add function for getting list of video * feat:add function get_data * feat:add function __save and __prepare_video * feat:add function load_from_str and load_from_BytesIO * bugfix: fix __save function * del test file commit 6b5b9c3 Author: KAAANG <79990647+SAKURA-CAT@users.noreply.github.com> Date: Wed Feb 21 15:25:33 2024 +0800 Feat/new line chart (#334) * add type——linear * label formatter * update tick commit 788d8c1 Author: Ze-Yi LIN <58305964+xiaolin199912@users.noreply.github.com> Date: Tue Feb 20 21:07:39 2024 +0800 Feat/image-add-parameters-boxes-masks (#329) * add BoundingBoxes class * update something * Update transfer_logfile_0.1.4.py * add ImageMask class * bugfix commit 65a6378 Author: Ze-Yi LIN <58305964+xiaolin199912@users.noreply.github.com> Date: Mon Feb 19 18:42:11 2024 +0800 Readme v0.2.0 (#326) commit 7b964e9 Author: Zirui Cai <74649535+Feudalman@users.noreply.github.com> Date: Mon Feb 19 18:29:05 2024 +0800 Fixbug/tag sort (#327) * use hash name to filename * feat: get text * feat: get text * feat: caption * fix: log page layout * ui: color * feat: skeleton * fix: detail caption * fix: length * feat: log height * feat: page index * fix: flash * fix: skeleton * fix: flash * fix: some bug * fix:wrap * ui: color * Squashed commit of the following: commit b328478 Author: KAAANG <79990647+SAKURA-CAT@users.noreply.github.com> Date: Mon Feb 26 22:12:23 2024 +0800 Update/line chart styles (#351) * hover active * hover top * optimize hover top * Update LineChart.vue * update hover * allow hover while running * Limit height when zooming in * fix slidebar bug * thickenByTag * Logic to distinguish between multiple data charts and single data charts * allow config crosshair * update crosshairsColor * update doc * update thickerLineWidth --------- Co-authored-by: ZeYi Lin <944270057@qq.com> * refactor: click to turn page * feat: enter and blur * doc: comments * fix: bg height * Update launch.json * refactor: get texts * refactor: script to create experiment --------- Co-authored-by: ZeYi Lin <944270057@qq.com> Co-authored-by: KAAANG <cunykang@gmail.com>
- Loading branch information
1 parent
113d4bc
commit bb6d595
Showing
17 changed files
with
675 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
config, | ||
Audio, | ||
Image, | ||
Text, | ||
Run, | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<template> | ||
<div class="px-6 py-10 overflow-hidden bg-higher rounded-lg"> | ||
<!-- infos --> | ||
<div v-for="item in info_list" :key="item" class="sm:flex pb-3"> | ||
<span class="block w-48 font-semibold shrink-0">{{ $t(`common.chart.text-chart.titles.${item.key}`) }}:</span> | ||
<span :title="item.value">{{ item.value }}</span> | ||
</div> | ||
<!-- text --> | ||
<p class="font-semibold pb-2">{{ $t('common.chart.text-chart.titles.text') }}:</p> | ||
<div class="p-4 min-h-[20vh] max-h-[55vh] overflow-y-auto border rounded bg-default"> | ||
<p v-for="text in data.text.split('\n')" :key="text"> | ||
<span v-if="text != ''">{{ text }}</span> | ||
<br v-else /> | ||
</p> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
/** | ||
* @description: 展示 text 详细信息,与弹窗中调用 | ||
* @file: TextDetail.vue | ||
* @since: 2024-02-21 13:46:40 | ||
**/ | ||
import { computed } from 'vue' | ||
const props = defineProps({ | ||
data: { | ||
type: Object, | ||
required: true, | ||
default: () => {} | ||
} | ||
}) | ||
const info_list = computed(() => { | ||
const line = props.data.line | ||
return [ | ||
{ | ||
key: 'tag', | ||
value: props.data.tag | ||
}, | ||
{ | ||
key: 'step', | ||
value: line.index | ||
}, | ||
{ | ||
key: 'caption', | ||
value: props.data.caption || '-' | ||
}, | ||
{ | ||
key: 'count', | ||
value: props.data.text.replace(/[\r\n\s]/g, '').length | ||
} | ||
] | ||
}) | ||
</script> | ||
|
||
<style lang="scss" scoped></style> |
Oops, something went wrong.