-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update main with changes from staging (#204)
* feat: add more languages, fix DE flag discoloration, sml-versions redirect (#200) * fix: language flag icons showing with incorrect colors (ex. germany white instead of black) * feat: add es, hu, ko, pt-BR, to language picker. widen dropdown, setup overflow scrolling * fix: typo * feat: redirect old /sml-versions page to /mod/SML * Add virustotal results to version screen (#192) * feat: added virustotal results to versions screen * fix: remove canedit from vt results * fix: update to virustotal_results * fix: move thead to tbody/make text translatable --------- Co-authored-by: Rob B <[email protected]> * feat: add Satisfactory Interactive Map th.gl tool link (#211) * Add Satisfactory Interactive Maps by TH.GL * Contain images with different aspect ratio * Prettify --------- Co-authored-by: Zachary Knight <[email protected]> Co-authored-by: DevLeon <[email protected]>
- Loading branch information
1 parent
0fe6243
commit 230252e
Showing
10 changed files
with
127 additions
and
9 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
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,55 @@ | ||
<script lang="ts"> | ||
import type { VirustotalResult } from '$lib/generated'; | ||
import { getTranslate } from '@tolgee/svelte'; | ||
export let results!: Array<VirustotalResult>; | ||
export const { t } = getTranslate(); | ||
</script> | ||
|
||
<div class="grid grid-flow-row"> | ||
<h3 class="my-4 text-2xl font-bold">{$t('virustotal.table.title')}</h3> | ||
<table aria-label={$t('virustotal.table.title')} class="max-w-auto table table-hover !overflow-visible"> | ||
<tbody> | ||
<tr class="rounded border !border-surface-500"> | ||
<td style="width: 25%;" | ||
><div title={$t('virustotal.table.file_name')}> | ||
{$t('virustotal.table.file_name')} | ||
</div></td> | ||
<td style="width: 25%;" | ||
><div class="text-center" title={$t('virustotal.table.results')}>{$t('virustotal.table.results')}</div></td> | ||
<td style="width: 25%;" | ||
><div class="text-center" title={$t('virustotal.table.safe')}>{$t('virustotal.table.safe')}</div></td> | ||
</tr> | ||
{#each results as result} | ||
<tr class="rounded border !border-surface-500"> | ||
<td> | ||
<div>{result.file_name}</div> | ||
</td> | ||
<td> | ||
<div class="text-center"> | ||
<a | ||
title={$t('version.virustotal.result')} | ||
href={`https://www.virustotal.com/gui/file/${result.hash}`} | ||
target="_blank" | ||
class="text-white"> | ||
<span class="material-icons text-center" style="width: 20px" title={$t('version.virustotal.result')}> | ||
policy | ||
</span> | ||
</a> | ||
</div> | ||
</td> | ||
<td | ||
><div class="text-center"> | ||
<span | ||
class="material-icons text-center" | ||
style="width: 20px" | ||
title={result.safe ? $t('version.virustotal.safe') : $t('version.virustotal.not_safe')}> | ||
{result.safe ? 'checkmark' : 'cancel'} | ||
</span> | ||
</div> | ||
</td> | ||
</tr> | ||
{/each} | ||
</tbody> | ||
</table> | ||
</div> |
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,6 @@ | ||
import { redirect } from '@sveltejs/kit'; | ||
|
||
// SML as a mod migration for 1.0 release | ||
export function load() { | ||
redirect(302, '/mod/SML'); | ||
} |
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