Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/browser-extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json.schemastore.org/chrome-manifest",

"manifest_version": 3,
"version": "0.2.2",
"version": "0.3.0",
"author": "Apteryx Software",
"name": "Evaluate - Run Code Anytime, Anywhere",
"short_name": "Evaluate",
Expand Down
34 changes: 17 additions & 17 deletions apps/browser-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "browser-extension",
"description": "Run any code snippet you come across on the web with the Evaluate browser extension!",
"version": "0.2.2",
"version": "0.3.0",
"type": "module",
"scripts": {
"check": "tsc --noEmit",
Expand All @@ -19,30 +19,30 @@
"@evaluate/runtimes": "workspace:^",
"@evaluate/style": "workspace:^",
"@t3-oss/env-core": "^0.13.8",
"lucide-react": "^0.525.0",
"posthog-js": "^1.257.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"sonner": "^2.0.6",
"lucide-react": "^0.546.0",
"posthog-js": "^1.276.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.3.1",
"webext-bridge": "^6.0.1",
"webextension-polyfill": "^0.12.0",
"zod": "4.0.5"
"zod": "4.1.12"
},
"devDependencies": {
"@babel/generator": "^7.28.0",
"@babel/parser": "^7.28.0",
"@babel/traverse": "^7.28.0",
"@babel/types": "^7.28.1",
"@babel/generator": "^7.28.3",
"@babel/parser": "^7.28.4",
"@babel/traverse": "^7.28.4",
"@babel/types": "^7.28.4",
"@crxjs/vite-plugin": "2.0.0-beta.30",
"@tailwindcss/vite": "^4.1.11",
"@types/babel__generator": "^7.27.0",
"@types/babel__traverse": "^7.20.7",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@types/webextension-polyfill": "^0.12.3",
"@vitejs/plugin-react": "^4.6.0",
"tailwindcss": "^4.1.11",
"@types/babel__traverse": "^7.28.0",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@types/webextension-polyfill": "^0.12.4",
"@vitejs/plugin-react": "^4.7.0",
"tailwindcss": "^4.1.14",
"vite": "3.2.11",
"vite-plugin-zip-pack": "^1.2.4",
"vite-tsconfig-paths": "^5.1.4"
Expand Down
1 change: 1 addition & 0 deletions apps/browser-extension/src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ browser.contextMenus.onClicked.addListener(async (info, tab) => {
throw error;
});
promises.push(initialPromise);
await new Promise((r) => setTimeout(r, 250));
}

const results = await Promise.all(promises);
Expand Down
6 changes: 3 additions & 3 deletions apps/discord-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
"build": "pnpm tsup"
},
"dependencies": {
"@buape/carbon": "^0.12.0",
"@buape/carbon": "^0.13.0",
"@evaluate/execute": "workspace:^",
"@evaluate/logger": "workspace:^",
"@evaluate/runtimes": "workspace:^",
"@sayable/carbon": "0.0.0-alpha.4",
"@sayable/react": "0.0.0-alpha.6",
"@t3-oss/env-core": "^0.13.8",
"date-fns": "^4.1.0",
"es-toolkit": "^1.39.7",
"es-toolkit": "^1.40.0",
"posthog-node": "^5.5.1",
"sayable": "0.0.0-alpha.6",
"zod": "^4.0.5"
"zod": "^4.1.12"
},
"devDependencies": {
"@sayable/config": "0.0.0",
Expand Down
1 change: 1 addition & 0 deletions apps/website/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
50 changes: 25 additions & 25 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,64 +12,64 @@
"dev": "use-env -p NEXT -- next dev --turbo"
},
"dependencies": {
"@codemirror/commands": "^6.8.1",
"@codemirror/view": "^6.38.1",
"@codemirror/commands": "^6.9.0",
"@codemirror/view": "^6.38.6",
"@evaluate/components": "workspace:^",
"@evaluate/execute": "workspace:^",
"@evaluate/hooks": "workspace:^",
"@evaluate/logger": "workspace:^",
"@evaluate/runtimes": "workspace:^",
"@evaluate/style": "workspace:^",
"@hookform/resolvers": "^5.1.1",
"@hookform/resolvers": "^5.2.2",
"@sayable/react": "0.0.0-alpha.8",
"@t3-oss/env-nextjs": "^0.13.8",
"@tanstack/react-query": "^5.83.0",
"@tanstack/react-query-devtools": "^5.83.0",
"@uiw/codemirror-extensions-langs": "^4.24.1",
"@uiw/codemirror-theme-vscode": "^4.24.1",
"@uiw/react-codemirror": "^4.24.1",
"@tanstack/react-query": "^5.90.5",
"@tanstack/react-query-devtools": "^5.90.2",
"@uiw/codemirror-extensions-langs": "^4.25.2",
"@uiw/codemirror-theme-vscode": "^4.25.2",
"@uiw/react-codemirror": "^4.25.2",
"@vercel/speed-insights": "^1.2.0",
"date-fns": "^4.1.0",
"discord-bot": "workspace:^",
"dompurify": "^3.2.6",
"dompurify": "^3.3.0",
"embla-carousel-autoplay": "^8.6.0",
"es-toolkit": "^1.39.7",
"es-toolkit": "^1.40.0",
"file-saver": "^2.0.5",
"fuse.js": "^7.1.0",
"is-mobile": "^5.0.0",
"jszip": "^3.10.1",
"lucide-react": "^0.525.0",
"material-icon-theme": "^5.24.0",
"next": "15.3.5",
"lucide-react": "^0.546.0",
"material-icon-theme": "^5.27.0",
"next": "15.5.6",
"next-themes": "npm:@wits/next-themes@^0.2.16",
"posthog-js": "^1.257.0",
"react": "^19.1.0",
"posthog-js": "^1.276.0",
"react": "^19.2.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^19.1.0",
"react-hook-form": "^7.60.0",
"react-hotkeys-hook": "^5.1.0",
"react-dom": "^19.2.0",
"react-hook-form": "^7.65.0",
"react-hotkeys-hook": "^5.2.1",
"sayable": "0.0.0-alpha.6",
"server-only": "^0.0.1",
"sharp": "^0.34.3",
"sharp": "^0.34.4",
"tailwind-merge": "^3.3.1",
"type-fest": "^4.41.0",
"type-fest": "^5.1.0",
"virtual-file-explorer-backend": "^0.0.4",
"vscode-icons-js": "^11.6.1",
"zod": "4.0.5"
"zod": "4.1.12"
},
"devDependencies": {
"@million/lint": "^1.0.14",
"@next/bundle-analyzer": "15.3.5",
"@next/bundle-analyzer": "15.5.6",
"@sayable/config": "0.0.0-alpha.4",
"@sayable/factory": "0.0.0-alpha.6",
"@sayable/format-po": "0.0.0-alpha.4",
"@sayable/swc-plugin": "0.0.0-alpha.5",
"@tailwindcss/postcss": "^4.1.11",
"@tailwindcss/postcss": "^4.1.14",
"@types/file-saver": "^2.0.7",
"@types/react": "^19.1.8",
"@types/react": "^19.2.2",
"autoprefixer": "^10.4.21",
"next-sitemap": "^4.2.3",
"tailwindcss": "^4.1.11"
"tailwindcss": "^4.1.14"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@ import { ExplorerProvider } from '~/components/explorer/use';
import { Terminal } from '~/components/terminal';
import { TerminalProvider } from '~/components/terminal/use';
import say from '~/i18n';
import type { PageProps } from '~/types';
import { EditorWrapper } from './wrapper';

export async function generateStaticParams() {
const runtimes = await fetchAllRuntimes();
return runtimes.map((r) => ({ playground: r.id }));
}

export async function generateMetadata(
props: PageProps<['[locale]', '[playground]']>,
) {
const { locale, playground } = await props.params;
export async function generateMetadata({
params,
}: PageProps<'/[locale]/playgrounds/[playground]'>) {
const { locale, playground } = await params;
const runtime = await fetchRuntimeById(decodeURIComponent(playground));
if (!runtime) notFound();

Expand All @@ -36,8 +35,10 @@ export async function generateMetadata(
);
}

export default async function EditorPage(props: PageProps<['[playground]']>) {
const { playground } = await props.params;
export default async function EditorPage({
params,
}: PageProps<'/[locale]/playgrounds/[playground]'>) {
const { playground } = await params;
const runtime = await fetchRuntimeById(decodeURIComponent(playground));
if (!runtime) notFound();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { fetchAllRuntimes } from '@evaluate/runtimes';
import { Say } from '@sayable/react';
import say from '~/i18n';
import type { PageProps } from '~/types';
import { generateBaseMetadata } from '../../metadata';
import { PlaygroundCardList } from './playground-card-list';

export async function generateMetadata(props: PageProps<['[locale]']>) {
const { locale } = await props.params;
export async function generateMetadata({
params,
}: PageProps<'/[locale]/playgrounds'>) {
const { locale } = await params;
return generateBaseMetadata(say.activate(locale), '/playgrounds');
}

Expand Down
10 changes: 6 additions & 4 deletions apps/website/src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Footer } from '~/components/footer';
import { Header } from '~/components/header';
import { BodyProviders, HtmlProviders } from '~/components/providers';
import say from '~/i18n';
import type { LayoutProps } from '~/types';
import '../../style.css';

const inter = Inter({ subsets: ['latin'] });
Expand All @@ -14,8 +13,11 @@ export function generateStaticParams() {
return say.locales.map((l) => ({ locale: l }));
}

export default async function RootLayout(p: LayoutProps<['[locale]']>) {
const { locale = 'en' } = await p.params;
export default async function RootLayout({
params,
children,
}: LayoutProps<'/[locale]'>) {
const { locale = 'en' } = await params;
try {
await say.load(String(locale));
say.activate(String(locale));
Expand Down Expand Up @@ -53,7 +55,7 @@ export default async function RootLayout(p: LayoutProps<['[locale]']>) {
>
<BodyProviders {...say}>
<Header />
<main className="flex-1">{p.children}</main>
<main className="flex-1">{children}</main>
<Footer />
</BodyProviders>
</body>
Expand Down
10 changes: 5 additions & 5 deletions apps/website/src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ msgid "This runtime does not have a way to display any preview."
msgstr "This runtime does not have a way to display any preview."

#: src/components/header/index.tsx:50
#: src/app/[locale]/(playgrounds)/playgrounds/page.tsx:20
#: src/app/[locale]/(playgrounds)/playgrounds/page.tsx:21
msgid "Playgrounds"
msgstr "Playgrounds"

Expand Down Expand Up @@ -205,11 +205,11 @@ msgstr "Evaluate for <0>Chrome</0>"
msgid "Evaluate for <0>Firefox</0>"
msgstr "Evaluate for <0>Firefox</0>"

#: src/app/[locale]/(playgrounds)/playgrounds/page.tsx:23
#: src/app/[locale]/(playgrounds)/playgrounds/page.tsx:24
msgid "Explore and run code in different programming languages and runtimes."
msgstr "Explore and run code in different programming languages and runtimes."

#: src/app/[locale]/(playgrounds)/playgrounds/page.tsx:29
#: src/app/[locale]/(playgrounds)/playgrounds/page.tsx:30
msgid "Powered by the Piston execution engine."
msgstr "Powered by the Piston execution engine."

Expand Down Expand Up @@ -262,10 +262,10 @@ msgstr "Hmm, we couldn't find the playground you're looking for."
msgid "Browse Playgrounds"
msgstr "Browse Playgrounds"

#: src/app/[locale]/(editor)/playgrounds/[playground]/page.tsx:30
#: src/app/[locale]/(editor)/playgrounds/[playground]/page.tsx:29
msgid "{0} Online Playground on Evaluate"
msgstr "{0} Online Playground on Evaluate"

#: src/app/[locale]/(editor)/playgrounds/[playground]/page.tsx:31
#: src/app/[locale]/(editor)/playgrounds/[playground]/page.tsx:30
msgid "Run {0} and more code snippets online in your browser with Evaluate's code playground."
msgstr "Run {0} and more code snippets online in your browser with Evaluate's code playground."
47 changes: 0 additions & 47 deletions apps/website/src/types.ts

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"graph": "pnpx nx@18 graph"
},
"devDependencies": {
"@biomejs/biome": "2.2.5",
"@biomejs/biome": "2.2.6",
"@evaluate/scripts": "workspace:^",
"@types/node": "^22.16.4",
"@types/node": "^22.18.11",
"husky": "^9.1.7",
"ts-patch": "^3.3.0",
"turbo": "^2.5.5",
"typescript": "^5.8.3",
"turbo": "^2.5.8",
"typescript": "^5.9.3",
"typescript-transform-paths": "^3.5.5"
}
}
Loading