feat(archive): export a studyset as an archive to import again
Export content now asks what to export as: an archive first, a .zip the Library's Import takes back as the person's own, for a backup or a move to another instance; Markdown, to read elsewhere, below it. The archive holds the studyset with everything inside it but what waits in Recently deleted, laid out as the instance writes a release, unlinked from Explore; dictionary cards go whole, with the person's edits. Every file its content names is downloaded first, and an archive missing one is not kept: the person is told how many and to try again online. With my progress (ticked at first) adds the reviews, the answers to learning paths' steps, the pages read in PDFs, and what a release leaves out as only its author's: the exam prepared for, a card's report, a PDF's reading deadline. Stars, archived studysets and the tags' colours come along either way. The import of v0.17.0 refuses a file it doesn't know, so what it doesn't read goes into the files it reads, as keys it skips, and the format stays 1: archive.json's tags, a studyset.json's archived and starred, a step's answers, a PDF's readings. This import reads them; an archive it can't read all of still writes nothing, its tags included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
197726f5a3
commit
6f3ba7b421
1 changed files with 1671 additions and 30 deletions
|
|
@ -1858,6 +1858,66 @@ abstract class AppLocalizations {
|
|||
/// **'Couldn\'t export the studyset.'**
|
||||
String get exportFailed;
|
||||
|
||||
/// No description provided for @exportTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Export'**
|
||||
String get exportTitle;
|
||||
|
||||
/// No description provided for @exportArchive.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Archive'**
|
||||
String get exportArchive;
|
||||
|
||||
/// No description provided for @exportArchiveSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'A .zip to import again: a backup, or a move to another instance.'**
|
||||
String get exportArchiveSubtitle;
|
||||
|
||||
/// No description provided for @exportMarkdown.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Markdown'**
|
||||
String get exportMarkdown;
|
||||
|
||||
/// No description provided for @exportMarkdownSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'To read elsewhere. It can\'t be imported again.'**
|
||||
String get exportMarkdownSubtitle;
|
||||
|
||||
/// No description provided for @exportWithProgress.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'With my progress'**
|
||||
String get exportWithProgress;
|
||||
|
||||
/// No description provided for @exportWithProgressSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Reviews, answers, pages read, the exam you\'re preparing for, your reports and reading deadlines'**
|
||||
String get exportWithProgressSubtitle;
|
||||
|
||||
/// No description provided for @exportConfirm.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Export'**
|
||||
String get exportConfirm;
|
||||
|
||||
/// No description provided for @exportedArchive.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Exported as an archive (.zip).'**
|
||||
String get exportedArchive;
|
||||
|
||||
/// No description provided for @exportArchiveFilesMissing.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'{count, plural, =1{1 file isn\'t on this device and couldn\'t be downloaded.} other{{count} files aren\'t on this device and couldn\'t be downloaded.}} Connect to the internet and try again.'**
|
||||
String exportArchiveFilesMissing(int count);
|
||||
|
||||
/// No description provided for @exportQuestion.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
|
|
|||
Loading…
Reference in a new issue