diff --git a/.gitignore b/.gitignore index 35063fc..2565378 100644 --- a/.gitignore +++ b/.gitignore @@ -51,4 +51,11 @@ CodeCoverage/ # NUnit *.VisualState.xml TestResult.xml -nunit-*.xml \ No newline at end of file +nunit-*.xmlnode_modules +.vite +coverage +*.log +*.tgz +.DS_Store +.env* +dist diff --git a/audio/Escena 1.m4a b/audio/Escena 1.m4a new file mode 100644 index 0000000..652b59d Binary files /dev/null and b/audio/Escena 1.m4a differ diff --git a/audio/Escena 3.m4a b/audio/Escena 3.m4a new file mode 100644 index 0000000..625538b Binary files /dev/null and b/audio/Escena 3.m4a differ diff --git a/audio/Escena 4.m4a b/audio/Escena 4.m4a new file mode 100644 index 0000000..6742146 Binary files /dev/null and b/audio/Escena 4.m4a differ diff --git a/audio/Escena 5.m4a b/audio/Escena 5.m4a new file mode 100644 index 0000000..4eceebe Binary files /dev/null and b/audio/Escena 5.m4a differ diff --git a/packages/ioc-chat-widget/.gitignore b/packages/ioc-chat-widget/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/packages/ioc-chat-widget/.gitignore @@ -0,0 +1,24 @@ +# 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? diff --git a/packages/ioc-chat-widget/README.md b/packages/ioc-chat-widget/README.md new file mode 100644 index 0000000..4dcad1f --- /dev/null +++ b/packages/ioc-chat-widget/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 currently not compatible with SWC. See [this issue](https://github.com/vitejs/vite-plugin-react/issues/428) for tracking the progress. + +## 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/packages/ioc-chat-widget/README2.md b/packages/ioc-chat-widget/README2.md new file mode 100644 index 0000000..0707b39 --- /dev/null +++ b/packages/ioc-chat-widget/README2.md @@ -0,0 +1,349 @@ +# IOC Chat Widget – Guía de uso, build e integración + +> Frontend del widget de chat embebible (TypeScript + React + Vite + Tailwind). Incluye modo **mock** para desarrollo, build **IIFE** para insertar vía ` + +
+