Skip to content

Commit c315373

Browse files
Merge pull request #861 from rocket-admin/update-agent-link
add/edit connection: update agent link
2 parents c919d0f + b733348 commit c315373

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

frontend/src/app/components/connect-db/connect-db.component.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,16 @@
144144

145145
.github-button ::ng-deep .mdc-button__label {
146146
display: flex;
147+
align-items: center;
147148
justify-content: space-between;
148149
width: 100%;
149150
}
150151

151152
.github-icon {
152153
margin-right: 8px;
153-
height: 18px;
154-
width: 18px;
154+
margin-left: -4px;
155+
height: 22px;
156+
width: 22px;
155157
}
156158

157159
.docker-instruction {

frontend/src/app/components/connect-db/connect-db.component.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,15 +339,21 @@ <h1 class="mat-h1 connectForm__fullLine">
339339

340340
<div class="instruction__docker">
341341
<p class="mat-body-1">
342-
Visit our GitHub page to install the Rocketadmin agent via Docker.
342+
Visit our DockerHub page to install the Rocketadmin agent via Docker.
343343
</p>
344344

345345
<a mat-flat-button color="accent" class="github-button"
346-
href="https://github.com/rocket-admin/rocketadmin-agent" target="_blank"
347-
data-testid="connection-agent-github-link"
346+
href="https://hub.docker.com/r/rocketadmin/rocketadmin-agent" target="_blank"
347+
data-testid="connection-agent-dockerhub-link"
348348
angulartics2On="click"
349349
angularticsAction="Connection creds {{ db.id ? 'edit' : 'add' }}: open github agent page">
350-
<svg class="github-icon" viewBox="0 0 98 96" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#fff"/></svg>
350+
<svg class="github-icon" xmlns="http://www.w3.org/2000/svg"
351+
aria-label="Docker" role="img"
352+
viewBox="0 0 512 512"><rect
353+
width="512" height="512"
354+
rx="15%"
355+
fill="transparent"/><path stroke="#fff" stroke-width="38" d="M296 226h42m-92 0h42m-91 0h42m-91 0h41m-91 0h42m8-46h41m8 0h42m7 0h42m-42-46h42"/><path fill="#fff" d="m472 228s-18-17-55-11c-4-29-35-46-35-46s-29 35-8 74c-6 3-16 7-31 7H68c-5 19-5 145 133 145 99 0 173-46 208-130 52 4 63-39 63-39"/></svg>
356+
351357
<span>Install Rocketadmin agent</span>
352358
</a>
353359

0 commit comments

Comments
 (0)