Skip to content

Commit 8642fec

Browse files
committed
Prettier
1 parent 702dc2e commit 8642fec

File tree

15 files changed

+13677
-15056
lines changed

15 files changed

+13677
-15056
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"editor.formatOnSave": true,
44
"editor.defaultFormatter": "esbenp.prettier-vscode",
55
"editor.codeActionsOnSave": {
6-
"source.fixAll.eslint": true
6+
"source.fixAll.eslint": "explicit"
77
},
88
"workbench.colorCustomizations": {
99
"titleBar.activeBackground": "#673ab7",
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ReactNode } from "react";
22

33
export default function LoginPageLayout({ children }: { readonly children: ReactNode }) {
4-
return <div className="flex min-h-full min-h-[100dvh] items-center bg-primary">{children}</div>;
4+
return <div className="flex min-h-[100dvh] min-h-full items-center bg-primary">{children}</div>;
55
}

apps/app/src/components/BaseModal/BaseModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const BaseModal = ({ isOpen, onClose, children, modalId }: BaseModalProps
2828

2929
return (
3030
<Transition
31-
className="fixed top-0 left-0 z-50 h-full w-full overflow-y-auto bg-black/50 sm:p-2"
31+
className="fixed left-0 top-0 z-50 h-full w-full overflow-y-auto bg-black/50 sm:p-2"
3232
onClick={onClose}
3333
show={isOpen}
3434
enter="transition-opacity duration-200"

apps/app/src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const Footer = () => (
66
<footer className="bg-primary">
77
<Container className="flex flex-col items-center justify-center py-5 sm:justify-end">
88
<nav className="flex text-sm text-white">
9-
<ul className="flex list-none flex-wrap justify-center gap-y-4 gap-x-7">
9+
<ul className="flex list-none flex-wrap justify-center gap-x-7 gap-y-4">
1010
<li>
1111
<Link href="/jak-korzystac" className="transition-opacity hover:opacity-80">
1212
Jak korzystać?

apps/app/src/components/Header/DarkModeSwitch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const DarkModeSwitch = () => {
1111
type="checkbox"
1212
role="switch"
1313
aria-label="Przełącz pomiędzy ciemnym i jasnym motywem"
14-
className="relative h-6 w-10 cursor-pointer appearance-none rounded-full bg-violet-800 before:absolute before:top-1 before:left-1 before:h-[16px] before:w-[16px] before:rounded-full before:bg-white before:transition-all before:duration-200 dark:bg-violet-700 [&:checked]:before:left-[calc(100%-0.25rem)] [&:checked]:before:-translate-x-full"
14+
className="relative h-6 w-10 cursor-pointer appearance-none rounded-full bg-violet-800 before:absolute before:left-1 before:top-1 before:h-[16px] before:w-[16px] before:rounded-full before:bg-white before:transition-all before:duration-200 dark:bg-violet-700 [&:checked]:before:left-[calc(100%-0.25rem)] [&:checked]:before:-translate-x-full"
1515
checked={theme === "dark"}
1616
onChange={() => changeTheme(theme === "dark" ? "light" : "dark")}
1717
/>

apps/app/src/components/Header/HeaderNavigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const HeaderNavigation = ({ children }: { children: ReactNode }) => {
3232
isOpen ? "flex" : "hidden",
3333
)}
3434
>
35-
<div className="mt-auto mb-auto flex flex-col items-center gap-10 sm:flex-row sm:gap-5">
35+
<div className="mb-auto mt-auto flex flex-col items-center gap-10 sm:flex-row sm:gap-5">
3636
<ul className="flex list-none flex-col items-center gap-10 text-center sm:flex-row sm:gap-5">
3737
<li>
3838
<ActiveNavigationLink href="/jak-korzystac" onClick={handleClickLink}>

apps/app/src/components/MarkdownContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const MarkdownContent = ({ source }: MarkdownContentProps) => {
1212
return (
1313
<div
1414
itemProp="text"
15-
className="question-content prose prose-sm min-w-0 max-w-full grow break-words px-2 prose-code:px-0 prose-pre:bg-transparent prose-pre:px-0 prose-pre:text-base dark:prose-invert md:prose-base md:prose-pre:text-base"
15+
className="question-content prose prose-sm min-w-0 max-w-full grow break-words px-2 dark:prose-invert md:prose-base prose-code:px-0 prose-pre:bg-transparent prose-pre:px-0 prose-pre:text-base md:prose-pre:text-base"
1616
>
1717
<MDXRemote {...source} />
1818
</div>

apps/app/src/components/QuestionsSidebar/QuestionsSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const QuestionsSidebar = () => {
3232
<Button variant="brandingInverse" className="mt-auto sm:hidden" onClick={closeSidebar}>
3333
Pokaż wyniki
3434
</Button>
35-
<CloseButton className="absolute top-1 right-1 sm:hidden" onClick={closeSidebar} />
35+
<CloseButton className="absolute right-1 top-1 sm:hidden" onClick={closeSidebar} />
3636
</aside>
3737
);
3838
};

apps/app/src/components/StaticPageContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type StaticPageContainerProps = Readonly<{
88
export const StaticPageContainer = ({ children }: StaticPageContainerProps) => (
99
<Container
1010
as="article"
11-
className="static-page-shadow prose my-3 scroll-mt-14 bg-white p-4 pb-16 text-neutral-800 dark:bg-white-dark dark:prose-invert dark:text-neutral-200 sm:p-8 sm:pb-16"
11+
className="static-page-shadow prose my-3 scroll-mt-14 bg-white p-4 pb-16 text-neutral-800 dark:prose-invert dark:bg-white-dark dark:text-neutral-200 sm:p-8 sm:pb-16"
1212
id="main-content"
1313
>
1414
{children}

apps/app/src/components/Tip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type TipProps = Readonly<{
99
export const Tip = ({ className, children }: TipProps) => (
1010
<div
1111
className={twMerge(
12-
"bg-stone-200 py-4 px-5 text-sm text-neutral-900 shadow-inner dark:bg-neutral-700 dark:text-neutral-200 sm:py-7 sm:px-14",
12+
"bg-stone-200 px-5 py-4 text-sm text-neutral-900 shadow-inner dark:bg-neutral-700 dark:text-neutral-200 sm:px-14 sm:py-7",
1313
className,
1414
)}
1515
>

apps/app/src/components/WysiwygEditor/WysiwygEditor.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const WysiwygEditor = memo(({ value, onChange }: WysiwygEditorProps) => {
132132
fallback={
133133
<Loading
134134
label="Ładowanie podglądu…"
135-
className="absolute top-0 left-1/2 -translate-x-1/2"
135+
className="absolute left-1/2 top-0 -translate-x-1/2"
136136
/>
137137
}
138138
>
@@ -141,13 +141,13 @@ export const WysiwygEditor = memo(({ value, onChange }: WysiwygEditorProps) => {
141141
) : (
142142
<textarea
143143
aria-label="Wpisz treść pytania"
144-
className="prose prose-sm relative z-10 h-full w-full max-w-full resize-none bg-white py-2 px-4 focus:outline-0 dark:bg-white-dark dark:prose-invert md:prose-base"
144+
className="prose prose-sm relative z-10 h-full w-full max-w-full resize-none bg-white px-4 py-2 dark:prose-invert md:prose-base focus:outline-0 dark:bg-white-dark"
145145
ref={textAreaRef}
146146
value={value}
147147
onChange={(event) => onChange(event.target.value)}
148148
/>
149149
)}
150-
<Loading label="Ładowanie podglądu…" className="absolute top-0 left-1/2 -translate-x-1/2" />
150+
<Loading label="Ładowanie podglądu…" className="absolute left-1/2 top-0 -translate-x-1/2" />
151151
</div>
152152
</div>
153153
);

apps/app/src/styles/devfaq-theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pre[class*="language-"] {
1212
}
1313

1414
pre[class*="language-"] {
15-
@apply my-[0.5em] mx-0 overflow-auto p-[2em];
15+
@apply mx-0 my-[0.5em] overflow-auto p-[2em];
1616
}
1717

1818
:not(pre) > code[class*="language-"],

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
"typescript": "4.9.4"
3030
},
3131
"engines": {
32-
"npm": ">=7.0.0",
33-
"pnpm": ">=7.11.0",
34-
"node": ">=18.0.0 <19"
32+
"node": "^20.0.0"
3533
},
36-
"packageManager": "pnpm@7.17.0"
34+
"packageManager": "pnpm@9.3.0+sha512.ee7b93e0c2bd11409c6424f92b866f31d3ea1bef5fbe47d3c7500cdc3c9668833d2e55681ad66df5b640c61fa9dc25d546efa54d76d7f8bf54b13614ac293631"
3735
}

0 commit comments

Comments
 (0)