diff --git a/frontend/.gitignore b/frontend/.gitignore new file mode 100644 index 00000000..159b739b --- /dev/null +++ b/frontend/.gitignore @@ -0,0 +1,27 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +node_modules +.env \ No newline at end of file diff --git a/frontend/.next/cache/webpack/client-development/0.pack.gz b/frontend/.next/cache/webpack/client-development/0.pack.gz new file mode 100644 index 00000000..9d7d4c1b Binary files /dev/null and b/frontend/.next/cache/webpack/client-development/0.pack.gz differ diff --git a/frontend/.next/cache/webpack/client-development/index.pack.gz b/frontend/.next/cache/webpack/client-development/index.pack.gz new file mode 100644 index 00000000..74dace3b Binary files /dev/null and b/frontend/.next/cache/webpack/client-development/index.pack.gz differ diff --git a/frontend/README.md b/frontend/README.md new file mode 100644 index 00000000..d2e77611 --- /dev/null +++ b/frontend/README.md @@ -0,0 +1,73 @@ +# React + TypeScript + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## React Compiler + +The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules: + +```js +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + + // Remove tseslint.configs.recommended and replace with this + tseslint.configs.recommendedTypeChecked, + // Alternatively, use this for stricter rules + tseslint.configs.strictTypeChecked, + // Optionally, add this for stylistic rules + tseslint.configs.stylisticTypeChecked, + + // Other configs... + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` + +You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: + +```js +// eslint.config.js +import reactX from 'eslint-plugin-react-x' +import reactDom from 'eslint-plugin-react-dom' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + // Enable lint rules for React + reactX.configs['recommended-typescript'], + // Enable lint rules for React DOM + reactDom.configs.recommended, + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js new file mode 100644 index 00000000..5e6b472f --- /dev/null +++ b/frontend/eslint.config.js @@ -0,0 +1,23 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + js.configs.recommended, + tseslint.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + }, +]) diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 00000000..11e001b8 --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,43 @@ + + +
+ + + + +Log in to start building your machine learning models.
- -Select a file to start editing
+No log messages available.
- ) : ( - logs.map((log, index) => ( -{dataset.description}
-| {key} | - ))} -
|---|
| {value} | - ))} -
No profiling data available.
- )} -Training progress will be displayed here.
-Training logs will be displayed here.
-Live Training Monitor
+Your app is ready to be published
+
+ https://ai-builder-demo.replit.dev
+
+ + By publishing, you agree to make your app publicly accessible +
+Waiting for data…
+{currentTrain !== null ? currentTrain.toFixed(4) : '—'}
+{currentVal !== null ? currentVal.toFixed(4) : '—'}
+Waiting for data…
+{currentTrain !== null ? currentTrain.toFixed(3) : '—'}
+{currentVal !== null ? currentVal.toFixed(3) : '—'}
+| + {confusionVisible.map((_, idx) => ( + | + {idx} + | + ))} +
|---|---|
| {i} | + {row.map((cell, j) => { + const isDiag = i === j; + return ( ++ {cell} + | + ); + })} +
Waiting for embedding data…
+{count}
+| + {confusionVisible.map((_, idx) => ( + | + {idx} + | + ))} +
|---|---|
| {i} | + {row.map((cell, j) => { + const isDiag = i === j; + return ( ++ {cell} + | + ); + })} +
Waiting for residual data…
+{description}
} + + {!readonly && ( +
+ {JSON.stringify(requestBody, null, 2)}
+
+ {curlSnippet}
+
+ {JSON.stringify(response, null, 2)}
+
+ {JSON.stringify({ status: 'ok' }, null, 2)}
+ + Start a build session on the Home page, then come back here to watch the sequential training simulator. +
+ ++ No backend required. Start a build session and watch the training simulator run. +
++ Tell AutoAI what to build. We’ll simulate the pipeline and generate artifacts into the VFS. +
+