@coasys/ad4m-connect 0.13.0-test-2 → 0.13.0-test-3
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/icons/CheckCircleIcon.d.ts +1 -0
- package/dist/components/icons/TickIcon.d.ts +1 -0
- package/dist/components/shared/Ad4mLogo.d.ts +1 -0
- package/dist/components/shared/AppLogo.d.ts +1 -0
- package/dist/components/shared/Header.d.ts +1 -0
- package/dist/components/shared/Logo.d.ts +1 -0
- package/dist/components/states/ErrorState.d.ts +6 -0
- package/dist/components/views/ConnectionOverview.d.ts +22 -0
- package/dist/components/views/Hosting.d.ts +22 -0
- package/dist/components/views/MultiUserAuth.d.ts +26 -0
- package/dist/components/views/RemoteConnection.d.ts +19 -0
- package/dist/components/views/RequestCapability.d.ts +16 -0
- package/dist/components/views/ScanQRCode.d.ts +14 -0
- package/dist/components/views/Settings.d.ts +19 -0
- package/dist/components/views/Start.d.ts +19 -0
- package/dist/components/views/old/Hosting.d.ts +22 -0
- package/dist/components/views/old/MultiUserAuth.d.ts +26 -0
- package/dist/components/views/old/RemoteConnection.d.ts +19 -0
- package/dist/components/views/old/RequestCapability.d.ts +16 -0
- package/dist/components/views/old/ScanQRCode.d.ts +14 -0
- package/dist/components/views/old/Settings.d.ts +19 -0
- package/dist/components/views/old/Start.d.ts +19 -0
- package/dist/core.js +350 -289
- package/dist/index.js +472 -411
- package/dist/old/components/InvalidToken.d.ts +0 -0
- package/dist/old/components/VerifyCode.d.ts +0 -0
- package/dist/old/core.d.ts +0 -0
- package/dist/old/electron.d.ts +0 -0
- package/dist/old/state/ConnectState.d.ts +0 -0
- package/dist/old/state/index.d.ts +0 -0
- package/dist/old/utils.d.ts +0 -0
- package/dist/old/views/Hosting.d.ts +0 -0
- package/dist/old/views/MultiUserAuth.d.ts +0 -0
- package/dist/old/views/RemoteConnection.d.ts +0 -0
- package/dist/old/views/RequestCapability.d.ts +0 -0
- package/dist/old/views/ScanQRCode.d.ts +0 -0
- package/dist/old/views/Settings.d.ts +0 -0
- package/dist/old/views/Start.d.ts +0 -0
- package/dist/old/web.d.ts +0 -0
- package/dist/state/ConnectState.d.ts +101 -0
- package/dist/state/index.d.ts +2 -0
- package/dist/web.js +474 -413
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ArrowLeftRightIcon(): import("lit").TemplateResult<1>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function TickIcon(): import("lit").TemplateResult<1>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Ad4mLogo(): import("lit").TemplateResult<1>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function AppLogo(): import("lit").TemplateResult<1>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Header(): import("lit").TemplateResult<1>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Logo(): import("lit").TemplateResult<1>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class ConnectionOverview extends LitElement {
|
|
3
|
+
localDetected: boolean;
|
|
4
|
+
defaultRemoteUrl?: string;
|
|
5
|
+
remoteUrl?: string;
|
|
6
|
+
isMobile: boolean;
|
|
7
|
+
port: number;
|
|
8
|
+
private portInput;
|
|
9
|
+
static styles: import("lit").CSSResult[];
|
|
10
|
+
private detectLocal;
|
|
11
|
+
private handleConnectLocal;
|
|
12
|
+
private handleConnectRemote;
|
|
13
|
+
private handleScanQR;
|
|
14
|
+
private handleDownload;
|
|
15
|
+
private changePort;
|
|
16
|
+
render(): import("lit").TemplateResult<1>;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
"connection-overview": ConnectionOverview;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class HostingView extends LitElement {
|
|
3
|
+
step: number;
|
|
4
|
+
email: string;
|
|
5
|
+
password: string;
|
|
6
|
+
passwordError: string;
|
|
7
|
+
isHostingRunning: boolean | null;
|
|
8
|
+
static styles: import("lit").CSSResult[];
|
|
9
|
+
private handleBack;
|
|
10
|
+
private handleEmailChange;
|
|
11
|
+
private handlePasswordChange;
|
|
12
|
+
private handleCheckEmail;
|
|
13
|
+
private handleLogin;
|
|
14
|
+
private handleResetHosting;
|
|
15
|
+
private handleClearRunning;
|
|
16
|
+
render(): import("lit").TemplateResult<1>;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
"hosting-view": HostingView;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class MultiUserAuth extends LitElement {
|
|
3
|
+
email: string;
|
|
4
|
+
password: string;
|
|
5
|
+
verificationCode: string;
|
|
6
|
+
error: string | null;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
backendUrl?: string;
|
|
9
|
+
step: "email" | "password" | "code";
|
|
10
|
+
verificationType: "signup" | "login";
|
|
11
|
+
static styles: import("lit").CSSResult[];
|
|
12
|
+
private handleEmailChange;
|
|
13
|
+
private handlePasswordChange;
|
|
14
|
+
private handleCodeChange;
|
|
15
|
+
private handleEmailSubmit;
|
|
16
|
+
private handlePasswordSubmit;
|
|
17
|
+
private handleCodeSubmit;
|
|
18
|
+
private handleBackToEmail;
|
|
19
|
+
private handleKeyPress;
|
|
20
|
+
render(): import("lit").TemplateResult<1>;
|
|
21
|
+
}
|
|
22
|
+
declare global {
|
|
23
|
+
interface HTMLElementTagNameMap {
|
|
24
|
+
"multi-user-auth": MultiUserAuth;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class RemoteConnection extends LitElement {
|
|
3
|
+
initialUrl?: string;
|
|
4
|
+
detecting: boolean;
|
|
5
|
+
multiUserDetected: boolean | null;
|
|
6
|
+
error: string | null;
|
|
7
|
+
static styles: import("lit").CSSResult[];
|
|
8
|
+
private handleBack;
|
|
9
|
+
private handleUrlChange;
|
|
10
|
+
private handleConnect;
|
|
11
|
+
private handleMultiUserAuth;
|
|
12
|
+
private handleRequestCapability;
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
"remote-connection": RemoteConnection;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class RequestCapability extends LitElement {
|
|
3
|
+
capabilities: string[];
|
|
4
|
+
appname: string;
|
|
5
|
+
appiconpath: string;
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
private handleCancel;
|
|
8
|
+
private handleAuthorize;
|
|
9
|
+
private handleSettings;
|
|
10
|
+
render(): import("lit").TemplateResult<1>;
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
"request-capability": RequestCapability;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class ScanQRCode extends LitElement {
|
|
3
|
+
uiState: string;
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
private handleStop;
|
|
6
|
+
private handleSuccess;
|
|
7
|
+
private scanQrcode;
|
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
"scan-qr-code": ScanQRCode;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class ConnectionSettings extends LitElement {
|
|
3
|
+
port: number;
|
|
4
|
+
url: string;
|
|
5
|
+
isRemote: boolean;
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
private handleModeChange;
|
|
8
|
+
private handleUrlChange;
|
|
9
|
+
private handlePortChange;
|
|
10
|
+
private handleConnect;
|
|
11
|
+
private handleBack;
|
|
12
|
+
private handleClearState;
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
"connection-settings": ConnectionSettings;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class StartView extends LitElement {
|
|
3
|
+
isMobile: boolean;
|
|
4
|
+
hasClickedDownload: boolean;
|
|
5
|
+
hosting: boolean;
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
private handleConnect;
|
|
8
|
+
private handleSettings;
|
|
9
|
+
private handleScanQR;
|
|
10
|
+
private handleHosting;
|
|
11
|
+
private handleDownloaded;
|
|
12
|
+
private handleDownloadClick;
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
"start-view": StartView;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class HostingView extends LitElement {
|
|
3
|
+
step: number;
|
|
4
|
+
email: string;
|
|
5
|
+
password: string;
|
|
6
|
+
passwordError: string;
|
|
7
|
+
isHostingRunning: boolean | null;
|
|
8
|
+
static styles: import("lit").CSSResult[];
|
|
9
|
+
private handleBack;
|
|
10
|
+
private handleEmailChange;
|
|
11
|
+
private handlePasswordChange;
|
|
12
|
+
private handleCheckEmail;
|
|
13
|
+
private handleLogin;
|
|
14
|
+
private handleResetHosting;
|
|
15
|
+
private handleClearRunning;
|
|
16
|
+
render(): import("lit").TemplateResult<1>;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
"hosting-view": HostingView;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class MultiUserAuth extends LitElement {
|
|
3
|
+
email: string;
|
|
4
|
+
password: string;
|
|
5
|
+
verificationCode: string;
|
|
6
|
+
error: string | null;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
backendUrl?: string;
|
|
9
|
+
step: "email" | "password" | "code";
|
|
10
|
+
verificationType: "signup" | "login";
|
|
11
|
+
static styles: import("lit").CSSResult[];
|
|
12
|
+
private handleEmailChange;
|
|
13
|
+
private handlePasswordChange;
|
|
14
|
+
private handleCodeChange;
|
|
15
|
+
private handleEmailSubmit;
|
|
16
|
+
private handlePasswordSubmit;
|
|
17
|
+
private handleCodeSubmit;
|
|
18
|
+
private handleBackToEmail;
|
|
19
|
+
private handleKeyPress;
|
|
20
|
+
render(): import("lit").TemplateResult<1>;
|
|
21
|
+
}
|
|
22
|
+
declare global {
|
|
23
|
+
interface HTMLElementTagNameMap {
|
|
24
|
+
"multi-user-auth": MultiUserAuth;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class RemoteConnection extends LitElement {
|
|
3
|
+
initialUrl?: string;
|
|
4
|
+
detecting: boolean;
|
|
5
|
+
multiUserDetected: boolean | null;
|
|
6
|
+
error: string | null;
|
|
7
|
+
static styles: import("lit").CSSResult[];
|
|
8
|
+
private handleBack;
|
|
9
|
+
private handleUrlChange;
|
|
10
|
+
private handleConnect;
|
|
11
|
+
private handleMultiUserAuth;
|
|
12
|
+
private handleRequestCapability;
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
"remote-connection": RemoteConnection;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class RequestCapability extends LitElement {
|
|
3
|
+
capabilities: string[];
|
|
4
|
+
appname: string;
|
|
5
|
+
appiconpath: string;
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
private handleCancel;
|
|
8
|
+
private handleAuthorize;
|
|
9
|
+
private handleSettings;
|
|
10
|
+
render(): import("lit").TemplateResult<1>;
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
"request-capability": RequestCapability;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class ScanQRCode extends LitElement {
|
|
3
|
+
uiState: string;
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
private handleStop;
|
|
6
|
+
private handleSuccess;
|
|
7
|
+
private scanQrcode;
|
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
"scan-qr-code": ScanQRCode;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class ConnectionSettings extends LitElement {
|
|
3
|
+
port: number;
|
|
4
|
+
url: string;
|
|
5
|
+
isRemote: boolean;
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
private handleModeChange;
|
|
8
|
+
private handleUrlChange;
|
|
9
|
+
private handlePortChange;
|
|
10
|
+
private handleConnect;
|
|
11
|
+
private handleBack;
|
|
12
|
+
private handleClearState;
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
"connection-settings": ConnectionSettings;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
export declare class StartView extends LitElement {
|
|
3
|
+
isMobile: boolean;
|
|
4
|
+
hasClickedDownload: boolean;
|
|
5
|
+
hosting: boolean;
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
private handleConnect;
|
|
8
|
+
private handleSettings;
|
|
9
|
+
private handleScanQR;
|
|
10
|
+
private handleHosting;
|
|
11
|
+
private handleDownloaded;
|
|
12
|
+
private handleDownloadClick;
|
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
"start-view": StartView;
|
|
18
|
+
}
|
|
19
|
+
}
|