From 2ed0414af604f2ffecabf552bee5e851d5d0090b Mon Sep 17 00:00:00 2001
From: Haseeb Qureshie
Date: Thu, 31 Oct 2024 12:38:42 +0100
Subject: [PATCH 1/6] Changed trailingCommas to none
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 8493cccc..dd71ac56 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
"typescript": "^5.2.2"
},
"prettier": {
- "trailingComma": "all",
+ "trailingComma": "none",
"useTabs": true,
"plugins": [
"prettier-plugin-astro",
From f8bb6ea0c1379cec28b64b3b6fb1df60ed03277f Mon Sep 17 00:00:00 2001
From: Haseeb Qureshie
Date: Thu, 31 Oct 2024 13:57:50 +0100
Subject: [PATCH 2/6] Testing if prettier is not failing
---
content/blog/cheerpj-3-deep-dive.mdx | 2 +-
content/blog/cheerpj-3.0rc1.mdx | 4 +-
.../astro-theme/components/BlogPostCard.astro | 4 +-
.../astro-theme/components/Breadcrumbs.astro | 2 +-
.../components/DocsPagination.astro | 6 +-
.../astro-theme/components/DocsSidebar.astro | 2 +-
.../components/DocsSidebarNavEntry.astro | 10 ++--
packages/astro-theme/components/Footer.astro | 40 ++++++-------
.../components/FormattedDate.astro | 2 +-
.../components/LanguageSwitcher.astro | 2 +-
.../astro-theme/components/LinkButton.astro | 4 +-
.../components/LocaleSwitcher.astro | 2 +-
.../components/TableOfContents.astro | 2 +-
.../components/TableOfContentsHeading.astro | 4 +-
.../components/WasThisHelpful.astro | 6 +-
.../components/nav/global/EventBanner.svelte | 2 +-
.../components/nav/product/Link.astro | 2 +-
.../components/nav/product/Nav.astro | 2 +-
.../components/search/Pagefind.svelte | 4 +-
.../components/search/Result.svelte | 2 +-
.../components/search/Search.astro | 4 +-
packages/astro-theme/content.ts | 14 ++---
packages/astro-theme/index.ts | 56 +++++++++----------
packages/astro-theme/layouts/BlogPost.astro | 4 +-
.../astro-theme/layouts/DocsArticle.astro | 2 +-
.../astro-theme/layouts/ProductHome.astro | 2 +-
packages/astro-theme/lib/blog.ts | 8 +--
packages/astro-theme/lib/callout.js | 2 +-
packages/astro-theme/lib/i18n.ts | 2 +-
packages/astro-theme/lib/nav.ts | 22 ++++----
packages/astro-theme/lib/products.ts | 18 +++---
packages/astro-theme/lib/terminal-os-tabs.js | 8 +--
packages/astro-theme/pagefind.ts | 8 +--
.../astro-theme/pages/blog/[...slug].astro | 2 +-
packages/astro-theme/pages/blog/index.astro | 2 +-
.../astro-theme/pages/docs/[...slug].astro | 4 +-
.../astro-theme/pages/docs/ja/[...slug].astro | 4 +-
packages/astro-theme/tailwind.ts | 30 +++++-----
packages/cheerp-ts-three-demo/three-demo.js | 6 +-
.../utilities/ImageSlider.svelte | 6 +-
.../utilities/ImageSlider.svelte | 6 +-
packages/global-navbar/src/Nav.svelte | 18 +++---
packages/global-navbar/svelte.config.js | 2 +-
packages/global-navbar/vite.config.ts | 12 ++--
sites/cheerp/astro.config.mjs | 10 ++--
.../cheerp/tutorials/hello_world/hello.js | 2 +-
.../cheerp/tutorials/tutorial_1/pong1/pong.js | 4 +-
.../cheerp/tutorials/tutorial_1/pong2/pong.js | 10 ++--
.../cheerp/tutorials/tutorial_1/pong3/pong.js | 8 +--
.../cheerp/tutorials/tutorial_1/pong4/pong.js | 8 +--
.../cheerp/tutorials/tutorial_1/pong5/pong.js | 12 ++--
.../tutorials/tutorial_1/pong5/pong_pure.js | 6 +-
...-web-frameworks-(Vue,-Reactor,-Angular).md | 2 +-
.../src/content/docs/12-reference/01-args.md | 2 +-
.../src/content/docs/12-reference/02-env.md | 2 +-
.../01-genericjs/90-memory-model.md | 4 +-
.../10-command-line-options/40-modules.md | 4 +-
sites/cheerpj/astro.config.mjs | 18 +++---
sites/cheerpj/src/content/config.ts | 6 +-
.../docs/10-getting-started/00-Java-app.md | 2 +-
.../docs/10-getting-started/03-JNLP.md | 2 +-
...nting-Java-native-methods-in-JavaScript.md | 6 +-
.../src/content/docs/11-guides/Networking.md | 4 +-
.../content/docs/11-guides/library-mode.md | 2 +-
.../docs/12-reference/00-cheerpjInit.md | 14 ++---
.../docs/12-reference/01-cheerpjRunMain.md | 2 +-
.../12-reference/10-cheerpjCreateDisplay.md | 2 +-
.../docs/13-tutorials/04-java-browser.mdx | 2 +-
.../docs/ja/10-getting-started/00-Java-app.md | 2 +-
.../docs/ja/10-getting-started/03-JNLP.md | 2 +-
...nting-Java-native-methods-in-JavaScript.md | 6 +-
.../content/docs/ja/11-guides/Networking.md | 4 +-
.../content/docs/ja/11-guides/library-mode.md | 2 +-
.../docs/ja/12-reference/00-cheerpjInit.md | 14 ++---
.../docs/ja/12-reference/01-cheerpjRunMain.md | 2 +-
.../12-reference/10-cheerpjCreateDisplay.md | 2 +-
.../docs/ja/13-tutorials/04-java-browser.mdx | 2 +-
sites/cheerpx/astro.config.mjs | 10 ++--
.../content/docs/10-getting-started/index.md | 12 ++--
.../docs/11-guides/File-System-support.md | 4 +-
.../src/content/docs/11-guides/Networking.md | 8 +--
.../content/docs/11-guides/input-output.md | 4 +-
.../12-reference/00-CheerpX-Linux-create.md | 4 +-
.../docs/12-reference/01-CheerpX-Linux-run.md | 4 +-
.../11-CheerpX-Linux-setCustomConsole.md | 6 +-
.../src/content/docs/13-tutorials/full_os.md | 8 +--
.../content/docs/13-tutorials/setup-svelte.md | 8 +--
sites/labs/astro.config.mjs | 10 ++--
sites/labs/postcss.config.cjs | 4 +-
.../landing-page/AnimatedText.svelte | 4 +-
.../landing-page/ClientCarousel.svelte | 2 +-
.../docs/cheerpj-applet-runner/index.mdx | 2 +-
.../docs/cheerpj-jnlp-runner/index.mdx | 2 +-
.../03-getting-started/00-Java-app.md | 2 +-
.../cheerpj2/03-getting-started/03-JNLP.md | 2 +-
.../docs/cheerpj2/05-reference/Runtime-API.md | 16 +++---
sites/labs/src/env.d.ts | 4 +-
sites/labs/src/pages/index.astro | 10 ++--
sites/labs/src/pages/rss.xml.js | 6 +-
sites/labs/svelte.config.js | 2 +-
100 files changed, 325 insertions(+), 325 deletions(-)
diff --git a/content/blog/cheerpj-3-deep-dive.mdx b/content/blog/cheerpj-3-deep-dive.mdx
index 82c62ff7..135931d4 100644
--- a/content/blog/cheerpj-3-deep-dive.mdx
+++ b/content/blog/cheerpj-3-deep-dive.mdx
@@ -187,7 +187,7 @@ async function iTextExample() {
const document = await new Document();
const writer = await PdfWriter.getInstance(
document,
- await new FileOutputStream("/files/HelloIText.pdf"),
+ await new FileOutputStream("/files/HelloIText.pdf")
);
await document.open();
diff --git a/content/blog/cheerpj-3.0rc1.mdx b/content/blog/cheerpj-3.0rc1.mdx
index a04ee0fc..e82ff560 100644
--- a/content/blog/cheerpj-3.0rc1.mdx
+++ b/content/blog/cheerpj-3.0rc1.mdx
@@ -80,8 +80,8 @@ await cheerpjInit({
natives: {
async Java_com_example_TestClass_alert(lib, str) {
window.alert(str);
- },
- },
+ }
+ }
});
```
diff --git a/packages/astro-theme/components/BlogPostCard.astro b/packages/astro-theme/components/BlogPostCard.astro
index b5717daf..c5bdb15f 100644
--- a/packages/astro-theme/components/BlogPostCard.astro
+++ b/packages/astro-theme/components/BlogPostCard.astro
@@ -37,7 +37,7 @@ const authors = await resolveAuthors(post.data.authors);
class:list={{
"font-bold text-balance text-white group-hover:text-primary-400 grow": true,
"text-2xl leading-7": size === "wide",
- "text-xl leading-6": size === "narrow",
+ "text-xl leading-6": size === "narrow"
}}
>
{post.data.title}
@@ -56,7 +56,7 @@ const authors = await resolveAuthors(post.data.authors);
loading="lazy"
decoding="async"
/>
- ) : undefined,
+ ) : undefined
)}
diff --git a/packages/astro-theme/components/Breadcrumbs.astro b/packages/astro-theme/components/Breadcrumbs.astro
index 16440d68..f6a88ef6 100644
--- a/packages/astro-theme/components/Breadcrumbs.astro
+++ b/packages/astro-theme/components/Breadcrumbs.astro
@@ -20,7 +20,7 @@ const crumbs = path
return {
title: entry.title,
url: entry.href,
- isLast: i === all.length - 1,
+ isLast: i === all.length - 1
};
});
---
diff --git a/packages/astro-theme/components/DocsPagination.astro b/packages/astro-theme/components/DocsPagination.astro
index 832159e0..dd743f3d 100644
--- a/packages/astro-theme/components/DocsPagination.astro
+++ b/packages/astro-theme/components/DocsPagination.astro
@@ -23,21 +23,21 @@ async function getNextPrev(): Promise<{
const activeIndex = directory.entries.findIndex(({ id }) => id === activeId);
if (activeIndex === -1) {
console.warn(
- `ContentPagination: could not find activeId "${activeId}" in given directory`,
+ `ContentPagination: could not find activeId "${activeId}" in given directory`
);
return { next: undefined, prev: undefined };
}
return {
next: findValidEntry(directory.entries, activeIndex, 1),
- prev: findValidEntry(directory.entries, activeIndex, -1),
+ prev: findValidEntry(directory.entries, activeIndex, -1)
};
}
function findValidEntry(
entries: NavEntry[],
index: number,
- direction: number,
+ direction: number
): NavEntry | undefined {
for (
let i = index + direction;
diff --git a/packages/astro-theme/components/DocsSidebar.astro b/packages/astro-theme/components/DocsSidebar.astro
index f5ef9665..d2db23fd 100644
--- a/packages/astro-theme/components/DocsSidebar.astro
+++ b/packages/astro-theme/components/DocsSidebar.astro
@@ -56,7 +56,7 @@ const hasMultipleLocales = !!Astro.currentLocale;
diff --git a/packages/astro-theme/components/nav/product/Link.astro b/packages/astro-theme/components/nav/product/Link.astro
index 856459e5..b72b163a 100644
--- a/packages/astro-theme/components/nav/product/Link.astro
+++ b/packages/astro-theme/components/nav/product/Link.astro
@@ -13,7 +13,7 @@ const isActive = Astro.url.pathname.startsWith(href);
class:list={[
"flex items-center px-3 h-10 rounded-full",
{ "hover:bg-stone-800": !isActive },
- { "text-primary-500 bg-primary-600 bg-opacity-10": isActive },
+ { "text-primary-500 bg-primary-600 bg-opacity-10": isActive }
]}
>
{label}
diff --git a/packages/astro-theme/components/nav/product/Nav.astro b/packages/astro-theme/components/nav/product/Nav.astro
index 8f1e7dc1..5b0f644e 100644
--- a/packages/astro-theme/components/nav/product/Nav.astro
+++ b/packages/astro-theme/components/nav/product/Nav.astro
@@ -20,7 +20,7 @@ const { product } = Astro.props;
const firstDocsEntry = getLocalisedProductNav(
await getRootNav(),
product.id,
- Astro.currentLocale,
+ Astro.currentLocale
)[0];
if (!firstDocsEntry) throw new Error("must have a docs entry");
---
diff --git a/packages/astro-theme/components/search/Pagefind.svelte b/packages/astro-theme/components/search/Pagefind.svelte
index 7926a348..3f9e621a 100644
--- a/packages/astro-theme/components/search/Pagefind.svelte
+++ b/packages/astro-theme/components/search/Pagefind.svelte
@@ -32,7 +32,7 @@
const response = await pagefind.debouncedSearch(query, {
filters: { productId },
- baseUrl: import.meta.env.BASE_URL,
+ baseUrl: import.meta.env.BASE_URL
});
if (response === null) {
// Debounce.
@@ -43,7 +43,7 @@
noResultsForQuery = query.length > 0 && results.length === 0;
plausible("Search", {
- props: { query, resultsCount: results.length, productId },
+ props: { query, resultsCount: results.length, productId }
});
}
diff --git a/packages/astro-theme/components/search/Result.svelte b/packages/astro-theme/components/search/Result.svelte
index 97097951..7e3882de 100644
--- a/packages/astro-theme/components/search/Result.svelte
+++ b/packages/astro-theme/components/search/Result.svelte
@@ -7,7 +7,7 @@
function thinSubResults(
pageUrl: string,
results: PagefindSubResult[],
- limit: number,
+ limit: number
) {
results = results.filter((r) => r.url !== pageUrl);
diff --git a/packages/astro-theme/components/search/Search.astro b/packages/astro-theme/components/search/Search.astro
index a796999d..138d7b8c 100644
--- a/packages/astro-theme/components/search/Search.astro
+++ b/packages/astro-theme/components/search/Search.astro
@@ -46,7 +46,7 @@ interface Props {
{
t(
"If you have a question, please ask it in our Discord server.",
- Astro.currentLocale,
+ Astro.currentLocale
)
}
@@ -61,7 +61,7 @@ interface Props {
constructor() {
super();
const openBtn = this.querySelector(
- "button[data-open-modal]",
+ "button[data-open-modal]"
);
const dialog = this.querySelector("dialog");
diff --git a/packages/astro-theme/content.ts b/packages/astro-theme/content.ts
index 553044ff..c97c6b1f 100644
--- a/packages/astro-theme/content.ts
+++ b/packages/astro-theme/content.ts
@@ -13,8 +13,8 @@ export function defineCommonCollections() {
description: z.string().optional(),
shortTitle: z.string().optional(), // Used for nav only
fullWidthLayout: z.boolean().default(false),
- draft: z.boolean().default(false),
- }),
+ draft: z.boolean().default(false)
+ })
}),
blogauthors: defineCollection({
@@ -24,9 +24,9 @@ export function defineCommonCollections() {
jobTitle: z.string().optional(),
avatar: image().optional(),
url: z.string().optional(),
- guest: z.boolean().default(false),
+ guest: z.boolean().default(false)
}),
- type: "data",
+ type: "data"
}),
blog: defineCollection({
@@ -48,8 +48,8 @@ export function defineCommonCollections() {
heroImage: image().optional(),
featured: z.boolean().default(false),
draft: z.boolean().default(false),
- tags: productTags.optional(),
- }),
- }),
+ tags: productTags.optional()
+ })
+ })
};
}
diff --git a/packages/astro-theme/index.ts b/packages/astro-theme/index.ts
index ee2bc2a0..2d1ef071 100644
--- a/packages/astro-theme/index.ts
+++ b/packages/astro-theme/index.ts
@@ -28,7 +28,7 @@ theme.styleOverrides.frames = {
editorTabBarBackground: "transparent",
editorActiveTabBackground: "transparent",
editorActiveTabBorderBottom: "transparent",
- shadowColor: "transparent",
+ shadowColor: "transparent"
};
const dirname = import.meta.url.replace("file://", "").replace("/index.ts", "");
@@ -40,7 +40,7 @@ export type Options = {
const contentDir = joinPath(dirname, "../../content");
export default function ThemeIntegration(
- options: Options = {},
+ options: Options = {}
): AstroIntegration {
const base = options.baseIsDocs ? "/docs" : "";
return {
@@ -54,8 +54,8 @@ export default function ThemeIntegration(
codeBackground: "transparent",
borderColor: "rgb(41, 37, 36)", // border-stone-800
// doesn't work?
- frames: {},
- },
+ frames: {}
+ }
}),
mdx(),
sitemap(),
@@ -66,8 +66,8 @@ export default function ThemeIntegration(
publicDir({
// FIXME claims directory does not exist
dir: "public",
- cwd: dirname,
- }),
+ cwd: dirname
+ })
];
for (const integration of integrations) {
addIntegration(params, { integration });
@@ -75,26 +75,26 @@ export default function ThemeIntegration(
params.injectRoute({
pattern: "blog",
- entrypoint: "@leaningtech/astro-theme/pages/blog/index.astro",
+ entrypoint: "@leaningtech/astro-theme/pages/blog/index.astro"
});
params.injectRoute({
pattern: "blog/[...slug]",
- entrypoint: "@leaningtech/astro-theme/pages/blog/[...slug].astro",
+ entrypoint: "@leaningtech/astro-theme/pages/blog/[...slug].astro"
});
cpSync(contentDir, "src/content", { recursive: true }); // Needed until Astro Content Layer implemented
const docsPrefix = options.baseIsDocs ? "" : "docs";
params.injectRoute({
pattern: docsPrefix,
- entrypoint: "@leaningtech/astro-theme/pages/docs/index.astro",
+ entrypoint: "@leaningtech/astro-theme/pages/docs/index.astro"
});
params.injectRoute({
pattern: `${docsPrefix}/404`,
- entrypoint: "@leaningtech/astro-theme/pages/docs/404.astro",
+ entrypoint: "@leaningtech/astro-theme/pages/docs/404.astro"
});
params.injectRoute({
pattern: `${docsPrefix}/[...slug]`,
- entrypoint: "@leaningtech/astro-theme/pages/docs/[...slug].astro",
+ entrypoint: "@leaningtech/astro-theme/pages/docs/[...slug].astro"
});
params.updateConfig({
markdown: {
@@ -112,11 +112,11 @@ export default function ThemeIntegration(
className:
"not-prose inline-block align-middle heading-link-icon",
style: "margin-left: 8px",
- src: base + "/icons/heading-link.svg",
+ src: base + "/icons/heading-link.svg"
},
- children: [],
- },
- },
+ children: []
+ }
+ }
],
[
rehypeExternalLinks,
@@ -127,31 +127,31 @@ export default function ThemeIntegration(
properties: {
className: "not-prose inline-block align-middle",
style: "margin-left: 2px",
- src: base + "/icons/external-link.svg",
+ src: base + "/icons/external-link.svg"
},
- children: [],
+ children: []
},
- target: "_blank",
- },
- ],
- ],
+ target: "_blank"
+ }
+ ]
+ ]
},
compressHTML: prod,
build: {
format: "file",
- inlineStylesheets: "always",
+ inlineStylesheets: "always"
},
trailingSlash: "never",
image: {
- service: squooshImageService(),
+ service: squooshImageService()
},
vite: {
ssr: {
- noExternal: ["@leaningtech/global-navbar"],
- },
- },
+ noExternal: ["@leaningtech/global-navbar"]
+ }
+ }
});
- },
- },
+ }
+ }
};
}
diff --git a/packages/astro-theme/layouts/BlogPost.astro b/packages/astro-theme/layouts/BlogPost.astro
index 95908274..720abd0a 100644
--- a/packages/astro-theme/layouts/BlogPost.astro
+++ b/packages/astro-theme/layouts/BlogPost.astro
@@ -5,7 +5,7 @@ import Icon from "astro-icon";
import { SocialShare } from "astro-social-share";
import FormattedDate from "../components/FormattedDate.astro";
import TableOfContents, {
- type BasicHeading,
+ type BasicHeading
} from "../components/TableOfContents.astro";
import Footer from "../components/Footer.astro";
import BlogPostCardSet from "../components/BlogPostCardSet.astro";
@@ -131,7 +131,7 @@ if (subtitle) {
diff --git a/packages/astro-theme/layouts/DocsArticle.astro b/packages/astro-theme/layouts/DocsArticle.astro
index ff2c769d..0244d76e 100644
--- a/packages/astro-theme/layouts/DocsArticle.astro
+++ b/packages/astro-theme/layouts/DocsArticle.astro
@@ -47,7 +47,7 @@ function getEditHref(id: string): string {
diff --git a/packages/astro-theme/lib/blog.ts b/packages/astro-theme/lib/blog.ts
index 72fa2ff3..ceb56102 100644
--- a/packages/astro-theme/lib/blog.ts
+++ b/packages/astro-theme/lib/blog.ts
@@ -2,15 +2,15 @@ import { getEntry, type CollectionEntry, getCollection } from "astro:content";
import { productFromUrl } from "./products";
export async function resolveAuthors(
- authors: string[],
+ authors: string[]
): Promise["data"][]> {
return Promise.all(
authors.map((id: string) =>
getEntry("blogauthors", id).then((entry) => {
if (!entry) throw new Error(`unknown author '${id}'`);
return entry.data;
- }),
- ),
+ })
+ )
);
}
@@ -23,7 +23,7 @@ export async function latestFeaturedPost(url: URL) {
(entry) =>
entry.data.featured &&
!entry.data.draft &&
- (!requiredTag || entry.data.tags?.includes(requiredTag)),
+ (!requiredTag || entry.data.tags?.includes(requiredTag))
)
).sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf());
return posts[0];
diff --git a/packages/astro-theme/lib/callout.js b/packages/astro-theme/lib/callout.js
index 082b0198..dcd68113 100644
--- a/packages/astro-theme/lib/callout.js
+++ b/packages/astro-theme/lib/callout.js
@@ -10,7 +10,7 @@ function transition(cb) {
document.addEventListener("DOMContentLoaded", () => {
const callouts = document.querySelectorAll(
- "blockquote[data-callout][data-expandable=true]",
+ "blockquote[data-callout][data-expandable=true]"
);
for (const callout of callouts) {
const title = callout.querySelector(".callout-title");
diff --git a/packages/astro-theme/lib/i18n.ts b/packages/astro-theme/lib/i18n.ts
index ee4fdc6a..91cd6ed6 100644
--- a/packages/astro-theme/lib/i18n.ts
+++ b/packages/astro-theme/lib/i18n.ts
@@ -30,7 +30,7 @@ function getLocaleBasePaths(currentLocale: string | undefined): {
*/
export function getLocalisedPaths(
path: string,
- currentLocale: string | undefined,
+ currentLocale: string | undefined
): { [locale: string]: string } {
if (!currentLocale) return {};
diff --git a/packages/astro-theme/lib/nav.ts b/packages/astro-theme/lib/nav.ts
index d06b8d01..8437e169 100644
--- a/packages/astro-theme/lib/nav.ts
+++ b/packages/astro-theme/lib/nav.ts
@@ -85,7 +85,7 @@ export async function getRootNav(): Promise {
// Map of directory name to its entries. The root directory is "".
const dirPathToEntries: { [path: string]: NavEntry[] } = {
- "": root,
+ "": root
};
// Sort so shortest dir names are first
@@ -116,7 +116,7 @@ export async function getRootNav(): Promise {
dirname,
entries: myEntries,
title: idToTitle(path),
- isLanguageDirectory: locales.includes(path),
+ isLanguageDirectory: locales.includes(path)
};
parentEntries.push(me);
dirPathToEntries[path] = myEntries;
@@ -131,7 +131,7 @@ export async function getRootNav(): Promise {
const parentDirEntries = dirPathToEntries[parentDir];
if (!parentDirEntries) {
throw new Error(
- `panic: parent directory ${parentDir} not found for file ${filename}`,
+ `panic: parent directory ${parentDir} not found for file ${filename}`
);
}
const slug = idToSlug(file.id); // note: we don't allow slug override
@@ -142,7 +142,7 @@ export async function getRootNav(): Promise {
href: "/docs/" + slug,
title: file.data.shortTitle ?? file.data.title,
collectionEntry: file,
- isIndex: slug === idToSlug(parentDir),
+ isIndex: slug === idToSlug(parentDir)
});
}
@@ -181,7 +181,7 @@ export async function getRootNav(): Promise {
}
if (numFiles !== files.length) {
throw new Error(
- `panic: number of files in root nav (${numFiles}) does not match number of files in collection (${files.length})`,
+ `panic: number of files in root nav (${numFiles}) does not match number of files in collection (${files.length})`
);
}
@@ -190,11 +190,11 @@ export async function getRootNav(): Promise {
export function findNavDirectory(
nav: NavEntry[],
- pathComponents: string[],
+ pathComponents: string[]
): NavDirectory | undefined {
if (pathComponents.length === 0) {
throw new Error(
- "pathComponents must not be empty; use getRootNav() to get the entries of the root directory",
+ "pathComponents must not be empty; use getRootNav() to get the entries of the root directory"
);
}
@@ -212,7 +212,7 @@ export function findNavDirectory(
}
export async function findParentDirectoryOfId(
- id: string,
+ id: string
): Promise {
const [parentDir] = splitPath(id);
return findNavDirectory(await getRootNav(), parentDir.split("/"));
@@ -284,7 +284,7 @@ export function flattenNav(entries: NavEntry[]): NavEntry[] {
/** Returns an array of NavEntries that path to the given entry ID. */
export function findEntryPath(
nav: NavEntry[],
- id: string,
+ id: string
): NavEntry[] | undefined {
function dfsVisit(entry: NavEntry, path: NavEntry[]): NavEntry[] | undefined {
if (entry.id === id) {
@@ -316,7 +316,7 @@ export function findEntry(nav: NavEntry[], id: string): NavEntry | undefined {
export function getLocalisedProductNav(
nav: NavEntry[],
product: Product,
- locale: string | undefined,
+ locale: string | undefined
) {
nav = findNavDirectory(nav, [product])?.entries ?? nav; // for labs (multiple products on one site)
@@ -341,7 +341,7 @@ export function getLocalisedProductNav(
// Remove all language directories
nav = nav.filter(
- (entry) => entry.type !== "directory" || !entry.isLanguageDirectory,
+ (entry) => entry.type !== "directory" || !entry.isLanguageDirectory
);
return nav;
diff --git a/packages/astro-theme/lib/products.ts b/packages/astro-theme/lib/products.ts
index b440a06b..fcb17418 100644
--- a/packages/astro-theme/lib/products.ts
+++ b/packages/astro-theme/lib/products.ts
@@ -39,7 +39,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Cheerp is an enterprise-grade compiler toolchain that can compile C/C++ into efficient WebAssembly and JavaScript. It is open source, liberally licensed, and actively developed by Leaning Technologies.",
github: "https://github.com/leaningtech/cheerp-meta",
- repositoryName: "cheerp-meta",
+ repositoryName: "cheerp-meta"
},
cheerpj2: {
id: "cheerpj2",
@@ -52,7 +52,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.",
github: "https://github.com/leaningtech/cheerpj-meta",
- repositoryName: "cheerpj-meta",
+ repositoryName: "cheerpj-meta"
},
cheerpj3: {
id: "cheerpj3",
@@ -65,7 +65,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.",
github: "https://github.com/leaningtech/cheerpj-meta",
- repositoryName: "cheerpj-meta",
+ repositoryName: "cheerpj-meta"
},
cheerpx: {
id: "cheerpx",
@@ -78,7 +78,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"CheerpX is a JavaScript library that enables secure client-side execution of x86 binaries on any browser. Coming soon.",
github: "https://github.com/leaningtech/webvm", // TODO
- repositoryName: "webvm",
+ repositoryName: "webvm"
},
"cheerpx-for-flash": {
id: "cheerpx-for-flash",
@@ -91,7 +91,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"An HTML5 Flash emulator that allows your Flash content to run seamlessly on browsers, after the end of life of the Flash player.",
github: "https://github.com/leaningtech/cheerpx-flash",
- repositoryName: "cheerpx-flash",
+ repositoryName: "cheerpx-flash"
},
"cheerpj-jnlp-runner": {
id: "cheerpj-jnlp-runner",
@@ -104,7 +104,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Run Java Web Start Applications without a Java Desktop installation.",
github: "https://github.com/leaningtech/cheerpj-jnlp-runner",
- repositoryName: "cheerpj-jnlp-runner",
+ repositoryName: "cheerpj-jnlp-runner"
},
"cheerpj-applet-runner": {
id: "cheerpj-applet-runner",
@@ -116,7 +116,7 @@ export const products: { [product in Product]: ProductData } = {
subtitle: "Run Java Applets in the modern browser",
description: "Run Java Applets in modern browsers without plugins",
github: "https://github.com/leaningtech/cheerpj-applet-runner",
- repositoryName: "cheerpj-applet-runner",
+ repositoryName: "cheerpj-applet-runner"
},
"cheerpx-games-runner": {
id: "cheerpx-games-runner",
@@ -128,8 +128,8 @@ export const products: { [product in Product]: ProductData } = {
subtitle: "Run Games in the modern browser",
description: "Run Games in the modern browser",
github: "https://github.com/leaningtech/cheerpx-games-runner",
- repositoryName: "cheerpx-games-runner",
- },
+ repositoryName: "cheerpx-games-runner"
+ }
};
export function productFromUrl(url: URL): ProductData | undefined {
diff --git a/packages/astro-theme/lib/terminal-os-tabs.js b/packages/astro-theme/lib/terminal-os-tabs.js
index 731a20ea..da80e196 100644
--- a/packages/astro-theme/lib/terminal-os-tabs.js
+++ b/packages/astro-theme/lib/terminal-os-tabs.js
@@ -6,9 +6,9 @@ const replacements = [
{
win: "C:\\cheerp\\bin\\$1.exe",
mac: "/Applications/cheerp/bin/$1",
- linux: "/opt/cheerp/bin/$1",
- },
- ],
+ linux: "/opt/cheerp/bin/$1"
+ }
+ ]
];
let os = localStorage.getItem("os") ?? getOs();
@@ -22,7 +22,7 @@ function getOs() {
document.addEventListener("DOMContentLoaded", () => {
const figures = document.querySelectorAll(
// ```shell blocks
- ".expressive-code figure.is-terminal",
+ ".expressive-code figure.is-terminal"
);
const updateFuncs = [];
diff --git a/packages/astro-theme/pagefind.ts b/packages/astro-theme/pagefind.ts
index 8e4041cb..ab372b4c 100644
--- a/packages/astro-theme/pagefind.ts
+++ b/packages/astro-theme/pagefind.ts
@@ -21,7 +21,7 @@ export default function pagefind(): AstroIntegration {
"astro:server:setup": ({ server }) => {
const serve = sirv(outDir, {
dev: true,
- etag: true,
+ etag: true
});
server.middlewares.use((req, res, next) => {
if (req.url?.startsWith("/pagefind/")) {
@@ -36,10 +36,10 @@ export default function pagefind(): AstroIntegration {
spawn("npx", ["-y", "pagefind", "--site", outDir], {
stdio: "inherit",
shell: true,
- cwd,
+ cwd
}).on("close", () => resolve());
});
- },
- },
+ }
+ }
};
}
diff --git a/packages/astro-theme/pages/blog/[...slug].astro b/packages/astro-theme/pages/blog/[...slug].astro
index 6bb133fe..abb07025 100644
--- a/packages/astro-theme/pages/blog/[...slug].astro
+++ b/packages/astro-theme/pages/blog/[...slug].astro
@@ -6,7 +6,7 @@ export async function getStaticPaths() {
const posts = await getCollection("blog");
return posts.map((post) => ({
params: { slug: post.slug },
- props: post,
+ props: post
}));
}
type Props = CollectionEntry<"blog">;
diff --git a/packages/astro-theme/pages/blog/index.astro b/packages/astro-theme/pages/blog/index.astro
index f2677248..c4d15c35 100644
--- a/packages/astro-theme/pages/blog/index.astro
+++ b/packages/astro-theme/pages/blog/index.astro
@@ -14,7 +14,7 @@ const [post1, post2, ...restPosts] = (
await getCollection(
"blog",
({ data }) =>
- data.draft !== true && (!product || data?.tags?.includes(product.name)),
+ data.draft !== true && (!product || data?.tags?.includes(product.name))
)
).sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf());
---
diff --git a/packages/astro-theme/pages/docs/[...slug].astro b/packages/astro-theme/pages/docs/[...slug].astro
index 561446a9..0707a1b0 100644
--- a/packages/astro-theme/pages/docs/[...slug].astro
+++ b/packages/astro-theme/pages/docs/[...slug].astro
@@ -15,9 +15,9 @@ export async function getStaticPaths() {
.map((entry) => {
return {
params: {
- slug: entry.slug,
+ slug: entry.slug
},
- props: entry,
+ props: entry
};
});
}
diff --git a/packages/astro-theme/pages/docs/ja/[...slug].astro b/packages/astro-theme/pages/docs/ja/[...slug].astro
index 07a4311a..1efc0cb4 100644
--- a/packages/astro-theme/pages/docs/ja/[...slug].astro
+++ b/packages/astro-theme/pages/docs/ja/[...slug].astro
@@ -10,9 +10,9 @@ export async function getStaticPaths() {
return entries.map((entry) => {
return {
params: {
- slug: entry.slug,
+ slug: entry.slug
},
- props: entry,
+ props: entry
};
});
}
diff --git a/packages/astro-theme/tailwind.ts b/packages/astro-theme/tailwind.ts
index fcd98380..03c20c22 100644
--- a/packages/astro-theme/tailwind.ts
+++ b/packages/astro-theme/tailwind.ts
@@ -2,7 +2,7 @@ import type { Config } from "tailwindcss";
import type {
CSSRuleObject,
PluginAPI,
- RecursiveKeyValuePair,
+ RecursiveKeyValuePair
} from "tailwindcss/types/config";
import plugin from "tailwindcss/plugin";
@@ -10,7 +10,7 @@ import plugin from "tailwindcss/plugin";
const exportColorsAsCssVariables = plugin(({ addBase, theme }) => {
function extractColorVars(
colorObj: RecursiveKeyValuePair,
- colorGroup = "",
+ colorGroup = ""
): CSSRuleObject {
return Object.keys(colorObj).reduce((vars, colorKey) => {
const value = colorObj[colorKey]!;
@@ -25,7 +25,7 @@ const exportColorsAsCssVariables = plugin(({ addBase, theme }) => {
}
addBase({
- ":root": extractColorVars(theme("colors")),
+ ":root": extractColorVars(theme("colors"))
});
});
@@ -36,14 +36,14 @@ const disabledCss = {
"code::before": false,
"code::after": false,
"blockquote p:first-of-type::before": false,
- "blockquote p:last-of-type::after": false,
+ "blockquote p:last-of-type::after": false
};
export default function makeConfig(): Config {
return {
content: [
"./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
- "../../packages/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
+ "../../packages/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"
],
theme: {
extend: {
@@ -64,9 +64,9 @@ export default function makeConfig(): Config {
"Yu Gothic", // Japanese for windows users
"Hiragino Sans", // Japanese for mac users
"Noto Sans CJK JP", // Japanese for linux users
- "sans-serif",
+ "sans-serif"
],
- mono: ["Monaspace Argon", "monospace"],
+ mono: ["Monaspace Argon", "monospace"]
},
colors: {
primary: {
@@ -76,28 +76,28 @@ export default function makeConfig(): Config {
300: "#f07d99",
200: "#f5a9bb",
100: "#fad4dd",
- 50: "#fde9ee",
+ 50: "#fde9ee"
},
cheerp: "#56f4ec",
cheerpx: "#3b516d",
- blurple: "#5865F2", // https://discord.com/branding
+ blurple: "#5865F2" // https://discord.com/branding
},
typography: (theme: PluginAPI["theme"]) => ({
stone: {
css: {
"--tw-prose-links": theme("colors.cheerp"),
- "--tw-prose-invert-links": theme("colors.primary[400]"),
- },
+ "--tw-prose-invert-links": theme("colors.primary[400]")
+ }
},
DEFAULT: { css: disabledCss },
sm: { css: disabledCss },
lg: { css: disabledCss },
xl: { css: disabledCss },
- "2xl": { css: disabledCss },
- }),
- },
+ "2xl": { css: disabledCss }
+ })
+ }
},
plugins: [require("@tailwindcss/typography"), exportColorsAsCssVariables],
- darkMode: "class",
+ darkMode: "class"
};
}
diff --git a/packages/cheerp-ts-three-demo/three-demo.js b/packages/cheerp-ts-three-demo/three-demo.js
index 645d370a..21e84956 100644
--- a/packages/cheerp-ts-three-demo/three-demo.js
+++ b/packages/cheerp-ts-three-demo/three-demo.js
@@ -41,7 +41,7 @@ function aJ(aK) {
a1: nullArray,
a2: nullArray,
a3: nullArray,
- a4: nullArray,
+ a4: nullArray
};
c = [null];
a.a0 = c;
@@ -134,8 +134,8 @@ function aC(e, d) {
a1: nullArray,
a2: nullArray,
a3: nullArray,
- a4: nullArray,
- },
+ a4: nullArray
+ }
];
c = d.a0;
a[0].a0 = c;
diff --git a/packages/cheerpj-applet-page/utilities/ImageSlider.svelte b/packages/cheerpj-applet-page/utilities/ImageSlider.svelte
index f3aa6717..3002f61b 100644
--- a/packages/cheerpj-applet-page/utilities/ImageSlider.svelte
+++ b/packages/cheerpj-applet-page/utilities/ImageSlider.svelte
@@ -5,12 +5,12 @@
let images = [
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_1.png",
- alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed.",
+ alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed."
},
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_2.png",
- alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing.",
- },
+ alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing."
+ }
];
function back() {
diff --git a/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte b/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte
index f3aa6717..3002f61b 100644
--- a/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte
+++ b/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte
@@ -5,12 +5,12 @@
let images = [
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_1.png",
- alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed.",
+ alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed."
},
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_2.png",
- alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing.",
- },
+ alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing."
+ }
];
function back() {
diff --git a/packages/global-navbar/src/Nav.svelte b/packages/global-navbar/src/Nav.svelte
index af03901a..749a6d42 100644
--- a/packages/global-navbar/src/Nav.svelte
+++ b/packages/global-navbar/src/Nav.svelte
@@ -17,31 +17,31 @@
Technology: [
{
href: "https://cheerp.io/",
- title: "Cheerp",
+ title: "Cheerp"
},
{
href: "https://cheerpj.com/",
- title: "CheerpJ",
+ title: "CheerpJ"
},
{
href: "https://cheerpx.io/",
- title: "CheerpX",
- },
+ title: "CheerpX"
+ }
],
Resources: [
{
href: "https://labs.leaningtech.com/",
- title: "Developer Hub",
+ title: "Developer Hub"
},
{
href: "https://labs.leaningtech.com/blog",
- title: "Blog",
+ title: "Blog"
},
{
href: "https://github.com/leaningtech",
- title: "GitHub",
- },
- ],
+ title: "GitHub"
+ }
+ ]
};
diff --git a/packages/global-navbar/svelte.config.js b/packages/global-navbar/svelte.config.js
index 0fb6d8e4..18d28c21 100644
--- a/packages/global-navbar/svelte.config.js
+++ b/packages/global-navbar/svelte.config.js
@@ -3,5 +3,5 @@ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
export default {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
- preprocess: vitePreprocess(),
+ preprocess: vitePreprocess()
};
diff --git a/packages/global-navbar/vite.config.ts b/packages/global-navbar/vite.config.ts
index df45d84b..ee2858d4 100644
--- a/packages/global-navbar/vite.config.ts
+++ b/packages/global-navbar/vite.config.ts
@@ -7,15 +7,15 @@ export default defineConfig({
svelte({
compilerOptions: {
dev: process.env.NODE_ENV !== "production",
- hydratable: true,
- },
- }),
+ hydratable: true
+ }
+ })
],
build: {
lib: {
formats: ["es"],
entry: resolve(__dirname, "src/index.js"),
- fileName: "global-navbar",
- },
- },
+ fileName: "global-navbar"
+ }
+ }
});
diff --git a/sites/cheerp/astro.config.mjs b/sites/cheerp/astro.config.mjs
index 22177620..589726dc 100644
--- a/sites/cheerp/astro.config.mjs
+++ b/sites/cheerp/astro.config.mjs
@@ -10,9 +10,9 @@ export default defineConfig({
alias: [
{
find: "@",
- replacement: resolve("./src/"),
- },
- ],
- },
- },
+ replacement: resolve("./src/")
+ }
+ ]
+ }
+ }
});
diff --git a/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js b/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js
index 5b4111b3..f0e06bf6 100644
--- a/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js
+++ b/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js
@@ -28,6 +28,6 @@ function i() {
}
var l = new Uint8Array([
72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 32, 87, 105, 100, 101,
- 32, 87, 101, 98, 33, 0,
+ 32, 87, 101, 98, 33, 0
]);
k();
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong1/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong1/pong.js
index a90811ba..1e316c4b 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong1/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong1/pong.js
@@ -74,9 +74,9 @@ fetchBuffer("pong.wasm")
(bytes) =>
WebAssembly.compile(bytes).then(
(m) => new WebAssembly.Instance(m, importObject),
- console.log,
+ console.log
),
- console.log,
+ console.log
)
.then((instance) => {
HEAP8 = new Uint8Array(instance.exports.memory.buffer);
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js
index 321a8332..ce9d02b3 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js
@@ -81,7 +81,7 @@ function e(c, d) {
}
var h;
var C = new Uint8Array([
- 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0,
+ 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0
]);
var j;
var B;
@@ -106,17 +106,17 @@ function __dummy() {
var importObject = {
imports: {
__ZN8Graphics11debugOutputEPKc: _asm_t,
- __ZN8Graphics16initializeCanvasEii: _asm_u,
- },
+ __ZN8Graphics16initializeCanvasEii: _asm_u
+ }
};
fetchBuffer("pong.wasm")
.then(
(bytes) =>
WebAssembly.compile(bytes).then(
(m) => new WebAssembly.Instance(m, importObject),
- console.log,
+ console.log
),
- console.log,
+ console.log
)
.then((instance) => {
HEAP8 = new Uint8Array(instance.exports.memory.buffer);
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js
index 350a2c78..215ea8c9 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js
@@ -131,17 +131,17 @@ function __dummy() {
var importObject = {
imports: {
__ZN8Graphics8drawRectEiiiii: _asm_o,
- __ZN8Graphics16initializeCanvasEii: _asm_B,
- },
+ __ZN8Graphics16initializeCanvasEii: _asm_B
+ }
};
fetchBuffer("pong.wasm")
.then(
(bytes) =>
WebAssembly.compile(bytes).then(
(m) => new WebAssembly.Instance(m, importObject),
- console.log,
+ console.log
),
- console.log,
+ console.log
)
.then((instance) => {
HEAP8 = new Uint8Array(instance.exports.memory.buffer);
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js
index 98dd4e9e..99a1df61 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js
@@ -155,17 +155,17 @@ function __dummy() {
var importObject = {
imports: {
__ZN8Graphics8drawRectEiiiii: _asm_p,
- __ZN8Graphics16initializeCanvasEii: _asm_E,
- },
+ __ZN8Graphics16initializeCanvasEii: _asm_E
+ }
};
fetchBuffer("pong.wasm")
.then(
(bytes) =>
WebAssembly.compile(bytes).then(
(m) => new WebAssembly.Instance(m, importObject),
- console.log,
+ console.log
),
- console.log,
+ console.log
)
.then((instance) => {
HEAP8 = new Uint8Array(instance.exports.memory.buffer);
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js
index 7ac1402b..8cd38e5d 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js
@@ -174,10 +174,10 @@ var ac = new Uint8Array([114, 103, 98, 40, 0]);
var ab = new Uint8Array([44, 0]);
var af = new Uint8Array([41, 0]);
var ae = new Uint8Array([
- 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0,
+ 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0
]);
var Z = new Uint8Array([
- 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0,
+ 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0
]);
var HEAP8 = null;
var HEAP16 = null;
@@ -214,17 +214,17 @@ var importObject = {
__ZN8Graphics8drawRectEiiiii: _asm_w,
__ZN8Graphics10drawCircleEiiii: _asm_j,
__ZN8Graphics11debugOutputEPKc: _asm_U,
- __ZN8Graphics16initializeCanvasEii: _asm_S,
- },
+ __ZN8Graphics16initializeCanvasEii: _asm_S
+ }
};
fetchBuffer("pong.wasm")
.then(
(bytes) =>
WebAssembly.compile(bytes).then(
(m) => new WebAssembly.Instance(m, importObject),
- console.log,
+ console.log
),
- console.log,
+ console.log
)
.then((instance) => {
HEAP8 = new Uint8Array(instance.exports.memory.buffer);
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js
index d02aaec7..436f3315 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js
@@ -79,7 +79,7 @@ var stdlib = {
Uint16Array: Uint16Array,
Int32Array: Int32Array,
Float32Array: Float32Array,
- Float64Array: Float64Array,
+ Float64Array: Float64Array
};
function X(d) {
var c = -0,
@@ -277,10 +277,10 @@ var p = 200;
var n = -2;
var o = 200;
var ac = new Uint8Array([
- 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0,
+ 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0
]);
var ab = new Uint8Array([
- 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0,
+ 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0
]);
var aa = new Uint8Array([89, 111, 117, 32, 108, 111, 115, 116, 33, 0]);
var $ = [0];
diff --git a/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md b/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md
index a9fa2208..1c25211e 100644
--- a/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md
+++ b/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md
@@ -10,7 +10,7 @@ Let's say, for the sake of example, that you have a JavaScript function that exp
jsFuncWithObjectParam({
requiredParam1: 42,
requiredParam2: "String",
- optionalParam1: null,
+ optionalParam1: null
});
```
diff --git a/sites/cheerp/src/content/docs/12-reference/01-args.md b/sites/cheerp/src/content/docs/12-reference/01-args.md
index dbaf052b..c7c7b998 100644
--- a/sites/cheerp/src/content/docs/12-reference/01-args.md
+++ b/sites/cheerp/src/content/docs/12-reference/01-args.md
@@ -25,7 +25,7 @@ For JavaScript modules, you can pass the arguments through the initialization fu
import init from "./example.js";
await init({
- argv: ["a", "b", "c"],
+ argv: ["a", "b", "c"]
});
```
diff --git a/sites/cheerp/src/content/docs/12-reference/02-env.md b/sites/cheerp/src/content/docs/12-reference/02-env.md
index cea029be..8b61be68 100644
--- a/sites/cheerp/src/content/docs/12-reference/02-env.md
+++ b/sites/cheerp/src/content/docs/12-reference/02-env.md
@@ -17,7 +17,7 @@ For JavaScript modules, you can pass environment variables through the initializ
import init from "./example.js";
await init({
- env: ["A=1", "B=2"],
+ env: ["A=1", "B=2"]
});
```
diff --git a/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md b/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md
index dbe2a85d..ef2cd593 100644
--- a/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md
+++ b/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md
@@ -42,7 +42,7 @@ JavaScript Strings are not used directly by Cheerp, but they are accessible to t
```js
var a = [
{ x: 0, y: 1 },
- { x: 2, y: 3 },
+ { x: 2, y: 3 }
];
var typedA = new Int32Array(10);
```
@@ -74,7 +74,7 @@ JavaScript references support equality comparison, but they have no ordering and
```js
var a = [
{ x: 0, y: [1] },
- { x: 2, y: [3] },
+ { x: 2, y: [3] }
];
var typedA = new Int32Array(10);
var objPtr = { d: a, o: 1 };
diff --git a/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md b/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md
index 417d0ac0..06a9fc43 100644
--- a/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md
+++ b/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md
@@ -80,7 +80,7 @@ instantiateFunction({ absPath: "/absolute/path/to/yourModule.wasm" }).then(
(module) => {
console.log("Module has been instantiated!");
module.someJSExportedFunc();
- },
+ }
);
```
@@ -102,7 +102,7 @@ fetch('/absolute/path/to/yourModule.wasm').then(buffer => {
```js
import instantiateFunction from "./yourModule.js";
instantiateFunction({
- absPath: new URL("/relative/path/to/yourModule.wasm", import.meta.url),
+ absPath: new URL("/relative/path/to/yourModule.wasm", import.meta.url)
}).then((module) => {
console.log("Module has been instantiated!");
module.someJSExportedFunc();
diff --git a/sites/cheerpj/astro.config.mjs b/sites/cheerpj/astro.config.mjs
index f6f5c92c..59913e67 100644
--- a/sites/cheerpj/astro.config.mjs
+++ b/sites/cheerpj/astro.config.mjs
@@ -8,25 +8,25 @@ export default defineConfig({
base: "/docs",
integrations: [
theme({
- baseIsDocs: true,
- }),
+ baseIsDocs: true
+ })
],
i18n: {
defaultLocale: "en",
locales: ["en", "ja", "zh"],
fallback: {
ja: "en",
- zh: "en",
- },
+ zh: "en"
+ }
},
vite: {
resolve: {
alias: [
{
find: "@",
- replacement: resolve("./src/"),
- },
- ],
- },
- },
+ replacement: resolve("./src/")
+ }
+ ]
+ }
+ }
});
diff --git a/sites/cheerpj/src/content/config.ts b/sites/cheerpj/src/content/config.ts
index 377c24c6..e01cbb30 100644
--- a/sites/cheerpj/src/content/config.ts
+++ b/sites/cheerpj/src/content/config.ts
@@ -9,9 +9,9 @@ const showcase = defineCollection({
description: z.string().optional(),
url: z.string(),
image: image().refine((img) => img.width / img.height == 1.5, {
- message: "Image must have 3:2 aspect ratio",
- }),
- }),
+ message: "Image must have 3:2 aspect ratio"
+ })
+ })
});
export const collections = { showcase, ...defineCommonCollections() };
diff --git a/sites/cheerpj/src/content/docs/10-getting-started/00-Java-app.md b/sites/cheerpj/src/content/docs/10-getting-started/00-Java-app.md
index 6a870cf6..cae63c26 100644
--- a/sites/cheerpj/src/content/docs/10-getting-started/00-Java-app.md
+++ b/sites/cheerpj/src/content/docs/10-getting-started/00-Java-app.md
@@ -52,7 +52,7 @@ Alternatively, if your application is not designed to be executed with the comma
```js
cheerpjRunMain(
"com.application.MyClassName",
- "/app/my_application_archive.jar:/app/my_dependency_archive.jar",
+ "/app/my_application_archive.jar:/app/my_dependency_archive.jar"
);
```
diff --git a/sites/cheerpj/src/content/docs/10-getting-started/03-JNLP.md b/sites/cheerpj/src/content/docs/10-getting-started/03-JNLP.md
index e763435b..21899c24 100644
--- a/sites/cheerpj/src/content/docs/10-getting-started/03-JNLP.md
+++ b/sites/cheerpj/src/content/docs/10-getting-started/03-JNLP.md
@@ -126,7 +126,7 @@ Alternatively, if the class name is in the `.jnlp` file but not in the manifest,
```js
cheerpjRunMain(
"com.application.MyClassName",
- "/app/my_application_archive.jar:/app/lib/my_dependency_archive.jar",
+ "/app/my_application_archive.jar:/app/lib/my_dependency_archive.jar"
);
```
diff --git a/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md b/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md
index 9e7ff689..3e4462c4 100644
--- a/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md
+++ b/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md
@@ -37,8 +37,8 @@ await cheerpjInit({
natives: {
async Java_Example_alert(lib, str) {
window.alert(str);
- },
- },
+ }
+ }
});
await cheerpjRunMain("Example", "/app/");
```
@@ -73,7 +73,7 @@ public class Example {
export default {
async Java_Example_alert(lib, self, message) {
window.alert(message);
- },
+ }
};
```
diff --git a/sites/cheerpj/src/content/docs/11-guides/Networking.md b/sites/cheerpj/src/content/docs/11-guides/Networking.md
index c7f68e94..92152672 100644
--- a/sites/cheerpj/src/content/docs/11-guides/Networking.md
+++ b/sites/cheerpj/src/content/docs/11-guides/Networking.md
@@ -45,7 +45,7 @@ Example for pre-authenticated users/devices:
```js
cheerpjInit({
tailscaleControlUrl: "https://my.url.com/",
- tailscaleAuthKey: "AuthKeyStringGoesHere",
+ tailscaleAuthKey: "AuthKeyStringGoesHere"
});
```
@@ -72,7 +72,7 @@ cheerpjInit({
loginElem.href = url;
loginElem.target = "_blank";
// continue with login
- },
+ }
});
```
diff --git a/sites/cheerpj/src/content/docs/11-guides/library-mode.md b/sites/cheerpj/src/content/docs/11-guides/library-mode.md
index a1c2f6ef..b382ab56 100644
--- a/sites/cheerpj/src/content/docs/11-guides/library-mode.md
+++ b/sites/cheerpj/src/content/docs/11-guides/library-mode.md
@@ -71,7 +71,7 @@ async function iTextExample() {
const document = await new Document();
const writer = await PdfWriter.getInstance(
document,
- await new FileOutputStream("/files/HelloIText.pdf"),
+ await new FileOutputStream("/files/HelloIText.pdf")
);
await document.open();
diff --git a/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md b/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md
index f012b1e0..625ea3ba 100644
--- a/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md
+++ b/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md
@@ -164,7 +164,7 @@ Example of usage:
cheerpjInit({
beepCallback: function () {
alert("Beep!");
- },
+ }
});
```
@@ -203,7 +203,7 @@ cheerpjInit({
// Let Java handle Ctrl+F
if (e.ctrlKey && e.keyCode == 70) return true;
return false;
- },
+ }
});
```
@@ -222,7 +222,7 @@ cheerpjInit({
appletParamFilter: function (name, value) {
if (name === "httpServer") return value.replace("http", "https");
return value;
- },
+ }
});
```
@@ -241,8 +241,8 @@ cheerpjInit({
natives: {
async Java_MyClass_myMethod(lib, str) {
window.alert(str);
- },
- },
+ }
+ }
});
```
@@ -337,7 +337,7 @@ For more information visit the [Tailscale documentation](https://tailscale.com/k
cheerpjInit({
tailscaleLoginUrlCb(url) {
// your function code here to continue with login
- },
+ }
});
```
@@ -355,7 +355,7 @@ Example of usage:
cheerpjInit({
tailscaleIpCb: function (ip) {
console.log("IP address " + ip);
- },
+ }
});
```
diff --git a/sites/cheerpj/src/content/docs/12-reference/01-cheerpjRunMain.md b/sites/cheerpj/src/content/docs/12-reference/01-cheerpjRunMain.md
index 5cba3fff..31a646ab 100644
--- a/sites/cheerpj/src/content/docs/12-reference/01-cheerpjRunMain.md
+++ b/sites/cheerpj/src/content/docs/12-reference/01-cheerpjRunMain.md
@@ -28,7 +28,7 @@ const exitCode = await cheerpjRunMain(
"fully.qualified.ClassName",
"/app/my_application_archive.jar:/app/my_dependency_archive.jar",
arg1,
- arg2,
+ arg2
);
console.log(`Program exited with code ${exitCode}`);
```
diff --git a/sites/cheerpj/src/content/docs/12-reference/10-cheerpjCreateDisplay.md b/sites/cheerpj/src/content/docs/12-reference/10-cheerpjCreateDisplay.md
index d19a57ba..aaf01849 100644
--- a/sites/cheerpj/src/content/docs/12-reference/10-cheerpjCreateDisplay.md
+++ b/sites/cheerpj/src/content/docs/12-reference/10-cheerpjCreateDisplay.md
@@ -9,7 +9,7 @@ description: Display GUI elements
function cheerpjCreateDisplay(
width: number,
height: number,
- parent?: HTMLElement,
+ parent?: HTMLElement
): HTMLElement;
```
diff --git a/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx b/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx
index 21c34e68..b15162f6 100644
--- a/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx
+++ b/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx
@@ -128,7 +128,7 @@ Connecting to a Tailscale network requires an authorization key.
```js
await cheerpjInit({
- tailscaleAuthKey: "PasteYourKeyHere",
+ tailscaleAuthKey: "PasteYourKeyHere"
});
```
diff --git a/sites/cheerpj/src/content/docs/ja/10-getting-started/00-Java-app.md b/sites/cheerpj/src/content/docs/ja/10-getting-started/00-Java-app.md
index 65f27349..24b0429b 100644
--- a/sites/cheerpj/src/content/docs/ja/10-getting-started/00-Java-app.md
+++ b/sites/cheerpj/src/content/docs/ja/10-getting-started/00-Java-app.md
@@ -53,7 +53,7 @@ mkdir directory_name
```js
cheerpjRunMain(
"com.application.MyClassName",
- "/app/my_application_archive.jar:/app/my_dependency_archive.jar",
+ "/app/my_application_archive.jar:/app/my_dependency_archive.jar"
);
```
diff --git a/sites/cheerpj/src/content/docs/ja/10-getting-started/03-JNLP.md b/sites/cheerpj/src/content/docs/ja/10-getting-started/03-JNLP.md
index a2b57e5b..ee07a280 100644
--- a/sites/cheerpj/src/content/docs/ja/10-getting-started/03-JNLP.md
+++ b/sites/cheerpj/src/content/docs/ja/10-getting-started/03-JNLP.md
@@ -127,7 +127,7 @@ CheerpJランタイムが統合され、Javaアプリケーションが表示さ
```js
cheerpjRunMain(
"com.application.MyClassName",
- "/app/my_application_archive.jar:/app/lib/my_dependency_archive.jar",
+ "/app/my_application_archive.jar:/app/lib/my_dependency_archive.jar"
);
```
diff --git a/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md b/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md
index c2cf306b..4bc93b9a 100644
--- a/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md
+++ b/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md
@@ -37,8 +37,8 @@ await cheerpjInit({
natives: {
async Java_Example_alert(lib, str) {
window.alert(str);
- },
- },
+ }
+ }
});
await cheerpjRunMain("Example", "/app/");
```
@@ -73,7 +73,7 @@ public class Example {
export default {
async Java_Example_alert(lib, self, message) {
window.alert(message);
- },
+ }
};
```
diff --git a/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md b/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md
index 86301386..3dd30d77 100644
--- a/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md
+++ b/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md
@@ -45,7 +45,7 @@ JavaアプリケーションのクライアントをTailscaleネットワーク
```js
cheerpjInit({
tailscaleControlUrl: "https://my.url.com/",
- tailscaleAuthKey: "AuthKeyStringGoesHere",
+ tailscaleAuthKey: "AuthKeyStringGoesHere"
});
```
@@ -72,7 +72,7 @@ cheerpjInit({
loginElem.href = url;
loginElem.target = "_blank";
// continue with login
- },
+ }
});
```
diff --git a/sites/cheerpj/src/content/docs/ja/11-guides/library-mode.md b/sites/cheerpj/src/content/docs/ja/11-guides/library-mode.md
index 069a9982..8fb47a61 100644
--- a/sites/cheerpj/src/content/docs/ja/11-guides/library-mode.md
+++ b/sites/cheerpj/src/content/docs/ja/11-guides/library-mode.md
@@ -71,7 +71,7 @@ async function iTextExample() {
const document = await new Document();
const writer = await PdfWriter.getInstance(
document,
- await new FileOutputStream("/files/HelloIText.pdf"),
+ await new FileOutputStream("/files/HelloIText.pdf")
);
await document.open();
diff --git a/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md b/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md
index 5f984d9d..d76547a2 100644
--- a/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md
+++ b/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md
@@ -164,7 +164,7 @@ beepCallback?: () => void;
cheerpjInit({
beepCallback: function () {
alert("Beep!");
- },
+ }
});
```
@@ -202,7 +202,7 @@ cheerpjInit({
// Let Java handle Ctrl+F
if (e.ctrlKey && e.keyCode == 70) return true;
return false;
- },
+ }
});
```
@@ -221,7 +221,7 @@ cheerpjInit({
appletParamFilter: function (name, value) {
if (name === "httpServer") return value.replace("http", "https");
return value;
- },
+ }
});
```
@@ -240,8 +240,8 @@ cheerpjInit({
natives: {
async Java_MyClass_myMethod(lib, str) {
window.alert(str);
- },
- },
+ }
+ }
});
```
@@ -336,7 +336,7 @@ tailscaleLoginUrlCb?: (url: string) => void;
cheerpjInit({
tailscaleLoginUrlCb(url) {
// your function code here to continue with login
- },
+ }
});
```
@@ -354,7 +354,7 @@ tailscaleIpCb?: (ip: string) => void;
cheerpjInit({
tailscaleIpCb: function (ip) {
console.log("IP address " + ip);
- },
+ }
});
```
diff --git a/sites/cheerpj/src/content/docs/ja/12-reference/01-cheerpjRunMain.md b/sites/cheerpj/src/content/docs/ja/12-reference/01-cheerpjRunMain.md
index bcb206c8..787e410d 100644
--- a/sites/cheerpj/src/content/docs/ja/12-reference/01-cheerpjRunMain.md
+++ b/sites/cheerpj/src/content/docs/ja/12-reference/01-cheerpjRunMain.md
@@ -28,7 +28,7 @@ const exitCode = await cheerpjRunMain(
"fully.qualified.ClassName",
"/app/my_application_archive.jar:/app/my_dependency_archive.jar",
arg1,
- arg2,
+ arg2
);
console.log(`Program exited with code ${exitCode}`);
```
diff --git a/sites/cheerpj/src/content/docs/ja/12-reference/10-cheerpjCreateDisplay.md b/sites/cheerpj/src/content/docs/ja/12-reference/10-cheerpjCreateDisplay.md
index 01823c6f..d6886789 100644
--- a/sites/cheerpj/src/content/docs/ja/12-reference/10-cheerpjCreateDisplay.md
+++ b/sites/cheerpj/src/content/docs/ja/12-reference/10-cheerpjCreateDisplay.md
@@ -9,7 +9,7 @@ description: GUI要素の表示
function cheerpjCreateDisplay(
width: number,
height: number,
- parent?: HTMLElement,
+ parent?: HTMLElement
): HTMLElement;
```
diff --git a/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx b/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx
index 54075147..98d7bec6 100644
--- a/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx
+++ b/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx
@@ -128,7 +128,7 @@ Tailscaleネットワークに接続するには、認証キーが必要です
```js
await cheerpjInit({
- tailscaleAuthKey: "PasteYourKeyHere",
+ tailscaleAuthKey: "PasteYourKeyHere"
});
```
diff --git a/sites/cheerpx/astro.config.mjs b/sites/cheerpx/astro.config.mjs
index cd1311ea..b78d7b02 100644
--- a/sites/cheerpx/astro.config.mjs
+++ b/sites/cheerpx/astro.config.mjs
@@ -10,9 +10,9 @@ export default defineConfig({
alias: [
{
find: "@",
- replacement: resolve("./src/"),
- },
- ],
- },
- },
+ replacement: resolve("./src/")
+ }
+ ]
+ }
+ }
});
diff --git a/sites/cheerpx/src/content/docs/10-getting-started/index.md b/sites/cheerpx/src/content/docs/10-getting-started/index.md
index 56c7c728..9be23a46 100644
--- a/sites/cheerpx/src/content/docs/10-getting-started/index.md
+++ b/sites/cheerpx/src/content/docs/10-getting-started/index.md
@@ -47,14 +47,14 @@ The example below demonstrates how to set up the file system and devices using [
@@ -116,11 +116,11 @@ await cx.run("/bin/bash", ["--login"], {
"SHELL=/bin/bash",
"EDITOR=vim",
"LANG=en_US.UTF-8",
- "LC_ALL=C",
+ "LC_ALL=C"
],
cwd: "/home/user",
uid: 1000,
- gid: 1000,
+ gid: 1000
});
```
diff --git a/sites/cheerpx/src/content/docs/11-guides/File-System-support.md b/sites/cheerpx/src/content/docs/11-guides/File-System-support.md
index 0440ec09..0c9144ec 100644
--- a/sites/cheerpx/src/content/docs/11-guides/File-System-support.md
+++ b/sites/cheerpx/src/content/docs/11-guides/File-System-support.md
@@ -163,7 +163,7 @@ Create an ext2 filesystem by combining a `HttpBytesDevice` to acess disk blocks,
```javascript
// Create an HttpBytesDevice for streaming disk blocks via HTTP
const httpDevice = await CheerpX.HttpBytesDevice.create(
- "https://yourserver.com/image.ext2",
+ "https://yourserver.com/image.ext2"
);
// Create an IDBDevice for persistent local storage
@@ -172,7 +172,7 @@ const idbDevice = await CheerpX.IDBDevice.create("block1");
const overlayDevice = await CheerpX.OverlayDevice.create(httpDevice, idbDevice);
const cx = await CheerpX.Linux.create({
- mounts: [{ type: "ext2", path: "/", dev: overlayDevice }],
+ mounts: [{ type: "ext2", path: "/", dev: overlayDevice }]
});
```
diff --git a/sites/cheerpx/src/content/docs/11-guides/Networking.md b/sites/cheerpx/src/content/docs/11-guides/Networking.md
index 88b3201a..e33a08b6 100644
--- a/sites/cheerpx/src/content/docs/11-guides/Networking.md
+++ b/sites/cheerpx/src/content/docs/11-guides/Networking.md
@@ -46,8 +46,8 @@ Example for pre-authenticated users/devices:
const cx = await CheerpX.Linux.create({
networkInterface: {
authKey: "AuthKeyStringGoesHere",
- controlUrl: "https://my.url.com/",
- },
+ controlUrl: "https://my.url.com/"
+ }
});
```
@@ -75,8 +75,8 @@ const cx = await CheerpX.Linux.create({
loginElem.href = url;
loginElem.target = "_blank";
// continue with login
- },
- },
+ }
+ }
});
```
diff --git a/sites/cheerpx/src/content/docs/11-guides/input-output.md b/sites/cheerpx/src/content/docs/11-guides/input-output.md
index deef00cb..24037183 100644
--- a/sites/cheerpx/src/content/docs/11-guides/input-output.md
+++ b/sites/cheerpx/src/content/docs/11-guides/input-output.md
@@ -53,8 +53,8 @@ const cx = await CheerpX.Linux.create({
// Mount the IDBDevice
mounts: [
{ type: "ext2", path: "/", dev: overlayDevice },
- { type: "dir", path: "/files", dev: filesDevice },
- ],
+ { type: "dir", path: "/files", dev: filesDevice }
+ ]
});
```
diff --git a/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md b/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md
index a3eedd95..5dfad0e4 100644
--- a/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md
+++ b/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md
@@ -62,8 +62,8 @@ Example:
const cx = await CheerpX.Linux.create({
mounts: [
{ type: "ext2", path: "/", dev: overlayDevice },
- { type: "dir", path: "/app", dev: webDevice },
- ],
+ { type: "dir", path: "/app", dev: webDevice }
+ ]
});
```
diff --git a/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md b/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md
index 3b200824..2eaa2ce3 100644
--- a/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md
+++ b/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md
@@ -14,7 +14,7 @@ namespace CheerpX {
cwd?: string; // Current working directory
uid?: number; // User ID
gid?: number; // Group ID
- },
+ }
): Promise<{ status: number }>;
}
}
@@ -41,7 +41,7 @@ Let us try running a bash script:
```js
const result = await cx.run("/bin/bash", [
"-c",
- "for i in {1..5}; do echo $i; done",
+ "for i in {1..5}; do echo $i; done"
]);
console.log("Bash script exit status:", result.status);
```
diff --git a/sites/cheerpx/src/content/docs/12-reference/11-CheerpX-Linux-setCustomConsole.md b/sites/cheerpx/src/content/docs/12-reference/11-CheerpX-Linux-setCustomConsole.md
index f4b99f06..839adac6 100644
--- a/sites/cheerpx/src/content/docs/12-reference/11-CheerpX-Linux-setCustomConsole.md
+++ b/sites/cheerpx/src/content/docs/12-reference/11-CheerpX-Linux-setCustomConsole.md
@@ -9,7 +9,7 @@ namespace CheerpX {
setCustomConsole(
writeFunc: (buf: Buffer) => void,
cols: number,
- rows: number,
+ rows: number
): (keyCode: number) => void;
}
}
@@ -38,7 +38,7 @@ const send = cx.setCustomConsole(
console.log(string);
},
40,
- 60,
+ 60
);
// Send a string
@@ -59,7 +59,7 @@ const send = cx.setCustomConsole(
term.write(new Uint8Array(buf));
},
term.cols,
- term.rows,
+ term.rows
);
term.onData((str) => {
for (let i = 0; i < str.length; i++) {
diff --git a/sites/cheerpx/src/content/docs/13-tutorials/full_os.md b/sites/cheerpx/src/content/docs/13-tutorials/full_os.md
index 8aa5b6c3..72e5a1c5 100644
--- a/sites/cheerpx/src/content/docs/13-tutorials/full_os.md
+++ b/sites/cheerpx/src/content/docs/13-tutorials/full_os.md
@@ -118,7 +118,7 @@ Create a `HttpBytesDevice` from the just created Ext2 image. `OverlayDevice` mak
var blockDevice = await CheerpX.HttpBytesDevice.create("/cheerpXImage.ext2");
var overlayDevice = await CheerpX.OverlayDevice.create(
blockDevice,
- await CheerpX.IDBDevice.create("block1"),
+ await CheerpX.IDBDevice.create("block1")
);
```
@@ -131,7 +131,7 @@ In the same script tag, pass the `overlayDevice` as a new mount point to the `Ch
```js
const cx = await CheerpX.Linux.create({
- mounts: [{ type: "ext2", path: "/", dev: overlayDevice }],
+ mounts: [{ type: "ext2", path: "/", dev: overlayDevice }]
});
```
@@ -165,11 +165,11 @@ await cx.run("/bin/bash", ["--login"], {
"SHELL=/bin/bash",
"EDITOR=vim",
"LANG=en_US.UTF-8",
- "LC_ALL=C",
+ "LC_ALL=C"
],
cwd: "/home/user",
uid: 1000,
- gid: 1000,
+ gid: 1000
});
```
diff --git a/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md b/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md
index b2688e51..4768228f 100644
--- a/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md
+++ b/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md
@@ -57,16 +57,16 @@ const viteServerConfig = () => ({
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
next();
});
- },
+ }
});
export default defineConfig({
optimizeDeps: {
esbuildOptions: {
- target: "es2022",
- },
+ target: "es2022"
+ }
},
- plugins: [sveltekit(), viteServerConfig()],
+ plugins: [sveltekit(), viteServerConfig()]
});
```
diff --git a/sites/labs/astro.config.mjs b/sites/labs/astro.config.mjs
index e2cbd463..7f6913df 100644
--- a/sites/labs/astro.config.mjs
+++ b/sites/labs/astro.config.mjs
@@ -11,9 +11,9 @@ export default defineConfig({
alias: [
{
find: "@",
- replacement: resolve("./src/"),
- },
- ],
- },
- },
+ replacement: resolve("./src/")
+ }
+ ]
+ }
+ }
});
diff --git a/sites/labs/postcss.config.cjs b/sites/labs/postcss.config.cjs
index bab04a41..8db3e889 100644
--- a/sites/labs/postcss.config.cjs
+++ b/sites/labs/postcss.config.cjs
@@ -2,6 +2,6 @@ module.exports = {
plugins: {
"tailwindcss/nesting": {},
tailwindcss: {},
- autoprefixer: {},
- },
+ autoprefixer: {}
+ }
};
diff --git a/sites/labs/src/components/landing-page/AnimatedText.svelte b/sites/labs/src/components/landing-page/AnimatedText.svelte
index 9c7cd542..8797f65d 100644
--- a/sites/labs/src/components/landing-page/AnimatedText.svelte
+++ b/sites/labs/src/components/landing-page/AnimatedText.svelte
@@ -3,7 +3,7 @@
// TODO consider making these links to relevant docs/guides
"C and C++",
"Java",
- "native code",
+ "native code"
];
let index = 0;
@@ -14,7 +14,7 @@
enum Direction {
Typing,
Deleting,
- Waiting,
+ Waiting
}
let direction = Direction.Typing;
diff --git a/sites/labs/src/components/landing-page/ClientCarousel.svelte b/sites/labs/src/components/landing-page/ClientCarousel.svelte
index 92b3f2e5..aec6fc56 100644
--- a/sites/labs/src/components/landing-page/ClientCarousel.svelte
+++ b/sites/labs/src/components/landing-page/ClientCarousel.svelte
@@ -14,7 +14,7 @@
{ src: Siemens, alt: "Siemens" },
{ src: Euronext, alt: "Euronext" },
{ src: Uscustoms, alt: "Uscustoms" },
- { src: Dalkia, alt: "Dalkia" },
+ { src: Dalkia, alt: "Dalkia" }
];
// To do the scroll animation, we need to repeat the images
diff --git a/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx b/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx
index 5f40e081..5e8b2e75 100644
--- a/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx
+++ b/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx
@@ -14,7 +14,7 @@ import {
lockIcon,
browserIcon,
layersIcon,
- rocketIcon,
+ rocketIcon
} from "@leaningtech/cheerpj-applet-page";
diff --git a/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx b/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx
index 113e6546..801e81b5 100644
--- a/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx
+++ b/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx
@@ -14,7 +14,7 @@ import {
lockIcon,
browserIcon,
layersIcon,
- rocketIcon,
+ rocketIcon
} from "@leaningtech/cheerpj-jnlp-page";
diff --git a/sites/labs/src/content/docs/cheerpj2/03-getting-started/00-Java-app.md b/sites/labs/src/content/docs/cheerpj2/03-getting-started/00-Java-app.md
index 5b7df5aa..fee998db 100644
--- a/sites/labs/src/content/docs/cheerpj2/03-getting-started/00-Java-app.md
+++ b/sites/labs/src/content/docs/cheerpj2/03-getting-started/00-Java-app.md
@@ -50,7 +50,7 @@ Alternatively, if your application is not designed to be executed with the comma
```js
cheerpjRunMain(
"com.application.MyClassName",
- "/app/my_application_archive.jar:/app/my_dependency_archive.jar",
+ "/app/my_application_archive.jar:/app/my_dependency_archive.jar"
);
```
diff --git a/sites/labs/src/content/docs/cheerpj2/03-getting-started/03-JNLP.md b/sites/labs/src/content/docs/cheerpj2/03-getting-started/03-JNLP.md
index c09af0ce..41464423 100644
--- a/sites/labs/src/content/docs/cheerpj2/03-getting-started/03-JNLP.md
+++ b/sites/labs/src/content/docs/cheerpj2/03-getting-started/03-JNLP.md
@@ -122,7 +122,7 @@ Alternatively, if the class name is in the `.jnlp` file but not in the manifest,
```js
cheerpjRunMain(
"com.application.MyClassName",
- "/app/my_application_archive.jar:/app/lib/my_dependency_archive.jar",
+ "/app/my_application_archive.jar:/app/lib/my_dependency_archive.jar"
);
```
diff --git a/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md b/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md
index 3ffc0b76..071da969 100644
--- a/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md
+++ b/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md
@@ -157,7 +157,7 @@ cheerpjInit({
// Let Java handle Ctrl+F
if (e.ctrlKey && e.keyCode == 70) return true;
return false;
- },
+ }
});
```
@@ -198,7 +198,7 @@ cheerpjInit({
appletParamFilter: function (name, value) {
if (name === "httpServer") return value.replace("http", "https");
return value;
- },
+ }
});
```
@@ -241,7 +241,7 @@ cheerpjRunMain(
"fully.qualified.class.name",
"/app/my_application_archive.jar:/app/my_dependency_archive.jar",
arg1,
- arg2,
+ arg2
);
```
@@ -269,7 +269,7 @@ cheerpjRunJarWithClasspath(
"/app/my_application_archive.jar",
"/app/my_dependency_archive.jar",
arg1,
- arg2,
+ arg2
);
```
@@ -296,7 +296,7 @@ var returnVal = cjCall(
"method",
argument1,
argument2,
- argument3,
+ argument3
);
```
@@ -334,12 +334,12 @@ Examples:
var promise1 = cjResolveCall("com.something.ClassName", "methodName", [
"java.lang.String",
"int",
- "double",
+ "double"
]);
var promise2 = cjResolveNew("com.something.ClassName", [
"java.lang.String",
"int",
- "double",
+ "double"
]);
```
@@ -349,7 +349,7 @@ var promise2 = cjResolveNew("com.something.ClassName", [
var promise = cjResolveCall(
"com.something.ClassName",
"uniqueMethodName",
- null,
+ null
);
```
diff --git a/sites/labs/src/env.d.ts b/sites/labs/src/env.d.ts
index 78ae731f..611ff958 100644
--- a/sites/labs/src/env.d.ts
+++ b/sites/labs/src/env.d.ts
@@ -25,11 +25,11 @@ interface Pagefind {
destroy: () => Promise;
search: (
query: string | null,
- options?: PagefindSearchOptions,
+ options?: PagefindSearchOptions
) => Promise;
debouncedSearch: (
query: string | null,
- options?: PagefindSearchOptions,
+ options?: PagefindSearchOptions
) => Promise;
}
diff --git a/sites/labs/src/pages/index.astro b/sites/labs/src/pages/index.astro
index fbee7f65..8f32a40f 100644
--- a/sites/labs/src/pages/index.astro
+++ b/sites/labs/src/pages/index.astro
@@ -16,22 +16,22 @@ const others = [
name: "WebVM",
logotype: webvmLogotype,
description:
- "Linux virtual machine running fully client-side. Powered by CheerpX.",
+ "Linux virtual machine running fully client-side. Powered by CheerpX."
},
{
href: "https://javafiddle.leaningtech.com/",
name: "JavaFiddle",
logotype: javafiddleLogotype,
description:
- "Build, run, and share snippets of Java code in your browser. Powered by CheerpJ.",
+ "Build, run, and share snippets of Java code in your browser. Powered by CheerpJ."
},
{
href: "https://pythonfiddle.leaningtech.com/",
name: "PythonFiddle",
logotype: pythonfiddleLogotype,
description:
- "Build, run, and share snippets of Python code in your browser. Powered by CheerpX.",
- },
+ "Build, run, and share snippets of Python code in your browser. Powered by CheerpX."
+ }
];
---
@@ -49,7 +49,7 @@ const others = [
Object.values(products)
.filter(
(product) =>
- product.id !== "cheerpj2" && product.type == "technology",
+ product.id !== "cheerpj2" && product.type == "technology"
)
.map((product) => (
({
...post.data,
- link: `/blog/${post.slug}/`,
- })),
+ link: `/blog/${post.slug}/`
+ }))
});
}
diff --git a/sites/labs/svelte.config.js b/sites/labs/svelte.config.js
index 5dc305f5..6bd9bf9d 100644
--- a/sites/labs/svelte.config.js
+++ b/sites/labs/svelte.config.js
@@ -1,5 +1,5 @@
import { vitePreprocess } from "@astrojs/svelte";
export default {
- preprocess: vitePreprocess(),
+ preprocess: vitePreprocess()
};
From 7267072b0e544c89d6f282a530f8c8d978d07bfb Mon Sep 17 00:00:00 2001
From: Haseeb Qureshie
Date: Sat, 2 Nov 2024 12:59:04 +0100
Subject: [PATCH 3/6] Prettier config to es5
---
content/blog/cheerpj-3.0rc1.mdx | 4 +-
package.json | 2 +-
.../astro-theme/components/BlogPostCard.astro | 2 +-
.../astro-theme/components/Breadcrumbs.astro | 2 +-
.../components/DocsPagination.astro | 2 +-
.../components/DocsSidebarNavEntry.astro | 10 ++--
packages/astro-theme/components/Footer.astro | 40 +++++++-------
.../components/FormattedDate.astro | 2 +-
.../astro-theme/components/LinkButton.astro | 4 +-
.../components/TableOfContents.astro | 2 +-
.../components/TableOfContentsHeading.astro | 4 +-
.../components/WasThisHelpful.astro | 4 +-
.../components/nav/global/EventBanner.svelte | 2 +-
.../components/nav/product/Link.astro | 2 +-
.../components/search/Pagefind.svelte | 4 +-
packages/astro-theme/content.ts | 14 ++---
packages/astro-theme/index.ts | 54 +++++++++----------
packages/astro-theme/layouts/BlogPost.astro | 4 +-
.../astro-theme/layouts/DocsArticle.astro | 2 +-
.../astro-theme/layouts/ProductHome.astro | 2 +-
packages/astro-theme/lib/nav.ts | 6 +--
packages/astro-theme/lib/products.ts | 18 +++----
packages/astro-theme/lib/terminal-os-tabs.js | 6 +--
packages/astro-theme/pagefind.ts | 8 +--
.../astro-theme/pages/blog/[...slug].astro | 2 +-
.../astro-theme/pages/docs/[...slug].astro | 4 +-
.../astro-theme/pages/docs/ja/[...slug].astro | 4 +-
packages/astro-theme/tailwind.ts | 28 +++++-----
packages/cheerp-ts-three-demo/three-demo.js | 6 +--
.../utilities/ImageSlider.svelte | 6 +--
.../utilities/ImageSlider.svelte | 6 +--
packages/global-navbar/src/Nav.svelte | 18 +++----
packages/global-navbar/svelte.config.js | 2 +-
packages/global-navbar/vite.config.ts | 12 ++---
sites/cheerp/astro.config.mjs | 10 ++--
.../cheerp/tutorials/hello_world/hello.js | 2 +-
.../cheerp/tutorials/tutorial_1/pong2/pong.js | 6 +--
.../cheerp/tutorials/tutorial_1/pong3/pong.js | 4 +-
.../cheerp/tutorials/tutorial_1/pong4/pong.js | 4 +-
.../cheerp/tutorials/tutorial_1/pong5/pong.js | 8 +--
.../tutorials/tutorial_1/pong5/pong_pure.js | 6 +--
...-web-frameworks-(Vue,-Reactor,-Angular).md | 2 +-
.../src/content/docs/12-reference/01-args.md | 2 +-
.../src/content/docs/12-reference/02-env.md | 2 +-
.../01-genericjs/90-memory-model.md | 4 +-
.../10-command-line-options/40-modules.md | 2 +-
sites/cheerpj/astro.config.mjs | 18 +++----
sites/cheerpj/src/content/config.ts | 6 +--
...nting-Java-native-methods-in-JavaScript.md | 6 +--
.../src/content/docs/11-guides/Networking.md | 4 +-
.../docs/12-reference/00-cheerpjInit.md | 14 ++---
.../docs/13-tutorials/04-java-browser.mdx | 2 +-
...nting-Java-native-methods-in-JavaScript.md | 6 +--
.../content/docs/ja/11-guides/Networking.md | 4 +-
.../docs/ja/12-reference/00-cheerpjInit.md | 14 ++---
.../docs/ja/13-tutorials/04-java-browser.mdx | 2 +-
sites/cheerpx/astro.config.mjs | 10 ++--
.../content/docs/10-getting-started/index.md | 8 +--
.../docs/11-guides/File-System-support.md | 2 +-
.../src/content/docs/11-guides/Networking.md | 8 +--
.../content/docs/11-guides/input-output.md | 4 +-
.../12-reference/00-CheerpX-Linux-create.md | 4 +-
.../docs/12-reference/01-CheerpX-Linux-run.md | 2 +-
.../src/content/docs/13-tutorials/full_os.md | 6 +--
.../content/docs/13-tutorials/setup-svelte.md | 8 +--
sites/labs/astro.config.mjs | 10 ++--
sites/labs/postcss.config.cjs | 4 +-
.../landing-page/AnimatedText.svelte | 4 +-
.../landing-page/ClientCarousel.svelte | 2 +-
.../docs/cheerpj-applet-runner/index.mdx | 2 +-
.../docs/cheerpj-jnlp-runner/index.mdx | 2 +-
.../docs/cheerpj2/05-reference/Runtime-API.md | 8 +--
sites/labs/src/pages/index.astro | 8 +--
sites/labs/src/pages/rss.xml.js | 6 +--
sites/labs/svelte.config.js | 2 +-
75 files changed, 258 insertions(+), 258 deletions(-)
diff --git a/content/blog/cheerpj-3.0rc1.mdx b/content/blog/cheerpj-3.0rc1.mdx
index e82ff560..a04ee0fc 100644
--- a/content/blog/cheerpj-3.0rc1.mdx
+++ b/content/blog/cheerpj-3.0rc1.mdx
@@ -80,8 +80,8 @@ await cheerpjInit({
natives: {
async Java_com_example_TestClass_alert(lib, str) {
window.alert(str);
- }
- }
+ },
+ },
});
```
diff --git a/package.json b/package.json
index dd71ac56..5239ee85 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
"typescript": "^5.2.2"
},
"prettier": {
- "trailingComma": "none",
+ "trailingComma": "es5",
"useTabs": true,
"plugins": [
"prettier-plugin-astro",
diff --git a/packages/astro-theme/components/BlogPostCard.astro b/packages/astro-theme/components/BlogPostCard.astro
index c5bdb15f..42538e06 100644
--- a/packages/astro-theme/components/BlogPostCard.astro
+++ b/packages/astro-theme/components/BlogPostCard.astro
@@ -37,7 +37,7 @@ const authors = await resolveAuthors(post.data.authors);
class:list={{
"font-bold text-balance text-white group-hover:text-primary-400 grow": true,
"text-2xl leading-7": size === "wide",
- "text-xl leading-6": size === "narrow"
+ "text-xl leading-6": size === "narrow",
}}
>
{post.data.title}
diff --git a/packages/astro-theme/components/Breadcrumbs.astro b/packages/astro-theme/components/Breadcrumbs.astro
index f6a88ef6..16440d68 100644
--- a/packages/astro-theme/components/Breadcrumbs.astro
+++ b/packages/astro-theme/components/Breadcrumbs.astro
@@ -20,7 +20,7 @@ const crumbs = path
return {
title: entry.title,
url: entry.href,
- isLast: i === all.length - 1
+ isLast: i === all.length - 1,
};
});
---
diff --git a/packages/astro-theme/components/DocsPagination.astro b/packages/astro-theme/components/DocsPagination.astro
index dd743f3d..fd35b53b 100644
--- a/packages/astro-theme/components/DocsPagination.astro
+++ b/packages/astro-theme/components/DocsPagination.astro
@@ -30,7 +30,7 @@ async function getNextPrev(): Promise<{
return {
next: findValidEntry(directory.entries, activeIndex, 1),
- prev: findValidEntry(directory.entries, activeIndex, -1)
+ prev: findValidEntry(directory.entries, activeIndex, -1),
};
}
diff --git a/packages/astro-theme/components/DocsSidebarNavEntry.astro b/packages/astro-theme/components/DocsSidebarNavEntry.astro
index 59e974e9..eafe4ac2 100644
--- a/packages/astro-theme/components/DocsSidebarNavEntry.astro
+++ b/packages/astro-theme/components/DocsSidebarNavEntry.astro
@@ -32,8 +32,8 @@ const title = await getLocalisedEntryTitle(entry);
"font-semibold !text-primary-500 !border-primary-600":
entry.href === pathname,
"px-4 border-l border-stone-800": depth > 0,
- "bg-primary-600 bg-opacity-5": depth > 0 && entry.href === pathname
- }
+ "bg-primary-600 bg-opacity-5": depth > 0 && entry.href === pathname,
+ },
]}
data-is-active={entry.href === pathname}
>
@@ -48,7 +48,7 @@ const title = await getLocalisedEntryTitle(entry);
0 }
+ { "pl-4 border-l border-stone-800": depth > 0 },
]}
>
@@ -57,8 +57,8 @@ const title = await getLocalisedEntryTitle(entry);
class:list={[
"block",
{
- "!text-primary-500": entry.href === pathname
- }
+ "!text-primary-500": entry.href === pathname,
+ },
]}
>
{title}
diff --git a/packages/astro-theme/components/Footer.astro b/packages/astro-theme/components/Footer.astro
index 199948f4..8c9b3f1c 100644
--- a/packages/astro-theme/components/Footer.astro
+++ b/packages/astro-theme/components/Footer.astro
@@ -31,22 +31,22 @@ const sections: Section[] = [
{ text: "CheerpX", href: "https://cheerpx.io" },
{
text: "CheerpX for Flash",
- href: "https://leaningtech.com/cheerpx-for-flash"
- }
- ]
+ href: "https://leaningtech.com/cheerpx-for-flash",
+ },
+ ],
},
{
name: t("Browser extensions", Astro.currentLocale),
links: [
{
text: "CheerpJ Applet Runner",
- href: "https://cheerpj.com/cheerpj-applet-runner/"
+ href: "https://cheerpj.com/cheerpj-applet-runner/",
},
{
text: "CheerpJ JNLP Runner",
- href: "https://cheerpj.com/cheerpj-jnlp-runner/"
- }
- ]
+ href: "https://cheerpj.com/cheerpj-jnlp-runner/",
+ },
+ ],
},
{
name: t("Resources", Astro.currentLocale),
@@ -54,44 +54,44 @@ const sections: Section[] = [
links: [
{
text: t("Documentation", Astro.currentLocale),
- href: "https://labs.leaningtech.com/#ecosystem"
+ href: "https://labs.leaningtech.com/#ecosystem",
},
{
text: t("Blog", Astro.currentLocale),
- href: "https://labs.leaningtech.com/blog"
+ href: "https://labs.leaningtech.com/blog",
},
{ text: "GitHub", href: "https://github.com/leaningtech" },
{
text: t("Contributing", Astro.currentLocale),
- href: "https://labs.leaningtech.com/docs/contributing"
- }
- ]
+ href: "https://labs.leaningtech.com/docs/contributing",
+ },
+ ],
},
{
name: t("Company", Astro.currentLocale),
links: [
{
text: t("About us", Astro.currentLocale),
- href: "https://leaningtech.com/about-us/"
+ href: "https://leaningtech.com/about-us/",
},
{
text: t("News", Astro.currentLocale),
- href: "https://leaningtech.com/news/"
+ href: "https://leaningtech.com/news/",
},
{
text: t("Partner program", Astro.currentLocale),
- href: "https://leaningtech.com/partner-programs/"
+ href: "https://leaningtech.com/partner-programs/",
},
{
text: t("Privacy policy", Astro.currentLocale),
- href: "https://leaningtech.com/privacy-policy/"
+ href: "https://leaningtech.com/privacy-policy/",
},
{
text: t("Careers", Astro.currentLocale),
- href: "https://leaningtech.freshteam.com/jobs"
- }
- ]
- }
+ href: "https://leaningtech.freshteam.com/jobs",
+ },
+ ],
+ },
];
---
diff --git a/packages/astro-theme/components/FormattedDate.astro b/packages/astro-theme/components/FormattedDate.astro
index e5c1d8b0..ac5ff753 100644
--- a/packages/astro-theme/components/FormattedDate.astro
+++ b/packages/astro-theme/components/FormattedDate.astro
@@ -11,7 +11,7 @@ const { date } = Astro.props;
date.toLocaleDateString("en-us", {
year: "numeric",
month: "long",
- day: "numeric"
+ day: "numeric",
})
}
diff --git a/packages/astro-theme/components/LinkButton.astro b/packages/astro-theme/components/LinkButton.astro
index 0194de94..d891ffc0 100644
--- a/packages/astro-theme/components/LinkButton.astro
+++ b/packages/astro-theme/components/LinkButton.astro
@@ -44,8 +44,8 @@ const { href, label, type = "secondary", iconLeft, iconRight } = Astro.props;
"border-white text-white font-mono hover:border-[#e2bace] hover:text-[#e2bace]":
type === "secondary-mono",
"border-white border-opacity-30 bg-blurple text-white hover:border-opacity-80":
- type === "discord"
- }
+ type === "discord",
+ },
]}
>
{iconLeft && }
diff --git a/packages/astro-theme/components/TableOfContents.astro b/packages/astro-theme/components/TableOfContents.astro
index e5e16355..10c6e0e8 100644
--- a/packages/astro-theme/components/TableOfContents.astro
+++ b/packages/astro-theme/components/TableOfContents.astro
@@ -1,6 +1,6 @@
---
import TableOfContentsHeading, {
- type Heading
+ type Heading,
} from "./TableOfContentsHeading.astro";
export type BasicHeading = Omit;
diff --git a/packages/astro-theme/components/TableOfContentsHeading.astro b/packages/astro-theme/components/TableOfContentsHeading.astro
index f1d8cdcf..85a6d4ea 100644
--- a/packages/astro-theme/components/TableOfContentsHeading.astro
+++ b/packages/astro-theme/components/TableOfContentsHeading.astro
@@ -19,8 +19,8 @@ const { heading } = Astro.props;
class:list={[
"block py-1 text-stone-400 hover:text-stone-200",
{
- "font-medium": heading.depth <= 2
- }
+ "font-medium": heading.depth <= 2,
+ },
]}
>
{heading.text}
diff --git a/packages/astro-theme/components/WasThisHelpful.astro b/packages/astro-theme/components/WasThisHelpful.astro
index b742ade8..26a6a616 100644
--- a/packages/astro-theme/components/WasThisHelpful.astro
+++ b/packages/astro-theme/components/WasThisHelpful.astro
@@ -49,8 +49,8 @@ interface Props {
props: {
reason: prompt(
"Thanks for your feedback! What could we have done better?"
- )
- }
+ ),
+ },
});
});
}
diff --git a/packages/astro-theme/components/nav/global/EventBanner.svelte b/packages/astro-theme/components/nav/global/EventBanner.svelte
index de8181c3..2bd7ddf0 100644
--- a/packages/astro-theme/components/nav/global/EventBanner.svelte
+++ b/packages/astro-theme/components/nav/global/EventBanner.svelte
@@ -9,7 +9,7 @@
day: "numeric",
hour: "numeric",
minute: "numeric",
- hour12: true
+ hour12: true,
}).format(date);
diff --git a/packages/astro-theme/components/nav/product/Link.astro b/packages/astro-theme/components/nav/product/Link.astro
index b72b163a..856459e5 100644
--- a/packages/astro-theme/components/nav/product/Link.astro
+++ b/packages/astro-theme/components/nav/product/Link.astro
@@ -13,7 +13,7 @@ const isActive = Astro.url.pathname.startsWith(href);
class:list={[
"flex items-center px-3 h-10 rounded-full",
{ "hover:bg-stone-800": !isActive },
- { "text-primary-500 bg-primary-600 bg-opacity-10": isActive }
+ { "text-primary-500 bg-primary-600 bg-opacity-10": isActive },
]}
>
{label}
diff --git a/packages/astro-theme/components/search/Pagefind.svelte b/packages/astro-theme/components/search/Pagefind.svelte
index 3f9e621a..7926a348 100644
--- a/packages/astro-theme/components/search/Pagefind.svelte
+++ b/packages/astro-theme/components/search/Pagefind.svelte
@@ -32,7 +32,7 @@
const response = await pagefind.debouncedSearch(query, {
filters: { productId },
- baseUrl: import.meta.env.BASE_URL
+ baseUrl: import.meta.env.BASE_URL,
});
if (response === null) {
// Debounce.
@@ -43,7 +43,7 @@
noResultsForQuery = query.length > 0 && results.length === 0;
plausible("Search", {
- props: { query, resultsCount: results.length, productId }
+ props: { query, resultsCount: results.length, productId },
});
}
diff --git a/packages/astro-theme/content.ts b/packages/astro-theme/content.ts
index c97c6b1f..553044ff 100644
--- a/packages/astro-theme/content.ts
+++ b/packages/astro-theme/content.ts
@@ -13,8 +13,8 @@ export function defineCommonCollections() {
description: z.string().optional(),
shortTitle: z.string().optional(), // Used for nav only
fullWidthLayout: z.boolean().default(false),
- draft: z.boolean().default(false)
- })
+ draft: z.boolean().default(false),
+ }),
}),
blogauthors: defineCollection({
@@ -24,9 +24,9 @@ export function defineCommonCollections() {
jobTitle: z.string().optional(),
avatar: image().optional(),
url: z.string().optional(),
- guest: z.boolean().default(false)
+ guest: z.boolean().default(false),
}),
- type: "data"
+ type: "data",
}),
blog: defineCollection({
@@ -48,8 +48,8 @@ export function defineCommonCollections() {
heroImage: image().optional(),
featured: z.boolean().default(false),
draft: z.boolean().default(false),
- tags: productTags.optional()
- })
- })
+ tags: productTags.optional(),
+ }),
+ }),
};
}
diff --git a/packages/astro-theme/index.ts b/packages/astro-theme/index.ts
index 2d1ef071..77424086 100644
--- a/packages/astro-theme/index.ts
+++ b/packages/astro-theme/index.ts
@@ -28,7 +28,7 @@ theme.styleOverrides.frames = {
editorTabBarBackground: "transparent",
editorActiveTabBackground: "transparent",
editorActiveTabBorderBottom: "transparent",
- shadowColor: "transparent"
+ shadowColor: "transparent",
};
const dirname = import.meta.url.replace("file://", "").replace("/index.ts", "");
@@ -54,8 +54,8 @@ export default function ThemeIntegration(
codeBackground: "transparent",
borderColor: "rgb(41, 37, 36)", // border-stone-800
// doesn't work?
- frames: {}
- }
+ frames: {},
+ },
}),
mdx(),
sitemap(),
@@ -66,8 +66,8 @@ export default function ThemeIntegration(
publicDir({
// FIXME claims directory does not exist
dir: "public",
- cwd: dirname
- })
+ cwd: dirname,
+ }),
];
for (const integration of integrations) {
addIntegration(params, { integration });
@@ -75,26 +75,26 @@ export default function ThemeIntegration(
params.injectRoute({
pattern: "blog",
- entrypoint: "@leaningtech/astro-theme/pages/blog/index.astro"
+ entrypoint: "@leaningtech/astro-theme/pages/blog/index.astro",
});
params.injectRoute({
pattern: "blog/[...slug]",
- entrypoint: "@leaningtech/astro-theme/pages/blog/[...slug].astro"
+ entrypoint: "@leaningtech/astro-theme/pages/blog/[...slug].astro",
});
cpSync(contentDir, "src/content", { recursive: true }); // Needed until Astro Content Layer implemented
const docsPrefix = options.baseIsDocs ? "" : "docs";
params.injectRoute({
pattern: docsPrefix,
- entrypoint: "@leaningtech/astro-theme/pages/docs/index.astro"
+ entrypoint: "@leaningtech/astro-theme/pages/docs/index.astro",
});
params.injectRoute({
pattern: `${docsPrefix}/404`,
- entrypoint: "@leaningtech/astro-theme/pages/docs/404.astro"
+ entrypoint: "@leaningtech/astro-theme/pages/docs/404.astro",
});
params.injectRoute({
pattern: `${docsPrefix}/[...slug]`,
- entrypoint: "@leaningtech/astro-theme/pages/docs/[...slug].astro"
+ entrypoint: "@leaningtech/astro-theme/pages/docs/[...slug].astro",
});
params.updateConfig({
markdown: {
@@ -112,11 +112,11 @@ export default function ThemeIntegration(
className:
"not-prose inline-block align-middle heading-link-icon",
style: "margin-left: 8px",
- src: base + "/icons/heading-link.svg"
+ src: base + "/icons/heading-link.svg",
},
- children: []
- }
- }
+ children: [],
+ },
+ },
],
[
rehypeExternalLinks,
@@ -127,31 +127,31 @@ export default function ThemeIntegration(
properties: {
className: "not-prose inline-block align-middle",
style: "margin-left: 2px",
- src: base + "/icons/external-link.svg"
+ src: base + "/icons/external-link.svg",
},
- children: []
+ children: [],
},
- target: "_blank"
- }
- ]
- ]
+ target: "_blank",
+ },
+ ],
+ ],
},
compressHTML: prod,
build: {
format: "file",
- inlineStylesheets: "always"
+ inlineStylesheets: "always",
},
trailingSlash: "never",
image: {
- service: squooshImageService()
+ service: squooshImageService(),
},
vite: {
ssr: {
- noExternal: ["@leaningtech/global-navbar"]
- }
- }
+ noExternal: ["@leaningtech/global-navbar"],
+ },
+ },
});
- }
- }
+ },
+ },
};
}
diff --git a/packages/astro-theme/layouts/BlogPost.astro b/packages/astro-theme/layouts/BlogPost.astro
index 720abd0a..95908274 100644
--- a/packages/astro-theme/layouts/BlogPost.astro
+++ b/packages/astro-theme/layouts/BlogPost.astro
@@ -5,7 +5,7 @@ import Icon from "astro-icon";
import { SocialShare } from "astro-social-share";
import FormattedDate from "../components/FormattedDate.astro";
import TableOfContents, {
- type BasicHeading
+ type BasicHeading,
} from "../components/TableOfContents.astro";
import Footer from "../components/Footer.astro";
import BlogPostCardSet from "../components/BlogPostCardSet.astro";
@@ -131,7 +131,7 @@ if (subtitle) {
diff --git a/packages/astro-theme/layouts/DocsArticle.astro b/packages/astro-theme/layouts/DocsArticle.astro
index 0244d76e..ff2c769d 100644
--- a/packages/astro-theme/layouts/DocsArticle.astro
+++ b/packages/astro-theme/layouts/DocsArticle.astro
@@ -47,7 +47,7 @@ function getEditHref(id: string): string {
diff --git a/packages/astro-theme/lib/nav.ts b/packages/astro-theme/lib/nav.ts
index 8437e169..e5935888 100644
--- a/packages/astro-theme/lib/nav.ts
+++ b/packages/astro-theme/lib/nav.ts
@@ -85,7 +85,7 @@ export async function getRootNav(): Promise {
// Map of directory name to its entries. The root directory is "".
const dirPathToEntries: { [path: string]: NavEntry[] } = {
- "": root
+ "": root,
};
// Sort so shortest dir names are first
@@ -116,7 +116,7 @@ export async function getRootNav(): Promise {
dirname,
entries: myEntries,
title: idToTitle(path),
- isLanguageDirectory: locales.includes(path)
+ isLanguageDirectory: locales.includes(path),
};
parentEntries.push(me);
dirPathToEntries[path] = myEntries;
@@ -142,7 +142,7 @@ export async function getRootNav(): Promise {
href: "/docs/" + slug,
title: file.data.shortTitle ?? file.data.title,
collectionEntry: file,
- isIndex: slug === idToSlug(parentDir)
+ isIndex: slug === idToSlug(parentDir),
});
}
diff --git a/packages/astro-theme/lib/products.ts b/packages/astro-theme/lib/products.ts
index fcb17418..b440a06b 100644
--- a/packages/astro-theme/lib/products.ts
+++ b/packages/astro-theme/lib/products.ts
@@ -39,7 +39,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Cheerp is an enterprise-grade compiler toolchain that can compile C/C++ into efficient WebAssembly and JavaScript. It is open source, liberally licensed, and actively developed by Leaning Technologies.",
github: "https://github.com/leaningtech/cheerp-meta",
- repositoryName: "cheerp-meta"
+ repositoryName: "cheerp-meta",
},
cheerpj2: {
id: "cheerpj2",
@@ -52,7 +52,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.",
github: "https://github.com/leaningtech/cheerpj-meta",
- repositoryName: "cheerpj-meta"
+ repositoryName: "cheerpj-meta",
},
cheerpj3: {
id: "cheerpj3",
@@ -65,7 +65,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.",
github: "https://github.com/leaningtech/cheerpj-meta",
- repositoryName: "cheerpj-meta"
+ repositoryName: "cheerpj-meta",
},
cheerpx: {
id: "cheerpx",
@@ -78,7 +78,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"CheerpX is a JavaScript library that enables secure client-side execution of x86 binaries on any browser. Coming soon.",
github: "https://github.com/leaningtech/webvm", // TODO
- repositoryName: "webvm"
+ repositoryName: "webvm",
},
"cheerpx-for-flash": {
id: "cheerpx-for-flash",
@@ -91,7 +91,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"An HTML5 Flash emulator that allows your Flash content to run seamlessly on browsers, after the end of life of the Flash player.",
github: "https://github.com/leaningtech/cheerpx-flash",
- repositoryName: "cheerpx-flash"
+ repositoryName: "cheerpx-flash",
},
"cheerpj-jnlp-runner": {
id: "cheerpj-jnlp-runner",
@@ -104,7 +104,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Run Java Web Start Applications without a Java Desktop installation.",
github: "https://github.com/leaningtech/cheerpj-jnlp-runner",
- repositoryName: "cheerpj-jnlp-runner"
+ repositoryName: "cheerpj-jnlp-runner",
},
"cheerpj-applet-runner": {
id: "cheerpj-applet-runner",
@@ -116,7 +116,7 @@ export const products: { [product in Product]: ProductData } = {
subtitle: "Run Java Applets in the modern browser",
description: "Run Java Applets in modern browsers without plugins",
github: "https://github.com/leaningtech/cheerpj-applet-runner",
- repositoryName: "cheerpj-applet-runner"
+ repositoryName: "cheerpj-applet-runner",
},
"cheerpx-games-runner": {
id: "cheerpx-games-runner",
@@ -128,8 +128,8 @@ export const products: { [product in Product]: ProductData } = {
subtitle: "Run Games in the modern browser",
description: "Run Games in the modern browser",
github: "https://github.com/leaningtech/cheerpx-games-runner",
- repositoryName: "cheerpx-games-runner"
- }
+ repositoryName: "cheerpx-games-runner",
+ },
};
export function productFromUrl(url: URL): ProductData | undefined {
diff --git a/packages/astro-theme/lib/terminal-os-tabs.js b/packages/astro-theme/lib/terminal-os-tabs.js
index da80e196..5e31c3ee 100644
--- a/packages/astro-theme/lib/terminal-os-tabs.js
+++ b/packages/astro-theme/lib/terminal-os-tabs.js
@@ -6,9 +6,9 @@ const replacements = [
{
win: "C:\\cheerp\\bin\\$1.exe",
mac: "/Applications/cheerp/bin/$1",
- linux: "/opt/cheerp/bin/$1"
- }
- ]
+ linux: "/opt/cheerp/bin/$1",
+ },
+ ],
];
let os = localStorage.getItem("os") ?? getOs();
diff --git a/packages/astro-theme/pagefind.ts b/packages/astro-theme/pagefind.ts
index ab372b4c..8e4041cb 100644
--- a/packages/astro-theme/pagefind.ts
+++ b/packages/astro-theme/pagefind.ts
@@ -21,7 +21,7 @@ export default function pagefind(): AstroIntegration {
"astro:server:setup": ({ server }) => {
const serve = sirv(outDir, {
dev: true,
- etag: true
+ etag: true,
});
server.middlewares.use((req, res, next) => {
if (req.url?.startsWith("/pagefind/")) {
@@ -36,10 +36,10 @@ export default function pagefind(): AstroIntegration {
spawn("npx", ["-y", "pagefind", "--site", outDir], {
stdio: "inherit",
shell: true,
- cwd
+ cwd,
}).on("close", () => resolve());
});
- }
- }
+ },
+ },
};
}
diff --git a/packages/astro-theme/pages/blog/[...slug].astro b/packages/astro-theme/pages/blog/[...slug].astro
index abb07025..6bb133fe 100644
--- a/packages/astro-theme/pages/blog/[...slug].astro
+++ b/packages/astro-theme/pages/blog/[...slug].astro
@@ -6,7 +6,7 @@ export async function getStaticPaths() {
const posts = await getCollection("blog");
return posts.map((post) => ({
params: { slug: post.slug },
- props: post
+ props: post,
}));
}
type Props = CollectionEntry<"blog">;
diff --git a/packages/astro-theme/pages/docs/[...slug].astro b/packages/astro-theme/pages/docs/[...slug].astro
index 0707a1b0..561446a9 100644
--- a/packages/astro-theme/pages/docs/[...slug].astro
+++ b/packages/astro-theme/pages/docs/[...slug].astro
@@ -15,9 +15,9 @@ export async function getStaticPaths() {
.map((entry) => {
return {
params: {
- slug: entry.slug
+ slug: entry.slug,
},
- props: entry
+ props: entry,
};
});
}
diff --git a/packages/astro-theme/pages/docs/ja/[...slug].astro b/packages/astro-theme/pages/docs/ja/[...slug].astro
index 1efc0cb4..07a4311a 100644
--- a/packages/astro-theme/pages/docs/ja/[...slug].astro
+++ b/packages/astro-theme/pages/docs/ja/[...slug].astro
@@ -10,9 +10,9 @@ export async function getStaticPaths() {
return entries.map((entry) => {
return {
params: {
- slug: entry.slug
+ slug: entry.slug,
},
- props: entry
+ props: entry,
};
});
}
diff --git a/packages/astro-theme/tailwind.ts b/packages/astro-theme/tailwind.ts
index 03c20c22..32205f51 100644
--- a/packages/astro-theme/tailwind.ts
+++ b/packages/astro-theme/tailwind.ts
@@ -2,7 +2,7 @@ import type { Config } from "tailwindcss";
import type {
CSSRuleObject,
PluginAPI,
- RecursiveKeyValuePair
+ RecursiveKeyValuePair,
} from "tailwindcss/types/config";
import plugin from "tailwindcss/plugin";
@@ -25,7 +25,7 @@ const exportColorsAsCssVariables = plugin(({ addBase, theme }) => {
}
addBase({
- ":root": extractColorVars(theme("colors"))
+ ":root": extractColorVars(theme("colors")),
});
});
@@ -36,14 +36,14 @@ const disabledCss = {
"code::before": false,
"code::after": false,
"blockquote p:first-of-type::before": false,
- "blockquote p:last-of-type::after": false
+ "blockquote p:last-of-type::after": false,
};
export default function makeConfig(): Config {
return {
content: [
"./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
- "../../packages/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"
+ "../../packages/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
],
theme: {
extend: {
@@ -64,9 +64,9 @@ export default function makeConfig(): Config {
"Yu Gothic", // Japanese for windows users
"Hiragino Sans", // Japanese for mac users
"Noto Sans CJK JP", // Japanese for linux users
- "sans-serif"
+ "sans-serif",
],
- mono: ["Monaspace Argon", "monospace"]
+ mono: ["Monaspace Argon", "monospace"],
},
colors: {
primary: {
@@ -76,28 +76,28 @@ export default function makeConfig(): Config {
300: "#f07d99",
200: "#f5a9bb",
100: "#fad4dd",
- 50: "#fde9ee"
+ 50: "#fde9ee",
},
cheerp: "#56f4ec",
cheerpx: "#3b516d",
- blurple: "#5865F2" // https://discord.com/branding
+ blurple: "#5865F2", // https://discord.com/branding
},
typography: (theme: PluginAPI["theme"]) => ({
stone: {
css: {
"--tw-prose-links": theme("colors.cheerp"),
- "--tw-prose-invert-links": theme("colors.primary[400]")
- }
+ "--tw-prose-invert-links": theme("colors.primary[400]"),
+ },
},
DEFAULT: { css: disabledCss },
sm: { css: disabledCss },
lg: { css: disabledCss },
xl: { css: disabledCss },
- "2xl": { css: disabledCss }
- })
- }
+ "2xl": { css: disabledCss },
+ }),
+ },
},
plugins: [require("@tailwindcss/typography"), exportColorsAsCssVariables],
- darkMode: "class"
+ darkMode: "class",
};
}
diff --git a/packages/cheerp-ts-three-demo/three-demo.js b/packages/cheerp-ts-three-demo/three-demo.js
index 21e84956..645d370a 100644
--- a/packages/cheerp-ts-three-demo/three-demo.js
+++ b/packages/cheerp-ts-three-demo/three-demo.js
@@ -41,7 +41,7 @@ function aJ(aK) {
a1: nullArray,
a2: nullArray,
a3: nullArray,
- a4: nullArray
+ a4: nullArray,
};
c = [null];
a.a0 = c;
@@ -134,8 +134,8 @@ function aC(e, d) {
a1: nullArray,
a2: nullArray,
a3: nullArray,
- a4: nullArray
- }
+ a4: nullArray,
+ },
];
c = d.a0;
a[0].a0 = c;
diff --git a/packages/cheerpj-applet-page/utilities/ImageSlider.svelte b/packages/cheerpj-applet-page/utilities/ImageSlider.svelte
index 3002f61b..f3aa6717 100644
--- a/packages/cheerpj-applet-page/utilities/ImageSlider.svelte
+++ b/packages/cheerpj-applet-page/utilities/ImageSlider.svelte
@@ -5,12 +5,12 @@
let images = [
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_1.png",
- alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed."
+ alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed.",
},
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_2.png",
- alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing."
- }
+ alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing.",
+ },
];
function back() {
diff --git a/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte b/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte
index 3002f61b..f3aa6717 100644
--- a/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte
+++ b/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte
@@ -5,12 +5,12 @@
let images = [
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_1.png",
- alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed."
+ alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed.",
},
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_2.png",
- alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing."
- }
+ alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing.",
+ },
];
function back() {
diff --git a/packages/global-navbar/src/Nav.svelte b/packages/global-navbar/src/Nav.svelte
index 749a6d42..af03901a 100644
--- a/packages/global-navbar/src/Nav.svelte
+++ b/packages/global-navbar/src/Nav.svelte
@@ -17,31 +17,31 @@
Technology: [
{
href: "https://cheerp.io/",
- title: "Cheerp"
+ title: "Cheerp",
},
{
href: "https://cheerpj.com/",
- title: "CheerpJ"
+ title: "CheerpJ",
},
{
href: "https://cheerpx.io/",
- title: "CheerpX"
- }
+ title: "CheerpX",
+ },
],
Resources: [
{
href: "https://labs.leaningtech.com/",
- title: "Developer Hub"
+ title: "Developer Hub",
},
{
href: "https://labs.leaningtech.com/blog",
- title: "Blog"
+ title: "Blog",
},
{
href: "https://github.com/leaningtech",
- title: "GitHub"
- }
- ]
+ title: "GitHub",
+ },
+ ],
};
diff --git a/packages/global-navbar/svelte.config.js b/packages/global-navbar/svelte.config.js
index 18d28c21..0fb6d8e4 100644
--- a/packages/global-navbar/svelte.config.js
+++ b/packages/global-navbar/svelte.config.js
@@ -3,5 +3,5 @@ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
export default {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
- preprocess: vitePreprocess()
+ preprocess: vitePreprocess(),
};
diff --git a/packages/global-navbar/vite.config.ts b/packages/global-navbar/vite.config.ts
index ee2858d4..df45d84b 100644
--- a/packages/global-navbar/vite.config.ts
+++ b/packages/global-navbar/vite.config.ts
@@ -7,15 +7,15 @@ export default defineConfig({
svelte({
compilerOptions: {
dev: process.env.NODE_ENV !== "production",
- hydratable: true
- }
- })
+ hydratable: true,
+ },
+ }),
],
build: {
lib: {
formats: ["es"],
entry: resolve(__dirname, "src/index.js"),
- fileName: "global-navbar"
- }
- }
+ fileName: "global-navbar",
+ },
+ },
});
diff --git a/sites/cheerp/astro.config.mjs b/sites/cheerp/astro.config.mjs
index 589726dc..22177620 100644
--- a/sites/cheerp/astro.config.mjs
+++ b/sites/cheerp/astro.config.mjs
@@ -10,9 +10,9 @@ export default defineConfig({
alias: [
{
find: "@",
- replacement: resolve("./src/")
- }
- ]
- }
- }
+ replacement: resolve("./src/"),
+ },
+ ],
+ },
+ },
});
diff --git a/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js b/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js
index f0e06bf6..5b4111b3 100644
--- a/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js
+++ b/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js
@@ -28,6 +28,6 @@ function i() {
}
var l = new Uint8Array([
72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 32, 87, 105, 100, 101,
- 32, 87, 101, 98, 33, 0
+ 32, 87, 101, 98, 33, 0,
]);
k();
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js
index ce9d02b3..fce8046e 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js
@@ -81,7 +81,7 @@ function e(c, d) {
}
var h;
var C = new Uint8Array([
- 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0
+ 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0,
]);
var j;
var B;
@@ -106,8 +106,8 @@ function __dummy() {
var importObject = {
imports: {
__ZN8Graphics11debugOutputEPKc: _asm_t,
- __ZN8Graphics16initializeCanvasEii: _asm_u
- }
+ __ZN8Graphics16initializeCanvasEii: _asm_u,
+ },
};
fetchBuffer("pong.wasm")
.then(
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js
index 215ea8c9..956684bf 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js
@@ -131,8 +131,8 @@ function __dummy() {
var importObject = {
imports: {
__ZN8Graphics8drawRectEiiiii: _asm_o,
- __ZN8Graphics16initializeCanvasEii: _asm_B
- }
+ __ZN8Graphics16initializeCanvasEii: _asm_B,
+ },
};
fetchBuffer("pong.wasm")
.then(
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js
index 99a1df61..1f687d07 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js
@@ -155,8 +155,8 @@ function __dummy() {
var importObject = {
imports: {
__ZN8Graphics8drawRectEiiiii: _asm_p,
- __ZN8Graphics16initializeCanvasEii: _asm_E
- }
+ __ZN8Graphics16initializeCanvasEii: _asm_E,
+ },
};
fetchBuffer("pong.wasm")
.then(
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js
index 8cd38e5d..c5f4ed54 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js
@@ -174,10 +174,10 @@ var ac = new Uint8Array([114, 103, 98, 40, 0]);
var ab = new Uint8Array([44, 0]);
var af = new Uint8Array([41, 0]);
var ae = new Uint8Array([
- 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0
+ 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0,
]);
var Z = new Uint8Array([
- 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0
+ 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0,
]);
var HEAP8 = null;
var HEAP16 = null;
@@ -214,8 +214,8 @@ var importObject = {
__ZN8Graphics8drawRectEiiiii: _asm_w,
__ZN8Graphics10drawCircleEiiii: _asm_j,
__ZN8Graphics11debugOutputEPKc: _asm_U,
- __ZN8Graphics16initializeCanvasEii: _asm_S
- }
+ __ZN8Graphics16initializeCanvasEii: _asm_S,
+ },
};
fetchBuffer("pong.wasm")
.then(
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js
index 436f3315..d02aaec7 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js
@@ -79,7 +79,7 @@ var stdlib = {
Uint16Array: Uint16Array,
Int32Array: Int32Array,
Float32Array: Float32Array,
- Float64Array: Float64Array
+ Float64Array: Float64Array,
};
function X(d) {
var c = -0,
@@ -277,10 +277,10 @@ var p = 200;
var n = -2;
var o = 200;
var ac = new Uint8Array([
- 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0
+ 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0,
]);
var ab = new Uint8Array([
- 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0
+ 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0,
]);
var aa = new Uint8Array([89, 111, 117, 32, 108, 111, 115, 116, 33, 0]);
var $ = [0];
diff --git a/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md b/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md
index 1c25211e..a9fa2208 100644
--- a/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md
+++ b/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md
@@ -10,7 +10,7 @@ Let's say, for the sake of example, that you have a JavaScript function that exp
jsFuncWithObjectParam({
requiredParam1: 42,
requiredParam2: "String",
- optionalParam1: null
+ optionalParam1: null,
});
```
diff --git a/sites/cheerp/src/content/docs/12-reference/01-args.md b/sites/cheerp/src/content/docs/12-reference/01-args.md
index c7c7b998..dbaf052b 100644
--- a/sites/cheerp/src/content/docs/12-reference/01-args.md
+++ b/sites/cheerp/src/content/docs/12-reference/01-args.md
@@ -25,7 +25,7 @@ For JavaScript modules, you can pass the arguments through the initialization fu
import init from "./example.js";
await init({
- argv: ["a", "b", "c"]
+ argv: ["a", "b", "c"],
});
```
diff --git a/sites/cheerp/src/content/docs/12-reference/02-env.md b/sites/cheerp/src/content/docs/12-reference/02-env.md
index 8b61be68..cea029be 100644
--- a/sites/cheerp/src/content/docs/12-reference/02-env.md
+++ b/sites/cheerp/src/content/docs/12-reference/02-env.md
@@ -17,7 +17,7 @@ For JavaScript modules, you can pass environment variables through the initializ
import init from "./example.js";
await init({
- env: ["A=1", "B=2"]
+ env: ["A=1", "B=2"],
});
```
diff --git a/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md b/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md
index ef2cd593..dbe2a85d 100644
--- a/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md
+++ b/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md
@@ -42,7 +42,7 @@ JavaScript Strings are not used directly by Cheerp, but they are accessible to t
```js
var a = [
{ x: 0, y: 1 },
- { x: 2, y: 3 }
+ { x: 2, y: 3 },
];
var typedA = new Int32Array(10);
```
@@ -74,7 +74,7 @@ JavaScript references support equality comparison, but they have no ordering and
```js
var a = [
{ x: 0, y: [1] },
- { x: 2, y: [3] }
+ { x: 2, y: [3] },
];
var typedA = new Int32Array(10);
var objPtr = { d: a, o: 1 };
diff --git a/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md b/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md
index 06a9fc43..87c1f914 100644
--- a/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md
+++ b/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md
@@ -102,7 +102,7 @@ fetch('/absolute/path/to/yourModule.wasm').then(buffer => {
```js
import instantiateFunction from "./yourModule.js";
instantiateFunction({
- absPath: new URL("/relative/path/to/yourModule.wasm", import.meta.url)
+ absPath: new URL("/relative/path/to/yourModule.wasm", import.meta.url),
}).then((module) => {
console.log("Module has been instantiated!");
module.someJSExportedFunc();
diff --git a/sites/cheerpj/astro.config.mjs b/sites/cheerpj/astro.config.mjs
index 59913e67..f6f5c92c 100644
--- a/sites/cheerpj/astro.config.mjs
+++ b/sites/cheerpj/astro.config.mjs
@@ -8,25 +8,25 @@ export default defineConfig({
base: "/docs",
integrations: [
theme({
- baseIsDocs: true
- })
+ baseIsDocs: true,
+ }),
],
i18n: {
defaultLocale: "en",
locales: ["en", "ja", "zh"],
fallback: {
ja: "en",
- zh: "en"
- }
+ zh: "en",
+ },
},
vite: {
resolve: {
alias: [
{
find: "@",
- replacement: resolve("./src/")
- }
- ]
- }
- }
+ replacement: resolve("./src/"),
+ },
+ ],
+ },
+ },
});
diff --git a/sites/cheerpj/src/content/config.ts b/sites/cheerpj/src/content/config.ts
index e01cbb30..377c24c6 100644
--- a/sites/cheerpj/src/content/config.ts
+++ b/sites/cheerpj/src/content/config.ts
@@ -9,9 +9,9 @@ const showcase = defineCollection({
description: z.string().optional(),
url: z.string(),
image: image().refine((img) => img.width / img.height == 1.5, {
- message: "Image must have 3:2 aspect ratio"
- })
- })
+ message: "Image must have 3:2 aspect ratio",
+ }),
+ }),
});
export const collections = { showcase, ...defineCommonCollections() };
diff --git a/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md b/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md
index 3e4462c4..9e7ff689 100644
--- a/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md
+++ b/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md
@@ -37,8 +37,8 @@ await cheerpjInit({
natives: {
async Java_Example_alert(lib, str) {
window.alert(str);
- }
- }
+ },
+ },
});
await cheerpjRunMain("Example", "/app/");
```
@@ -73,7 +73,7 @@ public class Example {
export default {
async Java_Example_alert(lib, self, message) {
window.alert(message);
- }
+ },
};
```
diff --git a/sites/cheerpj/src/content/docs/11-guides/Networking.md b/sites/cheerpj/src/content/docs/11-guides/Networking.md
index 92152672..c7f68e94 100644
--- a/sites/cheerpj/src/content/docs/11-guides/Networking.md
+++ b/sites/cheerpj/src/content/docs/11-guides/Networking.md
@@ -45,7 +45,7 @@ Example for pre-authenticated users/devices:
```js
cheerpjInit({
tailscaleControlUrl: "https://my.url.com/",
- tailscaleAuthKey: "AuthKeyStringGoesHere"
+ tailscaleAuthKey: "AuthKeyStringGoesHere",
});
```
@@ -72,7 +72,7 @@ cheerpjInit({
loginElem.href = url;
loginElem.target = "_blank";
// continue with login
- }
+ },
});
```
diff --git a/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md b/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md
index 625ea3ba..f012b1e0 100644
--- a/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md
+++ b/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md
@@ -164,7 +164,7 @@ Example of usage:
cheerpjInit({
beepCallback: function () {
alert("Beep!");
- }
+ },
});
```
@@ -203,7 +203,7 @@ cheerpjInit({
// Let Java handle Ctrl+F
if (e.ctrlKey && e.keyCode == 70) return true;
return false;
- }
+ },
});
```
@@ -222,7 +222,7 @@ cheerpjInit({
appletParamFilter: function (name, value) {
if (name === "httpServer") return value.replace("http", "https");
return value;
- }
+ },
});
```
@@ -241,8 +241,8 @@ cheerpjInit({
natives: {
async Java_MyClass_myMethod(lib, str) {
window.alert(str);
- }
- }
+ },
+ },
});
```
@@ -337,7 +337,7 @@ For more information visit the [Tailscale documentation](https://tailscale.com/k
cheerpjInit({
tailscaleLoginUrlCb(url) {
// your function code here to continue with login
- }
+ },
});
```
@@ -355,7 +355,7 @@ Example of usage:
cheerpjInit({
tailscaleIpCb: function (ip) {
console.log("IP address " + ip);
- }
+ },
});
```
diff --git a/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx b/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx
index b15162f6..21c34e68 100644
--- a/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx
+++ b/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx
@@ -128,7 +128,7 @@ Connecting to a Tailscale network requires an authorization key.
```js
await cheerpjInit({
- tailscaleAuthKey: "PasteYourKeyHere"
+ tailscaleAuthKey: "PasteYourKeyHere",
});
```
diff --git a/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md b/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md
index 4bc93b9a..c2cf306b 100644
--- a/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md
+++ b/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md
@@ -37,8 +37,8 @@ await cheerpjInit({
natives: {
async Java_Example_alert(lib, str) {
window.alert(str);
- }
- }
+ },
+ },
});
await cheerpjRunMain("Example", "/app/");
```
@@ -73,7 +73,7 @@ public class Example {
export default {
async Java_Example_alert(lib, self, message) {
window.alert(message);
- }
+ },
};
```
diff --git a/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md b/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md
index 3dd30d77..86301386 100644
--- a/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md
+++ b/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md
@@ -45,7 +45,7 @@ JavaアプリケーションのクライアントをTailscaleネットワーク
```js
cheerpjInit({
tailscaleControlUrl: "https://my.url.com/",
- tailscaleAuthKey: "AuthKeyStringGoesHere"
+ tailscaleAuthKey: "AuthKeyStringGoesHere",
});
```
@@ -72,7 +72,7 @@ cheerpjInit({
loginElem.href = url;
loginElem.target = "_blank";
// continue with login
- }
+ },
});
```
diff --git a/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md b/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md
index d76547a2..5f984d9d 100644
--- a/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md
+++ b/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md
@@ -164,7 +164,7 @@ beepCallback?: () => void;
cheerpjInit({
beepCallback: function () {
alert("Beep!");
- }
+ },
});
```
@@ -202,7 +202,7 @@ cheerpjInit({
// Let Java handle Ctrl+F
if (e.ctrlKey && e.keyCode == 70) return true;
return false;
- }
+ },
});
```
@@ -221,7 +221,7 @@ cheerpjInit({
appletParamFilter: function (name, value) {
if (name === "httpServer") return value.replace("http", "https");
return value;
- }
+ },
});
```
@@ -240,8 +240,8 @@ cheerpjInit({
natives: {
async Java_MyClass_myMethod(lib, str) {
window.alert(str);
- }
- }
+ },
+ },
});
```
@@ -336,7 +336,7 @@ tailscaleLoginUrlCb?: (url: string) => void;
cheerpjInit({
tailscaleLoginUrlCb(url) {
// your function code here to continue with login
- }
+ },
});
```
@@ -354,7 +354,7 @@ tailscaleIpCb?: (ip: string) => void;
cheerpjInit({
tailscaleIpCb: function (ip) {
console.log("IP address " + ip);
- }
+ },
});
```
diff --git a/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx b/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx
index 98d7bec6..54075147 100644
--- a/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx
+++ b/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx
@@ -128,7 +128,7 @@ Tailscaleネットワークに接続するには、認証キーが必要です
```js
await cheerpjInit({
- tailscaleAuthKey: "PasteYourKeyHere"
+ tailscaleAuthKey: "PasteYourKeyHere",
});
```
diff --git a/sites/cheerpx/astro.config.mjs b/sites/cheerpx/astro.config.mjs
index b78d7b02..cd1311ea 100644
--- a/sites/cheerpx/astro.config.mjs
+++ b/sites/cheerpx/astro.config.mjs
@@ -10,9 +10,9 @@ export default defineConfig({
alias: [
{
find: "@",
- replacement: resolve("./src/")
- }
- ]
- }
- }
+ replacement: resolve("./src/"),
+ },
+ ],
+ },
+ },
});
diff --git a/sites/cheerpx/src/content/docs/10-getting-started/index.md b/sites/cheerpx/src/content/docs/10-getting-started/index.md
index 9be23a46..b8f2e21e 100644
--- a/sites/cheerpx/src/content/docs/10-getting-started/index.md
+++ b/sites/cheerpx/src/content/docs/10-getting-started/index.md
@@ -66,8 +66,8 @@ The example below demonstrates how to set up the file system and devices using [
{ type: "ext2", path: "/", dev: overlayDevice },
{ type: "dir", path: "/app", dev: webDevice },
{ type: "dir", path: "/data", dev: dataDevice },
- { type: "devs", path: "/dev" }
- ]
+ { type: "devs", path: "/dev" },
+ ],
});
@@ -116,11 +116,11 @@ await cx.run("/bin/bash", ["--login"], {
"SHELL=/bin/bash",
"EDITOR=vim",
"LANG=en_US.UTF-8",
- "LC_ALL=C"
+ "LC_ALL=C",
],
cwd: "/home/user",
uid: 1000,
- gid: 1000
+ gid: 1000,
});
```
diff --git a/sites/cheerpx/src/content/docs/11-guides/File-System-support.md b/sites/cheerpx/src/content/docs/11-guides/File-System-support.md
index 0c9144ec..c9cf028d 100644
--- a/sites/cheerpx/src/content/docs/11-guides/File-System-support.md
+++ b/sites/cheerpx/src/content/docs/11-guides/File-System-support.md
@@ -172,7 +172,7 @@ const idbDevice = await CheerpX.IDBDevice.create("block1");
const overlayDevice = await CheerpX.OverlayDevice.create(httpDevice, idbDevice);
const cx = await CheerpX.Linux.create({
- mounts: [{ type: "ext2", path: "/", dev: overlayDevice }]
+ mounts: [{ type: "ext2", path: "/", dev: overlayDevice }],
});
```
diff --git a/sites/cheerpx/src/content/docs/11-guides/Networking.md b/sites/cheerpx/src/content/docs/11-guides/Networking.md
index e33a08b6..88b3201a 100644
--- a/sites/cheerpx/src/content/docs/11-guides/Networking.md
+++ b/sites/cheerpx/src/content/docs/11-guides/Networking.md
@@ -46,8 +46,8 @@ Example for pre-authenticated users/devices:
const cx = await CheerpX.Linux.create({
networkInterface: {
authKey: "AuthKeyStringGoesHere",
- controlUrl: "https://my.url.com/"
- }
+ controlUrl: "https://my.url.com/",
+ },
});
```
@@ -75,8 +75,8 @@ const cx = await CheerpX.Linux.create({
loginElem.href = url;
loginElem.target = "_blank";
// continue with login
- }
- }
+ },
+ },
});
```
diff --git a/sites/cheerpx/src/content/docs/11-guides/input-output.md b/sites/cheerpx/src/content/docs/11-guides/input-output.md
index 24037183..deef00cb 100644
--- a/sites/cheerpx/src/content/docs/11-guides/input-output.md
+++ b/sites/cheerpx/src/content/docs/11-guides/input-output.md
@@ -53,8 +53,8 @@ const cx = await CheerpX.Linux.create({
// Mount the IDBDevice
mounts: [
{ type: "ext2", path: "/", dev: overlayDevice },
- { type: "dir", path: "/files", dev: filesDevice }
- ]
+ { type: "dir", path: "/files", dev: filesDevice },
+ ],
});
```
diff --git a/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md b/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md
index 5dfad0e4..a3eedd95 100644
--- a/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md
+++ b/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md
@@ -62,8 +62,8 @@ Example:
const cx = await CheerpX.Linux.create({
mounts: [
{ type: "ext2", path: "/", dev: overlayDevice },
- { type: "dir", path: "/app", dev: webDevice }
- ]
+ { type: "dir", path: "/app", dev: webDevice },
+ ],
});
```
diff --git a/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md b/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md
index 2eaa2ce3..6945ae4c 100644
--- a/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md
+++ b/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md
@@ -41,7 +41,7 @@ Let us try running a bash script:
```js
const result = await cx.run("/bin/bash", [
"-c",
- "for i in {1..5}; do echo $i; done"
+ "for i in {1..5}; do echo $i; done",
]);
console.log("Bash script exit status:", result.status);
```
diff --git a/sites/cheerpx/src/content/docs/13-tutorials/full_os.md b/sites/cheerpx/src/content/docs/13-tutorials/full_os.md
index 72e5a1c5..ab19fbba 100644
--- a/sites/cheerpx/src/content/docs/13-tutorials/full_os.md
+++ b/sites/cheerpx/src/content/docs/13-tutorials/full_os.md
@@ -131,7 +131,7 @@ In the same script tag, pass the `overlayDevice` as a new mount point to the `Ch
```js
const cx = await CheerpX.Linux.create({
- mounts: [{ type: "ext2", path: "/", dev: overlayDevice }]
+ mounts: [{ type: "ext2", path: "/", dev: overlayDevice }],
});
```
@@ -165,11 +165,11 @@ await cx.run("/bin/bash", ["--login"], {
"SHELL=/bin/bash",
"EDITOR=vim",
"LANG=en_US.UTF-8",
- "LC_ALL=C"
+ "LC_ALL=C",
],
cwd: "/home/user",
uid: 1000,
- gid: 1000
+ gid: 1000,
});
```
diff --git a/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md b/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md
index 4768228f..b2688e51 100644
--- a/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md
+++ b/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md
@@ -57,16 +57,16 @@ const viteServerConfig = () => ({
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
next();
});
- }
+ },
});
export default defineConfig({
optimizeDeps: {
esbuildOptions: {
- target: "es2022"
- }
+ target: "es2022",
+ },
},
- plugins: [sveltekit(), viteServerConfig()]
+ plugins: [sveltekit(), viteServerConfig()],
});
```
diff --git a/sites/labs/astro.config.mjs b/sites/labs/astro.config.mjs
index 7f6913df..e2cbd463 100644
--- a/sites/labs/astro.config.mjs
+++ b/sites/labs/astro.config.mjs
@@ -11,9 +11,9 @@ export default defineConfig({
alias: [
{
find: "@",
- replacement: resolve("./src/")
- }
- ]
- }
- }
+ replacement: resolve("./src/"),
+ },
+ ],
+ },
+ },
});
diff --git a/sites/labs/postcss.config.cjs b/sites/labs/postcss.config.cjs
index 8db3e889..bab04a41 100644
--- a/sites/labs/postcss.config.cjs
+++ b/sites/labs/postcss.config.cjs
@@ -2,6 +2,6 @@ module.exports = {
plugins: {
"tailwindcss/nesting": {},
tailwindcss: {},
- autoprefixer: {}
- }
+ autoprefixer: {},
+ },
};
diff --git a/sites/labs/src/components/landing-page/AnimatedText.svelte b/sites/labs/src/components/landing-page/AnimatedText.svelte
index 8797f65d..9c7cd542 100644
--- a/sites/labs/src/components/landing-page/AnimatedText.svelte
+++ b/sites/labs/src/components/landing-page/AnimatedText.svelte
@@ -3,7 +3,7 @@
// TODO consider making these links to relevant docs/guides
"C and C++",
"Java",
- "native code"
+ "native code",
];
let index = 0;
@@ -14,7 +14,7 @@
enum Direction {
Typing,
Deleting,
- Waiting
+ Waiting,
}
let direction = Direction.Typing;
diff --git a/sites/labs/src/components/landing-page/ClientCarousel.svelte b/sites/labs/src/components/landing-page/ClientCarousel.svelte
index aec6fc56..92b3f2e5 100644
--- a/sites/labs/src/components/landing-page/ClientCarousel.svelte
+++ b/sites/labs/src/components/landing-page/ClientCarousel.svelte
@@ -14,7 +14,7 @@
{ src: Siemens, alt: "Siemens" },
{ src: Euronext, alt: "Euronext" },
{ src: Uscustoms, alt: "Uscustoms" },
- { src: Dalkia, alt: "Dalkia" }
+ { src: Dalkia, alt: "Dalkia" },
];
// To do the scroll animation, we need to repeat the images
diff --git a/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx b/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx
index 5e8b2e75..5f40e081 100644
--- a/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx
+++ b/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx
@@ -14,7 +14,7 @@ import {
lockIcon,
browserIcon,
layersIcon,
- rocketIcon
+ rocketIcon,
} from "@leaningtech/cheerpj-applet-page";
diff --git a/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx b/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx
index 801e81b5..113e6546 100644
--- a/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx
+++ b/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx
@@ -14,7 +14,7 @@ import {
lockIcon,
browserIcon,
layersIcon,
- rocketIcon
+ rocketIcon,
} from "@leaningtech/cheerpj-jnlp-page";
diff --git a/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md b/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md
index 071da969..9dc60591 100644
--- a/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md
+++ b/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md
@@ -157,7 +157,7 @@ cheerpjInit({
// Let Java handle Ctrl+F
if (e.ctrlKey && e.keyCode == 70) return true;
return false;
- }
+ },
});
```
@@ -198,7 +198,7 @@ cheerpjInit({
appletParamFilter: function (name, value) {
if (name === "httpServer") return value.replace("http", "https");
return value;
- }
+ },
});
```
@@ -334,12 +334,12 @@ Examples:
var promise1 = cjResolveCall("com.something.ClassName", "methodName", [
"java.lang.String",
"int",
- "double"
+ "double",
]);
var promise2 = cjResolveNew("com.something.ClassName", [
"java.lang.String",
"int",
- "double"
+ "double",
]);
```
diff --git a/sites/labs/src/pages/index.astro b/sites/labs/src/pages/index.astro
index 8f32a40f..bd2331ba 100644
--- a/sites/labs/src/pages/index.astro
+++ b/sites/labs/src/pages/index.astro
@@ -16,22 +16,22 @@ const others = [
name: "WebVM",
logotype: webvmLogotype,
description:
- "Linux virtual machine running fully client-side. Powered by CheerpX."
+ "Linux virtual machine running fully client-side. Powered by CheerpX.",
},
{
href: "https://javafiddle.leaningtech.com/",
name: "JavaFiddle",
logotype: javafiddleLogotype,
description:
- "Build, run, and share snippets of Java code in your browser. Powered by CheerpJ."
+ "Build, run, and share snippets of Java code in your browser. Powered by CheerpJ.",
},
{
href: "https://pythonfiddle.leaningtech.com/",
name: "PythonFiddle",
logotype: pythonfiddleLogotype,
description:
- "Build, run, and share snippets of Python code in your browser. Powered by CheerpX."
- }
+ "Build, run, and share snippets of Python code in your browser. Powered by CheerpX.",
+ },
];
---
diff --git a/sites/labs/src/pages/rss.xml.js b/sites/labs/src/pages/rss.xml.js
index bf2a4b1c..c4d38323 100644
--- a/sites/labs/src/pages/rss.xml.js
+++ b/sites/labs/src/pages/rss.xml.js
@@ -2,7 +2,7 @@ import rss from "@astrojs/rss";
import { getCollection } from "astro:content";
import {
SITE_TITLE,
- SITE_DESCRIPTION
+ SITE_DESCRIPTION,
} from "../../../../packages/astro-theme/consts";
export async function get(context) {
@@ -13,7 +13,7 @@ export async function get(context) {
site: context.site,
items: posts.map((post) => ({
...post.data,
- link: `/blog/${post.slug}/`
- }))
+ link: `/blog/${post.slug}/`,
+ })),
});
}
diff --git a/sites/labs/svelte.config.js b/sites/labs/svelte.config.js
index 6bd9bf9d..5dc305f5 100644
--- a/sites/labs/svelte.config.js
+++ b/sites/labs/svelte.config.js
@@ -1,5 +1,5 @@
import { vitePreprocess } from "@astrojs/svelte";
export default {
- preprocess: vitePreprocess()
+ preprocess: vitePreprocess(),
};
From af611d28916f1b39c884d8c302459a43cb873bee Mon Sep 17 00:00:00 2001
From: Haseeb Qureshie
Date: Sat, 2 Nov 2024 13:03:20 +0100
Subject: [PATCH 4/6] Changed to none
---
content/blog/cheerpj-3.0rc1.mdx | 4 +-
package.json | 2 +-
.../astro-theme/components/BlogPostCard.astro | 2 +-
.../astro-theme/components/Breadcrumbs.astro | 2 +-
.../components/DocsPagination.astro | 2 +-
.../components/DocsSidebarNavEntry.astro | 10 ++--
packages/astro-theme/components/Footer.astro | 40 +++++++-------
.../components/FormattedDate.astro | 2 +-
.../astro-theme/components/LinkButton.astro | 4 +-
.../components/TableOfContents.astro | 2 +-
.../components/TableOfContentsHeading.astro | 4 +-
.../components/WasThisHelpful.astro | 4 +-
.../components/nav/global/EventBanner.svelte | 2 +-
.../components/nav/product/Link.astro | 2 +-
.../components/search/Pagefind.svelte | 4 +-
packages/astro-theme/content.ts | 14 ++---
packages/astro-theme/index.ts | 54 +++++++++----------
packages/astro-theme/layouts/BlogPost.astro | 4 +-
.../astro-theme/layouts/DocsArticle.astro | 2 +-
.../astro-theme/layouts/ProductHome.astro | 2 +-
packages/astro-theme/lib/nav.ts | 6 +--
packages/astro-theme/lib/products.ts | 18 +++----
packages/astro-theme/lib/terminal-os-tabs.js | 6 +--
packages/astro-theme/pagefind.ts | 8 +--
.../astro-theme/pages/blog/[...slug].astro | 2 +-
.../astro-theme/pages/docs/[...slug].astro | 4 +-
.../astro-theme/pages/docs/ja/[...slug].astro | 4 +-
packages/astro-theme/tailwind.ts | 28 +++++-----
packages/cheerp-ts-three-demo/three-demo.js | 6 +--
.../utilities/ImageSlider.svelte | 6 +--
.../utilities/ImageSlider.svelte | 6 +--
packages/global-navbar/src/Nav.svelte | 18 +++----
packages/global-navbar/svelte.config.js | 2 +-
packages/global-navbar/vite.config.ts | 12 ++---
sites/cheerp/astro.config.mjs | 10 ++--
.../cheerp/tutorials/hello_world/hello.js | 2 +-
.../cheerp/tutorials/tutorial_1/pong2/pong.js | 6 +--
.../cheerp/tutorials/tutorial_1/pong3/pong.js | 4 +-
.../cheerp/tutorials/tutorial_1/pong4/pong.js | 4 +-
.../cheerp/tutorials/tutorial_1/pong5/pong.js | 8 +--
.../tutorials/tutorial_1/pong5/pong_pure.js | 6 +--
...-web-frameworks-(Vue,-Reactor,-Angular).md | 2 +-
.../src/content/docs/12-reference/01-args.md | 2 +-
.../src/content/docs/12-reference/02-env.md | 2 +-
.../01-genericjs/90-memory-model.md | 4 +-
.../10-command-line-options/40-modules.md | 2 +-
sites/cheerpj/astro.config.mjs | 18 +++----
sites/cheerpj/src/content/config.ts | 6 +--
...nting-Java-native-methods-in-JavaScript.md | 6 +--
.../src/content/docs/11-guides/Networking.md | 4 +-
.../docs/12-reference/00-cheerpjInit.md | 14 ++---
.../docs/13-tutorials/04-java-browser.mdx | 2 +-
...nting-Java-native-methods-in-JavaScript.md | 6 +--
.../content/docs/ja/11-guides/Networking.md | 4 +-
.../docs/ja/12-reference/00-cheerpjInit.md | 14 ++---
.../docs/ja/13-tutorials/04-java-browser.mdx | 2 +-
sites/cheerpx/astro.config.mjs | 10 ++--
.../content/docs/10-getting-started/index.md | 8 +--
.../docs/11-guides/File-System-support.md | 2 +-
.../src/content/docs/11-guides/Networking.md | 8 +--
.../content/docs/11-guides/input-output.md | 4 +-
.../12-reference/00-CheerpX-Linux-create.md | 4 +-
.../docs/12-reference/01-CheerpX-Linux-run.md | 2 +-
.../src/content/docs/13-tutorials/full_os.md | 6 +--
.../content/docs/13-tutorials/setup-svelte.md | 8 +--
sites/labs/astro.config.mjs | 10 ++--
sites/labs/postcss.config.cjs | 4 +-
.../landing-page/AnimatedText.svelte | 4 +-
.../landing-page/ClientCarousel.svelte | 2 +-
.../docs/cheerpj-applet-runner/index.mdx | 2 +-
.../docs/cheerpj-jnlp-runner/index.mdx | 2 +-
.../docs/cheerpj2/05-reference/Runtime-API.md | 8 +--
sites/labs/src/pages/index.astro | 8 +--
sites/labs/src/pages/rss.xml.js | 6 +--
sites/labs/svelte.config.js | 2 +-
75 files changed, 258 insertions(+), 258 deletions(-)
diff --git a/content/blog/cheerpj-3.0rc1.mdx b/content/blog/cheerpj-3.0rc1.mdx
index a04ee0fc..e82ff560 100644
--- a/content/blog/cheerpj-3.0rc1.mdx
+++ b/content/blog/cheerpj-3.0rc1.mdx
@@ -80,8 +80,8 @@ await cheerpjInit({
natives: {
async Java_com_example_TestClass_alert(lib, str) {
window.alert(str);
- },
- },
+ }
+ }
});
```
diff --git a/package.json b/package.json
index 5239ee85..dd71ac56 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
"typescript": "^5.2.2"
},
"prettier": {
- "trailingComma": "es5",
+ "trailingComma": "none",
"useTabs": true,
"plugins": [
"prettier-plugin-astro",
diff --git a/packages/astro-theme/components/BlogPostCard.astro b/packages/astro-theme/components/BlogPostCard.astro
index 42538e06..c5bdb15f 100644
--- a/packages/astro-theme/components/BlogPostCard.astro
+++ b/packages/astro-theme/components/BlogPostCard.astro
@@ -37,7 +37,7 @@ const authors = await resolveAuthors(post.data.authors);
class:list={{
"font-bold text-balance text-white group-hover:text-primary-400 grow": true,
"text-2xl leading-7": size === "wide",
- "text-xl leading-6": size === "narrow",
+ "text-xl leading-6": size === "narrow"
}}
>
{post.data.title}
diff --git a/packages/astro-theme/components/Breadcrumbs.astro b/packages/astro-theme/components/Breadcrumbs.astro
index 16440d68..f6a88ef6 100644
--- a/packages/astro-theme/components/Breadcrumbs.astro
+++ b/packages/astro-theme/components/Breadcrumbs.astro
@@ -20,7 +20,7 @@ const crumbs = path
return {
title: entry.title,
url: entry.href,
- isLast: i === all.length - 1,
+ isLast: i === all.length - 1
};
});
---
diff --git a/packages/astro-theme/components/DocsPagination.astro b/packages/astro-theme/components/DocsPagination.astro
index fd35b53b..dd743f3d 100644
--- a/packages/astro-theme/components/DocsPagination.astro
+++ b/packages/astro-theme/components/DocsPagination.astro
@@ -30,7 +30,7 @@ async function getNextPrev(): Promise<{
return {
next: findValidEntry(directory.entries, activeIndex, 1),
- prev: findValidEntry(directory.entries, activeIndex, -1),
+ prev: findValidEntry(directory.entries, activeIndex, -1)
};
}
diff --git a/packages/astro-theme/components/DocsSidebarNavEntry.astro b/packages/astro-theme/components/DocsSidebarNavEntry.astro
index eafe4ac2..59e974e9 100644
--- a/packages/astro-theme/components/DocsSidebarNavEntry.astro
+++ b/packages/astro-theme/components/DocsSidebarNavEntry.astro
@@ -32,8 +32,8 @@ const title = await getLocalisedEntryTitle(entry);
"font-semibold !text-primary-500 !border-primary-600":
entry.href === pathname,
"px-4 border-l border-stone-800": depth > 0,
- "bg-primary-600 bg-opacity-5": depth > 0 && entry.href === pathname,
- },
+ "bg-primary-600 bg-opacity-5": depth > 0 && entry.href === pathname
+ }
]}
data-is-active={entry.href === pathname}
>
@@ -48,7 +48,7 @@ const title = await getLocalisedEntryTitle(entry);
0 },
+ { "pl-4 border-l border-stone-800": depth > 0 }
]}
>
@@ -57,8 +57,8 @@ const title = await getLocalisedEntryTitle(entry);
class:list={[
"block",
{
- "!text-primary-500": entry.href === pathname,
- },
+ "!text-primary-500": entry.href === pathname
+ }
]}
>
{title}
diff --git a/packages/astro-theme/components/Footer.astro b/packages/astro-theme/components/Footer.astro
index 8c9b3f1c..199948f4 100644
--- a/packages/astro-theme/components/Footer.astro
+++ b/packages/astro-theme/components/Footer.astro
@@ -31,22 +31,22 @@ const sections: Section[] = [
{ text: "CheerpX", href: "https://cheerpx.io" },
{
text: "CheerpX for Flash",
- href: "https://leaningtech.com/cheerpx-for-flash",
- },
- ],
+ href: "https://leaningtech.com/cheerpx-for-flash"
+ }
+ ]
},
{
name: t("Browser extensions", Astro.currentLocale),
links: [
{
text: "CheerpJ Applet Runner",
- href: "https://cheerpj.com/cheerpj-applet-runner/",
+ href: "https://cheerpj.com/cheerpj-applet-runner/"
},
{
text: "CheerpJ JNLP Runner",
- href: "https://cheerpj.com/cheerpj-jnlp-runner/",
- },
- ],
+ href: "https://cheerpj.com/cheerpj-jnlp-runner/"
+ }
+ ]
},
{
name: t("Resources", Astro.currentLocale),
@@ -54,44 +54,44 @@ const sections: Section[] = [
links: [
{
text: t("Documentation", Astro.currentLocale),
- href: "https://labs.leaningtech.com/#ecosystem",
+ href: "https://labs.leaningtech.com/#ecosystem"
},
{
text: t("Blog", Astro.currentLocale),
- href: "https://labs.leaningtech.com/blog",
+ href: "https://labs.leaningtech.com/blog"
},
{ text: "GitHub", href: "https://github.com/leaningtech" },
{
text: t("Contributing", Astro.currentLocale),
- href: "https://labs.leaningtech.com/docs/contributing",
- },
- ],
+ href: "https://labs.leaningtech.com/docs/contributing"
+ }
+ ]
},
{
name: t("Company", Astro.currentLocale),
links: [
{
text: t("About us", Astro.currentLocale),
- href: "https://leaningtech.com/about-us/",
+ href: "https://leaningtech.com/about-us/"
},
{
text: t("News", Astro.currentLocale),
- href: "https://leaningtech.com/news/",
+ href: "https://leaningtech.com/news/"
},
{
text: t("Partner program", Astro.currentLocale),
- href: "https://leaningtech.com/partner-programs/",
+ href: "https://leaningtech.com/partner-programs/"
},
{
text: t("Privacy policy", Astro.currentLocale),
- href: "https://leaningtech.com/privacy-policy/",
+ href: "https://leaningtech.com/privacy-policy/"
},
{
text: t("Careers", Astro.currentLocale),
- href: "https://leaningtech.freshteam.com/jobs",
- },
- ],
- },
+ href: "https://leaningtech.freshteam.com/jobs"
+ }
+ ]
+ }
];
---
diff --git a/packages/astro-theme/components/FormattedDate.astro b/packages/astro-theme/components/FormattedDate.astro
index ac5ff753..e5c1d8b0 100644
--- a/packages/astro-theme/components/FormattedDate.astro
+++ b/packages/astro-theme/components/FormattedDate.astro
@@ -11,7 +11,7 @@ const { date } = Astro.props;
date.toLocaleDateString("en-us", {
year: "numeric",
month: "long",
- day: "numeric",
+ day: "numeric"
})
}
diff --git a/packages/astro-theme/components/LinkButton.astro b/packages/astro-theme/components/LinkButton.astro
index d891ffc0..0194de94 100644
--- a/packages/astro-theme/components/LinkButton.astro
+++ b/packages/astro-theme/components/LinkButton.astro
@@ -44,8 +44,8 @@ const { href, label, type = "secondary", iconLeft, iconRight } = Astro.props;
"border-white text-white font-mono hover:border-[#e2bace] hover:text-[#e2bace]":
type === "secondary-mono",
"border-white border-opacity-30 bg-blurple text-white hover:border-opacity-80":
- type === "discord",
- },
+ type === "discord"
+ }
]}
>
{iconLeft && }
diff --git a/packages/astro-theme/components/TableOfContents.astro b/packages/astro-theme/components/TableOfContents.astro
index 10c6e0e8..e5e16355 100644
--- a/packages/astro-theme/components/TableOfContents.astro
+++ b/packages/astro-theme/components/TableOfContents.astro
@@ -1,6 +1,6 @@
---
import TableOfContentsHeading, {
- type Heading,
+ type Heading
} from "./TableOfContentsHeading.astro";
export type BasicHeading = Omit;
diff --git a/packages/astro-theme/components/TableOfContentsHeading.astro b/packages/astro-theme/components/TableOfContentsHeading.astro
index 85a6d4ea..f1d8cdcf 100644
--- a/packages/astro-theme/components/TableOfContentsHeading.astro
+++ b/packages/astro-theme/components/TableOfContentsHeading.astro
@@ -19,8 +19,8 @@ const { heading } = Astro.props;
class:list={[
"block py-1 text-stone-400 hover:text-stone-200",
{
- "font-medium": heading.depth <= 2,
- },
+ "font-medium": heading.depth <= 2
+ }
]}
>
{heading.text}
diff --git a/packages/astro-theme/components/WasThisHelpful.astro b/packages/astro-theme/components/WasThisHelpful.astro
index 26a6a616..b742ade8 100644
--- a/packages/astro-theme/components/WasThisHelpful.astro
+++ b/packages/astro-theme/components/WasThisHelpful.astro
@@ -49,8 +49,8 @@ interface Props {
props: {
reason: prompt(
"Thanks for your feedback! What could we have done better?"
- ),
- },
+ )
+ }
});
});
}
diff --git a/packages/astro-theme/components/nav/global/EventBanner.svelte b/packages/astro-theme/components/nav/global/EventBanner.svelte
index 2bd7ddf0..de8181c3 100644
--- a/packages/astro-theme/components/nav/global/EventBanner.svelte
+++ b/packages/astro-theme/components/nav/global/EventBanner.svelte
@@ -9,7 +9,7 @@
day: "numeric",
hour: "numeric",
minute: "numeric",
- hour12: true,
+ hour12: true
}).format(date);
diff --git a/packages/astro-theme/components/nav/product/Link.astro b/packages/astro-theme/components/nav/product/Link.astro
index 856459e5..b72b163a 100644
--- a/packages/astro-theme/components/nav/product/Link.astro
+++ b/packages/astro-theme/components/nav/product/Link.astro
@@ -13,7 +13,7 @@ const isActive = Astro.url.pathname.startsWith(href);
class:list={[
"flex items-center px-3 h-10 rounded-full",
{ "hover:bg-stone-800": !isActive },
- { "text-primary-500 bg-primary-600 bg-opacity-10": isActive },
+ { "text-primary-500 bg-primary-600 bg-opacity-10": isActive }
]}
>
{label}
diff --git a/packages/astro-theme/components/search/Pagefind.svelte b/packages/astro-theme/components/search/Pagefind.svelte
index 7926a348..3f9e621a 100644
--- a/packages/astro-theme/components/search/Pagefind.svelte
+++ b/packages/astro-theme/components/search/Pagefind.svelte
@@ -32,7 +32,7 @@
const response = await pagefind.debouncedSearch(query, {
filters: { productId },
- baseUrl: import.meta.env.BASE_URL,
+ baseUrl: import.meta.env.BASE_URL
});
if (response === null) {
// Debounce.
@@ -43,7 +43,7 @@
noResultsForQuery = query.length > 0 && results.length === 0;
plausible("Search", {
- props: { query, resultsCount: results.length, productId },
+ props: { query, resultsCount: results.length, productId }
});
}
diff --git a/packages/astro-theme/content.ts b/packages/astro-theme/content.ts
index 553044ff..c97c6b1f 100644
--- a/packages/astro-theme/content.ts
+++ b/packages/astro-theme/content.ts
@@ -13,8 +13,8 @@ export function defineCommonCollections() {
description: z.string().optional(),
shortTitle: z.string().optional(), // Used for nav only
fullWidthLayout: z.boolean().default(false),
- draft: z.boolean().default(false),
- }),
+ draft: z.boolean().default(false)
+ })
}),
blogauthors: defineCollection({
@@ -24,9 +24,9 @@ export function defineCommonCollections() {
jobTitle: z.string().optional(),
avatar: image().optional(),
url: z.string().optional(),
- guest: z.boolean().default(false),
+ guest: z.boolean().default(false)
}),
- type: "data",
+ type: "data"
}),
blog: defineCollection({
@@ -48,8 +48,8 @@ export function defineCommonCollections() {
heroImage: image().optional(),
featured: z.boolean().default(false),
draft: z.boolean().default(false),
- tags: productTags.optional(),
- }),
- }),
+ tags: productTags.optional()
+ })
+ })
};
}
diff --git a/packages/astro-theme/index.ts b/packages/astro-theme/index.ts
index 77424086..2d1ef071 100644
--- a/packages/astro-theme/index.ts
+++ b/packages/astro-theme/index.ts
@@ -28,7 +28,7 @@ theme.styleOverrides.frames = {
editorTabBarBackground: "transparent",
editorActiveTabBackground: "transparent",
editorActiveTabBorderBottom: "transparent",
- shadowColor: "transparent",
+ shadowColor: "transparent"
};
const dirname = import.meta.url.replace("file://", "").replace("/index.ts", "");
@@ -54,8 +54,8 @@ export default function ThemeIntegration(
codeBackground: "transparent",
borderColor: "rgb(41, 37, 36)", // border-stone-800
// doesn't work?
- frames: {},
- },
+ frames: {}
+ }
}),
mdx(),
sitemap(),
@@ -66,8 +66,8 @@ export default function ThemeIntegration(
publicDir({
// FIXME claims directory does not exist
dir: "public",
- cwd: dirname,
- }),
+ cwd: dirname
+ })
];
for (const integration of integrations) {
addIntegration(params, { integration });
@@ -75,26 +75,26 @@ export default function ThemeIntegration(
params.injectRoute({
pattern: "blog",
- entrypoint: "@leaningtech/astro-theme/pages/blog/index.astro",
+ entrypoint: "@leaningtech/astro-theme/pages/blog/index.astro"
});
params.injectRoute({
pattern: "blog/[...slug]",
- entrypoint: "@leaningtech/astro-theme/pages/blog/[...slug].astro",
+ entrypoint: "@leaningtech/astro-theme/pages/blog/[...slug].astro"
});
cpSync(contentDir, "src/content", { recursive: true }); // Needed until Astro Content Layer implemented
const docsPrefix = options.baseIsDocs ? "" : "docs";
params.injectRoute({
pattern: docsPrefix,
- entrypoint: "@leaningtech/astro-theme/pages/docs/index.astro",
+ entrypoint: "@leaningtech/astro-theme/pages/docs/index.astro"
});
params.injectRoute({
pattern: `${docsPrefix}/404`,
- entrypoint: "@leaningtech/astro-theme/pages/docs/404.astro",
+ entrypoint: "@leaningtech/astro-theme/pages/docs/404.astro"
});
params.injectRoute({
pattern: `${docsPrefix}/[...slug]`,
- entrypoint: "@leaningtech/astro-theme/pages/docs/[...slug].astro",
+ entrypoint: "@leaningtech/astro-theme/pages/docs/[...slug].astro"
});
params.updateConfig({
markdown: {
@@ -112,11 +112,11 @@ export default function ThemeIntegration(
className:
"not-prose inline-block align-middle heading-link-icon",
style: "margin-left: 8px",
- src: base + "/icons/heading-link.svg",
+ src: base + "/icons/heading-link.svg"
},
- children: [],
- },
- },
+ children: []
+ }
+ }
],
[
rehypeExternalLinks,
@@ -127,31 +127,31 @@ export default function ThemeIntegration(
properties: {
className: "not-prose inline-block align-middle",
style: "margin-left: 2px",
- src: base + "/icons/external-link.svg",
+ src: base + "/icons/external-link.svg"
},
- children: [],
+ children: []
},
- target: "_blank",
- },
- ],
- ],
+ target: "_blank"
+ }
+ ]
+ ]
},
compressHTML: prod,
build: {
format: "file",
- inlineStylesheets: "always",
+ inlineStylesheets: "always"
},
trailingSlash: "never",
image: {
- service: squooshImageService(),
+ service: squooshImageService()
},
vite: {
ssr: {
- noExternal: ["@leaningtech/global-navbar"],
- },
- },
+ noExternal: ["@leaningtech/global-navbar"]
+ }
+ }
});
- },
- },
+ }
+ }
};
}
diff --git a/packages/astro-theme/layouts/BlogPost.astro b/packages/astro-theme/layouts/BlogPost.astro
index 95908274..720abd0a 100644
--- a/packages/astro-theme/layouts/BlogPost.astro
+++ b/packages/astro-theme/layouts/BlogPost.astro
@@ -5,7 +5,7 @@ import Icon from "astro-icon";
import { SocialShare } from "astro-social-share";
import FormattedDate from "../components/FormattedDate.astro";
import TableOfContents, {
- type BasicHeading,
+ type BasicHeading
} from "../components/TableOfContents.astro";
import Footer from "../components/Footer.astro";
import BlogPostCardSet from "../components/BlogPostCardSet.astro";
@@ -131,7 +131,7 @@ if (subtitle) {
diff --git a/packages/astro-theme/layouts/DocsArticle.astro b/packages/astro-theme/layouts/DocsArticle.astro
index ff2c769d..0244d76e 100644
--- a/packages/astro-theme/layouts/DocsArticle.astro
+++ b/packages/astro-theme/layouts/DocsArticle.astro
@@ -47,7 +47,7 @@ function getEditHref(id: string): string {
diff --git a/packages/astro-theme/lib/nav.ts b/packages/astro-theme/lib/nav.ts
index e5935888..8437e169 100644
--- a/packages/astro-theme/lib/nav.ts
+++ b/packages/astro-theme/lib/nav.ts
@@ -85,7 +85,7 @@ export async function getRootNav(): Promise {
// Map of directory name to its entries. The root directory is "".
const dirPathToEntries: { [path: string]: NavEntry[] } = {
- "": root,
+ "": root
};
// Sort so shortest dir names are first
@@ -116,7 +116,7 @@ export async function getRootNav(): Promise {
dirname,
entries: myEntries,
title: idToTitle(path),
- isLanguageDirectory: locales.includes(path),
+ isLanguageDirectory: locales.includes(path)
};
parentEntries.push(me);
dirPathToEntries[path] = myEntries;
@@ -142,7 +142,7 @@ export async function getRootNav(): Promise {
href: "/docs/" + slug,
title: file.data.shortTitle ?? file.data.title,
collectionEntry: file,
- isIndex: slug === idToSlug(parentDir),
+ isIndex: slug === idToSlug(parentDir)
});
}
diff --git a/packages/astro-theme/lib/products.ts b/packages/astro-theme/lib/products.ts
index b440a06b..fcb17418 100644
--- a/packages/astro-theme/lib/products.ts
+++ b/packages/astro-theme/lib/products.ts
@@ -39,7 +39,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Cheerp is an enterprise-grade compiler toolchain that can compile C/C++ into efficient WebAssembly and JavaScript. It is open source, liberally licensed, and actively developed by Leaning Technologies.",
github: "https://github.com/leaningtech/cheerp-meta",
- repositoryName: "cheerp-meta",
+ repositoryName: "cheerp-meta"
},
cheerpj2: {
id: "cheerpj2",
@@ -52,7 +52,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.",
github: "https://github.com/leaningtech/cheerpj-meta",
- repositoryName: "cheerpj-meta",
+ repositoryName: "cheerpj-meta"
},
cheerpj3: {
id: "cheerpj3",
@@ -65,7 +65,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.",
github: "https://github.com/leaningtech/cheerpj-meta",
- repositoryName: "cheerpj-meta",
+ repositoryName: "cheerpj-meta"
},
cheerpx: {
id: "cheerpx",
@@ -78,7 +78,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"CheerpX is a JavaScript library that enables secure client-side execution of x86 binaries on any browser. Coming soon.",
github: "https://github.com/leaningtech/webvm", // TODO
- repositoryName: "webvm",
+ repositoryName: "webvm"
},
"cheerpx-for-flash": {
id: "cheerpx-for-flash",
@@ -91,7 +91,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"An HTML5 Flash emulator that allows your Flash content to run seamlessly on browsers, after the end of life of the Flash player.",
github: "https://github.com/leaningtech/cheerpx-flash",
- repositoryName: "cheerpx-flash",
+ repositoryName: "cheerpx-flash"
},
"cheerpj-jnlp-runner": {
id: "cheerpj-jnlp-runner",
@@ -104,7 +104,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Run Java Web Start Applications without a Java Desktop installation.",
github: "https://github.com/leaningtech/cheerpj-jnlp-runner",
- repositoryName: "cheerpj-jnlp-runner",
+ repositoryName: "cheerpj-jnlp-runner"
},
"cheerpj-applet-runner": {
id: "cheerpj-applet-runner",
@@ -116,7 +116,7 @@ export const products: { [product in Product]: ProductData } = {
subtitle: "Run Java Applets in the modern browser",
description: "Run Java Applets in modern browsers without plugins",
github: "https://github.com/leaningtech/cheerpj-applet-runner",
- repositoryName: "cheerpj-applet-runner",
+ repositoryName: "cheerpj-applet-runner"
},
"cheerpx-games-runner": {
id: "cheerpx-games-runner",
@@ -128,8 +128,8 @@ export const products: { [product in Product]: ProductData } = {
subtitle: "Run Games in the modern browser",
description: "Run Games in the modern browser",
github: "https://github.com/leaningtech/cheerpx-games-runner",
- repositoryName: "cheerpx-games-runner",
- },
+ repositoryName: "cheerpx-games-runner"
+ }
};
export function productFromUrl(url: URL): ProductData | undefined {
diff --git a/packages/astro-theme/lib/terminal-os-tabs.js b/packages/astro-theme/lib/terminal-os-tabs.js
index 5e31c3ee..da80e196 100644
--- a/packages/astro-theme/lib/terminal-os-tabs.js
+++ b/packages/astro-theme/lib/terminal-os-tabs.js
@@ -6,9 +6,9 @@ const replacements = [
{
win: "C:\\cheerp\\bin\\$1.exe",
mac: "/Applications/cheerp/bin/$1",
- linux: "/opt/cheerp/bin/$1",
- },
- ],
+ linux: "/opt/cheerp/bin/$1"
+ }
+ ]
];
let os = localStorage.getItem("os") ?? getOs();
diff --git a/packages/astro-theme/pagefind.ts b/packages/astro-theme/pagefind.ts
index 8e4041cb..ab372b4c 100644
--- a/packages/astro-theme/pagefind.ts
+++ b/packages/astro-theme/pagefind.ts
@@ -21,7 +21,7 @@ export default function pagefind(): AstroIntegration {
"astro:server:setup": ({ server }) => {
const serve = sirv(outDir, {
dev: true,
- etag: true,
+ etag: true
});
server.middlewares.use((req, res, next) => {
if (req.url?.startsWith("/pagefind/")) {
@@ -36,10 +36,10 @@ export default function pagefind(): AstroIntegration {
spawn("npx", ["-y", "pagefind", "--site", outDir], {
stdio: "inherit",
shell: true,
- cwd,
+ cwd
}).on("close", () => resolve());
});
- },
- },
+ }
+ }
};
}
diff --git a/packages/astro-theme/pages/blog/[...slug].astro b/packages/astro-theme/pages/blog/[...slug].astro
index 6bb133fe..abb07025 100644
--- a/packages/astro-theme/pages/blog/[...slug].astro
+++ b/packages/astro-theme/pages/blog/[...slug].astro
@@ -6,7 +6,7 @@ export async function getStaticPaths() {
const posts = await getCollection("blog");
return posts.map((post) => ({
params: { slug: post.slug },
- props: post,
+ props: post
}));
}
type Props = CollectionEntry<"blog">;
diff --git a/packages/astro-theme/pages/docs/[...slug].astro b/packages/astro-theme/pages/docs/[...slug].astro
index 561446a9..0707a1b0 100644
--- a/packages/astro-theme/pages/docs/[...slug].astro
+++ b/packages/astro-theme/pages/docs/[...slug].astro
@@ -15,9 +15,9 @@ export async function getStaticPaths() {
.map((entry) => {
return {
params: {
- slug: entry.slug,
+ slug: entry.slug
},
- props: entry,
+ props: entry
};
});
}
diff --git a/packages/astro-theme/pages/docs/ja/[...slug].astro b/packages/astro-theme/pages/docs/ja/[...slug].astro
index 07a4311a..1efc0cb4 100644
--- a/packages/astro-theme/pages/docs/ja/[...slug].astro
+++ b/packages/astro-theme/pages/docs/ja/[...slug].astro
@@ -10,9 +10,9 @@ export async function getStaticPaths() {
return entries.map((entry) => {
return {
params: {
- slug: entry.slug,
+ slug: entry.slug
},
- props: entry,
+ props: entry
};
});
}
diff --git a/packages/astro-theme/tailwind.ts b/packages/astro-theme/tailwind.ts
index 32205f51..03c20c22 100644
--- a/packages/astro-theme/tailwind.ts
+++ b/packages/astro-theme/tailwind.ts
@@ -2,7 +2,7 @@ import type { Config } from "tailwindcss";
import type {
CSSRuleObject,
PluginAPI,
- RecursiveKeyValuePair,
+ RecursiveKeyValuePair
} from "tailwindcss/types/config";
import plugin from "tailwindcss/plugin";
@@ -25,7 +25,7 @@ const exportColorsAsCssVariables = plugin(({ addBase, theme }) => {
}
addBase({
- ":root": extractColorVars(theme("colors")),
+ ":root": extractColorVars(theme("colors"))
});
});
@@ -36,14 +36,14 @@ const disabledCss = {
"code::before": false,
"code::after": false,
"blockquote p:first-of-type::before": false,
- "blockquote p:last-of-type::after": false,
+ "blockquote p:last-of-type::after": false
};
export default function makeConfig(): Config {
return {
content: [
"./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
- "../../packages/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
+ "../../packages/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"
],
theme: {
extend: {
@@ -64,9 +64,9 @@ export default function makeConfig(): Config {
"Yu Gothic", // Japanese for windows users
"Hiragino Sans", // Japanese for mac users
"Noto Sans CJK JP", // Japanese for linux users
- "sans-serif",
+ "sans-serif"
],
- mono: ["Monaspace Argon", "monospace"],
+ mono: ["Monaspace Argon", "monospace"]
},
colors: {
primary: {
@@ -76,28 +76,28 @@ export default function makeConfig(): Config {
300: "#f07d99",
200: "#f5a9bb",
100: "#fad4dd",
- 50: "#fde9ee",
+ 50: "#fde9ee"
},
cheerp: "#56f4ec",
cheerpx: "#3b516d",
- blurple: "#5865F2", // https://discord.com/branding
+ blurple: "#5865F2" // https://discord.com/branding
},
typography: (theme: PluginAPI["theme"]) => ({
stone: {
css: {
"--tw-prose-links": theme("colors.cheerp"),
- "--tw-prose-invert-links": theme("colors.primary[400]"),
- },
+ "--tw-prose-invert-links": theme("colors.primary[400]")
+ }
},
DEFAULT: { css: disabledCss },
sm: { css: disabledCss },
lg: { css: disabledCss },
xl: { css: disabledCss },
- "2xl": { css: disabledCss },
- }),
- },
+ "2xl": { css: disabledCss }
+ })
+ }
},
plugins: [require("@tailwindcss/typography"), exportColorsAsCssVariables],
- darkMode: "class",
+ darkMode: "class"
};
}
diff --git a/packages/cheerp-ts-three-demo/three-demo.js b/packages/cheerp-ts-three-demo/three-demo.js
index 645d370a..21e84956 100644
--- a/packages/cheerp-ts-three-demo/three-demo.js
+++ b/packages/cheerp-ts-three-demo/three-demo.js
@@ -41,7 +41,7 @@ function aJ(aK) {
a1: nullArray,
a2: nullArray,
a3: nullArray,
- a4: nullArray,
+ a4: nullArray
};
c = [null];
a.a0 = c;
@@ -134,8 +134,8 @@ function aC(e, d) {
a1: nullArray,
a2: nullArray,
a3: nullArray,
- a4: nullArray,
- },
+ a4: nullArray
+ }
];
c = d.a0;
a[0].a0 = c;
diff --git a/packages/cheerpj-applet-page/utilities/ImageSlider.svelte b/packages/cheerpj-applet-page/utilities/ImageSlider.svelte
index f3aa6717..3002f61b 100644
--- a/packages/cheerpj-applet-page/utilities/ImageSlider.svelte
+++ b/packages/cheerpj-applet-page/utilities/ImageSlider.svelte
@@ -5,12 +5,12 @@
let images = [
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_1.png",
- alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed.",
+ alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed."
},
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_2.png",
- alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing.",
- },
+ alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing."
+ }
];
function back() {
diff --git a/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte b/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte
index f3aa6717..3002f61b 100644
--- a/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte
+++ b/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte
@@ -5,12 +5,12 @@
let images = [
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_1.png",
- alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed.",
+ alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed."
},
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_2.png",
- alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing.",
- },
+ alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing."
+ }
];
function back() {
diff --git a/packages/global-navbar/src/Nav.svelte b/packages/global-navbar/src/Nav.svelte
index af03901a..749a6d42 100644
--- a/packages/global-navbar/src/Nav.svelte
+++ b/packages/global-navbar/src/Nav.svelte
@@ -17,31 +17,31 @@
Technology: [
{
href: "https://cheerp.io/",
- title: "Cheerp",
+ title: "Cheerp"
},
{
href: "https://cheerpj.com/",
- title: "CheerpJ",
+ title: "CheerpJ"
},
{
href: "https://cheerpx.io/",
- title: "CheerpX",
- },
+ title: "CheerpX"
+ }
],
Resources: [
{
href: "https://labs.leaningtech.com/",
- title: "Developer Hub",
+ title: "Developer Hub"
},
{
href: "https://labs.leaningtech.com/blog",
- title: "Blog",
+ title: "Blog"
},
{
href: "https://github.com/leaningtech",
- title: "GitHub",
- },
- ],
+ title: "GitHub"
+ }
+ ]
};
diff --git a/packages/global-navbar/svelte.config.js b/packages/global-navbar/svelte.config.js
index 0fb6d8e4..18d28c21 100644
--- a/packages/global-navbar/svelte.config.js
+++ b/packages/global-navbar/svelte.config.js
@@ -3,5 +3,5 @@ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
export default {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
- preprocess: vitePreprocess(),
+ preprocess: vitePreprocess()
};
diff --git a/packages/global-navbar/vite.config.ts b/packages/global-navbar/vite.config.ts
index df45d84b..ee2858d4 100644
--- a/packages/global-navbar/vite.config.ts
+++ b/packages/global-navbar/vite.config.ts
@@ -7,15 +7,15 @@ export default defineConfig({
svelte({
compilerOptions: {
dev: process.env.NODE_ENV !== "production",
- hydratable: true,
- },
- }),
+ hydratable: true
+ }
+ })
],
build: {
lib: {
formats: ["es"],
entry: resolve(__dirname, "src/index.js"),
- fileName: "global-navbar",
- },
- },
+ fileName: "global-navbar"
+ }
+ }
});
diff --git a/sites/cheerp/astro.config.mjs b/sites/cheerp/astro.config.mjs
index 22177620..589726dc 100644
--- a/sites/cheerp/astro.config.mjs
+++ b/sites/cheerp/astro.config.mjs
@@ -10,9 +10,9 @@ export default defineConfig({
alias: [
{
find: "@",
- replacement: resolve("./src/"),
- },
- ],
- },
- },
+ replacement: resolve("./src/")
+ }
+ ]
+ }
+ }
});
diff --git a/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js b/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js
index 5b4111b3..f0e06bf6 100644
--- a/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js
+++ b/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js
@@ -28,6 +28,6 @@ function i() {
}
var l = new Uint8Array([
72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 32, 87, 105, 100, 101,
- 32, 87, 101, 98, 33, 0,
+ 32, 87, 101, 98, 33, 0
]);
k();
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js
index fce8046e..ce9d02b3 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js
@@ -81,7 +81,7 @@ function e(c, d) {
}
var h;
var C = new Uint8Array([
- 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0,
+ 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0
]);
var j;
var B;
@@ -106,8 +106,8 @@ function __dummy() {
var importObject = {
imports: {
__ZN8Graphics11debugOutputEPKc: _asm_t,
- __ZN8Graphics16initializeCanvasEii: _asm_u,
- },
+ __ZN8Graphics16initializeCanvasEii: _asm_u
+ }
};
fetchBuffer("pong.wasm")
.then(
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js
index 956684bf..215ea8c9 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js
@@ -131,8 +131,8 @@ function __dummy() {
var importObject = {
imports: {
__ZN8Graphics8drawRectEiiiii: _asm_o,
- __ZN8Graphics16initializeCanvasEii: _asm_B,
- },
+ __ZN8Graphics16initializeCanvasEii: _asm_B
+ }
};
fetchBuffer("pong.wasm")
.then(
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js
index 1f687d07..99a1df61 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js
@@ -155,8 +155,8 @@ function __dummy() {
var importObject = {
imports: {
__ZN8Graphics8drawRectEiiiii: _asm_p,
- __ZN8Graphics16initializeCanvasEii: _asm_E,
- },
+ __ZN8Graphics16initializeCanvasEii: _asm_E
+ }
};
fetchBuffer("pong.wasm")
.then(
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js
index c5f4ed54..8cd38e5d 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js
@@ -174,10 +174,10 @@ var ac = new Uint8Array([114, 103, 98, 40, 0]);
var ab = new Uint8Array([44, 0]);
var af = new Uint8Array([41, 0]);
var ae = new Uint8Array([
- 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0,
+ 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0
]);
var Z = new Uint8Array([
- 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0,
+ 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0
]);
var HEAP8 = null;
var HEAP16 = null;
@@ -214,8 +214,8 @@ var importObject = {
__ZN8Graphics8drawRectEiiiii: _asm_w,
__ZN8Graphics10drawCircleEiiii: _asm_j,
__ZN8Graphics11debugOutputEPKc: _asm_U,
- __ZN8Graphics16initializeCanvasEii: _asm_S,
- },
+ __ZN8Graphics16initializeCanvasEii: _asm_S
+ }
};
fetchBuffer("pong.wasm")
.then(
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js
index d02aaec7..436f3315 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js
@@ -79,7 +79,7 @@ var stdlib = {
Uint16Array: Uint16Array,
Int32Array: Int32Array,
Float32Array: Float32Array,
- Float64Array: Float64Array,
+ Float64Array: Float64Array
};
function X(d) {
var c = -0,
@@ -277,10 +277,10 @@ var p = 200;
var n = -2;
var o = 200;
var ac = new Uint8Array([
- 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0,
+ 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0
]);
var ab = new Uint8Array([
- 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0,
+ 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0
]);
var aa = new Uint8Array([89, 111, 117, 32, 108, 111, 115, 116, 33, 0]);
var $ = [0];
diff --git a/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md b/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md
index a9fa2208..1c25211e 100644
--- a/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md
+++ b/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md
@@ -10,7 +10,7 @@ Let's say, for the sake of example, that you have a JavaScript function that exp
jsFuncWithObjectParam({
requiredParam1: 42,
requiredParam2: "String",
- optionalParam1: null,
+ optionalParam1: null
});
```
diff --git a/sites/cheerp/src/content/docs/12-reference/01-args.md b/sites/cheerp/src/content/docs/12-reference/01-args.md
index dbaf052b..c7c7b998 100644
--- a/sites/cheerp/src/content/docs/12-reference/01-args.md
+++ b/sites/cheerp/src/content/docs/12-reference/01-args.md
@@ -25,7 +25,7 @@ For JavaScript modules, you can pass the arguments through the initialization fu
import init from "./example.js";
await init({
- argv: ["a", "b", "c"],
+ argv: ["a", "b", "c"]
});
```
diff --git a/sites/cheerp/src/content/docs/12-reference/02-env.md b/sites/cheerp/src/content/docs/12-reference/02-env.md
index cea029be..8b61be68 100644
--- a/sites/cheerp/src/content/docs/12-reference/02-env.md
+++ b/sites/cheerp/src/content/docs/12-reference/02-env.md
@@ -17,7 +17,7 @@ For JavaScript modules, you can pass environment variables through the initializ
import init from "./example.js";
await init({
- env: ["A=1", "B=2"],
+ env: ["A=1", "B=2"]
});
```
diff --git a/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md b/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md
index dbe2a85d..ef2cd593 100644
--- a/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md
+++ b/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md
@@ -42,7 +42,7 @@ JavaScript Strings are not used directly by Cheerp, but they are accessible to t
```js
var a = [
{ x: 0, y: 1 },
- { x: 2, y: 3 },
+ { x: 2, y: 3 }
];
var typedA = new Int32Array(10);
```
@@ -74,7 +74,7 @@ JavaScript references support equality comparison, but they have no ordering and
```js
var a = [
{ x: 0, y: [1] },
- { x: 2, y: [3] },
+ { x: 2, y: [3] }
];
var typedA = new Int32Array(10);
var objPtr = { d: a, o: 1 };
diff --git a/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md b/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md
index 87c1f914..06a9fc43 100644
--- a/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md
+++ b/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md
@@ -102,7 +102,7 @@ fetch('/absolute/path/to/yourModule.wasm').then(buffer => {
```js
import instantiateFunction from "./yourModule.js";
instantiateFunction({
- absPath: new URL("/relative/path/to/yourModule.wasm", import.meta.url),
+ absPath: new URL("/relative/path/to/yourModule.wasm", import.meta.url)
}).then((module) => {
console.log("Module has been instantiated!");
module.someJSExportedFunc();
diff --git a/sites/cheerpj/astro.config.mjs b/sites/cheerpj/astro.config.mjs
index f6f5c92c..59913e67 100644
--- a/sites/cheerpj/astro.config.mjs
+++ b/sites/cheerpj/astro.config.mjs
@@ -8,25 +8,25 @@ export default defineConfig({
base: "/docs",
integrations: [
theme({
- baseIsDocs: true,
- }),
+ baseIsDocs: true
+ })
],
i18n: {
defaultLocale: "en",
locales: ["en", "ja", "zh"],
fallback: {
ja: "en",
- zh: "en",
- },
+ zh: "en"
+ }
},
vite: {
resolve: {
alias: [
{
find: "@",
- replacement: resolve("./src/"),
- },
- ],
- },
- },
+ replacement: resolve("./src/")
+ }
+ ]
+ }
+ }
});
diff --git a/sites/cheerpj/src/content/config.ts b/sites/cheerpj/src/content/config.ts
index 377c24c6..e01cbb30 100644
--- a/sites/cheerpj/src/content/config.ts
+++ b/sites/cheerpj/src/content/config.ts
@@ -9,9 +9,9 @@ const showcase = defineCollection({
description: z.string().optional(),
url: z.string(),
image: image().refine((img) => img.width / img.height == 1.5, {
- message: "Image must have 3:2 aspect ratio",
- }),
- }),
+ message: "Image must have 3:2 aspect ratio"
+ })
+ })
});
export const collections = { showcase, ...defineCommonCollections() };
diff --git a/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md b/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md
index 9e7ff689..3e4462c4 100644
--- a/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md
+++ b/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md
@@ -37,8 +37,8 @@ await cheerpjInit({
natives: {
async Java_Example_alert(lib, str) {
window.alert(str);
- },
- },
+ }
+ }
});
await cheerpjRunMain("Example", "/app/");
```
@@ -73,7 +73,7 @@ public class Example {
export default {
async Java_Example_alert(lib, self, message) {
window.alert(message);
- },
+ }
};
```
diff --git a/sites/cheerpj/src/content/docs/11-guides/Networking.md b/sites/cheerpj/src/content/docs/11-guides/Networking.md
index c7f68e94..92152672 100644
--- a/sites/cheerpj/src/content/docs/11-guides/Networking.md
+++ b/sites/cheerpj/src/content/docs/11-guides/Networking.md
@@ -45,7 +45,7 @@ Example for pre-authenticated users/devices:
```js
cheerpjInit({
tailscaleControlUrl: "https://my.url.com/",
- tailscaleAuthKey: "AuthKeyStringGoesHere",
+ tailscaleAuthKey: "AuthKeyStringGoesHere"
});
```
@@ -72,7 +72,7 @@ cheerpjInit({
loginElem.href = url;
loginElem.target = "_blank";
// continue with login
- },
+ }
});
```
diff --git a/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md b/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md
index f012b1e0..625ea3ba 100644
--- a/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md
+++ b/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md
@@ -164,7 +164,7 @@ Example of usage:
cheerpjInit({
beepCallback: function () {
alert("Beep!");
- },
+ }
});
```
@@ -203,7 +203,7 @@ cheerpjInit({
// Let Java handle Ctrl+F
if (e.ctrlKey && e.keyCode == 70) return true;
return false;
- },
+ }
});
```
@@ -222,7 +222,7 @@ cheerpjInit({
appletParamFilter: function (name, value) {
if (name === "httpServer") return value.replace("http", "https");
return value;
- },
+ }
});
```
@@ -241,8 +241,8 @@ cheerpjInit({
natives: {
async Java_MyClass_myMethod(lib, str) {
window.alert(str);
- },
- },
+ }
+ }
});
```
@@ -337,7 +337,7 @@ For more information visit the [Tailscale documentation](https://tailscale.com/k
cheerpjInit({
tailscaleLoginUrlCb(url) {
// your function code here to continue with login
- },
+ }
});
```
@@ -355,7 +355,7 @@ Example of usage:
cheerpjInit({
tailscaleIpCb: function (ip) {
console.log("IP address " + ip);
- },
+ }
});
```
diff --git a/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx b/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx
index 21c34e68..b15162f6 100644
--- a/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx
+++ b/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx
@@ -128,7 +128,7 @@ Connecting to a Tailscale network requires an authorization key.
```js
await cheerpjInit({
- tailscaleAuthKey: "PasteYourKeyHere",
+ tailscaleAuthKey: "PasteYourKeyHere"
});
```
diff --git a/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md b/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md
index c2cf306b..4bc93b9a 100644
--- a/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md
+++ b/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md
@@ -37,8 +37,8 @@ await cheerpjInit({
natives: {
async Java_Example_alert(lib, str) {
window.alert(str);
- },
- },
+ }
+ }
});
await cheerpjRunMain("Example", "/app/");
```
@@ -73,7 +73,7 @@ public class Example {
export default {
async Java_Example_alert(lib, self, message) {
window.alert(message);
- },
+ }
};
```
diff --git a/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md b/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md
index 86301386..3dd30d77 100644
--- a/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md
+++ b/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md
@@ -45,7 +45,7 @@ JavaアプリケーションのクライアントをTailscaleネットワーク
```js
cheerpjInit({
tailscaleControlUrl: "https://my.url.com/",
- tailscaleAuthKey: "AuthKeyStringGoesHere",
+ tailscaleAuthKey: "AuthKeyStringGoesHere"
});
```
@@ -72,7 +72,7 @@ cheerpjInit({
loginElem.href = url;
loginElem.target = "_blank";
// continue with login
- },
+ }
});
```
diff --git a/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md b/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md
index 5f984d9d..d76547a2 100644
--- a/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md
+++ b/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md
@@ -164,7 +164,7 @@ beepCallback?: () => void;
cheerpjInit({
beepCallback: function () {
alert("Beep!");
- },
+ }
});
```
@@ -202,7 +202,7 @@ cheerpjInit({
// Let Java handle Ctrl+F
if (e.ctrlKey && e.keyCode == 70) return true;
return false;
- },
+ }
});
```
@@ -221,7 +221,7 @@ cheerpjInit({
appletParamFilter: function (name, value) {
if (name === "httpServer") return value.replace("http", "https");
return value;
- },
+ }
});
```
@@ -240,8 +240,8 @@ cheerpjInit({
natives: {
async Java_MyClass_myMethod(lib, str) {
window.alert(str);
- },
- },
+ }
+ }
});
```
@@ -336,7 +336,7 @@ tailscaleLoginUrlCb?: (url: string) => void;
cheerpjInit({
tailscaleLoginUrlCb(url) {
// your function code here to continue with login
- },
+ }
});
```
@@ -354,7 +354,7 @@ tailscaleIpCb?: (ip: string) => void;
cheerpjInit({
tailscaleIpCb: function (ip) {
console.log("IP address " + ip);
- },
+ }
});
```
diff --git a/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx b/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx
index 54075147..98d7bec6 100644
--- a/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx
+++ b/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx
@@ -128,7 +128,7 @@ Tailscaleネットワークに接続するには、認証キーが必要です
```js
await cheerpjInit({
- tailscaleAuthKey: "PasteYourKeyHere",
+ tailscaleAuthKey: "PasteYourKeyHere"
});
```
diff --git a/sites/cheerpx/astro.config.mjs b/sites/cheerpx/astro.config.mjs
index cd1311ea..b78d7b02 100644
--- a/sites/cheerpx/astro.config.mjs
+++ b/sites/cheerpx/astro.config.mjs
@@ -10,9 +10,9 @@ export default defineConfig({
alias: [
{
find: "@",
- replacement: resolve("./src/"),
- },
- ],
- },
- },
+ replacement: resolve("./src/")
+ }
+ ]
+ }
+ }
});
diff --git a/sites/cheerpx/src/content/docs/10-getting-started/index.md b/sites/cheerpx/src/content/docs/10-getting-started/index.md
index b8f2e21e..9be23a46 100644
--- a/sites/cheerpx/src/content/docs/10-getting-started/index.md
+++ b/sites/cheerpx/src/content/docs/10-getting-started/index.md
@@ -66,8 +66,8 @@ The example below demonstrates how to set up the file system and devices using [
{ type: "ext2", path: "/", dev: overlayDevice },
{ type: "dir", path: "/app", dev: webDevice },
{ type: "dir", path: "/data", dev: dataDevice },
- { type: "devs", path: "/dev" },
- ],
+ { type: "devs", path: "/dev" }
+ ]
});
@@ -116,11 +116,11 @@ await cx.run("/bin/bash", ["--login"], {
"SHELL=/bin/bash",
"EDITOR=vim",
"LANG=en_US.UTF-8",
- "LC_ALL=C",
+ "LC_ALL=C"
],
cwd: "/home/user",
uid: 1000,
- gid: 1000,
+ gid: 1000
});
```
diff --git a/sites/cheerpx/src/content/docs/11-guides/File-System-support.md b/sites/cheerpx/src/content/docs/11-guides/File-System-support.md
index c9cf028d..0c9144ec 100644
--- a/sites/cheerpx/src/content/docs/11-guides/File-System-support.md
+++ b/sites/cheerpx/src/content/docs/11-guides/File-System-support.md
@@ -172,7 +172,7 @@ const idbDevice = await CheerpX.IDBDevice.create("block1");
const overlayDevice = await CheerpX.OverlayDevice.create(httpDevice, idbDevice);
const cx = await CheerpX.Linux.create({
- mounts: [{ type: "ext2", path: "/", dev: overlayDevice }],
+ mounts: [{ type: "ext2", path: "/", dev: overlayDevice }]
});
```
diff --git a/sites/cheerpx/src/content/docs/11-guides/Networking.md b/sites/cheerpx/src/content/docs/11-guides/Networking.md
index 88b3201a..e33a08b6 100644
--- a/sites/cheerpx/src/content/docs/11-guides/Networking.md
+++ b/sites/cheerpx/src/content/docs/11-guides/Networking.md
@@ -46,8 +46,8 @@ Example for pre-authenticated users/devices:
const cx = await CheerpX.Linux.create({
networkInterface: {
authKey: "AuthKeyStringGoesHere",
- controlUrl: "https://my.url.com/",
- },
+ controlUrl: "https://my.url.com/"
+ }
});
```
@@ -75,8 +75,8 @@ const cx = await CheerpX.Linux.create({
loginElem.href = url;
loginElem.target = "_blank";
// continue with login
- },
- },
+ }
+ }
});
```
diff --git a/sites/cheerpx/src/content/docs/11-guides/input-output.md b/sites/cheerpx/src/content/docs/11-guides/input-output.md
index deef00cb..24037183 100644
--- a/sites/cheerpx/src/content/docs/11-guides/input-output.md
+++ b/sites/cheerpx/src/content/docs/11-guides/input-output.md
@@ -53,8 +53,8 @@ const cx = await CheerpX.Linux.create({
// Mount the IDBDevice
mounts: [
{ type: "ext2", path: "/", dev: overlayDevice },
- { type: "dir", path: "/files", dev: filesDevice },
- ],
+ { type: "dir", path: "/files", dev: filesDevice }
+ ]
});
```
diff --git a/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md b/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md
index a3eedd95..5dfad0e4 100644
--- a/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md
+++ b/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md
@@ -62,8 +62,8 @@ Example:
const cx = await CheerpX.Linux.create({
mounts: [
{ type: "ext2", path: "/", dev: overlayDevice },
- { type: "dir", path: "/app", dev: webDevice },
- ],
+ { type: "dir", path: "/app", dev: webDevice }
+ ]
});
```
diff --git a/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md b/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md
index 6945ae4c..2eaa2ce3 100644
--- a/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md
+++ b/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md
@@ -41,7 +41,7 @@ Let us try running a bash script:
```js
const result = await cx.run("/bin/bash", [
"-c",
- "for i in {1..5}; do echo $i; done",
+ "for i in {1..5}; do echo $i; done"
]);
console.log("Bash script exit status:", result.status);
```
diff --git a/sites/cheerpx/src/content/docs/13-tutorials/full_os.md b/sites/cheerpx/src/content/docs/13-tutorials/full_os.md
index ab19fbba..72e5a1c5 100644
--- a/sites/cheerpx/src/content/docs/13-tutorials/full_os.md
+++ b/sites/cheerpx/src/content/docs/13-tutorials/full_os.md
@@ -131,7 +131,7 @@ In the same script tag, pass the `overlayDevice` as a new mount point to the `Ch
```js
const cx = await CheerpX.Linux.create({
- mounts: [{ type: "ext2", path: "/", dev: overlayDevice }],
+ mounts: [{ type: "ext2", path: "/", dev: overlayDevice }]
});
```
@@ -165,11 +165,11 @@ await cx.run("/bin/bash", ["--login"], {
"SHELL=/bin/bash",
"EDITOR=vim",
"LANG=en_US.UTF-8",
- "LC_ALL=C",
+ "LC_ALL=C"
],
cwd: "/home/user",
uid: 1000,
- gid: 1000,
+ gid: 1000
});
```
diff --git a/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md b/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md
index b2688e51..4768228f 100644
--- a/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md
+++ b/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md
@@ -57,16 +57,16 @@ const viteServerConfig = () => ({
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
next();
});
- },
+ }
});
export default defineConfig({
optimizeDeps: {
esbuildOptions: {
- target: "es2022",
- },
+ target: "es2022"
+ }
},
- plugins: [sveltekit(), viteServerConfig()],
+ plugins: [sveltekit(), viteServerConfig()]
});
```
diff --git a/sites/labs/astro.config.mjs b/sites/labs/astro.config.mjs
index e2cbd463..7f6913df 100644
--- a/sites/labs/astro.config.mjs
+++ b/sites/labs/astro.config.mjs
@@ -11,9 +11,9 @@ export default defineConfig({
alias: [
{
find: "@",
- replacement: resolve("./src/"),
- },
- ],
- },
- },
+ replacement: resolve("./src/")
+ }
+ ]
+ }
+ }
});
diff --git a/sites/labs/postcss.config.cjs b/sites/labs/postcss.config.cjs
index bab04a41..8db3e889 100644
--- a/sites/labs/postcss.config.cjs
+++ b/sites/labs/postcss.config.cjs
@@ -2,6 +2,6 @@ module.exports = {
plugins: {
"tailwindcss/nesting": {},
tailwindcss: {},
- autoprefixer: {},
- },
+ autoprefixer: {}
+ }
};
diff --git a/sites/labs/src/components/landing-page/AnimatedText.svelte b/sites/labs/src/components/landing-page/AnimatedText.svelte
index 9c7cd542..8797f65d 100644
--- a/sites/labs/src/components/landing-page/AnimatedText.svelte
+++ b/sites/labs/src/components/landing-page/AnimatedText.svelte
@@ -3,7 +3,7 @@
// TODO consider making these links to relevant docs/guides
"C and C++",
"Java",
- "native code",
+ "native code"
];
let index = 0;
@@ -14,7 +14,7 @@
enum Direction {
Typing,
Deleting,
- Waiting,
+ Waiting
}
let direction = Direction.Typing;
diff --git a/sites/labs/src/components/landing-page/ClientCarousel.svelte b/sites/labs/src/components/landing-page/ClientCarousel.svelte
index 92b3f2e5..aec6fc56 100644
--- a/sites/labs/src/components/landing-page/ClientCarousel.svelte
+++ b/sites/labs/src/components/landing-page/ClientCarousel.svelte
@@ -14,7 +14,7 @@
{ src: Siemens, alt: "Siemens" },
{ src: Euronext, alt: "Euronext" },
{ src: Uscustoms, alt: "Uscustoms" },
- { src: Dalkia, alt: "Dalkia" },
+ { src: Dalkia, alt: "Dalkia" }
];
// To do the scroll animation, we need to repeat the images
diff --git a/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx b/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx
index 5f40e081..5e8b2e75 100644
--- a/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx
+++ b/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx
@@ -14,7 +14,7 @@ import {
lockIcon,
browserIcon,
layersIcon,
- rocketIcon,
+ rocketIcon
} from "@leaningtech/cheerpj-applet-page";
diff --git a/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx b/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx
index 113e6546..801e81b5 100644
--- a/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx
+++ b/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx
@@ -14,7 +14,7 @@ import {
lockIcon,
browserIcon,
layersIcon,
- rocketIcon,
+ rocketIcon
} from "@leaningtech/cheerpj-jnlp-page";
diff --git a/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md b/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md
index 9dc60591..071da969 100644
--- a/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md
+++ b/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md
@@ -157,7 +157,7 @@ cheerpjInit({
// Let Java handle Ctrl+F
if (e.ctrlKey && e.keyCode == 70) return true;
return false;
- },
+ }
});
```
@@ -198,7 +198,7 @@ cheerpjInit({
appletParamFilter: function (name, value) {
if (name === "httpServer") return value.replace("http", "https");
return value;
- },
+ }
});
```
@@ -334,12 +334,12 @@ Examples:
var promise1 = cjResolveCall("com.something.ClassName", "methodName", [
"java.lang.String",
"int",
- "double",
+ "double"
]);
var promise2 = cjResolveNew("com.something.ClassName", [
"java.lang.String",
"int",
- "double",
+ "double"
]);
```
diff --git a/sites/labs/src/pages/index.astro b/sites/labs/src/pages/index.astro
index bd2331ba..8f32a40f 100644
--- a/sites/labs/src/pages/index.astro
+++ b/sites/labs/src/pages/index.astro
@@ -16,22 +16,22 @@ const others = [
name: "WebVM",
logotype: webvmLogotype,
description:
- "Linux virtual machine running fully client-side. Powered by CheerpX.",
+ "Linux virtual machine running fully client-side. Powered by CheerpX."
},
{
href: "https://javafiddle.leaningtech.com/",
name: "JavaFiddle",
logotype: javafiddleLogotype,
description:
- "Build, run, and share snippets of Java code in your browser. Powered by CheerpJ.",
+ "Build, run, and share snippets of Java code in your browser. Powered by CheerpJ."
},
{
href: "https://pythonfiddle.leaningtech.com/",
name: "PythonFiddle",
logotype: pythonfiddleLogotype,
description:
- "Build, run, and share snippets of Python code in your browser. Powered by CheerpX.",
- },
+ "Build, run, and share snippets of Python code in your browser. Powered by CheerpX."
+ }
];
---
diff --git a/sites/labs/src/pages/rss.xml.js b/sites/labs/src/pages/rss.xml.js
index c4d38323..bf2a4b1c 100644
--- a/sites/labs/src/pages/rss.xml.js
+++ b/sites/labs/src/pages/rss.xml.js
@@ -2,7 +2,7 @@ import rss from "@astrojs/rss";
import { getCollection } from "astro:content";
import {
SITE_TITLE,
- SITE_DESCRIPTION,
+ SITE_DESCRIPTION
} from "../../../../packages/astro-theme/consts";
export async function get(context) {
@@ -13,7 +13,7 @@ export async function get(context) {
site: context.site,
items: posts.map((post) => ({
...post.data,
- link: `/blog/${post.slug}/`,
- })),
+ link: `/blog/${post.slug}/`
+ }))
});
}
diff --git a/sites/labs/svelte.config.js b/sites/labs/svelte.config.js
index 5dc305f5..6bd9bf9d 100644
--- a/sites/labs/svelte.config.js
+++ b/sites/labs/svelte.config.js
@@ -1,5 +1,5 @@
import { vitePreprocess } from "@astrojs/svelte";
export default {
- preprocess: vitePreprocess(),
+ preprocess: vitePreprocess()
};
From 1a3e4edaa5d68f6a52a2378d27ab64c7e9d10bc1 Mon Sep 17 00:00:00 2001
From: Haseeb Qureshie
Date: Sat, 2 Nov 2024 13:11:18 +0100
Subject: [PATCH 5/6] rebased and formatted
---
.../src/content/docs/10-getting-started/index.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/sites/cheerpx/src/content/docs/10-getting-started/index.md b/sites/cheerpx/src/content/docs/10-getting-started/index.md
index 9be23a46..68289774 100644
--- a/sites/cheerpx/src/content/docs/10-getting-started/index.md
+++ b/sites/cheerpx/src/content/docs/10-getting-started/index.md
@@ -138,14 +138,14 @@ Now you can interact with the console to run commands. Make sure to give focus t
From 3beedfaa90019ea6ad34fdd969876e5e996b3edb Mon Sep 17 00:00:00 2001
From: Haseeb Qureshie
Date: Sat, 2 Nov 2024 15:42:05 +0100
Subject: [PATCH 6/6] Changed trailingCommas to es5
---
content/blog/cheerpj-3.0rc1.mdx | 4 +-
package.json | 2 +-
.../astro-theme/components/BlogPostCard.astro | 2 +-
.../astro-theme/components/Breadcrumbs.astro | 2 +-
.../components/DocsPagination.astro | 2 +-
.../components/DocsSidebarNavEntry.astro | 10 ++--
packages/astro-theme/components/Footer.astro | 40 +++++++-------
.../components/FormattedDate.astro | 2 +-
.../astro-theme/components/LinkButton.astro | 4 +-
.../components/TableOfContents.astro | 2 +-
.../components/TableOfContentsHeading.astro | 4 +-
.../components/WasThisHelpful.astro | 4 +-
.../components/nav/global/EventBanner.svelte | 2 +-
.../components/nav/product/Link.astro | 2 +-
.../components/search/Pagefind.svelte | 4 +-
packages/astro-theme/content.ts | 14 ++---
packages/astro-theme/index.ts | 54 +++++++++----------
packages/astro-theme/layouts/BlogPost.astro | 4 +-
.../astro-theme/layouts/DocsArticle.astro | 2 +-
.../astro-theme/layouts/ProductHome.astro | 2 +-
packages/astro-theme/lib/nav.ts | 6 +--
packages/astro-theme/lib/products.ts | 18 +++----
packages/astro-theme/lib/terminal-os-tabs.js | 6 +--
packages/astro-theme/pagefind.ts | 8 +--
.../astro-theme/pages/blog/[...slug].astro | 2 +-
.../astro-theme/pages/docs/[...slug].astro | 4 +-
.../astro-theme/pages/docs/ja/[...slug].astro | 4 +-
packages/astro-theme/tailwind.ts | 28 +++++-----
packages/cheerp-ts-three-demo/three-demo.js | 6 +--
.../utilities/ImageSlider.svelte | 6 +--
.../utilities/ImageSlider.svelte | 6 +--
packages/global-navbar/src/Nav.svelte | 18 +++----
packages/global-navbar/svelte.config.js | 2 +-
packages/global-navbar/vite.config.ts | 12 ++---
sites/cheerp/astro.config.mjs | 10 ++--
.../cheerp/tutorials/hello_world/hello.js | 2 +-
.../cheerp/tutorials/tutorial_1/pong2/pong.js | 6 +--
.../cheerp/tutorials/tutorial_1/pong3/pong.js | 4 +-
.../cheerp/tutorials/tutorial_1/pong4/pong.js | 4 +-
.../cheerp/tutorials/tutorial_1/pong5/pong.js | 8 +--
.../tutorials/tutorial_1/pong5/pong_pure.js | 6 +--
...-web-frameworks-(Vue,-Reactor,-Angular).md | 2 +-
.../src/content/docs/12-reference/01-args.md | 2 +-
.../src/content/docs/12-reference/02-env.md | 2 +-
.../01-genericjs/90-memory-model.md | 4 +-
.../10-command-line-options/40-modules.md | 2 +-
sites/cheerpj/astro.config.mjs | 18 +++----
sites/cheerpj/src/content/config.ts | 6 +--
...nting-Java-native-methods-in-JavaScript.md | 6 +--
.../src/content/docs/11-guides/Networking.md | 4 +-
.../docs/12-reference/00-cheerpjInit.md | 14 ++---
.../docs/13-tutorials/04-java-browser.mdx | 2 +-
...nting-Java-native-methods-in-JavaScript.md | 6 +--
.../content/docs/ja/11-guides/Networking.md | 4 +-
.../docs/ja/12-reference/00-cheerpjInit.md | 14 ++---
.../docs/ja/13-tutorials/04-java-browser.mdx | 2 +-
sites/cheerpx/astro.config.mjs | 10 ++--
.../content/docs/10-getting-started/index.md | 16 +++---
.../docs/11-guides/File-System-support.md | 2 +-
.../src/content/docs/11-guides/Networking.md | 8 +--
.../content/docs/11-guides/input-output.md | 4 +-
.../12-reference/00-CheerpX-Linux-create.md | 4 +-
.../docs/12-reference/01-CheerpX-Linux-run.md | 2 +-
.../src/content/docs/13-tutorials/full_os.md | 6 +--
.../content/docs/13-tutorials/setup-svelte.md | 8 +--
sites/labs/astro.config.mjs | 10 ++--
sites/labs/postcss.config.cjs | 4 +-
.../landing-page/AnimatedText.svelte | 4 +-
.../landing-page/ClientCarousel.svelte | 2 +-
.../docs/cheerpj-applet-runner/index.mdx | 2 +-
.../docs/cheerpj-jnlp-runner/index.mdx | 2 +-
.../docs/cheerpj2/05-reference/Runtime-API.md | 8 +--
sites/labs/src/pages/index.astro | 8 +--
sites/labs/src/pages/rss.xml.js | 6 +--
sites/labs/svelte.config.js | 2 +-
75 files changed, 262 insertions(+), 262 deletions(-)
diff --git a/content/blog/cheerpj-3.0rc1.mdx b/content/blog/cheerpj-3.0rc1.mdx
index e82ff560..a04ee0fc 100644
--- a/content/blog/cheerpj-3.0rc1.mdx
+++ b/content/blog/cheerpj-3.0rc1.mdx
@@ -80,8 +80,8 @@ await cheerpjInit({
natives: {
async Java_com_example_TestClass_alert(lib, str) {
window.alert(str);
- }
- }
+ },
+ },
});
```
diff --git a/package.json b/package.json
index dd71ac56..5239ee85 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
"typescript": "^5.2.2"
},
"prettier": {
- "trailingComma": "none",
+ "trailingComma": "es5",
"useTabs": true,
"plugins": [
"prettier-plugin-astro",
diff --git a/packages/astro-theme/components/BlogPostCard.astro b/packages/astro-theme/components/BlogPostCard.astro
index c5bdb15f..42538e06 100644
--- a/packages/astro-theme/components/BlogPostCard.astro
+++ b/packages/astro-theme/components/BlogPostCard.astro
@@ -37,7 +37,7 @@ const authors = await resolveAuthors(post.data.authors);
class:list={{
"font-bold text-balance text-white group-hover:text-primary-400 grow": true,
"text-2xl leading-7": size === "wide",
- "text-xl leading-6": size === "narrow"
+ "text-xl leading-6": size === "narrow",
}}
>
{post.data.title}
diff --git a/packages/astro-theme/components/Breadcrumbs.astro b/packages/astro-theme/components/Breadcrumbs.astro
index f6a88ef6..16440d68 100644
--- a/packages/astro-theme/components/Breadcrumbs.astro
+++ b/packages/astro-theme/components/Breadcrumbs.astro
@@ -20,7 +20,7 @@ const crumbs = path
return {
title: entry.title,
url: entry.href,
- isLast: i === all.length - 1
+ isLast: i === all.length - 1,
};
});
---
diff --git a/packages/astro-theme/components/DocsPagination.astro b/packages/astro-theme/components/DocsPagination.astro
index dd743f3d..fd35b53b 100644
--- a/packages/astro-theme/components/DocsPagination.astro
+++ b/packages/astro-theme/components/DocsPagination.astro
@@ -30,7 +30,7 @@ async function getNextPrev(): Promise<{
return {
next: findValidEntry(directory.entries, activeIndex, 1),
- prev: findValidEntry(directory.entries, activeIndex, -1)
+ prev: findValidEntry(directory.entries, activeIndex, -1),
};
}
diff --git a/packages/astro-theme/components/DocsSidebarNavEntry.astro b/packages/astro-theme/components/DocsSidebarNavEntry.astro
index 59e974e9..eafe4ac2 100644
--- a/packages/astro-theme/components/DocsSidebarNavEntry.astro
+++ b/packages/astro-theme/components/DocsSidebarNavEntry.astro
@@ -32,8 +32,8 @@ const title = await getLocalisedEntryTitle(entry);
"font-semibold !text-primary-500 !border-primary-600":
entry.href === pathname,
"px-4 border-l border-stone-800": depth > 0,
- "bg-primary-600 bg-opacity-5": depth > 0 && entry.href === pathname
- }
+ "bg-primary-600 bg-opacity-5": depth > 0 && entry.href === pathname,
+ },
]}
data-is-active={entry.href === pathname}
>
@@ -48,7 +48,7 @@ const title = await getLocalisedEntryTitle(entry);
0 }
+ { "pl-4 border-l border-stone-800": depth > 0 },
]}
>
@@ -57,8 +57,8 @@ const title = await getLocalisedEntryTitle(entry);
class:list={[
"block",
{
- "!text-primary-500": entry.href === pathname
- }
+ "!text-primary-500": entry.href === pathname,
+ },
]}
>
{title}
diff --git a/packages/astro-theme/components/Footer.astro b/packages/astro-theme/components/Footer.astro
index 199948f4..8c9b3f1c 100644
--- a/packages/astro-theme/components/Footer.astro
+++ b/packages/astro-theme/components/Footer.astro
@@ -31,22 +31,22 @@ const sections: Section[] = [
{ text: "CheerpX", href: "https://cheerpx.io" },
{
text: "CheerpX for Flash",
- href: "https://leaningtech.com/cheerpx-for-flash"
- }
- ]
+ href: "https://leaningtech.com/cheerpx-for-flash",
+ },
+ ],
},
{
name: t("Browser extensions", Astro.currentLocale),
links: [
{
text: "CheerpJ Applet Runner",
- href: "https://cheerpj.com/cheerpj-applet-runner/"
+ href: "https://cheerpj.com/cheerpj-applet-runner/",
},
{
text: "CheerpJ JNLP Runner",
- href: "https://cheerpj.com/cheerpj-jnlp-runner/"
- }
- ]
+ href: "https://cheerpj.com/cheerpj-jnlp-runner/",
+ },
+ ],
},
{
name: t("Resources", Astro.currentLocale),
@@ -54,44 +54,44 @@ const sections: Section[] = [
links: [
{
text: t("Documentation", Astro.currentLocale),
- href: "https://labs.leaningtech.com/#ecosystem"
+ href: "https://labs.leaningtech.com/#ecosystem",
},
{
text: t("Blog", Astro.currentLocale),
- href: "https://labs.leaningtech.com/blog"
+ href: "https://labs.leaningtech.com/blog",
},
{ text: "GitHub", href: "https://github.com/leaningtech" },
{
text: t("Contributing", Astro.currentLocale),
- href: "https://labs.leaningtech.com/docs/contributing"
- }
- ]
+ href: "https://labs.leaningtech.com/docs/contributing",
+ },
+ ],
},
{
name: t("Company", Astro.currentLocale),
links: [
{
text: t("About us", Astro.currentLocale),
- href: "https://leaningtech.com/about-us/"
+ href: "https://leaningtech.com/about-us/",
},
{
text: t("News", Astro.currentLocale),
- href: "https://leaningtech.com/news/"
+ href: "https://leaningtech.com/news/",
},
{
text: t("Partner program", Astro.currentLocale),
- href: "https://leaningtech.com/partner-programs/"
+ href: "https://leaningtech.com/partner-programs/",
},
{
text: t("Privacy policy", Astro.currentLocale),
- href: "https://leaningtech.com/privacy-policy/"
+ href: "https://leaningtech.com/privacy-policy/",
},
{
text: t("Careers", Astro.currentLocale),
- href: "https://leaningtech.freshteam.com/jobs"
- }
- ]
- }
+ href: "https://leaningtech.freshteam.com/jobs",
+ },
+ ],
+ },
];
---
diff --git a/packages/astro-theme/components/FormattedDate.astro b/packages/astro-theme/components/FormattedDate.astro
index e5c1d8b0..ac5ff753 100644
--- a/packages/astro-theme/components/FormattedDate.astro
+++ b/packages/astro-theme/components/FormattedDate.astro
@@ -11,7 +11,7 @@ const { date } = Astro.props;
date.toLocaleDateString("en-us", {
year: "numeric",
month: "long",
- day: "numeric"
+ day: "numeric",
})
}
diff --git a/packages/astro-theme/components/LinkButton.astro b/packages/astro-theme/components/LinkButton.astro
index 0194de94..d891ffc0 100644
--- a/packages/astro-theme/components/LinkButton.astro
+++ b/packages/astro-theme/components/LinkButton.astro
@@ -44,8 +44,8 @@ const { href, label, type = "secondary", iconLeft, iconRight } = Astro.props;
"border-white text-white font-mono hover:border-[#e2bace] hover:text-[#e2bace]":
type === "secondary-mono",
"border-white border-opacity-30 bg-blurple text-white hover:border-opacity-80":
- type === "discord"
- }
+ type === "discord",
+ },
]}
>
{iconLeft && }
diff --git a/packages/astro-theme/components/TableOfContents.astro b/packages/astro-theme/components/TableOfContents.astro
index e5e16355..10c6e0e8 100644
--- a/packages/astro-theme/components/TableOfContents.astro
+++ b/packages/astro-theme/components/TableOfContents.astro
@@ -1,6 +1,6 @@
---
import TableOfContentsHeading, {
- type Heading
+ type Heading,
} from "./TableOfContentsHeading.astro";
export type BasicHeading = Omit;
diff --git a/packages/astro-theme/components/TableOfContentsHeading.astro b/packages/astro-theme/components/TableOfContentsHeading.astro
index f1d8cdcf..85a6d4ea 100644
--- a/packages/astro-theme/components/TableOfContentsHeading.astro
+++ b/packages/astro-theme/components/TableOfContentsHeading.astro
@@ -19,8 +19,8 @@ const { heading } = Astro.props;
class:list={[
"block py-1 text-stone-400 hover:text-stone-200",
{
- "font-medium": heading.depth <= 2
- }
+ "font-medium": heading.depth <= 2,
+ },
]}
>
{heading.text}
diff --git a/packages/astro-theme/components/WasThisHelpful.astro b/packages/astro-theme/components/WasThisHelpful.astro
index b742ade8..26a6a616 100644
--- a/packages/astro-theme/components/WasThisHelpful.astro
+++ b/packages/astro-theme/components/WasThisHelpful.astro
@@ -49,8 +49,8 @@ interface Props {
props: {
reason: prompt(
"Thanks for your feedback! What could we have done better?"
- )
- }
+ ),
+ },
});
});
}
diff --git a/packages/astro-theme/components/nav/global/EventBanner.svelte b/packages/astro-theme/components/nav/global/EventBanner.svelte
index de8181c3..2bd7ddf0 100644
--- a/packages/astro-theme/components/nav/global/EventBanner.svelte
+++ b/packages/astro-theme/components/nav/global/EventBanner.svelte
@@ -9,7 +9,7 @@
day: "numeric",
hour: "numeric",
minute: "numeric",
- hour12: true
+ hour12: true,
}).format(date);
diff --git a/packages/astro-theme/components/nav/product/Link.astro b/packages/astro-theme/components/nav/product/Link.astro
index b72b163a..856459e5 100644
--- a/packages/astro-theme/components/nav/product/Link.astro
+++ b/packages/astro-theme/components/nav/product/Link.astro
@@ -13,7 +13,7 @@ const isActive = Astro.url.pathname.startsWith(href);
class:list={[
"flex items-center px-3 h-10 rounded-full",
{ "hover:bg-stone-800": !isActive },
- { "text-primary-500 bg-primary-600 bg-opacity-10": isActive }
+ { "text-primary-500 bg-primary-600 bg-opacity-10": isActive },
]}
>
{label}
diff --git a/packages/astro-theme/components/search/Pagefind.svelte b/packages/astro-theme/components/search/Pagefind.svelte
index 3f9e621a..7926a348 100644
--- a/packages/astro-theme/components/search/Pagefind.svelte
+++ b/packages/astro-theme/components/search/Pagefind.svelte
@@ -32,7 +32,7 @@
const response = await pagefind.debouncedSearch(query, {
filters: { productId },
- baseUrl: import.meta.env.BASE_URL
+ baseUrl: import.meta.env.BASE_URL,
});
if (response === null) {
// Debounce.
@@ -43,7 +43,7 @@
noResultsForQuery = query.length > 0 && results.length === 0;
plausible("Search", {
- props: { query, resultsCount: results.length, productId }
+ props: { query, resultsCount: results.length, productId },
});
}
diff --git a/packages/astro-theme/content.ts b/packages/astro-theme/content.ts
index c97c6b1f..553044ff 100644
--- a/packages/astro-theme/content.ts
+++ b/packages/astro-theme/content.ts
@@ -13,8 +13,8 @@ export function defineCommonCollections() {
description: z.string().optional(),
shortTitle: z.string().optional(), // Used for nav only
fullWidthLayout: z.boolean().default(false),
- draft: z.boolean().default(false)
- })
+ draft: z.boolean().default(false),
+ }),
}),
blogauthors: defineCollection({
@@ -24,9 +24,9 @@ export function defineCommonCollections() {
jobTitle: z.string().optional(),
avatar: image().optional(),
url: z.string().optional(),
- guest: z.boolean().default(false)
+ guest: z.boolean().default(false),
}),
- type: "data"
+ type: "data",
}),
blog: defineCollection({
@@ -48,8 +48,8 @@ export function defineCommonCollections() {
heroImage: image().optional(),
featured: z.boolean().default(false),
draft: z.boolean().default(false),
- tags: productTags.optional()
- })
- })
+ tags: productTags.optional(),
+ }),
+ }),
};
}
diff --git a/packages/astro-theme/index.ts b/packages/astro-theme/index.ts
index 2d1ef071..77424086 100644
--- a/packages/astro-theme/index.ts
+++ b/packages/astro-theme/index.ts
@@ -28,7 +28,7 @@ theme.styleOverrides.frames = {
editorTabBarBackground: "transparent",
editorActiveTabBackground: "transparent",
editorActiveTabBorderBottom: "transparent",
- shadowColor: "transparent"
+ shadowColor: "transparent",
};
const dirname = import.meta.url.replace("file://", "").replace("/index.ts", "");
@@ -54,8 +54,8 @@ export default function ThemeIntegration(
codeBackground: "transparent",
borderColor: "rgb(41, 37, 36)", // border-stone-800
// doesn't work?
- frames: {}
- }
+ frames: {},
+ },
}),
mdx(),
sitemap(),
@@ -66,8 +66,8 @@ export default function ThemeIntegration(
publicDir({
// FIXME claims directory does not exist
dir: "public",
- cwd: dirname
- })
+ cwd: dirname,
+ }),
];
for (const integration of integrations) {
addIntegration(params, { integration });
@@ -75,26 +75,26 @@ export default function ThemeIntegration(
params.injectRoute({
pattern: "blog",
- entrypoint: "@leaningtech/astro-theme/pages/blog/index.astro"
+ entrypoint: "@leaningtech/astro-theme/pages/blog/index.astro",
});
params.injectRoute({
pattern: "blog/[...slug]",
- entrypoint: "@leaningtech/astro-theme/pages/blog/[...slug].astro"
+ entrypoint: "@leaningtech/astro-theme/pages/blog/[...slug].astro",
});
cpSync(contentDir, "src/content", { recursive: true }); // Needed until Astro Content Layer implemented
const docsPrefix = options.baseIsDocs ? "" : "docs";
params.injectRoute({
pattern: docsPrefix,
- entrypoint: "@leaningtech/astro-theme/pages/docs/index.astro"
+ entrypoint: "@leaningtech/astro-theme/pages/docs/index.astro",
});
params.injectRoute({
pattern: `${docsPrefix}/404`,
- entrypoint: "@leaningtech/astro-theme/pages/docs/404.astro"
+ entrypoint: "@leaningtech/astro-theme/pages/docs/404.astro",
});
params.injectRoute({
pattern: `${docsPrefix}/[...slug]`,
- entrypoint: "@leaningtech/astro-theme/pages/docs/[...slug].astro"
+ entrypoint: "@leaningtech/astro-theme/pages/docs/[...slug].astro",
});
params.updateConfig({
markdown: {
@@ -112,11 +112,11 @@ export default function ThemeIntegration(
className:
"not-prose inline-block align-middle heading-link-icon",
style: "margin-left: 8px",
- src: base + "/icons/heading-link.svg"
+ src: base + "/icons/heading-link.svg",
},
- children: []
- }
- }
+ children: [],
+ },
+ },
],
[
rehypeExternalLinks,
@@ -127,31 +127,31 @@ export default function ThemeIntegration(
properties: {
className: "not-prose inline-block align-middle",
style: "margin-left: 2px",
- src: base + "/icons/external-link.svg"
+ src: base + "/icons/external-link.svg",
},
- children: []
+ children: [],
},
- target: "_blank"
- }
- ]
- ]
+ target: "_blank",
+ },
+ ],
+ ],
},
compressHTML: prod,
build: {
format: "file",
- inlineStylesheets: "always"
+ inlineStylesheets: "always",
},
trailingSlash: "never",
image: {
- service: squooshImageService()
+ service: squooshImageService(),
},
vite: {
ssr: {
- noExternal: ["@leaningtech/global-navbar"]
- }
- }
+ noExternal: ["@leaningtech/global-navbar"],
+ },
+ },
});
- }
- }
+ },
+ },
};
}
diff --git a/packages/astro-theme/layouts/BlogPost.astro b/packages/astro-theme/layouts/BlogPost.astro
index 720abd0a..95908274 100644
--- a/packages/astro-theme/layouts/BlogPost.astro
+++ b/packages/astro-theme/layouts/BlogPost.astro
@@ -5,7 +5,7 @@ import Icon from "astro-icon";
import { SocialShare } from "astro-social-share";
import FormattedDate from "../components/FormattedDate.astro";
import TableOfContents, {
- type BasicHeading
+ type BasicHeading,
} from "../components/TableOfContents.astro";
import Footer from "../components/Footer.astro";
import BlogPostCardSet from "../components/BlogPostCardSet.astro";
@@ -131,7 +131,7 @@ if (subtitle) {
diff --git a/packages/astro-theme/layouts/DocsArticle.astro b/packages/astro-theme/layouts/DocsArticle.astro
index 0244d76e..ff2c769d 100644
--- a/packages/astro-theme/layouts/DocsArticle.astro
+++ b/packages/astro-theme/layouts/DocsArticle.astro
@@ -47,7 +47,7 @@ function getEditHref(id: string): string {
diff --git a/packages/astro-theme/lib/nav.ts b/packages/astro-theme/lib/nav.ts
index 8437e169..e5935888 100644
--- a/packages/astro-theme/lib/nav.ts
+++ b/packages/astro-theme/lib/nav.ts
@@ -85,7 +85,7 @@ export async function getRootNav(): Promise {
// Map of directory name to its entries. The root directory is "".
const dirPathToEntries: { [path: string]: NavEntry[] } = {
- "": root
+ "": root,
};
// Sort so shortest dir names are first
@@ -116,7 +116,7 @@ export async function getRootNav(): Promise {
dirname,
entries: myEntries,
title: idToTitle(path),
- isLanguageDirectory: locales.includes(path)
+ isLanguageDirectory: locales.includes(path),
};
parentEntries.push(me);
dirPathToEntries[path] = myEntries;
@@ -142,7 +142,7 @@ export async function getRootNav(): Promise {
href: "/docs/" + slug,
title: file.data.shortTitle ?? file.data.title,
collectionEntry: file,
- isIndex: slug === idToSlug(parentDir)
+ isIndex: slug === idToSlug(parentDir),
});
}
diff --git a/packages/astro-theme/lib/products.ts b/packages/astro-theme/lib/products.ts
index fcb17418..b440a06b 100644
--- a/packages/astro-theme/lib/products.ts
+++ b/packages/astro-theme/lib/products.ts
@@ -39,7 +39,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Cheerp is an enterprise-grade compiler toolchain that can compile C/C++ into efficient WebAssembly and JavaScript. It is open source, liberally licensed, and actively developed by Leaning Technologies.",
github: "https://github.com/leaningtech/cheerp-meta",
- repositoryName: "cheerp-meta"
+ repositoryName: "cheerp-meta",
},
cheerpj2: {
id: "cheerpj2",
@@ -52,7 +52,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.",
github: "https://github.com/leaningtech/cheerpj-meta",
- repositoryName: "cheerpj-meta"
+ repositoryName: "cheerpj-meta",
},
cheerpj3: {
id: "cheerpj3",
@@ -65,7 +65,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.",
github: "https://github.com/leaningtech/cheerpj-meta",
- repositoryName: "cheerpj-meta"
+ repositoryName: "cheerpj-meta",
},
cheerpx: {
id: "cheerpx",
@@ -78,7 +78,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"CheerpX is a JavaScript library that enables secure client-side execution of x86 binaries on any browser. Coming soon.",
github: "https://github.com/leaningtech/webvm", // TODO
- repositoryName: "webvm"
+ repositoryName: "webvm",
},
"cheerpx-for-flash": {
id: "cheerpx-for-flash",
@@ -91,7 +91,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"An HTML5 Flash emulator that allows your Flash content to run seamlessly on browsers, after the end of life of the Flash player.",
github: "https://github.com/leaningtech/cheerpx-flash",
- repositoryName: "cheerpx-flash"
+ repositoryName: "cheerpx-flash",
},
"cheerpj-jnlp-runner": {
id: "cheerpj-jnlp-runner",
@@ -104,7 +104,7 @@ export const products: { [product in Product]: ProductData } = {
description:
"Run Java Web Start Applications without a Java Desktop installation.",
github: "https://github.com/leaningtech/cheerpj-jnlp-runner",
- repositoryName: "cheerpj-jnlp-runner"
+ repositoryName: "cheerpj-jnlp-runner",
},
"cheerpj-applet-runner": {
id: "cheerpj-applet-runner",
@@ -116,7 +116,7 @@ export const products: { [product in Product]: ProductData } = {
subtitle: "Run Java Applets in the modern browser",
description: "Run Java Applets in modern browsers without plugins",
github: "https://github.com/leaningtech/cheerpj-applet-runner",
- repositoryName: "cheerpj-applet-runner"
+ repositoryName: "cheerpj-applet-runner",
},
"cheerpx-games-runner": {
id: "cheerpx-games-runner",
@@ -128,8 +128,8 @@ export const products: { [product in Product]: ProductData } = {
subtitle: "Run Games in the modern browser",
description: "Run Games in the modern browser",
github: "https://github.com/leaningtech/cheerpx-games-runner",
- repositoryName: "cheerpx-games-runner"
- }
+ repositoryName: "cheerpx-games-runner",
+ },
};
export function productFromUrl(url: URL): ProductData | undefined {
diff --git a/packages/astro-theme/lib/terminal-os-tabs.js b/packages/astro-theme/lib/terminal-os-tabs.js
index da80e196..5e31c3ee 100644
--- a/packages/astro-theme/lib/terminal-os-tabs.js
+++ b/packages/astro-theme/lib/terminal-os-tabs.js
@@ -6,9 +6,9 @@ const replacements = [
{
win: "C:\\cheerp\\bin\\$1.exe",
mac: "/Applications/cheerp/bin/$1",
- linux: "/opt/cheerp/bin/$1"
- }
- ]
+ linux: "/opt/cheerp/bin/$1",
+ },
+ ],
];
let os = localStorage.getItem("os") ?? getOs();
diff --git a/packages/astro-theme/pagefind.ts b/packages/astro-theme/pagefind.ts
index ab372b4c..8e4041cb 100644
--- a/packages/astro-theme/pagefind.ts
+++ b/packages/astro-theme/pagefind.ts
@@ -21,7 +21,7 @@ export default function pagefind(): AstroIntegration {
"astro:server:setup": ({ server }) => {
const serve = sirv(outDir, {
dev: true,
- etag: true
+ etag: true,
});
server.middlewares.use((req, res, next) => {
if (req.url?.startsWith("/pagefind/")) {
@@ -36,10 +36,10 @@ export default function pagefind(): AstroIntegration {
spawn("npx", ["-y", "pagefind", "--site", outDir], {
stdio: "inherit",
shell: true,
- cwd
+ cwd,
}).on("close", () => resolve());
});
- }
- }
+ },
+ },
};
}
diff --git a/packages/astro-theme/pages/blog/[...slug].astro b/packages/astro-theme/pages/blog/[...slug].astro
index abb07025..6bb133fe 100644
--- a/packages/astro-theme/pages/blog/[...slug].astro
+++ b/packages/astro-theme/pages/blog/[...slug].astro
@@ -6,7 +6,7 @@ export async function getStaticPaths() {
const posts = await getCollection("blog");
return posts.map((post) => ({
params: { slug: post.slug },
- props: post
+ props: post,
}));
}
type Props = CollectionEntry<"blog">;
diff --git a/packages/astro-theme/pages/docs/[...slug].astro b/packages/astro-theme/pages/docs/[...slug].astro
index 0707a1b0..561446a9 100644
--- a/packages/astro-theme/pages/docs/[...slug].astro
+++ b/packages/astro-theme/pages/docs/[...slug].astro
@@ -15,9 +15,9 @@ export async function getStaticPaths() {
.map((entry) => {
return {
params: {
- slug: entry.slug
+ slug: entry.slug,
},
- props: entry
+ props: entry,
};
});
}
diff --git a/packages/astro-theme/pages/docs/ja/[...slug].astro b/packages/astro-theme/pages/docs/ja/[...slug].astro
index 1efc0cb4..07a4311a 100644
--- a/packages/astro-theme/pages/docs/ja/[...slug].astro
+++ b/packages/astro-theme/pages/docs/ja/[...slug].astro
@@ -10,9 +10,9 @@ export async function getStaticPaths() {
return entries.map((entry) => {
return {
params: {
- slug: entry.slug
+ slug: entry.slug,
},
- props: entry
+ props: entry,
};
});
}
diff --git a/packages/astro-theme/tailwind.ts b/packages/astro-theme/tailwind.ts
index 03c20c22..32205f51 100644
--- a/packages/astro-theme/tailwind.ts
+++ b/packages/astro-theme/tailwind.ts
@@ -2,7 +2,7 @@ import type { Config } from "tailwindcss";
import type {
CSSRuleObject,
PluginAPI,
- RecursiveKeyValuePair
+ RecursiveKeyValuePair,
} from "tailwindcss/types/config";
import plugin from "tailwindcss/plugin";
@@ -25,7 +25,7 @@ const exportColorsAsCssVariables = plugin(({ addBase, theme }) => {
}
addBase({
- ":root": extractColorVars(theme("colors"))
+ ":root": extractColorVars(theme("colors")),
});
});
@@ -36,14 +36,14 @@ const disabledCss = {
"code::before": false,
"code::after": false,
"blockquote p:first-of-type::before": false,
- "blockquote p:last-of-type::after": false
+ "blockquote p:last-of-type::after": false,
};
export default function makeConfig(): Config {
return {
content: [
"./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
- "../../packages/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"
+ "../../packages/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
],
theme: {
extend: {
@@ -64,9 +64,9 @@ export default function makeConfig(): Config {
"Yu Gothic", // Japanese for windows users
"Hiragino Sans", // Japanese for mac users
"Noto Sans CJK JP", // Japanese for linux users
- "sans-serif"
+ "sans-serif",
],
- mono: ["Monaspace Argon", "monospace"]
+ mono: ["Monaspace Argon", "monospace"],
},
colors: {
primary: {
@@ -76,28 +76,28 @@ export default function makeConfig(): Config {
300: "#f07d99",
200: "#f5a9bb",
100: "#fad4dd",
- 50: "#fde9ee"
+ 50: "#fde9ee",
},
cheerp: "#56f4ec",
cheerpx: "#3b516d",
- blurple: "#5865F2" // https://discord.com/branding
+ blurple: "#5865F2", // https://discord.com/branding
},
typography: (theme: PluginAPI["theme"]) => ({
stone: {
css: {
"--tw-prose-links": theme("colors.cheerp"),
- "--tw-prose-invert-links": theme("colors.primary[400]")
- }
+ "--tw-prose-invert-links": theme("colors.primary[400]"),
+ },
},
DEFAULT: { css: disabledCss },
sm: { css: disabledCss },
lg: { css: disabledCss },
xl: { css: disabledCss },
- "2xl": { css: disabledCss }
- })
- }
+ "2xl": { css: disabledCss },
+ }),
+ },
},
plugins: [require("@tailwindcss/typography"), exportColorsAsCssVariables],
- darkMode: "class"
+ darkMode: "class",
};
}
diff --git a/packages/cheerp-ts-three-demo/three-demo.js b/packages/cheerp-ts-three-demo/three-demo.js
index 21e84956..645d370a 100644
--- a/packages/cheerp-ts-three-demo/three-demo.js
+++ b/packages/cheerp-ts-three-demo/three-demo.js
@@ -41,7 +41,7 @@ function aJ(aK) {
a1: nullArray,
a2: nullArray,
a3: nullArray,
- a4: nullArray
+ a4: nullArray,
};
c = [null];
a.a0 = c;
@@ -134,8 +134,8 @@ function aC(e, d) {
a1: nullArray,
a2: nullArray,
a3: nullArray,
- a4: nullArray
- }
+ a4: nullArray,
+ },
];
c = d.a0;
a[0].a0 = c;
diff --git a/packages/cheerpj-applet-page/utilities/ImageSlider.svelte b/packages/cheerpj-applet-page/utilities/ImageSlider.svelte
index 3002f61b..f3aa6717 100644
--- a/packages/cheerpj-applet-page/utilities/ImageSlider.svelte
+++ b/packages/cheerpj-applet-page/utilities/ImageSlider.svelte
@@ -5,12 +5,12 @@
let images = [
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_1.png",
- alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed."
+ alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed.",
},
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_2.png",
- alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing."
- }
+ alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing.",
+ },
];
function back() {
diff --git a/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte b/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte
index 3002f61b..f3aa6717 100644
--- a/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte
+++ b/packages/cheerpj-jnlp-page/utilities/ImageSlider.svelte
@@ -5,12 +5,12 @@
let images = [
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_1.png",
- alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed."
+ alt: "Run Java Web Start applications. No Java installations. Easy to use. Sandboxed.",
},
{
src: "/cheerpj3/assets/jnlp-screenshots/screenshot_2.png",
- alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing."
- }
+ alt: "Extensive Java compatibility. Swing. Oracle Forms. Oracle EBS. File System. Clipboard. Networking. Printing.",
+ },
];
function back() {
diff --git a/packages/global-navbar/src/Nav.svelte b/packages/global-navbar/src/Nav.svelte
index 749a6d42..af03901a 100644
--- a/packages/global-navbar/src/Nav.svelte
+++ b/packages/global-navbar/src/Nav.svelte
@@ -17,31 +17,31 @@
Technology: [
{
href: "https://cheerp.io/",
- title: "Cheerp"
+ title: "Cheerp",
},
{
href: "https://cheerpj.com/",
- title: "CheerpJ"
+ title: "CheerpJ",
},
{
href: "https://cheerpx.io/",
- title: "CheerpX"
- }
+ title: "CheerpX",
+ },
],
Resources: [
{
href: "https://labs.leaningtech.com/",
- title: "Developer Hub"
+ title: "Developer Hub",
},
{
href: "https://labs.leaningtech.com/blog",
- title: "Blog"
+ title: "Blog",
},
{
href: "https://github.com/leaningtech",
- title: "GitHub"
- }
- ]
+ title: "GitHub",
+ },
+ ],
};
diff --git a/packages/global-navbar/svelte.config.js b/packages/global-navbar/svelte.config.js
index 18d28c21..0fb6d8e4 100644
--- a/packages/global-navbar/svelte.config.js
+++ b/packages/global-navbar/svelte.config.js
@@ -3,5 +3,5 @@ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
export default {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
- preprocess: vitePreprocess()
+ preprocess: vitePreprocess(),
};
diff --git a/packages/global-navbar/vite.config.ts b/packages/global-navbar/vite.config.ts
index ee2858d4..df45d84b 100644
--- a/packages/global-navbar/vite.config.ts
+++ b/packages/global-navbar/vite.config.ts
@@ -7,15 +7,15 @@ export default defineConfig({
svelte({
compilerOptions: {
dev: process.env.NODE_ENV !== "production",
- hydratable: true
- }
- })
+ hydratable: true,
+ },
+ }),
],
build: {
lib: {
formats: ["es"],
entry: resolve(__dirname, "src/index.js"),
- fileName: "global-navbar"
- }
- }
+ fileName: "global-navbar",
+ },
+ },
});
diff --git a/sites/cheerp/astro.config.mjs b/sites/cheerp/astro.config.mjs
index 589726dc..22177620 100644
--- a/sites/cheerp/astro.config.mjs
+++ b/sites/cheerp/astro.config.mjs
@@ -10,9 +10,9 @@ export default defineConfig({
alias: [
{
find: "@",
- replacement: resolve("./src/")
- }
- ]
- }
- }
+ replacement: resolve("./src/"),
+ },
+ ],
+ },
+ },
});
diff --git a/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js b/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js
index f0e06bf6..5b4111b3 100644
--- a/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js
+++ b/sites/cheerp/public/cheerp/tutorials/hello_world/hello.js
@@ -28,6 +28,6 @@ function i() {
}
var l = new Uint8Array([
72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 32, 87, 105, 100, 101,
- 32, 87, 101, 98, 33, 0
+ 32, 87, 101, 98, 33, 0,
]);
k();
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js
index ce9d02b3..fce8046e 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong2/pong.js
@@ -81,7 +81,7 @@ function e(c, d) {
}
var h;
var C = new Uint8Array([
- 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0
+ 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0,
]);
var j;
var B;
@@ -106,8 +106,8 @@ function __dummy() {
var importObject = {
imports: {
__ZN8Graphics11debugOutputEPKc: _asm_t,
- __ZN8Graphics16initializeCanvasEii: _asm_u
- }
+ __ZN8Graphics16initializeCanvasEii: _asm_u,
+ },
};
fetchBuffer("pong.wasm")
.then(
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js
index 215ea8c9..956684bf 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong3/pong.js
@@ -131,8 +131,8 @@ function __dummy() {
var importObject = {
imports: {
__ZN8Graphics8drawRectEiiiii: _asm_o,
- __ZN8Graphics16initializeCanvasEii: _asm_B
- }
+ __ZN8Graphics16initializeCanvasEii: _asm_B,
+ },
};
fetchBuffer("pong.wasm")
.then(
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js
index 99a1df61..1f687d07 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong4/pong.js
@@ -155,8 +155,8 @@ function __dummy() {
var importObject = {
imports: {
__ZN8Graphics8drawRectEiiiii: _asm_p,
- __ZN8Graphics16initializeCanvasEii: _asm_E
- }
+ __ZN8Graphics16initializeCanvasEii: _asm_E,
+ },
};
fetchBuffer("pong.wasm")
.then(
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js
index 8cd38e5d..c5f4ed54 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong.js
@@ -174,10 +174,10 @@ var ac = new Uint8Array([114, 103, 98, 40, 0]);
var ab = new Uint8Array([44, 0]);
var af = new Uint8Array([41, 0]);
var ae = new Uint8Array([
- 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0
+ 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0,
]);
var Z = new Uint8Array([
- 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0
+ 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0,
]);
var HEAP8 = null;
var HEAP16 = null;
@@ -214,8 +214,8 @@ var importObject = {
__ZN8Graphics8drawRectEiiiii: _asm_w,
__ZN8Graphics10drawCircleEiiii: _asm_j,
__ZN8Graphics11debugOutputEPKc: _asm_U,
- __ZN8Graphics16initializeCanvasEii: _asm_S
- }
+ __ZN8Graphics16initializeCanvasEii: _asm_S,
+ },
};
fetchBuffer("pong.wasm")
.then(
diff --git a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js
index 436f3315..d02aaec7 100644
--- a/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js
+++ b/sites/cheerp/public/cheerp/tutorials/tutorial_1/pong5/pong_pure.js
@@ -79,7 +79,7 @@ var stdlib = {
Uint16Array: Uint16Array,
Int32Array: Int32Array,
Float32Array: Float32Array,
- Float64Array: Float64Array
+ Float64Array: Float64Array,
};
function X(d) {
var c = -0,
@@ -277,10 +277,10 @@ var p = 200;
var n = -2;
var o = 200;
var ac = new Uint8Array([
- 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0
+ 50, 52, 112, 120, 32, 115, 97, 110, 115, 45, 115, 101, 114, 105, 102, 0,
]);
var ab = new Uint8Array([
- 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0
+ 114, 103, 98, 40, 50, 53, 53, 44, 50, 53, 53, 44, 50, 53, 53, 41, 0,
]);
var aa = new Uint8Array([89, 111, 117, 32, 108, 111, 115, 116, 33, 0]);
var $ = [0];
diff --git a/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md b/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md
index 1c25211e..a9fa2208 100644
--- a/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md
+++ b/sites/cheerp/src/content/docs/11-guides/20-js-interop/Interoperability-with-web-frameworks-(Vue,-Reactor,-Angular).md
@@ -10,7 +10,7 @@ Let's say, for the sake of example, that you have a JavaScript function that exp
jsFuncWithObjectParam({
requiredParam1: 42,
requiredParam2: "String",
- optionalParam1: null
+ optionalParam1: null,
});
```
diff --git a/sites/cheerp/src/content/docs/12-reference/01-args.md b/sites/cheerp/src/content/docs/12-reference/01-args.md
index c7c7b998..dbaf052b 100644
--- a/sites/cheerp/src/content/docs/12-reference/01-args.md
+++ b/sites/cheerp/src/content/docs/12-reference/01-args.md
@@ -25,7 +25,7 @@ For JavaScript modules, you can pass the arguments through the initialization fu
import init from "./example.js";
await init({
- argv: ["a", "b", "c"]
+ argv: ["a", "b", "c"],
});
```
diff --git a/sites/cheerp/src/content/docs/12-reference/02-env.md b/sites/cheerp/src/content/docs/12-reference/02-env.md
index 8b61be68..cea029be 100644
--- a/sites/cheerp/src/content/docs/12-reference/02-env.md
+++ b/sites/cheerp/src/content/docs/12-reference/02-env.md
@@ -17,7 +17,7 @@ For JavaScript modules, you can pass environment variables through the initializ
import init from "./example.js";
await init({
- env: ["A=1", "B=2"]
+ env: ["A=1", "B=2"],
});
```
diff --git a/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md b/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md
index ef2cd593..dbe2a85d 100644
--- a/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md
+++ b/sites/cheerp/src/content/docs/12-reference/05-sections/01-genericjs/90-memory-model.md
@@ -42,7 +42,7 @@ JavaScript Strings are not used directly by Cheerp, but they are accessible to t
```js
var a = [
{ x: 0, y: 1 },
- { x: 2, y: 3 }
+ { x: 2, y: 3 },
];
var typedA = new Int32Array(10);
```
@@ -74,7 +74,7 @@ JavaScript references support equality comparison, but they have no ordering and
```js
var a = [
{ x: 0, y: [1] },
- { x: 2, y: [3] }
+ { x: 2, y: [3] },
];
var typedA = new Int32Array(10);
var objPtr = { d: a, o: 1 };
diff --git a/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md b/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md
index 06a9fc43..87c1f914 100644
--- a/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md
+++ b/sites/cheerp/src/content/docs/12-reference/10-command-line-options/40-modules.md
@@ -102,7 +102,7 @@ fetch('/absolute/path/to/yourModule.wasm').then(buffer => {
```js
import instantiateFunction from "./yourModule.js";
instantiateFunction({
- absPath: new URL("/relative/path/to/yourModule.wasm", import.meta.url)
+ absPath: new URL("/relative/path/to/yourModule.wasm", import.meta.url),
}).then((module) => {
console.log("Module has been instantiated!");
module.someJSExportedFunc();
diff --git a/sites/cheerpj/astro.config.mjs b/sites/cheerpj/astro.config.mjs
index 59913e67..f6f5c92c 100644
--- a/sites/cheerpj/astro.config.mjs
+++ b/sites/cheerpj/astro.config.mjs
@@ -8,25 +8,25 @@ export default defineConfig({
base: "/docs",
integrations: [
theme({
- baseIsDocs: true
- })
+ baseIsDocs: true,
+ }),
],
i18n: {
defaultLocale: "en",
locales: ["en", "ja", "zh"],
fallback: {
ja: "en",
- zh: "en"
- }
+ zh: "en",
+ },
},
vite: {
resolve: {
alias: [
{
find: "@",
- replacement: resolve("./src/")
- }
- ]
- }
- }
+ replacement: resolve("./src/"),
+ },
+ ],
+ },
+ },
});
diff --git a/sites/cheerpj/src/content/config.ts b/sites/cheerpj/src/content/config.ts
index e01cbb30..377c24c6 100644
--- a/sites/cheerpj/src/content/config.ts
+++ b/sites/cheerpj/src/content/config.ts
@@ -9,9 +9,9 @@ const showcase = defineCollection({
description: z.string().optional(),
url: z.string(),
image: image().refine((img) => img.width / img.height == 1.5, {
- message: "Image must have 3:2 aspect ratio"
- })
- })
+ message: "Image must have 3:2 aspect ratio",
+ }),
+ }),
});
export const collections = { showcase, ...defineCommonCollections() };
diff --git a/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md b/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md
index 3e4462c4..9e7ff689 100644
--- a/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md
+++ b/sites/cheerpj/src/content/docs/11-guides/Implementing-Java-native-methods-in-JavaScript.md
@@ -37,8 +37,8 @@ await cheerpjInit({
natives: {
async Java_Example_alert(lib, str) {
window.alert(str);
- }
- }
+ },
+ },
});
await cheerpjRunMain("Example", "/app/");
```
@@ -73,7 +73,7 @@ public class Example {
export default {
async Java_Example_alert(lib, self, message) {
window.alert(message);
- }
+ },
};
```
diff --git a/sites/cheerpj/src/content/docs/11-guides/Networking.md b/sites/cheerpj/src/content/docs/11-guides/Networking.md
index 92152672..c7f68e94 100644
--- a/sites/cheerpj/src/content/docs/11-guides/Networking.md
+++ b/sites/cheerpj/src/content/docs/11-guides/Networking.md
@@ -45,7 +45,7 @@ Example for pre-authenticated users/devices:
```js
cheerpjInit({
tailscaleControlUrl: "https://my.url.com/",
- tailscaleAuthKey: "AuthKeyStringGoesHere"
+ tailscaleAuthKey: "AuthKeyStringGoesHere",
});
```
@@ -72,7 +72,7 @@ cheerpjInit({
loginElem.href = url;
loginElem.target = "_blank";
// continue with login
- }
+ },
});
```
diff --git a/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md b/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md
index 625ea3ba..f012b1e0 100644
--- a/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md
+++ b/sites/cheerpj/src/content/docs/12-reference/00-cheerpjInit.md
@@ -164,7 +164,7 @@ Example of usage:
cheerpjInit({
beepCallback: function () {
alert("Beep!");
- }
+ },
});
```
@@ -203,7 +203,7 @@ cheerpjInit({
// Let Java handle Ctrl+F
if (e.ctrlKey && e.keyCode == 70) return true;
return false;
- }
+ },
});
```
@@ -222,7 +222,7 @@ cheerpjInit({
appletParamFilter: function (name, value) {
if (name === "httpServer") return value.replace("http", "https");
return value;
- }
+ },
});
```
@@ -241,8 +241,8 @@ cheerpjInit({
natives: {
async Java_MyClass_myMethod(lib, str) {
window.alert(str);
- }
- }
+ },
+ },
});
```
@@ -337,7 +337,7 @@ For more information visit the [Tailscale documentation](https://tailscale.com/k
cheerpjInit({
tailscaleLoginUrlCb(url) {
// your function code here to continue with login
- }
+ },
});
```
@@ -355,7 +355,7 @@ Example of usage:
cheerpjInit({
tailscaleIpCb: function (ip) {
console.log("IP address " + ip);
- }
+ },
});
```
diff --git a/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx b/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx
index b15162f6..21c34e68 100644
--- a/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx
+++ b/sites/cheerpj/src/content/docs/13-tutorials/04-java-browser.mdx
@@ -128,7 +128,7 @@ Connecting to a Tailscale network requires an authorization key.
```js
await cheerpjInit({
- tailscaleAuthKey: "PasteYourKeyHere"
+ tailscaleAuthKey: "PasteYourKeyHere",
});
```
diff --git a/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md b/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md
index 4bc93b9a..c2cf306b 100644
--- a/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md
+++ b/sites/cheerpj/src/content/docs/ja/11-guides/Implementing-Java-native-methods-in-JavaScript.md
@@ -37,8 +37,8 @@ await cheerpjInit({
natives: {
async Java_Example_alert(lib, str) {
window.alert(str);
- }
- }
+ },
+ },
});
await cheerpjRunMain("Example", "/app/");
```
@@ -73,7 +73,7 @@ public class Example {
export default {
async Java_Example_alert(lib, self, message) {
window.alert(message);
- }
+ },
};
```
diff --git a/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md b/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md
index 3dd30d77..86301386 100644
--- a/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md
+++ b/sites/cheerpj/src/content/docs/ja/11-guides/Networking.md
@@ -45,7 +45,7 @@ JavaアプリケーションのクライアントをTailscaleネットワーク
```js
cheerpjInit({
tailscaleControlUrl: "https://my.url.com/",
- tailscaleAuthKey: "AuthKeyStringGoesHere"
+ tailscaleAuthKey: "AuthKeyStringGoesHere",
});
```
@@ -72,7 +72,7 @@ cheerpjInit({
loginElem.href = url;
loginElem.target = "_blank";
// continue with login
- }
+ },
});
```
diff --git a/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md b/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md
index d76547a2..5f984d9d 100644
--- a/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md
+++ b/sites/cheerpj/src/content/docs/ja/12-reference/00-cheerpjInit.md
@@ -164,7 +164,7 @@ beepCallback?: () => void;
cheerpjInit({
beepCallback: function () {
alert("Beep!");
- }
+ },
});
```
@@ -202,7 +202,7 @@ cheerpjInit({
// Let Java handle Ctrl+F
if (e.ctrlKey && e.keyCode == 70) return true;
return false;
- }
+ },
});
```
@@ -221,7 +221,7 @@ cheerpjInit({
appletParamFilter: function (name, value) {
if (name === "httpServer") return value.replace("http", "https");
return value;
- }
+ },
});
```
@@ -240,8 +240,8 @@ cheerpjInit({
natives: {
async Java_MyClass_myMethod(lib, str) {
window.alert(str);
- }
- }
+ },
+ },
});
```
@@ -336,7 +336,7 @@ tailscaleLoginUrlCb?: (url: string) => void;
cheerpjInit({
tailscaleLoginUrlCb(url) {
// your function code here to continue with login
- }
+ },
});
```
@@ -354,7 +354,7 @@ tailscaleIpCb?: (ip: string) => void;
cheerpjInit({
tailscaleIpCb: function (ip) {
console.log("IP address " + ip);
- }
+ },
});
```
diff --git a/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx b/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx
index 98d7bec6..54075147 100644
--- a/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx
+++ b/sites/cheerpj/src/content/docs/ja/13-tutorials/04-java-browser.mdx
@@ -128,7 +128,7 @@ Tailscaleネットワークに接続するには、認証キーが必要です
```js
await cheerpjInit({
- tailscaleAuthKey: "PasteYourKeyHere"
+ tailscaleAuthKey: "PasteYourKeyHere",
});
```
diff --git a/sites/cheerpx/astro.config.mjs b/sites/cheerpx/astro.config.mjs
index b78d7b02..cd1311ea 100644
--- a/sites/cheerpx/astro.config.mjs
+++ b/sites/cheerpx/astro.config.mjs
@@ -10,9 +10,9 @@ export default defineConfig({
alias: [
{
find: "@",
- replacement: resolve("./src/")
- }
- ]
- }
- }
+ replacement: resolve("./src/"),
+ },
+ ],
+ },
+ },
});
diff --git a/sites/cheerpx/src/content/docs/10-getting-started/index.md b/sites/cheerpx/src/content/docs/10-getting-started/index.md
index 68289774..7a359357 100644
--- a/sites/cheerpx/src/content/docs/10-getting-started/index.md
+++ b/sites/cheerpx/src/content/docs/10-getting-started/index.md
@@ -66,8 +66,8 @@ The example below demonstrates how to set up the file system and devices using [
{ type: "ext2", path: "/", dev: overlayDevice },
{ type: "dir", path: "/app", dev: webDevice },
{ type: "dir", path: "/data", dev: dataDevice },
- { type: "devs", path: "/dev" }
- ]
+ { type: "devs", path: "/dev" },
+ ],
});
@@ -116,11 +116,11 @@ await cx.run("/bin/bash", ["--login"], {
"SHELL=/bin/bash",
"EDITOR=vim",
"LANG=en_US.UTF-8",
- "LC_ALL=C"
+ "LC_ALL=C",
],
cwd: "/home/user",
uid: 1000,
- gid: 1000
+ gid: 1000,
});
```
@@ -157,8 +157,8 @@ Now you can interact with the console to run commands. Make sure to give focus t
{ type: "ext2", path: "/", dev: overlayDevice },
{ type: "dir", path: "/app", dev: webDevice },
{ type: "dir", path: "/data", dev: dataDevice },
- { type: "devs", path: "/dev" }
- ]
+ { type: "devs", path: "/dev" },
+ ],
});
// Interact with a console
@@ -172,11 +172,11 @@ Now you can interact with the console to run commands. Make sure to give focus t
"SHELL=/bin/bash",
"EDITOR=vim",
"LANG=en_US.UTF-8",
- "LC_ALL=C"
+ "LC_ALL=C",
],
cwd: "/home/user",
uid: 1000,
- gid: 1000
+ gid: 1000,
});
diff --git a/sites/cheerpx/src/content/docs/11-guides/File-System-support.md b/sites/cheerpx/src/content/docs/11-guides/File-System-support.md
index 0c9144ec..c9cf028d 100644
--- a/sites/cheerpx/src/content/docs/11-guides/File-System-support.md
+++ b/sites/cheerpx/src/content/docs/11-guides/File-System-support.md
@@ -172,7 +172,7 @@ const idbDevice = await CheerpX.IDBDevice.create("block1");
const overlayDevice = await CheerpX.OverlayDevice.create(httpDevice, idbDevice);
const cx = await CheerpX.Linux.create({
- mounts: [{ type: "ext2", path: "/", dev: overlayDevice }]
+ mounts: [{ type: "ext2", path: "/", dev: overlayDevice }],
});
```
diff --git a/sites/cheerpx/src/content/docs/11-guides/Networking.md b/sites/cheerpx/src/content/docs/11-guides/Networking.md
index e33a08b6..88b3201a 100644
--- a/sites/cheerpx/src/content/docs/11-guides/Networking.md
+++ b/sites/cheerpx/src/content/docs/11-guides/Networking.md
@@ -46,8 +46,8 @@ Example for pre-authenticated users/devices:
const cx = await CheerpX.Linux.create({
networkInterface: {
authKey: "AuthKeyStringGoesHere",
- controlUrl: "https://my.url.com/"
- }
+ controlUrl: "https://my.url.com/",
+ },
});
```
@@ -75,8 +75,8 @@ const cx = await CheerpX.Linux.create({
loginElem.href = url;
loginElem.target = "_blank";
// continue with login
- }
- }
+ },
+ },
});
```
diff --git a/sites/cheerpx/src/content/docs/11-guides/input-output.md b/sites/cheerpx/src/content/docs/11-guides/input-output.md
index 24037183..deef00cb 100644
--- a/sites/cheerpx/src/content/docs/11-guides/input-output.md
+++ b/sites/cheerpx/src/content/docs/11-guides/input-output.md
@@ -53,8 +53,8 @@ const cx = await CheerpX.Linux.create({
// Mount the IDBDevice
mounts: [
{ type: "ext2", path: "/", dev: overlayDevice },
- { type: "dir", path: "/files", dev: filesDevice }
- ]
+ { type: "dir", path: "/files", dev: filesDevice },
+ ],
});
```
diff --git a/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md b/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md
index 5dfad0e4..a3eedd95 100644
--- a/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md
+++ b/sites/cheerpx/src/content/docs/12-reference/00-CheerpX-Linux-create.md
@@ -62,8 +62,8 @@ Example:
const cx = await CheerpX.Linux.create({
mounts: [
{ type: "ext2", path: "/", dev: overlayDevice },
- { type: "dir", path: "/app", dev: webDevice }
- ]
+ { type: "dir", path: "/app", dev: webDevice },
+ ],
});
```
diff --git a/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md b/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md
index 2eaa2ce3..6945ae4c 100644
--- a/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md
+++ b/sites/cheerpx/src/content/docs/12-reference/01-CheerpX-Linux-run.md
@@ -41,7 +41,7 @@ Let us try running a bash script:
```js
const result = await cx.run("/bin/bash", [
"-c",
- "for i in {1..5}; do echo $i; done"
+ "for i in {1..5}; do echo $i; done",
]);
console.log("Bash script exit status:", result.status);
```
diff --git a/sites/cheerpx/src/content/docs/13-tutorials/full_os.md b/sites/cheerpx/src/content/docs/13-tutorials/full_os.md
index 72e5a1c5..ab19fbba 100644
--- a/sites/cheerpx/src/content/docs/13-tutorials/full_os.md
+++ b/sites/cheerpx/src/content/docs/13-tutorials/full_os.md
@@ -131,7 +131,7 @@ In the same script tag, pass the `overlayDevice` as a new mount point to the `Ch
```js
const cx = await CheerpX.Linux.create({
- mounts: [{ type: "ext2", path: "/", dev: overlayDevice }]
+ mounts: [{ type: "ext2", path: "/", dev: overlayDevice }],
});
```
@@ -165,11 +165,11 @@ await cx.run("/bin/bash", ["--login"], {
"SHELL=/bin/bash",
"EDITOR=vim",
"LANG=en_US.UTF-8",
- "LC_ALL=C"
+ "LC_ALL=C",
],
cwd: "/home/user",
uid: 1000,
- gid: 1000
+ gid: 1000,
});
```
diff --git a/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md b/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md
index 4768228f..b2688e51 100644
--- a/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md
+++ b/sites/cheerpx/src/content/docs/13-tutorials/setup-svelte.md
@@ -57,16 +57,16 @@ const viteServerConfig = () => ({
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
next();
});
- }
+ },
});
export default defineConfig({
optimizeDeps: {
esbuildOptions: {
- target: "es2022"
- }
+ target: "es2022",
+ },
},
- plugins: [sveltekit(), viteServerConfig()]
+ plugins: [sveltekit(), viteServerConfig()],
});
```
diff --git a/sites/labs/astro.config.mjs b/sites/labs/astro.config.mjs
index 7f6913df..e2cbd463 100644
--- a/sites/labs/astro.config.mjs
+++ b/sites/labs/astro.config.mjs
@@ -11,9 +11,9 @@ export default defineConfig({
alias: [
{
find: "@",
- replacement: resolve("./src/")
- }
- ]
- }
- }
+ replacement: resolve("./src/"),
+ },
+ ],
+ },
+ },
});
diff --git a/sites/labs/postcss.config.cjs b/sites/labs/postcss.config.cjs
index 8db3e889..bab04a41 100644
--- a/sites/labs/postcss.config.cjs
+++ b/sites/labs/postcss.config.cjs
@@ -2,6 +2,6 @@ module.exports = {
plugins: {
"tailwindcss/nesting": {},
tailwindcss: {},
- autoprefixer: {}
- }
+ autoprefixer: {},
+ },
};
diff --git a/sites/labs/src/components/landing-page/AnimatedText.svelte b/sites/labs/src/components/landing-page/AnimatedText.svelte
index 8797f65d..9c7cd542 100644
--- a/sites/labs/src/components/landing-page/AnimatedText.svelte
+++ b/sites/labs/src/components/landing-page/AnimatedText.svelte
@@ -3,7 +3,7 @@
// TODO consider making these links to relevant docs/guides
"C and C++",
"Java",
- "native code"
+ "native code",
];
let index = 0;
@@ -14,7 +14,7 @@
enum Direction {
Typing,
Deleting,
- Waiting
+ Waiting,
}
let direction = Direction.Typing;
diff --git a/sites/labs/src/components/landing-page/ClientCarousel.svelte b/sites/labs/src/components/landing-page/ClientCarousel.svelte
index aec6fc56..92b3f2e5 100644
--- a/sites/labs/src/components/landing-page/ClientCarousel.svelte
+++ b/sites/labs/src/components/landing-page/ClientCarousel.svelte
@@ -14,7 +14,7 @@
{ src: Siemens, alt: "Siemens" },
{ src: Euronext, alt: "Euronext" },
{ src: Uscustoms, alt: "Uscustoms" },
- { src: Dalkia, alt: "Dalkia" }
+ { src: Dalkia, alt: "Dalkia" },
];
// To do the scroll animation, we need to repeat the images
diff --git a/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx b/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx
index 5e8b2e75..5f40e081 100644
--- a/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx
+++ b/sites/labs/src/content/docs/cheerpj-applet-runner/index.mdx
@@ -14,7 +14,7 @@ import {
lockIcon,
browserIcon,
layersIcon,
- rocketIcon
+ rocketIcon,
} from "@leaningtech/cheerpj-applet-page";
diff --git a/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx b/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx
index 801e81b5..113e6546 100644
--- a/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx
+++ b/sites/labs/src/content/docs/cheerpj-jnlp-runner/index.mdx
@@ -14,7 +14,7 @@ import {
lockIcon,
browserIcon,
layersIcon,
- rocketIcon
+ rocketIcon,
} from "@leaningtech/cheerpj-jnlp-page";
diff --git a/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md b/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md
index 071da969..9dc60591 100644
--- a/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md
+++ b/sites/labs/src/content/docs/cheerpj2/05-reference/Runtime-API.md
@@ -157,7 +157,7 @@ cheerpjInit({
// Let Java handle Ctrl+F
if (e.ctrlKey && e.keyCode == 70) return true;
return false;
- }
+ },
});
```
@@ -198,7 +198,7 @@ cheerpjInit({
appletParamFilter: function (name, value) {
if (name === "httpServer") return value.replace("http", "https");
return value;
- }
+ },
});
```
@@ -334,12 +334,12 @@ Examples:
var promise1 = cjResolveCall("com.something.ClassName", "methodName", [
"java.lang.String",
"int",
- "double"
+ "double",
]);
var promise2 = cjResolveNew("com.something.ClassName", [
"java.lang.String",
"int",
- "double"
+ "double",
]);
```
diff --git a/sites/labs/src/pages/index.astro b/sites/labs/src/pages/index.astro
index 8f32a40f..bd2331ba 100644
--- a/sites/labs/src/pages/index.astro
+++ b/sites/labs/src/pages/index.astro
@@ -16,22 +16,22 @@ const others = [
name: "WebVM",
logotype: webvmLogotype,
description:
- "Linux virtual machine running fully client-side. Powered by CheerpX."
+ "Linux virtual machine running fully client-side. Powered by CheerpX.",
},
{
href: "https://javafiddle.leaningtech.com/",
name: "JavaFiddle",
logotype: javafiddleLogotype,
description:
- "Build, run, and share snippets of Java code in your browser. Powered by CheerpJ."
+ "Build, run, and share snippets of Java code in your browser. Powered by CheerpJ.",
},
{
href: "https://pythonfiddle.leaningtech.com/",
name: "PythonFiddle",
logotype: pythonfiddleLogotype,
description:
- "Build, run, and share snippets of Python code in your browser. Powered by CheerpX."
- }
+ "Build, run, and share snippets of Python code in your browser. Powered by CheerpX.",
+ },
];
---
diff --git a/sites/labs/src/pages/rss.xml.js b/sites/labs/src/pages/rss.xml.js
index bf2a4b1c..c4d38323 100644
--- a/sites/labs/src/pages/rss.xml.js
+++ b/sites/labs/src/pages/rss.xml.js
@@ -2,7 +2,7 @@ import rss from "@astrojs/rss";
import { getCollection } from "astro:content";
import {
SITE_TITLE,
- SITE_DESCRIPTION
+ SITE_DESCRIPTION,
} from "../../../../packages/astro-theme/consts";
export async function get(context) {
@@ -13,7 +13,7 @@ export async function get(context) {
site: context.site,
items: posts.map((post) => ({
...post.data,
- link: `/blog/${post.slug}/`
- }))
+ link: `/blog/${post.slug}/`,
+ })),
});
}
diff --git a/sites/labs/svelte.config.js b/sites/labs/svelte.config.js
index 6bd9bf9d..5dc305f5 100644
--- a/sites/labs/svelte.config.js
+++ b/sites/labs/svelte.config.js
@@ -1,5 +1,5 @@
import { vitePreprocess } from "@astrojs/svelte";
export default {
- preprocess: vitePreprocess()
+ preprocess: vitePreprocess(),
};