Skip to content

Calendar Component - Bugfixes and Premium views #736

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 9 commits into from
Mar 4, 2024
Prev Previous commit
Next Next commit
fixed bug on licence key input filled
  • Loading branch information
freddysundowner committed Feb 23, 2024
commit 0e95abd0c16f3529e225089336a104335bfaf2e8
15 changes: 12 additions & 3 deletions client/packages/lowcoder/src/comps/comps/remoteComp/loaders.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import { NPM_PLUGIN_ASSETS_BASE_URL } from "constants/npmPlugins";
import { trans } from "i18n";
import { CompConstructor } from "lowcoder-core";
import { RemoteCompInfo, RemoteCompLoader, RemoteCompSource } from "types/remoteComp";
import {
RemoteCompInfo,
RemoteCompLoader,
RemoteCompSource,
} from "types/remoteComp";

async function npmLoader(remoteInfo: RemoteCompInfo): Promise<CompConstructor | null> {
async function npmLoader(
remoteInfo: RemoteCompInfo
): Promise<CompConstructor | null> {
const { packageName, packageVersion = "latest", compName } = remoteInfo;
const entry = `${NPM_PLUGIN_ASSETS_BASE_URL}/${packageName}@${packageVersion}/index.js`;
// const entry = `../../../../../public/package/index.js`;
// console.log("Entry", entry);
try {
const module = await import(/* webpackIgnore: true */ entry);
Expand All @@ -21,7 +28,9 @@ async function npmLoader(remoteInfo: RemoteCompInfo): Promise<CompConstructor |
}
}

async function bundleLoader(remoteInfo: RemoteCompInfo): Promise<CompConstructor | null> {
async function bundleLoader(
remoteInfo: RemoteCompInfo
): Promise<CompConstructor | null> {
const { packageName, packageVersion = "latest", compName } = remoteInfo;
const entry = `/${packageName}/${packageVersion}/index.js?v=${REACT_APP_COMMIT_ID}`;
const module = await import(/* webpackIgnore: true */ entry);
Expand Down