feat: setup frontend con pnpm, vite, react, tailwind y shadcn

Inicializa directorio frontend/ con stack React moderno:
pnpm + vite 8 + react 19 + tailwind v4 + shadcn v4 (base-nova).
Estructura functions/core (TS puro) y functions/ui (componentes React).
El indexer descubre frontend/functions/ y frontend/types/ automáticamente.
Elimina functions/components/ (legacy) y actualiza referencias en
CLAUDE.md y template de componentes.
This commit is contained in:
2026-03-28 20:32:40 +01:00
parent be5a7b582e
commit 3798e2d959
19181 changed files with 2609970 additions and 7 deletions
+1
View File
@@ -0,0 +1 @@
../../is-inside-container@1.0.0/node_modules/is-inside-container
@@ -0,0 +1,15 @@
/**
Check if the process is running inside [Windows Subsystem for Linux](https://msdn.microsoft.com/commandline/wsl/about) (Bash on Windows).
@example
```
import isWsl from 'is-wsl';
// When running inside Windows Subsystem for Linux
console.log(isWsl);
//=> true
```
*/
declare const isWsl: boolean;
export default isWsl;
+36
View File
@@ -0,0 +1,36 @@
import process from 'node:process';
import os from 'node:os';
import fs from 'node:fs';
import isInsideContainer from 'is-inside-container';
const isWsl = () => {
if (process.platform !== 'linux') {
return false;
}
if (os.release().toLowerCase().includes('microsoft')) {
if (isInsideContainer()) {
return false;
}
return true;
}
try {
if (fs.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft')) {
return !isInsideContainer();
}
} catch {}
// Fallback for custom kernels: check WSL-specific paths.
if (
fs.existsSync('/proc/sys/fs/binfmt_misc/WSLInterop')
|| fs.existsSync('/run/WSL')
) {
return !isInsideContainer();
}
return false;
};
export default process.env.__IS_WSL_TEST__ ? isWsl : isWsl();
+9
View File
@@ -0,0 +1,9 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,21 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*)
if command -v cygpath > /dev/null 2>&1; then
basedir=`cygpath -w "$basedir"`
fi
;;
esac
if [ -z "$NODE_PATH" ]; then
export NODE_PATH="/home/lucas/fn_registry/frontend/node_modules/.pnpm/is-inside-container@1.0.0/node_modules/is-inside-container/node_modules:/home/lucas/fn_registry/frontend/node_modules/.pnpm/is-inside-container@1.0.0/node_modules:/home/lucas/fn_registry/frontend/node_modules/.pnpm/node_modules"
else
export NODE_PATH="/home/lucas/fn_registry/frontend/node_modules/.pnpm/is-inside-container@1.0.0/node_modules/is-inside-container/node_modules:/home/lucas/fn_registry/frontend/node_modules/.pnpm/is-inside-container@1.0.0/node_modules:/home/lucas/fn_registry/frontend/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../../../../../is-inside-container@1.0.0/node_modules/is-inside-container/cli.js" "$@"
else
exec node "$basedir/../../../../../is-inside-container@1.0.0/node_modules/is-inside-container/cli.js" "$@"
fi
@@ -0,0 +1,58 @@
{
"name": "is-wsl",
"version": "3.1.1",
"description": "Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)",
"license": "MIT",
"repository": "sindresorhus/is-wsl",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"sideEffects": false,
"engines": {
"node": ">=16"
},
"scripts": {
"test": "xo && ava && tsd"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"check",
"wsl",
"windows",
"subsystem",
"linux",
"detect",
"bash",
"process",
"console",
"terminal",
"is"
],
"dependencies": {
"is-inside-container": "^1.0.0"
},
"devDependencies": {
"ava": "^5.3.1",
"esmock": "^2.3.6",
"tsd": "^0.28.1",
"xo": "^0.55.1"
},
"ava": {
"serial": true,
"nodeArguments": [
"--loader=esmock",
"--no-warnings"
]
}
}
+21
View File
@@ -0,0 +1,21 @@
# is-wsl
> Check if the process is running inside [Windows Subsystem for Linux](https://msdn.microsoft.com/commandline/wsl/about) (Bash on Windows)
Can be useful if you need to work around unimplemented or buggy features in WSL. Supports both WSL 1 and WSL 2.
## Install
```sh
npm install is-wsl
```
## Usage
```js
import isWsl from 'is-wsl';
// When running inside Windows Subsystem for Linux
console.log(isWsl);
//=> true
```