{"id":17160332,"url":"https://github.com/codenameyau/web-journal","last_synced_at":"2026-01-19T11:33:06.271Z","repository":{"id":27933898,"uuid":"111296018","full_name":"codenameyau/web-journal","owner":"codenameyau","description":":octocat: My web component journal","archived":false,"fork":false,"pushed_at":"2023-01-04T21:39:32.000Z","size":8393,"stargazers_count":2,"open_issues_count":45,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T04:22:51.701Z","etag":null,"topics":["animations","canvas","components","css","html","react","storybook","styled-components"],"latest_commit_sha":null,"homepage":"https://codenameyau.github.io/web-journal","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/codenameyau.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}},"created_at":"2017-11-19T13:07:05.000Z","updated_at":"2021-10-05T20:58:11.000Z","dependencies_parsed_at":"2022-07-13T07:51:30.805Z","dependency_job_id":null,"html_url":"https://github.com/codenameyau/web-journal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codenameyau/web-journal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fweb-journal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fweb-journal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fweb-journal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fweb-journal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenameyau","download_url":"https://codeload.github.com/codenameyau/web-journal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameyau%2Fweb-journal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28566465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"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":["animations","canvas","components","css","html","react","storybook","styled-components"],"created_at":"2024-10-14T22:24:30.961Z","updated_at":"2026-01-19T11:33:06.254Z","avatar_url":"https://github.com/codenameyau.png","language":"JavaScript","readme":"# web-journal\nHello this is my collection of web development knowledge that I have\naccumulated. It contains console tips and tricks, reusable styled components,\ndocumentation, and much more.\n\n- Website: https://codenameyau.github.io/web-journal\n- Web Resources: https://github.com/codenameyau/web-journal/blob/master/docs/web-resources.md\n- Styled Components: https://github.com/codenameyau/web-journal/blob/master/docs/styled-components.md\n- Webpack: https://github.com/codenameyau/web-journal/blob/master/docs/webpack.md\n\n## Table of Contents\n- [web-journal](#web-journal)\n  - [Table of Contents](#table-of-contents)\n  - [Commands](#commands)\n  - [Console Tricks](#console-tricks)\n    - [Copy variables to clipboard](#copy-variables-to-clipboard)\n    - [See all event listeners](#see-all-event-listeners)\n    - [Grab all images from a page](#grab-all-images-from-a-page)\n    - [Access third-party variables](#access-third-party-variables)\n\n## Commands\n```bash\n# Install dependencies.\nyarn install\n\n# Starts the storybook app.\nyarn storybook\n\n# Deploys updates on master to gh-pages.\nyarn deploy\n```\n\n## Console Tricks\n\n### Copy variables to clipboard\n```js\n// Copy variable.\ncopy(temp1)\n\n// Copy JSON object.\ncopy(JSON.stringify(temp1))\n```\n\n### See all event listeners\n```js\ngetEventListeners(document)\n\n// JSON format.\ncopy(getEventListeners(document))\n```\n\n### Grab all images from a page\n```js\nArray.from(document.images).map(img =\u003e img.src)\n\n// JSON format.\ncopy(Array.from(document.images).map(img =\u003e img.getAttribute('src')).filter(img =\u003e !!img))\n\n// List format.\ncopy(Array.from(document.images).reduce((acc, img) =\u003e acc + img.src + '\\n', ''))\n```\n\n### Access third-party variables\n```\nwindow.frames\n```\n\n### Jest\n\nMock a library implementation.\n\n```js\njest.mock(\"@auth0/auth0-spa-js\", () =\u003e {\n  return {\n    Auth0Client: jest.fn().mockImplementation(() =\u003e ({\n      logout: jest.fn(),\n      loginWithRedirect: jest.fn(),\n      getTokenSilently: jest.fn(),\n      getUser: jest.fn(),\n      getIdTokenClaims: jest.fn(),\n      checkSession: jest.fn(),\n      handleRedirectCallback: jest.fn(),\n    })),\n  };\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenameyau%2Fweb-journal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenameyau%2Fweb-journal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenameyau%2Fweb-journal/lists"}