Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tabulator-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
nanahira
tabulator-web
Commits
10dadea5
Commit
10dadea5
authored
May 30, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
friendly links
parent
991125ad
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
src/app/app.component.html
src/app/app.component.html
+13
-1
src/app/app.component.ts
src/app/app.component.ts
+1
-1
src/app/user-info.service.ts
src/app/user-info.service.ts
+5
-4
No files found.
src/app/app.component.html
View file @
10dadea5
...
@@ -7,10 +7,22 @@
...
@@ -7,10 +7,22 @@
<hr>
<hr>
<ul
class=
"nav nav-pills flex-column mb-auto"
>
<ul
class=
"nav nav-pills flex-column mb-auto"
>
<li
*ngFor=
"let menu of menus"
class=
"nav-item"
>
<li
*ngFor=
"let menu of menus"
class=
"nav-item"
>
<a
href=
"#"
class=
"nav-link
"
routerLinkActive=
"active link-dark
"
[routerLink]=
"'/' + menu.path"
aria-current=
"page"
>
<a
href=
"#"
class=
"nav-link
link-dark"
routerLinkActive=
"active
"
[routerLink]=
"'/' + menu.path"
aria-current=
"page"
>
{{menu.title}}
{{menu.title}}
</a>
</a>
</li>
</li>
<hr>
<li
ngbDropdown
class=
"nav-item"
>
<a
class=
"nav-link link-dark"
aria-current=
"page"
ngbDropdownToggle
>
相关平台
</a>
<div
ngbDropdownMenu
aria-labelledby=
"dropdownBasic1"
>
<a
ngbDropdownItem
href=
"https://ygobbs.com/"
>
社区
</a>
<a
ngbDropdownItem
href=
"https://mycard.moe/ygopro/arena/"
>
决斗数据库
</a>
<a
ngbDropdownItem
href=
"https://event.ygobbs.com/"
>
赛事系统
</a>
<a
ngbDropdownItem
href=
"https://rep.ygobbs.com/"
>
战报系统
</a>
</div>
</li>
</ul>
</ul>
<hr>
<hr>
<div
class=
"dropdown"
>
<div
class=
"dropdown"
>
...
...
src/app/app.component.ts
View file @
10dadea5
...
@@ -22,7 +22,7 @@ export class AppComponent implements AfterViewInit {
...
@@ -22,7 +22,7 @@ export class AppComponent implements AfterViewInit {
const
tooltipTriggerList
=
[].
slice
.
call
(
const
tooltipTriggerList
=
[].
slice
.
call
(
document
.
querySelectorAll
(
'
[data-bs-toggle="tooltip"]
'
)
document
.
querySelectorAll
(
'
[data-bs-toggle="tooltip"]
'
)
);
);
tooltipTriggerList
.
forEach
(
function
(
tooltipTriggerEl
)
{
tooltipTriggerList
.
forEach
(
(
tooltipTriggerEl
)
=>
{
new
Tooltip
(
tooltipTriggerEl
);
new
Tooltip
(
tooltipTriggerEl
);
});
});
}
}
...
...
src/app/user-info.service.ts
View file @
10dadea5
import
{
Injectable
}
from
'
@angular/core
'
;
import
{
Injectable
}
from
'
@angular/core
'
;
import
{
MyCardSSOUser
}
from
'
./utility/MyCardSSOUser
'
;
import
{
MyCardSSOUser
}
from
'
./utility/MyCardSSOUser
'
;
import
{
ActivatedRoute
}
from
'
@angular/router
'
;
import
{
ActivatedRoute
,
Router
}
from
'
@angular/router
'
;
import
{
loginUrl
}
from
'
./utility/login-url
'
;
import
{
loginUrl
}
from
'
./utility/login-url
'
;
import
{
Buffer
}
from
'
buffer
'
;
import
{
Buffer
}
from
'
buffer
'
;
...
@@ -10,7 +10,7 @@ import { Buffer } from 'buffer';
...
@@ -10,7 +10,7 @@ import { Buffer } from 'buffer';
export
class
UserInfoService
{
export
class
UserInfoService
{
user
?:
MyCardSSOUser
;
user
?:
MyCardSSOUser
;
constructor
()
{
constructor
(
private
router
:
Router
)
{
this
.
initUser
();
this
.
initUser
();
}
}
...
@@ -40,9 +40,10 @@ export class UserInfoService {
...
@@ -40,9 +40,10 @@ export class UserInfoService {
window
.
location
.
replace
(
loginUrl
(
currentUrl
));
window
.
location
.
replace
(
loginUrl
(
currentUrl
));
}
}
logout
()
{
async
logout
()
{
this
.
user
=
undefined
;
this
.
user
=
undefined
;
localStorage
.
removeItem
(
'
login
'
);
localStorage
.
removeItem
(
'
login
'
);
return
this
.
login
();
await
this
.
router
.
navigateByUrl
(
'
/tournament
'
);
window
.
location
.
reload
();
}
}
}
}
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