Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rustdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李朝发
rustdesk
Commits
4887cdb7
Commit
4887cdb7
authored
May 17, 2022
by
csf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor web dir
parent
7a3e95ed
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
55 additions
and
49 deletions
+55
-49
.gitignore
flutter/web/.gitignore
+2
-3
index.html
flutter/web/index.html
+38
-33
.gitignore
flutter/web/js/.gitignore
+1
-0
index.html
flutter/web/js/index.html
+14
-13
firebase-analytics.js
flutter/web/libs/firebase-analytics.js
+0
-0
firebase-app.js
flutter/web/libs/firebase-app.js
+0
-0
yuv.js
flutter/web/libs/yuv.js
+0
-0
yuv.wasm
flutter/web/libs/yuv.wasm
+0
-0
No files found.
flutter/web/.gitignore
View file @
4887cdb7
...
...
@@ -2,8 +2,7 @@ assets
js/src/gen_js_from_hbb.ts
js/src/message.ts
js/src/rendezvous.ts
ogvjs
-1.8.6
ogvjs
*
libopus.js
libopus.wasm
yuv-canvas-1.2.6.js
.yarn
\ No newline at end of file
yuv-canvas*
\ No newline at end of file
flutter/web/index.html
View file @
4887cdb7
<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
...
...
@@ -31,12 +32,12 @@
<title>
RustDesk
</title>
<link
rel=
"manifest"
href=
"manifest.json"
>
<script
src=
"ogvjs-1.8.6/ogv.js"
></script>
<script
src=
"yuv.js"
></script>
<script
src=
"
libs/
ogvjs-1.8.6/ogv.js"
></script>
<script
src=
"
libs/
yuv.js"
></script>
<script
type=
"module"
crossorigin
src=
"js/dist/index.js"
></script>
<link
rel=
"modulepreload"
href=
"js/dist/vendor.js"
>
<script
src=
"yuv-canvas-1.2.6.js"
></script>
<style>
<script
src=
"
libs/
yuv-canvas-1.2.6.js"
></script>
<style>
.loading
{
display
:
flex
;
justify-content
:
center
;
...
...
@@ -48,11 +49,11 @@
-ms-transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
}
.loader
{
border
:
16px
solid
#f3f3f3
;
border-radius
:
50%
;
border
:
15px
solid
;
border
:
15px
solid
;
border-top
:
16px
solid
#024eff
;
border-right
:
16px
solid
white
;
border-bottom
:
16px
solid
#024eff
;
...
...
@@ -62,20 +63,22 @@
-webkit-animation
:
spin
2s
linear
infinite
;
animation
:
spin
2s
linear
infinite
;
}
@-webkit-keyframes
spin
{
0
%
{
-webkit-transform
:
rotate
(
0deg
);
}
100
%
{
-webkit-transform
:
rotate
(
360deg
);
}
}
@keyframes
spin
{
0
%
{
transform
:
rotate
(
0deg
);
}
100
%
{
transform
:
rotate
(
360deg
);
}
...
...
@@ -83,10 +86,11 @@
</style>
</head>
<body>
<div
class=
"loading"
>
<div
class=
"loader"
></div>
</div>
<div
class=
"loading"
>
<div
class=
"loader"
></div>
</div>
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
...
...
@@ -154,26 +158,27 @@
loadMainDartJs
();
}
</script>
<script
src=
"
asset
s/firebase-app.js?8.10.1"
></script>
<script
src=
"
asset
s/firebase-analytics.js?8.10.1"
></script>
<script>
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const
firebaseConfig
=
{
apiKey
:
"AIzaSyCgehIZk1aFP0E7wZtYRRqrfvNiNAF39-A"
,
authDomain
:
"rustdesk.firebaseapp.com"
,
databaseURL
:
"https://rustdesk.firebaseio.com"
,
projectId
:
"rustdesk"
,
storageBucket
:
"rustdesk.appspot.com"
,
messagingSenderId
:
"768133699366"
,
appId
:
"1:768133699366:web:d50faf0792cb208d7993e7"
,
measurementId
:
"G-9PEH85N6ZQ"
};
// Initialize Firebase
firebase
.
initializeApp
(
firebaseConfig
);
firebase
.
analytics
();
</script>
<script
src=
"
lib
s/firebase-app.js?8.10.1"
></script>
<script
src=
"
lib
s/firebase-analytics.js?8.10.1"
></script>
<script>
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const
firebaseConfig
=
{
apiKey
:
"AIzaSyCgehIZk1aFP0E7wZtYRRqrfvNiNAF39-A"
,
authDomain
:
"rustdesk.firebaseapp.com"
,
databaseURL
:
"https://rustdesk.firebaseio.com"
,
projectId
:
"rustdesk"
,
storageBucket
:
"rustdesk.appspot.com"
,
messagingSenderId
:
"768133699366"
,
appId
:
"1:768133699366:web:d50faf0792cb208d7993e7"
,
measurementId
:
"G-9PEH85N6ZQ"
};
// Initialize Firebase
firebase
.
initializeApp
(
firebaseConfig
);
firebase
.
analytics
();
</script>
</body>
</html>
</html>
\ No newline at end of file
flutter/web/js/.gitignore
View file @
4887cdb7
...
...
@@ -6,3 +6,4 @@ dist-ssr
*log
ogvjs
.vscode
.yarn
flutter/web/js/index.html
View file @
4887cdb7
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
/>
<link
rel=
"icon"
type=
"image/svg+xml"
href=
"favicon.svg?v2"
/>
<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>
</head>
<body>
<div
id=
"app"
></div>
<script
type=
"module"
src=
"/src/main.ts"
></script>
</body>
</html>
<head>
<meta
charset=
"UTF-8"
/>
<link
rel=
"icon"
type=
"image/svg+xml"
href=
"favicon.svg?v2"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<title>
Vite App
</title>
</head>
<body>
<div
id=
"app"
></div>
<script
type=
"module"
src=
"/src/main.ts"
></script>
</body>
</html>
\ No newline at end of file
flutter/web/
asset
s/firebase-analytics.js
→
flutter/web/
lib
s/firebase-analytics.js
View file @
4887cdb7
File moved
flutter/web/
asset
s/firebase-app.js
→
flutter/web/
lib
s/firebase-app.js
View file @
4887cdb7
File moved
flutter/web/yuv.js
→
flutter/web/
libs/
yuv.js
View file @
4887cdb7
File moved
flutter/web/yuv.wasm
→
flutter/web/
libs/
yuv.wasm
View file @
4887cdb7
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment