@tachybase/module-cloud-component 0.23.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +9 -0
- package/README.md +1 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/CloudComponent.provider.d.ts +2 -0
- package/dist/client/cloud-library-manager/CloudLibrary.collection.d.ts +2 -0
- package/dist/client/cloud-library-manager/CloudLibraryManager.d.ts +2 -0
- package/dist/client/cloud-library-manager/CloudLibraryManager.fields.d.ts +82 -0
- package/dist/client/cloud-library-manager/CloudLibraryManager.schema.d.ts +1075 -0
- package/dist/client/components/CloudComponentLink.d.ts +2 -0
- package/dist/client/components/ComponentEditor.d.ts +6 -0
- package/dist/client/components/MarkdownEditor.d.ts +9 -0
- package/dist/client/components/Preview.d.ts +9 -0
- package/dist/client/index.d.ts +8 -0
- package/dist/client/index.js +1107 -0
- package/dist/client/locale.d.ts +9 -0
- package/dist/client/settings/CloudComponentBlock.d.ts +4 -0
- package/dist/client/settings/InitializerItem.d.ts +2 -0
- package/dist/client/settings/schema.d.ts +2 -0
- package/dist/client/settings/settings.d.ts +2 -0
- package/dist/externalVersion.js +15 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +39 -0
- package/dist/locale/en-US.json +12 -0
- package/dist/locale/zh-CN.json +12 -0
- package/dist/node_modules/@babel/core/LICENSE +22 -0
- package/dist/node_modules/@babel/core/cjs-proxy.cjs +68 -0
- package/dist/node_modules/@babel/core/lib/config/cache-contexts.js +3 -0
- package/dist/node_modules/@babel/core/lib/config/caching.js +261 -0
- package/dist/node_modules/@babel/core/lib/config/config-chain.js +469 -0
- package/dist/node_modules/@babel/core/lib/config/config-descriptors.js +190 -0
- package/dist/node_modules/@babel/core/lib/config/files/configuration.js +287 -0
- package/dist/node_modules/@babel/core/lib/config/files/import.cjs +6 -0
- package/dist/node_modules/@babel/core/lib/config/files/index-browser.js +58 -0
- package/dist/node_modules/@babel/core/lib/config/files/index.js +78 -0
- package/dist/node_modules/@babel/core/lib/config/files/module-types.js +195 -0
- package/dist/node_modules/@babel/core/lib/config/files/package.js +61 -0
- package/dist/node_modules/@babel/core/lib/config/files/plugins.js +229 -0
- package/dist/node_modules/@babel/core/lib/config/files/types.js +3 -0
- package/dist/node_modules/@babel/core/lib/config/files/utils.js +36 -0
- package/dist/node_modules/@babel/core/lib/config/full.js +312 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/config-api.js +84 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/deep-array.js +23 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/environment.js +12 -0
- package/dist/node_modules/@babel/core/lib/config/index.js +93 -0
- package/dist/node_modules/@babel/core/lib/config/item.js +67 -0
- package/dist/node_modules/@babel/core/lib/config/partial.js +158 -0
- package/dist/node_modules/@babel/core/lib/config/pattern-to-regex.js +38 -0
- package/dist/node_modules/@babel/core/lib/config/plugin.js +33 -0
- package/dist/node_modules/@babel/core/lib/config/printer.js +113 -0
- package/dist/node_modules/@babel/core/lib/config/resolve-targets-browser.js +41 -0
- package/dist/node_modules/@babel/core/lib/config/resolve-targets.js +61 -0
- package/dist/node_modules/@babel/core/lib/config/util.js +31 -0
- package/dist/node_modules/@babel/core/lib/config/validation/option-assertions.js +277 -0
- package/dist/node_modules/@babel/core/lib/config/validation/options.js +189 -0
- package/dist/node_modules/@babel/core/lib/config/validation/plugins.js +67 -0
- package/dist/node_modules/@babel/core/lib/config/validation/removed.js +68 -0
- package/dist/node_modules/@babel/core/lib/errors/config-error.js +18 -0
- package/dist/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js +98 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/async.js +90 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/fs.js +31 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/functional.js +58 -0
- package/dist/node_modules/@babel/core/lib/index.js +227 -0
- package/dist/node_modules/@babel/core/lib/parse.js +47 -0
- package/dist/node_modules/@babel/core/lib/parser/index.js +79 -0
- package/dist/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js +339 -0
- package/dist/node_modules/@babel/core/lib/tools/build-external-helpers.js +144 -0
- package/dist/node_modules/@babel/core/lib/transform-ast.js +50 -0
- package/dist/node_modules/@babel/core/lib/transform-file-browser.js +23 -0
- package/dist/node_modules/@babel/core/lib/transform-file.js +40 -0
- package/dist/node_modules/@babel/core/lib/transform.js +49 -0
- package/dist/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js +84 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +4 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/file.js +214 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/generate.js +84 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/merge-map.js +37 -0
- package/dist/node_modules/@babel/core/lib/transformation/index.js +92 -0
- package/dist/node_modules/@babel/core/lib/transformation/normalize-file.js +129 -0
- package/dist/node_modules/@babel/core/lib/transformation/normalize-opts.js +59 -0
- package/dist/node_modules/@babel/core/lib/transformation/plugin-pass.js +50 -0
- package/dist/node_modules/@babel/core/lib/transformation/util/clone-deep.js +36 -0
- package/dist/node_modules/@babel/core/lib/vendor/import-meta-resolve.js +1043 -0
- package/dist/node_modules/@babel/core/node_modules/.bin/json5 +17 -0
- package/dist/node_modules/@babel/core/node_modules/.bin/parser +17 -0
- package/dist/node_modules/@babel/core/node_modules/.bin/semver +17 -0
- package/dist/node_modules/@babel/core/package.json +1 -0
- package/dist/node_modules/@babel/core/src/config/files/index-browser.ts +113 -0
- package/dist/node_modules/@babel/core/src/config/files/index.ts +29 -0
- package/dist/node_modules/@babel/core/src/config/resolve-targets-browser.ts +40 -0
- package/dist/node_modules/@babel/core/src/config/resolve-targets.ts +56 -0
- package/dist/node_modules/@babel/core/src/transform-file-browser.ts +31 -0
- package/dist/node_modules/@babel/core/src/transform-file.ts +55 -0
- package/dist/server/actions/cloud-libraries-controller.d.ts +7 -0
- package/dist/server/actions/cloud-libraries-controller.js +147 -0
- package/dist/server/collections/cloud-libraries.d.ts +2 -0
- package/dist/server/collections/cloud-libraries.js +98 -0
- package/dist/server/collections/effect-libraries.d.ts +2 -0
- package/dist/server/collections/effect-libraries.js +78 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +33 -0
- package/dist/server/plugin.d.ts +4 -0
- package/dist/server/plugin.js +87 -0
- package/dist/server/services/cloud-compiler.d.ts +8 -0
- package/dist/server/services/cloud-compiler.js +116 -0
- package/dist/server/services/cloud-libraries-service.d.ts +11 -0
- package/dist/server/services/cloud-libraries-service.js +196 -0
- package/package.json +44 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/json5@2.2.3/node_modules/json5/lib/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/json5@2.2.3/node_modules/json5/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/json5@2.2.3/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/json5@2.2.3/node_modules/json5/lib/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/json5@2.2.3/node_modules/json5/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/json5@2.2.3/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../json5@2.2.3/node_modules/json5/lib/cli.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../json5@2.2.3/node_modules/json5/lib/cli.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/@babel+parser@7.26.2/node_modules/@babel/parser/bin/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/@babel+parser@7.26.2/node_modules/@babel/parser/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/@babel+parser@7.26.2/node_modules/@babel/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/@babel+parser@7.26.2/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/@babel+parser@7.26.2/node_modules/@babel/parser/bin/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/@babel+parser@7.26.2/node_modules/@babel/parser/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/@babel+parser@7.26.2/node_modules/@babel/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/@babel+parser@7.26.2/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../@babel+parser@7.26.2/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../@babel+parser@7.26.2/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/semver@6.3.1/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/semver@6.3.1/node_modules:/Users/seal/Documents/projects/tachybase/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"@babel/core","version":"7.26.0","description":"Babel compiler core.","main":"./lib/index.js","author":"The Babel Team (https://babel.dev/team)","license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-core"},"homepage":"https://babel.dev/docs/en/next/babel-core","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20core%22+is%3Aopen","keywords":["6to5","babel","classes","const","es6","harmony","let","modules","transpile","transpiler","var","babel-core","compiler"],"engines":{"node":">=6.9.0"},"funding":{"type":"opencollective","url":"https://opencollective.com/babel"},"browser":{"./lib/config/files/index.js":"./lib/config/files/index-browser.js","./lib/config/resolve-targets.js":"./lib/config/resolve-targets-browser.js","./lib/transform-file.js":"./lib/transform-file-browser.js","./src/config/files/index.ts":"./src/config/files/index-browser.ts","./src/config/resolve-targets.ts":"./src/config/resolve-targets-browser.ts","./src/transform-file.ts":"./src/transform-file-browser.ts"},"dependencies":{"@ampproject/remapping":"^2.2.0","@babel/code-frame":"^7.26.0","@babel/generator":"^7.26.0","@babel/helper-compilation-targets":"^7.25.9","@babel/helper-module-transforms":"^7.26.0","@babel/helpers":"^7.26.0","@babel/parser":"^7.26.0","@babel/template":"^7.25.9","@babel/traverse":"^7.25.9","@babel/types":"^7.26.0","convert-source-map":"^2.0.0","debug":"^4.1.0","gensync":"^1.0.0-beta.2","json5":"^2.2.3","semver":"^6.3.1"},"devDependencies":{"@babel/helper-transform-fixture-test-runner":"^7.26.0","@babel/plugin-syntax-flow":"^7.26.0","@babel/plugin-transform-flow-strip-types":"^7.25.9","@babel/plugin-transform-modules-commonjs":"^7.25.9","@babel/preset-env":"^7.26.0","@babel/preset-typescript":"^7.26.0","@jridgewell/trace-mapping":"^0.3.25","@types/convert-source-map":"^2.0.0","@types/debug":"^4.1.0","@types/gensync":"^1.0.0","@types/resolve":"^1.3.2","@types/semver":"^5.4.0","rimraf":"^3.0.0","ts-node":"^11.0.0-beta.1"},"type":"commonjs","_lastModified":"2024-12-22T16:00:34.933Z"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { Handler } from "gensync";
|
|
2
|
+
|
|
3
|
+
import type {
|
|
4
|
+
ConfigFile,
|
|
5
|
+
IgnoreFile,
|
|
6
|
+
RelativeConfig,
|
|
7
|
+
FilePackageData,
|
|
8
|
+
} from "./types.ts";
|
|
9
|
+
|
|
10
|
+
import type { CallerMetadata } from "../validation/options.ts";
|
|
11
|
+
|
|
12
|
+
export type { ConfigFile, IgnoreFile, RelativeConfig, FilePackageData };
|
|
13
|
+
|
|
14
|
+
export function findConfigUpwards(
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
16
|
+
rootDir: string,
|
|
17
|
+
): string | null {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line require-yield
|
|
22
|
+
export function* findPackageData(filepath: string): Handler<FilePackageData> {
|
|
23
|
+
return {
|
|
24
|
+
filepath,
|
|
25
|
+
directories: [],
|
|
26
|
+
pkg: null,
|
|
27
|
+
isPackage: false,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// eslint-disable-next-line require-yield
|
|
32
|
+
export function* findRelativeConfig(
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
34
|
+
pkgData: FilePackageData,
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
36
|
+
envName: string,
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
38
|
+
caller: CallerMetadata | undefined,
|
|
39
|
+
): Handler<RelativeConfig> {
|
|
40
|
+
return { config: null, ignore: null };
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// eslint-disable-next-line require-yield
|
|
44
|
+
export function* findRootConfig(
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46
|
+
dirname: string,
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
48
|
+
envName: string,
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
50
|
+
caller: CallerMetadata | undefined,
|
|
51
|
+
): Handler<ConfigFile | null> {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// eslint-disable-next-line require-yield
|
|
56
|
+
export function* loadConfig(
|
|
57
|
+
name: string,
|
|
58
|
+
dirname: string,
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
60
|
+
envName: string,
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
62
|
+
caller: CallerMetadata | undefined,
|
|
63
|
+
): Handler<ConfigFile> {
|
|
64
|
+
throw new Error(`Cannot load ${name} relative to ${dirname} in a browser`);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// eslint-disable-next-line require-yield
|
|
68
|
+
export function* resolveShowConfigPath(
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
70
|
+
dirname: string,
|
|
71
|
+
): Handler<string | null> {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const ROOT_CONFIG_FILENAMES: string[] = [];
|
|
76
|
+
|
|
77
|
+
type Resolved =
|
|
78
|
+
| { loader: "require"; filepath: string }
|
|
79
|
+
| { loader: "import"; filepath: string };
|
|
80
|
+
|
|
81
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
82
|
+
export function resolvePlugin(name: string, dirname: string): Resolved | null {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
87
|
+
export function resolvePreset(name: string, dirname: string): Resolved | null {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function loadPlugin(
|
|
92
|
+
name: string,
|
|
93
|
+
dirname: string,
|
|
94
|
+
): Handler<{
|
|
95
|
+
filepath: string;
|
|
96
|
+
value: unknown;
|
|
97
|
+
}> {
|
|
98
|
+
throw new Error(
|
|
99
|
+
`Cannot load plugin ${name} relative to ${dirname} in a browser`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function loadPreset(
|
|
104
|
+
name: string,
|
|
105
|
+
dirname: string,
|
|
106
|
+
): Handler<{
|
|
107
|
+
filepath: string;
|
|
108
|
+
value: unknown;
|
|
109
|
+
}> {
|
|
110
|
+
throw new Error(
|
|
111
|
+
`Cannot load preset ${name} relative to ${dirname} in a browser`,
|
|
112
|
+
);
|
|
113
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type indexBrowserType = typeof import("./index-browser");
|
|
2
|
+
type indexType = typeof import("./index");
|
|
3
|
+
|
|
4
|
+
// Kind of gross, but essentially asserting that the exports of this module are the same as the
|
|
5
|
+
// exports of index-browser, since this file may be replaced at bundle time with index-browser.
|
|
6
|
+
({}) as any as indexBrowserType as indexType;
|
|
7
|
+
|
|
8
|
+
export { findPackageData } from "./package.ts";
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
findConfigUpwards,
|
|
12
|
+
findRelativeConfig,
|
|
13
|
+
findRootConfig,
|
|
14
|
+
loadConfig,
|
|
15
|
+
resolveShowConfigPath,
|
|
16
|
+
ROOT_CONFIG_FILENAMES,
|
|
17
|
+
} from "./configuration.ts";
|
|
18
|
+
export type {
|
|
19
|
+
ConfigFile,
|
|
20
|
+
IgnoreFile,
|
|
21
|
+
RelativeConfig,
|
|
22
|
+
FilePackageData,
|
|
23
|
+
} from "./types.ts";
|
|
24
|
+
export {
|
|
25
|
+
loadPlugin,
|
|
26
|
+
loadPreset,
|
|
27
|
+
resolvePlugin,
|
|
28
|
+
resolvePreset,
|
|
29
|
+
} from "./plugins.ts";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ValidatedOptions } from "./validation/options.ts";
|
|
2
|
+
import getTargets, {
|
|
3
|
+
type InputTargets,
|
|
4
|
+
} from "@babel/helper-compilation-targets";
|
|
5
|
+
|
|
6
|
+
import type { Targets } from "@babel/helper-compilation-targets";
|
|
7
|
+
|
|
8
|
+
export function resolveBrowserslistConfigFile(
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10
|
+
browserslistConfigFile: string,
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12
|
+
configFilePath: string,
|
|
13
|
+
): string | void {
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function resolveTargets(
|
|
18
|
+
options: ValidatedOptions,
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
20
|
+
root: string,
|
|
21
|
+
): Targets {
|
|
22
|
+
const optTargets = options.targets;
|
|
23
|
+
let targets: InputTargets;
|
|
24
|
+
|
|
25
|
+
if (typeof optTargets === "string" || Array.isArray(optTargets)) {
|
|
26
|
+
targets = { browsers: optTargets };
|
|
27
|
+
} else if (optTargets) {
|
|
28
|
+
if ("esmodules" in optTargets) {
|
|
29
|
+
targets = { ...optTargets, esmodules: "intersect" };
|
|
30
|
+
} else {
|
|
31
|
+
// https://github.com/microsoft/TypeScript/issues/17002
|
|
32
|
+
targets = optTargets as InputTargets;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return getTargets(targets, {
|
|
37
|
+
ignoreBrowserslistConfig: true,
|
|
38
|
+
browserslistEnv: options.browserslistEnv,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
type browserType = typeof import("./resolve-targets-browser");
|
|
2
|
+
type nodeType = typeof import("./resolve-targets");
|
|
3
|
+
|
|
4
|
+
// Kind of gross, but essentially asserting that the exports of this module are the same as the
|
|
5
|
+
// exports of index-browser, since this file may be replaced at bundle time with index-browser.
|
|
6
|
+
({}) as any as browserType as nodeType;
|
|
7
|
+
|
|
8
|
+
import type { ValidatedOptions } from "./validation/options.ts";
|
|
9
|
+
import path from "path";
|
|
10
|
+
import getTargets, {
|
|
11
|
+
type InputTargets,
|
|
12
|
+
} from "@babel/helper-compilation-targets";
|
|
13
|
+
|
|
14
|
+
import type { Targets } from "@babel/helper-compilation-targets";
|
|
15
|
+
|
|
16
|
+
export function resolveBrowserslistConfigFile(
|
|
17
|
+
browserslistConfigFile: string,
|
|
18
|
+
configFileDir: string,
|
|
19
|
+
): string | undefined {
|
|
20
|
+
return path.resolve(configFileDir, browserslistConfigFile);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function resolveTargets(
|
|
24
|
+
options: ValidatedOptions,
|
|
25
|
+
root: string,
|
|
26
|
+
): Targets {
|
|
27
|
+
const optTargets = options.targets;
|
|
28
|
+
let targets: InputTargets;
|
|
29
|
+
|
|
30
|
+
if (typeof optTargets === "string" || Array.isArray(optTargets)) {
|
|
31
|
+
targets = { browsers: optTargets };
|
|
32
|
+
} else if (optTargets) {
|
|
33
|
+
if ("esmodules" in optTargets) {
|
|
34
|
+
targets = { ...optTargets, esmodules: "intersect" };
|
|
35
|
+
} else {
|
|
36
|
+
// https://github.com/microsoft/TypeScript/issues/17002
|
|
37
|
+
targets = optTargets as InputTargets;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const { browserslistConfigFile } = options;
|
|
42
|
+
let configFile;
|
|
43
|
+
let ignoreBrowserslistConfig = false;
|
|
44
|
+
if (typeof browserslistConfigFile === "string") {
|
|
45
|
+
configFile = browserslistConfigFile;
|
|
46
|
+
} else {
|
|
47
|
+
ignoreBrowserslistConfig = browserslistConfigFile === false;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return getTargets(targets, {
|
|
51
|
+
ignoreBrowserslistConfig,
|
|
52
|
+
configFile,
|
|
53
|
+
configPath: root,
|
|
54
|
+
browserslistEnv: options.browserslistEnv,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// duplicated from transform-file so we do not have to import anything here
|
|
2
|
+
type TransformFile = {
|
|
3
|
+
(filename: string, callback: (error: Error, file: null) => void): void;
|
|
4
|
+
(
|
|
5
|
+
filename: string,
|
|
6
|
+
opts: any,
|
|
7
|
+
callback: (error: Error, file: null) => void,
|
|
8
|
+
): void;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const transformFile: TransformFile = function transformFile(
|
|
12
|
+
filename,
|
|
13
|
+
opts,
|
|
14
|
+
callback?: (error: Error, file: null) => void,
|
|
15
|
+
) {
|
|
16
|
+
if (typeof opts === "function") {
|
|
17
|
+
callback = opts;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
callback(new Error("Transforming files is not supported in browsers"), null);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export function transformFileSync(): never {
|
|
24
|
+
throw new Error("Transforming files is not supported in browsers");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function transformFileAsync() {
|
|
28
|
+
return Promise.reject(
|
|
29
|
+
new Error("Transforming files is not supported in browsers"),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import gensync, { type Handler } from "gensync";
|
|
2
|
+
|
|
3
|
+
import loadConfig from "./config/index.ts";
|
|
4
|
+
import type { InputOptions, ResolvedConfig } from "./config/index.ts";
|
|
5
|
+
import { run } from "./transformation/index.ts";
|
|
6
|
+
import type { FileResult, FileResultCallback } from "./transformation/index.ts";
|
|
7
|
+
import * as fs from "./gensync-utils/fs.ts";
|
|
8
|
+
|
|
9
|
+
type transformFileBrowserType = typeof import("./transform-file-browser");
|
|
10
|
+
type transformFileType = typeof import("./transform-file");
|
|
11
|
+
|
|
12
|
+
// Kind of gross, but essentially asserting that the exports of this module are the same as the
|
|
13
|
+
// exports of transform-file-browser, since this file may be replaced at bundle time with
|
|
14
|
+
// transform-file-browser.
|
|
15
|
+
({}) as any as transformFileBrowserType as transformFileType;
|
|
16
|
+
|
|
17
|
+
const transformFileRunner = gensync(function* (
|
|
18
|
+
filename: string,
|
|
19
|
+
opts?: InputOptions,
|
|
20
|
+
): Handler<FileResult | null> {
|
|
21
|
+
const options = { ...opts, filename };
|
|
22
|
+
|
|
23
|
+
const config: ResolvedConfig | null = yield* loadConfig(options);
|
|
24
|
+
if (config === null) return null;
|
|
25
|
+
|
|
26
|
+
const code = yield* fs.readFile(filename, "utf8");
|
|
27
|
+
return yield* run(config, code);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
// @ts-expect-error TS doesn't detect that this signature is compatible
|
|
31
|
+
export function transformFile(
|
|
32
|
+
filename: string,
|
|
33
|
+
callback: FileResultCallback,
|
|
34
|
+
): void;
|
|
35
|
+
export function transformFile(
|
|
36
|
+
filename: string,
|
|
37
|
+
opts: InputOptions | undefined | null,
|
|
38
|
+
callback: FileResultCallback,
|
|
39
|
+
): void;
|
|
40
|
+
export function transformFile(
|
|
41
|
+
...args: Parameters<typeof transformFileRunner.errback>
|
|
42
|
+
) {
|
|
43
|
+
transformFileRunner.errback(...args);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function transformFileSync(
|
|
47
|
+
...args: Parameters<typeof transformFileRunner.sync>
|
|
48
|
+
) {
|
|
49
|
+
return transformFileRunner.sync(...args);
|
|
50
|
+
}
|
|
51
|
+
export function transformFileAsync(
|
|
52
|
+
...args: Parameters<typeof transformFileRunner.async>
|
|
53
|
+
) {
|
|
54
|
+
return transformFileRunner.async(...args);
|
|
55
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Context, Next } from '@tachybase/actions';
|
|
2
|
+
import { CloudCompiler } from '../services/cloud-compiler';
|
|
3
|
+
export declare class CloudLibrariesController {
|
|
4
|
+
compiler: CloudCompiler;
|
|
5
|
+
update(ctx: Context, next: Next): Promise<void>;
|
|
6
|
+
publish(ctx: Context, next: Next): Promise<void>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
8
|
+
var __typeError = (msg) => {
|
|
9
|
+
throw TypeError(msg);
|
|
10
|
+
};
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
13
|
+
var __export = (target, all) => {
|
|
14
|
+
for (var name in all)
|
|
15
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from))
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
21
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
+
mod
|
|
32
|
+
));
|
|
33
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
34
|
+
var __decoratorStart = (base) => [, , , __create((base == null ? void 0 : base[__knownSymbol("metadata")]) ?? null)];
|
|
35
|
+
var __decoratorStrings = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"];
|
|
36
|
+
var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError("Function expected") : fn;
|
|
37
|
+
var __decoratorContext = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null)) });
|
|
38
|
+
var __decoratorMetadata = (array, target) => __defNormalProp(target, __knownSymbol("metadata"), array[3]);
|
|
39
|
+
var __runInitializers = (array, flags, self, value) => {
|
|
40
|
+
for (var i = 0, fns = array[flags >> 1], n = fns && fns.length; i < n; i++) flags & 1 ? fns[i].call(self) : value = fns[i].call(self, value);
|
|
41
|
+
return value;
|
|
42
|
+
};
|
|
43
|
+
var __decorateElement = (array, flags, name, decorators, target, extra) => {
|
|
44
|
+
var fn, it, done, ctx, access, k = flags & 7, s = !!(flags & 8), p = !!(flags & 16);
|
|
45
|
+
var j = k > 3 ? array.length + 1 : k ? s ? 1 : 2 : 0, key = __decoratorStrings[k + 5];
|
|
46
|
+
var initializers = k > 3 && (array[j - 1] = []), extraInitializers = array[j] || (array[j] = []);
|
|
47
|
+
var desc = k && (!p && !s && (target = target.prototype), k < 5 && (k > 3 || !p) && __getOwnPropDesc(k < 4 ? target : { get [name]() {
|
|
48
|
+
return __privateGet(this, extra);
|
|
49
|
+
}, set [name](x) {
|
|
50
|
+
return __privateSet(this, extra, x);
|
|
51
|
+
} }, name));
|
|
52
|
+
k ? p && k < 4 && __name(extra, (k > 2 ? "set " : k > 1 ? "get " : "") + name) : __name(target, name);
|
|
53
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
54
|
+
ctx = __decoratorContext(k, name, done = {}, array[3], extraInitializers);
|
|
55
|
+
if (k) {
|
|
56
|
+
ctx.static = s, ctx.private = p, access = ctx.access = { has: p ? (x) => __privateIn(target, x) : (x) => name in x };
|
|
57
|
+
if (k ^ 3) access.get = p ? (x) => (k ^ 1 ? __privateGet : __privateMethod)(x, target, k ^ 4 ? extra : desc.get) : (x) => x[name];
|
|
58
|
+
if (k > 2) access.set = p ? (x, y) => __privateSet(x, target, y, k ^ 4 ? extra : desc.set) : (x, y) => x[name] = y;
|
|
59
|
+
}
|
|
60
|
+
it = (0, decorators[i])(k ? k < 4 ? p ? extra : desc[key] : k > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
|
|
61
|
+
if (k ^ 4 || it === void 0) __expectFn(it) && (k > 4 ? initializers.unshift(it) : k ? p ? extra = it : desc[key] = it : target = it);
|
|
62
|
+
else if (typeof it !== "object" || it === null) __typeError("Object expected");
|
|
63
|
+
else __expectFn(fn = it.get) && (desc.get = fn), __expectFn(fn = it.set) && (desc.set = fn), __expectFn(fn = it.init) && initializers.unshift(fn);
|
|
64
|
+
}
|
|
65
|
+
return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
|
|
66
|
+
};
|
|
67
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
68
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
69
|
+
var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
|
|
70
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
71
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
72
|
+
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
73
|
+
var cloud_libraries_controller_exports = {};
|
|
74
|
+
__export(cloud_libraries_controller_exports, {
|
|
75
|
+
CloudLibrariesController: () => CloudLibrariesController
|
|
76
|
+
});
|
|
77
|
+
module.exports = __toCommonJS(cloud_libraries_controller_exports);
|
|
78
|
+
var import_actions = __toESM(require("@tachybase/actions"));
|
|
79
|
+
var import_utils = require("@tachybase/utils");
|
|
80
|
+
var import_cloud_compiler = require("../services/cloud-compiler");
|
|
81
|
+
var _publish_dec, _update_dec, _compiler_dec, _CloudLibrariesController_decorators, _init;
|
|
82
|
+
_CloudLibrariesController_decorators = [(0, import_utils.Controller)("cloudLibraries")], _compiler_dec = [(0, import_utils.Inject)(() => import_cloud_compiler.CloudCompiler)], _update_dec = [(0, import_utils.Action)("update")], _publish_dec = [(0, import_utils.Action)("publish")];
|
|
83
|
+
class CloudLibrariesController {
|
|
84
|
+
constructor() {
|
|
85
|
+
__runInitializers(_init, 5, this);
|
|
86
|
+
__publicField(this, "compiler", __runInitializers(_init, 8, this)), __runInitializers(_init, 11, this);
|
|
87
|
+
}
|
|
88
|
+
async update(ctx, next) {
|
|
89
|
+
const { name, code, module: module2, isClient, isServer, serverPlugin, clientPlugin, enabled, component } = ctx.action.params.values;
|
|
90
|
+
if (code) {
|
|
91
|
+
const clientCode = this.compiler.toAmd(code);
|
|
92
|
+
const serverCode = this.compiler.toCjs(code);
|
|
93
|
+
const { db } = ctx;
|
|
94
|
+
const repo = db.getRepository("effectLibraries");
|
|
95
|
+
repo.updateOrCreate({
|
|
96
|
+
filterKeys: ["module"],
|
|
97
|
+
values: {
|
|
98
|
+
name,
|
|
99
|
+
module: module2,
|
|
100
|
+
enabled,
|
|
101
|
+
server: serverCode,
|
|
102
|
+
client: clientCode,
|
|
103
|
+
isClient,
|
|
104
|
+
isServer,
|
|
105
|
+
serverPlugin,
|
|
106
|
+
clientPlugin,
|
|
107
|
+
component
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
await import_actions.default.update(ctx, next);
|
|
112
|
+
}
|
|
113
|
+
async publish(ctx, next) {
|
|
114
|
+
const { code, module: module2, isClient, isServer, serverPlugin, clientPlugin, enabled, component } = ctx.action.params.values;
|
|
115
|
+
if (code) {
|
|
116
|
+
const clientCode = this.compiler.toAmd(code);
|
|
117
|
+
const serverCode = this.compiler.toCjs(code);
|
|
118
|
+
const { db } = ctx;
|
|
119
|
+
const repo = db.getRepository("effectLibraries");
|
|
120
|
+
repo.updateOrCreate({
|
|
121
|
+
filterKeys: ["module"],
|
|
122
|
+
values: {
|
|
123
|
+
module: module2,
|
|
124
|
+
enabled,
|
|
125
|
+
server: serverCode,
|
|
126
|
+
client: clientCode,
|
|
127
|
+
isClient,
|
|
128
|
+
isServer,
|
|
129
|
+
serverPlugin,
|
|
130
|
+
clientPlugin,
|
|
131
|
+
component
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
await import_actions.default.update(ctx, next);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
_init = __decoratorStart(null);
|
|
139
|
+
__decorateElement(_init, 1, "update", _update_dec, CloudLibrariesController);
|
|
140
|
+
__decorateElement(_init, 1, "publish", _publish_dec, CloudLibrariesController);
|
|
141
|
+
__decorateElement(_init, 5, "compiler", _compiler_dec, CloudLibrariesController);
|
|
142
|
+
CloudLibrariesController = __decorateElement(_init, 0, "CloudLibrariesController", _CloudLibrariesController_decorators, CloudLibrariesController);
|
|
143
|
+
__runInitializers(_init, 1, CloudLibrariesController);
|
|
144
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
145
|
+
0 && (module.exports = {
|
|
146
|
+
CloudLibrariesController
|
|
147
|
+
});
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var cloud_libraries_exports = {};
|
|
19
|
+
__export(cloud_libraries_exports, {
|
|
20
|
+
default: () => cloud_libraries_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(cloud_libraries_exports);
|
|
23
|
+
var import_database = require("@tachybase/database");
|
|
24
|
+
var cloud_libraries_default = (0, import_database.defineCollection)({
|
|
25
|
+
name: "cloudLibraries",
|
|
26
|
+
dumpRules: "required",
|
|
27
|
+
logging: true,
|
|
28
|
+
autoGenId: true,
|
|
29
|
+
createdAt: true,
|
|
30
|
+
createdBy: true,
|
|
31
|
+
updatedAt: true,
|
|
32
|
+
updatedBy: true,
|
|
33
|
+
fields: [
|
|
34
|
+
{
|
|
35
|
+
name: "name",
|
|
36
|
+
type: "string",
|
|
37
|
+
unique: true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "code",
|
|
41
|
+
type: "text",
|
|
42
|
+
allowNull: false,
|
|
43
|
+
defaultValue: ""
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "data",
|
|
47
|
+
type: "json",
|
|
48
|
+
jsonb: false
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "description",
|
|
52
|
+
type: "text"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "enabled",
|
|
56
|
+
type: "boolean",
|
|
57
|
+
defaultValue: false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "isClient",
|
|
61
|
+
type: "boolean",
|
|
62
|
+
defaultValue: false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "isServer",
|
|
66
|
+
type: "boolean",
|
|
67
|
+
defaultValue: false
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "module",
|
|
71
|
+
type: "string",
|
|
72
|
+
allowNull: false,
|
|
73
|
+
unique: true
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "serverPlugin",
|
|
77
|
+
type: "string"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "clientPlugin",
|
|
81
|
+
type: "string"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "component",
|
|
85
|
+
type: "string"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "version",
|
|
89
|
+
type: "string",
|
|
90
|
+
defaultValue: "debug"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "versions",
|
|
94
|
+
type: "jsonb",
|
|
95
|
+
defaultValue: "[]"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
});
|