-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3694 from illacloud/release/4.5.0
Release/4.5.0
- Loading branch information
Showing
70 changed files
with
2,646 additions
and
1,980 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ on: | |
|
||
env: | ||
ILLA_MUI_LICENSE: ${{ secrets.ILLA_MUI_LICENSE }} | ||
ILLA_BASE_PATH: /build | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Deploy cname image to k8s | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- beta | ||
- develop | ||
|
||
env: | ||
ILLA_GOOGLE_MAP_KEY: ${{ secrets.ILLA_GOOGLE_MAP_KEY }} | ||
ILLA_MIXPANEL_API_KEY: ${{ secrets.ILLA_MIXPANEL_API_KEY }} | ||
ILLA_MUI_LICENSE: ${{ secrets.ILLA_MUI_LICENSE }} | ||
ILLA_SENTRY_AUTH_TOKEN: ${{ secrets.ILLA_SENTRY_AUTH_TOKEN }} | ||
DO_CLUSTER: ${{ secrets.DO_CLUSTER }} | ||
DOCKER_LOGIN: ${{ secrets.DOCKER_LOGIN }} | ||
DOCKER_PWD: ${{ secrets.DOCKER_PWD }} | ||
ILLA_BASE_PATH: /builder | ||
|
||
jobs: | ||
build: | ||
name: Build website | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: | ||
${{ (github.ref == 'refs/heads/main') && 'production' || (github.ref == | ||
'refs/heads/develop') && 'test' || (github.ref == 'refs/heads/beta') && | ||
'beta' }} | ||
env: | ||
ILLA_API_BASE_URL: ${{ vars.ILLA_API_BASE_URL }} | ||
ILLA_APP_ENV: ${{ vars.ILLA_APP_ENV }} | ||
ILLA_BUILDER_URL: ${{ vars.ILLA_BUILDER_URL }} | ||
ILLA_CLOUD_URL: ${{ vars.ILLA_CLOUD_URL }} | ||
ILLA_MARKET_URL: ${{ vars.ILLA_MARKET_URL }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.12.1 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8.7.0 | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Install doctl | ||
uses: digitalocean/action-doctl@v2 | ||
with: | ||
token: ${{ secrets.DO_TOKEN }} | ||
|
||
- name: Install kubectl | ||
run: | | ||
sudo snap install kubectl --classic | ||
- name: Setup kubectl | ||
run: | | ||
doctl kubernetes cluster kubeconfig save $DO_CLUSTER | ||
kubectl version | ||
- name: Build website | ||
run: | | ||
echo "Building for $GITHUB_REF_NAME branch,ILLA APP ENV is $ILLA_APP_ENV" | ||
pnpm build-cloud | ||
- name: Build Docker | ||
run: | | ||
docker build --cache-from=illa-builder-cname-frontend -f Dockerfile -t illa-builder-cname-frontend . | ||
- name: Push application Docker image | ||
run: | | ||
docker login -u $DOCKER_LOGIN -p $DOCKER_PWD | ||
docker tag illa-builder-cname-frontend "illasoft/illa-builder-cname-frontend:$GITHUB_REF_NAME" | ||
docker push "illasoft/illa-builder-cname-frontend:$GITHUB_REF_NAME" | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: illacloud/k8s-application-do | ||
token: ${{ secrets.ILLA_BOT_TOKEN }} | ||
path: k8s-application-do | ||
|
||
- name: Deploy to Kubernetes | ||
run: | | ||
cd k8s-application-do/namespace-$ILLA_APP_ENV | ||
kubectl apply -f ./illa-builder-cname-frontend/ -n $ILLA_APP_ENV | ||
kubectl -n $ILLA_APP_ENV rollout restart deployment illa-builder-cname-frontend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"private": true, | ||
"author": "ILLA Cloud <[email protected]>", | ||
"license": "Apache-2.0", | ||
"version": "4.4.12", | ||
"version": "4.5.0", | ||
"scripts": { | ||
"dev": "vite --strictPort --force", | ||
"build-cloud": "NODE_OPTIONS=--max-old-space-size=12288 vite build --mode cloud", | ||
|
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ComponentTreeNode } from "@illa-public/public-types" | ||
|
||
export const fixedChartComponent = (component: ComponentTreeNode) => { | ||
return { | ||
...component, | ||
type: "CHART_WIDGET", | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
apps/builder/src/hooks/utils/fixComponentsUtils/container.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ComponentTreeNode } from "@illa-public/public-types" | ||
|
||
export const fixedContainerComponent = (component: ComponentTreeNode) => { | ||
let linkedWidget | ||
if (component.props) { | ||
linkedWidget = | ||
component.props.linkWidgetDisplayName !== undefined && | ||
typeof component.props.linkWidgetDisplayName === "string" | ||
? [component.props.linkWidgetDisplayName] | ||
: component.props.linkWidgetDisplayName | ||
} | ||
return { | ||
...component, | ||
props: { | ||
...component.props, | ||
linkWidgetDisplayName: linkedWidget, | ||
}, | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
apps/builder/src/hooks/utils/fixComponentsUtils/dataGrid.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ComponentTreeNode } from "@illa-public/public-types" | ||
|
||
export const fixedDataGridComponent = (component: ComponentTreeNode) => { | ||
let fixedEnablePagination = true | ||
if (component.props) { | ||
fixedEnablePagination = | ||
component.props.enablePagination !== undefined | ||
? component.props.enablePagination | ||
: component.props.overflowMethod === "PAGINATION" | ||
} | ||
return { | ||
...component, | ||
props: { | ||
...component.props, | ||
enablePagination: fixedEnablePagination, | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ComponentTreeNode } from "@illa-public/public-types" | ||
|
||
export const fixedImageComponent = (component: ComponentTreeNode) => { | ||
let fixedDynamicHeight = "auto" | ||
if (component.props) { | ||
fixedDynamicHeight = | ||
component.props.dynamicHeight !== undefined | ||
? component.props.dynamicHeight | ||
: fixedDynamicHeight | ||
} | ||
return { | ||
...component, | ||
props: { | ||
...component.props, | ||
dynamicHeight: fixedDynamicHeight, | ||
}, | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
apps/builder/src/hooks/utils/fixComponentsUtils/likeInput.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ComponentTreeNode } from "@illa-public/public-types" | ||
|
||
export const fixedLikeInputComponentDefaultValue = ( | ||
component: ComponentTreeNode, | ||
) => { | ||
return { | ||
...component, | ||
props: { | ||
...component.props, | ||
value: "", | ||
defaultValue: component.props?.defaultValue || "", | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ComponentTreeNode } from "@illa-public/public-types" | ||
|
||
export const fixedListComponent = (component: ComponentTreeNode) => { | ||
let fixedEnablePagination = true | ||
if (component.props) { | ||
fixedEnablePagination = | ||
component.props.enablePagination !== undefined | ||
? component.props.enablePagination | ||
: component.props.overflowMethod === "PAGINATION" | ||
} | ||
return { | ||
...component, | ||
props: { | ||
...component.props, | ||
enablePagination: fixedEnablePagination, | ||
backgroundColor: "#ffffffbf", | ||
}, | ||
} | ||
} |
Oops, something went wrong.