mirror of
https://gitee.com/newgateway/vtj.git
synced 2026-07-02 00:17:19 +08:00
120 lines
4.4 KiB
HTML
120 lines
4.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<script type="module" crossorigin src="./assets/polyfills-d85c778e.js"></script>
|
|
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="favicon.ico" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
|
|
<meta http-equiv="Pragma" content="no-cache"/>
|
|
<meta http-equiv="Expires" content="0"/>
|
|
<title>低代码设计引擎 - VTJ.PRO</title>
|
|
<style>
|
|
#vtj-ide-loading {
|
|
width: 400px;
|
|
height: 100px;
|
|
position: fixed;
|
|
left:50%;
|
|
top: 50%;
|
|
transform: translate(-50%,-50%);
|
|
z-index: 9999;
|
|
border-radius: 4px;
|
|
background-color: rgba(255,255,255,0.7);
|
|
box-shadow: 0 0 10px rgba(0,0,0,0.2);
|
|
padding: 20px;
|
|
font-size: 12px;
|
|
box-sizing: border-box;
|
|
}
|
|
.vtj-ide-loading__bar {
|
|
height: 14px;
|
|
border-radius: 4px;
|
|
margin-top: 10px;
|
|
border: 1px solid #eee;
|
|
overflow: hidden;
|
|
}
|
|
.vtj-ide-loading__title {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
.vtj-ide-loading__value {
|
|
display: block;
|
|
height: 100%;
|
|
background-color: #409eff;
|
|
border-radius: 4px;
|
|
font-size: 0;
|
|
|
|
}
|
|
</style>
|
|
<script type="module" crossorigin src="./assets/index-34b6f859.js"></script>
|
|
<link rel="modulepreload" crossorigin href="./assets/@vue-49a84096.js">
|
|
<link rel="modulepreload" crossorigin href="./assets/vue-router-47831170.js">
|
|
<link rel="modulepreload" crossorigin href="./assets/monaco-editor-9d90760d.js">
|
|
<link rel="modulepreload" crossorigin href="./assets/vue-12cb05e3.js">
|
|
<link rel="modulepreload" crossorigin href="./assets/@element-plus-08099ba7.js">
|
|
<link rel="modulepreload" crossorigin href="./assets/@vueuse-a75bf2d8.js">
|
|
<link rel="modulepreload" crossorigin href="./assets/lodash-es-93fc2c10.js">
|
|
<link rel="modulepreload" crossorigin href="./assets/async-validator-b6b8d38d.js">
|
|
<link rel="modulepreload" crossorigin href="./assets/@ctrl-b0f23ca4.js">
|
|
<link rel="modulepreload" crossorigin href="./assets/@popperjs-7c8154ca.js">
|
|
<link rel="modulepreload" crossorigin href="./assets/element-plus-78046a8b.js">
|
|
<link rel="stylesheet" href="./assets/monaco-editor-bca7b021.css">
|
|
<link rel="stylesheet" href="./assets/element-plus-dda8ce9e.css">
|
|
<link rel="stylesheet" href="./assets/index-d3daf3dc.css">
|
|
<link rel="stylesheet" href="./assets/ant-design-vue-25a63267.css">
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<div id="vtj-ide-loading">
|
|
<div class="vtj-ide-loading__title"><span>正在加载资源.... </span><span id="vtj-ide-loading-count"></span></div>
|
|
<div class="vtj-ide-loading__bar">
|
|
<span class="vtj-ide-loading__value" id="vtj-ide-loading-value" style="width:0%"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
var _hmt = _hmt || [];
|
|
(function() {
|
|
var hm = document.createElement("script");
|
|
hm.src = "https://hm.baidu.com/hm.js?ef1ba59d70b12a005a6058f563f634bb";
|
|
var s = document.getElementsByTagName("script")[0];
|
|
s.parentNode.insertBefore(hm, s);
|
|
})();
|
|
|
|
(function(){
|
|
var loading = document.querySelector('#vtj-ide-loading');
|
|
var countEl = document.querySelector('#vtj-ide-loading-count');
|
|
var valueEl = document.querySelector('#vtj-ide-loading-value');
|
|
var links = document.querySelectorAll('link,script');
|
|
var total = links.length;
|
|
var setValue = function(current) {
|
|
countEl.innerHTML = current + '/' +total;
|
|
valueEl.style.width = (current * 100 / total) + '%';
|
|
if(!total || current === total) {
|
|
setTimeout(function() {
|
|
loading.parentNode.removeChild(loading);
|
|
loading = null;
|
|
countEl = null;
|
|
valueEl = null;
|
|
}, 100);
|
|
}
|
|
}
|
|
|
|
var current = 0;
|
|
links.forEach(function(link) {
|
|
link.onload = function() {
|
|
++current;
|
|
setValue(current);
|
|
link.onload = null;
|
|
}
|
|
})
|
|
window.addEventListener('load',function() {
|
|
current = total
|
|
setValue(current)
|
|
});
|
|
|
|
})()
|
|
</script>
|
|
</body>
|
|
</html>
|