Skip to content

Upgrade sdk/comps version + Added custom_components file in webpack sdk bundle #795

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

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/packages/lowcoder-comps/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lowcoder-comps",
"version": "0.0.27",
"version": "0.0.28",
"type": "module",
"license": "MIT",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from "react";
import SimpleBar from "simplebar-react";
import 'simplebar-react/dist/simplebar.min.css';
import styled from "styled-components";
import { DebouncedFunc } from 'lodash'; // Assuming you're using lodash's DebouncedFunc type

// import 'simplebar-react/dist/simplebar.min.css';

const ScrollBarWrapper = styled.div<{ $hideplaceholder?: boolean }>`
min-height: 0;
Expand Down
661 changes: 661 additions & 0 deletions client/packages/lowcoder-sdk-webpack-bundle/LICENSE

Large diffs are not rendered by default.

18 changes: 0 additions & 18 deletions client/packages/lowcoder-sdk-webpack-bundle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,6 @@ <h1>App 1</h1>
/>
<div class="lowcoder-module-display"></div>
</div>
<!--* App 1 End *-->
<h1>App 2</h1>
<!--* App 2 Start *-->
<div class="lowcoder-module-container">
<input type="hidden" class="module-id" value="644d3a19b5af567870e62c2a" />
<input
type="hidden"
class="module-input"
value='{"moduleInput1":"test"}'
/>
<input
type="hidden"
class="locoder-backend-url"
value="https://api-service.lowcoder.cloud"
/>
<div class="lowcoder-module-display"></div>
</div>
<!--* App 2 End ** -->

<!--* Required Bundle Script ** -->
<script src="./bundle.js"></script>
Expand Down
12 changes: 12 additions & 0 deletions client/packages/lowcoder-sdk-webpack-bundle/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# The following redirect is intended for use with most SPAs that handle
# routing internally.
[[redirects]]
from = "/*"
to = "/index.html"
status = 200

[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<script src="./index_custom_component_files/babel.min.js"></script>
<title>Custom Component</title>
<script
defer="defer"
src="./index_custom_component_files/runtime.351a1318.js"
></script>
<script
defer="defer"
src="./index_custom_component_files/main.ca18aca8.js"
></script>
</head>
<body></body>
</html>

Large diffs are not rendered by default.

Loading