@coasys/ad4m-connect 0.13.0-test-1 → 0.13.0-test-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/views/LoggedInDashboard.d.ts +13 -1
- package/dist/core.d.ts +2 -0
- package/dist/core.js +358 -311
- package/dist/index.js +588 -411
- package/dist/types.d.ts +12 -0
- package/dist/utils.js +1 -1
- package/dist/web.d.ts +1 -0
- package/dist/web.js +592 -415
- package/package.json +2 -2
|
@@ -1,23 +1,35 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import type { RemoteHost, UserInfo } from "../../types";
|
|
2
|
+
import type { RemoteHost, UserInfo, ComputeLogEntryData } from "../../types";
|
|
3
3
|
export declare class LoggedInDashboard extends LitElement {
|
|
4
4
|
connectedHost: RemoteHost | null;
|
|
5
5
|
userInfo: UserInfo | null;
|
|
6
6
|
requestingPayment: boolean;
|
|
7
7
|
paymentError: string | null;
|
|
8
|
+
/** When true (credit-depletion session), the X close button is hidden — the only exits are "Use App" or "Disconnect" */
|
|
9
|
+
forceOpen: boolean;
|
|
8
10
|
private walletInput;
|
|
9
11
|
private editingWallet;
|
|
10
12
|
private walletSaveSuccess;
|
|
11
13
|
private topUpAmount;
|
|
12
14
|
private awaitingApproval;
|
|
13
15
|
private creditsUpdated;
|
|
16
|
+
private activityLogOpen;
|
|
17
|
+
private activityLog;
|
|
18
|
+
private activityLogLoading;
|
|
14
19
|
private previousCredits;
|
|
15
20
|
static styles: import("lit").CSSResult[];
|
|
16
21
|
private close;
|
|
22
|
+
private _useApp;
|
|
17
23
|
private disconnect;
|
|
18
24
|
private setWalletAddress;
|
|
19
25
|
private requestTopUp;
|
|
20
26
|
private truncateMiddle;
|
|
27
|
+
private toggleActivityLog;
|
|
28
|
+
private loadActivityLog;
|
|
29
|
+
/** Call this externally to push a realtime log entry */
|
|
30
|
+
pushLogEntry(entry: ComputeLogEntryData): void;
|
|
31
|
+
private formatTimeAgo;
|
|
32
|
+
private formatOperation;
|
|
21
33
|
private get hasWallet();
|
|
22
34
|
private get isFreeAccess();
|
|
23
35
|
private get isDepleted();
|
package/dist/core.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export default class Ad4mConnect extends EventTarget {
|
|
|
41
41
|
success: boolean;
|
|
42
42
|
message: string;
|
|
43
43
|
}>;
|
|
44
|
+
/** Fetch recent compute log entries. */
|
|
45
|
+
fetchComputeLog(since?: string, limit?: number): Promise<import('./types').ComputeLogEntryData[]>;
|
|
44
46
|
/** Persist selected host after successful auth */
|
|
45
47
|
setConnectedHost(host: RemoteHost): void;
|
|
46
48
|
private initializeEmbeddedMode;
|