Skip to content

Commit

Permalink
fix: show full meaning preview in anki template field options
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueGreenMagick committed Jun 8, 2024
1 parent 142de35 commit 7a1bbdf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
type AnkiTemplateField,
} from "lib/anki";
import type { Config } from "lib/config";
// import { exampleMarkerData } from "../../exampleMarkerData";
import type { AnkiInfo } from "platform/common/anki";
import type { Platform } from "@platform";
import AnkiTemplateFieldEdit from "./AnkiTemplateFieldEdit.svelte";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<script lang="ts">
import type { Platform } from "@platform";
import IconEye from "@icons/eye.svg";
import IconOptions from "@icons/options.svg";
import {
type AnkiTemplateFieldContent,
ANKI_TEMPLATE_FIELD_TYPES,
Expand All @@ -9,15 +12,12 @@
buildAnkiField,
type AnkiTemplateField,
} from "lib/anki";
import AnkiTemplateFieldOptionsEdit from "./AnkiTemplateFieldOptionsEdit.svelte";
import type Config from "lib/config";
import Select from "components/Select.svelte";
import IconEye from "@icons/eye.svg";
import IconOptions from "@icons/options.svg";
import NoteFieldEditor from "components/anki/NoteFieldEditor.svelte";
import type { Platform } from "@platform";
import type Config from "lib/config";
import { exampleMarkerData } from "components/options/exampleMarkerData";
import IconedButton from "components/IconedButton.svelte";
import AnkiTemplateFieldOptionsEdit from "./AnkiTemplateFieldOptionsEdit.svelte";
import { exampleMarkerData } from "./exampleMarkerData";
export let platform: Platform;
export let config: Config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ const tokenized: TokenizeResult = {
export const exampleMarkerData: AnkiBuilderData = {
tokenized,
entry: tokenized.entries[0],
selectedMeaning: tokenized.entries[0].senses[0],
sentence: tokenized.tokens.map((tok) => tok.text).join(""),
url: "https://yomikiri.example/",
pageTitle: "Yomikiri Examples",
Expand Down

0 comments on commit 7a1bbdf

Please sign in to comment.