Skip to content

Commit

Permalink
fix: fixed query item json view by swaping library
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoertl committed Sep 17, 2024
1 parent 55b9ffc commit 9aab1d5
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 121 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"tailwind-merge": "^2.4.0",
"vue-highlight-words": "^3.0.1",
"vue-i18n-routing": "^1.2.0",
"vue-json-pretty": "^2.4.0",
"zipcelx": "^1.6.2"
},
"devDependencies": {
Expand Down Expand Up @@ -108,7 +109,6 @@
"typescript": "^5.5.3",
"vitest": "^2.0.5",
"vitest-environment-nuxt": "^1.0.1",
"vue-json-viewer": "^3.0.4",
"vue-tsc": "^2.0.29",
"vuetify": "^3.5.1"
},
Expand Down
13 changes: 13 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ const expand = ref(false);
<VBtn value="relative" variant="outlined">{{ t("relative") }}</VBtn>
</VBtnToggle>
</div>
<!-- <JsonViewer boxed :value="regionalFrequencies" :expand-depth="5"></JsonViewer> -->

<div v-for="(query, index) of queries" :key="query.id">
<div class="mt-1">
Expand Down
1 change: 0 additions & 1 deletion src/components/DataDisplay/KWICDetailDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const t = useTranslations("Corpsum");
<VProgressCircular indeterminate></VProgressCircular>
<span class="ml-2">{{ t("loading-the-full-ref") }}</span>
</div>
<!-- <JsonViewer v-if="status !== 'pending'" :expand-depth="2" :value="details"></JsonViewer> -->
<div v-if="status !== 'pending' && details">
<div
v-for="ref of details.data.Refs"
Expand Down
100 changes: 0 additions & 100 deletions src/components/Dev.vue

This file was deleted.

8 changes: 5 additions & 3 deletions src/components/Search/QueryItem.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<script setup lang="ts">
import "vue-json-pretty/lib/styles.css";
import VueJsonPretty from "vue-json-pretty";
import { useQueryStore } from "../../stores/query";
const props = defineProps<{ query: CorpusQuery }>();
Expand Down Expand Up @@ -67,9 +71,7 @@ const showFacettingInterface = ref(false);

<VCardText class="flex justify-between gap-1" :style="`color: ${props.query.color}`">
<div class="flex flex-col justify-between">
<!-- <JsonViewer preview-mode :value="query.concordance_query" boxed></JsonViewer> -->
<JsonViewer boxed preview-mode :value="queryWithFacetting"></JsonViewer>
<!-- <JsonViewer preview-mode :value="query.KWICAttrsStructs" boxed></JsonViewer> -->
<VueJsonPretty :data="queryWithFacetting"></VueJsonPretty>
</div>
<div class="flex flex-col gap-1">
<CorpusChip :query="query"></CorpusChip>
Expand Down
5 changes: 0 additions & 5 deletions src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@ const { queries } = storeToRefs(queryStore);
</VContainer>

<Search></Search>
<!-- <v-data-table /> -->
<!-- <Dev></Dev> -->

<VContainer>
<div class="" :class="['grid', 'gap-3', `grid-cols-1`]">
<!-- <DisplayCard v-for="i in 2" :key="i" :title="titles[i]"></DisplayCard> -->

<DataDisplayYearlyFrequencies
v-if="selectedSearches.includes('yearlyFrequencies' as unknown as SearchFunctionKey)"
:queries="queries"
Expand Down Expand Up @@ -64,7 +60,6 @@ const { queries } = storeToRefs(queryStore);
></DataDisplayKeywordInContext>
</div>
</VContainer>
<!-- <Dev /> -->
</ClientOnly>
</MainContent>
</template>
10 changes: 0 additions & 10 deletions src/plugins/jsonViewer.ts

This file was deleted.

0 comments on commit 9aab1d5

Please sign in to comment.