<!doctype html><html><head><meta charset="utf-8"></head><body><pre id="__testling_output"></pre><script>(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (process){
var xws = require('xhr-write-stream');
var Stream = require('stream');
var inspect = require('object-inspect');
process.on = function () {};
var ws = xws('/__testling/sock');
ws.write(window.location.hash + '\n');
function createChannel (writeListen) {
var c = new Stream;
c.writable = true;
c.write = function (buf) {
if (writeListen) writeListen(buf);
return ws.write(String(buf));
};
c.destroy = function () {};
c.end = function (buf) {
c.emit('close');
};
return c;
}
var lastTestId = 0;
process.stdout = createChannel(function (buf) {
var m = /^(?:not )? ok (\d+)/.exec(String(buf));
if (m) lastTestId = m[1];
});
process.stderr = createChannel();
process.stdout.on('close', function () { ws.end() });
process.exit = function () { ws.end() };
var oldError = window.onerror;
window.onerror = function (err, url, lineNum) {
var type = err && err.name || 'Error';
process.stdout.write(
'not ok ' + (lastTestId + 1) + ' ' + type + ': '
+ (err && err.message || String(err))
+ (lineNum ? ' on line ' + lineNum : '')
+ '\n'
);
if (err && err.stack) {
var lines = String(err.stack).split('\n');
var xs = [];
for (var i = 0; i < lines.length; i++) {
xs.push(' ' + lines[i]);
}
process.stdout.write([
' ---',
' stack:',
xs.join('\n'),
' ...'
].join('\n') + '\n');
}
ws.end();
if (typeof oldError === 'function') {
return oldError.apply(this, arguments);
}
};
window.__testlingErrorHandler = onerror;
if (typeof console === 'undefined') {
console = {};
}
var params = (function () {
var unesc = typeof decodeURIComponent !== 'undefined'
? decodeURIComponent : unescape
;
var parts = (window.location.search || '').replace(/^\?/, '').split('&');
var opts = {};
for (var i = 0; i < parts.length; i++) {
var x = parts[i].split('=');
opts[unesc(x[0])] = unesc(x[1]);
}
return opts;
})();
var originalLog = console.log;
console.log = function (msg) {
var index = 1;
var args = arguments;
if (typeof msg === 'string') {
msg = msg.replace(/(^|[^%])%[sd]/g, function (_, s) {
return s + args[index++];
});
}
else msg = inspect(msg);
for (var i = index; i < args.length; i++) {
msg += ' ' + inspect(args[i]);
}
if (params.show === undefined || parseBoolean(params.show)) {
var elem = document.getElementById('__testling_output');
if (elem) {
var txt = document.createTextNode(msg + '\n');
elem.appendChild(txt);
}
}
process.stdout.write(msg + '\n');
if (typeof originalLog === 'function') {
return originalLog.apply(this, arguments);
}
else if (originalLog) return originalLog(arguments[0]);
};
window.__testlingConsole = console;
function parseBoolean (x) {
if (x === 'false' || x === '0') return false;
return true;
}
}).call(this,require("g5I+bs"))
},{"g5I+bs":13,"object-inspect":11,"stream":19,"xhr-write-stream":30}],2:[function(require,module,exports){
;(function () {
var object = typeof exports != 'undefined' ? exports : this; // #8: web workers
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
function InvalidCharacterError(message) {
this.message = message;
}
InvalidCharacterError.prototype = new Error;
InvalidCharacterError.prototype.name = 'InvalidCharacterError';
// encoder
// [https://gist.github.com/999166] by [https://github.com/nignag]
object.btoa || (
object.btoa = function (input) {
for (
// initialize result and counter
var block, charCode, idx = 0, map = chars, output = '';
// if the next input index does not exist:
// change the mapping table to "="
// check if d has no fractional digits
input.charAt(idx | 0) || (map = '=', idx % 1);
// "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8
output += map.charAt(63 & block >> 8 - idx % 1 * 8)
) {
charCode = input.charCodeAt(idx += 3/4);
if (charCode > 0xFF) {
throw new InvalidCharacterError("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");
}
block = block << 8 | charCode;
}
return output;
});
// decoder
// [https://gist.github.com/1020396] by [https://github.com/atk]
object.atob || (
object.atob = function (input) {
input = input.replace(/=+$/, '');
if (input.length % 4 == 1) {
throw new InvalidCharacterError("'atob' failed: The string to be decoded is not correctly encoded.");
}
for (
// initialize result and counters
var bc = 0, bs, buffer, idx = 0, output = '';
// get next character
buffer = input.charAt(idx++);
// character found in table? initialize bit storage and add its ascii value;
~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,
// and if not first of each 4 characters,
// convert the first 8 bits to one ascii character
bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0
) {
// try to find character in table (0-63, not found => -1)
buffer = chars.indexOf(buffer);
}
return output;
});
}());
},{}],3:[function(require,module,exports){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var base64 = require('base64-js')
var ieee754 = require('ieee754')
exports.Buffer = Buffer
exports.SlowBuffer = Buffer
exports.INSPECT_MAX_BYTES = 50
Buffer.poolSize = 8192
/**
* If `Buffer._useTypedArrays`:
* === true Use Uint8Array implementation (fastest)
* === false Use Object implementation (compatible down to IE6)
*/
Buffer._useTypedArrays = (function () {
// Detect if browser supports Typed Arrays. Supported browsers are IE 10+, Firefox 4+,
// Chrome 7+, Safari 5.1+, Opera 11.6+, iOS 4.2+. If the browser does not support adding
// properties to `Uint8Array` instances, then that's the same as no `Uint8Array` support
// because we need to be able to add all the node Buffer API methods. This is an issue
// in Firefox 4-29. Now fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=695438
try {
var buf = new ArrayBuffer(0)
var arr = new Uint8Array(buf)
arr.foo = function () { return 42 }
return 42 === arr.foo() &&
typeof arr.subarray === 'function' // Chrome 9-10 lack `subarray`
} catch (e) {
return false
}
})()
/**
* Class: Buffer
* =============
*
* The Buffer constructor returns instances of `Uint8Array` that are augmented
* with function properties for all the node `Buffer` API functions. We use
* `Uint8Array` so that square bracket notation works as expected -- it returns
* a single octet.
*
* By augmenting the instances, we can avoid modifying the `Uint8Array`
* prototype.
*/
function Buffer (subject, encoding, noZero) {
if (!(this instanceof Buffer))
return new Buffer(subject, encoding, noZero)
var type = typeof subject
// Workaround: node's base64 implementation allows for non-padded strings
// while base64-js does not.
if (encoding === 'base64' && type === 'st
没有合适的资源?快使用搜索试试~ 我知道了~
micro-app vue2案例
共44226个文件
js:25651个
ts:6430个
json:3160个
需积分: 0 7 下载量 26 浏览量
2023-01-28
17:48:40
上传
评论
收藏 71.53MB ZIP 举报
温馨提示
micro-app借鉴了html原生WebComponent的思想,通过CustomElement结合自定义的ShadowDom,将微前端封装成一个类WebComponent组件,从而实现微前端的组件化渲染。并且由于自定义ShadowDom的隔离特性,micro-app不需要像single-spa和qiankun一样要求子应用修改渲染逻辑并暴露出方法,也不需要修改webpack配置,是目前市面上接入微前端成本最低的方案。 自己尝了下,案例分享大家 官方案例:https://zeroing.jd.com/micro-app/demo/vue2#/ 官方文档:https://zeroing.jd.com/micro-app/docs.html#/
资源推荐
资源详情
资源评论
收起资源包目录
micro-app vue2案例 (44226个子文件)
0e297e0f53483455d2aa432887c3b7975d6c11 117B
0e297e0f53483455d2aa432887c3b7975d6c11 117B
he.1 3KB
he.1 3KB
jsesc.1 3KB
jsesc.1 3KB
jsesc.1 3KB
jsesc.1 3KB
cssesc.1 2KB
cssesc.1 2KB
10c6a45035b6573151ff6196e4bdea78deb75d 53B
10c6a45035b6573151ff6196e4bdea78deb75d 53B
19d02ef06918a264d911d8cf5e7f4bfd11d8b2 311B
1e7772050aab49fae79404463cb9e4df20a14d 208B
209eb5fd63d3fe827e95ac32a991267a31a90c 120B
24075408b21266a8f6cd85e72518374e7aabd2 405B
36fcfb72584e00488330b560ebcf34a41c64c2 979B
36fcfb72584e00488330b560ebcf34a41c64c2 979B
3adbc1e527906a4aa59558cd582c20bcd1d738 160B
3adbc1e527906a4aa59558cd582c20bcd1d738 160B
4c2cd2c874e7283d03f5c1ff5c24717357f9ed 206B
5499514f657ddba1477ef1d20a2d59dd029ee8 406B
558405fdcc02f12d757acb308e02937a7444f1 82B
558405fdcc02f12d757acb308e02937a7444f1 82B
5a13962197105f2078d2a224cc57dfa09b4893 383B
5a13962197105f2078d2a224cc57dfa09b4893 383B
62f279ac82ff0d9f828849bab643f3cd66ac8b 217KB
779d65edd61128c9745c3d74f13543ceb86ffa 120B
890dfdda1497124ed564a919f6d7b510790ed2 150B
890dfdda1497124ed564a919f6d7b510790ed2 150B
8a994cf48c02ee697d0741a67efb3736db418c 217KB
9051a29739fdfb17ae82ed23b53fac251c2b7e 713B
9051a29739fdfb17ae82ed23b53fac251c2b7e 713B
_editorconfig 160B
_editorconfig 160B
_editorconfig 121B
_editorconfig 121B
_gitignore 670B
_gitignore 670B
acorn 62B
acorn 62B
acorn 60B
acorn 60B
acorn 18B
acorn 18B
acorn 18B
acorn 18B
afaea7e0f99e8262f35bd394af63c86e2c04b3 59B
afaea7e0f99e8262f35bd394af63c86e2c04b3 59B
afc5f6ed86fe6dff8d4b6be59290cbdeb61656 175B
afc5f6ed86fe6dff8d4b6be59290cbdeb61656 175B
ansi-html 2KB
ansi-html 2KB
ansi-html 36B
ansi-html 36B
openChrome.applescript 2KB
openChrome.applescript 2KB
applypatch-msg 1KB
applypatch-msg 1KB
AUTHORS 203B
AUTHORS 203B
AUTHORS 152B
AUTHORS 152B
.auto-changelog 113B
.auto-changelog 113B
autoprefixer 554B
autoprefixer 554B
autoprefixer 32B
autoprefixer 32B
.babelrc 164B
.babelrc 164B
.babelrc 68B
.babelrc 68B
.babelrc 57B
.babelrc 57B
.babelrc 55B
.babelrc 55B
.babelrc 30B
.babelrc 30B
benchmark 692B
benchmark 692B
bf960e214e73e5513e054ac34c331b6d4b1a46 88B
bf960e214e73e5513e054ac34c331b6d4b1a46 88B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
共 44226 条
- 1
- 2
- 3
- 4
- 5
- 6
- 443
资源评论
美酒没故事°
- 粉丝: 996
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- unidac29 for delphi 12.1
- Cauchy奇异积分的数值计算程序
- 基于Python实现的股票量化交易策略源代码+视频讲解+案例代码,含RSI策略、BOP指标策略、KDJ策略、MACD指标策略等
- EDA编码.zip
- 文本分类任务训练神经网络来学习词汇表中每个词的词向量
- MyBatis进阶技巧:探索动态SQL的无限可能.md
- HM2300C-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- HM2300B-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 员工解除劳动合同申请表.pdf
- 物模块模型代码,前往设计物模块所属
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功