-
Notifications
You must be signed in to change notification settings - Fork 0
Fake pull request #240
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
base: main
Are you sure you want to change the base?
Fake pull request #240
Changes from all commits
bb6d3d5
79cb7dc
24a8e59
a39b282
a8743b2
79102f8
2bf08ea
7991f1d
ae4c252
e3ff13e
14e1887
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,9 @@ public String getActionName() { | |
| return "AuthCreateIdentity"; | ||
| } else if (action == RadAuthAction.UNLOCKED_IDENTITY) { | ||
| return "AuthUnlockedIdentity"; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ha
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Installation |
||
| } | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. test |
||
| } else if (action == RadAuthAction.UNLOCKED_IDENTITY) { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. test |
||
| return "AuthUnlockedIdentity"; | ||
| } | ||
| return ""; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. test |
||
| } | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. gg |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,21 +7,33 @@ | |
| import java.util.ArrayList; | ||
| import java.util.List; | ||
|
|
||
| public class RadRemote extends RadAction { | ||
| public RadRemote(GitRepository repo) { | ||
| public class RadRemote12 extends RadAction { | ||
| public RadRemote12(GitRepository repo) { | ||
| super(repo); | ||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
| @Override | ||
| public String getActionName() { | ||
| return "Remote"; | ||
| return "test"; | ||
| } | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change this |
||
|
|
||
| @Override | ||
| public ProcessOutput run() { | ||
| var rad = repo.getProject().getService(RadicleProjectService.class); | ||
| return rad.remoteList(repo); | ||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| public List<Peer> findTrackedPeers() { | ||
| var out = this.perform(); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change |
||
|
|
@@ -36,5 +48,11 @@ public List<Peer> findTrackedPeers() { | |
| return peers; | ||
| } | ||
|
|
||
| @Override | ||
| public ProcessOutput run() { | ||
| var rad = repo.getProject().getService(RadicleProjectService.class); | ||
| return rad.remoteList(repo); | ||
| } | ||
|
|
||
| public record Peer(String name, String id) { } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -130,14 +130,14 @@ private boolean isRadHomeValidPath(String radPath, String radHome) { | |
| private void unlockOrCreateIdentity() { | ||
| msgLabel.setText(""); | ||
| ApplicationManager.getApplication().executeOnPooledThread(() -> { | ||
| var radHome = getPathFromTextField(radHomeField); | ||
| var radHome = getPathFromTextField(radHomeField); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. delete spaces |
||
| var radPath = getPathFromTextField(radPathField); | ||
| var radSelf = new RadSelf(radHome, radPath, myProject); | ||
| var radSelf = new RadSelf(radHome, radPath, myProject); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. delete spaces |
||
| var output = radSelf.perform(); | ||
| var lines = output.getStdoutLines(true); | ||
| radDetails = new RadDetails(lines); | ||
| var rad = myProject.getService(RadicleProjectService.class); | ||
| var isIdentityUnlocked = rad.isIdentityUnlocked(radDetails.keyHash); | ||
| var isIdentityUnlocked = rad.isIdentityUnlocked(radDetails.keyHash); | ||
| /* If radSelf executed with exit code 0 then we have an identity !! */ | ||
| var success = RadAction.isSuccess(output); | ||
| ApplicationManager.getApplication().invokeLater(() -> { | ||
|
|
@@ -147,7 +147,7 @@ private void unlockOrCreateIdentity() { | |
| return; | ||
| } | ||
| /* if there is no identity or unlocked identity show passphrase dialog */ | ||
| var title = !success ? RadicleBundle.message("newIdentity") : | ||
| var title = !success ? RadicleBundle.message("newIdentity") : | ||
| RadicleBundle.message("unlockIdentity"); | ||
| var dialog = this.identityDialog == null ? new IdentityDialog() : this.identityDialog; | ||
| dialog.setTitle(title); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.