Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ee70a49

Browse files
author
FalkWolsky
committed
Fixing iframely Tag
1 parent 11f4073 commit ee70a49

File tree

17 files changed

+519
-651
lines changed

17 files changed

+519
-651
lines changed

‎client/packages/lowcoder/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4+
<title data-react-helmet="true">Lowcoder | rapid App & VideoMeeting builder for everyone.</title>
45
<meta charset="utf-8" />
56
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no viewport-fit=cover"/>
6-
<meta lang="en" name="description" content="Lowcoder | rapid App & VideoMeeting builder for everyone." />
7+
<meta lang="en" name="description" content="Lowcoder | rapid App & VideoMeeting builder for everyone." data-react-helmet="true"/>
78
<meta name="theme-color" content="#000000" />
89
<style>
910
html,
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
import Api from "api/api";
2+
import axios, { AxiosInstance, AxiosRequestConfig } from "axios";
3+
4+
export interface CustomerAddress {
5+
line1: string;
6+
line2: string;
7+
city: string;
8+
state: string;
9+
country: string;
10+
postalCode: string;
11+
}
12+
13+
export interface Customer {
14+
hostname: string;
15+
email: string;
16+
orgId: string;
17+
userId: string;
18+
userName: string;
19+
type: string;
20+
companyName: string;
21+
address: CustomerAddress;
22+
}
23+
24+
export type ResponseType = {
25+
response: any;
26+
};
27+
28+
const apiUrl = "https://flow.lowcoder.cloud/webhook/secure";
29+
const authHeader = "96a99c7b-3758-4c48-b4b1-a8cbf59e7d6c";
30+
31+
const currentPage = 1;
32+
const currentQuery = '';
33+
const currentData = [];
34+
35+
let axiosIns: AxiosInstance | null = null;
36+
37+
const getAxiosInstance = (clientSecret?: string) => {
38+
if (axiosIns && !clientSecret) {
39+
return axiosIns;
40+
}
41+
42+
const headers: Record<string, string> = {
43+
"Content-Type": "application/json",
44+
"Lowcoder-Token": authHeader,
45+
}
46+
47+
const apiRequestConfig: AxiosRequestConfig = {
48+
baseURL: `${apiUrl}`,
49+
headers,
50+
};
51+
52+
axiosIns = axios.create(apiRequestConfig);
53+
return axiosIns;
54+
}
55+
56+
class SubscriptionApi extends Api {
57+
58+
static async createCustomer(body: Customer): Promise<any> {
59+
console.log("createCustomerCall", body);
60+
61+
let response;
62+
try {
63+
response = await getAxiosInstance().request({
64+
url: '/create-customer',
65+
method: "POST",
66+
withCredentials: true,
67+
data: body,
68+
});
69+
} catch (error) {
70+
console.error("Error creating customer:", error);
71+
throw error;
72+
}
73+
return response;
74+
}
75+
76+
}
77+
78+
export default SubscriptionApi;

‎client/packages/lowcoder/src/app.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import {
2727
ADMIN_APP_URL,
2828
ORG_AUTH_FORGOT_PASSWORD_URL,
2929
ORG_AUTH_RESET_PASSWORD_URL,
30-
API_DOCS_URL,
3130
} from "constants/routesURL";
3231
import React from "react";
3332
import { createRoot } from "react-dom/client";
@@ -253,7 +252,7 @@ class AppIndex extends React.Component<AppIndexProps, any> {
253252
{/*}<meta key="msapplication-config" name="msapplication-config" content="https://www.yourdomain.com/path/to/browserconfig.xml" />, */}
254253

255254
<link rel="canonical" href={window.location.href} />
256-
{isLowCoderDomain && [
255+
{isLowCoderDomain ||isLocalhost&& [
257256
// Adding Support for iframely to be able to embedd the component explorer in the docu
258257
<meta
259258
key="iframely:title"
@@ -265,6 +264,12 @@ class AppIndex extends React.Component<AppIndexProps, any> {
265264
property="iframely:description"
266265
content={trans('productDesc')}
267266
/>,
267+
<link
268+
rel="iframely"
269+
type="text/html"
270+
href={window.location.href}
271+
media="(aspect-ratio: 1280/720)"
272+
/>,
268273

269274
<link
270275
key="preconnect-googleapis"
@@ -320,8 +325,7 @@ class AppIndex extends React.Component<AppIndexProps, any> {
320325
TRASH_URL,
321326
SETTING,
322327
MARKETPLACE_URL,
323-
ADMIN_APP_URL,
324-
API_DOCS_URL,
328+
ADMIN_APP_URL
325329
]}
326330
// component={ApplicationListPage}
327331
component={LazyApplicationHome}

‎client/packages/lowcoder/src/constants/routesURL.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const OAUTH_PROVIDER_DETAIL = "/setting/oauth-provider/detail";
2323

2424
export const PERMISSION_SETTING_DETAIL = `${PERMISSION_SETTING}/:groupId`;
2525
export const ORGANIZATION_SETTING_DETAIL = `${ORGANIZATION_SETTING}/:orgId`;
26-
export const SUBSCRIPTION_SETTING_DETAIL = `${SUBSCRIPTION_SETTING}/:subscriptionId`;
26+
export const SUBSCRIPTION_DETAIL = `${SUBSCRIPTION_SETTING}/:subscriptionId`;
2727

2828
export const ALL_APPLICATIONS_URL = "/apps";
2929
export const ADMIN_APP_URL = "/ee/:applicationId/:viewMode";
@@ -34,7 +34,6 @@ export const DATASOURCE_URL = `/datasource`;
3434
export const DATASOURCE_CREATE_URL = `${DATASOURCE_URL}/new/:datasourceType`;
3535
export const DATASOURCE_EDIT_URL = `${DATASOURCE_URL}/:datasourceId`;
3636
export const QUERY_LIBRARY_URL = `/query-library`;
37-
export const API_DOCS_URL = `/lowcoder-api`;
3837
export const FOLDER_URL_PREFIX = `/folder`;
3938
export const FOLDER_URL = `${FOLDER_URL_PREFIX}/:folderId`;
4039
export const FOLDERS_URL = `/folders`;
@@ -102,3 +101,5 @@ export function preview(applicationId: string) {
102101
export const buildGroupId = (groupId: string) => `${PERMISSION_SETTING}/${groupId}`;
103102

104103
export const buildOrgId = (orgId: string) => `${ORGANIZATION_SETTING}/${orgId}`;
104+
105+
export const buildSubscriptionId = (subscriptionId: string) => `${SUBSCRIPTION_SETTING}/${subscriptionId}`;

‎client/packages/lowcoder/src/pages/ApplicationV2/ApiDocLayout.tsx

Lines changed: 0 additions & 150 deletions
This file was deleted.

‎client/packages/lowcoder/src/pages/ApplicationV2/ApiDocView.tsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎client/packages/lowcoder/src/pages/ApplicationV2/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
QUERY_LIBRARY_URL,
1111
SETTING,
1212
TRASH_URL,
13-
API_DOCS_URL,
1413
// ADMIN_APP_URL,
1514
NEWS_URL,
1615
ORG_HOME_URL,
@@ -22,13 +21,11 @@ import {
2221
EllipsisTextCss,
2322
FolderIcon,
2423
HomeDataSourceIcon,
25-
HomeIcon,
2624
NewsIcon,
2725
WorkspacesIcon,
2826
HomeModuleIcon,
2927
HomeQueryLibraryIcon,
3028
HomeSettingIcon,
31-
InviteUserIcon,
3229
PlusIcon,
3330
PointIcon,
3431
RecyclerIcon,

‎client/packages/lowcoder/src/pages/ComponentDoc/common/PageInfo.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const IconWrapper = styled.div`
3939
export default function PageInfo(props: IProps) {
4040
const { compInfo } = props;
4141
const Icon = compInfo.icon;
42+
console.log("Icon", compInfo);
4243
return (
4344
<Wrapper>
4445
<div className="title">

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /