Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
ZeusHub_Unity
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘梓豪
ZeusHub_Unity
Commits
3b13092c
Commit
3b13092c
authored
Aug 19, 2022
by
潘梓豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改密码眼
parent
878deddc
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
4244 additions
and
188 deletions
+4244
-188
ES3GlobalReferences.asset
...ugins/Easy Save 3/Resources/ES3/ES3GlobalReferences.asset
+9
-1
LoadingUI.cs
Assets/Scripts/Components/UI/LoadingUI.cs
+37
-1
RegisterButton.cs
Assets/Scripts/EasySave/RegisterButton.cs
+10
-1
ShowPassWord.cs
Assets/Scripts/EasySave/ShowPassWord.cs
+42
-0
ShowPassWord.cs.meta
Assets/Scripts/EasySave/ShowPassWord.cs.meta
+11
-0
ZeusHub_Manager.cs
Assets/Scripts/EasySave/ZeusHub_Manager.cs
+4
-0
DownloadUntily.cs
Assets/Scripts/unit/DownloadUntily.cs
+0
-1
MyScene.unity
Assets/_Scenes/MyScene.unity
+3727
-158
loadui.css
BrowserAssets/Appzia/dist/assets/css/loadui.css
+48
-0
style.css
BrowserAssets/Appzia/dist/assets/css/style.css
+221
-0
index.html
BrowserAssets/Appzia/dist/index.html
+78
-24
index2.html
BrowserAssets/Appzia/dist/index2.html
+54
-2
log.txt
Log/log.txt
+3
-0
No files found.
Assets/Plugins/Easy Save 3/Resources/ES3/ES3GlobalReferences.asset
View file @
3b13092c
...
...
@@ -59,4 +59,12 @@ MonoBehaviour:
-
{
fileID
:
10900
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
-
{
fileID
:
10901
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
-
{
fileID
:
11500000
,
guid
:
12ba7b71cc04d744d96cc77fc98361ed
,
type
:
3
}
_Values
:
7b3984e6e3131c3a2e49df665222b669a5d1ff93488b6f208275de66676a6f2a3297fea26c99d37b5f6558d8b0bed82cbea35bd209153c3462a700097cdd197717c4ca9ade77460a16cfbdab362de15b9c3ef3f1bdb1da47792e1234cebd647e7d3db6ff7c40f74678a45b442ff4ca65eb8322b064113c576b3f2ef877e2de5ab8536b930c5f1019eb9a31e79dfa066baa29636123cc2714ae529505ab0dfa0643c4ef012d48034b12eab983bfa43907ec4025594774ad61149bf2acc84f4e40346ea6edacc2804cfea435af0078bf35fa0e8f4f3993417e4c7148f47eab4d03266ad1444771bd4ea8d6dd783747cc2627daa9b6ade36f4f7f786684684780134b95c902679676474753a4b216befe5f67c078c096edfc792264fa94d7c1447c0adfd78de286e13c395a77638d4b653311e995ccf73e542e05846f04dc1d3e02bf1667b8b6fc5f024563f6801123770fa8dac044943be61ca2cb062f657a432f2f121c9bd4022925
-
{
fileID
:
11500000
,
guid
:
03acdc09aa4ca964f8b213f034f12475
,
type
:
3
}
-
{
fileID
:
2800000
,
guid
:
b7f3cecf69a53e948b3aa9b5a9672913
,
type
:
3
}
-
{
fileID
:
21300000
,
guid
:
b7f3cecf69a53e948b3aa9b5a9672913
,
type
:
3
}
-
{
fileID
:
2800000
,
guid
:
8a2862e259e8d0e4e8dc0b3bac5771dc
,
type
:
3
}
-
{
fileID
:
21300000
,
guid
:
8a2862e259e8d0e4e8dc0b3bac5771dc
,
type
:
3
}
-
{
fileID
:
2800000
,
guid
:
e846a863b5eab5a488fbb1af93bb10b8
,
type
:
3
}
-
{
fileID
:
21300000
,
guid
:
e846a863b5eab5a488fbb1af93bb10b8
,
type
:
3
}
-
{
fileID
:
11500000
,
guid
:
5973471ac62d37b41a43fd1298821a3f
,
type
:
3
}
_Values
:
7b3984e6e3131c3a2e49df665222b669a5d1ff93488b6f208275de66676a6f2a3297fea26c99d37b5f6558d8b0bed82cbea35bd209153c3462a700097cdd197717c4ca9ade77460a16cfbdab362de15b9c3ef3f1bdb1da47792e1234cebd647e7d3db6ff7c40f74678a45b442ff4ca65eb8322b064113c576b3f2ef877e2de5ab8536b930c5f1019eb9a31e79dfa066baa29636123cc2714ae529505ab0dfa0643c4ef012d48034b12eab983bfa43907ec4025594774ad61149bf2acc84f4e40346ea6edacc2804cfea435af0078bf35fa0e8f4f3993417e4c7148f47eab4d03266ad1444771bd4ea8d6dd783747cc2627daa9b6ade36f4f7f786684684780134b95c902679676474753a4b216befe5f67c078c096edfc792264fa94d7c1447c0adfd78de286e13c395a77638d4b653311e995ccf73e542e05846f04dc1d3e02bf1667b8b6fc5f024563f6801123770fa8dac044943be61ca2cb062f657a432f2f121c9bd402292548d4d8d02970b20142702d94d01cb8495bf320942acd6860d1be231066f800596387dacb10ef072aac12101209321b0406dd61c476c787227bd7713e70b4c34c
Assets/Scripts/Components/UI/LoadingUI.cs
View file @
3b13092c
using
UnityEngine
;
using
TMPro
;
using
System.Timers
;
using
UnityEngine.UI
;
public
class
LoadingUI
:
MonoBehaviour
{
public
TMP_Text
load_txt
;
public
TMP_Text
Tips
;
public
GameObject
load_img
;
private
int
x
=
0
;
private
void
Awake
()
{
}
private
void
Start
()
{
}
private
void
Update
()
{
flush
();
}
public
void
flush
()
{
x
=
x
+
10
;
load_img
.
GetComponent
<
Image
>().
transform
.
Rotate
(
0
,
0
,
x
);
if
(
x
==
360
)
x
=
0
;
System
.
Threading
.
Thread
.
Sleep
(
500
);
}
}
Assets/Scripts/EasySave/RegisterButton.cs
View file @
3b13092c
...
...
@@ -18,10 +18,14 @@ public class RegisterButton : MonoBehaviour
public
Toggle
remember_me
;
public
GameObject
load
;
RequestMethod
requestMethod
;
ZeusHub_Manager
manager
;
IEnumerator
Start
()
{
yield
return
null
;
...
...
@@ -42,6 +46,7 @@ public class RegisterButton : MonoBehaviour
protected
void
_onReceiveMsg
(
object
data
,
string
parameter
)
{
load
.
SetActive
(
false
);
RequestManager
requestManager
=(
RequestManager
)
data
;
if
(
requestManager
.
type
.
Equals
(
"ValiDate"
))
...
...
@@ -140,6 +145,7 @@ public class RegisterButton : MonoBehaviour
protected
void
_onReceiveErrorMsg
(
string
error_str
)
{
load
.
SetActive
(
false
);
msg
.
text
=
"错误"
;
}
...
...
@@ -164,7 +170,9 @@ public class RegisterButton : MonoBehaviour
msg
.
text
=
"请输入验证码"
;
return
;
}
load
.
SetActive
(
true
);
//判断是否已被使用
StartCoroutine
(
requestMethod
.
GetDataJson
(
Setting
.
IP
+
"/zeus/sms/validate/"
+
TextTool
.
relacestr
(
username
.
text
),
"ValiDate"
));
...
...
@@ -182,6 +190,7 @@ public class RegisterButton : MonoBehaviour
}
public
void
gettoken
()
{
load
.
SetActive
(
true
);
var
inputfiled
=
password
.
GetComponentInParent
<
TMP_InputField
>();
WWWForm
formData
=
new
WWWForm
();
...
...
Assets/Scripts/EasySave/ShowPassWord.cs
0 → 100644
View file @
3b13092c
using
System.Collections
;
using
System.Collections.Generic
;
using
TMPro
;
using
UnityEngine
;
using
UnityEngine.EventSystems
;
public
class
ShowPassWord
:
MonoBehaviour
,
IPointerClickHandler
,
IPointerDownHandler
,
IPointerUpHandler
{
public
GameObject
password
;
// Start is called before the first frame update
void
Start
()
{
}
// Update is called once per frame
void
Update
()
{
}
public
void
OnPointerClick
(
PointerEventData
eventData
)
{
}
public
void
OnPointerDown
(
PointerEventData
eventData
)
{
TMP_InputField
tMP_InputField
=
password
.
GetComponent
<
TMP_InputField
>();
tMP_InputField
.
inputType
=
TMP_InputField
.
InputType
.
Standard
;
tMP_InputField
.
ForceLabelUpdate
();
}
public
void
OnPointerUp
(
PointerEventData
eventData
)
{
TMP_InputField
tMP_InputField
=
password
.
GetComponent
<
TMP_InputField
>();
tMP_InputField
.
inputType
=
TMP_InputField
.
InputType
.
Password
;
tMP_InputField
.
ForceLabelUpdate
();
}
}
Assets/Scripts/EasySave/ShowPassWord.cs.meta
0 → 100644
View file @
3b13092c
fileFormatVersion: 2
guid: 5973471ac62d37b41a43fd1298821a3f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Scripts/EasySave/ZeusHub_Manager.cs
View file @
3b13092c
...
...
@@ -31,6 +31,9 @@ public class ZeusHub_Manager : MonoBehaviour
public
Toggle
remember_me
;
public
GameObject
load
;
IEnumerator
Start
()
{
...
...
@@ -65,6 +68,7 @@ public class ZeusHub_Manager : MonoBehaviour
protected
void
_onReceiveMsg
(
object
data
,
string
parameter
)
{
load
.
SetActive
(
false
);
if
(
data
.
GetType
().
Equals
(
typeof
(
RequestManager
)))
{
manager
.
getMsg
(
data
as
RequestManager
);
...
...
Assets/Scripts/unit/DownloadUntily.cs
View file @
3b13092c
...
...
@@ -173,7 +173,6 @@ public class DownloadUntily : MonoBehaviour
baifenbi
=
(
double
)
TotalByte
/
(
double
)
obj
.
ContentLength
;
if
(
Convert
.
ToInt32
(
Convert
.
ToDouble
((
baifenbi
*
100
).
ToString
(
"0.00"
)))
>=
jiedi
)
{
Debug
.
Log
(
"id="
+
id
+
" math="
+
jiedi
);
browser
.
CallFunction
(
"sendProcess"
,
jiedi
,
id
);
jiedi
+=
10
;
yield
return
0
;
...
...
Assets/_Scenes/MyScene.unity
View file @
3b13092c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
BrowserAssets/Appzia/dist/assets/css/loadui.css
0 → 100644
View file @
3b13092c
.loader
{
text-indent
:
-9999em
;
position
:
relative
;
width
:
200px
;
height
:
200px
;
box-shadow
:
inset
0
0
0
15px
#FFF
;
border-radius
:
50%
;
}
.loader
::before
{
position
:
absolute
;
content
:
''
;
width
:
100px
;
height
:
200px
;
background
:
white
;
border-radius
:
0
200px
200px
0
;
left
:
100px
;
transform-origin
:
0px
100px
;
animation
:
load-effect
2s
infinite
linear
;
}
.loader
::after
{
position
:
absolute
;
content
:
''
;
width
:
200px
;
height
:
200px
;
border-radius
:
50%
;
left
:
0
;
box-shadow
:
inset
0
0
0
15px
rgba
(
255
,
255
,
255
,
.2
);
}
@keyframes
load-effect
{
0
%
{
-webkit-transform
:
rotate
(
0deg
);
transform
:
rotate
(
0deg
);
}
100
%
{
-webkit-transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
}
}
\ No newline at end of file
BrowserAssets/Appzia/dist/assets/css/style.css
0 → 100644
View file @
3b13092c
*
{
border
:
0
;
box-sizing
:
border-box
;
margin
:
0
;
padding
:
0
;
}
:root
{
--bg
:
#454954
;
--fg
:
#e3e4e8
;
--fg-t
:
rgba
(
227
,
228
,
232
,
0.5
);
--primary1
:
#255ff4
;
--primary2
:
#5583f6
;
--trans-dur
:
0.3s
;
font-size
:
calc
(
16px
+
(
20
-
16
)
*
(
100vw
-
320px
)
/
(
1280
-
320
));
}
/* body {
background-color: var(--bg);
background-image: linear-gradient(135deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
color: var(--fg);
font: 1em/1.5 "Varela Round", Helvetica, sans-serif;
height: 100vh;
min-height: 360px;
display: grid;
place-items: center;
transition: background-color var(--trans-dur), color var(--trans-dur);
} */
.pl
{
box-shadow
:
2em
0
2em
rgba
(
0
,
0
,
0
,
0.2
)
inset
,
-2em
0
2em
rgba
(
255
,
255
,
255
,
0.1
)
inset
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
position
:
relative
;
letter-spacing
:
0.1em
;
text-transform
:
uppercase
;
transform
:
rotateX
(
30deg
)
rotateZ
(
45deg
);
width
:
15em
;
height
:
15em
;
}
.pl
,
.pl__dot
{
border-radius
:
50%
;
}
.pl__dot
{
animation-name
:
shadow
;
box-shadow
:
0.1em
0.1em
0
0.1em
black
,
0.3em
0
0.3em
rgba
(
0
,
0
,
0
,
0.5
);
top
:
calc
(
50%
-
0.75em
);
left
:
calc
(
50%
-
0.75em
);
width
:
1.5em
;
height
:
1.5em
;
}
.pl__dot
,
.pl__dot
:before
,
.pl__dot
:after
{
animation-duration
:
2s
;
animation-iteration-count
:
infinite
;
position
:
absolute
;
}
.pl__dot
:before
,
.pl__dot
:after
{
content
:
""
;
display
:
block
;
left
:
0
;
width
:
inherit
;
transition
:
background-color
var
(
--trans-dur
);
}
.pl__dot
:before
{
animation-name
:
pushInOut1
;
background-color
:
var
(
--bg
);
border-radius
:
inherit
;
box-shadow
:
0.05em
0
0.1em
rgba
(
255
,
255
,
255
,
0.2
)
inset
;
height
:
inherit
;
z-index
:
1
;
}
.pl__dot
:after
{
animation-name
:
pushInOut2
;
background-color
:
var
(
--primary1
);
border-radius
:
0.75em
;
box-shadow
:
0.1em
0.3em
0.2em
rgba
(
255
,
255
,
255
,
0.4
)
inset
,
0
-0.4em
0.2em
#2e3138
inset
,
0
-1em
0.25em
rgba
(
0
,
0
,
0
,
0.3
)
inset
;
bottom
:
0
;
clip-path
:
polygon
(
0
75%
,
100%
75%
,
100%
100%
,
0
100%
);
height
:
3em
;
transform
:
rotate
(
-45deg
);
transform-origin
:
50%
2.25em
;
}
.pl__dot
:nth-child
(
1
)
{
transform
:
rotate
(
0deg
)
translateX
(
5em
)
rotate
(
0deg
);
z-index
:
5
;
}
.pl__dot
:nth-child
(
1
),
.pl__dot
:nth-child
(
1
)
:before
,
.pl__dot
:nth-child
(
1
)
:after
{
animation-delay
:
0s
;
}
.pl__dot
:nth-child
(
2
)
{
transform
:
rotate
(
-30deg
)
translateX
(
5em
)
rotate
(
30deg
);
z-index
:
4
;
}
.pl__dot
:nth-child
(
2
),
.pl__dot
:nth-child
(
2
)
:before
,
.pl__dot
:nth-child
(
2
)
:after
{
animation-delay
:
-0.1666666667s
;
}
.pl__dot
:nth-child
(
3
)
{
transform
:
rotate
(
-60deg
)
translateX
(
5em
)
rotate
(
60deg
);
z-index
:
3
;
}
.pl__dot
:nth-child
(
3
),
.pl__dot
:nth-child
(
3
)
:before
,
.pl__dot
:nth-child
(
3
)
:after
{
animation-delay
:
-0.3333333333s
;
}
.pl__dot
:nth-child
(
4
)
{
transform
:
rotate
(
-90deg
)
translateX
(
5em
)
rotate
(
90deg
);
z-index
:
2
;
}
.pl__dot
:nth-child
(
4
),
.pl__dot
:nth-child
(
4
)
:before
,
.pl__dot
:nth-child
(
4
)
:after
{
animation-delay
:
-0.5s
;
}
.pl__dot
:nth-child
(
5
)
{
transform
:
rotate
(
-120deg
)
translateX
(
5em
)
rotate
(
120deg
);
z-index
:
1
;
}
.pl__dot
:nth-child
(
5
),
.pl__dot
:nth-child
(
5
)
:before
,
.pl__dot
:nth-child
(
5
)
:after
{
animation-delay
:
-0.6666666667s
;
}
.pl__dot
:nth-child
(
6
)
{
transform
:
rotate
(
-150deg
)
translateX
(
5em
)
rotate
(
150deg
);
z-index
:
1
;
}
.pl__dot
:nth-child
(
6
),
.pl__dot
:nth-child
(
6
)
:before
,
.pl__dot
:nth-child
(
6
)
:after
{
animation-delay
:
-0.8333333333s
;
}
.pl__dot
:nth-child
(
7
)
{
transform
:
rotate
(
-180deg
)
translateX
(
5em
)
rotate
(
180deg
);
z-index
:
2
;
}
.pl__dot
:nth-child
(
7
),
.pl__dot
:nth-child
(
7
)
:before
,
.pl__dot
:nth-child
(
7
)
:after
{
animation-delay
:
-1s
;
}
.pl__dot
:nth-child
(
8
)
{
transform
:
rotate
(
-210deg
)
translateX
(
5em
)
rotate
(
210deg
);
z-index
:
3
;
}
.pl__dot
:nth-child
(
8
),
.pl__dot
:nth-child
(
8
)
:before
,
.pl__dot
:nth-child
(
8
)
:after
{
animation-delay
:
-1.1666666667s
;
}
.pl__dot
:nth-child
(
9
)
{
transform
:
rotate
(
-240deg
)
translateX
(
5em
)
rotate
(
240deg
);
z-index
:
4
;
}
.pl__dot
:nth-child
(
9
),
.pl__dot
:nth-child
(
9
)
:before
,
.pl__dot
:nth-child
(
9
)
:after
{
animation-delay
:
-1.3333333333s
;
}
.pl__dot
:nth-child
(
10
)
{
transform
:
rotate
(
-270deg
)
translateX
(
5em
)
rotate
(
270deg
);
z-index
:
5
;
}
.pl__dot
:nth-child
(
10
),
.pl__dot
:nth-child
(
10
)
:before
,
.pl__dot
:nth-child
(
10
)
:after
{
animation-delay
:
-1.5s
;
}
.pl__dot
:nth-child
(
11
)
{
transform
:
rotate
(
-300deg
)
translateX
(
5em
)
rotate
(
300deg
);
z-index
:
6
;
}
.pl__dot
:nth-child
(
11
),
.pl__dot
:nth-child
(
11
)
:before
,
.pl__dot
:nth-child
(
11
)
:after
{
animation-delay
:
-1.6666666667s
;
}
.pl__dot
:nth-child
(
12
)
{
transform
:
rotate
(
-330deg
)
translateX
(
5em
)
rotate
(
330deg
);
z-index
:
6
;
}
.pl__dot
:nth-child
(
12
),
.pl__dot
:nth-child
(
12
)
:before
,
.pl__dot
:nth-child
(
12
)
:after
{
animation-delay
:
-1.8333333333s
;
}
.pl__text
{
font-size
:
0.75em
;
max-width
:
5rem
;
position
:
relative
;
text-shadow
:
0
0
0.1em
var
(
--fg-t
);
transform
:
rotateZ
(
-45deg
);
}
/* Animations */
@keyframes
shadow
{
from
{
animation-timing-function
:
ease-in
;
box-shadow
:
0.1em
0.1em
0
0.1em
black
,
0.3em
0
0.3em
rgba
(
0
,
0
,
0
,
0.3
);
}
25
%
{
animation-timing-function
:
ease-out
;
box-shadow
:
0.1em
0.1em
0
0.1em
black
,
0.8em
0
0.8em
rgba
(
0
,
0
,
0
,
0.5
);
}
50
%,
to
{
box-shadow
:
0.1em
0.1em
0
0.1em
black
,
0.3em
0
0.3em
rgba
(
0
,
0
,
0
,
0.3
);
}
}
@keyframes
pushInOut1
{
from
{
animation-timing-function
:
ease-in
;
background-color
:
var
(
--bg
);
transform
:
translate
(
0
,
0
);
}
25
%
{
animation-timing-function
:
ease-out
;
background-color
:
var
(
--primary2
);
transform
:
translate
(
-71%
,
-71%
);
}
50
%,
to
{
background-color
:
var
(
--bg
);
transform
:
translate
(
0
,
0
);
}
}
@keyframes
pushInOut2
{
from
{
animation-timing-function
:
ease-in
;
background-color
:
var
(
--bg
);
clip-path
:
polygon
(
0
75%
,
100%
75%
,
100%
100%
,
0
100%
);
}
25
%
{
animation-timing-function
:
ease-out
;
background-color
:
var
(
--primary1
);
clip-path
:
polygon
(
0
25%
,
100%
25%
,
100%
100%
,
0
100%
);
}
50
%,
to
{
background-color
:
var
(
--bg
);
clip-path
:
polygon
(
0
75%
,
100%
75%
,
100%
100%
,
0
100%
);
}
}
\ No newline at end of file
BrowserAssets/Appzia/dist/index.html
View file @
3b13092c
...
...
@@ -32,12 +32,11 @@
<link
href=
"assets/css/icons.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<!-- App Css-->
<link
href=
"assets/css/app.min.css"
id=
"app-style"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"assets/css/style.css"
id=
"app-style"
rel=
"stylesheet"
type=
"text/css"
/>
</head>
<body>
<!-- <body data-layout="horizontal" data-topbar="light"> -->
<!-- Begin page -->
...
...
@@ -751,6 +750,33 @@
<!-- end modal dialog-->
</div>
<div
class=
"modal fade"
id=
"event-load-modal"
data-bs-backdrop=
"static"
data-bs-keyboard=
"false"
tabindex=
"-1"
aria-hidden=
"false"
style=
"display: none;"
>
<div
class=
"modal-dialog modal-dialog-centered"
>
<div
class=
"modal-content"
>
<div
class=
"pl"
>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__text"
>
Loading…
</div>
</div>
</div>
<!-- end modal-content-->
</div>
<!-- end modal dialog-->
</div>
<footer
class=
"footer"
>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
...
...
@@ -874,6 +900,7 @@
return
null
;
}
function
getlist
(){
loadUI
(
true
);
$
(
".data-list"
).
html
(
""
);
$
.
ajax
({
url
:
server_url
+
"/zeus/es3cloud/getProductionList"
,
//要请求的服务器url
...
...
@@ -888,6 +915,7 @@
},
dataType
:
"json"
,
//服务器返回什么类型数据 text xml javascript json(javascript对象)
success
:
function
(
data
){
//函数会在服务器执行成功后执行,result就是服务器返回结果
loadUI
(
false
);
if
(
data
.
result
!=
null
&&
data
.
result
.
length
>
0
){
for
(
var
i
=
0
;
i
<
data
.
result
.
length
;
i
++
){
var
html
=
"<div class='col-sm-6 col-lg-3 detail' data-id='"
+
data
.
result
[
i
].
production_id
+
"'>"
+
...
...
@@ -940,30 +968,38 @@
$
(
document
).
on
(
"click"
,
".savepath"
,
function
(){
var
that
=
this
;
if
(
$
(
"#set_path"
).
val
().
indexOf
(
".exe"
)
>-
1
){
$
.
ajax
({
url
:
server_url
+
"/zeus/es3cloud/saveSetting"
,
data
:
JSON
.
stringify
({
"productionid"
:
production_id
,
"apppath"
:
$
(
"#set_path"
).
val
().
replace
(
/
\\
/g
,
'/'
)
}),
async
:
true
,
type
:
"post"
,
headers
:{
"Authorization"
:
getCookie
(
"token"
)
},
dataType
:
"json"
,
success
:
function
(
data
){
console
.
log
(
data
);
},
error
:
function
(
jqXHR
,
textStatus
,
errorThrown
)
{
}
});
if
(
path
!=
null
&&
path
!=
""
){
if
(
path
.
indexOf
(
".exe"
)
>-
1
){
loadUI
(
true
);
$
.
ajax
({
url
:
server_url
+
"/zeus/es3cloud/saveSetting"
,
data
:
JSON
.
stringify
({
"productionid"
:
production_id
,
"apppath"
:
path
}),
async
:
false
,
type
:
"post"
,
headers
:{
"Authorization"
:
getCookie
(
"token"
)
},
dataType
:
"json"
,
success
:
function
(
data
){
loadUI
(
false
);
if
(
data
.
code
==
0
){
//alert("路径已保存成功");
getlist
();
}
},
error
:
function
(
jqXHR
,
textStatus
,
errorThrown
)
{
}
});
}
else
{
alert
(
"请输入合法路径"
);
}
}
else
{
alert
(
"
请输入合法路径
"
);
alert
(
"
项目路径不存在
"
);
}
return
false
;
});
...
...
@@ -1020,6 +1056,24 @@
loginout
();
});
function
loadUI
(
kind
){
if
(
kind
)
{
$
(
"#event-load-modal"
).
removeAttr
(
"aria-hidden"
);
$
(
"#event-load-modal"
).
attr
(
"class"
,
"modal fade show"
);
$
(
"#event-load-modal"
).
attr
(
"style"
,
"display: block;"
);
$
(
"#event-load-modal"
).
attr
(
"aria-modal"
,
"true"
);
$
(
"#event-load-modal"
).
attr
(
"role"
,
"dialog"
);
}
else
{
$
(
"#event-load-modal"
).
attr
(
"aria-hidden"
,
"true"
);
$
(
"#event-load-modal"
).
attr
(
"class"
,
"modal fade"
);
$
(
"#event-load-modal"
).
attr
(
"style"
,
"display: none;"
);
$
(
"#event-load-modal"
).
removeAttr
(
"aria-modal"
);
$
(
"#event-load-modal"
).
removeAttr
(
"role"
);
}
}
</script>
</body>
...
...
BrowserAssets/Appzia/dist/index2.html
View file @
3b13092c
...
...
@@ -32,12 +32,11 @@
<link
href=
"assets/css/icons.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<!-- App Css-->
<link
href=
"assets/css/app.min.css"
id=
"app-style"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"assets/css/loadui.css"
id=
"app-style"
rel=
"stylesheet"
type=
"text/css"
/>
</head>
<body>
<!-- <body data-layout="horizontal" data-topbar="light"> -->
<!-- Begin page -->
...
...
@@ -753,6 +752,31 @@
<!-- end modal dialog-->
</div>
<div
class=
"modal fade"
id=
"event-load-modal"
data-bs-backdrop=
"static"
data-bs-keyboard=
"false"
tabindex=
"-1"
aria-hidden=
"false"
style=
"display: none;"
>
<div
class=
"modal-dialog modal-dialog-centered"
>
<div
class=
"modal-content"
>
<div
class=
"pl"
>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__text"
>
Loading…
</div>
</div>
</div>
<!-- end modal-content-->
</div>
<!-- end modal dialog-->
</div>
<footer
class=
"footer"
>
<div
class=
"container-fluid"
>
...
...
@@ -856,6 +880,8 @@
<script
src=
"assets/js/app.js"
></script>
<script
src=
"assets/js/getcookie.js"
></script>
<link
href=
"assets/css/style.css"
id=
"app-style"
rel=
"stylesheet"
type=
"text/css"
/>
<script>
var
t_production_id
;
...
...
@@ -870,6 +896,7 @@
});
function
getlist
(){
loadUI
(
true
);
$
(
".data-list"
).
html
(
""
);
$
.
ajax
({
url
:
server_url
+
"/zeus/es3cloud/getAllProductionList"
,
//要请求的服务器url
...
...
@@ -884,6 +911,7 @@
},
dataType
:
"json"
,
//服务器返回什么类型数据 text xml javascript json(javascript对象)
success
:
function
(
data
){
//函数会在服务器执行成功后执行,result就是服务器返回结果
loadUI
(
false
);
if
(
data
.
result
!=
null
&&
data
.
result
.
length
>
0
){
for
(
var
i
=
0
;
i
<
data
.
result
.
length
;
i
++
){
var
html
=
"<div class='col-sm-6 col-lg-3 detail' data-id='"
+
data
.
result
[
i
].
production_id
+
"'>"
+
...
...
@@ -962,6 +990,7 @@
if
(
$
(
this
).
attr
(
"data-url"
)
!=
null
&&
$
(
this
).
attr
(
"data-url"
)
!=
""
){
downloadProgram
(
$
(
this
).
attr
(
"data-url"
),
$
(
this
).
attr
(
"data-id"
),
$
(
this
).
attr
(
"data-appname"
));
loadUI
(
true
);
}
else
{
alert
(
"该软件还没能下载"
);
}
...
...
@@ -985,6 +1014,7 @@
function
msg
(
item
,
production_id
,
kind
){
loadUI
(
false
);
if
(
kind
==
1
){
alert
(
"文件已下载到"
+
item
);
savepath
(
item
,
production_id
);
...
...
@@ -1002,6 +1032,7 @@
$
(
list
).
parent
().
append
(
html
);
//$(list).parent().find(".progress div").css({"width":procress+"%"});
if
(
procress
>=
100
){
loadUI
(
false
);
$
(
list
).
parent
().
find
(
".progress div"
).
parent
().
parent
().
remove
();
}
}
...
...
@@ -1045,8 +1076,10 @@
//保存配置
function
savepath
(
path
,
production_id
){
var
that
=
this
;
if
(
path
!=
null
&&
path
!=
""
){
if
(
path
.
indexOf
(
".exe"
)
>-
1
){
loadUI
(
true
);
$
.
ajax
({
url
:
server_url
+
"/zeus/es3cloud/saveSetting"
,
data
:
JSON
.
stringify
({
...
...
@@ -1060,6 +1093,7 @@
},
dataType
:
"json"
,
success
:
function
(
data
){
loadUI
(
false
);
if
(
data
.
code
==
0
){
//alert("路径已保存成功");
getlist
();
...
...
@@ -1075,6 +1109,7 @@
}
else
{
alert
(
"项目路径不存在"
);
}
return
false
;
}
//激活
...
...
@@ -1150,6 +1185,23 @@
loginout
();
});
function
loadUI
(
kind
){
if
(
kind
)
{
$
(
"#event-load-modal"
).
removeAttr
(
"aria-hidden"
);
$
(
"#event-load-modal"
).
attr
(
"class"
,
"modal fade show"
);
$
(
"#event-load-modal"
).
attr
(
"style"
,
"display: block;"
);
$
(
"#event-load-modal"
).
attr
(
"aria-modal"
,
"true"
);
$
(
"#event-load-modal"
).
attr
(
"role"
,
"dialog"
);
}
else
{
$
(
"#event-load-modal"
).
attr
(
"aria-hidden"
,
"true"
);
$
(
"#event-load-modal"
).
attr
(
"class"
,
"modal fade"
);
$
(
"#event-load-modal"
).
attr
(
"style"
,
"display: none;"
);
$
(
"#event-load-modal"
).
removeAttr
(
"aria-modal"
);
$
(
"#event-load-modal"
).
removeAttr
(
"role"
);
}
}
</script>
</body>
...
...
Log/log.txt
View file @
3b13092c
...
...
@@ -7100,3 +7100,6 @@
2022/8/11 15:27:37 api:http://192.168.199.127:11011/zeus/es3cloud/upUsers HTTP/1.1 500 Internal Server Error
2022/8/11 16:42:25 api:http://192.168.199.127:11011/oauth/token HTTP/1.1 401 Unauthorized
2022/8/11 16:43:47 api:http://192.168.199.127:11011/oauth/token HTTP/1.1 401 Unauthorized
2022/8/19 9:05:39 api:http://192.168.199.127:11011/oauth/token HTTP/1.1 401 Unauthorized
2022/8/19 9:08:49 api:http://192.168.199.127:11011/oauth/token HTTP/1.1 401 Unauthorized
2022/8/19 9:09:52 api:http://192.168.199.127:11011/oauth/token HTTP/1.1 401 Unauthorized
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