chore: format
This commit is contained in:
@@ -148,6 +148,7 @@ def get_license_data(app, key):
|
|||||||
if exp:
|
if exp:
|
||||||
if isinstance(exp, str):
|
if isinstance(exp, str):
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
|
||||||
exp = date.fromisoformat(exp)
|
exp = date.fromisoformat(exp)
|
||||||
if exp < datetime.now().date():
|
if exp < datetime.now().date():
|
||||||
return False
|
return False
|
||||||
|
|||||||
@@ -12,7 +12,11 @@
|
|||||||
import LockClosed from '$lib/components/icons/LockClosed.svelte';
|
import LockClosed from '$lib/components/icons/LockClosed.svelte';
|
||||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||||
import ConfirmDialog from '$lib/components/common/ConfirmDialog.svelte';
|
import ConfirmDialog from '$lib/components/common/ConfirmDialog.svelte';
|
||||||
import { detectTerminalServerType, verifyTerminalServerConnection, putOrchestratorPolicy } from '$lib/apis/configs';
|
import {
|
||||||
|
detectTerminalServerType,
|
||||||
|
verifyTerminalServerConnection,
|
||||||
|
putOrchestratorPolicy
|
||||||
|
} from '$lib/apis/configs';
|
||||||
import { getTerminalConfig } from '$lib/apis/terminal';
|
import { getTerminalConfig } from '$lib/apis/terminal';
|
||||||
|
|
||||||
export let show = false;
|
export let show = false;
|
||||||
@@ -112,10 +116,11 @@
|
|||||||
try {
|
try {
|
||||||
if (!direct) {
|
if (!direct) {
|
||||||
// System connection: proxy through backend to avoid CORS / key exposure
|
// System connection: proxy through backend to avoid CORS / key exposure
|
||||||
const result = await verifyTerminalServerConnection(
|
const result = await verifyTerminalServerConnection(localStorage.token, {
|
||||||
localStorage.token,
|
url: _url,
|
||||||
{ url: _url, key, auth_type }
|
key,
|
||||||
);
|
auth_type
|
||||||
|
});
|
||||||
const type = result?.type ?? null;
|
const type = result?.type ?? null;
|
||||||
|
|
||||||
if (type) {
|
if (type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user