Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
Website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Seth
Website
Compare revisions
5542d80fc2654fad6f6ef49104648c240867324f to ea18e2563f40f9111dc33a0ce2b13c85179c475f
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
seth/ipv4.army
Select target project
No results found
ea18e2563f40f9111dc33a0ce2b13c85179c475f
Select Git revision
Branches
main
1 result
Swap
Target
seth/ipv4.army
Select target project
seth/ipv4.army
1 result
5542d80fc2654fad6f6ef49104648c240867324f
Select Git revision
Loading items
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source
0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/container/index.tsx
+3
-1
3 additions, 1 deletion
src/components/container/index.tsx
src/components/navbar/index.tsx
+4
-9
4 additions, 9 deletions
src/components/navbar/index.tsx
with
7 additions
and
10 deletions
src/components/container/index.tsx
View file @
ea18e256
...
...
@@ -2,6 +2,8 @@ import { useState } from 'preact/hooks';
import
Heart
from
'
../heart
'
;
const
api
=
"
lanyard.creations.works
"
const
statusMap
=
{
online
:
"
border-success-subtle
"
,
idle
:
"
border-warning-subtle
"
,
...
...
@@ -12,7 +14,7 @@ const statusMap = {
export
default
()
=>
{
const
[
status
,
setStatus
]
=
useState
<
keyof
typeof
statusMap
>
(
'
offline
'
);
fetch
(
"
https://
lanyard.creations.works
/v1/users/1273447359417942128
"
)
fetch
(
`
https://
${
api
}
/v1/users/1273447359417942128
`
)
.
then
(
req
=>
req
.
json
())
.
then
((
res
)
=>
{
if
(
res
.
data
.
discord_status
)
{
...
...
This diff is collapsed.
Click to expand it.
src/components/navbar/index.tsx
View file @
ea18e256
import
{
Minus
,
Minimize
,
X
}
from
'
lucide-preact
'
;
const
close
=
()
=>
{
window
.
close
();
window
.
history
.
back
();
}
import
{
Minus
,
Minimize2
,
X
}
from
'
lucide-preact
'
;
export
default
()
=>
{
return
(
...
...
@@ -18,9 +13,9 @@ export default () => {
IPv4 dot Army
</
span
>
<
div
class
=
"d-flex hstack gap-2"
role
=
"search"
>
<
button
type
=
"button"
class
=
"btn btn-outline-success btn-sm"
><
Minus
size
=
{
20
}
/></
button
>
<
button
type
=
"button"
class
=
"btn btn-outline-warning btn-sm"
><
Minimize
size
=
{
20
}
/></
button
>
<
button
type
=
"button"
class
=
"btn btn-outline-danger btn-sm"
onClick
=
{
close
}
><
X
size
=
{
20
}
/></
button
>
<
button
type
=
"button"
class
=
"btn btn-outline-success btn-sm"
><
Minus
size
=
{
15
}
/></
button
>
<
button
type
=
"button"
class
=
"btn btn-outline-warning btn-sm"
><
Minimize
2
size
=
{
15
}
/></
button
>
<
button
type
=
"button"
class
=
"btn btn-outline-danger btn-sm"
><
X
size
=
{
15
}
/></
button
>
</
div
>
</
div
>
</
nav
>
...
...
This diff is collapsed.
Click to expand it.