xframelib 0.4.2 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/controls/vuewindow/index.d.ts +2 -2
- package/dist/controls/vuewindow/style.d.ts +34 -1
- package/dist/core/SysEvents.d.ts +7 -0
- package/dist/hprose/ProxyClient.d.ts +20 -3
- package/dist/index.cjs +3 -8
- package/dist/index.css +3 -4
- package/dist/index.js +3 -8
- package/dist/model/Layout.d.ts +39 -0
- package/dist/public/mitm.html +166 -0
- package/dist/public/sw.js +128 -0
- package/dist/utils/AxiosHelper.d.ts +12 -5
- package/dist/utils/BigFileDownload.d.ts +13 -2
- package/package.json +13 -13
package/dist/model/Layout.d.ts
CHANGED
|
@@ -24,13 +24,52 @@ export interface IWidgetLayout {
|
|
|
24
24
|
height?: string;
|
|
25
25
|
}
|
|
26
26
|
export interface IWidgetConfig {
|
|
27
|
+
/**
|
|
28
|
+
* 唯一ID,与组件名一致
|
|
29
|
+
*/
|
|
27
30
|
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* 标题或说明
|
|
33
|
+
*/
|
|
28
34
|
label?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 图标路径(备用)
|
|
37
|
+
*/
|
|
29
38
|
icon?: string;
|
|
39
|
+
/**
|
|
40
|
+
* 所属容器,top/bottom/left/right等
|
|
41
|
+
*/
|
|
30
42
|
container: LayoutContainerEnum;
|
|
43
|
+
/**
|
|
44
|
+
* 外部组件js url(备用)
|
|
45
|
+
*/
|
|
46
|
+
jsURL?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 外部组件css url(备用)
|
|
49
|
+
*/
|
|
50
|
+
cssURL?: string;
|
|
51
|
+
/**
|
|
52
|
+
* 动态加载的组件
|
|
53
|
+
*/
|
|
31
54
|
component: Lazy<Component>;
|
|
55
|
+
/**
|
|
56
|
+
* 是否初始化时,预加载
|
|
57
|
+
*/
|
|
32
58
|
preload?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* 前置容器ID,一般也就是bindid
|
|
61
|
+
*/
|
|
33
62
|
afterid?: string;
|
|
63
|
+
/**
|
|
64
|
+
* 绑定依赖容器ID,不一定有afterid
|
|
65
|
+
*/
|
|
66
|
+
bindid?: string;
|
|
67
|
+
/**
|
|
68
|
+
* 所属组,用于业务分类
|
|
69
|
+
*/
|
|
34
70
|
group?: string;
|
|
71
|
+
/**
|
|
72
|
+
* 外部定义布局(备用)
|
|
73
|
+
*/
|
|
35
74
|
layout?: IWidgetLayout;
|
|
36
75
|
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
mitm.html is the lite "man in the middle"
|
|
3
|
+
|
|
4
|
+
This is only meant to signal the opener's messageChannel to
|
|
5
|
+
the service worker - when that is done this mitm can be closed
|
|
6
|
+
but it's better to keep it alive since this also stops the sw
|
|
7
|
+
from restarting
|
|
8
|
+
|
|
9
|
+
The service worker is capable of intercepting all request and fork their
|
|
10
|
+
own "fake" response - wish we are going to craft
|
|
11
|
+
when the worker then receives a stream then the worker will tell the opener
|
|
12
|
+
to open up a link that will start the download
|
|
13
|
+
-->
|
|
14
|
+
<script>
|
|
15
|
+
// This will prevent the sw from restarting
|
|
16
|
+
let keepAlive = () => {
|
|
17
|
+
keepAlive = () => {}
|
|
18
|
+
var ping = location.href.substr(0, location.href.lastIndexOf('/')) + '/ping'
|
|
19
|
+
var interval = setInterval(() => {
|
|
20
|
+
if (sw) {
|
|
21
|
+
sw.postMessage('ping')
|
|
22
|
+
} else {
|
|
23
|
+
fetch(ping).then(res => res.text(!res.ok && clearInterval(interval)))
|
|
24
|
+
}
|
|
25
|
+
}, 10000)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// message event is the first thing we need to setup a listner for
|
|
29
|
+
// don't want the opener to do a random timeout - instead they can listen for
|
|
30
|
+
// the ready event
|
|
31
|
+
// but since we need to wait for the Service Worker registration, we store the
|
|
32
|
+
// message for later
|
|
33
|
+
let messages = []
|
|
34
|
+
window.onmessage = evt => messages.push(evt)
|
|
35
|
+
|
|
36
|
+
let sw = null
|
|
37
|
+
let scope = ''
|
|
38
|
+
|
|
39
|
+
function registerWorker() {
|
|
40
|
+
return navigator.serviceWorker.getRegistration('./').then(swReg => {
|
|
41
|
+
return swReg || navigator.serviceWorker.register('sw.js', { scope: './' })
|
|
42
|
+
}).then(swReg => {
|
|
43
|
+
const swRegTmp = swReg.installing || swReg.waiting
|
|
44
|
+
|
|
45
|
+
scope = swReg.scope
|
|
46
|
+
|
|
47
|
+
return (sw = swReg.active) || new Promise(resolve => {
|
|
48
|
+
swRegTmp.addEventListener('statechange', fn = () => {
|
|
49
|
+
if (swRegTmp.state === 'activated') {
|
|
50
|
+
swRegTmp.removeEventListener('statechange', fn)
|
|
51
|
+
sw = swReg.active
|
|
52
|
+
resolve()
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Now that we have the Service Worker registered we can process messages
|
|
60
|
+
function onMessage (event) {
|
|
61
|
+
let { data, ports, origin } = event
|
|
62
|
+
|
|
63
|
+
// It's important to have a messageChannel, don't want to interfere
|
|
64
|
+
// with other simultaneous downloads
|
|
65
|
+
if (!ports || !ports.length) {
|
|
66
|
+
throw new TypeError("[StreamSaver] You didn't send a messageChannel")
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (typeof data !== 'object') {
|
|
70
|
+
throw new TypeError("[StreamSaver] You didn't send a object")
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// the default public service worker for StreamSaver is shared among others.
|
|
74
|
+
// so all download links needs to be prefixed to avoid any other conflict
|
|
75
|
+
data.origin = origin
|
|
76
|
+
|
|
77
|
+
// if we ever (in some feature versoin of streamsaver) would like to
|
|
78
|
+
// redirect back to the page of who initiated a http request
|
|
79
|
+
data.referrer = data.referrer || document.referrer || origin
|
|
80
|
+
|
|
81
|
+
// pass along version for possible backwards compatibility in sw.js
|
|
82
|
+
data.streamSaverVersion = new URLSearchParams(location.search).get('version')
|
|
83
|
+
|
|
84
|
+
if (data.streamSaverVersion === '1.2.0') {
|
|
85
|
+
console.warn('[StreamSaver] please update streamsaver')
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** @since v2.0.0 */
|
|
89
|
+
if (!data.headers) {
|
|
90
|
+
console.warn("[StreamSaver] pass `data.headers` that you would like to pass along to the service worker\nit should be a 2D array or a key/val object that fetch's Headers api accepts")
|
|
91
|
+
} else {
|
|
92
|
+
// test if it's correct
|
|
93
|
+
// should thorw a typeError if not
|
|
94
|
+
new Headers(data.headers)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** @since v2.0.0 */
|
|
98
|
+
if (typeof data.filename === 'string') {
|
|
99
|
+
console.warn("[StreamSaver] You shouldn't send `data.filename` anymore. It should be included in the Content-Disposition header option")
|
|
100
|
+
// Do what File constructor do with fileNames
|
|
101
|
+
data.filename = data.filename.replace(/\//g, ':')
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** @since v2.0.0 */
|
|
105
|
+
if (data.size) {
|
|
106
|
+
console.warn("[StreamSaver] You shouldn't send `data.size` anymore. It should be included in the content-length header option")
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** @since v2.0.0 */
|
|
110
|
+
if (data.readableStream) {
|
|
111
|
+
console.warn("[StreamSaver] You should send the readableStream in the messageChannel, not throught mitm")
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** @since v2.0.0 */
|
|
115
|
+
if (!data.pathname) {
|
|
116
|
+
console.warn("[StreamSaver] Please send `data.pathname` (eg: /pictures/summer.jpg)")
|
|
117
|
+
data.pathname = Math.random().toString().slice(-6) + '/' + data.filename
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// remove all leading slashes
|
|
121
|
+
data.pathname = data.pathname.replace(/^\/+/g, '')
|
|
122
|
+
|
|
123
|
+
// remove protocol
|
|
124
|
+
let org = origin.replace(/(^\w+:|^)\/\//, '')
|
|
125
|
+
|
|
126
|
+
// set the absolute pathname to the download url.
|
|
127
|
+
data.url = new URL(`${scope + org}/${data.pathname}`).toString()
|
|
128
|
+
|
|
129
|
+
if (!data.url.startsWith(`${scope + org}/`)) {
|
|
130
|
+
throw new TypeError('[StreamSaver] bad `data.pathname`')
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// This sends the message data as well as transferring
|
|
134
|
+
// messageChannel.port2 to the service worker. The service worker can
|
|
135
|
+
// then use the transferred port to reply via postMessage(), which
|
|
136
|
+
// will in turn trigger the onmessage handler on messageChannel.port1.
|
|
137
|
+
|
|
138
|
+
const transferable = data.readableStream
|
|
139
|
+
? [ ports[0], data.readableStream ]
|
|
140
|
+
: [ ports[0] ]
|
|
141
|
+
|
|
142
|
+
if (!(data.readableStream || data.transferringReadable)) {
|
|
143
|
+
keepAlive()
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return sw.postMessage(data, transferable)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (window.opener) {
|
|
150
|
+
// The opener can't listen to onload event, so we need to help em out!
|
|
151
|
+
// (telling them that we are ready to accept postMessage's)
|
|
152
|
+
window.opener.postMessage('StreamSaver::loadedPopup', '*')
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (navigator.serviceWorker) {
|
|
156
|
+
registerWorker().then(() => {
|
|
157
|
+
window.onmessage = onMessage
|
|
158
|
+
messages.forEach(window.onmessage)
|
|
159
|
+
})
|
|
160
|
+
} else {
|
|
161
|
+
// FF can ping sw with fetch from a secure hidden iframe
|
|
162
|
+
// shouldn't really be possible?
|
|
163
|
+
keepAlive()
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
</script>
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* global self ReadableStream Response */
|
|
2
|
+
|
|
3
|
+
self.addEventListener('install', () => {
|
|
4
|
+
self.skipWaiting()
|
|
5
|
+
})
|
|
6
|
+
|
|
7
|
+
self.addEventListener('activate', event => {
|
|
8
|
+
event.waitUntil(self.clients.claim())
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
const map = new Map()
|
|
12
|
+
|
|
13
|
+
// This should be called once per download
|
|
14
|
+
// Each event has a dataChannel that the data will be piped through
|
|
15
|
+
self.onmessage = event => {
|
|
16
|
+
// We send a heartbeat every x secound to keep the
|
|
17
|
+
// service worker alive if a transferable stream is not sent
|
|
18
|
+
if (event.data === 'ping') {
|
|
19
|
+
return
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const data = event.data
|
|
23
|
+
const downloadUrl = data.url || self.registration.scope + Math.random() + '/' + (typeof data === 'string' ? data : data.filename)
|
|
24
|
+
const port = event.ports[0]
|
|
25
|
+
const metadata = new Array(3) // [stream, data, port]
|
|
26
|
+
|
|
27
|
+
metadata[1] = data
|
|
28
|
+
metadata[2] = port
|
|
29
|
+
|
|
30
|
+
// Note to self:
|
|
31
|
+
// old streamsaver v1.2.0 might still use `readableStream`...
|
|
32
|
+
// but v2.0.0 will always transfer the stream throught MessageChannel #94
|
|
33
|
+
if (event.data.readableStream) {
|
|
34
|
+
metadata[0] = event.data.readableStream
|
|
35
|
+
} else if (event.data.transferringReadable) {
|
|
36
|
+
port.onmessage = evt => {
|
|
37
|
+
port.onmessage = null
|
|
38
|
+
metadata[0] = evt.data.readableStream
|
|
39
|
+
}
|
|
40
|
+
} else {
|
|
41
|
+
metadata[0] = createStream(port)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
map.set(downloadUrl, metadata)
|
|
45
|
+
port.postMessage({ download: downloadUrl })
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function createStream (port) {
|
|
49
|
+
// ReadableStream is only supported by chrome 52
|
|
50
|
+
return new ReadableStream({
|
|
51
|
+
start (controller) {
|
|
52
|
+
// When we receive data on the messageChannel, we write
|
|
53
|
+
port.onmessage = ({ data }) => {
|
|
54
|
+
if (data === 'end') {
|
|
55
|
+
return controller.close()
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (data === 'abort') {
|
|
59
|
+
controller.error('Aborted the download')
|
|
60
|
+
return
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
controller.enqueue(data)
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
cancel () {
|
|
67
|
+
console.log('user aborted')
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
self.onfetch = event => {
|
|
73
|
+
const url = event.request.url
|
|
74
|
+
|
|
75
|
+
// this only works for Firefox
|
|
76
|
+
if (url.endsWith('/ping')) {
|
|
77
|
+
return event.respondWith(new Response('pong'))
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const hijacke = map.get(url)
|
|
81
|
+
|
|
82
|
+
if (!hijacke) return null
|
|
83
|
+
|
|
84
|
+
const [ stream, data, port ] = hijacke
|
|
85
|
+
|
|
86
|
+
map.delete(url)
|
|
87
|
+
|
|
88
|
+
// Not comfortable letting any user control all headers
|
|
89
|
+
// so we only copy over the length & disposition
|
|
90
|
+
const responseHeaders = new Headers({
|
|
91
|
+
'Content-Type': 'application/octet-stream; charset=utf-8',
|
|
92
|
+
|
|
93
|
+
// To be on the safe side, The link can be opened in a iframe.
|
|
94
|
+
// but octet-stream should stop it.
|
|
95
|
+
'Content-Security-Policy': "default-src 'none'",
|
|
96
|
+
'X-Content-Security-Policy': "default-src 'none'",
|
|
97
|
+
'X-WebKit-CSP': "default-src 'none'",
|
|
98
|
+
'X-XSS-Protection': '1; mode=block'
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
let headers = new Headers(data.headers || {})
|
|
102
|
+
|
|
103
|
+
if (headers.has('Content-Length')) {
|
|
104
|
+
responseHeaders.set('Content-Length', headers.get('Content-Length'))
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (headers.has('Content-Disposition')) {
|
|
108
|
+
responseHeaders.set('Content-Disposition', headers.get('Content-Disposition'))
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// data, data.filename and size should not be used anymore
|
|
112
|
+
if (data.size) {
|
|
113
|
+
console.warn('Depricated')
|
|
114
|
+
responseHeaders.set('Content-Length', data.size)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
let fileName = typeof data === 'string' ? data : data.filename
|
|
118
|
+
if (fileName) {
|
|
119
|
+
console.warn('Depricated')
|
|
120
|
+
// Make filename RFC5987 compatible
|
|
121
|
+
fileName = encodeURIComponent(fileName).replace(/['()]/g, escape).replace(/\*/g, '%2A')
|
|
122
|
+
responseHeaders.set('Content-Disposition', "attachment; filename*=UTF-8''" + fileName)
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
event.respondWith(new Response(stream, { headers: responseHeaders }))
|
|
126
|
+
|
|
127
|
+
port.postMessage({ debug: 'Download started' })
|
|
128
|
+
}
|
|
@@ -7,26 +7,33 @@ export declare type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json'
|
|
|
7
7
|
* @param headers headers参数
|
|
8
8
|
* @param responseType 响应类型,默认为json
|
|
9
9
|
* @param cancelToken 取消标识
|
|
10
|
+
* @param timeoutMS 超时时间-毫秒
|
|
10
11
|
* @returns 返回Promise对象
|
|
11
12
|
*/
|
|
12
|
-
declare function requestGet(apiUrl: string, baseUrl?: string, _params?: any, headers?: any, responseType?: ResponseType, cancelToken?: any): Promise<any>;
|
|
13
|
+
declare function requestGet(apiUrl: string, baseUrl?: string, _params?: any, headers?: any, responseType?: ResponseType, cancelToken?: any, timeoutMS?: number): Promise<any>;
|
|
13
14
|
/**
|
|
14
15
|
* Post服务请求-FormData
|
|
15
16
|
* @param apiUrl API接口路径
|
|
16
17
|
* @param baseUrl 基础服务路径
|
|
17
18
|
* @param _params 参数
|
|
18
19
|
* @param headers headers参数
|
|
20
|
+
* @param responseType 返回类型,默认为json
|
|
21
|
+
* @param timeoutMS 超时时间,默认为60000毫秒
|
|
19
22
|
* @returns 返回Promise对象
|
|
20
23
|
*/
|
|
21
|
-
declare function requestPost(apiUrl: string, baseUrl?: string, _bodyParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType): Promise<any>;
|
|
24
|
+
declare function requestPost(apiUrl: string, baseUrl?: string, _bodyParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType, timeoutMS?: number): Promise<any>;
|
|
22
25
|
/**
|
|
23
26
|
* Post服务请求-Body方式
|
|
24
27
|
* @param apiUrl API接口路径
|
|
25
28
|
* @param baseUrl 基础服务路径
|
|
26
|
-
* @param
|
|
27
|
-
* @
|
|
29
|
+
* @param _bodyParams body相关参数
|
|
30
|
+
* @param _queryParams url的相关参数
|
|
31
|
+
* @param headers 头相关参数
|
|
32
|
+
* @param responseType 返回类型,默认为json
|
|
33
|
+
* @param timeoutMS 超时时间,默认为60000毫秒
|
|
34
|
+
* @returns
|
|
28
35
|
*/
|
|
29
|
-
declare function requestPostBody(apiUrl: string, baseUrl?: string, _bodyParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType): Promise<any>;
|
|
36
|
+
declare function requestPostBody(apiUrl: string, baseUrl?: string, _bodyParams?: any, _queryParams?: any, headers?: any, responseType?: ResponseType, timeoutMS?: number): Promise<any>;
|
|
30
37
|
/**
|
|
31
38
|
* 业务服务Get请求
|
|
32
39
|
* @param apiUrl API接口路径
|
|
@@ -29,7 +29,17 @@ export declare class BigFileDownload {
|
|
|
29
29
|
private cancelSource;
|
|
30
30
|
private isStarting;
|
|
31
31
|
private fileName?;
|
|
32
|
-
|
|
32
|
+
private cacheSize;
|
|
33
|
+
private requestTimeout;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @param fileID
|
|
37
|
+
* @param downloadURL 下载链接
|
|
38
|
+
* @param chunkSizeM 分片大小,默认为3M
|
|
39
|
+
* @param cacheNum 缓存大小
|
|
40
|
+
* @param requestTimeoutMS 请求超时时间(毫秒)默认为60s
|
|
41
|
+
*/
|
|
42
|
+
constructor(fileID: string, downloadURL: string, chunkSizeM?: number, cacheNum?: number, requestTimeoutMS?: number);
|
|
33
43
|
/**
|
|
34
44
|
* 订阅事件
|
|
35
45
|
*/
|
|
@@ -87,10 +97,11 @@ export declare class BigFileDownload {
|
|
|
87
97
|
* 删除下载任务
|
|
88
98
|
*/
|
|
89
99
|
delete(): void;
|
|
100
|
+
sleep(ms: any): Promise<unknown>;
|
|
90
101
|
/**
|
|
91
102
|
* 开始分段下载
|
|
92
103
|
*/
|
|
93
|
-
download(downURL?: string): void
|
|
104
|
+
download(downURL?: string): Promise<void>;
|
|
94
105
|
/**
|
|
95
106
|
* 下载完成进度
|
|
96
107
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xframelib",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "积累的前端开发基础库",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"common": "dist/index.cjs",
|
|
@@ -31,27 +31,27 @@
|
|
|
31
31
|
"xhr": "^2.6.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@rollup/plugin-alias": "^3.1.
|
|
34
|
+
"@rollup/plugin-alias": "^3.1.9",
|
|
35
35
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
36
36
|
"@rollup/plugin-json": "^4.1.0",
|
|
37
|
-
"@rollup/plugin-node-resolve": "^13.
|
|
37
|
+
"@rollup/plugin-node-resolve": "^13.1.2",
|
|
38
38
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
39
39
|
"@types/streamsaver": "^2.0.1",
|
|
40
|
-
"@vitejs/plugin-vue": "^
|
|
41
|
-
"@vue/compiler-sfc": "^3.2.
|
|
42
|
-
"axios": "^0.
|
|
43
|
-
"esbuild": "^0.
|
|
44
|
-
"
|
|
45
|
-
"rollup-plugin-esbuild": "^4.
|
|
40
|
+
"@vitejs/plugin-vue": "^2.0.1",
|
|
41
|
+
"@vue/compiler-sfc": "^3.2.26",
|
|
42
|
+
"axios": "^0.24.0",
|
|
43
|
+
"esbuild": "^0.14.10",
|
|
44
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
45
|
+
"rollup-plugin-esbuild": "^4.8.2",
|
|
46
46
|
"rollup-plugin-scss": "^3.0.0",
|
|
47
47
|
"rollup-plugin-terser": "^7.0.2",
|
|
48
48
|
"rollup-plugin-typescript2": "^0.31.1",
|
|
49
49
|
"rollup-plugin-vue": "^6.0.0",
|
|
50
|
-
"sass": "^1.
|
|
51
|
-
"typescript": "^4.
|
|
52
|
-
"vite": "^2.
|
|
50
|
+
"sass": "^1.45.2",
|
|
51
|
+
"typescript": "^4.5.4",
|
|
52
|
+
"vite": "^2.7.10",
|
|
53
53
|
"vue": "^3.2.20",
|
|
54
54
|
"vue-router": "^4.0.10",
|
|
55
|
-
"vue-tsc": "^0.
|
|
55
|
+
"vue-tsc": "^0.30.2"
|
|
56
56
|
}
|
|
57
57
|
}
|