-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
1,510 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/lib/singleview/KeyValue.svelte → src/lib/KeyValue.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- | ||
This file is Free Software under the MIT License | ||
without warranty, see README.md and LICENSES/MIT.txt for details. | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de> | ||
Software-Engineering: 2023 Intevation GmbH <https://intevation.de | ||
--> | ||
|
||
<script lang="ts"> | ||
export let value = ""; | ||
export let label = ""; | ||
</script> | ||
|
||
<div class=""> | ||
<h6>{label}</h6> | ||
<p>{value}</p> | ||
</div> | ||
|
||
<style> | ||
h6 { | ||
line-height: 0.3em; | ||
font-size: large; | ||
} | ||
p { | ||
margin-left: 4rem; | ||
width: 80vw; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- | ||
This file is Free Software under the MIT License | ||
without warranty, see README.md and LICENSES/MIT.txt for details. | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de> | ||
Software-Engineering: 2023 Intevation GmbH <https://intevation.de | ||
--> | ||
|
||
<script lang="ts"> | ||
export let values: any = []; | ||
export let label = ""; | ||
</script> | ||
|
||
<p>{label}</p> | ||
<ul> | ||
{#each values as value} | ||
<li>{value}</li> | ||
{/each} | ||
</ul> | ||
|
||
<style> | ||
p { | ||
margin-bottom: 0; | ||
} | ||
ul { | ||
margin-top: 0; | ||
padding-left: 3rem; | ||
list-style-type: none; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- | ||
This file is Free Software under the MIT License | ||
without warranty, see README.md and LICENSES/MIT.txt for details. | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de> | ||
Software-Engineering: 2023 Intevation GmbH <https://intevation.de | ||
--> | ||
|
||
<script lang="ts"> | ||
import EntriesByYear from "./EntriesByYear.svelte"; | ||
export let entries: any = []; | ||
const entriesByYear = entries.reduce((acc: any, entry: any) => { | ||
const published = new Date(entry.published); | ||
if (!acc[published.getFullYear()]) acc[published.getFullYear()] = []; | ||
acc[published.getFullYear()].push(entry); | ||
return acc; | ||
}, {}); | ||
const years = Object.keys(entriesByYear).sort(); | ||
</script> | ||
|
||
{#each years as year} | ||
<EntriesByYear {year} entries={entriesByYear[year]} /> | ||
{/each} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<!-- | ||
This file is Free Software under the MIT License | ||
without warranty, see README.md and LICENSES/MIT.txt for details. | ||
SPDX-License-Identifier: MIT | ||
SPDX-FileCopyrightText: 2023 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de> | ||
Software-Engineering: 2023 Intevation GmbH <https://intevation.de | ||
--> | ||
|
||
<script lang="ts"> | ||
import Collapsible from "$lib/Collapsible.svelte"; | ||
import Entry from "./Entry.svelte"; | ||
import { goto } from "$app/navigation"; | ||
export let entries: any = []; | ||
export let year: string; | ||
let visibility = "none"; | ||
let icon = "bx-chevron-down"; | ||
const open = (e: Event) => { | ||
let url: string = (e.target as Element).getAttribute("href")!; | ||
goto(`/?q=${url}`); | ||
e.preventDefault(); | ||
}; | ||
const toggle = () => { | ||
if (visibility === "block") { | ||
visibility = "none"; | ||
} else { | ||
visibility = "block"; | ||
} | ||
}; | ||
const entryIDURLLookup = entries.reduce((acc: any, entry: any) => { | ||
const selfURL = entry.link.find((link: any) => link.rel === "self"); | ||
acc[entry.id] = selfURL.href; | ||
return acc; | ||
}, {}); | ||
$: if (visibility === "block") { | ||
icon = "bx-chevron-down"; | ||
} else { | ||
icon = "bx-chevron-right"; | ||
} | ||
</script> | ||
|
||
<Collapsible header={year} level="4"> | ||
{#each entries as entry} | ||
<div class:collapsible={true}> | ||
<!-- svelte-ignore a11y-click-events-have-key-events --> | ||
<!-- svelte-ignore a11y-no-static-element-interactions --> | ||
<div style="cursor:pointer"> | ||
<h4> | ||
<i class="bx {icon}" on:click={toggle} /><a | ||
href={entryIDURLLookup[entry.id]} | ||
on:click={open}>{entry.id}: {entry.title}</a | ||
> | ||
</h4> | ||
</div> | ||
<div style="display:{visibility}" class="body"> | ||
<Entry {entry} /> | ||
</div> | ||
</div> | ||
{/each} | ||
</Collapsible> | ||
|
||
<style> | ||
h4 { | ||
padding: 0; | ||
margin-bottom: 0; | ||
} | ||
.body { | ||
margin-left: 3rem; | ||
} | ||
</style> |
Oops, something went wrong.