Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Sep 9, 2024
1 parent e4f824d commit 5cefaf2
Showing 1 changed file with 61 additions and 61 deletions.
122 changes: 61 additions & 61 deletions src/utils/kwic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,72 +5,72 @@ export const getKWICColumns = (
t: (s: string) => string,
open: (keyword: KeywordInContext) => void,
): Array<ColumnDef<KeywordInContext>> => [
{
accessorKey: "docid",
header: () => h("div", { class: "text-right" }, t("DocID")),
cell: ({ row }) => {
const docid = row.getValue("docid");
return h("div", { class: "text-right font-medium" }, docid as string);
},
{
accessorKey: "docid",
header: () => h("div", { class: "text-right" }, t("DocID")),
cell: ({ row }) => {
const docid = row.getValue("docid");
return h("div", { class: "text-right font-medium" }, docid as string);
},
{
accessorKey: "source",
header: () => h("div", { class: "text-right" }, t("source")),
cell: ({ row }) => {
const source = row.getValue("source");
return h("div", { class: "text-right font-medium" }, source as string);
},
},
{
accessorKey: "source",
header: () => h("div", { class: "text-right" }, t("source")),
cell: ({ row }) => {
const source = row.getValue("source");
return h("div", { class: "text-right font-medium" }, source as string);
},
{
accessorKey: "region",
header: () => h("div", { class: "text-right" }, t("region")),
cell: ({ row }) => {
const region = row.getValue("region");
return h("div", { class: "text-right font-medium" }, region as string);
},
},
{
accessorKey: "region",
header: () => h("div", { class: "text-right" }, t("region")),
cell: ({ row }) => {
const region = row.getValue("region");
return h("div", { class: "text-right font-medium" }, region as string);
},
{
accessorKey: "left",
header: () => h("div", { class: "text-right" }, t("left")),
cell: ({ row }) => {
const left = row.getValue("left");
return h("div", { class: "text-right font-medium" }, left as string);
},
},
{
accessorKey: "left",
header: () => h("div", { class: "text-right" }, t("left")),
cell: ({ row }) => {
const left = row.getValue("left");
return h("div", { class: "text-right font-medium" }, left as string);
},
{
accessorKey: "word",
header: () => h("div", { class: "text-right" }, t("word")),
cell: ({ row }) => {
const word = row.getValue("word");
return h("div", { class: "text-right font-medium" }, word as string);
},
},
{
accessorKey: "word",
header: () => h("div", { class: "text-right" }, t("word")),
cell: ({ row }) => {
const word = row.getValue("word");
return h("div", { class: "text-right font-medium" }, word as string);
},
{
accessorKey: "right",
header: () => h("div", { class: "text-left" }, t("right")),
cell: ({ row }) => {
const right = row.getValue("right");
return h("div", { class: "text-right font-medium" }, right as string);
},
},
{
accessorKey: "right",
header: () => h("div", { class: "text-left" }, t("right")),
cell: ({ row }) => {
const right = row.getValue("right");
return h("div", { class: "text-right font-medium" }, right as string);
},
{
accessorKey: "link",
header: () => h("div", { class: "text-right" }, t("link")),
cell: ({ row }) => {
// const link = row.getValue("link");
// < size = "" class="me-2" icon = "mdi-open-in-new" @click="open(item)" />
return h(
VIcon,
{
onClick: () => {
open(row.original);
},
size: "small",
icon: "mdi-open-in-new",
class: "me-2 cursor-pointer font-medium",
},
{
accessorKey: "link",
header: () => h("div", { class: "text-right" }, t("link")),
cell: ({ row }) => {
// const link = row.getValue("link");
// < size = "" class="me-2" icon = "mdi-open-in-new" @click="open(item)" />
return h(
VIcon,
{
onClick: () => {
open(row.original);
},
// "open",
);
},
size: "small",
icon: "mdi-open-in-new",
class: "me-2 cursor-pointer font-medium",
},
// "open",
);
},
];
},
];

0 comments on commit 5cefaf2

Please sign in to comment.