{"id":23309977,"url":"https://github.com/jonnathan23/control-gastos","last_synced_at":"2026-05-07T09:31:41.400Z","repository":{"id":263542536,"uuid":"890728618","full_name":"Jonnathan23/control-gastos","owner":"Jonnathan23","description":"Práctica de React elaboración de una página de control de gastos","archived":false,"fork":false,"pushed_at":"2025-10-19T06:01:04.000Z","size":279,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T17:49:12.382Z","etag":null,"topics":["context-api","react","use-reducer"],"latest_commit_sha":null,"homepage":"https://control-gastos-react-js.netlify.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jonnathan23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-19T04:31:29.000Z","updated_at":"2024-11-25T01:55:30.000Z","dependencies_parsed_at":"2025-10-19T07:22:48.417Z","dependency_job_id":"2c51afe9-f8e1-4fbf-93d4-96e91ff16273","html_url":"https://github.com/Jonnathan23/control-gastos","commit_stats":null,"previous_names":["jonnathan23/control-gastos"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jonnathan23/control-gastos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonnathan23%2Fcontrol-gastos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonnathan23%2Fcontrol-gastos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonnathan23%2Fcontrol-gastos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonnathan23%2Fcontrol-gastos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jonnathan23","download_url":"https://codeload.github.com/Jonnathan23/control-gastos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonnathan23%2Fcontrol-gastos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32731231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["context-api","react","use-reducer"],"created_at":"2024-12-20T13:14:43.732Z","updated_at":"2026-05-07T09:31:41.354Z","avatar_url":"https://github.com/Jonnathan23.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Control Gastos\n\n## Comando de depencias utilizadas\n### Calendario\n```bash\nnpm i react-date-picker\n```\nDependencia extra para el calendario\n```bash\nnpm install react-calendar\n```\n\n```ts\nimport 'react-calendar/dist/Calendar.css';\n\nimport DatePicker from 'react-date-picker';\n\nimport 'react-date-picker/dist/DatePicker.css';\n\ntype ValuePiece = Date | null;\n\ntype Value = ValuePiece | [ValuePiece, ValuePiece];\n\n```\n### react-swipeable-list \nEfecto de boton deslizante\n```bash\nnpm i react-swipeable-list\n```\nEn caso de error de\n\n![image](https://github.com/user-attachments/assets/1e11ec15-8024-4d47-a0fc-b282ef59b0ea)\n\ninstalar pop-types\n\n```bash\nnpm install prop-types\n```\nImportar\n\n```ts\nimport {\n    LeadingActions,\n    SwipeableList,\n    SwipeableListItem,\n    SwipeAction,\n    TrailingActions\n} from 'react-swipeable-list';\n\n// Estilos css\nimport 'react-swipeable-list/dist/styles.css';\n\n```\nEjemplo de uso\n```ts\n/**\n     * Acciones que se mostraran al principio del item (swipe izquierda)\n     * En este caso, solo se muestra una acci n para actualizar el gasto\n     * @returns {JSX.Element}\n     */\n    const leadeingActions = () =\u003e (\n        \u003cLeadingActions\u003e\n            \u003cSwipeAction\n                onClick={() =\u003e { }}\n            \u003e\n                Actualizar\n            \u003c/SwipeAction\u003e\n        \u003c/LeadingActions\u003e\n    )\n\n    /**     \n     * Acciones que se mostraran al final del item (swipe derecha)\n     * En este caso, solo se muestra una acción para eliminar el gasto\n     * @returns {JSX.Element}\n     */\n    const trailingActions = () =\u003e (\n        \u003cTrailingActions\u003e\n            \u003cSwipeAction\n                onClick={() =\u003e { }}\n            \u003e\n                Eliminar\n            \u003c/SwipeAction\u003e\n        \u003c/TrailingActions\u003e\n    )\n\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonnathan23%2Fcontrol-gastos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonnathan23%2Fcontrol-gastos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonnathan23%2Fcontrol-gastos/lists"}