1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-10 10:00:48 +09:00

all spaces export for deleted account

This commit is contained in:
Andrew Simachev 2024-03-07 10:59:19 +01:00
parent 7656308ed9
commit 0572f127c8
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
5 changed files with 23 additions and 6 deletions

View file

@ -75,6 +75,22 @@ html.bodyIndex, html.bodyAuth {
ul { list-style-position: inside; padding-left: 0.75em; }
}
/* Notifications */
.notifications {
@mixin shadow { box-shadow: 0px 4px 16px rgb(0 0 0 / 20%), 0px 0px 0px 1px #393933 inset; }
.head {
.icon { border-color: var(--color-bg-secondary); }
}
.notification { background: var(--color-bg-secondary); @include shadow; border: 0px; }
.notification {
.icon.delete { background-color: var(--color-bg-secondary); }
}
}
.loaderWrapper {
.loader { border-color: #555; border-left-color: var(--color-system-accent-100) !important; }
.dot { border-color: #fff; }

View file

@ -125,7 +125,7 @@ const PageAuthDeleted = observer(class PageAuthDeleted extends React.Component<I
};
onExport () {
Action.export([], I.ExportType.Markdown, {
Action.export('', [], I.ExportType.Markdown, {
zip: true,
nested: true,
files: true,

View file

@ -187,6 +187,7 @@ const PopupExport = observer(class PopupExport extends React.Component<I.Popup>
};
onConfirm (e: any) {
const { space } = commonStore;
const { param, close } = this.props;
const { data } = param;
const { objectIds, route } = data;
@ -196,7 +197,7 @@ const PopupExport = observer(class PopupExport extends React.Component<I.Popup>
switch (format) {
default:
Action.export(objectIds, format, { ...this.data, route });
Action.export(space, objectIds, format, { ...this.data, route });
close();
break;

View file

@ -3,7 +3,7 @@ import $ from 'jquery';
import { observer } from 'mobx-react';
import { Loader, IconObject, Icon, Label } from 'Component';
import { I, UtilCommon, UtilObject, analytics, Action, keyboard, translate, Preview } from 'Lib';
import { popupStore } from 'Store';
import { popupStore, commonStore } from 'Store';
import PageAccount from './page/settings/account';
import PageDataManagement from './page/settings/data';
@ -317,7 +317,7 @@ const PopupSettings = observer(class PopupSettings extends React.Component<I.Pop
onExport (type: I.ExportType, param: any) {
analytics.event('ClickExport', { type, route: 'Settings' });
Action.export([], type, { ...param, route: 'Settings' }, () => this.props.close());
Action.export(commonStore.space, [], type, { ...param, route: 'Settings' }, () => this.props.close());
};
onKeyDown (e: any) {

View file

@ -456,7 +456,7 @@ class Action {
});
};
export (ids: string[], type: I.ExportType, param: any, onSelectPath?: () => void, callBack?: (message: any) => void): void {
export (spaceId: string, ids: string[], type: I.ExportType, param: any, onSelectPath?: () => void, callBack?: (message: any) => void): void {
const { zip, nested, files, archived, json, route } = param;
this.openDir({ buttonLabel: translate('commonExport') }, paths => {
@ -464,7 +464,7 @@ class Action {
onSelectPath();
};
C.ObjectListExport(commonStore.space, paths[0], ids, type, zip, nested, files, archived, json, (message: any) => {
C.ObjectListExport(spaceId, paths[0], ids, type, zip, nested, files, archived, json, (message: any) => {
if (message.error.code) {
return;
};