unify-external-plugin-platform 0.0.2-3 → 0.0.2-6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/.idea/misc.xml +6 -0
  2. package/.idea/modules.xml +8 -0
  3. package/.idea/unify-external-plugin-platform.iml +12 -0
  4. package/.idea/vcs.xml +6 -0
  5. package/dist/demo.html +1 -0
  6. package/dist/external-plugin.common.js +3128 -0
  7. package/dist/external-plugin.common.js.map +1 -0
  8. package/dist/external-plugin.css +1 -0
  9. package/dist/external-plugin.umd.js +3147 -0
  10. package/dist/external-plugin.umd.js.map +1 -0
  11. package/dist/external-plugin.umd.min.js +8 -0
  12. package/dist/external-plugin.umd.min.js.map +1 -0
  13. package/{packages/zs-empty/src/assets/images/img_blank_empty.png → dist/img/img_blank_empty.92ddadbb.png} +0 -0
  14. package/package.json +3 -7
  15. package/packages/index.js +3 -3
  16. package/vue.config.js +1 -0
  17. package/docs/.vuepress/public/logo.png +0 -0
  18. package/packages/id-card-reader-demo/src/id-card-reader-demo.vue +0 -142
  19. package/packages/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue +0 -292
  20. package/packages/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue +0 -174
  21. package/packages/zs-empty/src/zs-empty.vue +0 -42
  22. package/public/favicon.ico +0 -0
  23. package/public/img/icons/android-chrome-192x192.png +0 -0
  24. package/public/img/icons/android-chrome-512x512.png +0 -0
  25. package/public/img/icons/android-chrome-maskable-192x192.png +0 -0
  26. package/public/img/icons/android-chrome-maskable-512x512.png +0 -0
  27. package/public/img/icons/apple-touch-icon-120x120.png +0 -0
  28. package/public/img/icons/apple-touch-icon-152x152.png +0 -0
  29. package/public/img/icons/apple-touch-icon-180x180.png +0 -0
  30. package/public/img/icons/apple-touch-icon-60x60.png +0 -0
  31. package/public/img/icons/apple-touch-icon-76x76.png +0 -0
  32. package/public/img/icons/apple-touch-icon.png +0 -0
  33. package/public/img/icons/favicon-16x16.png +0 -0
  34. package/public/img/icons/favicon-32x32.png +0 -0
  35. package/public/img/icons/msapplication-icon-144x144.png +0 -0
  36. package/public/img/icons/mstile-150x150.png +0 -0
  37. package/public/img/icons/safari-pinned-tab.svg +0 -3
  38. package/public/index.html +0 -23
  39. package/public/robots.txt +0 -2
  40. package/src/App.vue +0 -15
  41. package/src/assets/images/reg-developing.png +0 -0
  42. package/src/assets/logo.png +0 -0
  43. package/src/components/404.vue +0 -17
  44. package/src/components/HelloWorld.vue +0 -61
  45. package/src/main.ts +0 -22
  46. package/src/registerServiceWorker.ts +0 -32
  47. package/src/router/id-card-reader/id-card-reader.ts +0 -19
  48. package/src/router/index.ts +0 -46
  49. package/src/router/scan/scan.ts +0 -19
  50. package/src/shims-tsx.d.ts +0 -11
  51. package/src/shims-vue.d.ts +0 -4
  52. package/src/store/index.ts +0 -17
  53. package/src/views/AboutView.vue +0 -5
  54. package/src/views/HomeView.vue +0 -109
  55. package/src/views/id-card-reader/id-card-reader-page.vue +0 -139
  56. package/src/views/id-card-reader/model/conatant/id-card-form-attr.ts +0 -31
  57. package/src/views/id-card-reader/model/vo/id-card.ts +0 -44
  58. package/src/views/layout/home-layout.vue +0 -72
  59. package/src/views/layout/model/menu-data.ts +0 -29
  60. package/src/views/scan/scan-page.vue +0 -56
@@ -1,174 +0,0 @@
1
- <!--
2
- - @author: lvcy
3
- - @date: 2023-01-09
4
- - @description:scanner-high-camera-jieyu
5
- -->
6
- <template>
7
- <div class="scanner-high-camera-container">
8
- <div class="scanner-high-camera-button" v-if="openMode === 'dialog'">
9
- <el-tooltip
10
- :content="tip"
11
- class="id-card-reader-demo"
12
- placement="top"
13
- v-if="tip"
14
- >
15
- <el-button
16
- @click="openScanDialog"
17
- v-bind="{
18
- disabled,
19
- icon,
20
- loading,
21
- plain,
22
- round,
23
- size,
24
- type,
25
- class: _className,
26
- }"
27
- >
28
- <slot>{{ label }}</slot>
29
- </el-button>
30
- </el-tooltip>
31
- <el-button
32
- v-else
33
- @click="openScanDialog"
34
- v-bind="{
35
- disabled,
36
- icon,
37
- loading,
38
- plain,
39
- round,
40
- size,
41
- type,
42
- class: _className,
43
- }"
44
- >
45
- <slot>{{ label }}</slot>
46
- </el-button>
47
-
48
- <el-dialog
49
- class="scanner-high-camera-dialog"
50
- title="影像扫描"
51
- :visible.sync="dialogVisible"
52
- width="60%"
53
- >
54
- <scanner-high-camera-component
55
- v-if="dialogVisible"
56
- @send-scanner-result="setScannerResult"
57
- ></scanner-high-camera-component>
58
- <span slot="footer" class="dialog-footer">
59
- <el-button size="small" @click="dialogVisible = false">取 消</el-button>
60
- <el-button size="small" type="primary" @click="sendScannerResult">确 定</el-button>
61
- </span>
62
- </el-dialog>
63
- </div>
64
-
65
- <scanner-high-camera-component v-else @send-scanner-result="setScannerResult"></scanner-high-camera-component>
66
- </div>
67
- </template>
68
-
69
- <script lang="ts">
70
- import {Component, Prop, Vue} from "vue-property-decorator";
71
- import ScannerHighCameraComponent from "./component/scanner-high-camera-component.vue";
72
- import {ElementUIComponentSize} from "element-ui/types/component";
73
- import {ButtonType} from "element-ui/types/button";
74
-
75
- @Component({
76
- name: 'scanner-high-camera-jieyu',
77
- components: {ScannerHighCameraComponent}
78
- })
79
- export default class ScannerHighCameraJieyu extends Vue {
80
- @Prop({default: ''})
81
- openMode?: 'dialog' | 'iframe';
82
-
83
- @Prop()
84
- label!: string
85
-
86
- @Prop()
87
- tip!: string
88
-
89
- @Prop()
90
- className!: string | string[]
91
-
92
- /** Button size */
93
- @Prop()
94
- size!: ElementUIComponentSize
95
-
96
- /** Button type */
97
- @Prop()
98
- type!: ButtonType
99
-
100
- /** Determine whether it's a plain button */
101
- @Prop()
102
- plain!: boolean
103
-
104
- /** Determine whether it's a round button */
105
- @Prop()
106
- round!: boolean
107
-
108
- /** Determine whether it's loading */
109
- @Prop()
110
- loading!: boolean
111
-
112
- /** Button icon, accepts an icon name of Element icon component */
113
- @Prop({default: 'el-icon-postcard'})
114
- icon!: string
115
-
116
- @Prop({default: false})
117
- disabled?: boolean
118
-
119
- dialogVisible: boolean = false;
120
-
121
- scannerResult = '';
122
-
123
- get _className() {
124
- const classBase = ['z-button']
125
-
126
- if (this.type === 'text') {
127
- classBase.push('i-font-size')
128
- }
129
-
130
- if (!this.className) {
131
- return classBase
132
- } else if (typeof this.className === 'string') {
133
- classBase.push(this.className)
134
- } else {
135
- classBase.push(...this.className)
136
- }
137
- return classBase
138
- }
139
-
140
-
141
- openScanDialog() {
142
- this.dialogVisible = true;
143
- }
144
-
145
- setScannerResult(src) {
146
- this.scannerResult = src;
147
- if (this.openMode !== 'dialog') {
148
- this.$emit('send-scanner-result', this.scannerResult);
149
- }
150
- }
151
-
152
- sendScannerResult() {
153
- if (this.scannerResult) {
154
- this.$emit('send-scanner-result', this.scannerResult);
155
- this.dialogVisible = false;
156
- }
157
-
158
- }
159
- }
160
- </script>
161
-
162
- <style lang="scss">
163
- .scanner-high-camera-container {
164
- height: 100%;
165
-
166
- .scanner-high-camera-dialog {
167
- .el-dialog__body {
168
- height: 536px;
169
- padding: 0 20px;
170
- margin-bottom: -52px;
171
- }
172
- }
173
- }
174
- </style>
@@ -1,42 +0,0 @@
1
- <template>
2
- <div class="zs-empty">
3
- <img src="./assets/images/img_blank_empty.png" />
4
- <p class="empty-text">{{ emptyTip }}</p>
5
- </div>
6
- </template>
7
-
8
- <script lang="ts">
9
- import {Component, Prop, Vue} from "vue-property-decorator";
10
-
11
-
12
-
13
- @Component({
14
- name: "ZSEmpty"
15
- })
16
- export default class ZSEmpty extends Vue {
17
- @Prop({default: '暂无数据'})
18
- emptyTip?: string;
19
- }
20
- </script>
21
-
22
- <style scoped lang="scss">
23
- .zs-empty {
24
- display: flex;
25
- flex-direction: column;
26
- align-items: center;
27
- position: relative;
28
- img{
29
- width:454px;
30
- }
31
- .empty-text{
32
- font-size: 14px;
33
- font-family: PingFangSC-Regular, PingFang SC;
34
- font-weight: 400;
35
- color: #969899;
36
- line-height: 28px;
37
- position: absolute;
38
- top:322px;
39
-
40
- }
41
- }
42
- </style>
Binary file
Binary file
Binary file
Binary file
@@ -1,3 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M8.00251 14.9297L0 1.07422H6.14651L8.00251 4.27503L9.84583 1.07422H16L8.00251 14.9297Z" fill="black"/>
3
- </svg>
package/public/index.html DELETED
@@ -1,23 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
- <title><%= htmlWebpackPlugin.options.title %></title>
9
- <style type="text/css">
10
- * {
11
- margin: 0;
12
- padding: 0;
13
- }
14
- </style>
15
- </head>
16
- <body>
17
- <noscript>
18
- <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
19
- </noscript>
20
- <div id="app"></div>
21
- <!-- built files will be auto injected -->
22
- </body>
23
- </html>
package/public/robots.txt DELETED
@@ -1,2 +0,0 @@
1
- User-agent: *
2
- Disallow:
package/src/App.vue DELETED
@@ -1,15 +0,0 @@
1
- <template>
2
- <div id="app">
3
- <!-- <nav>-->
4
- <!-- <router-link to="/">Home</router-link> |-->
5
- <!-- <router-link to="/about">About</router-link>-->
6
- <!-- </nav>-->
7
- <router-view/>
8
- </div>
9
- </template>
10
-
11
- <style lang="scss">
12
- html, body, #app {
13
- height: 100vh;
14
- }
15
- </style>
Binary file
@@ -1,17 +0,0 @@
1
- <template>
2
- <div class="bg">
3
- <div class="image-wrapper">
4
- <img style="height:350px" src="../assets/images/reg-developing.png">
5
- </div>
6
- </div>
7
- </template>
8
- <style scoped>
9
- .bg {
10
- height: 100%;
11
- background-color: #fff;
12
- display: flex;
13
- justify-content: center;
14
- align-items: center;
15
- }
16
-
17
- </style>
@@ -1,61 +0,0 @@
1
- <template>
2
- <div class="hello">
3
- <h1>{{ msg }}</h1>
4
- <p>
5
- For a guide and recipes on how to configure / customize this project,<br>
6
- check out the
7
- <a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
8
- </p>
9
- <h3>Installed CLI Plugins</h3>
10
- <ul>
11
- <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
12
- <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-pwa" target="_blank" rel="noopener">pwa</a></li>
13
- <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-router" target="_blank" rel="noopener">router</a></li>
14
- <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-vuex" target="_blank" rel="noopener">vuex</a></li>
15
- <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-typescript" target="_blank" rel="noopener">typescript</a></li>
16
- </ul>
17
- <h3>Essential Links</h3>
18
- <ul>
19
- <li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
20
- <li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
21
- <li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
22
- <li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
23
- <li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
24
- </ul>
25
- <h3>Ecosystem</h3>
26
- <ul>
27
- <li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
28
- <li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
29
- <li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
30
- <li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
31
- <li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
32
- </ul>
33
- </div>
34
- </template>
35
-
36
- <script lang="ts">
37
- import { Component, Prop, Vue } from 'vue-property-decorator';
38
-
39
- @Component
40
- export default class HelloWorld extends Vue {
41
- @Prop() private msg!: string;
42
- }
43
- </script>
44
-
45
- <!-- Add "scoped" attribute to limit CSS to this component only -->
46
- <style scoped lang="scss">
47
- h3 {
48
- margin: 40px 0 0;
49
- }
50
- ul {
51
- list-style-type: none;
52
- padding: 0;
53
- }
54
- li {
55
- display: inline-block;
56
- margin: 0 10px;
57
- }
58
- a {
59
- color: #42b983;
60
- }
61
- </style>
package/src/main.ts DELETED
@@ -1,22 +0,0 @@
1
- import Vue from 'vue'
2
- import App from './App.vue'
3
- import './registerServiceWorker'
4
- import router from './router'
5
- import store from './store'
6
- import ElementUI from 'element-ui';
7
- import 'element-ui/lib/theme-chalk/index.css';
8
-
9
- // Unify-plugin为自定义组件库名称
10
- // @ts-ignore
11
- import ExternalPlugin from '../packages'
12
-
13
-
14
- Vue.use(ElementUI); // 暂时完整引入
15
- Vue.use(ExternalPlugin); // 暂时完整引入
16
- Vue.config.productionTip = false
17
-
18
- new Vue({
19
- router,
20
- store,
21
- render: h => h(App)
22
- }).$mount('#app')
@@ -1,32 +0,0 @@
1
- /* eslint-disable no-console */
2
-
3
- import { register } from 'register-service-worker'
4
-
5
- if (process.env.NODE_ENV === 'production') {
6
- register(`${process.env.BASE_URL}service-worker.js`, {
7
- ready () {
8
- console.log(
9
- 'App is being served from cache by a service worker.\n' +
10
- 'For more details, visit https://goo.gl/AFskqB'
11
- )
12
- },
13
- registered () {
14
- console.log('Service worker has been registered.')
15
- },
16
- cached () {
17
- console.log('Content has been cached for offline use.')
18
- },
19
- updatefound () {
20
- console.log('New content is downloading.')
21
- },
22
- updated () {
23
- console.log('New content is available; please refresh.')
24
- },
25
- offline () {
26
- console.log('No internet connection found. App is running in offline mode.')
27
- },
28
- error (error) {
29
- console.error('Error during service worker registration:', error)
30
- }
31
- })
32
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * @author: lvcy
3
- * @date: 2022-12-30
4
- * @description:id-card-reader
5
- */
6
- import {RouteConfig} from "vue-router";
7
-
8
- const IdCardReaderRouterList: RouteConfig[] = [
9
- {
10
- path: 'id-card-reader',
11
- name: 'id-card-reader-page',
12
- meta: {
13
- title: '身份证读卡器',
14
- },
15
- component: () => import('@/views/id-card-reader/id-card-reader-page.vue')
16
- },
17
- ]
18
-
19
- export default IdCardReaderRouterList;
@@ -1,46 +0,0 @@
1
- import Vue from 'vue'
2
- import VueRouter, { RouteConfig } from 'vue-router'
3
- import HomeView from '../views/HomeView.vue'
4
- import IdCardReaderRouterList from "@/router/id-card-reader/id-card-reader";
5
- import ScanRouterList from "@/router/scan/scan";
6
-
7
- Vue.use(VueRouter)
8
-
9
- const routes: Array<RouteConfig> = [
10
- {
11
- path: '/',
12
- redirect: '/home',
13
- },
14
- {
15
- path: '/home',
16
- name: 'home-layout',
17
- component: () => import(/* webpackChunkName: "about" */ '../views/layout/home-layout.vue'),
18
- children: [
19
- ...IdCardReaderRouterList,
20
- ...ScanRouterList,
21
- { path: '404', meta: { title: '统一对外插件平台', errorPage: true }, component: () => import('@/components/404.vue') },
22
- { path: '**', redirect: '404' },
23
- ]
24
- },
25
- ...[
26
- ...IdCardReaderRouterList,
27
- ...ScanRouterList
28
- ].map(item => ({
29
- ...item,
30
- path: `/${item.path}`
31
- })),
32
- {
33
- path: '/about',
34
- name: 'about',
35
- // route level code-splitting
36
- // this generates a separate chunk (about.[hash].js) for this route
37
- // which is lazy-loaded when the route is visited.
38
- component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
39
- }
40
- ]
41
-
42
- const router = new VueRouter({
43
- routes
44
- })
45
-
46
- export default router
@@ -1,19 +0,0 @@
1
- /**
2
- * @author: lvcy
3
- * @date: 2023-02-07
4
- * @description:scan
5
- */
6
- import {RouteConfig} from "vue-router";
7
-
8
- const ScanRouterList: RouteConfig[] = [
9
- {
10
- path: 'scan',
11
- name: 'scan-page',
12
- meta: {
13
- title: '扫描设备',
14
- },
15
- component: () => import('@/views/scan/scan-page.vue')
16
- },
17
- ]
18
-
19
- export default ScanRouterList;
@@ -1,11 +0,0 @@
1
- import Vue, { VNode } from 'vue'
2
-
3
- declare global {
4
- namespace JSX {
5
- interface Element extends VNode {}
6
- interface ElementClass extends Vue {}
7
- interface IntrinsicElements {
8
- [elem: string]: any
9
- }
10
- }
11
- }
@@ -1,4 +0,0 @@
1
- declare module '*.vue' {
2
- import Vue from 'vue'
3
- export default Vue
4
- }
@@ -1,17 +0,0 @@
1
- import Vue from 'vue'
2
- import Vuex from 'vuex'
3
-
4
- Vue.use(Vuex)
5
-
6
- export default new Vuex.Store({
7
- state: {
8
- },
9
- getters: {
10
- },
11
- mutations: {
12
- },
13
- actions: {
14
- },
15
- modules: {
16
- }
17
- })
@@ -1,5 +0,0 @@
1
- <template>
2
- <div class="about">
3
- <h1>This is an about page</h1>
4
- </div>
5
- </template>