Skip to content

Commit

Permalink
sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Junk committed Oct 6, 2023
1 parent fb42d67 commit 92aac40
Show file tree
Hide file tree
Showing 30 changed files with 64 additions and 64 deletions.
8 changes: 4 additions & 4 deletions src/lib/feedview/FeedView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
Software-Engineering: 2023 Intevation GmbH <https://intevation.de
-->
<script lang="ts">
import Loader from "./Loader.svelte";
import Overview from "./feed/Overview.svelte";
import { appStore } from "$lib/store";
import Feed from "./feed/Feed.svelte";
import Collapsible from "$lib/Collapsible.svelte";
import Back from "$lib/Back.svelte";
import Collapsible from "$lib/Collapsible.svelte";
import Feed from "./feed/Feed.svelte";
import Loader from "./Loader.svelte";
import Overview from "./feed/Overview.svelte";
</script>

<Loader />
Expand Down
2 changes: 1 addition & 1 deletion src/lib/feedview/Loader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<script lang="ts">
import { appStore } from "$lib/store";
import { loadFeed, loadProviderMetaData } from "$lib/urlloader";
import { goto } from "$app/navigation";
import { loadFeed, loadProviderMetaData } from "$lib/urlloader";
import { onMount } from "svelte";
import { page } from "$app/stores";
let url = "";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/feedview/entries/EntriesByYear.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
-->

<script lang="ts">
import { goto } from "$app/navigation";
import Collapsible from "$lib/Collapsible.svelte";
import Entry from "./Entry.svelte";
import { goto } from "$app/navigation";
import type { EntryIDURLLookup, EntryType, Link } from "./entrytypes";
export let entries: EntryType[] = [];
export let year: string;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/feedview/entries/Entry.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
-->

<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import KeyValue from "$lib/KeyValue.svelte";
import { appStore } from "$lib/store";
import { loadSingleCSAF } from "$lib/urlloader";
import { tick } from "svelte";
import Collapsible from "$lib/Collapsible.svelte";
import KeyValue from "$lib/KeyValue.svelte";
import type { EntryType } from "./entrytypes";
export let entry: EntryType;
async function switchSingleMode() {
Expand Down
6 changes: 3 additions & 3 deletions src/lib/feedview/feed/Feed.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
Software-Engineering: 2023 Intevation GmbH <https://intevation.de
-->
<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import KeyValue from "$lib/KeyValue.svelte";
import { appStore } from "$lib/store";
import Entries from "../entries/Entries.svelte";
import Category from "./Category.svelte";
import Collapsible from "$lib/Collapsible.svelte";
import Entries from "../entries/Entries.svelte";
import KeyValue from "$lib/KeyValue.svelte";
import Links from "./Links.svelte";
import type { Link } from "./feedTypes";
$: feed = $appStore.currentFeed?.feed;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/feedview/feed/GeneralInformation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
-->

<script lang="ts">
import KeyValue from "$lib/KeyValue.svelte";
import { appStore } from "$lib/store";
import KeyValue from "$lib/KeyValue.svelte";
</script>

{#if $appStore.providerMetadata}
Expand Down
6 changes: 3 additions & 3 deletions src/lib/feedview/feed/Overview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
-->

<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import KeyValue from "$lib/KeyValue.svelte";
import { appStore } from "$lib/store";
import GeneralInformation from "./GeneralInformation.svelte";
import Collapsible from "$lib/Collapsible.svelte";
import Distributions from "./distributions/Distributions.svelte";
import GeneralInformation from "./GeneralInformation.svelte";
import KeyValue from "$lib/KeyValue.svelte";
</script>

{#if $appStore.providerMetadata}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/feedview/feed/distributions/Distributions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
Software-Engineering: 2023 Intevation GmbH <https://intevation.de
-->
<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import { appStore } from "$lib/store";
import Collapsible from "$lib/Collapsible.svelte";
import Distribution from "./Distribution.svelte";
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/singleview/LoadFromURL.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<script lang="ts">
import { appStore } from "$lib/store";
import { goto } from "$app/navigation";
import { onMount } from "svelte";
import { loadSingleCSAF } from "$lib/urlloader";
import { onMount } from "svelte";
import { page } from "$app/stores";
let URL = "";
onMount(() => {
Expand Down
10 changes: 5 additions & 5 deletions src/lib/singleview/SingleView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
-->
<script lang="ts">
import { appStore } from "$lib/store";
import Back from "../Back.svelte";
import Collapsible from "$lib/Collapsible.svelte";
import General from "$lib/singleview/general/General.svelte";
import Droparea from "$lib/singleview/Droparea.svelte";
import General from "$lib/singleview/general/General.svelte";
import LoadFromUrl from "./LoadFromURL.svelte";
import ProductTree from "./producttree/ProductTree.svelte";
import ProductVulnerabilities from "$lib/singleview/productvulnerabilities/ProductVulnerabilities.svelte";
import Vulnerabilities from "./vulnerabilities/Vulnerabilities.svelte";
import Upload from "./Upload.svelte";
import ProductTree from "./producttree/ProductTree.svelte";
import Back from "../Back.svelte";
import LoadFromUrl from "./LoadFromURL.svelte";
import Vulnerabilities from "./vulnerabilities/Vulnerabilities.svelte";
$: isCSAF = !(
!$appStore.doc?.isRevisionHistoryPresent &&
!$appStore.doc?.isDocPresent &&
Expand Down
2 changes: 1 addition & 1 deletion src/lib/singleview/acknowledgments/Acknowledgments.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
-->

<script lang="ts">
import type { Acknowledgement } from "../docmodel/docmodeltypes";
import AcknowledgementComponent from "./Acknowledgment.svelte";
import type { Acknowledgement } from "../docmodel/docmodeltypes";
export let acknowledegments: Acknowledgement[];
</script>

Expand Down
12 changes: 6 additions & 6 deletions src/lib/singleview/docmodel/docmodel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
//

import {
CSAFDocProps,
EMPTY,
Status,
TLP,
type AggregateSeverity,
type DocModel,
Status,
EMPTY,
CSAFDocProps,
type Publisher,
type RevisionHistoryEntry,
type Note,
type Publisher,
type Reference,
type AggregateSeverity
type RevisionHistoryEntry
} from "$lib/singleview/docmodel/docmodeltypes";
import {
extractProducts,
Expand Down
8 changes: 4 additions & 4 deletions src/lib/singleview/general/General.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
Software-Engineering: 2023 Intevation GmbH <https://intevation.de
-->
<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import { Status, TLP } from "$lib/singleview/docmodel/docmodeltypes";
import { appStore } from "$lib/store";
import RevisionHistory from "./RevisionHistory.svelte";
import { Status, TLP } from "$lib/singleview/docmodel/docmodeltypes";
import Acknowledgments from "$lib/singleview/acknowledgments/Acknowledgments.svelte";
import Collapsible from "$lib/Collapsible.svelte";
import Notes from "$lib/singleview/notes/Notes.svelte";
import References from "$lib/singleview/references/References.svelte";
import Acknowledgments from "$lib/singleview/acknowledgments/Acknowledgments.svelte";
import RevisionHistory from "./RevisionHistory.svelte";
import ValueList from "../../ValueList.svelte";
let tlpStyle = "";
$: aliases = $appStore.doc?.aliases;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/singleview/notes/Note.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import type { Note } from "$lib/singleview/docmodel/docmodeltypes";
import KeyValue from "../../KeyValue.svelte";
import type { Note } from "$lib/singleview/docmodel/docmodeltypes";
import ValueField from "../../ValueField.svelte";
export let note: Note;
let keys: string[] = [];
Expand Down
2 changes: 1 addition & 1 deletion src/lib/singleview/notes/Notes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
-->

<script lang="ts">
import type { Note } from "$lib/singleview/docmodel/docmodeltypes";
import SingleNote from "$lib/singleview/notes/Note.svelte";
import type { Note } from "$lib/singleview/docmodel/docmodeltypes";
export let notes: Note[];
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/singleview/producttree/ProductTree.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
import { appStore } from "$lib/store";
import Branch from "./branch/Branch.svelte";
import Collapsible from "$lib/Collapsible.svelte";
import Relationships from "./relationship/Relationships.svelte";
import ProductGroups from "./productgroup/ProductGroups.svelte";
import ProductNames from "./product/ProductNames.svelte";
import Relationships from "./relationship/Relationships.svelte";
</script>

{#each $appStore.doc?.productTree.branches as branch}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/singleview/producttree/product/Product.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
-->

<script lang="ts">
import ProductIdentificationHelper from "./ProductIdentificationHelper.svelte";
import { appStore } from "$lib/store";
import { tick } from "svelte";
import Collapsible from "$lib/Collapsible.svelte";
import KeyValue from "$lib/KeyValue.svelte";
import ProductIdentificationHelper from "./ProductIdentificationHelper.svelte";
import type { FullProductName } from "$lib/types";
export let product: FullProductName;
let highlight = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
-->

<script lang="ts">
import FileHash from "./FileHash.svelte";
import KeyValue from "$lib/KeyValue.svelte";
import ValueList from "$lib/ValueList.svelte";
import FileHash from "./FileHash.svelte";
import XGenericUri from "./XGenericURI.svelte";
export let helper: any;
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
-->

<script lang="ts">
import type { ProductGroup } from "$lib/types";
import ValueField from "$lib/ValueField.svelte";
import ValueList from "$lib/ValueList.svelte";
import type { ProductGroup } from "$lib/types";
export let productGroup: ProductGroup;
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/lib/singleview/producttree/relationship/Relation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
-->

<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import KeyValue from "$lib/KeyValue.svelte";
import { appStore } from "$lib/store";
import { tick } from "svelte";
import Collapsible from "$lib/Collapsible.svelte";
import KeyValue from "$lib/KeyValue.svelte";
import ProductIdentificationHelper from "../product/ProductIdentificationHelper.svelte";
import type { Relationship } from "$lib/types";
export let relation: Relationship;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
Software-Engineering: 2023 Intevation GmbH <https://intevation.de
-->
<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import { appStore } from "$lib/store";
import { tick } from "svelte";
import ProductStatus from "./productStatus/ProductStatus.svelte";
import GeneralSection from "./GeneralSection.svelte";
import Acknowledgments from "$lib/singleview/acknowledgments/Acknowledgments.svelte";
import ID from "./ID.svelte";
import Notes from "$lib/singleview/notes/Notes.svelte";
import Remediations from "./remediations/Remediations.svelte";
import Collapsible from "$lib/Collapsible.svelte";
import Flags from "./flags/Flags.svelte";
import GeneralSection from "./GeneralSection.svelte";
import ID from "./ID.svelte";
import Involvements from "./involvements/Involvements.svelte";
import Notes from "$lib/singleview/notes/Notes.svelte";
import ProductStatus from "./productStatus/ProductStatus.svelte";
import References from "../../references/References.svelte";
import Threats from "./threats/Threats.svelte";
import Remediations from "./remediations/Remediations.svelte";
import Scores from "./scores/Scores.svelte";
import Threats from "./threats/Threats.svelte";
import type { Vulnerability } from "$lib/types";
export let vulnerability: Vulnerability;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import ValueField from "$lib/ValueField.svelte";
import type { Vulnerability } from "$lib/types";
import ValueField from "$lib/ValueField.svelte";
export let vulnerability: Vulnerability;
$: vulnerabilities = vulnerability.involvements ? vulnerability.involvements : [];
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import type { Vulnerability } from "$lib/types";
import ProductStatusValueList from "./ProductStatusValueList.svelte";
import type { Vulnerability } from "$lib/types";
export let vulnerability: Vulnerability;
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

<script lang="ts">
import KeyValue from "$lib/KeyValue.svelte";
import ProductStatusValueList from "../productStatus/ProductStatusValueList.svelte";
import type { Remediation } from "$lib/types";
import ValueField from "$lib/ValueField.svelte";
import ValueList from "$lib/ValueList.svelte";
import type { Remediation } from "$lib/types";
import ProductStatusValueList from "../productStatus/ProductStatusValueList.svelte";
export let remediation: Remediation;
const keys: Array<String> = [];
const values: Array<String> = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import type { Vulnerability } from "$lib/types";
import Remediation from "./Remediation.svelte";
import type { Vulnerability } from "$lib/types";
export let vulnerability: Vulnerability;
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import type { Vulnerability } from "$lib/types";
import ProductStatusValueList from "../productStatus/ProductStatusValueList.svelte";
import CVSSV2 from "./CVSSV2.svelte";
import CVSSV3 from "./CVSSV3.svelte";
import ProductStatusValueList from "../productStatus/ProductStatusValueList.svelte";
import type { Vulnerability } from "$lib/types";
export let vulnerability: Vulnerability;
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<script lang="ts">
import Collapsible from "$lib/Collapsible.svelte";
import type { Vulnerability } from "$lib/types";
import Threat from "./Threat.svelte";
import type { Vulnerability } from "$lib/types";
export let vulnerability: Vulnerability;
$: threats = vulnerability.threats ? vulnerability.threats : [];
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import "chota/dist/chota.min.css";
import "boxicons/css/boxicons.min.css";
import "chota/dist/chota.min.css";
import { appStore } from "$lib/store";
import { base } from "$app/paths";
/*global __APP_VERSION__*/
Expand Down
8 changes: 4 additions & 4 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
Software-Engineering: 2023 Intevation GmbH <https://intevation.de
-->
<script lang="ts">
import SingleView from "$lib/singleview/SingleView.svelte";
import { page } from "$app/stores";
import { onMount } from "svelte";
import { loadSingleCSAF } from "$lib/urlloader";
import { appStore } from "$lib/store";
import { browser } from "$app/environment";
import { loadSingleCSAF } from "$lib/urlloader";
import { onMount } from "svelte";
import { page } from "$app/stores";
import SingleView from "$lib/singleview/SingleView.svelte";
$: if (browser) {
if (/^\?q=/.test($page.url.search)) {
const url = $page.url.search.replace("?q=", "");
Expand Down
6 changes: 3 additions & 3 deletions src/routes/feed/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
import FeedView from "$lib/feedview/FeedView.svelte";
import { onMount } from "svelte";
import { appStore } from "$lib/store";
import { page } from "$app/stores";
import { browser } from "$app/environment";
import { loadFeed, loadProviderMetaData } from "$lib/urlloader";
import { onMount } from "svelte";
import { page } from "$app/stores";
import FeedView from "$lib/feedview/FeedView.svelte";
$: if (browser) {
if (/^\?q=/.test($page.url.search)) {
const url = $page.url.search.replace("?q=", "");
Expand Down

0 comments on commit 92aac40

Please sign in to comment.