Skip to content

Commit

Permalink
fix some fontawesome stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Feb 18, 2024
1 parent 7924927 commit 0ae8448
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/components/addons/AddonCard.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import { faStar, faXmark } from "@fortawesome/free-solid-svg-icons";
import type { Addon, AddonTagArray, AddonTag } from "$interfaces/addons";
import { favoriteStore } from "$stores/AddonStore";
Expand Down
2 changes: 1 addition & 1 deletion src/components/addons/AddonResults.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import {
faSpinner
} from "@fortawesome/free-solid-svg-icons";
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/checkbox.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { createEventDispatcher } from 'svelte';
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import {
faSquareCheck,
faSquare
Expand All @@ -25,7 +25,7 @@
.checkbox {
color: white;
position: relative;
& .click_zone {
position: absolute;
top: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/downloadButton.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import { faFireFlameCurved, faEarthEurope, faWrench, faCube } from "@fortawesome/free-solid-svg-icons";
import { faGithub } from "@fortawesome/free-brands-svg-icons";
Expand Down
8 changes: 4 additions & 4 deletions src/components/common/imagePreviewer.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { onMount } from "svelte";
import { fade, scale } from 'svelte/transition';
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import { faCaretLeft, faCaretRight, faTimes } from "@fortawesome/free-solid-svg-icons";
type PreviewImage = {
Expand All @@ -22,7 +22,7 @@
const imageList = Array.isArray(images) ? images : [images];
const imageStringList = imageList.map((e) => ({...e, image: imageToString(e.image)}));
const multiple = imageList.length > 1;
$: currentImagePreview = imageStringList[Math.min(Math.max(currentImageIndex, 0), imageList.length-1)];
$: currentImageSrc = currentImagePreview.image;
$: currentImageAlt = currentImagePreview.alt;
Expand Down Expand Up @@ -62,7 +62,7 @@
behavior: 'smooth'
})
}
function handleKeyDown(keys: string|string[], action: Function): (e: KeyboardEvent) => void {
let keyList: string[] = Array.isArray(keys) ? keys : [keys];
Expand Down Expand Up @@ -241,7 +241,7 @@
max-width: 100%;
max-height: 100%;
display: block;
@include zoomin;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/common/input.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { createEventDispatcher } from 'svelte';
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import type { IconDefinition } from "@fortawesome/free-brands-svg-icons";
import { faXmark } from "@fortawesome/free-solid-svg-icons";
Expand All @@ -20,7 +20,7 @@
if(value && clearable) class_arr.push('clearable')
classes = class_arr.join(' ');
}
const dispatch = createEventDispatcher();
const clear = () => {
value = '';
Expand All @@ -38,7 +38,7 @@
<input use:typeAction {placeholder} bind:value on:keypress={onkeypress}>
<span class="after">
{#if clearable && value }
<span class="clear" role="button" tabindex="0" on:click={clear} on:keypress={() => {}}><Fa icon={faXmark} size="1.3x" /></span>
<span class="clear" role="button" tabindex="0" on:click={clear} on:keypress={() => {}}><Fa icon={faXmark} size="1.3x" /></span>
{/if}
{#if appendIcon }
<span class="append" role="button" tabindex="0" on:click={append} on:keypress={() => {}}><Fa icon={appendIcon} size="1.3x" /></span>
Expand Down
2 changes: 1 addition & 1 deletion src/components/footer.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import { faGithub } from "@fortawesome/free-brands-svg-icons";
import { t, locale, locales, loadTranslations} from '$lib/translations';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/components/gallery/galleryTooltip.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import Optional from "$lib/optional";
import contributionStore, { contributionAuthors } from "$stores/ContributionStore";
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import { faClock, faUser, faUsers, faWrench } from "@fortawesome/free-solid-svg-icons";
import Icon from "$components/common/icon.svelte";
import tooltip from "$lib/tooltip";
Expand Down
2 changes: 1 addition & 1 deletion src/components/header.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { t } from "$lib/translations";
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import {
faHouse,
faDownload,
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/packCard.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import { faChevronRight } from "@fortawesome/free-solid-svg-icons";
export let title: string;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import {
faAngleRight
} from "@fortawesome/free-solid-svg-icons";
Expand Down
2 changes: 1 addition & 1 deletion src/routes/add-ons/[slug]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import {
faGithub,
faPatreon,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/downloads/downloadItem.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import DownloadLine from "./downloadLine.svelte";
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import { faPlus, faMinus } from "@fortawesome/free-solid-svg-icons";
export let version: string;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/downloads/downloadLine.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import { faGithub } from "@fortawesome/free-brands-svg-icons";
import { faFireFlameCurved } from "@fortawesome/free-solid-svg-icons";
Expand Down
2 changes: 1 addition & 1 deletion src/routes/gallery/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import UrlStore from '$stores/UrlStore';
import { settings } from '$stores/SettingStore';
import { gallerySearch } from '$stores/GalleryStore';
import GalleryOptions from '$components/gallery/galleryOptions.svelte';
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import { faArrowUp } from '@fortawesome/free-solid-svg-icons';
import GalleryTooltip from '$components/gallery/galleryTooltip.svelte';
Expand Down
2 changes: 1 addition & 1 deletion src/routes/statistics/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import { faXmark } from "@fortawesome/free-solid-svg-icons";
export let data: any;
const TMP = data.data;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/team/TeamMemberCard.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { faGithub, faInstagram, faReddit, faSteam, faTwitter } from "@fortawesome/free-brands-svg-icons";
import { faClock, faCode, faComment, faCube, faEye, faGavel, faGem, faLink, faLocationDot } from "@fortawesome/free-solid-svg-icons";
import Fa from "svelte-fa/src/fa.svelte";
import Fa from "svelte-fa";
import tooltip from "$lib/tooltip";
export let user: {
color: string,
Expand Down

0 comments on commit 0ae8448

Please sign in to comment.