feat(core): onenote importer (#15198)
#### PR Dependency Tree * **PR #15198** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added OneNote import support for `.one`, `.onetoc2`, and `.onepkg`, including OneNote-to-markdown content conversion. * OneNote now appears in the import flow with a dedicated label and format tooltip, and file pickers recognize the new OneNote type. * **Bug Fixes** * Import options that are desktop-only are now disabled when not running in the desktop app, with clear messaging. * Improved imported asset handling by converting non-image embedded assets into attachments for more consistent results. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"ar": 95,
|
||||
"ar": 94,
|
||||
"ca": 92,
|
||||
"da": 4,
|
||||
"de": 100,
|
||||
@@ -7,9 +7,9 @@
|
||||
"en": 100,
|
||||
"es-AR": 91,
|
||||
"es-CL": 92,
|
||||
"es": 91,
|
||||
"es": 90,
|
||||
"fa": 90,
|
||||
"fr": 95,
|
||||
"fr": 94,
|
||||
"hi": 1,
|
||||
"it": 92,
|
||||
"ja": 90,
|
||||
|
||||
@@ -2514,6 +2514,18 @@ export function useAFFiNEI18N(): {
|
||||
* `Import a Notion Markdown export zip with subpages and attachments.`
|
||||
*/
|
||||
["com.affine.import.notion-markdown.tooltip"](): string;
|
||||
/**
|
||||
* `OneNote (Experimental)`
|
||||
*/
|
||||
["com.affine.import.onenote"](): string;
|
||||
/**
|
||||
* `Import a OneNote .one, .onetoc2, or .onepkg file. Available in the desktop app.`
|
||||
*/
|
||||
["com.affine.import.onenote.tooltip"](): string;
|
||||
/**
|
||||
* `This format importer is available in the AFFiNE desktop app.`
|
||||
*/
|
||||
["com.affine.import.onenote.desktop-only"](): string;
|
||||
/**
|
||||
* `Obsidian Vault (Experimental)`
|
||||
*/
|
||||
|
||||
@@ -627,6 +627,9 @@
|
||||
"com.affine.import.notion.tooltip": "Import your Notion data. Supported import formats: HTML with subpages.",
|
||||
"com.affine.import.notion-markdown": "Notion (Markdown, .zip)",
|
||||
"com.affine.import.notion-markdown.tooltip": "Import a Notion Markdown export zip with subpages and attachments.",
|
||||
"com.affine.import.onenote": "OneNote (Experimental)",
|
||||
"com.affine.import.onenote.tooltip": "Import a OneNote .one, .onetoc2, or .onepkg file. Available in the desktop app.",
|
||||
"com.affine.import.onenote.desktop-only": "This format importer is available in the AFFiNE desktop app.",
|
||||
"com.affine.import.obsidian": "Obsidian Vault (Experimental)",
|
||||
"com.affine.import.obsidian.tooltip": "Import an Obsidian vault. Select a folder to import all notes, images, and assets with wikilinks resolved.",
|
||||
"com.affine.import.snapshot": "Snapshot",
|
||||
|
||||
@@ -625,6 +625,9 @@
|
||||
"com.affine.import.modal.tip": "如果您希望请求支持其他文件类型,请随时告诉我们",
|
||||
"com.affine.import.notion": "Notion",
|
||||
"com.affine.import.notion.tooltip": "导入您的 Notion 数据。支持导入格式:HTML 带子页面。",
|
||||
"com.affine.import.onenote": "OneNote(实验性)",
|
||||
"com.affine.import.onenote.tooltip": "导入 OneNote .one、.onetoc2 或 .onepkg 文件。仅桌面客户端可用。",
|
||||
"com.affine.import.onenote.desktop-only": "该格式导入器仅在 AFFiNE 桌面客户端可用。",
|
||||
"com.affine.import.obsidian": "Obsidian 仓库(实验性)",
|
||||
"com.affine.import.obsidian.tooltip": "导入 Obsidian 仓库。选择一个文件夹以导入所有笔记、图片和资源,并解析 wiki 链接。",
|
||||
"com.affine.import.snapshot": "快照",
|
||||
|
||||
Reference in New Issue
Block a user