Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWLab UI
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
hyeryung
SWLab UI
Commits
b578a681
Commit
b578a681
authored
5 months ago
by
hyeryung
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'master'
login check test See merge request swd/swlab-ui!7
parents
04ae1b3b
4f6a9ce7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
09-check-login.js
src/js/09-check-login.js
+13
-0
header-content.hbs
src/partials/header-content.hbs
+2
-0
No files found.
src/js/09-check-login.js
0 → 100644
View file @
b578a681
// eslint-disable-next-line no-undef
fetch
(
'/web/dms/api/auth/status'
)
.
then
((
response
)
=>
{
if
(
response
.
url
===
'https://swlab.bwg.co.kr/web/dms/login'
)
{
const
elements
=
document
.
getElementsByClassName
(
'secret-nav'
)
while
(
elements
.
length
>
0
)
{
elements
[
0
].
parentNode
.
removeChild
(
elements
[
0
])
}
}
})
.
catch
((
error
)
=>
{
console
.
error
(
'Error checking login status:'
,
error
)
})
This diff is collapsed.
Click to expand it.
src/partials/header-content.hbs
View file @
b578a681
...
...
@@ -32,6 +32,8 @@
<a
class=
"navbar-item"
href=
"https://swlab.bwg.co.kr/web/docs/bxcm/swlab-docs-bxcm/current/index.html"
>
BXCM
</a>
<a
class=
"navbar-item"
href=
"https://swlab.bwg.co.kr/web/docs/bxcp/swlab-docs-bxcp/current/index.html"
>
BXCP
</a>
<a
class=
"navbar-item"
href=
"https://swlab.bwg.co.kr/web/docs/bxi/swlab-docs-bxi/current/index.html"
>
BXI
</a>
<a
class=
"navbar-item secret-nav"
href=
"https://swlab.bwg.co.kr/web/docs/bxm/swlab-docs-bxm-s/current/concepts/overview.html"
>
BXM Internal
</a>
<a
class=
"navbar-item secret-nav"
href=
"https://swlab.bwg.co.kr/web/docs/bxcm/swlab-docs-bxcm-s/current/concepts/overview.html"
>
BXCM Internal
</a>
<a
class=
"navbar-item"
href=
"https://swlab.bwg.co.kr/web/docs/swlab-docs/current/ready-to-write/text-editor.html"
>
Manual Guide
</a>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
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