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

Add support for private package repositories #164

Merged
merged 2 commits into from
Jun 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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