René's URL Explorer Experiment


Title: Generate components · Issue #91 · microsoft/angular-react · GitHub

Open Graph Title: Generate components · Issue #91 · microsoft/angular-react

X Title: Generate components · Issue #91 · microsoft/angular-react

Description: The issue Currently creating @angular-react components is done manually, specially in @angular-react/fabric (but the same holds true for any library implementation). This is fine for a few components, and didn't prove to be worth the eff...

Open Graph Description: The issue Currently creating @angular-react components is done manually, specially in @angular-react/fabric (but the same holds true for any library implementation). This is fine for a few componen...

X Description: The issue Currently creating @angular-react components is done manually, specially in @angular-react/fabric (but the same holds true for any library implementation). This is fine for a few componen...

Opengraph URL: https://github.com/microsoft/angular-react/issues/91

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Generate components","articleBody":"### The issue\r\nCurrently creating `@angular-react` components is done manually, specially in `@angular-react/fabric` (but the same holds true for any library implementation).\r\nThis is fine for a few components, and didn't prove to be worth the effort of creating such a tool, but as the library grows, and more components are added - this seems like it would simplify the long-term maintenance, especially in regards to upgrading the underlying React UI framework (e.g. [`office-ui-fabric-react`](https://github.com/OfficeDev/office-ui-fabric-react/), [`Semantic-UI-React`](https://github.com/Semantic-Org/Semantic-UI-React)).\r\n\r\n### Proposed solution\r\nThere are a number of ways to go about this, but the most likely is to use [Angular Schematics](https://blog.angular.io/schematics-an-introduction-dc1dfbc2a2b2) to generate components, which as part of the inputs will take some sort of identifier for a `*Props` interface (e.g. [`ICheckboxProps`](https://github.com/OfficeDev/office-ui-fabric-react/blob/90deffbfc7ba9aefdb9d10bc54fa1452b6fc9cfa/packages/office-ui-fabric-react/src/components/Checkbox/Checkbox.types.ts#L21)), and together with the [TypeScript compiler API](https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API) (or any of its wrappers) and add the relevant `Input`s and `Output`s for the component, as well as bindings for the template etc.:\r\n1. Props that are of type `string | number | boolean | object` should be added as-is. e.g: `componentRef?: IRefObject\u003cICheckbox>` -> `@Input() componentRef?: ICheckboxProps['componentRef']`\r\n1. Props that conform to `(...args: any[]) => void` should be added as `@Output`s, with the arguments added as an object with properties the same name as the function parameters. e.g.: `onChange?: (ev?: React.FormEvent\u003cHTMLElement | HTMLInputElement>, checked?: boolean) => void` -> `@Output() readonly onChange = new EventEmitter\u003c{ ev?: Event, checked?: boolean }>()`.\r\n  1. Props that confirm to `(...args: any[]) => *non-void*` should be added as-is (see 1. above), also as `@Input`s.\r\n1. Props that are of type `IRenderFunction\u003cT>` should be added as `InputRendererOptions\u003cT>`. If the prop name is prefixed with an `on`, omit it (the Angular doesn't let `Input`s be prefixed with `on`), and camel-cased. e.g.:\r\n`onRenderNavigation?: IRenderFunction\u003cIPanelProps>` -> `@Input() renderNavigation?: InputRendererOptions\u003cIPanelProps>`.\r\n1. (optional) copy the JDoc as-is.\r\n\r\n### Open issues:\r\n* The proposed solution is very specific to `office-ui-fabric-react`, as this is the only actively-maintained package wrapper - I think this is enough to support automating it, for the moment at least.\r\n* There are probably more things that could be automated as far as generation goes, but the above list is a (very) good start.\r\n* For anything that's not defined above, examples and patterns from the existing code-base of `@angular-react/fabric` can be used as reference.","author":{"url":"https://github.com/bengry","@type":"Person","name":"bengry"},"datePublished":"2019-02-17T21:12:20Z","url":"https://github.com/microsoft/angular-react/issues/91"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1caefee2-c0a0-0e51-9291-ae7cf95c8018
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA12E:33444D:AA97F9:E481DA:6B00EFA8
html-safe-nonce3271e913def1eb6c357fb01496160bf41a16d0704c0d1a8d27298369a97ed67a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTJFOjMzNDQ0RDpBQTk3Rjk6RTQ4MURBOjZCMDBFRkE4IiwidmlzaXRvcl9pZCI6Ijg1NjQ4ODQ0NzA4OTYzNTI0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac55b1d9bcec5e8b07d03194a121e3e768c8f5b70f947abed99b149af9fe219404
hovercard-subject-tagissue:411235633
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/angular-react/91/issue_layout
twitter:imagehttps://opengraph.githubassets.com/686cece2e96e7fb5064fbba795036359fd3ba604bcdbf351be0574a6672990e3/microsoft/angular-react/issues/91
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/686cece2e96e7fb5064fbba795036359fd3ba604bcdbf351be0574a6672990e3/microsoft/angular-react/issues/91
og:image:altThe issue Currently creating @angular-react components is done manually, specially in @angular-react/fabric (but the same holds true for any library implementation). This is fine for a few componen...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebengry
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
go-importgithub.com/microsoft/angular-react git https://github.com/microsoft/angular-react.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id144321557
octolytics-dimension-repository_nwomicrosoft/angular-react
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id144321557
octolytics-dimension-repository_network_root_nwomicrosoft/angular-react
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/angular-react/issues/91#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fangular-react%2Fissues%2F91
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fangular-react%2Fissues%2F91
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fangular-react
Reloadhttps://github.com/microsoft/angular-react/issues/91
Reloadhttps://github.com/microsoft/angular-react/issues/91
Reloadhttps://github.com/microsoft/angular-react/issues/91
microsofthttps://github.com/microsoft
angular-reacthttps://github.com/microsoft/angular-react
Codehttps://github.com/microsoft/angular-react
Issues25 (25)https://github.com/microsoft/angular-react/issues
Pull requests30 (30)https://github.com/microsoft/angular-react/pulls
Actionshttps://github.com/microsoft/angular-react/actions
Projectshttps://github.com/microsoft/angular-react/projects
Wikihttps://github.com/microsoft/angular-react/wiki
Security and qualityhttps://github.com/microsoft/angular-react/security
Insightshttps://github.com/microsoft/angular-react/insights
https://github.com/microsoft/angular-react
Generate componentshttps://github.com/microsoft/angular-react/issues/91#top
help wantedExtra attention is neededhttps://github.com/microsoft/angular-react/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
pinnedhttps://github.com/microsoft/angular-react/issues?q=state%3Aopen%20label%3A%22pinned%22
https://github.com/bengry
Ben Grynhaus (bengry)https://github.com/bengry
on Feb 17, 2019https://github.com/microsoft/angular-react/issues/91#issue-411235633
office-ui-fabric-reacthttps://github.com/OfficeDev/office-ui-fabric-react/
Semantic-UI-Reacthttps://github.com/Semantic-Org/Semantic-UI-React
Angular Schematicshttps://blog.angular.io/schematics-an-introduction-dc1dfbc2a2b2
ICheckboxPropshttps://github.com/OfficeDev/office-ui-fabric-react/blob/90deffbfc7ba9aefdb9d10bc54fa1452b6fc9cfa/packages/office-ui-fabric-react/src/components/Checkbox/Checkbox.types.ts#L21
TypeScript compiler APIhttps://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API
Ben Grynhaus (bengry)https://github.com/bengry
help wantedExtra attention is neededhttps://github.com/microsoft/angular-react/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
pinnedhttps://github.com/microsoft/angular-react/issues?q=state%3Aopen%20label%3A%22pinned%22
on Feb 17, 2019https://github.com/microsoft/angular-react/issues/91#event-2144902807
https://github.com/bengry
Ben Grynhaus (bengry)https://github.com/bengry
on Feb 18, 2019https://github.com/microsoft/angular-react/issues/91#issuecomment-464877309
https://www.npmjs.com/package/ts-morphhttps://www.npmjs.com/package/ts-morph
https://github.com/angular/angular/blob/master/packages/language-service/src/types.tshttps://github.com/angular/angular/blob/master/packages/language-service/src/types.ts
…https://github.com/microsoft/angular-react/issues/91
https://github.com/eswarpr
Eswar Prakash (eswarpr)https://github.com/eswarpr
on Feb 19, 2019https://github.com/microsoft/angular-react/issues/91#issuecomment-465292209
https://github.com/eswarpr
Eswar Prakash (eswarpr)https://github.com/eswarpr
on Feb 28, 2019https://github.com/microsoft/angular-react/issues/91#issuecomment-468479209
Ben Grynhaus (@bengry)https://github.com/bengry
https://github.com/bengry
Ben Grynhaus (bengry)https://github.com/bengry
on Mar 1, 2019https://github.com/microsoft/angular-react/issues/91#issuecomment-468616364
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/angular-react/issues/91
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/angular-react/issues/91
help wantedExtra attention is neededhttps://github.com/microsoft/angular-react/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
pinnedhttps://github.com/microsoft/angular-react/issues?q=state%3Aopen%20label%3A%22pinned%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.