Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Oct 17, 2024
2 parents 52a3919 + b3068e7 commit b571196
Show file tree
Hide file tree
Showing 14 changed files with 30,099 additions and 7,915 deletions.
220 changes: 15 additions & 205 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,218 +4,28 @@
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width,initial-scale=1.0" name="viewport">
<link href="favicon.ico" rel="icon">
<link href="./node_modules/crawlab-ui/dist/favicon.ico" rel="icon">
<title>Crawlab</title>

<!--externals-->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/css/font-awesome.css" rel="stylesheet">

<script src="js/vue3-sfc-loader.js"></script>
<script src="js/login-canvas.js"></script>
<style>
#loading-placeholder {
position: fixed;
background: white;
z-index: -1;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}

#loading-placeholder .title-wrapper {
height: 54px;
}

#loading-placeholder .title {
font-family: "Verdana", serif;
font-weight: 600;
font-size: 48px;
color: #409EFF;
text-align: center;
cursor: default;
letter-spacing: -5px;
margin: 0;
}

#loading-placeholder .title > span {
display: inline-block;
animation: change-shape 1s infinite;
}

#loading-placeholder .title > span:nth-child(1) {
animation-delay: calc(1s / 7 * 0 / 2);
}

#loading-placeholder .title > span:nth-child(2) {
animation-delay: calc(1s / 7 * 1 / 2);
}

#loading-placeholder .title > span:nth-child(3) {
animation-delay: calc(1s / 7 * 2 / 2);
}

#loading-placeholder .title > span:nth-child(4) {
animation-delay: calc(1s / 7 * 3 / 2);
}

#loading-placeholder .title > span:nth-child(5) {
animation-delay: calc(1s / 7 * 4 / 2);
}

#loading-placeholder .title > span:nth-child(6) {
animation-delay: calc(1s / 7 * 5 / 2);
}

#loading-placeholder .title > span:nth-child(7) {
animation-delay: calc(1s / 7 * 6 / 2);
}

#loading-placeholder .sub-title-wrapper {
position: relative;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 10px;
height: 28px;
}

#loading-placeholder .sub-title-wrapper .sub-title {
position: absolute;
font-size: 18px;
font-weight: 300;
font-family: "Verdana", serif;
font-style: italic;
color: #67C23A;
transform: rotate3d(1, 0, 0, 90deg);
animation: flip 20s infinite;
/*color: #E6A23C;*/
/*color: #F56C6C;*/
}

#loading-placeholder .sub-title-wrapper > .sub-title:nth-child(1) {
animation-delay: calc(20s / 4 * 0);
}

#loading-placeholder .sub-title-wrapper > .sub-title:nth-child(2) {
animation-delay: calc(20s / 4 * 1);
}

#loading-placeholder .sub-title-wrapper > .sub-title:nth-child(3) {
animation-delay: calc(20s / 4 * 2);
}

#loading-placeholder .sub-title-wrapper > .sub-title:nth-child(4) {
animation-delay: calc(20s / 4 * 3);
}

#loading-placeholder .loading-text {
text-align: center;
font-weight: bolder;
font-family: "Verdana", serif;
font-style: italic;
color: #889aa4;
font-size: 14px;
animation: blink-loading 2s ease-in infinite;
}

@keyframes blink-loading {
0% {
opacity: 100%;
}

50% {
opacity: 50%;
}

100% {
opacity: 100%;
}
}

@keyframes change-shape {
0% {
transform: scale(1);
}

25% {
transform: scale(1.2);
}

50% {
transform: scale(1);
}

100% {
transform: scale(1);
}
}

@keyframes flip {
0% {
transform: rotate3d(1, 0, 0, 90deg);
}

2% {
transform: rotate3d(1, 0, 0, 90deg);
}

7% {
transform: rotate3d(1, 0, 0, 0);
}

23% {
transform: rotate3d(1, 0, 0, 0);
}

27% {
transform: rotate3d(1, 0, 0, 90deg);
}

50% {
transform: rotate3d(1, 0, 0, 90deg);
}

100% {
transform: rotate3d(1, 0, 0, 90deg);
}
}
</style>
<link href="./node_modules/crawlab-ui/dist/css/font-awesome.min.css" rel="stylesheet">
<link href="./node_modules/crawlab-ui/dist/css/style.css" rel="stylesheet">
<script type="application/javascript" src="three/three.min.js"></script>
<script type="module" src="./node_modules/crawlab-ui/dist/js/login-canvas-three.js"></script>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
<strong>We're sorry but Crawlab doesn't work properly without JavaScript enabled.
Please enable it to continue.</strong>
</noscript>
<div id="loading-placeholder">
<div style="margin-bottom: 150px">
<div class="title-wrapper">
<h3 class="title">
<span>C</span>
<span>R</span>
<span>A</span>
<span>W</span>
<span>L</span>
<span>A</span>
<span>B</span>
</h3>
</div>
<div class="sub-title-wrapper">
<span class="sub-title"><i class="fa fa-cloud-download"></i> Easy Crawling</span>
<span class="sub-title"><i class="fa fa-diamond"></i> Better Management</span>
<span class="sub-title"><i class="fa fa-dollar"></i> Gain Data Value</span>
<span class="sub-title"><i class="fa fa-server"></i> Good Scalability</span>
</div>
<div class="loading-text">
Loading...
</div>
</div>
</div>
<div id="login-canvas"></div>
<script>
window.onload = function() {
if (window.initCanvas) {
window.initCanvas();
}
};
</script>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<script type="module" src="./src/main.ts"></script>
<!-- built files will be auto injected -->
</body>
</html>
55 changes: 42 additions & 13 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@crawlab/app",
"version": "0.6.3",
"version": "0.7.0",
"scripts": {
"serve": "vite",
"serve:dist": "serve dist",
Expand All @@ -13,19 +13,48 @@
},
"license": "BSD-3-Clause",
"dependencies": {
"@element-plus/icons": "^0.0.11",
"@fortawesome/fontawesome-svg-core": "^1.3.0",
"@fortawesome/free-brands-svg-icons": "^6.0.0",
"@fortawesome/free-regular-svg-icons": "^6.0.0",
"@fortawesome/free-solid-svg-icons": "^6.0.0",
"@fortawesome/vue-fontawesome": "^3.0.0-5",
"@element-plus/icons-vue": "^2.3.1",
"@fortawesome/fontawesome-common-types": "^6.5.2",
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-brands-svg-icons": "^6.5.2",
"@fortawesome/free-regular-svg-icons": "^6.5.2",
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@fortawesome/vue-fontawesome": "^3.0.8",
"@popperjs/core": "^2.11.8",
"@types/getos": "^3.0.4",
"@types/humanize-duration": "^3.27.4",
"@types/javascript-time-ago": "^2.0.8",
"@types/md5": "^2.3.5",
"@types/pinyin": "^2.10.2",
"@types/showdown": "^2.0.6",
"@types/url-join": "^4.0.3",
"async-validator": "^4.2.5",
"atom-material-icons": "^3.0.0",
"codemirror": "^5.59.1",
"crawlab-ui": "0.6.3",
"echarts": "^5.1.2",
"element-plus": "^1.3.0-beta.10",
"vue": "^3.2",
"vue-router": "^4.0.11"
"axios": "^1.7.2",
"core-js": "^3.37.1",
"crawlab-ui": "0.7.0-rc3",
"crawlab-vue3-dropzone": "3.0.3",
"cron-parser": "^4.9.0",
"cronstrue": "^2.50.0",
"dayjs": "^1.11.11",
"element-plus": "^2.7.6",
"font-awesome": "^4.7.0",
"humanize-duration": "^3.32.1",
"javascript-time-ago": "^2.5.10",
"md5": "^2.3.0",
"monaco-editor": "^0.50.0",
"normalize.css": "^8.0.1",
"os-name": "^5.0.1",
"pinyin": "^2.10.2",
"point-cluster": "^3.1.8",
"showdown": "^2.1.0",
"three": "^0.166.0",
"url-join": "^4.0.1",
"vue": "^3.4",
"vue-clipboard3": "^2.0.0",
"vue-i18n": "9.13.1",
"vue-router": "4.4.0",
"vuex": "^4.1.0"
},
"devDependencies": {
"@types/node": "^18.11.10",
Expand Down
Loading

0 comments on commit b571196

Please sign in to comment.