Skip to content

Commit

Permalink
Rerun prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kbinani committed Sep 3, 2023
1 parent 440b3f0 commit c22fa9f
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/front/component/convert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export const Convert: React.FC<{
</label>
<div className="inputGuidance">
{gettext(
"Select a world directory to convert, which must contain a level.dat file"
"Select a world directory to convert, which must contain a level.dat file",
)}
</div>
</div>
Expand Down Expand Up @@ -237,7 +237,7 @@ export const Convert: React.FC<{
</div>
<div>
{gettext(
"Conversion finished. Click the export button to get the result"
"Conversion finished. Click the export button to get the result",
)}
</div>
</>
Expand Down Expand Up @@ -330,7 +330,7 @@ export const Convert: React.FC<{
className="roundButton"
style={{ paddingLeft: 20, paddingRight: 20 }}
href={`./dl/${state.current.dl.id}?action=download&filename=${btoa(
encodeURIComponent(state.current.dl.filename)
encodeURIComponent(state.current.dl.filename),
)}`}
>
{gettext("Export") + ": "} {state.current.dl.filename}
Expand Down Expand Up @@ -374,7 +374,7 @@ const FileInputGuidance: React.FC<{ mode: ConvertMode }> = ({ mode }) => {
return (
<>
{gettext(
"Select a *.bin to convert. This file can be copied from Xbox360 using USB stick. Check the link to know how to prepare USB stick for Xbox360"
"Select a *.bin to convert. This file can be copied from Xbox360 using USB stick. Check the link to know how to prepare USB stick for Xbox360",
)}
<br />
<Link url={url} />
Expand Down
2 changes: 1 addition & 1 deletion src/front/component/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ document.addEventListener("DOMContentLoaded", () => {
root.render(
<ErrorBoundary>
<App />
</ErrorBoundary>
</ErrorBoundary>,
);
});
6 changes: 3 additions & 3 deletions src/front/component/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { About } from "./about";
export const useForceUpdate = () => {
const [counter, setCounter] = useReducer(
(prev: number, _: number) => prev + 1,
0
0,
);
return () => setCounter(counter + 1);
};
Expand Down Expand Up @@ -62,7 +62,7 @@ export const Main: React.FC = () => {
if (state.converting) {
ev.preventDefault();
ev.returnValue = gettext(
"Converter still working. Do you really leave the page?"
"Converter still working. Do you really leave the page?",
);
}
};
Expand Down Expand Up @@ -117,7 +117,7 @@ const UnsupportedBrowserMessage: React.FC = () => {
{typeof navigator.hardwareConcurrency === "undefined" && (
<li>
{gettext(
"This browser doesn't have navigator.hardwareConcurrency property"
"This browser doesn't have navigator.hardwareConcurrency property",
) + ": "}
<a
target={"_blank"}
Expand Down
2 changes: 1 addition & 1 deletion src/front/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function normalize(language: string): string {

export function gettext(
s: TranslationKey,
language: string = navigator.language
language: string = navigator.language,
): string {
const l = normalize(language);
switch (l) {
Expand Down
2 changes: 1 addition & 1 deletion src/front/mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function convertModeOutputFileExtension(mode: ConvertMode): string {

export function convertModeMetadata(
mode: ConvertMode,
file: boolean
file: boolean,
): ConverterMetadata {
switch (mode) {
case "j2b":
Expand Down
2 changes: 1 addition & 1 deletion src/share/file-list-ext.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function directoryNameFromFileList(
fileList: FileList
fileList: FileList,
): string | undefined {
let dirname: string | undefined = undefined;
for (let i = 0; i < fileList.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/share/fs-ext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function fread({

export async function iterate(
directory: string,
callback: ({ path, dir }: { path: string; dir: boolean }) => Promise<void>
callback: ({ path, dir }: { path: string; dir: boolean }) => Promise<void>,
): Promise<void> {
const visit = async (item: any) => {
const { path, node } = item;
Expand Down
2 changes: 1 addition & 1 deletion src/share/progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class X2BConverterMetadata implements ConverterMetadata {
export function nextProgress(
progress: Progress,
m: ProgressMessage,
meta: ConverterMetadata
meta: ConverterMetadata,
): Progress {
const steps = meta.steps;
const index = steps.indexOf(m.step);
Expand Down
6 changes: 3 additions & 3 deletions src/worker/service/sworker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function onFetch(ev: FetchEvent) {

async function* objectUrlsAsFile(
files: FileMeta[],
prefix: string
prefix: string,
): AsyncIterable<File> {
for (const file of files) {
const { name, url } = file;
Expand All @@ -68,7 +68,7 @@ async function* objectUrlsAsFile(

async function respondDownload(
id: string,
filename: string
filename: string,
): Promise<Response> {
const prefix = `/je2be/${id}/out/`;
const db = new DlStore();
Expand All @@ -81,7 +81,7 @@ async function respondDownload(
"Content-Type": "application/octet-stream",
"Cache-Control": "no-cache",
"Content-Disposition": `attachment; filename=\"${encodeURIComponent(
filename
filename,
)}\"`,
},
});
Expand Down

0 comments on commit c22fa9f

Please sign in to comment.