1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Revert "Desktop: Add OneNote Importer (#10642)"

This reverts commit b248700e28.

We need to find a solution to make building the Rust package optional
This commit is contained in:
Laurent Cozic
2024-11-09 13:42:37 +00:00
parent 551bcc68cf
commit 33942d44c8
194 changed files with 7 additions and 15886 deletions

View File

@@ -17,7 +17,6 @@ import crypto from './services/e2ee/crypto';
import FileApiDriverLocal from './file-api-driver-local';
import * as mimeUtils from './mime-utils';
import BaseItem from './models/BaseItem';
const { _ } = require('./locale');
const http = require('http');
const https = require('https');
@@ -310,11 +309,13 @@ function shimInit(options: ShimInitOptions = null) {
const isUpdate = !!options.destinationResourceId;
const uuid = require('./uuid').default;
if (!(await fs.pathExists(filePath))) throw new Error(_('Cannot access %s', filePath));
defaultProps = defaultProps ? defaultProps : {};
let resourceId = defaultProps.id ? defaultProps.id : BaseItem.generateUuid();
let resourceId = defaultProps.id ? defaultProps.id : uuid.create();
if (isUpdate) resourceId = options.destinationResourceId;
let resource = isUpdate ? {} : Resource.new();