Visitar URL original
feat: add the ability to copy module import to the clipboard by hadzhiyski · Pull Request #754 · angular/material.angular.io · GitHub
The Wayback Machine - https://web.archive.org/web/20201018235513/https://github.com/angular/material.angular.io/pull/754
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add the ability to copy module import to the clipboard #754

Open
wants to merge 5 commits into
base: master
from

Conversation

@hadzhiyski
Copy link

@hadzhiyski hadzhiyski commented Apr 28, 2020 •

Closes #628

Related changes:

Copy link
Member

@Splaktar Splaktar left a comment

Thank you for the contribution!

Can you please post a screenshot in the OP?

@@ -0,0 +1,50 @@
import { Component, Input, AfterViewInit, OnInit } from "@angular/core";
import { MatSnackBar } from "@angular/material/snack-bar";
import { CopierService } from "../../copier/copier.service";

This comment has been minimized.

@Splaktar

Splaktar Apr 29, 2020
Member

We should probably look at replacing the CopierService with the new https://material.angular.io/cdk/clipboard/overview.

This comment has been minimized.

@hadzhiyski

hadzhiyski Apr 30, 2020
Author

I was wondering about the CopierService, but left it that way for consistency. There are other components which are using it as well, for example the ExampleViewer component. It might be a good idea to switch to Clipboard with separate PR.

@hadzhiyski hadzhiyski requested a review from Splaktar Apr 30, 2020
@hadzhiyski
Copy link
Author

@hadzhiyski hadzhiyski commented Apr 30, 2020

image

Here is a screenshot of the changes. Ignore the fact that Material autocomplete is importing MatButtonModule. It is just for the test.

@hadzhiyski
Copy link
Author

@hadzhiyski hadzhiyski commented May 4, 2020

@Splaktar this PR is ready for review.

Copy link
Member

@Splaktar Splaktar left a comment

Thank you for making those updates. Sorry for the delay in getting to this review.

Something happened with your last update/rebase. I don't think that this change should have 49 changed files and many of them seem to be coming from other commits. Can you please rebase your commit on top of the latest master and force push it up again?

@hadzhiyski hadzhiyski force-pushed the hadzhiyski:docs-copy-import branch from 5f9167f to 213876c Jun 15, 2020
@googlebot
Copy link
Collaborator

@googlebot googlebot commented Jun 15, 2020

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: no and removed cla: yes labels Jun 15, 2020
@hadzhiyski hadzhiyski force-pushed the hadzhiyski:docs-copy-import branch from 7986326 to 213876c Jun 15, 2020
@googlebot
Copy link
Collaborator

@googlebot googlebot commented Jun 15, 2020

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes and removed cla: no labels Jun 15, 2020
@googlebot
Copy link
Collaborator

@googlebot googlebot commented Jun 15, 2020

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: no and removed cla: yes labels Jun 15, 2020
@hadzhiyski hadzhiyski force-pushed the hadzhiyski:docs-copy-import branch from 52356af to 6ea712d Jun 15, 2020
@googlebot
Copy link
Collaborator

@googlebot googlebot commented Jun 15, 2020

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes and removed cla: no labels Jun 15, 2020
hadzhiyski and others added 2 commits Jun 15, 2020
…le-import.ts

Co-authored-by: Michael Prentice <splaktar@gmail.com>
@hadzhiyski hadzhiyski requested a review from Splaktar Jun 15, 2020
@hadzhiyski
Copy link
Author

@hadzhiyski hadzhiyski commented Jul 13, 2020

Hello @Splaktar,
It has been a while since your last review. From my perspective, everything is covered. Do you expect something else which I might have missed?

Copy link
Member

@Splaktar Splaktar left a comment

I checked this out locally to test it. I also rebased it on the latest master. However, I was unable to get the copy icon to appear or be rendered?

Screen Shot 2020-07-14 at 16 31 52

Screen Shot 2020-07-14 at 16 35 42

@hadzhiyski
Copy link
Author

@hadzhiyski hadzhiyski commented Jul 15, 2020

Hi,
Most probably the reason is this angular/components#19200 . If you test it locally, you should rebuild the docs locally as well, because their PR is still open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants
You can’t perform that action at this time.