Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tabulator-another-web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
tabulator-another-web
Commits
699c8fe2
Commit
699c8fe2
authored
Jun 04, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
24a24550
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
37 deletions
+47
-37
src/pages/main.vue
src/pages/main.vue
+6
-31
src/pages/tabulator.vue
src/pages/tabulator.vue
+8
-2
src/script/mycard.ts
src/script/mycard.ts
+10
-2
src/style/page.scss
src/style/page.scss
+1
-0
src/style/transition.scss
src/style/transition.scss
+22
-2
No files found.
src/pages/main.vue
View file @
699c8fe2
<
template
>
<transition
name =
'move_right'
>
<view
v-show =
'loading.end'
class =
'background'
:style =
"
{ '--index' : index.end }">
<view
class =
'pic'
v-html =
'Const.pic.hajimi'
></view>
</view>
</transition>
<transition
name =
'move_left'
>
<view
v-show =
'loading.start'
class =
'background'
:style =
"
{ '--index' : index.start }">
<transition
name =
'page'
>
<view
v-show =
'loading'
class =
'background'
>
<view
class =
'pic'
v-html =
'Const.pic.hajimi'
></view>
</view>
</transition>
...
...
@@ -17,37 +12,17 @@
import
emitter
from
'
../script/emitter.ts
'
;
import
Const
from
'
../script/const.ts
'
;
let
loading
=
reactive
({
start
:
false
,
end
:
true
});
let
index
=
reactive
({
start
:
100
,
end
:
99
});
let
loading
=
ref
(
true
);
const
changeUrl
=
async
(
url
:
string
)
:
Promise
<
void
>
=>
{
loading
.
start
=
tr
ue
;
loading
.
value
=
!
loading
.
val
ue
;
await
(
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
500
)));
window
.
location
.
replace
(
url
);
}
const
show
=
async
()
:
Promise
<
void
>
=>
{
if
(
loading
.
start
)
{
loading
.
end
=
true
;
await
(
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
500
)));
index
.
end
=
100
;
index
.
start
=
99
;
loading
.
start
=
false
;
await
(
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
500
)));
loading
.
end
=
false
;
index
.
end
=
99
;
index
.
start
=
100
;
return
;
}
await
(
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
500
)));
loading
.
end
=
fals
e
;
loading
.
value
=
!
loading
.
valu
e
;
}
onBeforeMount
(()
:
void
=>
{
...
...
@@ -69,7 +44,7 @@
background
:
linear-gradient
(
45deg
,
rgb
(
0
,
162
,
255
)
,
rgb
(
0
,
72
,
255
));
width
:
100vw
;
height
:
100vh
;
z-index
:
var
(
--
index
)
;
z-index
:
100
;
font-family
:
'Courier New'
,
monospace
;
display
:
flex
;
justify-content
:
center
;
...
...
src/pages/tabulator.vue
View file @
699c8fe2
...
...
@@ -42,7 +42,7 @@
:title =
'Mycard.username'
:sub-title =
'Mycard.email'
:thumbnail =
'Mycard.avatar'
:style =
"
{ '--size' : `${size.width > size.height ? size.width / 2 : size.width / 1.2}px` }"
:style =
"
{ '--size' : `${size.width > size.height ? size.width / 2 : size.width / 1.2}px`
, '--minsize' : `${size.width > size.height ? size.width / 4 : size.width / 2.4}px`
}"
>
<view
v-show =
'Mycard.id >= 0'
><h2>
{{
Mycard
.
id
}}
</h2></view>
<hr
v-show =
'Mycard.id >= 0'
>
...
...
@@ -181,7 +181,7 @@
},
tournament
:
(
v
:
number
=
0
):
void
=>
{
const
url
=
window
.
location
.
href
.
split
(
'
/?
'
);
emitter
.
emit
(
Const
.
changeUrl
,
`
${
url
[
0
]
.
replace
(
/
\/?
$/
,
''
)
}
/
${
search
.
result
.
tournaments
[
v
].
id
}${
url
[
1
]
?
`/?
${
url
[
1
]}
`
:
''
}
`
);
emitter
.
emit
(
Const
.
changeUrl
,
`
${
url
[
0
]}
/
${
search
.
result
.
tournaments
[
v
].
id
}${
url
[
1
]
?
`/?
${
url
[
1
]}
`
:
''
}
`
);
},
menu
:
async
():
Promise
<
void
>
=>
{
page
.
tournament
=
false
;
...
...
@@ -411,12 +411,18 @@
const
loading
=
async
()
:
Promise
<
void
>
=>
{
const
url
=
window
.
location
.
hash
.
match
(
/#
\/(
.*
?)(?:\?
|$
)
/
);
if
(
url
)
{
if
(
!
isNaN
(
parseInt
(
url
[
1
])))
{
page
.
menu
=
false
;
page
.
tournament
=
true
;
emitter
.
emit
(
Const
.
showTournament
);
return
;
}
else
if
(
url
[
1
].
length
==
0
)
{
if
(
window
.
location
.
href
.
includes
(
'
/?
'
)
&&
window
.
location
.
hash
.
endsWith
(
'
#/
'
))
{
const
i
=
window
.
location
.
href
.
split
(
'
/?
'
);
window
.
location
.
replace
(
`
${
i
[
0
].
replace
(
'
#/
'
,
''
)}
/#
${
i
[
1
]
?
`/?
${
i
[
1
].
replace
(
'
#/
'
,
''
)}
`
:
'
/
'
}
`
);
return
;
}
page
.
tournament
=
false
;
page
.
menu
=
true
;
search
.
mine
();
...
...
src/script/mycard.ts
View file @
699c8fe2
import
{
Buffer
}
from
'
buffer
'
;
import
{
ref
}
from
'
vue
'
;
import
emitter
from
'
./emitter.ts
'
import
Const
from
'
./const.ts
'
...
...
@@ -51,9 +52,16 @@ class MyCard {
logout
()
{
window
.
localStorage
.
removeItem
(
'
mycardLogin
'
);
emitter
.
emit
(
Const
.
changeUrl
,
window
.
location
.
href
.
replace
(
/
\/\?
.*/
,
''
));
this
.
user
=
{}
as
MyCardSSOUser
;
this
.
id
=
-
1
;
this
.
token
=
''
;
this
.
username
=
''
;
this
.
email
=
''
;
this
.
avatar
=
'
https://cdn02.moecube.com:444/accounts/default_avatar.jpg
'
;
const
url
=
window
.
location
.
href
.
split
(
'
/?
'
);
emitter
.
emit
(
Const
.
changeUrl
,
`
${
url
[
0
]}
/`
);
}
}
const
Mycard
=
new
MyCard
()
;
const
Mycard
=
ref
(
new
MyCard
()).
value
;
export
default
Mycard
;
\ No newline at end of file
src/style/page.scss
View file @
699c8fe2
...
...
@@ -33,6 +33,7 @@
right
:
2%
;
z-index
:
2
;
max-width
:
var
(
--
size
);
min-width
:
var
(
--
minsize
);
.user
{
&
:hover
{
cursor
:
pointer
;
...
...
src/style/transition.scss
View file @
699c8fe2
...
...
@@ -15,7 +15,7 @@
}
}
.move_left
,
.move_left_slow
{
.move_left
{
&
-enter-active
,
&
-leave-active
{
transition
:
transform
0
.5s
ease
;
...
...
@@ -32,7 +32,7 @@
}
}
.move_right
,
.move_right_slow
{
.move_right
{
&
-enter-active
,
&
-leave-active
{
transition
:
transform
0
.5s
ease
;
...
...
@@ -70,4 +70,24 @@
&
-leave-from
{
transform
:
translateY
(
0%
);
}
}
.page
{
&
-enter-active
,
&
-leave-active
{
transition
:
transform
0
.5s
ease
;
}
&
-enter-from
{
transform
:
translateX
(
-200%
);
}
&
-enter-to
,
&
-leave-from
{
transform
:
translateX
(
0%
);
}
&
-leave-to
{
transform
:
translateX
(
200%
);
}
}
\ No newline at end of file
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