Skip to content

Commit

Permalink
Merge pull request #164 from AbdelHajou/master
Browse files Browse the repository at this point in the history
Add support for private package repositories
  • Loading branch information
nscuro committed Jun 7, 2022
2 parents 7631303 + e602890 commit 4c405dc
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@
"personal_access_token": "Personal Access Token",
"identifier": "Identifier",
"url": "URL",
"username": "Username",
"password": "Password (or access token)",
"enabled": "Enabled",
"integration_fortify_ssc_enable": "Enable Fortify SSC integration",
"integration_defectdojo_enable": "Enable DefectDojo integration",
Expand Down
22 changes: 22 additions & 0 deletions src/views/administration/repositories/Repositories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,24 @@
<c-switch color="primary" v-model="internal" label v-bind="labelIcon" />{{$t('admin.internal')}}
</div>
<div>
<b-validated-input-group-form-input
id="username" :label="$t('admin.username')"
input-group-size="mb-3"
v-model="username"
v-show="internal"
v-debounce:750ms="updateRepository" :debounce-events="'keyup'"/>
</div>
<div>
<b-validated-input-group-form-input
id="password" :label="$t('admin.password')"
input-group-size="mb-3"
v-model="password"
v-show="internal"
v-debounce:750ms="updateRepository" :debounce-events="'keyup'"/>
</div>
<div>
<c-switch color="primary" v-model="enabled" label v-bind="labelIcon" />{{$t('admin.enabled')}}
</div>
Expand All @@ -153,6 +171,8 @@
identifier: row.identifier,
url: row.url,
internal: row.internal,
username: row.username,
password: row.password || null,
enabled: row.enabled,
uuid: row.uuid,
labelIcon: {
Expand Down Expand Up @@ -185,6 +205,8 @@
identifier: this.identifier,
url: this.url,
internal: this.internal,
username: this.username,
password: this.password || null,
enabled: this.enabled,
uuid: this.uuid
}).then((response) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@
<div>
<c-switch color="primary" v-model="internal" label v-bind="labelIcon" />{{$t('admin.internal')}}
</div>

<b-validated-input-group-form-input
id="username"
:label="$t('admin.username')"
input-group-size="mb-3"
v-model="username"
v-show="internal"
/>

<b-validated-input-group-form-input
id="password"
:label="$t('admin.password')"
input-group-size="mb-3"
v-model="password"
v-show="internal"
/>

<div>
<c-switch color="primary" v-model="enabled" label v-bind="labelIcon" />{{$t('admin.enabled')}}
</div>
Expand Down Expand Up @@ -57,6 +74,8 @@
repositoryType: null,
initialRepositoryType: null,
internal: false,
username: null,
password: null,
enabled: true,
labelIcon: {
dataOn: '\u2713',
Expand All @@ -83,6 +102,8 @@
identifier: this.identifier,
url: this.url,
internal: this.internal,
username: this.username,
password: this.password || null,
enabled: this.enabled
}).then((response) => {
this.$emit('refreshTable');
Expand All @@ -99,6 +120,8 @@
this.identifier = null;
this.url = null;
this.internal = false;
this.username = null;
this.password = null;
this.enabled = true;
}
}
Expand Down

0 comments on commit 4c405dc

Please sign in to comment.