{"id":16096072,"url":"https://github.com/frenchbread/fe_test_task_widget","last_synced_at":"2025-07-23T10:37:34.280Z","repository":{"id":153546602,"uuid":"327334877","full_name":"frenchbread/fe_test_task_widget","owner":"frenchbread","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-07T12:24:33.000Z","size":167,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-11T19:36:47.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frenchbread.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-01-06T14:23:37.000Z","updated_at":"2021-01-07T12:24:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc782fea-9b39-49bd-a64a-0247688154d0","html_url":"https://github.com/frenchbread/fe_test_task_widget","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"7137a7043d4952cdcf652dcc129d40e62a2bbf14"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Ffe_test_task_widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Ffe_test_task_widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Ffe_test_task_widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Ffe_test_task_widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frenchbread","download_url":"https://codeload.github.com/frenchbread/fe_test_task_widget/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247396438,"owners_count":20932335,"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":[],"created_at":"2024-10-09T17:10:28.380Z","updated_at":"2025-04-05T20:27:48.892Z","avatar_url":"https://github.com/frenchbread.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fe test task widget\n\n\u003e External widget component for [`EasySize/fe_test_task`](https://github.com/EasySize/fe_test_task).\n\n### Setup\n\n```bash\n# clone repo\n$ git clone https://github.com/frenchbread/fe_test_task_widget.git \u0026\u0026 cd fe_test_task_widget\n\n# install dependencies\n$ yarn\n# - or -\n$ npm install\n\n# start the server\n$ yarn run start\n# - or -\n$ npm run start\n```\n\n### [EasySize/fe_test_task](https://github.com/EasySize) configuration\n\n1. In separate ternimal tab/window clone project repo, install dependencies.\n\n    ```bash\n    # clone repo\n    $ git clone https://github.com/EasySize/fe_test_task.git \u0026\u0026 cd fe_test_task\n\n    # install dependencies\n    $ yarn\n    # - or -\n    $ npm install\n    ```\n\n2. Add the following widget configuration to `script.js` file (or modify if it already exists)\n\n    ```js\n    // ...\n\n    let configuration = {\n      attributes: ['red', 'blue', 'black'],\n      placeholder: '.product-color',\n      placeholder_text: 'Surprise me with the color'\n    }\n\n    let widget = Widget(configuration)\n    setTimeout(widget.start, 2000)\n    ```\n\n3. Start the server\n\n    ```bash\n    # start the server\n    $ yarn run serve\n    # - or -\n    $ npm run serve\n    ```\n\n### Testing\n\nWhile [`EasySize/fe_test_task`](https://github.com/EasySize) server is up and running open [`http://127.0.0.1:3333`](http://127.0.0.1:3333) in your browser.\n\nAfter loading, a button below \"color selection\" section should appear. Click it and follow steps in opened modal window.\n\n### Tested in follwing dev environment\n\n```\nnode v15.0.0\nnpm v7.0.2\nyarn 1.22.10\nmacOS Catalina v10.15.7\nFireFox Developer Edition v85.0b5 (64-bit)\n```\n\n### License\n\n[MIT](https://github.com/frenchbread/fe_test_task_widget/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrenchbread%2Ffe_test_task_widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrenchbread%2Ffe_test_task_widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrenchbread%2Ffe_test_task_widget/lists"}