diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..50c8dda --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# 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? + +.env diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..ea36dd3 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,21 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{js,jsx}'], + extends: [ + js.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + globals: globals.browser, + parserOptions: { ecmaFeatures: { jsx: true } }, + }, + }, +]) diff --git a/index.html b/index.html new file mode 100644 index 0000000..10cdc8b --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + +
+ + + +| # | +Cedula | +Nombre | +Apellido | + + {isSinglePlanilla ? ( +Quincena | + ) : ( + <> + {submittedPlanilla1 && ( +Primera Quincena | + )} + {submittedPlanilla2 && ( +Segunda Quincena | + )} + > + )} +
|---|---|---|---|---|---|---|
| {i + 1} | +{row.Cedula} | +{row.Nombre} | +{row.Apellido} | + + {isSinglePlanilla ? ( +
+ |
+ ) : (
+ <>
+ {submittedPlanilla1 && (
+
+ |
+ )}
+ {submittedPlanilla2 && (
+
+ |
+ )}
+ >
+ )}
+