Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Zokhoi committed Nov 4, 2023
1 parent 92cb2fa commit 99deb25
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 20 deletions.
12 changes: 6 additions & 6 deletions framerail/src/lib/popup/error.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@

<style global lang="scss">
.modal-container {
background-color: #57575788;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;
text-align: center;
background-color: #57575788;
}
.modal {
display: inline-block;
color: var(--text);
background-color: var(--background);
border: 1px solid var(--border);
border-radius: 10px;
width: 30%;
padding: 10px;
margin: 40vh auto;
color: var(--text);
text-align: center;
background-color: var(--background);
border: 1px solid var(--border);
border-radius: 10px;
}
.modal h2 {
margin-top: 0;
Expand Down
5 changes: 1 addition & 4 deletions framerail/src/lib/server/deepwell/translate.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { client } from "$lib/server/deepwell/index.ts"
import type { TranslateKeys } from "$lib/types"

export async function translate(
locales: string[],
keys: TranslateKeys
): Promise<object> {
export async function translate(locales: string[], keys: TranslateKeys): Promise<object> {
return client.request("translate", {
locales,
messages: keys
Expand Down
4 changes: 2 additions & 2 deletions framerail/src/lib/sigma-esque/sigma-esque.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
input[type="text"],
input[type="password"] {
padding: 0.5em 1em;
border-radius: 0.5em;
color: var(--text);
background-color: var(--background);
border: 1px solid var(--border);
border-radius: 0.5em;
&.error {
outline: 1px solid var(--error);
Expand Down Expand Up @@ -118,10 +118,10 @@
.revision-attribute.action {
.action-button {
padding: 0.5em 1em;
border-radius: 0.5em;
color: var(--text);
background-color: var(--background);
border: 1px solid var(--border);
border-radius: 0.5em;
}
}
Expand Down
2 changes: 1 addition & 1 deletion framerail/src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export type Optional<T> = T | null
export type TranslateKeys = Record<string, Record<string, string | number>>
export type TranslateKeys = Record<string, Record<string, string | number>>
2 changes: 1 addition & 1 deletion framerail/src/routes/[x+2d]/logout/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function DELETE(event) {
path: "/",
httpOnly: true,
secure: true,
sameSite: "lax",
sameSite: "lax"
})

return new Response(JSON.stringify(res))
Expand Down
24 changes: 18 additions & 6 deletions framerail/src/routes/[x+2d]/user/[slug]/page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,54 @@

{#if $page.data.user.real_name}
<div class="user-attribute real-name">
<span class="user-attribute-label">{$page.data.internationalization?.["user-profile-info.name"]}</span>
<span class="user-attribute-label"
>{$page.data.internationalization?.["user-profile-info.name"]}</span
>
<span class="user-attribute-value">{$page.data.user.real_name}</span>
</div>
{/if}

{#if $page.data.user.gender}
<div class="user-attribute gender">
<span class="user-attribute-label">{$page.data.internationalization?.["user-profile-info.gender"]}</span>
<span class="user-attribute-label"
>{$page.data.internationalization?.["user-profile-info.gender"]}</span
>
<span class="user-attribute-value">{$page.data.user.gender}</span>
</div>
{/if}

{#if $page.data.user.birthday}
<div class="user-attribute birthday">
<span class="user-attribute-label">{$page.data.internationalization?.["user-profile-info.birthday"]}</span>
<span class="user-attribute-label"
>{$page.data.internationalization?.["user-profile-info.birthday"]}</span
>
<span class="user-attribute-value">{$page.data.user.birthday}</span>
</div>
{/if}

{#if $page.data.user.location}
<div class="user-attribute location">
<span class="user-attribute-label">{$page.data.internationalization?.["user-profile-info.location"]}</span>
<span class="user-attribute-label"
>{$page.data.internationalization?.["user-profile-info.location"]}</span
>
<span class="user-attribute-value">{$page.data.user.location}</span>
</div>
{/if}

{#if $page.data.user.user_page}
<div class="user-attribute user-page">
<span class="user-attribute-label">{$page.data.internationalization?.["user-profile-info.user-page"]}</span>
<span class="user-attribute-label"
>{$page.data.internationalization?.["user-profile-info.user-page"]}</span
>
<span class="user-attribute-value">{$page.data.user.user_page}</span>
</div>
{/if}

{#if $page.data.user.biography}
<div class="user-attribute biography">
<span class="user-attribute-label">{$page.data.internationalization?.["user-profile-info.biography"]}</span>
<span class="user-attribute-label"
>{$page.data.internationalization?.["user-profile-info.biography"]}</span
>
<span class="user-attribute-value">{$page.data.user.biography}</span>
</div>
{/if}
Expand Down

0 comments on commit 99deb25

Please sign in to comment.