Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev -> Main (release preview) #621

Merged
merged 78 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
3c13c27
remove unused npm modules
raheeliftikhar5 Dec 20, 2023
09b2e2a
upgrade mermaid
raheeliftikhar5 Dec 20, 2023
f6a0416
removed @testing-library/user-event
raheeliftikhar5 Dec 20, 2023
df577d1
upgrade axios
raheeliftikhar5 Dec 20, 2023
b73df0b
upgrade codemirror
raheeliftikhar5 Dec 20, 2023
e0b7c17
remove @testing-library/react
raheeliftikhar5 Dec 21, 2023
c975e53
fix tests
raheeliftikhar5 Dec 21, 2023
ea12bc5
upgrade react, react-dom, @types/react, @types/react-dom and fixes
raheeliftikhar5 Dec 27, 2023
b4a9873
Merge pull request #593 from raheeliftikhar5/remove-unused-modules
FalkWolsky Dec 27, 2023
54786b8
publish comps workflow
raheeliftikhar5 Dec 28, 2023
ae43e5f
upgrade styles-components dependency
raheeliftikhar5 Dec 29, 2023
1cd00c2
Add Select (dropdown) column type to tables
jreyesr Dec 31, 2023
1e03ad2
updates after styled-compoents upgrade + fixing unit tests
raheeliftikhar5 Jan 1, 2024
c3bca96
Rework to finalize oauth(inherit from login) for rest api datasource
aq-ikhwa-tech Jan 1, 2024
6469516
Add handling for oauth(inherit from login) for rest api datasource
aq-ikhwa-tech Jan 1, 2024
27f45f7
fix: remove unnecessary check
aq-ikhwa-tech Jan 1, 2024
e32669c
Merge branch 'dev' into add-auth-handling-to-rest-api-datasource
aq-ikhwa-tech Jan 1, 2024
33e9b9a
Merge pull request #611 from lowcoder-org/add-auth-handling-to-rest-a…
FalkWolsky Jan 2, 2024
6ed2520
Add oauth(inherit from login) handling for graphql datasource
aq-ikhwa-tech Jan 2, 2024
61d548e
fixed video end bug
freddysundowner Jan 3, 2024
c990411
Merge pull request #612 from lowcoder-org/add-oauth-handling-to-graphql
FalkWolsky Jan 3, 2024
83d254e
Enabling selection of OAuth Token in FE
Jan 3, 2024
818cb5d
Fix auth provider attributes matching to lc attributes
aq-ikhwa-tech Jan 3, 2024
38b992b
Merge branch 'dev' into fix-oauth-provider-attributes-mapping
aq-ikhwa-tech Jan 3, 2024
2eddc01
Merge pull request #614 from lowcoder-org/fix-oauth-provider-attribut…
FalkWolsky Jan 3, 2024
9aaf4b8
Removing Typedoc
Jan 3, 2024
57b6120
OAuth impersonation for GraphQL
Jan 3, 2024
3381113
unit test fixes
raheeliftikhar5 Jan 4, 2024
ab73917
fixed unit tests
raheeliftikhar5 Jan 4, 2024
c4f898a
test workflow
raheeliftikhar5 Jan 4, 2024
796da3c
test workflow
raheeliftikhar5 Jan 4, 2024
52c9ceb
test workflow
raheeliftikhar5 Jan 4, 2024
5f060af
test workflow
raheeliftikhar5 Jan 4, 2024
26918a7
test workflow
raheeliftikhar5 Jan 4, 2024
b4c0c16
test workflow
raheeliftikhar5 Jan 4, 2024
86ece8e
test workflow
raheeliftikhar5 Jan 4, 2024
96751cd
test workflow
raheeliftikhar5 Jan 4, 2024
1814ff6
test workflow
raheeliftikhar5 Jan 4, 2024
763b6f1
test workflow
raheeliftikhar5 Jan 4, 2024
a987f29
test workflow
raheeliftikhar5 Jan 4, 2024
893d9fd
test workflow
raheeliftikhar5 Jan 4, 2024
7f73699
test workflow
raheeliftikhar5 Jan 4, 2024
b87c556
test workflow
raheeliftikhar5 Jan 5, 2024
7f8e816
test workflow
raheeliftikhar5 Jan 5, 2024
1e702b2
test workflow
raheeliftikhar5 Jan 5, 2024
79ae92d
test workflow
raheeliftikhar5 Jan 5, 2024
8252f7e
test workflow
raheeliftikhar5 Jan 5, 2024
85feb40
test workflow
raheeliftikhar5 Jan 5, 2024
45d7cce
publish lowcoder-comps workflow
raheeliftikhar5 Jan 5, 2024
61f6c23
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
a9abad1
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
1aa6c19
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
954497f
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
74d17a7
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
41470f0
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
a160f0b
test lowcoder-cli pipeline
raheeliftikhar5 Jan 5, 2024
e90e3b3
publish lowcoder-cli workflow
raheeliftikhar5 Jan 5, 2024
92b6de6
test lowcoder-core pipeline
raheeliftikhar5 Jan 5, 2024
3a444fa
test lowcoder-core pipeline
raheeliftikhar5 Jan 5, 2024
04b61f2
publish lowcoder-core workflow
raheeliftikhar5 Jan 5, 2024
c592c10
publish lowcoder-core workflow
raheeliftikhar5 Jan 5, 2024
4344485
test lowcoder-sdk pipeline
raheeliftikhar5 Jan 5, 2024
b988fe1
test lowcoder-sdk pipeline
raheeliftikhar5 Jan 5, 2024
520b626
publish lowcoder-sdk workflow
raheeliftikhar5 Jan 5, 2024
3fd234d
branch and access token update
raheeliftikhar5 Jan 5, 2024
2416789
Merge pull request #617 from raheeliftikhar5/publish-comps-workflow
FalkWolsky Jan 5, 2024
ab6d195
Regenerate Columns in Table Fix
Jan 6, 2024
c86afa3
Update Lowcoder CLI Version
Jan 6, 2024
ef96a58
Fix the fix in Lowcoder Design - was a mistake
Jan 6, 2024
031bc86
Fix readme location in Lowcoder CLI
Jan 6, 2024
3cfd977
Update Demo Plugin Sources
Jan 6, 2024
e410d95
Update Demo Plugin Sources - fix package
Jan 6, 2024
bdc2385
Update Demo Plugin Sources - fix readme
Jan 6, 2024
4dbd74d
Update Lowcoder Readme to name our new Sponsor
Jan 6, 2024
8f6ea6f
Merge branch 'dev' into feat/issue-412
FalkWolsky Jan 8, 2024
5692cc6
Merge pull request #602 from jreyesr/feat/issue-412
FalkWolsky Jan 8, 2024
0858b4f
Merge branch 'dev' into agora-integrationn
FalkWolsky Jan 9, 2024
6002540
Merge pull request #620 from lowcoder-org/agora-integrationn
FalkWolsky Jan 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .DS_Store
Binary file not shown.
47 changes: 47 additions & 0 deletions .github/workflows/publish-lowcoder-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Publish Lowcoder CLI

on:
push:
branches: [ "dev" ]

jobs:
publish-package:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Check version changes
uses: EndBug/version-check@v1
id: check
with:
diff-search: true
file-name: client/packages/lowcoder-cli/package.json

- name: Version update detected
if: steps.check.outputs.changed == 'true'
run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'

- name: Set up Node.js for NPM
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Install dependencies
if: steps.check.outputs.changed == 'true'
uses: borales/actions-yarn@v4.2.0
with:
cmd: install
dir: client/packages/lowcoder-cli

- name: Publish package to NPM
if: steps.check.outputs.changed == 'true'
run: npm publish
working-directory: client/packages/lowcoder-cli
env:
NODE_AUTH_TOKEN: ${{ secrets.LOWCODERNPMBOT }}
49 changes: 49 additions & 0 deletions .github/workflows/publish-lowcoder-comps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Publish Lowcoder Comps

on:
push:
branches: [ "dev" ]

jobs:
publish-package:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Check version changes
uses: EndBug/version-check@v1
id: check
with:
diff-search: true
file-name: client/packages/lowcoder-comps/package.json

- name: Version update detected
if: steps.check.outputs.changed == 'true'
run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'

- name: Set up Node.js for NPM
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Install dependencies
if: steps.check.outputs.changed == 'true'
uses: borales/actions-yarn@v4.2.0
with:
cmd: install
dir: client/packages/lowcoder-comps

- name: Publish
if: steps.check.outputs.changed == 'true'
uses: borales/actions-yarn@v4.2.0
with:
cmd: build_publish
dir: client/packages/lowcoder-comps
env:
NODE_AUTH_TOKEN: ${{ secrets.LOWCODERNPMBOT }}
47 changes: 47 additions & 0 deletions .github/workflows/publish-lowcoder-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Publish Lowcoder Core

on:
push:
branches: [ "dev" ]

jobs:
publish-package:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Check version changes
uses: EndBug/version-check@v1
id: check
with:
diff-search: true
file-name: client/packages/lowcoder-core/package.json

- name: Version update detected
if: steps.check.outputs.changed == 'true'
run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'

- name: Set up Node.js for NPM
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Install dependencies
if: steps.check.outputs.changed == 'true'
uses: borales/actions-yarn@v4.2.0
with:
cmd: install
dir: client/packages/lowcoder-core

- name: Publish package to NPM
if: steps.check.outputs.changed == 'true'
run: npm publish
working-directory: client/packages/lowcoder-core
env:
NODE_AUTH_TOKEN: ${{ secrets.LOWCODERNPMBOT }}
54 changes: 54 additions & 0 deletions .github/workflows/publish-lowcoder-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Publish Lowcoder SDK

on:
push:
branches: [ "dev" ]

jobs:
publish-package:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Check version changes
uses: EndBug/version-check@v1
id: check
with:
diff-search: true
file-name: client/packages/lowcoder-sdk/package.json

- name: Version update detected
if: steps.check.outputs.changed == 'true'
run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'

- name: Set up Node.js for NPM
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Install dependencies
if: steps.check.outputs.changed == 'true'
uses: borales/actions-yarn@v4.2.0
with:
cmd: install
dir: client/packages/lowcoder-sdk

- name: Build Package
if: steps.check.outputs.changed == 'true'
uses: borales/actions-yarn@v4.2.0
with:
cmd: build
dir: client/packages/lowcoder-sdk

- name: Publish package to NPM
if: steps.check.outputs.changed == 'true'
run: npm publish
working-directory: client/packages/lowcoder-sdk
env:
NODE_AUTH_TOKEN: ${{ secrets.LOWCODERNPMBOT }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ client/node_modules/
client/packages/lowcoder-plugin-demo/.yarn/install-state.gz
client/packages/lowcoder-plugin-demo/yarn.lock
client/packages/lowcoder-plugin-demo/.yarn/cache/@types-node-npm-16.18.68-56f72825c0-094ae9ed80.zip
.DS_Store
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ You can access Lowcoder from [cloud-hosted version](https://app.lowcoder.cloud/)
Accelerate the growth of Lowcoder and unleash its potential with your Sponsorship – together, we're shaping the future of Lowcode for everyone!
[Be a Sponsor](https://github.com/sponsors/lowcoder-org)

Like ... @CHSchuepfer. Thank you very much!
Like ... @CHSchuepfer & @spacegoats-io. Thank you very much!!
2 changes: 1 addition & 1 deletion client/config/test/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
path.resolve(currentDir, "../../packages/lowcoder-design/src"),
],
setupFiles: [path.resolve(currentDir, "./jest.setup.js")],
setupFilesAfterEnv: [path.resolve(currentDir, "./jest.setup-after-env.js")],
setupFilesAfterEnv: [path.resolve(currentDir, "./jest.setup-after-env.js"), 'jest-canvas-mock'],
transform: {
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": path.resolve(currentDir, "./transform/babelTransform.js"),
"^.+\\.css$": path.resolve(currentDir, "./transform/cssTransform.js"),
Expand Down
33 changes: 33 additions & 0 deletions client/config/test/jest.setup-after-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,36 @@ window.ResizeObserver = function () {
disconnect: () => {},
};
};

Object.defineProperty(window, 'ImageData', { value: 'yourValue' });
Object.defineProperty(window, 'MediaStreamTrack', { value: 'yourValue' });
Object.defineProperty(window, 'URL', {
writable: true,
value: {
createObjectURL: jest.fn(),
}
});
Object.defineProperty(window, "navigator", {
writable: true,
value: {
mediaDevices: {
enumerateDevices: jest.fn(),
},
userAgent: '',
language: '',
browserLanguage: '',
},
});

class Worker {
constructor(stringUrl) {
this.url = stringUrl;
this.onmessage = () => {};
}

postMessage(msg) {
this.onmessage(msg);
}
}

window.Worker = Worker;
11 changes: 5 additions & 6 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
"@babel/preset-typescript": "^7.18.6",
"@rollup/plugin-typescript": "^8.5.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/ali-oss": "^6.16.4",
"@types/file-saver": "^2.0.5",
"@types/jest": "^29.2.2",
"@types/mime": "^2.0.3",
Expand All @@ -37,17 +34,16 @@
"@types/react-resizable": "^3.0.5",
"@types/react-router-dom": "^5.3.2",
"@types/shelljs": "^0.8.11",
"@types/styled-components": "^5.1.19",
"@types/stylis": "^4.0.2",
"@types/tern": "0.23.4",
"@types/toposort": "^2.0.3",
"@types/ua-parser-js": "^0.7.36",
"@welldone-software/why-did-you-render": "^6.2.3",
"add": "^2.0.6",
"babel-jest": "^29.3.0",
"babel-preset-react-app": "^10.0.1",
"husky": "^8.0.1",
"jest": "^29.5.0",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^29.5.0",
"lint-staged": "^13.0.1",
"lowcoder-cli": "workspace:^",
Expand All @@ -66,14 +62,17 @@
},
"packageManager": "yarn@3.6.4",
"resolutions": {
"@types/react": "^17",
"@types/react": "^18",
"moment": "2.29.2",
"canvas": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.2.1.tgz",
"react-virtualized@^9.22.3": "patch:react-virtualized@npm%3A9.22.3#./.yarn/patches/react-virtualized-npm-9.22.3-0fff3cbf64.patch",
"eslint-plugin-only-ascii@^0.0.0": "patch:eslint-plugin-only-ascii@npm%3A0.0.0#./.yarn/patches/eslint-plugin-only-ascii-npm-0.0.0-29e3417685.patch"
},
"dependencies": {
"@lottiefiles/react-lottie-player": "^3.5.3",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.5.1",
"@types/styled-components": "^5.1.34",
"antd-mobile": "^5.28.0",
"chalk": "4",
"number-precision": "^1.6.0",
Expand Down
4 changes: 3 additions & 1 deletion client/packages/lowcoder-cli-template-typescript/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.tgz
/node_modules
.DS_Store
node_modules
*.zip
28 changes: 25 additions & 3 deletions client/packages/lowcoder-cli-template-typescript/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# lowcoder-cli-template-typescript
# Lowcoder Demonstrator Plugin Sourcecode

This is the official typescript template of lowcoder-cli.
## Overview

This template will be used by default.
This repository contains the demonstrator code for a Component Plugin in Lowcoder. It serves as a practical example and a reference for developers looking to build their own Component Plugins within the Lowcoder framework.

This repository is not about to integrate the Plugin like other NPM repositories. However, for the Lowcoder Component Plugin Creator we wanted to publish the Demonstrator Plugin code sources.

### The Lowcoder App Editor

<p align="center">
<img src="https://raw.githubusercontent.com/lowcoder-org/lowcoder-media-assets/main/images/App%20Editor%20%7C%20Main%20Screeen%20clean.png" alt="Lowcoder App Editor">
</p>

### Purpose

The primary goal of this repository is to showcase best practices, demonstrate the structure, and provide a clear example of how to develop Component Plugins for Lowcoder. It is intended to be a learning resource rather than a production-ready solution.

## Getting Started

To explore this demonstrator plugin, install and test it in action you can use the "Lowcoder Component Plugin Builder". https://www.npmjs.com/package/create-lowcoder-plugin

### The Lowcoder Component Plugin Builder and Preivew

<p align="center">
<img src="https://raw.githubusercontent.com/lowcoder-org/lowcoder-media-assets/main/images/Component%20Plugin%20Builder%20%7C%20Preview.png" alt="Lowcoder Plugin Preview">
</p>
17 changes: 17 additions & 0 deletions client/packages/lowcoder-cli-template-typescript/icons/hills.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lowcoder Comp Playground</title>
<title>Lowcoder Component Plugin Preview</title>
<style>
#root {
height: 100vh;
Expand Down
8 changes: 4 additions & 4 deletions client/packages/lowcoder-cli-template-typescript/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import ReactDOM from "react-dom";
import { createRoot } from 'react-dom/client';
import { CompIDE } from "lowcoder-sdk";
import { name, version, lowcoder } from "./package.json";
import compMap from "./src/index";

import "lowcoder-sdk/dist/style.css";

function CompDevApp() {
Expand All @@ -15,5 +14,6 @@ function CompDevApp() {
/>
);
}

ReactDOM.render(<CompDevApp />, document.querySelector("#root"));
const container = document.querySelector("#root") as Element | DocumentFragment;
const root = createRoot(container);
root.render(<CompDevApp />);
Loading
Loading