anki/ts/lib/help-page.ts

47 lines
2.7 KiB
TypeScript
Raw Normal View History

// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
/** These links are checked in CI to ensure they are valid. */
export const HelpPage = {
DeckOptions: {
maximumInterval: "https://docs.ankiweb.net/deck-options.html#maximum-interval",
startingEase: "https://docs.ankiweb.net/deck-options.html#starting-ease",
easyBonus: "https://docs.ankiweb.net/deck-options.html#easy-bonus",
intervalModifier: "https://docs.ankiweb.net/deck-options.html#interval-modifier",
hardInterval: "https://docs.ankiweb.net/deck-options.html#hard-interval",
newInterval: "https://docs.ankiweb.net/deck-options.html#new-interval",
advanced: "https://docs.ankiweb.net/deck-options.html#advanced",
timer: "https://docs.ankiweb.net/deck-options.html#timer",
learningSteps: "https://docs.ankiweb.net/deck-options.html#learning-steps",
graduatingInterval: "https://docs.ankiweb.net/deck-options.html#graduating-interval",
easyInterval: "https://docs.ankiweb.net/deck-options.html#easy-interval",
insertionOrder: "https://docs.ankiweb.net/deck-options.html#insertion-order",
newCards: "https://docs.ankiweb.net/deck-options.html#new-cards",
relearningSteps: "https://docs.ankiweb.net/deck-options.html#relearning-steps",
minimumInterval: "https://docs.ankiweb.net/deck-options.html#minimum-interval",
lapses: "https://docs.ankiweb.net/deck-options.html#lapses",
displayOrder: "https://docs.ankiweb.net/deck-options.html#display-order",
maximumReviewsday: "https://docs.ankiweb.net/deck-options.html#maximum-reviewsday",
newCardsday: "https://docs.ankiweb.net/deck-options.html#new-cardsday",
dailyLimits: "https://docs.ankiweb.net/deck-options.html#daily-limits",
audio: "https://docs.ankiweb.net/deck-options.html#audio",
},
Leeches: {
leeches: "https://docs.ankiweb.net/leeches.html#leeches",
waiting: "https://docs.ankiweb.net/leeches.html#waiting",
},
Studying: {
siblingsAndBurying: "https://docs.ankiweb.net/studying.html#siblings-and-burying",
},
Merging Notetypes on Import (#2612) * Remember original id when importing notetype * Reuse notetypes with matching original id * Add field and template ids * Enable merging imported notetypes * Fix test Note should be updated if the incoming note's notetype is remapped to the existing note's notetype. On the other hand, it should be skipped if its notetype id is mapped to some new notetype. * Change field and template ids to i32 * Add merge notetypes flag to proto message * Add dialog for apkg import * Move HelpModal into components * Generalize import dialog * Move SettingTitle into components * Add help modal to ImportAnkiPackagePage * Move SwitchRow into components * Fix backend method import * Make testable in browser * Fix broken modal * Wrap in container and fix margins * Update commented Anki version of new proto fields * Check ids when comparing notetype schemas * Add tooltip for merging notetypes. * Allow updating notes regardless of mtime * Gitignore yarn-error.log * Allow updating notetypes regardless of mtime * Fix apkg help carousel * Use i64s for template and field ids * Add option to omit importing scheduling info * Restore last settings in apkg import dialog * Display error when getting metadata in webview * Update manual links for apkg importing * Apply suggestions from code review Co-authored-by: Damien Elmes <dae@users.noreply.github.com> * Omit schduling -> Import all cards as new cards * Tweak importing-update-notes-help * UpdateCondition → ImportAnkiPackageUpdateCondition * Load keyboard.ftl * Skip updating dupes in 'update alwyas' case * Explain more when merging notetypes is required * "omit scheduling" → "with scheduling" * Skip updating notetype dupes if 'update always' * Merge duplicated notetypes from previous imports * Fix rebase aftermath * Fix panic when merging * Clarify 'update notetypes' help * Mention 'merge notetypes' in the log * Add a test which covers the previously panicking path * Use nested ftl messages to ensure consistency * Make order of merged fields deterministic * Rewrite test to trigger panic * Update version comment on new fields
2023-09-09 01:00:55 +02:00
PackageImporting: {
root: "https://docs.ankiweb.net/importing/packaged-decks.html",
updating: "https://docs.ankiweb.net/importing/packaged-decks.html#updating",
scheduling: "https://docs.ankiweb.net/importing/packaged-decks.html#scheduling",
},
TextImporting: {
root: "https://docs.ankiweb.net/importing/text-files.html",
updating: "https://docs.ankiweb.net/importing/text-files.html#duplicates-and-updating",
html: "https://docs.ankiweb.net/importing/text-files.html#html",
},
};