Merge pull request #547 from Heap-Hop/master

refactor web dir
This commit is contained in:
RustDesk 2022-05-17 23:01:33 +08:00 committed by GitHub
commit 6de6d6c7a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 53 additions and 47 deletions

View File

@ -2,8 +2,7 @@ assets
js/src/gen_js_from_hbb.ts js/src/gen_js_from_hbb.ts
js/src/message.ts js/src/message.ts
js/src/rendezvous.ts js/src/rendezvous.ts
ogvjs-1.8.6 ogvjs*
libopus.js libopus.js
libopus.wasm libopus.wasm
yuv-canvas-1.2.6.js yuv-canvas*
.yarn

View File

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<!-- <!--
If you are serving your web app in a path other than the root, change the If you are serving your web app in a path other than the root, change the
@ -31,11 +32,11 @@
<title>RustDesk</title> <title>RustDesk</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<script src="ogvjs-1.8.6/ogv.js"></script> <script src="libs/ogvjs-1.8.6/ogv.js"></script>
<script src="yuv.js"></script> <script src="libs/yuv.js"></script>
<script type="module" crossorigin src="js/dist/index.js"></script> <script type="module" crossorigin src="js/dist/index.js"></script>
<link rel="modulepreload" href="js/dist/vendor.js"> <link rel="modulepreload" href="js/dist/vendor.js">
<script src="yuv-canvas-1.2.6.js"></script> <script src="libs/yuv-canvas-1.2.6.js"></script>
<style> <style>
.loading { .loading {
display: flex; display: flex;
@ -52,7 +53,7 @@
.loader { .loader {
border: 16px solid #f3f3f3; border: 16px solid #f3f3f3;
border-radius: 50%; border-radius: 50%;
border: 15px solid ; border: 15px solid;
border-top: 16px solid #024eff; border-top: 16px solid #024eff;
border-right: 16px solid white; border-right: 16px solid white;
border-bottom: 16px solid #024eff; border-bottom: 16px solid #024eff;
@ -67,6 +68,7 @@
0% { 0% {
-webkit-transform: rotate(0deg); -webkit-transform: rotate(0deg);
} }
100% { 100% {
-webkit-transform: rotate(360deg); -webkit-transform: rotate(360deg);
} }
@ -76,6 +78,7 @@
0% { 0% {
transform: rotate(0deg); transform: rotate(0deg);
} }
100% { 100% {
transform: rotate(360deg); transform: rotate(360deg);
} }
@ -83,10 +86,11 @@
</style> </style>
</head> </head>
<body> <body>
<div class="loading"> <div class="loading">
<div class="loader"></div> <div class="loader"></div>
</div> </div>
<!-- This script installs service_worker.js to provide PWA functionality to <!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see: application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers --> https://developers.google.com/web/fundamentals/primers/service-workers -->
@ -154,10 +158,10 @@
loadMainDartJs(); loadMainDartJs();
} }
</script> </script>
<script src="assets/firebase-app.js?8.10.1"></script> <script src="libs/firebase-app.js?8.10.1"></script>
<script src="assets/firebase-analytics.js?8.10.1"></script> <script src="libs/firebase-analytics.js?8.10.1"></script>
<script> <script>
// Your web app's Firebase configuration // Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional // For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = { const firebaseConfig = {
@ -174,6 +178,7 @@
// Initialize Firebase // Initialize Firebase
firebase.initializeApp(firebaseConfig); firebase.initializeApp(firebaseConfig);
firebase.analytics(); firebase.analytics();
</script> </script>
</body> </body>
</html> </html>

View File

@ -6,3 +6,4 @@ dist-ssr
*log *log
ogvjs ogvjs
.vscode .vscode
.yarn

View File

@ -1,15 +1,16 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head>
<head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg?v2" /> <link rel="icon" type="image/svg+xml" href="favicon.svg?v2" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="ogvjs-1.8.6/ogv.js"></script>
<script src="./yuv-canvas-1.2.6.js"></script>
<title>Vite App</title> <title>Vite App</title>
</head> </head>
<body>
<body>
<div id="app"></div> <div id="app"></div>
<script type="module" src="/src/main.ts"></script> <script type="module" src="/src/main.ts"></script>
</body> </body>
</html> </html>