{"id":14996230,"url":"https://github.com/swe-rashad/web-components","last_synced_at":"2026-01-20T04:31:54.072Z","repository":{"id":244105962,"uuid":"814202721","full_name":"swe-rashad/Web-components","owner":"swe-rashad","description":"Web Components are a set of web platform APIs that allow you to create reusable custom elements with encapsulated functionality, which can be used in web applications.","archived":false,"fork":false,"pushed_at":"2024-06-12T23:24:39.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T11:49:39.601Z","etag":null,"topics":["javascript","webcomponent","webcomponent-example"],"latest_commit_sha":null,"homepage":"https://swe-rashad.github.io/Web-components/","language":"JavaScript","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/swe-rashad.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}},"created_at":"2024-06-12T14:32:43.000Z","updated_at":"2024-06-12T23:24:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b73d103-bc82-4c8b-b2c4-97c14b715c14","html_url":"https://github.com/swe-rashad/Web-components","commit_stats":null,"previous_names":["swe-rashad/web-components"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swe-rashad%2FWeb-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swe-rashad%2FWeb-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swe-rashad%2FWeb-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swe-rashad%2FWeb-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swe-rashad","download_url":"https://codeload.github.com/swe-rashad/Web-components/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247613600,"owners_count":20966974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["javascript","webcomponent","webcomponent-example"],"created_at":"2024-09-24T16:33:36.169Z","updated_at":"2026-01-20T04:31:54.005Z","avatar_url":"https://github.com/swe-rashad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Demo url\n\nhttps://swe-rashad.github.io/Web-components\n\n## Files and Directories\n\n- **Assets/images**: This directory contains images used in the project.\n- **Components/User.js**: This file contains the definition of the `UserCard` web component.\n- **Mocks/employeeList.json**: This file contains the mock employee data in JSON format.\n- **scripts/define.js**: This script defines the `user-card` component and registers it with the custom elements registry.\n- **scripts/main.js**: This script is the main entry point of the application. It handles the loading of employee data, rendering of `user-card` elements, and the search functionality.\n- **style/style.css**: This file contains global styles for the application.\n- **index.html**: This is the main HTML file that loads and displays the web component.\n- **README.md**: This file provides an overview and documentation for the project.\n\n## Employee Data Format\n\nThe `employeeList.json` file contains an array of employee objects with the following properties:\n\n- `id`: Unique identifier for the employee\n- `name`: First name of the employee\n- `surname`: Last name of the employee\n- `gender`: Gender of the employee\n- `role`: Job role of the employee\n- `experience`: Years of experience\n- `account_status`: Status of the employee's account (e.g., active, inactive)\n- `email`: Email address of the employee\n\nExample:\n```json\n[\n    {\n        \"id\": 1,\n        \"name\": \"John\",\n        \"surname\": \"Doe\",\n        \"gender\": \"Male\",\n        \"role\": \"Developer\",\n        \"experience\": 5,\n        \"account_status\": \"active\",\n        \"email\": \"john.doe@example.com\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Jane\",\n        \"surname\": \"Smith\",\n        \"gender\": \"Female\",\n        \"role\": \"Designer\",\n        \"experience\": 3,\n        \"account_status\": \"inactive\",\n        \"email\": \"jane.smith@example.com\"\n    }\n]\n\n\n## Example Usage\n\n\u003cuser-card\n    id=\"1\"\n    name=\"John\"\n    surname=\"Doe\"\n    gender=\"Male\"\n    role=\"Developer\"\n    experience=\"5\"\n    account_status=\"active\"\n    email=\"john.doe@example.com\"\u003e\n\u003c/user-card\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswe-rashad%2Fweb-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswe-rashad%2Fweb-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswe-rashad%2Fweb-components/lists"}