Movatterモバイル変換


[0]ホーム

URL:


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

Commitee70a49

Browse files
author
FalkWolsky
committed
Fixing iframely Tag
1 parent11f4073 commitee70a49

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+
<titledata-react-helmet="true">Lowcoder | rapid App & VideoMeeting builder for everyone.</title>
45
<metacharset="utf-8"/>
56
<metaname="viewport"content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no viewport-fit=cover"/>
6-
<metalang="en"name="description"content="Lowcoder | rapid App & VideoMeeting builder for everyone."/>
7+
<metalang="en"name="description"content="Lowcoder | rapid App & VideoMeeting builder for everyone."data-react-helmet="true"/>
78
<metaname="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+
importApifrom"api/api";
2+
importaxios,{AxiosInstance,AxiosRequestConfig}from"axios";
3+
4+
exportinterfaceCustomerAddress{
5+
line1:string;
6+
line2:string;
7+
city:string;
8+
state:string;
9+
country:string;
10+
postalCode:string;
11+
}
12+
13+
exportinterfaceCustomer{
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+
exporttypeResponseType={
25+
response:any;
26+
};
27+
28+
constapiUrl="https://flow.lowcoder.cloud/webhook/secure";
29+
constauthHeader="96a99c7b-3758-4c48-b4b1-a8cbf59e7d6c";
30+
31+
constcurrentPage=1;
32+
constcurrentQuery='';
33+
constcurrentData=[];
34+
35+
letaxiosIns:AxiosInstance|null=null;
36+
37+
constgetAxiosInstance=(clientSecret?:string)=>{
38+
if(axiosIns&&!clientSecret){
39+
returnaxiosIns;
40+
}
41+
42+
constheaders:Record<string,string>={
43+
"Content-Type":"application/json",
44+
"Lowcoder-Token":authHeader,
45+
}
46+
47+
constapiRequestConfig:AxiosRequestConfig={
48+
baseURL:`${apiUrl}`,
49+
headers,
50+
};
51+
52+
axiosIns=axios.create(apiRequestConfig);
53+
returnaxiosIns;
54+
}
55+
56+
classSubscriptionApiextendsApi{
57+
58+
staticasynccreateCustomer(body:Customer):Promise<any>{
59+
console.log("createCustomerCall",body);
60+
61+
letresponse;
62+
try{
63+
response=awaitgetAxiosInstance().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+
throwerror;
72+
}
73+
returnresponse;
74+
}
75+
76+
}
77+
78+
exportdefaultSubscriptionApi;

‎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
importReactfrom"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
<linkrel="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
exportconstPERMISSION_SETTING_DETAIL=`${PERMISSION_SETTING}/:groupId`;
2525
exportconstORGANIZATION_SETTING_DETAIL=`${ORGANIZATION_SETTING}/:orgId`;
26-
exportconstSUBSCRIPTION_SETTING_DETAIL=`${SUBSCRIPTION_SETTING}/:subscriptionId`;
26+
exportconstSUBSCRIPTION_DETAIL=`${SUBSCRIPTION_SETTING}/:subscriptionId`;
2727

2828
exportconstALL_APPLICATIONS_URL="/apps";
2929
exportconstADMIN_APP_URL="/ee/:applicationId/:viewMode";
@@ -34,7 +34,6 @@ export const DATASOURCE_URL = `/datasource`;
3434
exportconstDATASOURCE_CREATE_URL=`${DATASOURCE_URL}/new/:datasourceType`;
3535
exportconstDATASOURCE_EDIT_URL=`${DATASOURCE_URL}/:datasourceId`;
3636
exportconstQUERY_LIBRARY_URL=`/query-library`;
37-
exportconstAPI_DOCS_URL=`/lowcoder-api`;
3837
exportconstFOLDER_URL_PREFIX=`/folder`;
3938
exportconstFOLDER_URL=`${FOLDER_URL_PREFIX}/:folderId`;
4039
exportconstFOLDERS_URL=`/folders`;
@@ -102,3 +101,5 @@ export function preview(applicationId: string) {
102101
exportconstbuildGroupId=(groupId:string)=>`${PERMISSION_SETTING}/${groupId}`;
103102

104103
exportconstbuildOrgId=(orgId:string)=>`${ORGANIZATION_SETTING}/${orgId}`;
104+
105+
exportconstbuildSubscriptionId=(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
exportdefaultfunctionPageInfo(props:IProps){
4040
const{ compInfo}=props;
4141
constIcon=compInfo.icon;
42+
console.log("Icon",compInfo);
4243
return(
4344
<Wrapper>
4445
<divclassName="title">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp