Skip to content

Commit

Permalink
add title tag to the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
ngn13 committed Jun 17, 2024
1 parent 5edb80b commit ec38e48
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Publish Docker Images
on:
push:
branches: ['main']
tags:
- '*'

jobs:
push-image:
Expand Down
6 changes: 3 additions & 3 deletions app/src/routes/+page.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ export async function load({ params, url }) {
list: [],
size: 0,
page: 1,
pages: 0,
pages: 1,
error: "Failed to access to the database",
};
}

let query = { ipv4: { $exists: true } };

if(ipv4_list.length != 0 && port_list.length == 0)
query = { ipv4: { $in: ipv4_list } }

else if(ipv4_list.length == 0 && port_list.length != 0)
query = { ports: { $in: port_list } }

else if(ipv4_list.length != 0 && port_list.length != 0)
query = { ports: { $in: port_list }, ipv4: { $in: ipv4_list } }

Expand Down
5 changes: 5 additions & 0 deletions app/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
}
</script>

<svelte:head>
<title>./massacr | {data.page}/{data.pages}</title>
<meta content="./massacr | {data.page}/{data.pages}" property="og:title" />
</svelte:head>

<main>
<div class="info">
<h1>./massacr</h1>
Expand Down

0 comments on commit ec38e48

Please sign in to comment.