├── src ├── editor │ ├── favicon.png │ ├── fontawesome-free │ │ └── webfonts │ │ │ ├── fa-brands-400.eot │ │ │ ├── fa-brands-400.ttf │ │ │ ├── fa-brands-400.woff │ │ │ ├── fa-regular-400.eot │ │ │ ├── fa-regular-400.ttf │ │ │ ├── fa-solid-900.eot │ │ │ ├── fa-solid-900.ttf │ │ │ ├── fa-solid-900.woff │ │ │ ├── fa-solid-900.woff2 │ │ │ ├── fa-brands-400.woff2 │ │ │ ├── fa-regular-400.woff │ │ │ └── fa-regular-400.woff2 │ ├── icons │ │ ├── index.jsx │ │ ├── h5-preview.svg │ │ └── pc-preview.svg │ └── index.html ├── template │ ├── qapp-ui-custom-widget │ │ ├── .quickapp.preview.json │ │ ├── src │ │ │ ├── components │ │ │ │ ├── README.md │ │ │ │ └── qui-flow │ │ │ │ │ └── index.ux │ │ │ ├── logo.png │ │ │ ├── h5Components │ │ │ │ ├── README.md │ │ │ │ ├── qui-flow │ │ │ │ │ └── renderer.js │ │ │ │ ├── preview.js │ │ │ │ └── template.html │ │ │ ├── app.ux │ │ │ └── pages │ │ │ │ └── demo │ │ │ │ └── index.ux │ │ ├── web │ │ │ ├── plugin.umd.js.LICENSE.txt │ │ │ └── renderer.umd.js.LICENSE.txt │ │ ├── babel.config.js │ │ ├── .gitignore │ │ ├── .prettierrc.js │ │ ├── sign │ │ │ └── debug │ │ │ │ └── certificate.pem │ │ ├── .eslintrc.json │ │ ├── quickapp.config.js │ │ └── commitlint.config.js │ ├── quick-custom-widget-template │ │ ├── .quickapp.preview.json │ │ ├── src │ │ │ ├── components │ │ │ │ └── README.md │ │ │ ├── logo.png │ │ │ ├── h5Components │ │ │ │ ├── README.md │ │ │ │ ├── info-card │ │ │ │ │ └── renderer.js │ │ │ │ ├── preview.js │ │ │ │ └── template.html │ │ │ ├── app.ux │ │ │ └── pages │ │ │ │ └── demo │ │ │ │ └── index.ux │ │ ├── web │ │ │ ├── plugin.umd.js.LICENSE.txt │ │ │ ├── renderer.umd.js.LICENSE.txt │ │ │ └── renderer.css │ │ ├── babel.config.js │ │ ├── .gitignore │ │ ├── .prettierrc.js │ │ ├── sign │ │ │ └── debug │ │ │ │ └── certificate.pem │ │ ├── .eslintrc.json │ │ ├── quickapp.config.js │ │ └── commitlint.config.js │ ├── react-widget-dev │ │ ├── editor │ │ │ ├── favicon.png │ │ │ ├── fontawesome-free │ │ │ │ └── webfonts │ │ │ │ │ ├── fa-brands-400.eot │ │ │ │ │ ├── fa-brands-400.ttf │ │ │ │ │ ├── fa-solid-900.eot │ │ │ │ │ ├── fa-solid-900.ttf │ │ │ │ │ ├── fa-solid-900.woff │ │ │ │ │ ├── fa-brands-400.woff │ │ │ │ │ ├── fa-brands-400.woff2 │ │ │ │ │ ├── fa-regular-400.eot │ │ │ │ │ ├── fa-regular-400.ttf │ │ │ │ │ ├── fa-regular-400.woff │ │ │ │ │ ├── fa-solid-900.woff2 │ │ │ │ │ └── fa-regular-400.woff2 │ │ │ └── index.html │ │ ├── .npmrc │ │ ├── stylelint.config.js │ │ ├── src │ │ │ ├── preview.jsx │ │ │ ├── index.jsx │ │ │ ├── plugin.jsx │ │ │ ├── plugins │ │ │ │ └── infoCardPlugin.jsx │ │ │ └── style.scss │ │ ├── .gitignore │ │ ├── index.html │ │ ├── webpack │ │ │ ├── preview.js │ │ │ ├── dev.js │ │ │ └── prod.js │ │ └── tsconfig.json │ ├── uchart-custom-widget │ │ ├── src │ │ │ ├── pages │ │ │ │ └── demo │ │ │ │ │ ├── logo.png │ │ │ │ │ └── index.vue │ │ │ ├── main.ts │ │ │ ├── App.vue │ │ │ ├── h5components │ │ │ │ ├── uni-pie-chart │ │ │ │ │ └── renderer.ts │ │ │ │ ├── uni-area-chart │ │ │ │ │ └── renderer.ts │ │ │ │ ├── uni-line-chart │ │ │ │ │ └── renderer.ts │ │ │ │ ├── uni-ring-chart │ │ │ │ │ └── renderer.ts │ │ │ │ ├── uni-mount-chart │ │ │ │ │ └── renderer.ts │ │ │ │ ├── uni-column-chart │ │ │ │ │ └── renderer.ts │ │ │ │ └── preview.js │ │ │ └── pages.json │ │ ├── type.d.ts │ │ ├── .gitignore │ │ ├── .prettierrc.js │ │ ├── preview │ │ │ ├── uniPiePlugin.umd.js.LICENSE.txt │ │ │ ├── uniAreaPlugin.umd.js.LICENSE.txt │ │ │ ├── uniLinePlugin.umd.js.LICENSE.txt │ │ │ ├── uniMountPlugin.umd.js.LICENSE.txt │ │ │ ├── uniRingPlugin.umd.js.LICENSE.txt │ │ │ └── uniColumnPlugin.umd.js.LICENSE.txt │ │ ├── index.html │ │ └── commitlint.config.js │ ├── uview-custom-widget │ │ ├── src │ │ │ ├── pages │ │ │ │ └── demo │ │ │ │ │ ├── logo.png │ │ │ │ │ └── index.vue │ │ │ ├── App.vue │ │ │ ├── main.ts │ │ │ └── pages.json │ │ ├── type.d.ts │ │ ├── build │ │ │ ├── linkDebug.js │ │ │ └── renderer.ts │ │ ├── .gitignore │ │ ├── .prettierrc.js │ │ ├── index.html │ │ ├── commitlint.config.js │ │ └── web │ │ │ └── plugin │ │ │ └── style.css │ ├── vue2-aipage-custom-widget │ │ ├── .npmrc │ │ ├── src │ │ │ ├── preview.js │ │ │ ├── vue-widget │ │ │ │ └── index.js │ │ │ ├── react-widget │ │ │ │ ├── index.js │ │ │ │ └── style.scss │ │ │ └── template.html │ │ ├── .editorconfig │ │ ├── dist │ │ │ ├── infoCard.umd.js.LICENSE.txt │ │ │ ├── infoCardPlugin.umd.js.LICENSE.txt │ │ │ ├── reactInfoCard.umd.js.LICENSE.txt │ │ │ ├── reactInfoCardPlugin.umd.js.LICENSE.txt │ │ │ ├── reactInfoCard.css │ │ │ └── infoCard.css │ │ ├── .gitignore │ │ ├── .prettierrc.js │ │ └── commitlint.config.js │ ├── lottery-custom-widget │ │ ├── src │ │ │ ├── pages │ │ │ │ └── demo │ │ │ │ │ ├── logo.png │ │ │ │ │ └── index.vue │ │ │ ├── main.ts │ │ │ ├── App.vue │ │ │ └── pages.json │ │ ├── type.d.ts │ │ ├── build │ │ │ ├── linkDebug.js │ │ │ └── renderer.ts │ │ ├── .gitignore │ │ ├── .prettierrc.js │ │ ├── index.html │ │ ├── commitlint.config.js │ │ └── web │ │ │ └── plugin │ │ │ └── style.css │ ├── react-custom-widget-template │ │ ├── .npmrc │ │ ├── src │ │ │ ├── widget │ │ │ │ ├── test.jpeg │ │ │ │ ├── plugin │ │ │ │ │ └── info-card-plugin.jsx │ │ │ │ ├── style.scss │ │ │ │ └── info-card.jsx │ │ │ ├── preview.js │ │ │ ├── index.js │ │ │ └── assets │ │ │ │ └── css │ │ │ │ └── mixin.scss │ │ ├── .editorconfig │ │ ├── .prettierrc.js │ │ ├── public │ │ │ └── template.html │ │ ├── .gitignore │ │ └── commitlint.config.js │ ├── vue2-amis-custom-widget │ │ ├── .npmrc │ │ ├── .editorconfig │ │ ├── src │ │ │ ├── preview.js │ │ │ ├── index.js │ │ │ └── assets │ │ │ │ └── css │ │ │ │ └── mixin.scss │ │ ├── dist │ │ │ ├── infoCard.umd.js.LICENSE.txt │ │ │ ├── infoCardPlugin.umd.js.LICENSE.txt │ │ │ └── infoCard.css │ │ ├── public │ │ │ └── template.html │ │ ├── .prettierrc.js │ │ ├── .gitignore │ │ └── commitlint.config.js │ ├── multiple-custom-widget-template │ │ ├── .npmrc │ │ ├── .editorconfig │ │ ├── dist │ │ │ ├── infoCard.umd.js.LICENSE.txt │ │ │ ├── helloJquery.umd.js.LICENSE.txt │ │ │ ├── infoCardPlugin.umd.js.LICENSE.txt │ │ │ ├── reactInfoCard.umd.js.LICENSE.txt │ │ │ ├── helloJqueryPlugin.umd.js.LICENSE.txt │ │ │ ├── reactInfoCardPlugin.umd.js.LICENSE.txt │ │ │ ├── reactInfoCard.css │ │ │ └── infoCard.css │ │ ├── src │ │ │ ├── react-widget │ │ │ │ ├── index.js │ │ │ │ ├── plugin │ │ │ │ │ └── info-card-plugin.jsx │ │ │ │ └── style.scss │ │ │ ├── vue-widget │ │ │ │ ├── index.js │ │ │ │ └── plugin │ │ │ │ │ └── info-card-plugin.jsx │ │ │ ├── preview.js │ │ │ └── hello-jquery │ │ │ │ ├── hello-jquery.jsx │ │ │ │ └── plugin │ │ │ │ └── hello-jquery-plugin.jsx │ │ ├── .gitignore │ │ ├── public │ │ │ └── template.html │ │ ├── .prettierrc.js │ │ └── commitlint.config.js │ ├── vue-container-custom-widget-template │ │ ├── .npmrc │ │ ├── .editorconfig │ │ ├── src │ │ │ ├── preview.js │ │ │ ├── index.js │ │ │ └── assets │ │ │ │ └── css │ │ │ │ └── mixin.scss │ │ ├── dist │ │ │ ├── infoCard.umd.js.LICENSE.txt │ │ │ └── infoCardPlugin.umd.js.LICENSE.txt │ │ ├── public │ │ │ └── template.html │ │ ├── .prettierrc.js │ │ ├── .gitignore │ │ └── commitlint.config.js │ ├── vue3-aipage-custom-widget-template │ │ ├── .npmrc │ │ ├── src │ │ │ ├── preview.js │ │ │ ├── vue-widget │ │ │ │ └── index.js │ │ │ ├── react-widget │ │ │ │ ├── index.js │ │ │ │ └── style.scss │ │ │ └── template.html │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── .prettierrc.js │ │ ├── dist │ │ │ ├── infoCardPlugin.umd.js.LICENSE.txt │ │ │ └── reactInfoCardPlugin.umd.js.LICENSE.txt │ │ └── commitlint.config.js │ ├── uni-custom-widget-template │ │ ├── src │ │ │ ├── pages │ │ │ │ └── demo │ │ │ │ │ ├── logo.png │ │ │ │ │ └── index.vue │ │ │ ├── main.ts │ │ │ ├── App.vue │ │ │ └── pages.json │ │ ├── type.d.ts │ │ ├── build │ │ │ ├── linkDebug.js │ │ │ └── renderer.ts │ │ ├── .gitignore │ │ ├── .prettierrc.js │ │ ├── index.html │ │ ├── commitlint.config.js │ │ └── web │ │ │ └── plugin │ │ │ └── style.css │ ├── uni-h5-custom-widget-template │ │ ├── src │ │ │ ├── pages │ │ │ │ └── demo │ │ │ │ │ ├── logo.png │ │ │ │ │ └── index.vue │ │ │ ├── h5Components │ │ │ │ ├── README.md │ │ │ │ ├── info-card │ │ │ │ │ └── renderer.js │ │ │ │ └── preview.js │ │ │ ├── main.ts │ │ │ ├── components │ │ │ │ └── README.md │ │ │ ├── App.vue │ │ │ └── pages.json │ │ ├── type.d.ts │ │ ├── build │ │ │ ├── linkDebug.js │ │ │ └── renderer.ts │ │ ├── preview │ │ │ ├── plugin.umd.js.LICENSE.txt │ │ │ ├── renderer.umd.js.LICENSE.txt │ │ │ └── renderer.css │ │ ├── .gitignore │ │ ├── .prettierrc.js │ │ ├── index.html │ │ └── commitlint.config.js │ ├── react-ts-custom-widget-template │ │ ├── .npmrc │ │ ├── .editorconfig │ │ ├── src │ │ │ ├── index.ts │ │ │ ├── preview.tsx │ │ │ ├── assets │ │ │ │ └── css │ │ │ │ │ └── mixin.scss │ │ │ └── widget │ │ │ │ ├── style.scss │ │ │ │ └── plugin │ │ │ │ └── info-card-plugin.tsx │ │ ├── .prettierrc.js │ │ ├── public │ │ │ └── template.html │ │ ├── .gitignore │ │ └── commitlint.config.js │ ├── vue3-amis-custom-widget │ │ ├── type.d.ts │ │ ├── .editorconfig │ │ ├── dist │ │ │ ├── uniAreaPlugin.umd.js.LICENSE.txt │ │ │ ├── uniAreaRenderer.umd.js.LICENSE.txt │ │ │ └── uniAreaRenderer.css │ │ ├── .gitignore │ │ ├── src │ │ │ ├── uni-area-chart │ │ │ │ └── renderer.ts │ │ │ └── preview.js │ │ └── commitlint.config.js │ └── container-custom-widget-template │ │ ├── .editorconfig │ │ ├── src │ │ ├── preview.js │ │ ├── index.js │ │ ├── assets │ │ │ └── css │ │ │ │ └── mixin.scss │ │ └── widget │ │ │ ├── style.scss │ │ │ └── info-card.jsx │ │ ├── dist │ │ ├── reactInfoCardContainer.umd.js.LICENSE.txt │ │ ├── reactInfoCardContainerPlugin.umd.js.LICENSE.txt │ │ └── reactInfoCardContainer.css │ │ ├── .prettierrc.js │ │ ├── public │ │ └── template.html │ │ ├── .gitignore │ │ └── commitlint.config.js ├── aipage │ ├── fontawesome-free │ │ └── webfonts │ │ │ ├── fa-brands-400.eot │ │ │ ├── fa-brands-400.ttf │ │ │ ├── fa-brands-400.woff │ │ │ ├── fa-regular-400.eot │ │ │ ├── fa-regular-400.ttf │ │ │ ├── fa-solid-900.eot │ │ │ ├── fa-solid-900.ttf │ │ │ ├── fa-solid-900.woff │ │ │ ├── fa-solid-900.woff2 │ │ │ ├── fa-brands-400.woff2 │ │ │ ├── fa-regular-400.woff │ │ │ └── fa-regular-400.woff2 │ ├── style.scss │ ├── custom-form-item │ │ └── index.jsx │ ├── helper.js │ ├── header │ │ └── index.jsx │ └── apEditor.jsx ├── utils │ ├── amisParams.js │ └── amisConfigInit.js ├── config │ └── index.js ├── initData │ └── defaultTemplate.html ├── module │ └── inspect.js └── plugins │ └── AmisEditorDebugPlugin.js ├── bin └── amis.js ├── test └── demo.js ├── .editorconfig ├── .gitignore ├── .prettierrc.js └── commitlint.config.js /src/editor/favicon.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/.quickapp.preview.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/.quickapp.preview.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /bin/amis.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../src/module/index'); 3 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/src/components/README.md: -------------------------------------------------------------------------------- 1 | # 快应用自定义组件 2 | > quickapp自定义组件统一存放在src/components/目录中。 -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/src/components/README.md: -------------------------------------------------------------------------------- 1 | # 快应用自定义组件 2 | > quickapp自定义组件统一存放在src/components/目录中。 -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/src/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/qapp-ui-custom-widget/src/logo.png -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/favicon.png -------------------------------------------------------------------------------- /src/template/react-widget-dev/.npmrc: -------------------------------------------------------------------------------- 1 | # 发布自定义组件(npm publish)时的npm仓库,可以配置为私服地址(比如:http://registry.npm.baidu-int.com/)。 2 | registry=https://registry.npmjs.org/ 3 | -------------------------------------------------------------------------------- /src/aipage/fontawesome-free/webfonts/fa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/aipage/fontawesome-free/webfonts/fa-brands-400.eot -------------------------------------------------------------------------------- /src/aipage/fontawesome-free/webfonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/aipage/fontawesome-free/webfonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /src/aipage/fontawesome-free/webfonts/fa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/aipage/fontawesome-free/webfonts/fa-brands-400.woff -------------------------------------------------------------------------------- /src/aipage/fontawesome-free/webfonts/fa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/aipage/fontawesome-free/webfonts/fa-regular-400.eot -------------------------------------------------------------------------------- /src/aipage/fontawesome-free/webfonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/aipage/fontawesome-free/webfonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /src/aipage/fontawesome-free/webfonts/fa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/aipage/fontawesome-free/webfonts/fa-solid-900.eot -------------------------------------------------------------------------------- /src/aipage/fontawesome-free/webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/aipage/fontawesome-free/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /src/aipage/fontawesome-free/webfonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/aipage/fontawesome-free/webfonts/fa-solid-900.woff -------------------------------------------------------------------------------- /src/aipage/fontawesome-free/webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/aipage/fontawesome-free/webfonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /src/editor/fontawesome-free/webfonts/fa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/editor/fontawesome-free/webfonts/fa-brands-400.eot -------------------------------------------------------------------------------- /src/editor/fontawesome-free/webfonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/editor/fontawesome-free/webfonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /src/editor/fontawesome-free/webfonts/fa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/editor/fontawesome-free/webfonts/fa-brands-400.woff -------------------------------------------------------------------------------- /src/editor/fontawesome-free/webfonts/fa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/editor/fontawesome-free/webfonts/fa-regular-400.eot -------------------------------------------------------------------------------- /src/editor/fontawesome-free/webfonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/editor/fontawesome-free/webfonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /src/editor/fontawesome-free/webfonts/fa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/editor/fontawesome-free/webfonts/fa-solid-900.eot -------------------------------------------------------------------------------- /src/editor/fontawesome-free/webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/editor/fontawesome-free/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /src/editor/fontawesome-free/webfonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/editor/fontawesome-free/webfonts/fa-solid-900.woff -------------------------------------------------------------------------------- /src/editor/fontawesome-free/webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/editor/fontawesome-free/webfonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/src/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/quick-custom-widget-template/src/logo.png -------------------------------------------------------------------------------- /src/aipage/fontawesome-free/webfonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/aipage/fontawesome-free/webfonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /src/aipage/fontawesome-free/webfonts/fa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/aipage/fontawesome-free/webfonts/fa-regular-400.woff -------------------------------------------------------------------------------- /src/aipage/fontawesome-free/webfonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/aipage/fontawesome-free/webfonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /src/editor/fontawesome-free/webfonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/editor/fontawesome-free/webfonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /src/editor/fontawesome-free/webfonts/fa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/editor/fontawesome-free/webfonts/fa-regular-400.woff -------------------------------------------------------------------------------- /src/editor/fontawesome-free/webfonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/editor/fontawesome-free/webfonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/src/pages/demo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/uchart-custom-widget/src/pages/demo/logo.png -------------------------------------------------------------------------------- /src/template/uview-custom-widget/src/pages/demo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/uview-custom-widget/src/pages/demo/logo.png -------------------------------------------------------------------------------- /src/template/vue2-aipage-custom-widget/.npmrc: -------------------------------------------------------------------------------- 1 | # 发布自定义组件(npm publish)时的npm仓库,可以配置为私服地址(比如:http://registry.npm.baidu-int.com/)。 2 | registry=https://registry.npmjs.org/ 3 | -------------------------------------------------------------------------------- /src/template/lottery-custom-widget/src/pages/demo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/lottery-custom-widget/src/pages/demo/logo.png -------------------------------------------------------------------------------- /src/template/react-custom-widget-template/.npmrc: -------------------------------------------------------------------------------- 1 | # 发布自定义组件(npm publish)时的npm仓库,可以配置为私服地址(比如:http://registry.npm.baidu-int.com/)。 2 | #registry=https://registry.npmmirror.com/ 3 | -------------------------------------------------------------------------------- /src/template/vue2-amis-custom-widget/.npmrc: -------------------------------------------------------------------------------- 1 | # 发布自定义组件(npm publish)时的npm仓库,可以配置为私服地址(比如:http://registry.npm.baidu-int.com/)。 2 | # registry=https://registry.npmmirror.com/ 3 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/.npmrc: -------------------------------------------------------------------------------- 1 | # 发布自定义组件(npm publish)时的npm仓库,可以配置为私服地址(比如:http://registry.npm.baidu-int.com/)。 2 | # registry=https://registry.npmmirror.com/ 3 | -------------------------------------------------------------------------------- /src/template/react-custom-widget-template/src/widget/test.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-custom-widget-template/src/widget/test.jpeg -------------------------------------------------------------------------------- /src/template/vue-container-custom-widget-template/.npmrc: -------------------------------------------------------------------------------- 1 | # 发布自定义组件(npm publish)时的npm仓库,可以配置为私服地址(比如:http://registry.npm.baidu-int.com/)。 2 | # registry=https://registry.npmjs.org/ 3 | -------------------------------------------------------------------------------- /src/template/vue3-aipage-custom-widget-template/.npmrc: -------------------------------------------------------------------------------- 1 | # 发布自定义组件(npm publish)时的npm仓库,可以配置为私服地址(比如:http://registry.npm.baidu-int.com/)。 2 | registry=https://registry.npmjs.org/ 3 | -------------------------------------------------------------------------------- /src/template/uni-custom-widget-template/src/pages/demo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/uni-custom-widget-template/src/pages/demo/logo.png -------------------------------------------------------------------------------- /test/demo.js: -------------------------------------------------------------------------------- 1 | const {amisInit, amisConfigInit, inspect, dev, preview, debug, build2lib, build2esm, amisInitByCopy} = require('../src/module/main'); 2 | // inspect('dev'); 3 | dev(); 4 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/src/pages/demo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/uni-h5-custom-widget-template/src/pages/demo/logo.png -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/src/h5Components/README.md: -------------------------------------------------------------------------------- 1 | # H5自定义组件 2 | - H5自定义组件统一存放在src/h5Components/目录中,每个快应用自定义组件需要在这里开发一个对应的H5自定义组件,用于在爱速搭页面编辑器中使用和预览。 3 | - 发布快应用程序时,会自动将H5自定义组件替换成对应的快应用自定义组件。 -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/src/h5Components/README.md: -------------------------------------------------------------------------------- 1 | # H5自定义组件 2 | - H5自定义组件统一存放在src/h5Components/目录中,每个快应用自定义组件需要在这里开发一个对应的H5自定义组件,用于在爱速搭页面编辑器中使用和预览。 3 | - 发布快应用程序时,会自动将H5自定义组件替换成对应的快应用自定义组件。 -------------------------------------------------------------------------------- /src/template/react-ts-custom-widget-template/.npmrc: -------------------------------------------------------------------------------- 1 | # 发布自定义组件(npm publish)时的npm仓库,可以配置为私服地址(比如:http://registry.npm.baidu-int.com/)。 2 | registry=http://registry.npm.baidu-int.com/ #https://registry.npmjs.org/ 3 | -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-brands-400.eot -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-solid-900.eot -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-solid-900.woff -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/src/h5Components/README.md: -------------------------------------------------------------------------------- 1 | # H5自定义组件 2 | - H5自定义组件统一存放在src/h5Components/目录中,每个跨端自定义组件需要在这里开发一个对应的H5自定义组件,用于在爱速搭页面编辑器中使用和预览。 3 | - 小程序应用程序发布或导出源码时,会自动将H5自定义组件替换成对应的快应用自定义组件。 -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-brands-400.woff -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-regular-400.eot -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-regular-400.woff -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aisuda/amis-widget-cli/HEAD/src/template/react-widget-dev/editor/fontawesome-free/webfonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = false 10 | max_line_length = 80 11 | -------------------------------------------------------------------------------- /src/template/react-widget-dev/stylelint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '@ecomfe/stylelint-config', 3 | rules: { 4 | 'indentation': 2, 5 | 'selector-pseudo-element-colon-notation': 'single' 6 | } 7 | }; 8 | -------------------------------------------------------------------------------- /src/template/react-widget-dev/src/preview.jsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import InfoCard from './widgets/infoCard'; 4 | 5 | ReactDOM.render(, document.getElementById('root')); 6 | -------------------------------------------------------------------------------- /src/template/uview-custom-widget/type.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | const component: any; 3 | export default component; 4 | } 5 | 6 | declare module '*.svg' { 7 | const content: any; 8 | export default content; 9 | } 10 | -------------------------------------------------------------------------------- /src/template/lottery-custom-widget/src/main.ts: -------------------------------------------------------------------------------- 1 | import { createSSRApp } from 'vue'; 2 | import App from './App.vue'; 3 | 4 | export function createApp() { 5 | const app = createSSRApp(App); 6 | return { 7 | app, 8 | }; 9 | } 10 | -------------------------------------------------------------------------------- /src/template/lottery-custom-widget/type.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | const component: any; 3 | export default component; 4 | } 5 | 6 | declare module '*.svg' { 7 | const content: any; 8 | export default content; 9 | } 10 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/src/main.ts: -------------------------------------------------------------------------------- 1 | import { createSSRApp } from 'vue'; 2 | import App from './App.vue'; 3 | 4 | export function createApp() { 5 | const app = createSSRApp(App); 6 | return { 7 | app, 8 | }; 9 | } 10 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/type.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | const component: any; 3 | export default component; 4 | } 5 | 6 | declare module '*.svg' { 7 | const content: any; 8 | export default content; 9 | } 10 | -------------------------------------------------------------------------------- /src/template/vue3-amis-custom-widget/type.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | const component: any; 3 | export default component; 4 | } 5 | 6 | declare module '*.svg' { 7 | const content: any; 8 | export default content; 9 | } 10 | -------------------------------------------------------------------------------- /src/template/react-custom-widget-template/src/preview.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import InfoCard from './widget/info-card'; 4 | 5 | ReactDOM.render(, document.getElementById('root')); 6 | -------------------------------------------------------------------------------- /src/template/uni-custom-widget-template/src/main.ts: -------------------------------------------------------------------------------- 1 | import { createSSRApp } from 'vue'; 2 | import App from './App.vue'; 3 | 4 | export function createApp() { 5 | const app = createSSRApp(App); 6 | return { 7 | app, 8 | }; 9 | } 10 | -------------------------------------------------------------------------------- /src/template/uni-custom-widget-template/type.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | const component: any; 3 | export default component; 4 | } 5 | 6 | declare module '*.svg' { 7 | const content: any; 8 | export default content; 9 | } 10 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/type.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | const component: any; 3 | export default component; 4 | } 5 | 6 | declare module '*.svg' { 7 | const content: any; 8 | export default content; 9 | } 10 | -------------------------------------------------------------------------------- /src/template/vue2-aipage-custom-widget/src/preview.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import InfoCard from './react-widget/info-card'; 4 | 5 | ReactDOM.render(, document.getElementById('root')); 6 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/src/main.ts: -------------------------------------------------------------------------------- 1 | import { createSSRApp } from 'vue'; 2 | import App from './App.vue'; 3 | 4 | export function createApp() { 5 | const app = createSSRApp(App); 6 | return { 7 | app, 8 | }; 9 | } 10 | -------------------------------------------------------------------------------- /src/template/vue2-aipage-custom-widget/src/vue-widget/index.js: -------------------------------------------------------------------------------- 1 | import { registerRenderer } from 'aipage-widget'; 2 | import InfoCard from './info-card'; 3 | 4 | registerRenderer(InfoCard, { 5 | type: 'vue-info-card', 6 | framework: 'vue', 7 | }); 8 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/src/components/README.md: -------------------------------------------------------------------------------- 1 | # 跨端自定义组件 2 | > 跨端自定义组件使用uniapp时限,源码统一存放在src/components/目录中。 3 | 4 | 特别说明: 使用uniapp开发自定义组件请遵循[easycom组件规范](https://uniapp.dcloud.net.cn/component/#easycom%E7%BB%84%E4%BB%B6%E8%A7%84%E8%8C%83)。 -------------------------------------------------------------------------------- /src/template/vue2-aipage-custom-widget/src/react-widget/index.js: -------------------------------------------------------------------------------- 1 | import InfoCard from './info-card'; 2 | import { registerRenderer } from 'aipage-widget'; 3 | 4 | registerRenderer(InfoCard, { 5 | type: 'react-info-card', 6 | framework: 'react', 7 | }); 8 | -------------------------------------------------------------------------------- /src/template/vue3-aipage-custom-widget-template/src/preview.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import InfoCard from './react-widget/info-card'; 4 | 5 | ReactDOM.render(, document.getElementById('root')); 6 | -------------------------------------------------------------------------------- /src/utils/amisParams.js: -------------------------------------------------------------------------------- 1 | let consoleTag = '[amis]'; // 输出标记 2 | 3 | function setConsoleTag(newText) { 4 | consoleTag = newText; 5 | } 6 | 7 | module.exports = { 8 | get consoleTag() { 9 | return consoleTag; 10 | }, 11 | setConsoleTag 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/uview-custom-widget/build/linkDebug.js: -------------------------------------------------------------------------------- 1 | /** 2 | * [linkDebug]本地调试 uniapp 自定义组件 3 | * 备注: 控制台生成的链接添加到爱速搭临时外链中(应用设置/临时外链) 4 | */ 5 | import '../web/renderer/style.css'; 6 | import '../web/renderer/renderer.umd.js'; 7 | import '../web/plugin/plugin.umd.js'; 8 | -------------------------------------------------------------------------------- /src/template/vue2-aipage-custom-widget/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | max_line_length = 80 11 | -------------------------------------------------------------------------------- /src/template/vue2-amis-custom-widget/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | max_line_length = 80 11 | -------------------------------------------------------------------------------- /src/template/vue2-amis-custom-widget/src/preview.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue'; 2 | import InfoCard from './widget/info-card'; 3 | 4 | /* 引入公共的静态资源 */ 5 | import '$public/css/base.css'; 6 | 7 | new Vue({ 8 | render: (h) => h(InfoCard), 9 | }).$mount('#root'); 10 | -------------------------------------------------------------------------------- /src/template/vue3-aipage-custom-widget-template/src/vue-widget/index.js: -------------------------------------------------------------------------------- 1 | import { registerRenderer } from 'vue3-aipage-widget'; 2 | import InfoCard from './info-card'; 3 | 4 | registerRenderer(InfoCard, { 5 | type: 'vue-info-card', 6 | framework: 'vue', 7 | }); 8 | -------------------------------------------------------------------------------- /src/template/vue3-amis-custom-widget/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | max_line_length = 80 11 | -------------------------------------------------------------------------------- /src/template/container-custom-widget-template/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | max_line_length = 80 11 | -------------------------------------------------------------------------------- /src/template/lottery-custom-widget/build/linkDebug.js: -------------------------------------------------------------------------------- 1 | /** 2 | * [linkDebug]本地调试 uniapp 自定义组件 3 | * 备注: 控制台生成的链接添加到爱速搭临时外链中(应用设置/临时外链) 4 | */ 5 | import '../web/renderer/style.css'; 6 | import '../web/renderer/renderer.umd.js'; 7 | import '../web/plugin/plugin.umd.js'; 8 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | max_line_length = 80 11 | -------------------------------------------------------------------------------- /src/template/react-custom-widget-template/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | max_line_length = 80 11 | -------------------------------------------------------------------------------- /src/template/react-ts-custom-widget-template/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | max_line_length = 80 11 | -------------------------------------------------------------------------------- /src/template/vue3-aipage-custom-widget-template/src/react-widget/index.js: -------------------------------------------------------------------------------- 1 | import InfoCard from './info-card'; 2 | import { registerRenderer } from 'vue3-aipage-widget'; 3 | 4 | registerRenderer(InfoCard, { 5 | type: 'react-info-card', 6 | framework: 'react', 7 | }); 8 | -------------------------------------------------------------------------------- /src/template/uni-custom-widget-template/build/linkDebug.js: -------------------------------------------------------------------------------- 1 | /** 2 | * [linkDebug]本地调试 uniapp 自定义组件 3 | * 备注: 控制台生成的链接添加到爱速搭临时外链中(应用设置/临时外链) 4 | */ 5 | import '../web/renderer/style.css'; 6 | import '../web/renderer/renderer.umd.js'; 7 | import '../web/plugin/plugin.umd.js'; 8 | -------------------------------------------------------------------------------- /src/template/vue-container-custom-widget-template/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | max_line_length = 80 11 | -------------------------------------------------------------------------------- /src/template/vue3-aipage-custom-widget-template/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | max_line_length = 80 11 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/web/plugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * qapp-ui-custom-widget v1.0.0 3 | * author: wibetter 4 | * build tool: AKFun 5 | * build time: Sun Aug 21 2022 01:09:00 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/web/renderer.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * qapp-ui-custom-widget v1.0.0 3 | * author: wibetter 4 | * build tool: AKFun 5 | * build time: Sun Aug 21 2022 01:09:00 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/build/linkDebug.js: -------------------------------------------------------------------------------- 1 | /** 2 | * [linkDebug]本地调试 uniap编译成的 H5自定义组件 3 | * 备注: 控制台生成的链接添加到爱速搭临时外链中(应用设置/临时外链) 4 | */ 5 | import '../web/renderer/style.css'; 6 | import '../web/renderer/renderer.umd.js'; 7 | import '../web/plugin/plugin.umd.js'; 8 | -------------------------------------------------------------------------------- /src/template/vue-container-custom-widget-template/src/preview.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue'; 2 | import InfoCard from './widget/info-card'; 3 | 4 | /* 引入公共的静态资源 */ 5 | import '$public/css/base.css'; 6 | 7 | new Vue({ 8 | render: (h) => h(InfoCard), 9 | }).$mount('#root'); 10 | -------------------------------------------------------------------------------- /src/template/vue2-amis-custom-widget/dist/infoCard.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue2-amis-custom-widget v1.2.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Mon Jun 03 2024 19:27:23 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/vue2-aipage-custom-widget/dist/infoCard.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue2-aipage-custom-widget v1.0.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Mon Jun 03 2024 19:35:06 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/vue2-amis-custom-widget/dist/infoCardPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue2-amis-custom-widget v1.2.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Mon Jun 03 2024 19:27:23 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/aipage/style.scss: -------------------------------------------------------------------------------- 1 | @import 'amis-ui/scss/functions.scss'; 2 | @import 'amis-ui/scss/variables.scss'; 3 | @import 'amis-ui/scss/helper.scss'; 4 | 5 | #root { 6 | display: flex; 7 | flex-direction: column; 8 | height: 100%; 9 | } 10 | .editor-body { 11 | flex: 1; 12 | } 13 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/src/h5Components/qui-flow/renderer.js: -------------------------------------------------------------------------------- 1 | import { registerRenderer } from 'vue3-aipage-widget'; 2 | import FlowCard from './index.vue'; 3 | 4 | registerRenderer(FlowCard, { 5 | type: 'qui-flow-card', 6 | framework: 'vue3', // 使用vue3自定义组件充当爱速搭平台预览模块 7 | }); 8 | -------------------------------------------------------------------------------- /src/template/vue2-aipage-custom-widget/dist/infoCardPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue2-aipage-custom-widget v1.0.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Mon Jun 03 2024 19:35:06 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/vue2-aipage-custom-widget/dist/reactInfoCard.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue2-aipage-custom-widget v1.0.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Mon Jun 03 2024 19:35:06 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/web/plugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * quick-custom-widget-template v1.0.3 3 | * author: wibetter 4 | * build tool: AKFun 5 | * build time: Mon Aug 15 2022 20:12:26 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/web/renderer.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * quick-custom-widget-template v1.0.3 3 | * author: wibetter 4 | * build tool: AKFun 5 | * build time: Mon Aug 15 2022 20:12:26 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/vue2-aipage-custom-widget/dist/reactInfoCardPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue2-aipage-custom-widget v1.0.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Mon Jun 03 2024 19:35:06 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/babel.config.js: -------------------------------------------------------------------------------- 1 | // 构建快应用自定义组件需要 2 | module.exports = function(api) { 3 | api.cache(true); 4 | return { 5 | "presets":["@babel/preset-env"], 6 | "plugins":["@babel/plugin-transform-modules-commonjs"], 7 | "babelrcRoots": [".", "node_modules"] 8 | }; 9 | } -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/src/h5Components/info-card/renderer.js: -------------------------------------------------------------------------------- 1 | import { registerRenderer } from 'vue3-aipage-widget'; 2 | import InfoCard from './info-card'; 3 | 4 | registerRenderer(InfoCard, { 5 | type: 'quick-info-card', 6 | framework: 'vue3', // 使用vue3自定义组件充当爱速搭平台预览模块 7 | }); 8 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/preview/plugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * uni-h5-custom-widget-template v1.3.0 3 | * author: wibetter 4 | * build tool: AKFun 5 | * build time: Mon Jun 03 2024 19:02:47 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/preview/renderer.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * uni-h5-custom-widget-template v1.3.0 3 | * author: wibetter 4 | * build tool: AKFun 5 | * build time: Mon Jun 03 2024 19:02:47 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/vue3-amis-custom-widget/dist/uniAreaPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue3-amis-custom-widget v1.0.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Tue Mar 14 2023 10:23:37 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/vue3-amis-custom-widget/dist/uniAreaRenderer.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue3-amis-custom-widget v1.0.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Tue Mar 14 2023 10:23:37 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/babel.config.js: -------------------------------------------------------------------------------- 1 | // 构建快应用自定义组件需要 2 | module.exports = function(api) { 3 | api.cache(true); 4 | return { 5 | "presets":["@babel/preset-env"], 6 | "plugins":["@babel/plugin-transform-modules-commonjs"], 7 | "babelrcRoots": [".", "node_modules"] 8 | }; 9 | } -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/src/h5Components/info-card/renderer.js: -------------------------------------------------------------------------------- 1 | import { registerRenderer } from 'vue3-aipage-widget'; 2 | import InfoCard from './info-card'; 3 | 4 | registerRenderer(InfoCard, { 5 | type: 'h5-uni-info-card', 6 | framework: 'vue3', // 使用vue3自定义组件充当爱速搭平台预览模块 7 | }); 8 | -------------------------------------------------------------------------------- /src/template/container-custom-widget-template/src/preview.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import InfoCard from './widget/info-card'; 4 | 5 | /* 引入公共的静态资源 */ 6 | import '$public/css/base.css'; 7 | 8 | ReactDOM.render(, document.getElementById('root')); 9 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/dist/infoCard.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * multiple-custom-widget-template v1.0.8 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Tue Mar 12 2024 17:45:14 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/container-custom-widget-template/dist/reactInfoCardContainer.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * container-custom-widget-template v1.0.2 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Thu Jan 18 2024 13:05:11 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/dist/helloJquery.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * multiple-custom-widget-template v1.0.8 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Tue Mar 12 2024 17:45:14 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/dist/infoCardPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * multiple-custom-widget-template v1.0.8 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Tue Mar 12 2024 17:45:14 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/dist/reactInfoCard.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * multiple-custom-widget-template v1.0.8 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Tue Mar 12 2024 17:45:14 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/react-custom-widget-template/src/index.js: -------------------------------------------------------------------------------- 1 | import InfoCard from './widget/info-card'; 2 | import { registerRendererByType } from 'amis-widget'; 3 | 4 | registerRendererByType(InfoCard, { 5 | type: 'react-info-card', 6 | usage: 'renderer', 7 | weight: 99, 8 | framework: 'react', 9 | }); 10 | -------------------------------------------------------------------------------- /src/template/container-custom-widget-template/dist/reactInfoCardContainerPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * container-custom-widget-template v1.0.2 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Thu Jan 18 2024 13:05:11 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/dist/helloJqueryPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * multiple-custom-widget-template v1.0.8 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Tue Mar 12 2024 17:45:14 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/dist/reactInfoCardPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * multiple-custom-widget-template v1.0.8 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Tue Mar 12 2024 17:45:14 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/vue-container-custom-widget-template/dist/infoCard.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue-container-custom-widget-template v1.0.7 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Wed Mar 22 2023 19:22:49 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/vue3-amis-custom-widget/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | package-lock.json 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .hg 10 | .svn 11 | .CVS 12 | .idea 13 | .vscode 14 | .DS_Store 15 | *.suo 16 | *.ntvs* 17 | *.njsproj 18 | *.sln 19 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/src/react-widget/index.js: -------------------------------------------------------------------------------- 1 | import { registerRendererByType } from 'amis-widget'; 2 | import InfoCard from './info-card'; 3 | 4 | registerRendererByType(InfoCard, { 5 | type: 'react-info-card', 6 | usage: 'renderer', 7 | weight: 99, 8 | framework: 'react', 9 | }); 10 | -------------------------------------------------------------------------------- /src/template/react-widget-dev/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | dist/ 4 | package-lock.json 5 | npm-debug.log* 6 | yarn-debug.log* 7 | yarn-error.log* 8 | 9 | # Editor directories and files 10 | .hg 11 | .svn 12 | .CVS 13 | .idea 14 | .vscode 15 | .DS_Store 16 | *.suo 17 | *.ntvs* 18 | *.njsproj 19 | *.sln 20 | -------------------------------------------------------------------------------- /src/template/react-widget-dev/src/index.jsx: -------------------------------------------------------------------------------- 1 | import InfoCard from './widgets/infoCard'; 2 | // @ts-ignore 3 | import { registerRendererByType } from 'amis-widget'; 4 | 5 | registerRendererByType(InfoCard, { 6 | type: 'react-info-card', 7 | usage: 'renderer', 8 | weight: 99, 9 | framework: 'react', 10 | }); 11 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/build/renderer.ts: -------------------------------------------------------------------------------- 1 | import { registerRenderer } from 'vue3-aipage-widget'; 2 | import InfoCard from '../src/components/h5-uni-info-card/h5-uni-info-card.vue'; 3 | 4 | registerRenderer(InfoCard, { 5 | type: 'h5-uni-info-card', 6 | framework: 'vue3', // 使用vue3自定义组件充当爱速搭平台预览模块 7 | }); 8 | -------------------------------------------------------------------------------- /src/template/vue-container-custom-widget-template/dist/infoCardPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue-container-custom-widget-template v1.0.7 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Wed Mar 22 2023 19:22:49 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | -------------------------------------------------------------------------------- /src/template/vue2-aipage-custom-widget/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | package-lock.json 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .hg 10 | .svn 11 | .CVS 12 | .idea 13 | .vscode 14 | .DS_Store 15 | *.suo 16 | *.ntvs* 17 | *.njsproj 18 | *.sln 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | temp/ 4 | temp2/ 5 | demo/ 6 | npm/ 7 | package-lock.json 8 | npm-debug.log* 9 | yarn-debug.log* 10 | yarn-error.log* 11 | 12 | # Editor directories and files 13 | .hg 14 | .svn 15 | .CVS 16 | .idea 17 | .vscode 18 | .DS_Store 19 | *.suo 20 | *.ntvs* 21 | *.njsproj 22 | *.sln 23 | -------------------------------------------------------------------------------- /src/template/container-custom-widget-template/src/index.js: -------------------------------------------------------------------------------- 1 | import InfoCard from './widget/info-card'; 2 | import { registerRendererByType } from 'amis-widget'; 3 | 4 | registerRendererByType(InfoCard, { 5 | type: 'react-info-card-container', 6 | usage: 'renderer', 7 | weight: 99, 8 | framework: 'react', 9 | }); 10 | -------------------------------------------------------------------------------- /src/template/lottery-custom-widget/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | dist/ 4 | package-lock.json 5 | npm-debug.log* 6 | yarn-debug.log* 7 | yarn-error.log* 8 | 9 | # Editor directories and files 10 | .hg 11 | .svn 12 | .CVS 13 | .idea 14 | .vscode 15 | .DS_Store 16 | *.suo 17 | *.ntvs* 18 | *.njsproj 19 | *.sln 20 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | package-lock.json 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .hg 10 | .svn 11 | .CVS 12 | .idea 13 | .vscode 14 | .DS_Store 15 | *.suo 16 | *.ntvs* 17 | *.njsproj 18 | *.sln 19 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | dist/ 4 | package-lock.json 5 | npm-debug.log* 6 | yarn-debug.log* 7 | yarn-error.log* 8 | 9 | # Editor directories and files 10 | .hg 11 | .svn 12 | .CVS 13 | .idea 14 | .vscode 15 | .DS_Store 16 | *.suo 17 | *.ntvs* 18 | *.njsproj 19 | *.sln 20 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | dist/ 4 | package-lock.json 5 | npm-debug.log* 6 | yarn-debug.log* 7 | yarn-error.log* 8 | 9 | # Editor directories and files 10 | .hg 11 | .svn 12 | .CVS 13 | .idea 14 | .vscode 15 | .DS_Store 16 | *.suo 17 | *.ntvs* 18 | *.njsproj 19 | *.sln 20 | -------------------------------------------------------------------------------- /src/template/uview-custom-widget/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | dist/ 4 | package-lock.json 5 | npm-debug.log* 6 | yarn-debug.log* 7 | yarn-error.log* 8 | 9 | # Editor directories and files 10 | .hg 11 | .svn 12 | .CVS 13 | .idea 14 | .vscode 15 | .DS_Store 16 | *.suo 17 | *.ntvs* 18 | *.njsproj 19 | *.sln 20 | -------------------------------------------------------------------------------- /src/template/react-ts-custom-widget-template/src/index.ts: -------------------------------------------------------------------------------- 1 | import InfoCard from './widget/info-card'; 2 | // @ts-ignore 3 | import { registerRendererByType } from 'amis-widget'; 4 | 5 | registerRendererByType(InfoCard, { 6 | type: 'react-info-card', 7 | usage: 'renderer', 8 | weight: 99, 9 | framework: 'react', 10 | }); 11 | -------------------------------------------------------------------------------- /src/template/uni-custom-widget-template/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | dist/ 4 | package-lock.json 5 | npm-debug.log* 6 | yarn-debug.log* 7 | yarn-error.log* 8 | 9 | # Editor directories and files 10 | .hg 11 | .svn 12 | .CVS 13 | .idea 14 | .vscode 15 | .DS_Store 16 | *.suo 17 | *.ntvs* 18 | *.njsproj 19 | *.sln 20 | -------------------------------------------------------------------------------- /src/template/vue3-aipage-custom-widget-template/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | package-lock.json 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .hg 10 | .svn 11 | .CVS 12 | .idea 13 | .vscode 14 | .DS_Store 15 | *.suo 16 | *.ntvs* 17 | *.njsproj 18 | *.sln 19 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | dist/ 4 | package-lock.json 5 | npm-debug.log* 6 | yarn-debug.log* 7 | yarn-error.log* 8 | 9 | # Editor directories and files 10 | .hg 11 | .svn 12 | .CVS 13 | .idea 14 | .vscode 15 | .DS_Store 16 | *.suo 17 | *.ntvs* 18 | *.njsproj 19 | *.sln 20 | -------------------------------------------------------------------------------- /src/template/lottery-custom-widget/src/App.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store/ 2 | node_modules/ 3 | build/ 4 | dist/ 5 | test/ 6 | package-lock.json 7 | npm-debug.log* 8 | yarn-debug.log* 9 | yarn-error.log* 10 | 11 | # Editor directories and files 12 | .hg 13 | .svn 14 | .CVS 15 | .idea 16 | .vscode 17 | .DS_Store 18 | *.suo 19 | *.ntvs* 20 | *.njsproj 21 | *.sln 22 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/src/App.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | -------------------------------------------------------------------------------- /src/template/uview-custom-widget/build/renderer.ts: -------------------------------------------------------------------------------- 1 | // 注册自定义组件(aipage-editor渲染器需要) 2 | // @ts-ignore 3 | import { registerRenderer } from 'vue3-aipage-widget'; 4 | // @ts-ignore 5 | import InfoCard from '../src/components/uni-time-line/uni-time-line'; 6 | 7 | registerRenderer(InfoCard, { 8 | type: 'uni-time-line', 9 | framework: 'vue3', 10 | }); 11 | -------------------------------------------------------------------------------- /src/template/uview-custom-widget/src/App.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | -------------------------------------------------------------------------------- /src/template/uni-custom-widget-template/build/renderer.ts: -------------------------------------------------------------------------------- 1 | // 注册自定义组件(aipage-editor渲染器需要) 2 | // @ts-ignore 3 | import { registerRenderer } from 'vue3-aipage-widget'; 4 | // @ts-ignore 5 | import InfoCard from '../src/components/uni-info-card/uni-info-card'; 6 | 7 | registerRenderer(InfoCard, { 8 | type: 'uni-info-card', 9 | framework: 'vue3', 10 | }); 11 | -------------------------------------------------------------------------------- /src/template/uni-custom-widget-template/src/App.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | -------------------------------------------------------------------------------- /src/template/vue3-amis-custom-widget/src/uni-area-chart/renderer.ts: -------------------------------------------------------------------------------- 1 | // 注册自定义组件(aipage-editor渲染器需要) 2 | // @ts-ignore 3 | import { registerRendererByType } from 'vue3-amis-widget'; 4 | // @ts-ignore 5 | import uniAreaChart from './uni-area-chart'; 6 | 7 | registerRendererByType(uniAreaChart, { 8 | type: 'uni-area-chart', 9 | framework: 'vue3' 10 | }); 11 | -------------------------------------------------------------------------------- /src/config/index.js: -------------------------------------------------------------------------------- 1 | // 统一路径解析: 2 | const { resolve, getConfigObj, deepMergeConfig } = require('akfun'); 3 | const defaultAMISConfig = require('./default.config'); 4 | 5 | // 从项目根目录获取当前项目的配置文件 6 | const curProjectConfig = getConfigObj(resolve('amis.config.js')); 7 | 8 | // 备注:数组类型则直接覆盖 9 | module.exports = deepMergeConfig(defaultAMISConfig, curProjectConfig); 10 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/src/App.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | -------------------------------------------------------------------------------- /src/editor/icons/index.jsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 内置 svg 图标 3 | */ 4 | 5 | import { Icon, registerIcon } from 'amis-ui'; 6 | 7 | // @ts-ignore 8 | import PCPreview from './pc-preview.svg'; 9 | // @ts-ignore 10 | import H5Preview from './h5-preview.svg'; 11 | registerIcon('pc-preview', PCPreview); 12 | registerIcon('h5-preview', H5Preview); 13 | 14 | export { Icon }; 15 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/src/h5components/uni-pie-chart/renderer.ts: -------------------------------------------------------------------------------- 1 | // 注册自定义组件(aipage-editor渲染器需要) 2 | // @ts-ignore 3 | import { registerRenderer } from 'vue3-aipage-widget/dist/index.umd'; 4 | // @ts-ignore 5 | import uniPieChart from './uni-pie-chart'; 6 | 7 | registerRenderer(uniPieChart, { 8 | type: 'uni-pie-chart', 9 | framework: 'vue3', 10 | }); 11 | -------------------------------------------------------------------------------- /src/template/uview-custom-widget/src/main.ts: -------------------------------------------------------------------------------- 1 | import { createSSRApp } from 'vue'; 2 | import App from './App.vue'; 3 | // 引入 uView UI 4 | // @ts-ignore 5 | import uView from 'vk-uview-ui'; 6 | 7 | export function createApp() { 8 | const app = createSSRApp(App); 9 | 10 | // 使用 uView UI 11 | app.use(uView); 12 | 13 | return { 14 | app, 15 | }; 16 | } 17 | -------------------------------------------------------------------------------- /src/template/lottery-custom-widget/build/renderer.ts: -------------------------------------------------------------------------------- 1 | // 注册自定义组件(aipage-editor渲染器需要) 2 | // @ts-ignore 3 | import { registerRenderer } from 'vue3-aipage-widget'; 4 | // @ts-ignore 5 | import UniLotteryCard from '../src/components/uni-lottery-card/uni-lottery-card'; 6 | 7 | registerRenderer(UniLotteryCard, { 8 | type: 'uni-lottery-card', 9 | framework: 'vue3', 10 | }); 11 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/src/app.ux: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/src/h5components/uni-area-chart/renderer.ts: -------------------------------------------------------------------------------- 1 | // 注册自定义组件(aipage-editor渲染器需要) 2 | // @ts-ignore 3 | import { registerRenderer } from 'vue3-aipage-widget/dist/index.umd'; 4 | // @ts-ignore 5 | import uniAreaChart from './uni-area-chart'; 6 | 7 | registerRenderer(uniAreaChart, { 8 | type: 'uni-area-chart', 9 | framework: 'vue3', 10 | }); 11 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/src/h5components/uni-line-chart/renderer.ts: -------------------------------------------------------------------------------- 1 | // 注册自定义组件(aipage-editor渲染器需要) 2 | // @ts-ignore 3 | import { registerRenderer } from 'vue3-aipage-widget/dist/index.umd'; 4 | // @ts-ignore 5 | import uniLineChart from './uni-line-chart'; 6 | 7 | registerRenderer(uniLineChart, { 8 | type: 'uni-line-chart', 9 | framework: 'vue3', 10 | }); 11 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/src/h5components/uni-ring-chart/renderer.ts: -------------------------------------------------------------------------------- 1 | // 注册自定义组件(aipage-editor渲染器需要) 2 | // @ts-ignore 3 | import { registerRenderer } from 'vue3-aipage-widget/dist/index.umd'; 4 | // @ts-ignore 5 | import uniRingChart from './uni-ring-chart'; 6 | 7 | registerRenderer(uniRingChart, { 8 | type: 'uni-ring-chart', 9 | framework: 'vue3', 10 | }); 11 | -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/src/h5Components/preview.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import VueInfoCard from './info-card/info-card'; 4 | import { createVue3Component } from 'vue3-aipage-widget'; 5 | 6 | const InfoCard = createVue3Component(VueInfoCard); 7 | 8 | ReactDOM.render(, document.getElementById('root')); 9 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/src/h5components/uni-mount-chart/renderer.ts: -------------------------------------------------------------------------------- 1 | // 注册自定义组件(aipage-editor渲染器需要) 2 | // @ts-ignore 3 | import { registerRenderer } from 'vue3-aipage-widget/dist/index.umd'; 4 | // @ts-ignore 5 | import uniMountChart from './uni-mount-chart'; 6 | 7 | registerRenderer(uniMountChart, { 8 | type: 'uni-mount-chart', 9 | framework: 'vue3', 10 | }); 11 | -------------------------------------------------------------------------------- /src/aipage/custom-form-item/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { FormItem } from 'amis-core'; 3 | import ImageManager from './ImageManager'; 4 | 5 | // 图片选择器 6 | export class ImageManagerModel extends React.Component { 7 | render() { 8 | return ; 9 | } 10 | } 11 | 12 | FormItem({ type: 'image-manager' })(ImageManagerModel); 13 | -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/src/app.ux: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/src/h5components/uni-column-chart/renderer.ts: -------------------------------------------------------------------------------- 1 | // 注册自定义组件(aipage-editor渲染器需要) 2 | // @ts-ignore 3 | import { registerRenderer } from 'vue3-aipage-widget/dist/index.umd'; 4 | // @ts-ignore 5 | import uniColumnChart from './uni-column-chart'; 6 | 7 | registerRenderer(uniColumnChart, { 8 | type: 'uni-column-chart', 9 | framework: 'vue3', 10 | }); 11 | -------------------------------------------------------------------------------- /src/template/vue-container-custom-widget-template/src/index.js: -------------------------------------------------------------------------------- 1 | import InfoCard from './widget/info-card'; 2 | // @ts-ignore 3 | import { registerRendererByType } from 'amis-widget'; 4 | 5 | /* 引入公共的静态资源 */ 6 | import '$public/css/base.css'; 7 | 8 | registerRendererByType(InfoCard, { 9 | type: 'vue-info-card-container', 10 | usage: 'renderer', 11 | weight: 99, 12 | framework: 'vue', 13 | }); 14 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/src/h5Components/preview.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import VueFlowCard from './qui-flow/index.vue'; 4 | import { createVue3Component } from 'vue3-aipage-widget'; 5 | 6 | // 使用react预览vue组件,需要先转换一下 7 | const FlowCard = createVue3Component(VueFlowCard); 8 | 9 | ReactDOM.render(, document.getElementById('root')); 10 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/src/vue-widget/index.js: -------------------------------------------------------------------------------- 1 | import { registerRendererByType } from 'amis-widget'; 2 | import InfoCard from './info-card'; 3 | 4 | registerRendererByType(InfoCard, { 5 | type: 'vue-info-card', 6 | usage: 'renderer', 7 | weight: 99, 8 | framework: 'vue', 9 | // usage 设置成formitem,可通过detectProps 告知触发更新的变量有哪些 10 | detectProps: [], // schema变化使视图更新的属性白名单 11 | }); 12 | -------------------------------------------------------------------------------- /src/template/vue2-amis-custom-widget/src/index.js: -------------------------------------------------------------------------------- 1 | import InfoCard from './widget/info-card'; 2 | // @ts-ignore 3 | import { registerRendererByType } from 'amis-widget'; 4 | 5 | /* 引入公共的静态资源 */ 6 | // import '$public/css/base.css'; // 备注: 全局样式要注意不要干扰平台和编辑器端的正常展示 7 | 8 | registerRendererByType(InfoCard, { 9 | type: 'vue-info-card', 10 | usage: 'renderer', 11 | weight: 99, 12 | framework: 'vue', 13 | }); 14 | -------------------------------------------------------------------------------- /src/template/vue3-amis-custom-widget/src/preview.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import VueUniArea from './uni-area-chart/uni-area-chart.vue'; 4 | import { createVue3Component } from 'vue3-amis-widget'; 5 | const UniArea = createVue3Component(VueUniArea); 6 | 7 | ReactDOM.render( 8 | <> 9 | 10 | , 11 | document.getElementById('root') 12 | ); 13 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/src/h5Components/preview.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import VueInfoCard from './info-card/info-card'; 4 | import { createVue3Component } from 'vue3-aipage-widget'; 5 | 6 | const InfoCard = createVue3Component(VueInfoCard); 7 | 8 | ReactDOM.render( 9 | <> 10 | 11 | , 12 | document.getElementById('root'), 13 | ); 14 | -------------------------------------------------------------------------------- /src/template/lottery-custom-widget/src/pages.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | { 4 | "path": "pages/demo/index", 5 | "style": { 6 | "navigationBarTitleText": "uni-app" 7 | } 8 | } 9 | ], 10 | "globalStyle": { 11 | "navigationBarTextStyle": "black", 12 | "navigationBarTitleText": "uni-app", 13 | "navigationBarBackgroundColor": "#F8F8F8", 14 | "backgroundColor": "#F8F8F8" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/src/pages.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | { 4 | "path": "pages/demo/index", 5 | "style": { 6 | "navigationBarTitleText": "uni-app" 7 | } 8 | } 9 | ], 10 | "globalStyle": { 11 | "navigationBarTextStyle": "black", 12 | "navigationBarTitleText": "uni-app", 13 | "navigationBarBackgroundColor": "#F8F8F8", 14 | "backgroundColor": "#F8F8F8" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/template/uni-custom-widget-template/src/pages.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | { 4 | "path": "pages/demo/index", 5 | "style": { 6 | "navigationBarTitleText": "uni-app" 7 | } 8 | } 9 | ], 10 | "globalStyle": { 11 | "navigationBarTextStyle": "black", 12 | "navigationBarTitleText": "uni-app", 13 | "navigationBarBackgroundColor": "#F8F8F8", 14 | "backgroundColor": "#F8F8F8" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/src/pages.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | { 4 | "path": "pages/demo/index", 5 | "style": { 6 | "navigationBarTitleText": "uni-app" 7 | } 8 | } 9 | ], 10 | "globalStyle": { 11 | "navigationBarTextStyle": "black", 12 | "navigationBarTitleText": "uni-app", 13 | "navigationBarBackgroundColor": "#F8F8F8", 14 | "backgroundColor": "#F8F8F8" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/utils/amisConfigInit.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const { createFile } = require('akfun'); 3 | 4 | // 将脚手架的默认配置文件拷贝到当前项目根目录 5 | const createDefaultConfig = function (_configFileName) { 6 | const configFileName = _configFileName || 'amis.config.js'; 7 | createFile( 8 | path.resolve(__dirname, `../initData/${configFileName}`), 9 | path.resolve(process.cwd(), `./${configFileName}`) 10 | ); 11 | }; 12 | 13 | module.exports = createDefaultConfig; 14 | -------------------------------------------------------------------------------- /src/template/react-ts-custom-widget-template/src/preview.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import InfoCard from './widget/info-card'; 4 | 5 | /* 引入公共的静态资源 */ 6 | import '$public/css/base.css'; 7 | 8 | ReactDOM.render(, document.getElementById('root')); 14 | -------------------------------------------------------------------------------- /src/template/react-widget-dev/src/plugin.jsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 编辑器扩展, 增加自定义组件 3 | */ 4 | import { registerAmisEditorPlugin } from 'amis-widget'; 5 | import InfoCardPlugin from './plugins/infoCardPlugin' 6 | 7 | registerAmisEditorPlugin(InfoCardPlugin, { 8 | rendererName: 'react-info-card', 9 | name: 'react-info-card', 10 | // description: '信息展示卡片', 11 | // tags: ['展示'], 12 | order: 99, 13 | // icon: 'fa fa-file-code-o', 14 | // panelTitle: '配置' 15 | }); -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/src/preview.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | // import InfoCard from './react-widget/info-card'; // react组件 4 | 5 | import InfoCard from './vue-widget/info-card'; // vue组件 6 | 7 | import { createVue2Component } from 'amis-widget'; 8 | 9 | // vue组件转react组件 10 | const InfoCardReact = createVue2Component(InfoCard); 11 | 12 | ReactDOM.render(, document.getElementById('root')); 13 | -------------------------------------------------------------------------------- /src/template/react-widget-dev/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | AMIS Widget Dev 7 | 16 | 17 | 18 |
19 | 20 | -------------------------------------------------------------------------------- /src/template/lottery-custom-widget/src/pages/demo/index.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 11 | 12 | 20 | -------------------------------------------------------------------------------- /src/template/vue2-aipage-custom-widget/src/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 自定义组件预览页 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /src/template/vue2-amis-custom-widget/public/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 自定义组件预览页 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/public/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 自定义组件预览页 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/src/h5Components/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 自定义组件预览页 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /src/template/vue3-aipage-custom-widget-template/src/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 自定义组件预览页 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /src/template/vue-container-custom-widget-template/public/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 自定义组件预览页 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/src/h5Components/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 自定义组件预览页 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /src/template/lottery-custom-widget/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/uview-custom-widget/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/uni-custom-widget-template/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/vue2-aipage-custom-widget/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: 'all', // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/vue2-amis-custom-widget/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: 'all', // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/react-custom-widget-template/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/react-ts-custom-widget-template/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/container-custom-widget-template/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/vue-container-custom-widget-template/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/vue3-aipage-custom-widget-template/.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | semi: true, // Semicolons 分号,默认需要分号 7 | tabWidth: 2, // 空格,默认 2, 8 | useTabs: false, 9 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 10 | trailingComma: "all", // 逗号 11 | jsxBracketSameLine: false, // 默认为false,Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). 12 | }; 13 | -------------------------------------------------------------------------------- /src/template/uview-custom-widget/src/pages.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | { 4 | "path": "pages/demo/index", 5 | "style": { 6 | "navigationBarTitleText": "uni-app" 7 | } 8 | } 9 | ], 10 | "globalStyle": { 11 | "navigationBarTextStyle": "black", 12 | "navigationBarTitleText": "uni-app", 13 | "navigationBarBackgroundColor": "#F8F8F8", 14 | "backgroundColor": "#F8F8F8" 15 | }, 16 | "easycom": { 17 | "autoscan": true, 18 | "custom": { 19 | "^u-(.*)": "vk-uview-ui/components/u-$1/u-$1.vue" 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/template/vue3-aipage-custom-widget-template/dist/infoCardPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue3-aipage-custom-widget-template v1.1.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Mon Jun 03 2024 19:39:00 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | 9 | /*! vue3-aipage-widget */ 10 | 11 | /*!***********************************!*\ 12 | !*** ./src/vue-widget/plugin.jsx ***! 13 | \***********************************/ 14 | 15 | /*!*************************************!*\ 16 | !*** external "vue3-aipage-widget" ***! 17 | \*************************************/ 18 | -------------------------------------------------------------------------------- /src/template/vue3-aipage-custom-widget-template/dist/reactInfoCardPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue3-aipage-custom-widget-template v1.1.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Mon Jun 03 2024 19:39:00 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | 9 | /*! vue3-aipage-widget */ 10 | 11 | /*!*************************************!*\ 12 | !*** ./src/react-widget/plugin.jsx ***! 13 | \*************************************/ 14 | 15 | /*!*************************************!*\ 16 | !*** external "vue3-aipage-widget" ***! 17 | \*************************************/ 18 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/preview/uniPiePlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * uchart-custom-widget v1.3.6 3 | * author: wibetter 4 | * build tool: AKFun 5 | * build time: Mon Jun 17 2024 21:08:13 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | 9 | /*! vue3-aipage-widget/dist/index.umd */ 10 | 11 | /*!**************************************************!*\ 12 | !*** ./src/h5components/uni-pie-chart/plugin.ts ***! 13 | \**************************************************/ 14 | 15 | /*!****************************************************!*\ 16 | !*** external "vue3-aipage-widget/dist/index.umd" ***! 17 | \****************************************************/ 18 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/preview/uniAreaPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * uchart-custom-widget v1.3.6 3 | * author: wibetter 4 | * build tool: AKFun 5 | * build time: Mon Jun 17 2024 21:08:13 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | 9 | /*! vue3-aipage-widget/dist/index.umd */ 10 | 11 | /*!***************************************************!*\ 12 | !*** ./src/h5components/uni-area-chart/plugin.ts ***! 13 | \***************************************************/ 14 | 15 | /*!****************************************************!*\ 16 | !*** external "vue3-aipage-widget/dist/index.umd" ***! 17 | \****************************************************/ 18 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/preview/uniLinePlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * uchart-custom-widget v1.3.6 3 | * author: wibetter 4 | * build tool: AKFun 5 | * build time: Mon Jun 17 2024 21:08:13 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | 9 | /*! vue3-aipage-widget/dist/index.umd */ 10 | 11 | /*!***************************************************!*\ 12 | !*** ./src/h5components/uni-line-chart/plugin.ts ***! 13 | \***************************************************/ 14 | 15 | /*!****************************************************!*\ 16 | !*** external "vue3-aipage-widget/dist/index.umd" ***! 17 | \****************************************************/ 18 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/preview/uniMountPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * uchart-custom-widget v1.3.6 3 | * author: wibetter 4 | * build tool: AKFun 5 | * build time: Mon Jun 17 2024 21:08:13 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | 9 | /*! vue3-aipage-widget/dist/index.umd */ 10 | 11 | /*!****************************************************!*\ 12 | !*** ./src/h5components/uni-mount-chart/plugin.ts ***! 13 | \****************************************************/ 14 | 15 | /*!****************************************************!*\ 16 | !*** external "vue3-aipage-widget/dist/index.umd" ***! 17 | \****************************************************/ 18 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/preview/uniRingPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * uchart-custom-widget v1.3.6 3 | * author: wibetter 4 | * build tool: AKFun 5 | * build time: Mon Jun 17 2024 21:08:13 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | 9 | /*! vue3-aipage-widget/dist/index.umd */ 10 | 11 | /*!***************************************************!*\ 12 | !*** ./src/h5components/uni-ring-chart/plugin.ts ***! 13 | \***************************************************/ 14 | 15 | /*!****************************************************!*\ 16 | !*** external "vue3-aipage-widget/dist/index.umd" ***! 17 | \****************************************************/ 18 | -------------------------------------------------------------------------------- /src/template/vue3-amis-custom-widget/dist/uniAreaRenderer.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * vue3-amis-custom-widget v1.0.0 3 | * author: fex 4 | * build tool: AKFun 5 | * build time: Tue Mar 14 2023 10:23:37 GMT+0800 (China Standard Time) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */.u-charts-container[data-v-51273cb3]{-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}.u-charts-container .u-charts[data-v-51273cb3]{height:280px;margin:10px auto;width:370px} -------------------------------------------------------------------------------- /src/template/react-custom-widget-template/public/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 自定义组件预览页 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/template/react-ts-custom-widget-template/public/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 自定义组件预览页 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/preview/uniColumnPlugin.umd.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * uchart-custom-widget v1.3.6 3 | * author: wibetter 4 | * build tool: AKFun 5 | * build time: Mon Jun 17 2024 21:08:13 GMT+0800 (中国标准时间) 6 | * build tool info: https://github.com/wibetter/akfun 7 | */ 8 | 9 | /*! vue3-aipage-widget/dist/index.umd */ 10 | 11 | /*!****************************************************!*\ 12 | !*** external "vue3-aipage-widget/dist/index.umd" ***! 13 | \****************************************************/ 14 | 15 | /*!*****************************************************!*\ 16 | !*** ./src/h5components/uni-column-chart/plugin.ts ***! 17 | \*****************************************************/ 18 | -------------------------------------------------------------------------------- /src/template/container-custom-widget-template/public/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 自定义组件预览页 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/template/vue2-amis-custom-widget/.gitignore: -------------------------------------------------------------------------------- 1 | # Numerous always-ignore extensions 2 | *.bak 3 | *.patch 4 | *.diff 5 | *.err 6 | 7 | # temp file for git conflict merging 8 | *.orig 9 | *.log 10 | *.rej 11 | *.swo 12 | *.swp 13 | *.zip 14 | *.vi 15 | *~ 16 | *.sass-cache 17 | *.tmp.html 18 | *.dump 19 | 20 | # OS or Editor folders 21 | .DS_Store 22 | ._* 23 | .cache 24 | .project 25 | .settings 26 | .tmproj 27 | *.esproj 28 | *.sublime-project 29 | *.sublime-workspace 30 | nbproject 31 | thumbs.db 32 | *.iml 33 | .vscode/ 34 | 35 | # Folders to ignore 36 | .hg 37 | .svn 38 | .CVS 39 | .idea 40 | node_modules/ 41 | package-lock.json 42 | jscoverage_lib/ 43 | 44 | # log files 45 | npm-debug.log* 46 | yarn-debug.log* 47 | yarn-error.log* 48 | -------------------------------------------------------------------------------- /src/template/react-custom-widget-template/.gitignore: -------------------------------------------------------------------------------- 1 | # Numerous always-ignore extensions 2 | *.bak 3 | *.patch 4 | *.diff 5 | *.err 6 | 7 | # temp file for git conflict merging 8 | *.orig 9 | *.log 10 | *.rej 11 | *.swo 12 | *.swp 13 | *.zip 14 | *.vi 15 | *~ 16 | *.sass-cache 17 | *.tmp.html 18 | *.dump 19 | 20 | # OS or Editor folders 21 | .DS_Store 22 | ._* 23 | .cache 24 | .project 25 | .settings 26 | .tmproj 27 | *.esproj 28 | *.sublime-project 29 | *.sublime-workspace 30 | nbproject 31 | thumbs.db 32 | *.iml 33 | .vscode/ 34 | 35 | # Folders to ignore 36 | .hg 37 | .svn 38 | .CVS 39 | .idea 40 | node_modules/ 41 | package-lock.json 42 | jscoverage_lib/ 43 | 44 | # log files 45 | npm-debug.log* 46 | yarn-debug.log* 47 | yarn-error.log* 48 | -------------------------------------------------------------------------------- /src/template/container-custom-widget-template/.gitignore: -------------------------------------------------------------------------------- 1 | # Numerous always-ignore extensions 2 | *.bak 3 | *.patch 4 | *.diff 5 | *.err 6 | 7 | # temp file for git conflict merging 8 | *.orig 9 | *.log 10 | *.rej 11 | *.swo 12 | *.swp 13 | *.zip 14 | *.vi 15 | *~ 16 | *.sass-cache 17 | *.tmp.html 18 | *.dump 19 | 20 | # OS or Editor folders 21 | .DS_Store 22 | ._* 23 | .cache 24 | .project 25 | .settings 26 | .tmproj 27 | *.esproj 28 | *.sublime-project 29 | *.sublime-workspace 30 | nbproject 31 | thumbs.db 32 | *.iml 33 | .vscode/ 34 | 35 | # Folders to ignore 36 | .hg 37 | .svn 38 | .CVS 39 | .idea 40 | node_modules/ 41 | package-lock.json 42 | jscoverage_lib/ 43 | 44 | # log files 45 | npm-debug.log* 46 | yarn-debug.log* 47 | yarn-error.log* 48 | -------------------------------------------------------------------------------- /src/template/react-ts-custom-widget-template/.gitignore: -------------------------------------------------------------------------------- 1 | # Numerous always-ignore extensions 2 | *.bak 3 | *.patch 4 | *.diff 5 | *.err 6 | 7 | # temp file for git conflict merging 8 | *.orig 9 | *.log 10 | *.rej 11 | *.swo 12 | *.swp 13 | *.zip 14 | *.vi 15 | *~ 16 | *.sass-cache 17 | *.tmp.html 18 | *.dump 19 | 20 | # OS or Editor folders 21 | .DS_Store 22 | ._* 23 | .cache 24 | .project 25 | .settings 26 | .tmproj 27 | *.esproj 28 | *.sublime-project 29 | *.sublime-workspace 30 | nbproject 31 | thumbs.db 32 | *.iml 33 | .vscode/ 34 | 35 | # Folders to ignore 36 | .hg 37 | .svn 38 | .CVS 39 | .idea 40 | node_modules/ 41 | package-lock.json 42 | jscoverage_lib/ 43 | 44 | # log files 45 | npm-debug.log* 46 | yarn-debug.log* 47 | yarn-error.log* 48 | -------------------------------------------------------------------------------- /src/template/vue-container-custom-widget-template/.gitignore: -------------------------------------------------------------------------------- 1 | # Numerous always-ignore extensions 2 | *.bak 3 | *.patch 4 | *.diff 5 | *.err 6 | 7 | # temp file for git conflict merging 8 | *.orig 9 | *.log 10 | *.rej 11 | *.swo 12 | *.swp 13 | *.zip 14 | *.vi 15 | *~ 16 | *.sass-cache 17 | *.tmp.html 18 | *.dump 19 | 20 | # OS or Editor folders 21 | .DS_Store 22 | ._* 23 | .cache 24 | .project 25 | .settings 26 | .tmproj 27 | *.esproj 28 | *.sublime-project 29 | *.sublime-workspace 30 | nbproject 31 | thumbs.db 32 | *.iml 33 | .vscode/ 34 | 35 | # Folders to ignore 36 | .hg 37 | .svn 38 | .CVS 39 | .idea 40 | node_modules/ 41 | package-lock.json 42 | jscoverage_lib/ 43 | 44 | # log files 45 | npm-debug.log* 46 | yarn-debug.log* 47 | yarn-error.log* 48 | -------------------------------------------------------------------------------- /src/template/uview-custom-widget/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 自定义组件预览页 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/template/lottery-custom-widget/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 自定义组件预览页 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 自定义组件预览页 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/template/uni-custom-widget-template/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 自定义组件预览页 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 自定义组件预览页 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/template/uview-custom-widget/src/pages/demo/index.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 11 | 12 | 39 | -------------------------------------------------------------------------------- /src/editor/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | amis-widget Demo 9 | 13 | 17 | 22 | 23 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /src/initData/defaultTemplate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | amis-widget Demo 9 | 13 | 17 | 22 | 23 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /src/template/react-widget-dev/editor/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | amis-widget Demo 9 | 13 | 17 | 22 | 23 | 24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /src/template/react-widget-dev/webpack/preview.js: -------------------------------------------------------------------------------- 1 | // development config 2 | const {merge} = require('webpack-merge'); 3 | const webpack = require('webpack'); 4 | const HtmlWebpackPlugin = require('html-webpack-plugin'); 5 | const commonConfig = require('./common'); 6 | 7 | module.exports = merge(commonConfig, { 8 | mode: 'development', 9 | entry: { // 调试模式的入口 10 | preview: '../src/preview.jsx', 11 | }, 12 | // devServer: { 13 | // hot: true, // enable HMR on the server 14 | // historyApiFallback: true // fixes error 404-ish errors when using react router :see this SO question: https://stackoverflow.com/questions/43209666/react-router-v4-cannot-get-url 15 | // }, 16 | devtool: 'cheap-module-source-map', 17 | plugins: [ 18 | new HtmlWebpackPlugin({template: '../editor/index.html'}), 19 | new webpack.HotModuleReplacementPlugin() // enable HMR globally 20 | ] 21 | }); 22 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/src/hello-jquery/hello-jquery.jsx: -------------------------------------------------------------------------------- 1 | import $ from 'jquery'; 2 | import { registerRendererByType } from 'amis-widget'; 3 | 4 | class MyJQueryBtn { 5 | template = ` 6 |
7 | 这是个 jquery 按钮 8 |
`; 9 | 10 | onMount(props) { 11 | $('#btn').click(this.test.bind(this, props)); 12 | } 13 | 14 | test(props) { 15 | props.onAction( 16 | null, 17 | { 18 | actionType: 'dialog', 19 | dialog: { 20 | title: '来个弹框', 21 | body: 'Bom Bom Bom ${a} ${b}', 22 | }, 23 | }, 24 | { 25 | a: 1, 26 | b: 2, 27 | }, 28 | ); 29 | } 30 | } 31 | 32 | registerRendererByType(MyJQueryBtn, { 33 | type: 'hello-jquery', 34 | usage: 'renderer', 35 | weight: 98, 36 | framework: 'jquery', 37 | }); 38 | 39 | export default MyJQueryBtn; 40 | -------------------------------------------------------------------------------- /src/template/multiple-custom-widget-template/src/hello-jquery/plugin/hello-jquery-plugin.jsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 编辑器扩展, 增加自定义组件 3 | */ 4 | import { registerAmisEditorPlugin } from 'amis-widget'; 5 | 6 | export class HelloJqueryPlugin { 7 | rendererName = 'hello-jquery'; 8 | 9 | $schema = '/schemas/UnkownSchema.json'; 10 | 11 | name = 'hello-jquery'; 12 | 13 | description = 'hello-jquery'; 14 | 15 | tags = ['自定义']; 16 | 17 | icon = 'fa fa-file-code-o'; 18 | 19 | scaffold = { 20 | type: 'hello-jquery', 21 | label: 'hello-jquery', 22 | name: 'hello-jquery', 23 | }; 24 | 25 | previewSchema = { 26 | type: 'hello-jquery', 27 | label: 'hello-jquery', 28 | }; 29 | 30 | panelTitle = '配置面板'; 31 | 32 | panelControls = [ 33 | { 34 | type: 'tpl', 35 | tpl: '可根据变量 \\${amisUser} 获取用户数据。', 36 | }, 37 | ]; 38 | } 39 | 40 | registerAmisEditorPlugin(HelloJqueryPlugin); 41 | 42 | export default HelloJqueryPlugin; 43 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/src/pages/demo/index.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 21 | 22 | 30 | -------------------------------------------------------------------------------- /src/template/react-widget-dev/webpack/dev.js: -------------------------------------------------------------------------------- 1 | // development config 2 | const {merge} = require('webpack-merge'); 3 | const webpack = require('webpack'); 4 | const HtmlWebpackPlugin = require('html-webpack-plugin'); 5 | const commonConfig = require('./common'); 6 | 7 | module.exports = merge(commonConfig, { 8 | mode: 'development', 9 | entry: { // 调试模式的入口 10 | index: [ 11 | '../editor/EditorDemo.jsx', 12 | '../src/index.jsx', 13 | '../src/plugin.jsx', 14 | ], 15 | }, 16 | // devServer: { 17 | // hot: true, // enable HMR on the server 18 | // historyApiFallback: true // fixes error 404-ish errors when using react router :see this SO question: https://stackoverflow.com/questions/43209666/react-router-v4-cannot-get-url 19 | // }, 20 | devtool: 'cheap-module-source-map', 21 | plugins: [ 22 | new HtmlWebpackPlugin({template: '../editor/index.html'}), 23 | new webpack.HotModuleReplacementPlugin() // enable HMR globally 24 | ] 25 | }); 26 | -------------------------------------------------------------------------------- /src/template/uni-custom-widget-template/src/pages/demo/index.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 16 | 17 | 44 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/src/pages/demo/index.ux: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 21 | 22 | 47 | -------------------------------------------------------------------------------- /src/template/uni-h5-custom-widget-template/src/pages/demo/index.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 16 | 17 | 44 | -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/src/pages/demo/index.ux: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 21 | 22 | 47 | -------------------------------------------------------------------------------- /src/template/react-widget-dev/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "outDir": "dist/", 4 | "module": "commonjs", 5 | "target": "es5", 6 | "lib": ["es6", "dom", "ES2015"], 7 | "sourceMap": true, 8 | "jsx": "react", 9 | "moduleResolution": "node", 10 | "rootDir": "", 11 | "importHelpers": true, 12 | "esModuleInterop": true, 13 | "allowSyntheticDefaultImports": true, 14 | "sourceRoot": "src", 15 | "noImplicitReturns": true, 16 | "noImplicitThis": true, 17 | "noImplicitAny": true, 18 | "strictNullChecks": true, 19 | "experimentalDecorators": true, 20 | "emitDecoratorMetadata": true, 21 | "skipLibCheck": true, 22 | "skipDefaultLibCheck": true, 23 | "allowJs": true 24 | }, 25 | "include": ["src/**/*"], 26 | "exclude": [ 27 | "node_modules", 28 | "build", 29 | "scripts", 30 | "acceptance-tests", 31 | "webpack", 32 | "jest", 33 | "src/setupTests.ts" 34 | ], 35 | "types": ["typePatches"] 36 | } 37 | -------------------------------------------------------------------------------- /src/template/vue2-amis-custom-widget/src/assets/css/mixin.scss: -------------------------------------------------------------------------------- 1 | // 通用mixin 2 | $borderColor: #ddd; 3 | 4 | // type 为top 或者 bottom 5 | @mixin borderTopOrBtm($type) { 6 | &::after { 7 | content: ''; 8 | position: absolute; 9 | left: 0; 10 | right: 0; 11 | #{$type}: 0; 12 | width: 100%; 13 | height: 1px; 14 | background: $borderColor; 15 | transform: scaleY(0.5); 16 | } 17 | } 18 | 19 | // type为 right 或者 left 20 | @mixin borderRtOrLt($type) { 21 | &::after { 22 | content: ''; 23 | position: absolute; 24 | top: 0; 25 | bottom: 0; 26 | #{$type}: 0; 27 | height: 100%; 28 | width: 1px; 29 | background: $borderColor; 30 | transform: scaleX(0.5); 31 | } 32 | } 33 | 34 | //超出1行显示... 35 | @mixin ellipsis1 { 36 | overflow: hidden; 37 | text-overflow: ellipsis; 38 | white-space: nowrap; 39 | } 40 | 41 | // 超出多行显示... 42 | @mixin ellipsis($num) { 43 | overflow: hidden; 44 | display: -webkit-box; 45 | -webkit-line-clamp: $num; 46 | -webkit-box-orient: vertical; 47 | } 48 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | prettier 配置文件 3 | 更多配置信息:https://prettier.io/docs/en/options.html 4 | */ 5 | module.exports = { 6 | // 一行最多 100 字符 7 | printWidth: 100, 8 | // 使用 4 个空格缩进 9 | tabWidth: 2, 10 | // 不使用缩进符,而使用空格 11 | useTabs: false, 12 | // 行尾需要有分号 13 | semi: true, 14 | // 使用单引号 15 | singleQuote: true, // 单引号还是双引号,默认为false 双引号 16 | // 对象的 key 仅在必要时用引号 17 | quoteProps: 'as-needed', 18 | // jsx 不使用单引号,而使用双引号 19 | jsxSingleQuote: false, 20 | // 末尾不需要逗号 21 | trailingComma: 'none', // 逗号 22 | // 大括号内的首尾需要空格 23 | bracketSpacing: true, 24 | // jsx 标签的反尖括号需要换行 25 | jsxBracketSameLine: false, 26 | // 箭头函数,只有一个参数的时候,也需要括号 27 | arrowParens: 'always', 28 | // 每个文件格式化的范围是文件的全部内容 29 | rangeStart: 0, 30 | rangeEnd: Infinity, 31 | // 不需要写文件开头的 @prettier 32 | requirePragma: false, 33 | // 不需要自动在文件开头插入 @prettier 34 | insertPragma: false, 35 | // 使用默认的折行标准 36 | proseWrap: 'preserve', 37 | // 根据显示样式决定 html 要不要折行 38 | htmlWhitespaceSensitivity: 'css', 39 | // 换行符使用 lf 40 | endOfLine: 'lf' 41 | }; 42 | -------------------------------------------------------------------------------- /src/template/react-custom-widget-template/src/assets/css/mixin.scss: -------------------------------------------------------------------------------- 1 | // 通用mixin 2 | $borderColor: #ddd; 3 | 4 | // type 为top 或者 bottom 5 | @mixin borderTopOrBtm($type) { 6 | &::after { 7 | content: ''; 8 | position: absolute; 9 | left: 0; 10 | right: 0; 11 | #{$type}: 0; 12 | width: 100%; 13 | height: 1px; 14 | background: $borderColor; 15 | transform: scaleY(0.5); 16 | } 17 | } 18 | 19 | // type为 right 或者 left 20 | @mixin borderRtOrLt($type) { 21 | &::after { 22 | content: ''; 23 | position: absolute; 24 | top: 0; 25 | bottom: 0; 26 | #{$type}: 0; 27 | height: 100%; 28 | width: 1px; 29 | background: $borderColor; 30 | transform: scaleX(0.5); 31 | } 32 | } 33 | 34 | //超出1行显示... 35 | @mixin ellipsis1 { 36 | overflow: hidden; 37 | text-overflow: ellipsis; 38 | white-space: nowrap; 39 | } 40 | 41 | // 超出多行显示... 42 | @mixin ellipsis($num) { 43 | overflow: hidden; 44 | display: -webkit-box; 45 | -webkit-line-clamp: $num; 46 | -webkit-box-orient: vertical; 47 | } 48 | -------------------------------------------------------------------------------- /src/template/container-custom-widget-template/src/assets/css/mixin.scss: -------------------------------------------------------------------------------- 1 | // 通用mixin 2 | $borderColor: #ddd; 3 | 4 | // type 为top 或者 bottom 5 | @mixin borderTopOrBtm($type) { 6 | &::after { 7 | content: ''; 8 | position: absolute; 9 | left: 0; 10 | right: 0; 11 | #{$type}: 0; 12 | width: 100%; 13 | height: 1px; 14 | background: $borderColor; 15 | transform: scaleY(0.5); 16 | } 17 | } 18 | 19 | // type为 right 或者 left 20 | @mixin borderRtOrLt($type) { 21 | &::after { 22 | content: ''; 23 | position: absolute; 24 | top: 0; 25 | bottom: 0; 26 | #{$type}: 0; 27 | height: 100%; 28 | width: 1px; 29 | background: $borderColor; 30 | transform: scaleX(0.5); 31 | } 32 | } 33 | 34 | //超出1行显示... 35 | @mixin ellipsis1 { 36 | overflow: hidden; 37 | text-overflow: ellipsis; 38 | white-space: nowrap; 39 | } 40 | 41 | // 超出多行显示... 42 | @mixin ellipsis($num) { 43 | overflow: hidden; 44 | display: -webkit-box; 45 | -webkit-line-clamp: $num; 46 | -webkit-box-orient: vertical; 47 | } 48 | -------------------------------------------------------------------------------- /src/template/react-ts-custom-widget-template/src/assets/css/mixin.scss: -------------------------------------------------------------------------------- 1 | // 通用mixin 2 | $borderColor: #ddd; 3 | 4 | // type 为top 或者 bottom 5 | @mixin borderTopOrBtm($type) { 6 | &::after { 7 | content: ''; 8 | position: absolute; 9 | left: 0; 10 | right: 0; 11 | #{$type}: 0; 12 | width: 100%; 13 | height: 1px; 14 | background: $borderColor; 15 | transform: scaleY(0.5); 16 | } 17 | } 18 | 19 | // type为 right 或者 left 20 | @mixin borderRtOrLt($type) { 21 | &::after { 22 | content: ''; 23 | position: absolute; 24 | top: 0; 25 | bottom: 0; 26 | #{$type}: 0; 27 | height: 100%; 28 | width: 1px; 29 | background: $borderColor; 30 | transform: scaleX(0.5); 31 | } 32 | } 33 | 34 | //超出1行显示... 35 | @mixin ellipsis1 { 36 | overflow: hidden; 37 | text-overflow: ellipsis; 38 | white-space: nowrap; 39 | } 40 | 41 | // 超出多行显示... 42 | @mixin ellipsis($num) { 43 | overflow: hidden; 44 | display: -webkit-box; 45 | -webkit-line-clamp: $num; 46 | -webkit-box-orient: vertical; 47 | } 48 | -------------------------------------------------------------------------------- /src/template/vue-container-custom-widget-template/src/assets/css/mixin.scss: -------------------------------------------------------------------------------- 1 | // 通用mixin 2 | $borderColor: #ddd; 3 | 4 | // type 为top 或者 bottom 5 | @mixin borderTopOrBtm($type) { 6 | &::after { 7 | content: ''; 8 | position: absolute; 9 | left: 0; 10 | right: 0; 11 | #{$type}: 0; 12 | width: 100%; 13 | height: 1px; 14 | background: $borderColor; 15 | transform: scaleY(0.5); 16 | } 17 | } 18 | 19 | // type为 right 或者 left 20 | @mixin borderRtOrLt($type) { 21 | &::after { 22 | content: ''; 23 | position: absolute; 24 | top: 0; 25 | bottom: 0; 26 | #{$type}: 0; 27 | height: 100%; 28 | width: 1px; 29 | background: $borderColor; 30 | transform: scaleX(0.5); 31 | } 32 | } 33 | 34 | //超出1行显示... 35 | @mixin ellipsis1 { 36 | overflow: hidden; 37 | text-overflow: ellipsis; 38 | white-space: nowrap; 39 | } 40 | 41 | // 超出多行显示... 42 | @mixin ellipsis($num) { 43 | overflow: hidden; 44 | display: -webkit-box; 45 | -webkit-line-clamp: $num; 46 | -webkit-box-orient: vertical; 47 | } 48 | -------------------------------------------------------------------------------- /src/template/uchart-custom-widget/src/h5components/preview.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import VueUniColumn from './uni-column-chart/uni-column-chart.vue'; // 导入组件 4 | import VueUniMount from './uni-mount-chart/uni-mount-chart.vue'; 5 | import VueUniLine from './uni-line-chart/uni-line-chart.vue'; 6 | import VueUniArea from './uni-area-chart/uni-area-chart.vue'; 7 | import VueUniPie from './uni-pie-chart/uni-pie-chart.vue'; 8 | import VueUniRing from './uni-ring-chart/uni-ring-chart.vue'; 9 | import { createVue3Component } from 'vue3-aipage-widget'; 10 | const UniColumn = createVue3Component(VueUniColumn); 11 | const UniMount = createVue3Component(VueUniMount); 12 | const UniLine = createVue3Component(VueUniLine); 13 | const UniArea = createVue3Component(VueUniArea); 14 | const UniPie = createVue3Component(VueUniPie); 15 | const UniRing = createVue3Component(VueUniRing); 16 | 17 | ReactDOM.render( 18 | <> 19 | 20 | 21 | 22 | 23 | 24 | 25 | , 26 | document.getElementById('root'), 27 | ); 28 | -------------------------------------------------------------------------------- /src/aipage/helper.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | /** 3 | * @file 一些常用方法 4 | */ 5 | export function isMobile(ua = '') { 6 | return ua.toLowerCase().match(/iphone|ipod|ipad|android/); 7 | } 8 | 9 | export function noop() {} 10 | 11 | let fetcher = ({ url, method, data, config, headers }) => { 12 | config = config || {}; 13 | config.headers = config.headers || headers || {}; 14 | config.withCredentials = true; 15 | 16 | if (method !== 'post' && method !== 'put' && method !== 'patch') { 17 | if (data) { 18 | config.params = data; 19 | } 20 | return axios[method](url, config); 21 | } else if (data && data instanceof FormData) { 22 | // config.headers = config.headers || {}; 23 | // config.headers['Content-Type'] = 'multipart/form-data'; 24 | } else if ( 25 | data && 26 | typeof data !== 'string' && 27 | !(data instanceof Blob) && 28 | !(data instanceof ArrayBuffer) 29 | ) { 30 | data = JSON.stringify(data); 31 | config.headers['Content-Type'] = 'application/json'; 32 | } 33 | 34 | return axios[method](url, data, config); 35 | }; 36 | 37 | export function getFetcher() { 38 | return fetcher; 39 | } 40 | -------------------------------------------------------------------------------- /src/editor/icons/h5-preview.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/sign/debug/certificate.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDMTCCAhmgAwIBAgIJAMKpjyszxkDpMA0GCSqGSIb3DQEBCwUAMC4xCzAJBgNV 3 | BAYTAkNOMQwwCgYDVQQKDANSUEsxETAPBgNVBAMMCFJQS0RlYnVnMCAXDTE3MDQx 4 | OTAyMzE0OVoYDzIxMTYwMzI2MDIzMTQ5WjAuMQswCQYDVQQGEwJDTjEMMAoGA1UE 5 | CgwDUlBLMREwDwYDVQQDDAhSUEtEZWJ1ZzCCASIwDQYJKoZIhvcNAQEBBQADggEP 6 | ADCCAQoCggEBAK3kPd9jzvTctTIA3XNZVv9cHHDbAc6nTBfdZp9mtPOTkXFpvyCb 7 | kL0QjOog0+1pv8D7dFeP4ptWXU5CT3ImvaPR+16dAtMRcsxEr5q4zieJzx3O6huL 8 | UBa1k+xrzjXpRzkcOysmc8fTxt0tAwbDgJ2AA5TlXLTcVyb7GmJ+hl5CjnhoG5NN 9 | LrkqI7S29c1U3uokj8Q7hzaj0TURu/uB5ZIMCLZY9KFDugqaEcvmUyJiD0fuV6sA 10 | O/4kpiZUOnhV8/xWpRbMI4WFQsfgLOCV+X9uzUa29D677y//46t/EDSuQTHyBZbl 11 | AcNMENkpMWZsH7J/+F19+U0/Hd5bJgneVRkCAwEAAaNQME4wHQYDVR0OBBYEFKDN 12 | SZtt47ttOBDQzIchFYyxsg3mMB8GA1UdIwQYMBaAFKDNSZtt47ttOBDQzIchFYyx 13 | sg3mMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBABaZctNrn4gLmNf/ 14 | eNJ3x5CJIPjPwm6j9nwKhtadJ6BF+TIzSkJuHSgxULjW436F37otv94NPzT5PCBF 15 | WxgXoqgLqnWwvsaqC4LUEjsZviWW4CB824YDUquEUVGFLE/U5KTZ7Kh1ceyUk4N8 16 | +mtkXkanWoBBk0OF24lNrAsNLB63yTLr9HxEe75+kmvxf1qVJUGtaOEWIhiFMiAB 17 | 5D4w/j2EFWktumjuy5TTwU0zhl52bc8V9SNixM1IaqzNrVPrdjv8viUX548pU3WT 18 | xZ5ylDsxhMC1q4BXQVeIY8C0cMEX+WHOmOCvWrkxCkP91pKsSPkuVrWlzrkn8Ojo 19 | swP6sBw= 20 | -----END CERTIFICATE----- 21 | -------------------------------------------------------------------------------- /src/template/quick-custom-widget-template/sign/debug/certificate.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDMTCCAhmgAwIBAgIJAMKpjyszxkDpMA0GCSqGSIb3DQEBCwUAMC4xCzAJBgNV 3 | BAYTAkNOMQwwCgYDVQQKDANSUEsxETAPBgNVBAMMCFJQS0RlYnVnMCAXDTE3MDQx 4 | OTAyMzE0OVoYDzIxMTYwMzI2MDIzMTQ5WjAuMQswCQYDVQQGEwJDTjEMMAoGA1UE 5 | CgwDUlBLMREwDwYDVQQDDAhSUEtEZWJ1ZzCCASIwDQYJKoZIhvcNAQEBBQADggEP 6 | ADCCAQoCggEBAK3kPd9jzvTctTIA3XNZVv9cHHDbAc6nTBfdZp9mtPOTkXFpvyCb 7 | kL0QjOog0+1pv8D7dFeP4ptWXU5CT3ImvaPR+16dAtMRcsxEr5q4zieJzx3O6huL 8 | UBa1k+xrzjXpRzkcOysmc8fTxt0tAwbDgJ2AA5TlXLTcVyb7GmJ+hl5CjnhoG5NN 9 | LrkqI7S29c1U3uokj8Q7hzaj0TURu/uB5ZIMCLZY9KFDugqaEcvmUyJiD0fuV6sA 10 | O/4kpiZUOnhV8/xWpRbMI4WFQsfgLOCV+X9uzUa29D677y//46t/EDSuQTHyBZbl 11 | AcNMENkpMWZsH7J/+F19+U0/Hd5bJgneVRkCAwEAAaNQME4wHQYDVR0OBBYEFKDN 12 | SZtt47ttOBDQzIchFYyxsg3mMB8GA1UdIwQYMBaAFKDNSZtt47ttOBDQzIchFYyx 13 | sg3mMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBABaZctNrn4gLmNf/ 14 | eNJ3x5CJIPjPwm6j9nwKhtadJ6BF+TIzSkJuHSgxULjW436F37otv94NPzT5PCBF 15 | WxgXoqgLqnWwvsaqC4LUEjsZviWW4CB824YDUquEUVGFLE/U5KTZ7Kh1ceyUk4N8 16 | +mtkXkanWoBBk0OF24lNrAsNLB63yTLr9HxEe75+kmvxf1qVJUGtaOEWIhiFMiAB 17 | 5D4w/j2EFWktumjuy5TTwU0zhl52bc8V9SNixM1IaqzNrVPrdjv8viUX548pU3WT 18 | xZ5ylDsxhMC1q4BXQVeIY8C0cMEX+WHOmOCvWrkxCkP91pKsSPkuVrWlzrkn8Ojo 19 | swP6sBw= 20 | -----END CERTIFICATE----- 21 | -------------------------------------------------------------------------------- /src/template/react-widget-dev/src/plugins/infoCardPlugin.jsx: -------------------------------------------------------------------------------- 1 | export class InfoCardPlugin { 2 | rendererName = 'react-info-card'; 3 | $schema = '/schemas/UnkownSchema.json'; 4 | name = 'react-info-card'; 5 | description = '信息展示卡片'; 6 | tags = ['widget-dev']; 7 | icon = 'fa fa-file-code-o'; 8 | scaffold = { 9 | type: 'react-info-card', 10 | label: 'react-info-card', 11 | name: 'react-info-card', 12 | }; 13 | previewSchema = { 14 | type: 'react-info-card', 15 | label: 'react-info-card', 16 | }; 17 | 18 | panelTitle = '配置'; 19 | 20 | panelControls = [ 21 | { 22 | type: 'textarea', 23 | name: 'title', 24 | label: '卡片title', 25 | value: 26 | 'amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可以减少页面开发工作量,极大提升效率。', 27 | }, 28 | { 29 | type: 'text', 30 | name: 'backgroundImage', 31 | label: '展示图片', 32 | value: 33 | 'https://search-operate.cdn.bcebos.com/64c279f23794a831f9a8e7a4e0b722dd.jpg', 34 | }, 35 | { 36 | type: 'input-number', 37 | name: 'img_count', 38 | label: '图片数量', 39 | value: 3, 40 | }, 41 | { 42 | type: 'input-number', 43 | name: 'comment_count', 44 | label: '评论数', 45 | value: 2021, 46 | }, 47 | ]; 48 | } 49 | 50 | export default InfoCardPlugin; 51 | -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "commonjs": true 4 | }, 5 | "extends": "eslint:recommended", 6 | "parser": "babel-eslint", 7 | "parserOptions": { 8 | "sourceType": "module", 9 | "ecmaFeatures": { 10 | "experimentalObjectRestSpread": true, 11 | "jsx": true 12 | } 13 | }, 14 | "globals": { 15 | "loadData": false, 16 | "saveData": false, 17 | "history": false, 18 | "console": false, 19 | "setTimeout": false, 20 | "clearTimeout": false, 21 | "setInterval": false, 22 | "clearInterval": false 23 | }, 24 | "plugins": [ 25 | "hybrid" 26 | ], 27 | "rules": { 28 | "indent": [ 29 | "warn", 30 | 2 31 | ], 32 | "no-console": [ 33 | "warn", 34 | { 35 | "allow": [ 36 | "info", 37 | "warn", 38 | "error" 39 | ] 40 | } 41 | ], 42 | "no-unused-vars": [ 43 | "warn", 44 | { 45 | "varsIgnorePattern": "prompt" 46 | } 47 | ], 48 | "quotes": [ 49 | "warn", 50 | "single", 51 | { 52 | "avoidEscape": true, 53 | "allowTemplateLiterals": true 54 | } 55 | ], 56 | "linebreak-style": [ 57 | "warn", 58 | "unix" 59 | ], 60 | "semi": [ 61 | "warn", 62 | "never" 63 | ] 64 | } 65 | } -------------------------------------------------------------------------------- /src/template/qapp-ui-custom-widget/quickapp.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | // const nodeExternals = require('webpack-node-externals'); 3 | 4 | // 统一路径解析 5 | function resolve(dir) { 6 | return path.resolve(__dirname, dir); 7 | } 8 | 9 | // 构建快应用自定义组件需要 10 | module.exports = { 11 | // hap命令构建时的配置参数 12 | cli: { 13 | enableE2e: false, // 是否开启 e2e 测试 14 | devtool: 'source-map' // webpack 的devtool选项,默认为 none 15 | }, 16 | sourceRoot: 'src', // process.env.BUILD_MODE === 'widget' ? 'src/components' : 'src', 17 | // 采用webpack编译时的配置 18 | webpack: { 19 | mode: 'production', // 'development'(开发模式),'production'(生产模式) 20 | target: ['web', 'es5'], // 使用共同的特性子集 21 | resolve: { 22 | extensions: ['.ux', '.js', '.jsx', '.ts', '.tsx', '.vue', '.esm.js', '.umd.js', '.min.js', '.json'], // 用于配置webpack在尝试过程中用到的后缀列表 23 | alias: { 24 | '@': resolve('src'), 25 | } 26 | }, 27 | module: { 28 | rules: [ 29 | { 30 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, 31 | use: [ 32 | { 33 | loader: 'url-loader', 34 | options: { 35 | limit: 10000 36 | } 37 | } 38 | ] 39 | } 40 | ] 41 | }, 42 | plugins: [] 43 | } 44 | } 45 | // 其他编译时配置项见:https://doc.quickapp.cn/ide/toolkit-config.html?h=outputPath -------------------------------------------------------------------------------- /src/template/vue3-amis-custom-widget/commitlint.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * https://www.npmjs.com/package/@commitlint/config-conventional\ 3 | * 4 | * Git提交规范-配置文件 5 | * Commit message 由Header、Body 和 Footer三个部分组成,其格式如下: 6 | * (): 7 | * 8 | * 9 | * 10 | *