mirror of
https://github.com/zadam/trilium.git
synced 2024-11-17 21:21:40 +08:00
68 lines
4.2 KiB
Text
68 lines
4.2 KiB
Text
<div id="import-dialog" class="modal fade mx-auto" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">Import into note</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<form id="import-form">
|
|
<div class="modal-body">
|
|
<div id="import-progress-count-wrapper" class="alert alert-primary" style="padding: 15px;">
|
|
<strong>Note import progress count:</strong> <span id="import-progress-count"></span>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="import-file-upload-input"><strong>Choose import file</strong></label>
|
|
|
|
<input type="file" id="import-file-upload-input" class="form-control-file" multiple />
|
|
|
|
<p>Content of the file will be imported as child note(s) into <strong class="import-note-title"></strong>.
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<strong>Options:</strong>
|
|
|
|
<div class="checkbox">
|
|
<label data-toggle="tooltip" title="Trilium <code>.tar</code> export files can contain executable scripts which may contain harmful behavior. Safe import will deactivate automatic execution of all imported scripts. Uncheck "Safe import" only if the imported tar archive is supposed to contain executable scripts and you completely trust the contents of the import file.">
|
|
<input id="safe-import-checkbox" value="1" type="checkbox" checked>
|
|
<span>Safe import</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="checkbox">
|
|
<label data-toggle="tooltip" title="If this is checked then Trilium will read <code>.tar</code>, <code>.enex</code> and <code>.opml</code> files and create notes from files insides those archives. If unchecked, then Trilium will attach the archives themselves to the note.">
|
|
<input id="explode-archives-checkbox" value="1" type="checkbox" checked>
|
|
<span>Read contents of <code>.tar</code>, <code>.enex</code> and <code>.opml</code> archives.</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="checkbox">
|
|
<label data-toggle="tooltip" title="<p>If you check this option, Trilium will attempt to shrink the imported images by scaling and optimization which may affect the perceived image quality. If unchecked, images will be imported without changes.</p><p>This doesn't apply to <code>.tar</code> imports with metadata since it is assumed these files are already optimized.</p>">
|
|
<input id="shrink-images-checkbox" value="1" type="checkbox" checked> <span>Shrink images</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="checkbox">
|
|
<label>
|
|
<input id="text-imported-as-text-checkbox" value="1" type="checkbox" checked>
|
|
|
|
Import HTML, Markdown and TXT as text notes if it's unclear from metadata
|
|
</label>
|
|
</div>
|
|
|
|
<div class="checkbox">
|
|
<label>
|
|
<input id="code-imported-as-code-checkbox" value="1" type="checkbox" checked> Import recognized code files (e.g. <code>.json</code>) as code notes if it's unclear from metadata
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button class="btn btn-primary" id="import-button">Import</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|