├── tansci-boot-ui
├── src
│ ├── composables
│ │ ├── index.ts
│ │ └── dark.ts
│ ├── components
│ │ ├── layout
│ │ │ ├── Empty.vue
│ │ │ ├── None.vue
│ │ │ ├── component
│ │ │ │ └── TbSubmenu.vue
│ │ │ └── LowcodeEngine.vue
│ │ ├── bpmn
│ │ │ ├── translate
│ │ │ │ └── translate.ts
│ │ │ └── BpmnViewer.vue
│ │ └── ElIcon.vue
│ ├── views
│ │ ├── common
│ │ │ ├── 404.vue
│ │ │ ├── 500.vue
│ │ │ ├── Component.vue
│ │ │ └── Iframe.vue
│ │ ├── lowcode
│ │ │ └── Interface.vue
│ │ └── monitor
│ │ │ └── LoginLog.vue
│ ├── assets
│ │ └── image
│ │ │ ├── gzh.jpg
│ │ │ ├── logo.png
│ │ │ ├── header-bg.png
│ │ │ └── login-left.png
│ ├── App.vue
│ ├── utils
│ │ ├── globalProperties.ts
│ │ ├── global.ts
│ │ ├── hasPermission.ts
│ │ ├── common.ts
│ │ └── request.ts
│ ├── config
│ │ └── config.ts
│ ├── env.d.ts
│ ├── api
│ │ ├── monitor
│ │ │ ├── loginLog.ts
│ │ │ ├── operLog.ts
│ │ │ └── onlineUser.ts
│ │ ├── system
│ │ │ ├── menu.ts
│ │ │ ├── org.ts
│ │ │ └── dict.ts
│ │ ├── lowcode
│ │ │ ├── lcPagesClassify.ts
│ │ │ └── codeGen.ts
│ │ ├── work
│ │ │ └── model.ts
│ │ └── auth.ts
│ ├── styles
│ │ ├── element
│ │ │ ├── dark.scss
│ │ │ └── index.scss
│ │ └── index.scss
│ ├── main.ts
│ └── router
│ │ ├── staticRouter.ts
│ │ ├── index.ts
│ │ └── permission.ts
├── .npmrc
├── .env.production
├── .env.development
├── public
│ ├── favicon.ico
│ └── gh-pages
│ │ ├── img
│ │ ├── empty.6dbcbb4.png
│ │ └── nav-mode.4a7015c.png
│ │ ├── fonts
│ │ ├── codicon.59002d8.ttf
│ │ ├── iconfont.3f488f9.eot
│ │ ├── iconfont.66e4ab6.woff
│ │ ├── iconfont.d264fb0.ttf
│ │ ├── fa-brands-400.2285773.woff
│ │ ├── fa-brands-400.23f19bb.eot
│ │ ├── fa-brands-400.527940b.ttf
│ │ ├── fa-regular-400.491974d.ttf
│ │ ├── fa-regular-400.77206a6.eot
│ │ ├── fa-solid-900.1551f4f.woff2
│ │ ├── fa-solid-900.9bbb245.eot
│ │ ├── fa-solid-900.be9ee23.ttf
│ │ ├── fa-solid-900.eeccf4f.woff
│ │ ├── fa-brands-400.d878b0a.woff2
│ │ ├── fa-regular-400.7a33376.woff2
│ │ └── fa-regular-400.bb58e57.woff
│ │ ├── scripts
│ │ └── chunk
│ │ │ ├── 4809.7f69d2ee.js.LICENSE.txt
│ │ │ ├── 3959.4752d628.js.LICENSE.txt
│ │ │ ├── 4192.187a5acc.js.LICENSE.txt
│ │ │ ├── 8818.b0274ec8.js.LICENSE.txt
│ │ │ ├── 2752.3c35d123.js.LICENSE.txt
│ │ │ ├── 4630.2976a15e.js.LICENSE.txt
│ │ │ ├── 8579.f23aa4ee.js.LICENSE.txt
│ │ │ ├── 9552.f660f141.js.LICENSE.txt
│ │ │ ├── 1092.86ed4dc9.js.LICENSE.txt
│ │ │ ├── 3622.9d46d65e.js
│ │ │ ├── 5310.3a456b6f.js.LICENSE.txt
│ │ │ ├── 8542.dd18c7ff.js
│ │ │ ├── 1446.c3501647.js
│ │ │ ├── 4974.81f7e861.js.LICENSE.txt
│ │ │ ├── 8390.35d8c0d2.js
│ │ │ ├── 8494.6f3ac9da.js
│ │ │ ├── 3726.e0572bca.js
│ │ │ ├── 4962.3e751581.js
│ │ │ ├── 6185.89ea9014.js
│ │ │ ├── 2692.b612a9ae.js
│ │ │ ├── 8230.e18a62c4.js
│ │ │ ├── 1438.7111b2fc.js
│ │ │ ├── 4114.bbecb523.js
│ │ │ ├── 4334.3d882b86.js
│ │ │ ├── 8902.c5487477.js
│ │ │ ├── 7340.247897bf.js
│ │ │ ├── 2686.b7e6ca7d.js
│ │ │ ├── 5130.599d483e.js
│ │ │ ├── 9510.2684c2bd.js
│ │ │ ├── 1282.51e1292a.js
│ │ │ ├── 398.49688fda.js
│ │ │ ├── 5364.2ae01b76.js
│ │ │ └── 9685.fa7b373f.js
│ │ ├── config.js
│ │ ├── css.worker.js.LICENSE.txt
│ │ ├── html.worker.js.LICENSE.txt
│ │ ├── json.worker.js.LICENSE.txt
│ │ ├── editor.worker.js.LICENSE.txt
│ │ ├── index.html
│ │ └── ts.worker.js.LICENSE.txt
├── .gitignore
├── index.html
├── vite.config.ts
├── tsconfig.json
└── package.json
├── doc
├── amis.png
├── api.png
├── gzh.jpg
├── home.png
├── log.png
├── login.png
├── menu.png
├── LcPages.png
├── home-1.png
├── ifarme.png
├── loginlog.png
└── logo_408c434.png
├── tansci-boot-ui-editor
├── typings.d.ts
├── gh-pages
│ ├── img
│ │ ├── empty.6dbcbb4.png
│ │ └── nav-mode.4a7015c.png
│ ├── fonts
│ │ ├── codicon.59002d8.ttf
│ │ ├── iconfont.3f488f9.eot
│ │ ├── iconfont.66e4ab6.woff
│ │ ├── iconfont.d264fb0.ttf
│ │ ├── fa-brands-400.2285773.woff
│ │ ├── fa-brands-400.23f19bb.eot
│ │ ├── fa-brands-400.527940b.ttf
│ │ ├── fa-regular-400.491974d.ttf
│ │ ├── fa-regular-400.77206a6.eot
│ │ ├── fa-solid-900.1551f4f.woff2
│ │ ├── fa-solid-900.9bbb245.eot
│ │ ├── fa-solid-900.be9ee23.ttf
│ │ ├── fa-solid-900.eeccf4f.woff
│ │ ├── fa-brands-400.d878b0a.woff2
│ │ ├── fa-regular-400.7a33376.woff2
│ │ └── fa-regular-400.bb58e57.woff
│ ├── scripts
│ │ └── chunk
│ │ │ ├── 4809.7f69d2ee.js.LICENSE.txt
│ │ │ ├── 3959.4752d628.js.LICENSE.txt
│ │ │ ├── 4192.187a5acc.js.LICENSE.txt
│ │ │ ├── 8818.b0274ec8.js.LICENSE.txt
│ │ │ ├── 2752.3c35d123.js.LICENSE.txt
│ │ │ ├── 4630.2976a15e.js.LICENSE.txt
│ │ │ ├── 8579.f23aa4ee.js.LICENSE.txt
│ │ │ ├── 9552.f660f141.js.LICENSE.txt
│ │ │ ├── 1092.86ed4dc9.js.LICENSE.txt
│ │ │ ├── 3622.9d46d65e.js
│ │ │ ├── 5310.3a456b6f.js.LICENSE.txt
│ │ │ ├── 8542.dd18c7ff.js
│ │ │ ├── 1446.c3501647.js
│ │ │ ├── 4974.81f7e861.js.LICENSE.txt
│ │ │ ├── 8390.35d8c0d2.js
│ │ │ ├── 8494.6f3ac9da.js
│ │ │ ├── 3726.e0572bca.js
│ │ │ ├── 4962.3e751581.js
│ │ │ ├── 6185.89ea9014.js
│ │ │ ├── 2692.b612a9ae.js
│ │ │ ├── 8230.e18a62c4.js
│ │ │ ├── 1438.7111b2fc.js
│ │ │ ├── 4114.bbecb523.js
│ │ │ ├── 4334.3d882b86.js
│ │ │ ├── 8902.c5487477.js
│ │ │ ├── 7340.247897bf.js
│ │ │ ├── 2686.b7e6ca7d.js
│ │ │ ├── 5130.599d483e.js
│ │ │ ├── 9510.2684c2bd.js
│ │ │ ├── 1282.51e1292a.js
│ │ │ ├── 398.49688fda.js
│ │ │ ├── 5364.2ae01b76.js
│ │ │ ├── 9685.fa7b373f.js
│ │ │ └── 8332.0f8656a5.js
│ ├── config.js
│ ├── css.worker.js.LICENSE.txt
│ ├── html.worker.js.LICENSE.txt
│ ├── json.worker.js.LICENSE.txt
│ ├── editor.worker.js.LICENSE.txt
│ ├── index.html
│ └── ts.worker.js.LICENSE.txt
├── public
│ └── config.js
├── README.md
├── src
│ ├── icons
│ │ ├── index.tsx
│ │ ├── h5-preview.svg
│ │ └── pc-preview.svg
│ ├── route
│ │ ├── NotFound.tsx
│ │ └── index.tsx
│ ├── store
│ │ └── Page.ts
│ ├── renderer
│ │ └── MyRenderer.tsx
│ ├── index.tsx
│ ├── index.html
│ ├── editor
│ │ ├── DisabledEditorPlugin.tsx
│ │ └── MyRenderer.tsx
│ ├── component
│ │ └── AddPageModal.tsx
│ └── App.tsx
├── .prettierrc
├── tsconfig.json
├── .gitignore
├── package.json
└── amis.config.js
├── tansci-boot
└── src
│ ├── test
│ └── java
│ │ └── com
│ │ └── tansci
│ │ └── TansciBootApplicationTests.java
│ └── main
│ ├── java
│ └── com
│ │ └── tansci
│ │ ├── TansciBootApplication.java
│ │ ├── common
│ │ ├── constant
│ │ │ └── Constants.java
│ │ └── WrapMapper.java
│ │ ├── model
│ │ └── CodeCacheMap.java
│ │ ├── utils
│ │ ├── UUIDUtils.java
│ │ ├── Md5Utils.java
│ │ └── Sha256Util.java
│ │ ├── handler
│ │ ├── GlobalExceptionHandler.java
│ │ └── ResponseFunctionExtension.java
│ │ └── config
│ │ └── MagicAPIJsonConfig.java
│ └── resources
│ ├── application-dev.yml
│ └── application.yml
├── .gitignore
├── pom.xml
└── LICENSE
/tansci-boot-ui/src/composables/index.ts:
--------------------------------------------------------------------------------
1 | export * from './dark'
2 |
--------------------------------------------------------------------------------
/doc/amis.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/doc/amis.png
--------------------------------------------------------------------------------
/doc/api.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/doc/api.png
--------------------------------------------------------------------------------
/doc/gzh.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/doc/gzh.jpg
--------------------------------------------------------------------------------
/doc/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/doc/home.png
--------------------------------------------------------------------------------
/doc/log.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/doc/log.png
--------------------------------------------------------------------------------
/doc/login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/doc/login.png
--------------------------------------------------------------------------------
/doc/menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/doc/menu.png
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/typings.d.ts:
--------------------------------------------------------------------------------
1 | interface Window {
2 | common: any;
3 | }
--------------------------------------------------------------------------------
/tansci-boot-ui/.npmrc:
--------------------------------------------------------------------------------
1 | shamefully-hoist=true
2 | strict-peer-dependencies=false
3 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/components/layout/Empty.vue:
--------------------------------------------------------------------------------
1 |
2 | 空页面
3 |
--------------------------------------------------------------------------------
/doc/LcPages.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/doc/LcPages.png
--------------------------------------------------------------------------------
/doc/home-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/doc/home-1.png
--------------------------------------------------------------------------------
/doc/ifarme.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/doc/ifarme.png
--------------------------------------------------------------------------------
/doc/loginlog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/doc/loginlog.png
--------------------------------------------------------------------------------
/doc/logo_408c434.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/doc/logo_408c434.png
--------------------------------------------------------------------------------
/tansci-boot-ui/src/views/common/404.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | 404
4 |
5 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/views/common/500.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | 500
4 |
5 |
--------------------------------------------------------------------------------
/tansci-boot-ui/.env.production:
--------------------------------------------------------------------------------
1 | VITE_BASE_API = 'http://localhost:8000/'
2 | VITE_EDITOR_URL = 'http://localhost:5173'
--------------------------------------------------------------------------------
/tansci-boot-ui/.env.development:
--------------------------------------------------------------------------------
1 | VITE_BASE_API = 'http://localhost:7000/tansci'
2 | VITE_EDITOR_URL = 'http://localhost:5173'
--------------------------------------------------------------------------------
/tansci-boot-ui/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/favicon.ico
--------------------------------------------------------------------------------
/tansci-boot-ui/src/assets/image/gzh.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/src/assets/image/gzh.jpg
--------------------------------------------------------------------------------
/tansci-boot-ui/src/assets/image/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/src/assets/image/logo.png
--------------------------------------------------------------------------------
/tansci-boot-ui/src/assets/image/header-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/src/assets/image/header-bg.png
--------------------------------------------------------------------------------
/tansci-boot-ui/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/assets/image/login-left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/src/assets/image/login-left.png
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/img/empty.6dbcbb4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/img/empty.6dbcbb4.png
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/img/empty.6dbcbb4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/img/empty.6dbcbb4.png
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/img/nav-mode.4a7015c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/img/nav-mode.4a7015c.png
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/img/nav-mode.4a7015c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/img/nav-mode.4a7015c.png
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/codicon.59002d8.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/codicon.59002d8.ttf
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/iconfont.3f488f9.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/iconfont.3f488f9.eot
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/iconfont.66e4ab6.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/iconfont.66e4ab6.woff
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/iconfont.d264fb0.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/iconfont.d264fb0.ttf
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/codicon.59002d8.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/codicon.59002d8.ttf
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/iconfont.3f488f9.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/iconfont.3f488f9.eot
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/iconfont.66e4ab6.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/iconfont.66e4ab6.woff
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/iconfont.d264fb0.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/iconfont.d264fb0.ttf
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/4809.7f69d2ee.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /* @license
2 | Papa Parse
3 | v5.4.1
4 | https://github.com/mholt/PapaParse
5 | License: MIT
6 | */
7 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/4809.7f69d2ee.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /* @license
2 | Papa Parse
3 | v5.4.1
4 | https://github.com/mholt/PapaParse
5 | License: MIT
6 | */
7 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/fa-brands-400.2285773.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/fa-brands-400.2285773.woff
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/fa-brands-400.23f19bb.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/fa-brands-400.23f19bb.eot
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/fa-brands-400.527940b.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/fa-brands-400.527940b.ttf
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/fa-regular-400.491974d.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/fa-regular-400.491974d.ttf
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/fa-regular-400.77206a6.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/fa-regular-400.77206a6.eot
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/fa-solid-900.1551f4f.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/fa-solid-900.1551f4f.woff2
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/fa-solid-900.9bbb245.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/fa-solid-900.9bbb245.eot
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/fa-solid-900.be9ee23.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/fa-solid-900.be9ee23.ttf
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/fa-solid-900.eeccf4f.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/fa-solid-900.eeccf4f.woff
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/fa-brands-400.2285773.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/fa-brands-400.2285773.woff
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/fa-brands-400.23f19bb.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/fa-brands-400.23f19bb.eot
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/fa-brands-400.527940b.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/fa-brands-400.527940b.ttf
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/fa-regular-400.491974d.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/fa-regular-400.491974d.ttf
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/fa-regular-400.77206a6.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/fa-regular-400.77206a6.eot
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/fa-solid-900.1551f4f.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/fa-solid-900.1551f4f.woff2
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/fa-solid-900.9bbb245.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/fa-solid-900.9bbb245.eot
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/fa-solid-900.be9ee23.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/fa-solid-900.be9ee23.ttf
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/fa-solid-900.eeccf4f.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/fa-solid-900.eeccf4f.woff
--------------------------------------------------------------------------------
/tansci-boot-ui/src/composables/dark.ts:
--------------------------------------------------------------------------------
1 | import { useDark, useToggle } from '@vueuse/core'
2 |
3 | export const isDark = useDark()
4 | export const toggleDark = useToggle(isDark)
5 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/fa-brands-400.d878b0a.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/fa-brands-400.d878b0a.woff2
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/fa-regular-400.7a33376.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/fa-regular-400.7a33376.woff2
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/fonts/fa-regular-400.bb58e57.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui-editor/gh-pages/fonts/fa-regular-400.bb58e57.woff
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/fa-brands-400.d878b0a.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/fa-brands-400.d878b0a.woff2
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/fa-regular-400.7a33376.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/fa-regular-400.7a33376.woff2
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/fonts/fa-regular-400.bb58e57.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/typ1805/tansci-boot/master/tansci-boot-ui/public/gh-pages/fonts/fa-regular-400.bb58e57.woff
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/config.js:
--------------------------------------------------------------------------------
1 | window.common={API_QUERY_URL:"http://localhost:7000/tansci/lcPages/get/",API_SAVE_URL:"http://localhost:7000/tansci/lcPages/update",TOKEN_KEY:"token"};
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/config.js:
--------------------------------------------------------------------------------
1 | window.common={API_QUERY_URL:"http://localhost:7000/tansci/lowcode/lcPages/get/",API_SAVE_URL:"http://localhost:7000/tansci/lowcode/lcPages/update",TOKEN_KEY:"token"};
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/3959.4752d628.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */
2 |
3 | /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
4 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/3959.4752d628.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */
2 |
3 | /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
4 |
--------------------------------------------------------------------------------
/tansci-boot-ui/.gitignore:
--------------------------------------------------------------------------------
1 | .vite-ssg-temp
2 |
3 | node_modules
4 | .DS_Store
5 | dist
6 | dist-ssr
7 | *.local
8 |
9 | # lock
10 | yarn.lock
11 | package-lock.json
12 | pnpm-lock.yaml
13 |
14 | *.log
15 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/utils/globalProperties.ts:
--------------------------------------------------------------------------------
1 | // 全局变量
2 |
3 | import global from './global'
4 |
5 | const install = (app) => {
6 | app.config.globalProperties.$global = global
7 | }
8 | export default install
9 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/public/config.js:
--------------------------------------------------------------------------------
1 | window.common = {
2 | API_QUERY_URL: 'http://localhost:7000/tansci/lowcode/lcPages/get/',
3 | API_SAVE_URL: 'http://localhost:7000/tansci/lowcode/lcPages/update',
4 | TOKEN_KEY: 'token'
5 | }
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/4192.187a5acc.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
3 | * License https://froala.com/wysiwyg-editor/terms/
4 | * Copyright 2014-2020 Froala Labs
5 | */
6 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/4192.187a5acc.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * froala_editor v3.1.0 (https://www.froala.com/wysiwyg-editor)
3 | * License https://froala.com/wysiwyg-editor/terms/
4 | * Copyright 2014-2020 Froala Labs
5 | */
6 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/config/config.ts:
--------------------------------------------------------------------------------
1 | // 全局不动配置项 只做导出不做修改
2 |
3 | // 首页地址(默认)
4 | export const HOME_URL: string = "/index/index";
5 |
6 | // Tabs(黑名单地址,不需要添加到 tabs 的路由地址)
7 | export const TABS_BLACK_LIST: string[] = ["/404", "/500", "/login"];
8 |
9 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/README.md:
--------------------------------------------------------------------------------
1 | # tansci-boot-ui-editor
2 |
3 | ## 本地运行这个项目
4 |
5 | - npm i 安装依赖
6 | - npm run dev 等编译完成后本地打开页面看效果
7 |
8 | ## 官方 DEMO
9 | [https://github.com/aisuda/amis-editor-demo/tree/master](https://github.com/aisuda/amis-editor-demo/tree/master)
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/8818.b0274ec8.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */
2 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/8818.b0274ec8.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */
2 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/css.worker.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * tansci-boot-ui-editor v2.0.0
3 | * author: fex
4 | * build tool: AKFun
5 | * build time: Wed Apr 03 2024 15:15:13 GMT+0800 (中国标准时间)
6 | * build tool info: https://github.com/wibetter/akfun
7 | */
8 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/html.worker.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * tansci-boot-ui-editor v2.0.0
3 | * author: fex
4 | * build tool: AKFun
5 | * build time: Wed Apr 03 2024 15:15:13 GMT+0800 (中国标准时间)
6 | * build tool info: https://github.com/wibetter/akfun
7 | */
8 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/json.worker.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * tansci-boot-ui-editor v2.0.0
3 | * author: fex
4 | * build tool: AKFun
5 | * build time: Wed Apr 03 2024 15:15:13 GMT+0800 (中国标准时间)
6 | * build tool info: https://github.com/wibetter/akfun
7 | */
8 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/css.worker.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * tansci-boot-ui-editor v2.0.0
3 | * author: fex
4 | * build tool: AKFun
5 | * build time: Wed Apr 03 2024 15:15:13 GMT+0800 (中国标准时间)
6 | * build tool info: https://github.com/wibetter/akfun
7 | */
8 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/html.worker.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * tansci-boot-ui-editor v2.0.0
3 | * author: fex
4 | * build tool: AKFun
5 | * build time: Wed Apr 03 2024 15:15:13 GMT+0800 (中国标准时间)
6 | * build tool info: https://github.com/wibetter/akfun
7 | */
8 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/json.worker.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * tansci-boot-ui-editor v2.0.0
3 | * author: fex
4 | * build tool: AKFun
5 | * build time: Wed Apr 03 2024 15:15:13 GMT+0800 (中国标准时间)
6 | * build tool info: https://github.com/wibetter/akfun
7 | */
8 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/editor.worker.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * tansci-boot-ui-editor v2.0.0
3 | * author: fex
4 | * build tool: AKFun
5 | * build time: Wed Apr 03 2024 15:15:13 GMT+0800 (中国标准时间)
6 | * build tool info: https://github.com/wibetter/akfun
7 | */
8 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/editor.worker.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * tansci-boot-ui-editor v2.0.0
3 | * author: fex
4 | * build tool: AKFun
5 | * build time: Wed Apr 03 2024 15:15:13 GMT+0800 (中国标准时间)
6 | * build tool info: https://github.com/wibetter/akfun
7 | */
8 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/2752.3c35d123.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * Cropper.js v1.6.1
3 | * https://fengyuanchen.github.io/cropperjs
4 | *
5 | * Copyright 2015-present Chen Fengyuan
6 | * Released under the MIT license
7 | *
8 | * Date: 2023-09-17T03:44:19.860Z
9 | */
10 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/2752.3c35d123.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * Cropper.js v1.6.1
3 | * https://fengyuanchen.github.io/cropperjs
4 | *
5 | * Copyright 2015-present Chen Fengyuan
6 | * Released under the MIT license
7 | *
8 | * Date: 2023-09-17T03:44:19.860Z
9 | */
10 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/utils/global.ts:
--------------------------------------------------------------------------------
1 | // 全局变量配置
2 | export default {
3 | title: 'Tansci Boot',
4 | baseApi: import.meta.env.VITE_BASE_API,
5 | editorUrl: import.meta.env.VITE_EDITOR_URL,
6 | cardShadow: 'always',
7 | user: {
8 | info: {},
9 | authorities: [],
10 | },
11 | }
12 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/views/common/Component.vue:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
3 | declare module "*.vue" {
4 | import { DefineComponent } from "vue";
5 | // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
6 | const component: DefineComponent<{}, {}, any>;
7 | export default component;
8 | }
9 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/4630.2976a15e.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!---------------------------------------------------------------------------------------------
2 | * Copyright (C) David Owens II, owensd.io. All rights reserved.
3 | *--------------------------------------------------------------------------------------------*/
4 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/4630.2976a15e.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!---------------------------------------------------------------------------------------------
2 | * Copyright (C) David Owens II, owensd.io. All rights reserved.
3 | *--------------------------------------------------------------------------------------------*/
4 |
--------------------------------------------------------------------------------
/tansci-boot/src/test/java/com/tansci/TansciBootApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.tansci;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class TansciBootApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/components/layout/None.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/src/icons/index.tsx:
--------------------------------------------------------------------------------
1 | /**
2 | * @file 内置 svg 图标
3 | */
4 |
5 | import {Icon, registerIcon} from 'amis';
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 |
--------------------------------------------------------------------------------
/tansci-boot-ui/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Tansci Boot
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tansci-boot/src/main/java/com/tansci/TansciBootApplication.java:
--------------------------------------------------------------------------------
1 | package com.tansci;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class TansciBootApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(TansciBootApplication.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/8579.f23aa4ee.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * @overview es6-promise - a tiny implementation of Promises/A+.
3 | * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
4 | * @license Licensed under MIT license
5 | * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
6 | * @version v4.2.8+1e68dce6
7 | */
8 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/8579.f23aa4ee.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * @overview es6-promise - a tiny implementation of Promises/A+.
3 | * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
4 | * @license Licensed under MIT license
5 | * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
6 | * @version v4.2.8+1e68dce6
7 | */
8 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "printWidth": 80,
3 | "tabWidth": 2,
4 | "useTabs": false,
5 | "singleQuote": true,
6 | "semi": true,
7 | "trailingComma": "none",
8 | "bracketSpacing": false,
9 | "quoteProps": "consistent",
10 | "arrowParens": "avoid",
11 | "jsxBracketSameLine": false,
12 | "overrides": [
13 | {
14 | "files": ["fis-conf.js"],
15 | "options": {
16 | "tabWidth": 4
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/src/route/NotFound.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import {Link} from 'react-router-dom';
3 | import {NotFound} from 'amis';
4 |
5 | export default () => (
6 |
9 |
10 |
11 | 去首页
12 |
13 | }
14 | footerText={''}
15 | />
16 | );
17 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/api/monitor/loginLog.ts:
--------------------------------------------------------------------------------
1 | import request from '@/utils/request'
2 |
3 | // 列表
4 | export function page(params:any){
5 | return new Promise((resolve, reject) => {
6 | request({
7 | url: '/tansci/monitor/loginLog',
8 | method: 'get',
9 | params: params
10 | }).then((res:any) => {
11 | resolve(res.data)
12 | }).catch((e:any) => {
13 | reject(e)
14 | })
15 | })
16 | }
17 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/api/monitor/operLog.ts:
--------------------------------------------------------------------------------
1 | import request from '@/utils/request'
2 |
3 | // 列表
4 | export function page(params:any){
5 | return new Promise((resolve, reject) => {
6 | request({
7 | url: '/tansci/monitor/operLog',
8 | method: 'get',
9 | params: params
10 | }).then((res:any) => {
11 | resolve(res.data)
12 | }).catch((e:any) => {
13 | reject(e)
14 | })
15 | })
16 | }
17 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/styles/element/dark.scss:
--------------------------------------------------------------------------------
1 | $--colors: (
2 | "primary": (
3 | "base": #2F9688,
4 | ),
5 | "success": (
6 | "base": #21ba45,
7 | ),
8 | "warning": (
9 | "base": #f2711c,
10 | ),
11 | "danger": (
12 | "base": #db2828,
13 | ),
14 | "error": (
15 | "base": #db2828,
16 | ),
17 | "info": (
18 | "base": #909399,
19 | )
20 | );
21 |
22 |
23 | @forward "element-plus/theme-chalk/src/dark/var.scss" with (
24 | $colors: $--colors
25 | );
26 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/9552.f660f141.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * wordcloud2.js
3 | * http://timdream.org/wordcloud2.js/
4 | *
5 | * Copyright 2011 - 2019 Tim Guan-tin Chien and contributors.
6 | * Released under the MIT license
7 | */
8 |
9 | /*!**************************!*\
10 | !*** external "echarts" ***!
11 | \**************************/
12 |
13 | /*!******************************!*\
14 | !*** ./index.js + 4 modules ***!
15 | \******************************/
16 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/9552.f660f141.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * wordcloud2.js
3 | * http://timdream.org/wordcloud2.js/
4 | *
5 | * Copyright 2011 - 2019 Tim Guan-tin Chien and contributors.
6 | * Released under the MIT license
7 | */
8 |
9 | /*!**************************!*\
10 | !*** external "echarts" ***!
11 | \**************************/
12 |
13 | /*!******************************!*\
14 | !*** ./index.js + 4 modules ***!
15 | \******************************/
16 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/views/common/Iframe.vue:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
23 |
24 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/src/store/Page.ts:
--------------------------------------------------------------------------------
1 | import {types, getEnv} from 'mobx-state-tree';
2 | export const PageStore = types
3 | .model('Page', {
4 | id: types.identifier,
5 | icon: '',
6 | path: '',
7 | label: '',
8 | schema: types.frozen({})
9 | })
10 | .views(self => ({}))
11 | .actions(self => {
12 | function updateSchema(schema: any) {
13 | self.schema = schema;
14 | }
15 |
16 | return {
17 | updateSchema
18 | };
19 | });
20 |
21 | export type IPageStore = typeof PageStore.Type;
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | README.md
2 | target/
3 | !.mvn/wrapper/maven-wrapper.jar
4 | !**/src/main/**/target/
5 | !**/src/test/**/target/
6 |
7 | ### STS ###
8 | .apt_generated
9 | .classpath
10 | .factorypath
11 | .project
12 | .settings
13 | .springBeans
14 | .sts4-cache
15 |
16 | ### IntelliJ IDEA ###
17 | .idea
18 | *.iws
19 | *.iml
20 | *.ipr
21 |
22 | ### NetBeans ###
23 | /nbproject/private/
24 | /nbbuild/
25 | /dist/
26 | /nbdist/
27 | /.nb-gradle/
28 | build/
29 | !**/src/main/**/build/
30 | !**/src/test/**/build/
31 |
32 | ### VS Code ###
33 | .vscode/
34 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/utils/hasPermission.ts:
--------------------------------------------------------------------------------
1 | // 权限
2 | const hasPermission = {
3 | install(app:any) {
4 | app.directive('permission', {
5 | mounted(el:any, binding:any) {
6 | if (binding.value) {
7 | const permissionList = app.config.globalProperties.$global.user.authorities
8 | if (permissionList && permissionList.length && !permissionList.includes(binding.value)) {
9 | el.remove()
10 | }
11 | }
12 | }
13 | })
14 | }
15 | }
16 |
17 | export default hasPermission
--------------------------------------------------------------------------------
/tansci-boot/src/main/java/com/tansci/common/constant/Constants.java:
--------------------------------------------------------------------------------
1 | package com.tansci.common.constant;
2 |
3 | /**
4 | * @ClassName: Constants.java
5 | * @ClassPath: com.tansci.common.constant.Constants.java
6 | * @Description: 常量
7 | * @Author: tanyp
8 | * @Date: 2023/3/20 17:02
9 | **/
10 | public class Constants {
11 |
12 | /**
13 | * 权限校验
14 | */
15 | public final static String PERMISSION_KEY = "permission-session";
16 | /**
17 | * 角色校验
18 | */
19 | public final static String ROLE_KEY = "role-session";
20 |
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/views/lowcode/Interface.vue:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/src/renderer/MyRenderer.tsx:
--------------------------------------------------------------------------------
1 | import {Renderer} from 'amis';
2 | import {RendererProps} from 'amis';
3 | import React from 'react';
4 |
5 | export interface MyRendererProps extends RendererProps {
6 | target?: string;
7 | }
8 |
9 | @Renderer({
10 | test: /\bmy-renderer$/,
11 | name: 'my-renderer'
12 | })
13 | export default class MyRenderer extends React.Component {
14 | static defaultProps = {
15 | target: 'world'
16 | };
17 |
18 | render() {
19 | const {target} = this.props;
20 |
21 | return Hello {target}! @amis-editor
;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/1092.86ed4dc9.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /**
2 | @license @nocompile
3 | Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4 | This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5 | The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 | The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7 | Code distributed by Google as part of the polymer project is also
8 | subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9 | */
10 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/1092.86ed4dc9.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /**
2 | @license @nocompile
3 | Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4 | This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5 | The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 | The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7 | Code distributed by Google as part of the polymer project is also
8 | subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9 | */
10 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/components/bpmn/translate/translate.ts:
--------------------------------------------------------------------------------
1 | import translations from "./zh";
2 |
3 | export default function customTranslate(template:any, replacements:any) {
4 | replacements = replacements || {};
5 | template = translations[template] || template;
6 | return template.replace(/{([^}]+)}/g, function(_, key) {
7 | let str = replacements[key];
8 | if (
9 | translations[replacements[key]] !== null &&
10 | translations[replacements[key]] !== "undefined"
11 | ) {
12 | str = translations[replacements[key]];
13 | }
14 | return str || "{" + key + "}";
15 | });
16 | }
--------------------------------------------------------------------------------
/tansci-boot-ui/src/styles/element/index.scss:
--------------------------------------------------------------------------------
1 | $--colors: (
2 | "primary": (
3 | "base": #45a79a,
4 | ),
5 | "success": (
6 | "base": #21ba45,
7 | ),
8 | "warning": (
9 | "base": #f2711c,
10 | ),
11 | "danger": (
12 | "base": #db2828,
13 | ),
14 | "error": (
15 | "base": #db2828,
16 | ),
17 | "info": (
18 | "base": #909399,
19 | )
20 | );
21 |
22 | @forward "element-plus/theme-chalk/src/mixins/config.scss" with (
23 | $namespace: "el"
24 | );
25 |
26 | @forward "element-plus/theme-chalk/src/common/var.scss" with (
27 | $colors: $--colors
28 | );
29 |
30 | @use "element-plus/theme-chalk/src/index.scss" as *;
31 |
32 | @use "./dark.scss";
33 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "esnext",
4 | "target": "esnext",
5 | "lib": ["es6", "dom"],
6 | "sourceMap": true,
7 | "jsx": "react",
8 | "moduleResolution": "node",
9 | "rootDir": "./src",
10 | "noImplicitReturns": true,
11 | "noImplicitThis": true,
12 | "noImplicitAny": true,
13 | "strictNullChecks": true,
14 | "experimentalDecorators": true,
15 | "emitDecoratorMetadata": true,
16 | "allowSyntheticDefaultImports": true,
17 | "typeRoots": ["./node_modules/@types", "./typings"]
18 | },
19 | "include": ["**/*"],
20 | "exclude": [
21 | "node_modules"
22 | ],
23 | "types": ["typePatches"]
24 | }
25 |
--------------------------------------------------------------------------------
/tansci-boot-ui/vite.config.ts:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite'
2 | import path from 'path'
3 | import vue from '@vitejs/plugin-vue'
4 |
5 | export default defineConfig({
6 | resolve: {
7 | alias: {
8 | '@': path.resolve(__dirname, 'src'),
9 | },
10 | },
11 | // css: {
12 | // preprocessorOptions: {
13 | // scss: {
14 | // additionalData: `@use "@/styles/element/index.scss" as *;`,
15 | // },
16 | // },
17 | // },
18 | plugins: [
19 | vue()
20 | ],
21 | server: {
22 | proxy: {
23 | '/tansci': {
24 | target: 'http://127.0.0.1:7000',
25 | changeOrigin: true,
26 | pathRewrite: {'^/tansci':'/tansci'}
27 | }
28 | } as any
29 | }
30 | })
31 |
--------------------------------------------------------------------------------
/tansci-boot/src/main/resources/application-dev.yml:
--------------------------------------------------------------------------------
1 | spring:
2 | datasource:
3 | type: com.alibaba.druid.pool.DruidDataSource
4 | driver-class-name: com.mysql.cj.jdbc.Driver
5 | url: jdbc:mysql://127.0.0.1:3306/tansci_boot?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&autoReconnect=true
6 | username: root
7 | password: root
8 | initialSize: 10
9 | minIdle: 10
10 | maxActive: 100
11 | maxWait: 60000
12 | timeBetweenEvictionRunsMillis: 300000
13 | minEvictableIdleTimeMillis: 3600000
14 | validationQuery: SELECT 1 FROM DUAL
15 | testWhileIdle: true
16 | testOnBorrow: false
17 | testOnReturn: false
18 | poolPreparedStatements: true
19 | maxPoolPreparedStatementPerConnectionSize: 20
20 |
--------------------------------------------------------------------------------
/tansci-boot/src/main/java/com/tansci/model/CodeCacheMap.java:
--------------------------------------------------------------------------------
1 | package com.tansci.model;
2 |
3 | import java.util.HashMap;
4 | import java.util.Map;
5 |
6 | /**
7 | * @ClassName: CodeCacheMap.java
8 | * @ClassPath: com.tansci.utils.CodeCacheMap.java
9 | * @Description: 验证码缓存
10 | * @Author: tanyp
11 | * @Date: 2023/3/20 15:34
12 | **/
13 | public class CodeCacheMap {
14 |
15 | private static Map map = new HashMap();
16 |
17 | public static void put(String key, String value) {
18 | map.put(key, value);
19 | }
20 |
21 | public static void remove(String key) {
22 | map.remove(key);
23 | }
24 |
25 | public static String get(String key) {
26 | return map.get(key);
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/tansci-boot-ui/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "typeRoots": [
4 | "node_modules/@types", // 默认值
5 | "src/types"
6 | ],
7 | "baseUrl": "./",
8 | "target": "esnext",
9 | "useDefineForClassFields": true,
10 | "module": "esnext",
11 | "moduleResolution": "node",
12 | "strict": false,
13 | "jsx": "preserve",
14 | "sourceMap": true,
15 | "resolveJsonModule": true,
16 | "isolatedModules": true,
17 | "esModuleInterop": true,
18 | "lib": ["esnext", "dom"],
19 | "paths": {
20 | "@": ["src"],
21 | "@/*": ["src/*"]
22 | },
23 | "skipLibCheck": true
24 | },
25 | "include": [
26 | "src/**/*.ts",
27 | "src/**/*.d.ts",
28 | "src/**/*.tsx",
29 | "src/**/*.vue",
30 | "src/**/**/*.vue"
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/src/index.tsx:
--------------------------------------------------------------------------------
1 | /**
2 | * @file entry of this example.
3 | */
4 | import * as React from 'react';
5 | import ReactDOM from 'react-dom';
6 | import App from './App';
7 | import '@fortawesome/fontawesome-free/css/all.css';
8 | import '@fortawesome/fontawesome-free/css/v4-shims.css';
9 |
10 | import 'amis/lib/themes/cxd.css';
11 | import 'amis/lib/helper.css';
12 | import 'amis/sdk/iconfont.css';
13 | import 'amis-editor-core/lib/style.css';
14 | import './scss/style.scss';
15 | import {setDefaultTheme} from 'amis';
16 | import {setThemeConfig} from 'amis-editor-core';
17 | import themeConfig from 'amis-theme-editor-helper/lib/systemTheme/cxd';
18 |
19 | setDefaultTheme('cxd');
20 | setThemeConfig(themeConfig);
21 |
22 | // react < 18
23 | ReactDOM.render(, document.getElementById('root'));
24 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/main.ts:
--------------------------------------------------------------------------------
1 | import { createApp } from 'vue'
2 | import App from './App.vue'
3 | import router from './router'
4 | import ElementPlus from 'element-plus'
5 | import 'element-plus/dist/index.css'
6 | import './styles/index.scss'
7 | import * as ElIcons from '@element-plus/icons-vue'
8 | import zhCn from 'element-plus/es/locale/lang/zh-cn'
9 | import globalProperties from './utils/globalProperties'
10 | import hasPermission from './utils/hasPermission'
11 | import '@/styles/element/index.scss'
12 |
13 | const app = createApp(App)
14 | app.use(globalProperties)
15 | app.use(router)
16 | app.use(ElementPlus,{
17 | locale: zhCn,
18 | size: 'default',
19 | })
20 | for (const icon in ElIcons) {
21 | app.component(icon, (ElIcons as any)[icon])
22 | }
23 | app.use(hasPermission)
24 | app.mount('#app');
25 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/api/monitor/onlineUser.ts:
--------------------------------------------------------------------------------
1 | import request from '@/utils/request'
2 |
3 | export function page(params:any){
4 | return new Promise((resolve, reject) => {
5 | request({
6 | url: '/tansci/monitor/onlineUser',
7 | method: 'get',
8 | params: params
9 | }).then((res:any) => {
10 | resolve(res.data)
11 | }).catch((e:any) => {
12 | reject(e)
13 | })
14 | })
15 | }
16 |
17 | export function kick(token:String){
18 | return new Promise((resolve, reject) => {
19 | request({
20 | url: '/tansci/monitor/kick/' + token,
21 | method: 'get'
22 | }).then((res:any) => {
23 | resolve(res.data)
24 | }).catch((e:any) => {
25 | reject(e)
26 | })
27 | })
28 | }
29 |
--------------------------------------------------------------------------------
/tansci-boot/src/main/java/com/tansci/utils/UUIDUtils.java:
--------------------------------------------------------------------------------
1 | package com.tansci.utils;
2 |
3 | import java.util.UUID;
4 |
5 | /**
6 | * @ClassName: UUIDUtils.java
7 | * @ClassPath: com.tansci.utils.UUIDUtils.java
8 | * @Description: UUID工具类
9 | * @Author: tanyp
10 | * @Date: 2023/3/20 15:33
11 | **/
12 | public class UUIDUtils {
13 |
14 | public static String getUUID() {
15 | return UUID.randomUUID().toString().replaceAll("-", "");
16 | }
17 |
18 | /**
19 | * @MonthName: getUUID
20 | * @Description: 自定义长度
21 | * @Author: tanyp
22 | * @Date: 2022/03/29 10:38
23 | * @Param: [len]
24 | * @return: java.lang.String
25 | **/
26 | public static String getUUID(Integer len) {
27 | return UUID.randomUUID().toString().replaceAll("-", "").substring(0, len);
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | 页面编辑器
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/index.html:
--------------------------------------------------------------------------------
1 | 页面编辑器
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/index.html:
--------------------------------------------------------------------------------
1 | 页面编辑器
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/3622.9d46d65e.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[3622],{3622:function(e,t,n){n.r(t),n.d(t,{conf:function(){return o},language:function(){return s}});var o={comments:{lineComment:"#"}},s={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/3622.9d46d65e.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[3622],{3622:function(e,t,n){n.r(t),n.d(t,{conf:function(){return o},language:function(){return s}});var o={comments:{lineComment:"#"}},s={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/5310.3a456b6f.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*! *****************************************************************************
2 | Copyright (c) Microsoft Corporation.
3 |
4 | Permission to use, copy, modify, and/or distribute this software for any
5 | purpose with or without fee is hereby granted.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9 | AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13 | PERFORMANCE OF THIS SOFTWARE.
14 | ***************************************************************************** */
15 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/5310.3a456b6f.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*! *****************************************************************************
2 | Copyright (c) Microsoft Corporation.
3 |
4 | Permission to use, copy, modify, and/or distribute this software for any
5 | purpose with or without fee is hereby granted.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9 | AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13 | PERFORMANCE OF THIS SOFTWARE.
14 | ***************************************************************************** */
15 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/components/layout/component/TbSubmenu.vue:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | {{data.meta.title}}
13 |
14 |
15 |
16 |
17 |
18 |
19 | {{item.meta.title}}
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/tansci-boot-ui/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tansci-boot-ui",
3 | "private": true,
4 | "version": "1.2.0",
5 | "scripts": {
6 | "dev": "vite",
7 | "build": "vite build",
8 | "generate": "vite-ssg build",
9 | "preview": "vite preview",
10 | "typecheck": "vue-tsc --noEmit"
11 | },
12 | "dependencies": {
13 | "amis": "^6.0.0",
14 | "axios": "^1.3.4",
15 | "bpmn-js": "^18.4.0",
16 | "bpmn-js-properties-panel": "^5.35.0",
17 | "camunda-bpmn-moddle": "^7.0.1",
18 | "copy-to-clipboard": "^3.3.3",
19 | "element-plus": "^2.6.3",
20 | "vue": "^3.4.21",
21 | "vue-router": "^4.1.6"
22 | },
23 | "devDependencies": {
24 | "@types/node": "^18.14.0",
25 | "@vitejs/plugin-vue": "^4.0.0",
26 | "sass": "^1.52.1",
27 | "typescript": "^4.7.2",
28 | "vite": "^4.1.2",
29 | "vite-ssg": "^0.22.1",
30 | "vue-tsc": "^1.1.3"
31 | },
32 | "license": "MIT"
33 | }
34 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 |
6 | org.springframework.boot
7 | spring-boot-starter-parent
8 | 3.1.5
9 |
10 |
11 |
12 | com.tansci
13 | tansci-boot-parent
14 | ${revision}
15 | pom
16 |
17 | tansci-boot-parent
18 | Tansci Boot
19 |
20 |
21 | tansci-boot
22 |
23 |
24 |
25 |
26 | 1.3.0
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/components/layout/LowcodeEngine.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
28 |
30 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/router/staticRouter.ts:
--------------------------------------------------------------------------------
1 | export default[
2 | {
3 | path: '/',
4 | redirect: 'login',
5 | },
6 | {
7 | path: '/login',
8 | name: 'login',
9 | meta: {title: "登录"},
10 | component: () => import("@/views/common/Login.vue"),
11 | },
12 | {
13 | path: '/404',
14 | name: '404',
15 | meta: {title: "404"},
16 | component: () => import('@/views/common/404.vue')
17 | },
18 | {
19 | path: '/500',
20 | name: '500',
21 | meta: {title: "500"},
22 | component: () => import('@/views/common/500.vue')
23 | },
24 | {
25 | path: '/index',
26 | name: 'index',
27 | icon: 'HomeFilled',
28 | meta: { title: "首页" },
29 | isShow: false,
30 | redirect: '/index/index',
31 | component: () => import("@/components/layout/Index.vue"),
32 | children: [
33 | {
34 | path: 'index',
35 | icon: 'HomeFilled',
36 | meta: { title: "首页" },
37 | isShow: false,
38 | component: () => import('@/views/Index.vue')
39 | }
40 | ]
41 | }
42 | ]
--------------------------------------------------------------------------------
/tansci-boot-ui/src/components/ElIcon.vue:
--------------------------------------------------------------------------------
1 |
19 |
20 |
21 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/ts.worker.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * tansci-boot-ui-editor v2.0.0
3 | * author: fex
4 | * build tool: AKFun
5 | * build time: Wed Apr 03 2024 15:15:13 GMT+0800 (中国标准时间)
6 | * build tool info: https://github.com/wibetter/akfun
7 | */
8 |
9 | /*! *****************************************************************************
10 | Copyright (c) Microsoft Corporation. All rights reserved.
11 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use
12 | this file except in compliance with the License. You may obtain a copy of the
13 | License at http://www.apache.org/licenses/LICENSE-2.0
14 |
15 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
17 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
18 | MERCHANTABLITY OR NON-INFRINGEMENT.
19 |
20 | See the Apache Version 2.0 License for specific language governing permissions
21 | and limitations under the License.
22 | ***************************************************************************** */
23 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/ts.worker.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | * tansci-boot-ui-editor v2.0.0
3 | * author: fex
4 | * build tool: AKFun
5 | * build time: Wed Apr 03 2024 15:15:13 GMT+0800 (中国标准时间)
6 | * build tool info: https://github.com/wibetter/akfun
7 | */
8 |
9 | /*! *****************************************************************************
10 | Copyright (c) Microsoft Corporation. All rights reserved.
11 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use
12 | this file except in compliance with the License. You may obtain a copy of the
13 | License at http://www.apache.org/licenses/LICENSE-2.0
14 |
15 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
17 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
18 | MERCHANTABLITY OR NON-INFRINGEMENT.
19 |
20 | See the Apache Version 2.0 License for specific language governing permissions
21 | and limitations under the License.
22 | ***************************************************************************** */
23 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 typ1805
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/8542.dd18c7ff.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[8542],{68542:function(e,n,s){s.r(n),s.d(n,{conf:function(){return t},language:function(){return o}});var t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/8542.dd18c7ff.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[8542],{68542:function(e,n,s){s.r(n),s.d(n,{conf:function(){return t},language:function(){return o}});var t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 |
8 | # Runtime data
9 | pids
10 | *.pid
11 | *.seed
12 | *.pid.lock
13 |
14 | # Directory for instrumented libs generated by jscoverage/JSCover
15 | lib-cov
16 |
17 | # Coverage directory used by tools like istanbul
18 | coverage
19 |
20 | # nyc test coverage
21 | .nyc_output
22 |
23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24 | .grunt
25 |
26 | # Bower dependency directory (https://bower.io/)
27 | bower_components
28 |
29 | # node-waf configuration
30 | .lock-wscript
31 |
32 | # Compiled binary addons (https://nodejs.org/api/addons.html)
33 | build/Release
34 |
35 | # Dependency directories
36 | node_modules/
37 | jspm_packages/
38 |
39 | # TypeScript v1 declaration files
40 | typings/
41 |
42 | # Optional npm cache directory
43 | .npm
44 |
45 | # Optional eslint cache
46 | .eslintcache
47 |
48 | # Optional REPL history
49 | .node_repl_history
50 |
51 | # Output of 'npm pack'
52 | *.tgz
53 |
54 | # Yarn Integrity file
55 | .yarn-integrity
56 |
57 | # dotenv environment variables file
58 | .env
59 |
60 | # next.js build output
61 | .next
62 |
63 | .DS_Store
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/src/icons/h5-preview.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/src/route/index.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import {ToastComponent, AlertComponent, Spinner} from 'amis';
3 | /**
4 | * BrowserRouter: history 路由模式
5 | * HashRouter: hash 路由模式
6 | */
7 | import {Route, Switch, Redirect, HashRouter as Router} from 'react-router-dom';
8 | import {observer} from 'mobx-react';
9 | import {IMainStore} from '../store/index';
10 | // import Preview from './Preview';
11 | // import Editor from './Editor';
12 | const Preview = React.lazy(() => import('./Preview'));
13 | const Editor = React.lazy(() => import('./Editor'));
14 |
15 | export default observer(function ({store}: {store: IMainStore}) {
16 | return (
17 |
18 |
19 |
20 |
21 |
}
23 | >
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | );
33 | });
34 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/styles/index.scss:
--------------------------------------------------------------------------------
1 | // import dark theme
2 | @use "element-plus/theme-chalk/src/dark/css-vars.scss" as *;
3 |
4 | :root {
5 | // 主题
6 | --theme: #45a79a;
7 |
8 | // 文字
9 | --t: #1d1d1f;
10 |
11 | // 局部背景
12 | // --el-bg-color: radial-gradient( white 0%, #FAFDFE 10%, #ddf8e7 50%, #FAFDFE 90%, white 100%);
13 | // --el-bg-color: radial-gradient(#d9f8e5 0%, #FAFDFE 80%, #e7fcef 100%);
14 | --el-bg-color: #f5f5f5;
15 | // 背景色
16 | --bg1: #FAFAFA;
17 |
18 | // 操作颜色
19 | --delete: #f56c6c;
20 | --edit: #0084ff;
21 | --add: #63ba4d;
22 | --query: #909399;
23 | --down: #E6A23C;
24 | --upper: #67C23A;
25 | --role: #006000;
26 | }
27 |
28 | body {
29 | font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB","Microsoft YaHei", "微软雅黑", Arial, sans-serif;
30 | -webkit-font-smoothing: antialiased;
31 | -moz-osx-font-smoothing: grayscale;
32 | margin: 0;
33 | padding: 0;
34 | overflow: hidden;
35 | }
36 |
37 | /**
38 | * 滚动条样式
39 | */
40 | .scroll-div::-webkit-scrollbar{
41 | width: 5px;
42 | height: 1px;
43 | }
44 | .scroll-div::-webkit-scrollbar-thumb {
45 | border-radius: 5px;
46 | background: #909399;
47 | }
48 | .scroll-div::-webkit-scrollbar-track {
49 | border-radius: 5px;
50 | background: #ededed;
51 | }
52 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/src/editor/DisabledEditorPlugin.tsx:
--------------------------------------------------------------------------------
1 | import {registerEditorPlugin, BasePlugin} from 'amis-editor';
2 | import {
3 | RendererEventContext,
4 | SubRendererInfo,
5 | BasicSubRenderInfo,
6 | PluginInterface
7 | } from 'amis-editor';
8 |
9 | /**
10 | * 用于隐藏一些不需要的Editor组件
11 | * 备注: 如果不知道当前Editor中有哪些预置组件,可以在这里设置一个断点,console.log 看一下 renderers。
12 | */
13 |
14 | // 需要在组件面板中隐藏的组件
15 | const disabledRenderers = [
16 | 'audio', // 音频
17 | 'carousel', // 轮播图
18 | 'custom', // 自定义代码
19 | 'log', // 日志
20 | 'sparkline' // 走势图
21 | ];
22 |
23 | export class ManagerEditorPlugin extends BasePlugin {
24 | order = 9999;
25 |
26 | buildSubRenderers(
27 | context: RendererEventContext,
28 | renderers: Array
29 | ): BasicSubRenderInfo | Array | void {
30 | // 更新NPM自定义组件排序和分类
31 | for (let index = 0, size = renderers.length; index < size; index++) {
32 | // 判断是否需要隐藏 Editor预置组件
33 | const pluginRendererName = renderers[index].rendererName;
34 | if (
35 | pluginRendererName &&
36 | disabledRenderers.indexOf(pluginRendererName) > -1
37 | ) {
38 | renderers[index].disabledRendererPlugin = true; // 更新状态
39 | }
40 | }
41 | }
42 | }
43 |
44 | registerEditorPlugin(ManagerEditorPlugin);
45 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/src/editor/MyRenderer.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import {RendererEditor, BasicEditor} from 'amis-editor';
3 |
4 | @RendererEditor('my-renderer', {
5 | name: '自定义渲染器',
6 | description: '这只是个示例',
7 | // docLink: '/docs/renderers/Nav',
8 | type: 'my-renderer',
9 | previewSchema: {
10 | // 用来生成预览图的
11 | type: 'my-renderer',
12 | target: 'demo'
13 | },
14 | scaffold: {
15 | // 拖入组件里面时的初始数据
16 | type: 'my-renderer',
17 | target: '233'
18 | }
19 | })
20 | export default class MyRendererEditor extends BasicEditor {
21 | tipName = '自定义组件';
22 | settingsSchema = {
23 | title: '自定义组件配置',
24 | body: [
25 | {
26 | type: 'tabs',
27 | tabsMode: 'line',
28 | className: 'm-t-n-xs',
29 | contentClassName: 'no-border p-l-none p-r-none',
30 | tabs: [
31 | {
32 | title: '常规',
33 | controls: [
34 | {
35 | name: 'target',
36 | label: 'Target',
37 | type: 'text'
38 | }
39 | ]
40 | },
41 |
42 | {
43 | title: '外观',
44 | controls: []
45 | }
46 | ]
47 | }
48 | ]
49 | };
50 |
51 | // 配置表单一些简单的基本上够用了。
52 | // 还有一些逻辑可以复写来自定义的,但是我现在没时间写说明了。
53 | }
54 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/src/component/AddPageModal.tsx:
--------------------------------------------------------------------------------
1 | import {schema2component} from './AMISRenderer';
2 |
3 | export default schema2component(
4 | {
5 | type: 'dialog',
6 | title: '新增页面',
7 | body: {
8 | type: 'form',
9 | controls: [
10 | {
11 | type: 'text',
12 | label: '名称',
13 | name: 'label',
14 | validations: {
15 | maxLength: 20
16 | },
17 | required: true
18 | },
19 |
20 | {
21 | type: 'text',
22 | label: '路径',
23 | name: 'path',
24 | validations: {
25 | isUrlPath: true
26 | },
27 | required: true,
28 | validate(values: any, value: string) {
29 | const exists = !!values.pages.filter(
30 | (item: any) => item.path === value
31 | ).length;
32 | return exists ? '当前路径已被占用,请换一个' : '';
33 | }
34 | },
35 |
36 | {
37 | type: 'icon-picker',
38 | label: '图标',
39 | name: 'icon'
40 | }
41 | ]
42 | }
43 | },
44 | ({onConfirm, pages, ...rest}: any) => {
45 | return {
46 | ...rest,
47 | data: {
48 | pages
49 | },
50 | onConfirm: (values: Array) => onConfirm && onConfirm(values[0])
51 | };
52 | }
53 | );
54 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/src/icons/pc-preview.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/1446.c3501647.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[1446],{21446:function(t,r,e){e.r(r),e.d(r,{conf:function(){return s},language:function(){return o}});var s={brackets:[],autoClosingPairs:[],surroundingPairs:[]},o={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=>
5 |
6 | (c) 2009-2016 Stuart Knightley
7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
8 |
9 | JSZip uses the library pako released under the MIT license :
10 | https://github.com/nodeca/pako/blob/main/LICENSE
11 | */
12 |
13 | /*!
14 | * The buffer module from node.js, for the browser.
15 | *
16 | * @author Feross Aboukhadijeh
17 | * @license MIT
18 | */
19 |
20 | /*! ExcelJS 19-10-2023 */
21 |
22 | /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */
23 |
24 | /*! safe-buffer. MIT License. Feross Aboukhadijeh */
25 |
26 | /**
27 | * Character class utilities for XML NS 1.0 edition 3.
28 | *
29 | * @author Louis-Dominique Dubeau
30 | * @license MIT
31 | * @copyright Louis-Dominique Dubeau
32 | */
33 |
34 | /**
35 | * Character classes and associated utilities for the 2nd edition of XML 1.1.
36 | *
37 | * @author Louis-Dominique Dubeau
38 | * @license MIT
39 | * @copyright Louis-Dominique Dubeau
40 | */
41 |
42 | /**
43 | * Character classes and associated utilities for the 5th edition of XML 1.0.
44 | *
45 | * @author Louis-Dominique Dubeau
46 | * @license MIT
47 | * @copyright Louis-Dominique Dubeau
48 | */
49 |
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/4974.81f7e861.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 |
3 | JSZip v3.10.1 - A JavaScript class for generating and reading zip files
4 |
5 |
6 | (c) 2009-2016 Stuart Knightley
7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
8 |
9 | JSZip uses the library pako released under the MIT license :
10 | https://github.com/nodeca/pako/blob/main/LICENSE
11 | */
12 |
13 | /*!
14 | * The buffer module from node.js, for the browser.
15 | *
16 | * @author Feross Aboukhadijeh
17 | * @license MIT
18 | */
19 |
20 | /*! ExcelJS 19-10-2023 */
21 |
22 | /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */
23 |
24 | /*! safe-buffer. MIT License. Feross Aboukhadijeh */
25 |
26 | /**
27 | * Character class utilities for XML NS 1.0 edition 3.
28 | *
29 | * @author Louis-Dominique Dubeau
30 | * @license MIT
31 | * @copyright Louis-Dominique Dubeau
32 | */
33 |
34 | /**
35 | * Character classes and associated utilities for the 2nd edition of XML 1.1.
36 | *
37 | * @author Louis-Dominique Dubeau
38 | * @license MIT
39 | * @copyright Louis-Dominique Dubeau
40 | */
41 |
42 | /**
43 | * Character classes and associated utilities for the 5th edition of XML 1.0.
44 | *
45 | * @author Louis-Dominique Dubeau
46 | * @license MIT
47 | * @copyright Louis-Dominique Dubeau
48 | */
49 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tansci-boot-ui-editor",
3 | "version": "1.2.0",
4 | "description": "可视化编辑器",
5 | "main": "index.js",
6 | "scripts": {
7 | "dev": "amis dev",
8 | "build": "amis build",
9 | "format": "prettier --write \"src/**/**/*.{js,jsx,ts,tsx,vue,scss,json}\""
10 | },
11 | "author": "fex",
12 | "license": "ISC",
13 | "homepage": "/",
14 | "dependencies": {
15 | "@fortawesome/fontawesome-free": "^5.15.3",
16 | "amis": "6.0.0",
17 | "amis-core": "6.0.0",
18 | "amis-formula": "6.0.0",
19 | "amis-ui": "6.0.0",
20 | "amis-editor": "6.0.0",
21 | "amis-editor-core": "6.0.0",
22 | "axios": "0.21.1",
23 | "copy-to-clipboard": "^3.2.0",
24 | "mobx": "^4.5.0",
25 | "mobx-react": "^6.3.1",
26 | "mobx-state-tree": "^3.17.3",
27 | "qs": "6.5.3",
28 | "react": "^16.14.0",
29 | "react-dom": "^16.14.0",
30 | "react-hook-form": "^7.39.3",
31 | "react-router": "5.0.1",
32 | "react-router-dom": "5.0.1"
33 | },
34 | "devDependencies": {
35 | "@types/lodash": "^4.14.123",
36 | "@types/node": "^11.13.8",
37 | "@types/qs": "^6.5.3",
38 | "@types/react": "^16.9.0",
39 | "@types/react-dom": "^16.9.0",
40 | "@types/react-router": "5.0.1",
41 | "@types/react-router-dom": "^5.3.3",
42 | "acorn": "^8.8.2",
43 | "amis-widget-cli": "^3.2.0",
44 | "monaco-editor-webpack-plugin": "6.0.0",
45 | "prettier": "^2.2.1",
46 | "sass": "^1.63.4",
47 | "typescript": "^4.5.5"
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/tansci-boot/src/main/java/com/tansci/utils/Md5Utils.java:
--------------------------------------------------------------------------------
1 | package com.tansci.utils;
2 |
3 | import java.io.UnsupportedEncodingException;
4 |
5 | /**
6 | * @ClassName: Md5Utils.java
7 | * @ClassPath: com.tansci.utils.Md5Utils.java
8 | * @Description: MD5加密
9 | * @Author: tanyp
10 | * @Date: 2023/3/20 15:34
11 | **/
12 | public class Md5Utils {
13 |
14 | private static final int HEX_VALUE_COUNT = 16;
15 |
16 | public static String getMD5(byte[] bytes) {
17 | char[] hexDigits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
18 | char[] str = new char[16 * 2];
19 | try {
20 | java.security.MessageDigest md = java.security.MessageDigest.getInstance("MD5");
21 | md.update(bytes);
22 | byte[] tmp = md.digest();
23 | int k = 0;
24 | for (int i = 0; i < HEX_VALUE_COUNT; i++) {
25 | byte byte0 = tmp[i];
26 | str[k++] = hexDigits[byte0 >>> 4 & 0xf];
27 | str[k++] = hexDigits[byte0 & 0xf];
28 | }
29 | } catch (Exception e) {
30 | e.printStackTrace();
31 | }
32 | return new String(str);
33 | }
34 |
35 | public static String getMD5(String value, String encode) {
36 | String result = "";
37 | try {
38 | result = getMD5(value.getBytes(encode));
39 | } catch (UnsupportedEncodingException e) {
40 | e.printStackTrace();
41 | }
42 | return result;
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/api/system/menu.ts:
--------------------------------------------------------------------------------
1 | import request from '@/utils/request'
2 |
3 | // 菜单树
4 | export function list(params:any){
5 | return new Promise((resolve, reject) => {
6 | request({
7 | url: '/tansci/system/menu/tree',
8 | method: 'get',
9 | params: params
10 | }).then((res:any) => {
11 | resolve(res.data)
12 | }).catch((e:any) => {
13 | reject(e)
14 | })
15 | })
16 | }
17 |
18 | // 添加
19 | export function save(data:any){
20 | return new Promise((resolve, reject) => {
21 | request({
22 | url: '/tansci/system/menu/save',
23 | method: 'post',
24 | data: data
25 | }).then((res:any) => {
26 | resolve(res.data)
27 | }).catch((e:any) => {
28 | reject(e)
29 | })
30 | })
31 | }
32 |
33 | // 修改
34 | export function update(data:any){
35 | return new Promise((resolve, reject) => {
36 | request({
37 | url: '/tansci/system/menu/update',
38 | method: 'post',
39 | data: data
40 | }).then((res:any) => {
41 | resolve(res.data)
42 | }).catch((e:any) => {
43 | reject(e)
44 | })
45 | })
46 | }
47 |
48 | // 删除
49 | export function del(id:any){
50 | return new Promise((resolve, reject) => {
51 | request({
52 | url: '/tansci/system/menu/delete/' + id,
53 | method: 'get'
54 | }).then((res:any) => {
55 | resolve(res.data)
56 | }).catch((e:any) => {
57 | reject(e)
58 | })
59 | })
60 | }
--------------------------------------------------------------------------------
/tansci-boot-ui/src/api/system/org.ts:
--------------------------------------------------------------------------------
1 | import request from '@/utils/request'
2 |
3 | // 列表
4 | export function list(params:any){
5 | return new Promise((resolve, reject) => {
6 | request({
7 | url: '/tansci/system/org/list',
8 | method: 'get',
9 | params: params
10 | }).then((res:any) => {
11 | resolve(res.data)
12 | }).catch((e:any) => {
13 | reject(e)
14 | })
15 | })
16 | }
17 |
18 | // 添加
19 | export function save(data:any){
20 | return new Promise((resolve, reject) => {
21 | request({
22 | url: '/tansci/system/org/save',
23 | method: 'post',
24 | data: data
25 | }).then((res:any) => {
26 | resolve(res.data)
27 | }).catch((e:any) => {
28 | reject(e)
29 | })
30 | })
31 | }
32 |
33 | // 删除
34 | export function del(id:String){
35 | return new Promise((resolve, reject) => {
36 | request({
37 | url: '/tansci/system/org/delete/' + id,
38 | method: 'get'
39 | }).then((res:any) => {
40 | resolve(res.data)
41 | }).catch((e:any) => {
42 | reject(e)
43 | })
44 | })
45 | }
46 |
47 | // 修改
48 | export function update(data:any){
49 | return new Promise((resolve, reject) => {
50 | request({
51 | url: '/tansci/system/org/update',
52 | method: 'post',
53 | data: data
54 | }).then((res:any) => {
55 | resolve(res.data)
56 | }).catch((e:any) => {
57 | reject(e)
58 | })
59 | })
60 | }
61 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/utils/common.ts:
--------------------------------------------------------------------------------
1 | import { list } from "@/api/system/dict"
2 |
3 | const common:any = {}
4 |
5 | // 数据字典
6 | let dictList = []
7 | common.getDictData = async function() {
8 | await list({}).then((res:any) =>{
9 | dictList = res.result
10 | })
11 | }
12 | common.getDictGroup = (groupName:any) => {
13 | return dictList.filter(item => item.groupName === groupName)
14 | }
15 | common.getDictLabel = (groupName:any, value:any) => {
16 | let dicts = common.getDictGroup(groupName)
17 | let dict = dicts.find((item:any) =>{
18 | return item.dicValue == value
19 | })
20 | return dict ? dict.dicLabel : null;
21 | }
22 |
23 | // 生成UUID
24 | common.uuid = () => {
25 | function S4() {
26 | return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
27 | }
28 | return (S4()+S4()+S4()+S4()+S4()+S4()+S4()+S4());
29 | }
30 |
31 | // 是否包含逗号
32 | common.isComma = (value:any) => {
33 | return value.toString().indexOf(',') !== -1
34 | }
35 |
36 | // 四舍五入保留2位小数(不够位数,则用0替补)
37 | common.toDecimal = (value:any) => {
38 | var result = parseFloat(value);
39 | if (isNaN(result)) {
40 | return false;
41 | }
42 | result = Math.round(value * 100) / 100;
43 | var s_x = result.toString(); // 将数字转换为字符串
44 | var pos_decimal = s_x.indexOf('.'); // 小数点的索引值
45 |
46 | // 当整数时,pos_decimal=-1 自动补0
47 | if (pos_decimal < 0) {
48 | pos_decimal = s_x.length;
49 | s_x += '.';
50 | }
51 |
52 | // 当数字的长度< 小数点索引+2时,补0
53 | while (s_x.length <= pos_decimal + 2) {
54 | s_x += '0';
55 | }
56 | return s_x;
57 | }
58 |
59 | export default common
--------------------------------------------------------------------------------
/tansci-boot-ui/src/api/lowcode/lcPagesClassify.ts:
--------------------------------------------------------------------------------
1 | import request from '@/utils/request'
2 |
3 | export function classifyList(params:any){
4 | return new Promise((resolve, reject) => {
5 | request({
6 | url: '/tansci/lowcode/lcPages/classify/list',
7 | method: 'get',
8 | params: params
9 | }).then((res:any) => {
10 | resolve(res.data)
11 | }).catch((e:any) => {
12 | reject(e)
13 | })
14 | })
15 | }
16 |
17 | export function classifySave(data:any){
18 | return new Promise((resolve, reject) => {
19 | request({
20 | url: '/tansci/lowcode/lcPages/classify/save',
21 | method: 'post',
22 | data
23 | }).then((res:any) => {
24 | resolve(res.data)
25 | }).catch((e:any) => {
26 | reject(e)
27 | })
28 | })
29 | }
30 |
31 | export function classifyUpdate(data:any){
32 | return new Promise((resolve, reject) => {
33 | request({
34 | url: '/tansci/lowcode/lcPages/classify/update',
35 | method: 'post',
36 | data
37 | }).then((res:any) => {
38 | resolve(res.data)
39 | }).catch((e:any) => {
40 | reject(e)
41 | })
42 | })
43 | }
44 |
45 | export function classifyDel(id:String){
46 | return new Promise((resolve, reject) => {
47 | request({
48 | url: '/tansci/lowcode/lcPages/classify/delete/' + id,
49 | method: 'get',
50 | }).then((res:any) => {
51 | resolve(res.data)
52 | }).catch((e:any) => {
53 | reject(e)
54 | })
55 | })
56 | }
--------------------------------------------------------------------------------
/tansci-boot/src/main/java/com/tansci/handler/GlobalExceptionHandler.java:
--------------------------------------------------------------------------------
1 | package com.tansci.handler;
2 |
3 | import cn.dev33.satoken.exception.NotLoginException;
4 | import com.tansci.common.WrapMapper;
5 | import com.tansci.common.Wrapper;
6 | import lombok.extern.slf4j.Slf4j;
7 | import org.springframework.web.bind.MethodArgumentNotValidException;
8 | import org.springframework.web.bind.annotation.ExceptionHandler;
9 | import org.springframework.web.bind.annotation.RestControllerAdvice;
10 |
11 | /**
12 | * @ClassName: GlobalExceptionHandler.java
13 | * @ClassPath: com.tansci.handler.GlobalExceptionHandler.java
14 | * @Description: 全局异常拦截
15 | * @Author: tanyp
16 | * @Date: 2023/3/20 15:02
17 | **/
18 | @Slf4j
19 | @RestControllerAdvice
20 | public class GlobalExceptionHandler {
21 |
22 | @ExceptionHandler(value = Exception.class)
23 | public Wrapper handleException(Exception e) {
24 | if (e instanceof MethodArgumentNotValidException) {
25 | MethodArgumentNotValidException ex = (MethodArgumentNotValidException) e;
26 | log.error("参数校验异常:{}", ex.getBindingResult().getFieldError().getDefaultMessage());
27 | return WrapMapper.wrap(Wrapper.ILLEGAL_ARGUMENT_CODE_, "参数有误:" + ex.getBindingResult().getFieldError().getDefaultMessage(), null);
28 | } else if (e instanceof NotLoginException) {
29 | NotLoginException ne = (NotLoginException) e;
30 | return WrapMapper.wrap(Wrapper.AUTHORIZATION_CODE, Wrapper.AUTHORIZATION_MESSAGE, ne.getMessage());
31 | } else {
32 | log.error("统一系统异常:{}", e);
33 | return WrapMapper.wrap(Wrapper.ERROR_CODE, e.getMessage(), null);
34 | }
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/8390.35d8c0d2.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[8390],{98390:function(e,t,o){o.r(t),o.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},s={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/8390.35d8c0d2.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[8390],{98390:function(e,t,o){o.r(t),o.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},s={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot/src/main/java/com/tansci/utils/Sha256Util.java:
--------------------------------------------------------------------------------
1 | package com.tansci.utils;
2 |
3 | import java.io.UnsupportedEncodingException;
4 | import java.security.MessageDigest;
5 | import java.security.NoSuchAlgorithmException;
6 |
7 | /**
8 | * @ClassName: Sha256Util.java
9 | * @ClassPath: com.tansci.utils.Sha256Util.java
10 | * @Description: SHA256加密工具类
11 | * @Author: tanyp
12 | * @Date: 2023/3/20 15:33
13 | **/
14 | public class Sha256Util {
15 |
16 | /**
17 | * 利用java原生的类实现SHA256加密
18 | *
19 | * @param str 加密后的报文
20 | * @return
21 | */
22 | public static String getSHA256(String str) {
23 | MessageDigest messageDigest;
24 | String encodestr = "";
25 | try {
26 | messageDigest = MessageDigest.getInstance("SHA-256");
27 | messageDigest.update(str.getBytes("UTF-8"));
28 | encodestr = byte2Hex(messageDigest.digest());
29 | } catch (NoSuchAlgorithmException e) {
30 | e.printStackTrace();
31 | } catch (UnsupportedEncodingException e) {
32 | e.printStackTrace();
33 | }
34 | return encodestr;
35 | }
36 |
37 | /**
38 | * 将byte转为16进制
39 | *
40 | * @param bytes
41 | * @return
42 | */
43 | private static String byte2Hex(byte[] bytes) {
44 | StringBuffer stringBuffer = new StringBuffer();
45 | String temp = null;
46 | for (int i = 0; i < bytes.length; i++) {
47 | temp = Integer.toHexString(bytes[i] & 0xFF);
48 | if (temp.length() == 1) {
49 | //1得到一位的进行补0操作
50 | stringBuffer.append("0");
51 | }
52 | stringBuffer.append(temp);
53 | }
54 | return stringBuffer.toString();
55 | }
56 | }
--------------------------------------------------------------------------------
/tansci-boot/src/main/resources/application.yml:
--------------------------------------------------------------------------------
1 | server:
2 | port: 7000
3 | servlet:
4 | context-path: /tansci
5 |
6 | spring:
7 | profiles:
8 | active: dev
9 | jackson:
10 | time-zone: GMT+8
11 | date-format: yyyy-MM-dd HH:mm:ss
12 | mvc:
13 | pathmatch:
14 | matching-strategy: ant_path_matcher
15 |
16 | # Sa-Token 配置 (文档: https://sa-token.cc)
17 | sa-token:
18 | # token名称 (同时也是cookie名称)
19 | token-name: token
20 | # token有效期,单位s 默认30天, -1代表永不过期
21 | timeout: 2592000
22 | # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
23 | active-timeout: -1
24 | # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
25 | is-concurrent: true
26 | # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
27 | is-share: true
28 | # token风格
29 | token-style: uuid
30 | # 是否输出操作日志
31 | is-log: false
32 |
33 | # magic-api
34 | magic-api:
35 | # 配置web页面入口
36 | web: /api/web
37 | # 配置文件存储位置
38 | resource:
39 | type: database # 配置存储在数据库中
40 | tableName: magic_api_file # 数据库中的表名
41 | # datasource: tansci_boot # 指定数据源(单数据源时无需配置,多数据源时默认使用主数据源,如果存在其他数据源中需要指定。)
42 | prefix: /tansci-api # key前缀
43 | readonly: false # 是否是只读模式
44 | # location: data/magic-api #存储路径
45 | prefix: / # 接口前缀,可以不配置
46 | show-sql: true # 配置打印SQL
47 | sql-column-case: camel # 启用驼峰命名转换
48 | cache:
49 | enable: true #开启缓存,默认是不开启的
50 | ttl: 3600000 #有效期1小时,默认-1 即永不过期
51 | response-code:
52 | success: 200 #执行成功的code值
53 | invalid: 400 #参数验证未通过的code值
54 | exception: 500 #执行出现异常的code值
55 | date-pattern: # 配置请求参数支持的日期格式
56 | - yyyy-MM-dd
57 | - yyyy-MM-dd HH:mm:ss
58 | - yyyyMMddHHmmss
59 | - yyyyMMdd
60 |
61 | # flowable
62 | flowable:
63 | async-executor-activate: false # 关闭定时任务job
64 | database-schema-update: true # flowable自动更新表结构
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/8494.6f3ac9da.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[8494],{78494:function(e,o,n){n.r(o),n.d(o,{conf:function(){return t},language:function(){return s}});var t={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/8494.6f3ac9da.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[8494],{78494:function(e,o,n){n.r(o),n.d(o,{conf:function(){return t},language:function(){return s}});var t={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/3726.e0572bca.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[3726],{13726:function(e,o,n){n.r(o),n.d(o,{conf:function(){return t},language:function(){return s}});var t={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},s={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],symbols:/[@$=>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/3726.e0572bca.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[3726],{13726:function(e,o,n){n.r(o),n.d(o,{conf:function(){return t},language:function(){return s}});var t={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},s={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],symbols:/[@$=>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/4962.3e751581.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[4962],{44962:function(e,n,o){o.r(n),o.d(n,{conf:function(){return t},language:function(){return r}});var t={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},r={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/4962.3e751581.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[4962],{44962:function(e,n,o){o.r(n),o.d(n,{conf:function(){return t},language:function(){return r}});var t={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},r={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/6185.89ea9014.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[6185],{88566:function(e,s,o){o.r(s),o.d(s,{conf:function(){return t},language:function(){return n}});var t={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},n={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=>> data) {
46 | return new HashMap(){
47 | {
48 | put("total", total);
49 | put("pages", page.getOffset());
50 | put("size", page.getLimit());
51 | put("records", data);
52 | }
53 | };
54 | }
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/2692.b612a9ae.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[2692],{82692:function(e,n,o){o.r(n),o.d(n,{conf:function(){return s},language:function(){return t}});var s={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/2692.b612a9ae.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[2692],{82692:function(e,n,o){o.r(n),o.d(n,{conf:function(){return s},language:function(){return t}});var s={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui/src/utils/request.ts:
--------------------------------------------------------------------------------
1 | import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'
2 | import { ElMessage } from 'element-plus'
3 | import { logout, getToken } from '@/api/auth'
4 | import router from '../router'
5 |
6 | // 根据环境获得不同的代理模式
7 | const baseURL = import.meta.env.VITE_BASE_URL as string;
8 | const axiosInstance: AxiosInstance = axios.create({
9 | baseURL: baseURL,
10 | timeout: 30 * 1000, // 超时时间
11 | // headers: {
12 | // 'Content-Type': 'application/json'
13 | // },
14 | })
15 |
16 | // axios实例拦截请求
17 | axiosInstance.interceptors.request.use((config: AxiosRequestConfig) => {
18 | // 设置token
19 | if (getToken()) {
20 | config.headers.token = getToken()
21 | }
22 | return config;
23 | },
24 | (error: any) => {
25 | return Promise.reject(error);
26 | }
27 | )
28 |
29 | // axios实例拦截响应
30 | axiosInstance.interceptors.response.use(
31 | (response: AxiosResponse) => {
32 | if (response.status === 200 && response.data.code === 200) {
33 | return response;
34 | } else {
35 | ElMessage.warning(response.data.message);
36 | if (response.data.code === 402) {
37 | logout()
38 | }
39 |
40 | if (response.data.code == 403 || response.data.code == 401){
41 | sessionStorage.clear();
42 | router.push({path: 'login'});
43 | }
44 | return Promise.reject(response);
45 | }
46 | },
47 | // 请求失败
48 | (error: any) => {
49 | const {response} = error;
50 | if (response) {
51 | // 请求已发出,但是不在2xx的范围
52 | ElMessage.warning(response.statusText);
53 | return Promise.reject(response.data);
54 | } else {
55 | ElMessage.warning('网络连接异常,请稍后再试!');
56 | }
57 | }
58 | )
59 |
60 | export default axiosInstance
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/8230.e18a62c4.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[8230],{28230:function(e,o,n){n.r(o),n.d(o,{conf:function(){return t},language:function(){return s}});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".pascaligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["begin","block","case","const","else","end","fail","for","from","function","if","is","nil","of","remove","return","skip","then","type","var","while","with","option","None","transaction"],typeKeywords:["bool","int","list","map","nat","record","string","unit","address","map","mtz","xtz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui/public/gh-pages/scripts/chunk/8230.e18a62c4.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[8230],{28230:function(e,o,n){n.r(o),n.d(o,{conf:function(){return t},language:function(){return s}});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".pascaligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["begin","block","case","const","else","end","fail","for","from","function","if","is","nil","of","remove","return","skip","then","type","var","while","with","option","None","transaction"],typeKeywords:["bool","int","list","map","nat","record","string","unit","address","map","mtz","xtz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
--------------------------------------------------------------------------------
/tansci-boot-ui/src/api/system/dict.ts:
--------------------------------------------------------------------------------
1 | import request from '@/utils/request'
2 |
3 | // 列表树
4 | export function tree(params:any){
5 | return new Promise((resolve, reject) => {
6 | request({
7 | url: '/tansci/system/dict/tree',
8 | method: 'get',
9 | params: params
10 | }).then((res:any) => {
11 | resolve(res.data)
12 | }).catch((e:any) => {
13 | reject(e)
14 | })
15 | })
16 | }
17 |
18 | // 列表
19 | export function list(params:any){
20 | return new Promise((resolve, reject) => {
21 | request({
22 | url: '/tansci/system/dict/list',
23 | method: 'get',
24 | params: params
25 | }).then((res:any) => {
26 | resolve(res.data)
27 | }).catch((e:any) => {
28 | reject(e)
29 | })
30 | })
31 | }
32 |
33 | // 添加
34 | export function save(data:any){
35 | return new Promise((resolve, reject) => {
36 | request({
37 | url: '/tansci/system/dict/save',
38 | method: 'post',
39 | data: data
40 | }).then((res:any) => {
41 | resolve(res.data)
42 | }).catch((e:any) => {
43 | reject(e)
44 | })
45 | })
46 | }
47 |
48 | // 删除
49 | export function del(id:String){
50 | return new Promise((resolve, reject) => {
51 | request({
52 | url: '/tansci/system/dict/delete/' + id,
53 | method: 'get'
54 | }).then((res:any) => {
55 | resolve(res.data)
56 | }).catch((e:any) => {
57 | reject(e)
58 | })
59 | })
60 | }
61 |
62 | // 修改
63 | export function update(data:any){
64 | return new Promise((resolve, reject) => {
65 | request({
66 | url: '/tansci/system/dict/update',
67 | method: 'post',
68 | data: data
69 | }).then((res:any) => {
70 | resolve(res.data)
71 | }).catch((e:any) => {
72 | reject(e)
73 | })
74 | })
75 | }
76 |
--------------------------------------------------------------------------------
/tansci-boot-ui/src/api/work/model.ts:
--------------------------------------------------------------------------------
1 | import request from '@/utils/request'
2 |
3 | // 分页
4 | export function page(params:any){
5 | return new Promise((resolve, reject) => {
6 | request({
7 | url: '/tansci/system/work/model/page',
8 | method: 'get',
9 | params: params
10 | }).then((res:any) => {
11 | resolve(res.data)
12 | }).catch((e:any) => {
13 | reject(e)
14 | })
15 | })
16 | }
17 |
18 | // 详情
19 | export function details(params:any){
20 | return new Promise((resolve, reject) => {
21 | request({
22 | url: '/tansci/system/work/model/details',
23 | method: 'get',
24 | params: params
25 | }).then((res:any) => {
26 | resolve(res.data)
27 | }).catch((e:any) => {
28 | reject(e)
29 | })
30 | })
31 | }
32 |
33 | // 添加
34 | export function save(data:any){
35 | return new Promise((resolve, reject) => {
36 | request({
37 | url: '/tansci/system/work/model/save',
38 | method: 'post',
39 | data: data
40 | }).then((res:any) => {
41 | resolve(res.data)
42 | }).catch((e:any) => {
43 | reject(e)
44 | })
45 | })
46 | }
47 |
48 | // 删除
49 | export function del(id:String){
50 | return new Promise((resolve, reject) => {
51 | request({
52 | url: '/tansci/system/work/model/delete/' + id,
53 | method: 'get'
54 | }).then((res:any) => {
55 | resolve(res.data)
56 | }).catch((e:any) => {
57 | reject(e)
58 | })
59 | })
60 | }
61 |
62 | // 修改
63 | export function update(data:any){
64 | return new Promise((resolve, reject) => {
65 | request({
66 | url: '/tansci/system/work/model/update',
67 | method: 'post',
68 | data: data
69 | }).then((res:any) => {
70 | resolve(res.data)
71 | }).catch((e:any) => {
72 | reject(e)
73 | })
74 | })
75 | }
76 |
--------------------------------------------------------------------------------
/tansci-boot-ui-editor/gh-pages/scripts/chunk/1438.7111b2fc.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunktansci_boot_ui_editor=self.webpackChunktansci_boot_ui_editor||[]).push([[1438],{1438:function(e,t,n){n.r(t),n.d(t,{conf:function(){return o},language:function(){return a}});var i=n(54216),o={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.eo.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:i.eo.IndentAction.Indent}}]},a={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[//,{token:"comment",next:"@pop"}],[/