mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-21 03:15:49 +08:00
fix lockfile and type errors
This commit is contained in:
parent
495afd4f61
commit
4f393563f2
@ -5,17 +5,11 @@ import { css } from '@emotion/react';
|
||||
import 'codemirror/mode/javascript/javascript';
|
||||
import 'codemirror/addon/fold/brace-fold';
|
||||
import 'codemirror/addon/fold/foldgutter';
|
||||
import 'codemirror/addon/fold/foldgutter.css';
|
||||
import 'codemirror/lib/codemirror.css';
|
||||
import 'codemirror/theme/ayu-mirage.css';
|
||||
// tern
|
||||
import 'codemirror/addon/tern/tern';
|
||||
import 'codemirror/addon/selection/active-line';
|
||||
import 'codemirror/addon/comment/comment';
|
||||
import 'codemirror/addon/hint/show-hint';
|
||||
import 'codemirror/addon/dialog/dialog.css';
|
||||
import 'codemirror/addon/hint/show-hint.css';
|
||||
import 'codemirror/addon/tern/tern.css';
|
||||
import 'tern/plugin/doc_comment';
|
||||
import 'tern/plugin/complete_strings';
|
||||
import ecma from 'tern/defs/ecmascript.json';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import React, { useState } from 'react';
|
||||
import {
|
||||
FormControl,
|
||||
FormLabel,
|
||||
|
@ -6,7 +6,7 @@ import SchemaField from '../SchemaField';
|
||||
type Props = FieldProps;
|
||||
|
||||
export const ModuleWidget: React.FC<Props> = props => {
|
||||
const { formData, onChange, schema, registry } = props;
|
||||
const { formData, onChange, schema, registry, stateManager } = props;
|
||||
const moduleTypes = useMemo(() => {
|
||||
const res: string[] = [];
|
||||
for (const version of registry.modules.keys()) {
|
||||
@ -28,6 +28,7 @@ export const ModuleWidget: React.FC<Props> = props => {
|
||||
<SchemaField
|
||||
schema={schema.properties!.id! as FieldProps['schema']}
|
||||
registry={registry}
|
||||
stateManager={stateManager}
|
||||
label="Module ID"
|
||||
formData={formData?.id}
|
||||
onChange={v =>
|
||||
@ -61,6 +62,7 @@ export const ModuleWidget: React.FC<Props> = props => {
|
||||
title: 'Module Properties',
|
||||
}}
|
||||
registry={registry}
|
||||
stateManager={stateManager}
|
||||
label="Module Properties"
|
||||
formData={formData?.properties}
|
||||
onChange={v =>
|
||||
|
@ -4,3 +4,6 @@
|
||||
@import 'codemirror/addon/fold/foldgutter.css';
|
||||
@import 'codemirror/lib/codemirror.css';
|
||||
@import 'codemirror/theme/ayu-mirage.css';
|
||||
@import 'codemirror/addon/dialog/dialog.css';
|
||||
@import 'codemirror/addon/hint/show-hint.css';
|
||||
@import 'codemirror/addon/tern/tern.css';
|
||||
|
32
yarn.lock
32
yarn.lock
@ -3423,8 +3423,8 @@ acorn-jsx@^5.3.1:
|
||||
|
||||
acorn-loose@^6.0.0:
|
||||
version "6.1.0"
|
||||
resolved "http://192.168.26.29:7001/acorn-loose/download/acorn-loose-6.1.0.tgz#3b2de5b3fc64f811c7b6c07cd9128d1476817f94"
|
||||
integrity sha1-Oy3ls/xk+BHHtsB82RKNFHaBf5Q=
|
||||
resolved "https://registry.yarnpkg.com/acorn-loose/-/acorn-loose-6.1.0.tgz#3b2de5b3fc64f811c7b6c07cd9128d1476817f94"
|
||||
integrity sha512-FHhXoiF0Uch3IqsrnPpWwCtiv5PYvipTpT1k9lDMgQVVYc9iDuSl5zdJV358aI8twfHCYMFBRVYvAVki9wC/ng==
|
||||
dependencies:
|
||||
acorn "^6.2.0"
|
||||
|
||||
@ -3437,8 +3437,8 @@ acorn-loose@^8.3.0:
|
||||
|
||||
acorn-walk@^6.0.0:
|
||||
version "6.2.0"
|
||||
resolved "http://192.168.26.29:7001/acorn-walk/download/acorn-walk-6.2.0.tgz#123cb8f3b84c2171f1f7fb252615b1c78a6b1a8c"
|
||||
integrity sha1-Ejy487hMIXHx9/slJhWxx4prGow=
|
||||
resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.2.0.tgz#123cb8f3b84c2171f1f7fb252615b1c78a6b1a8c"
|
||||
integrity sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA==
|
||||
|
||||
acorn-walk@^7.1.1:
|
||||
version "7.2.0"
|
||||
@ -3452,8 +3452,8 @@ acorn-walk@^8.2.0:
|
||||
|
||||
acorn@^6.0.0, acorn@^6.2.0:
|
||||
version "6.4.2"
|
||||
resolved "http://192.168.26.29:7001/acorn/download/acorn-6.4.2.tgz#35866fd710528e92de10cf06016498e47e39e1e6"
|
||||
integrity sha1-NYZv1xBSjpLeEM8GAWSY5H454eY=
|
||||
resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.2.tgz#35866fd710528e92de10cf06016498e47e39e1e6"
|
||||
integrity sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==
|
||||
|
||||
acorn@^7.1.1, acorn@^7.4.0:
|
||||
version "7.4.1"
|
||||
@ -4716,7 +4716,7 @@ encoding@^0.1.12:
|
||||
|
||||
enhanced-resolve@^2.2.2:
|
||||
version "2.3.0"
|
||||
resolved "http://192.168.26.29:7001/enhanced-resolve/download/enhanced-resolve-2.3.0.tgz#a115c32504b6302e85a76269d7a57ccdd962e359"
|
||||
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-2.3.0.tgz#a115c32504b6302e85a76269d7a57ccdd962e359"
|
||||
integrity sha1-oRXDJQS2MC6Fp2Jp16V8zdli41k=
|
||||
dependencies:
|
||||
graceful-fs "^4.1.2"
|
||||
@ -4748,8 +4748,8 @@ err-code@^2.0.2:
|
||||
|
||||
errno@^0.1.3:
|
||||
version "0.1.8"
|
||||
resolved "http://192.168.26.29:7001/errno/download/errno-0.1.8.tgz#8bb3e9c7d463be4976ff888f76b4809ebc2e811f"
|
||||
integrity sha1-i7Ppx9Rjvkl2/4iPdrSAnrwugR8=
|
||||
resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.8.tgz#8bb3e9c7d463be4976ff888f76b4809ebc2e811f"
|
||||
integrity sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==
|
||||
dependencies:
|
||||
prr "~1.0.1"
|
||||
|
||||
@ -7316,7 +7316,7 @@ memoize-one@^5.0.0:
|
||||
|
||||
memory-fs@^0.3.0:
|
||||
version "0.3.0"
|
||||
resolved "http://192.168.26.29:7001/memory-fs/download/memory-fs-0.3.0.tgz#7bcc6b629e3a43e871d7e29aca6ae8a7f15cbb20"
|
||||
resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.3.0.tgz#7bcc6b629e3a43e871d7e29aca6ae8a7f15cbb20"
|
||||
integrity sha1-e8xrYp46Q+hx1+Kaymrop/FcuyA=
|
||||
dependencies:
|
||||
errno "^0.1.3"
|
||||
@ -8546,7 +8546,7 @@ protocols@^1.1.0, protocols@^1.4.0:
|
||||
|
||||
prr@~1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "http://192.168.26.29:7001/prr/download/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476"
|
||||
resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476"
|
||||
integrity sha1-0/wRS6BplaRexok/SEzrHXj19HY=
|
||||
|
||||
psl@^1.1.28, psl@^1.1.33:
|
||||
@ -9056,7 +9056,7 @@ resolve-cwd@^3.0.0:
|
||||
|
||||
resolve-from@2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "http://192.168.26.29:7001/resolve-from/download/resolve-from-2.0.0.tgz#9480ab20e94ffa1d9e80a804c7ea147611966b57"
|
||||
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-2.0.0.tgz#9480ab20e94ffa1d9e80a804c7ea147611966b57"
|
||||
integrity sha1-lICrIOlP+h2egKgEx+oUdhGWa1c=
|
||||
|
||||
resolve-from@^4.0.0:
|
||||
@ -9690,8 +9690,8 @@ table@^6.0.9:
|
||||
|
||||
tapable@^0.2.3:
|
||||
version "0.2.9"
|
||||
resolved "http://192.168.26.29:7001/tapable/download/tapable-0.2.9.tgz#af2d8bbc9b04f74ee17af2b4d9048f807acd18a8"
|
||||
integrity sha1-ry2LvJsE907hevK02QSPgHrNGKg=
|
||||
resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.9.tgz#af2d8bbc9b04f74ee17af2b4d9048f807acd18a8"
|
||||
integrity sha512-2wsvQ+4GwBvLPLWsNfLCDYGsW6xb7aeC6utq2Qh0PFwgEy7K7dsma9Jsmb2zSQj7GvYAyUGSntLtsv++GmgL1A==
|
||||
|
||||
tar@^4.4.12:
|
||||
version "4.4.19"
|
||||
@ -9744,8 +9744,8 @@ terminal-link@^2.0.0:
|
||||
|
||||
tern@^0.24.3:
|
||||
version "0.24.3"
|
||||
resolved "http://192.168.26.29:7001/tern/download/tern-0.24.3.tgz#da0d9118490c15af4b1c94553d5f0fafc77a0977"
|
||||
integrity sha1-2g2RGEkMFa9LHJRVPV8Pr8d6CXc=
|
||||
resolved "https://registry.yarnpkg.com/tern/-/tern-0.24.3.tgz#da0d9118490c15af4b1c94553d5f0fafc77a0977"
|
||||
integrity sha512-Z8uvtdWIlFn1GWy0HW5FhZ8VDryZwoJUdnjZU25C7/PBOltLIn1uv+WF3rVq6S1761YbsmbZYRP/l0ZJBCkvrw==
|
||||
dependencies:
|
||||
acorn "^6.0.0"
|
||||
acorn-loose "^6.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user