Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
86313412
Commit
86313412
authored
Feb 07, 2022
by
Darby Frey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing some linter failures
parent
0a37ac11
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
28 deletions
+17
-28
app/assets/javascripts/api.js
app/assets/javascripts/api.js
+1
-0
app/assets/javascripts/ci_secure_files/components/secure_files_list.vue
...ascripts/ci_secure_files/components/secure_files_list.vue
+16
-19
locale/gitlab.pot
locale/gitlab.pot
+0
-9
No files found.
app/assets/javascripts/api.js
View file @
86313412
...
...
@@ -958,6 +958,7 @@ const Api = {
return
axios
.
get
(
url
,
{
params
:
{
per_page
:
DEFAULT_PER_PAGE
,
...
params
}
});
},
// TODO: replace this when GraphQL support has been added https://gitlab.com/gitlab-org/gitlab/-/issues/352184
projectSecureFiles
(
projectId
,
options
=
{}){
const
url
=
Api
.
buildUrl
(
this
.
secureFilesPath
).
replace
(
'
:project_id
'
,
projectId
);
...
...
app/assets/javascripts/ci_secure_files/components/secure_files_list.vue
View file @
86313412
<
script
>
import
{
GlLink
,
GlLoadingIcon
,
GlPagination
,
GlTable
}
from
'
@gitlab/ui
'
;
import
Api
,
{
DEFAULT_PER_PAGE
}
from
'
~/api
'
;
import
{
GlButton
,
GlIcon
,
GlLink
,
GlLoadingIcon
,
GlPagination
,
GlTable
}
from
'
@gitlab/ui
'
;
import
{
helpPagePath
}
from
'
~/helpers/help_page_helper
'
;
import
{
s__
,
__
}
from
'
~/locale
'
;
import
TimeagoTooltip
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
export
default
{
components
:
{
GlLink
,
GlLoadingIcon
,
GlPagination
,
GlTable
,
TimeagoTooltip
,
},
inject
:
[
'
projectId
'
],
docsLink
:
helpPagePath
(
'
ci/secure_files/index
'
),
DEFAULT_PER_PAGE
,
...
...
@@ -26,41 +33,31 @@ export default {
fields
:
[
{
key
:
'
name
'
,
label
:
s
__
(
'
Filename
'
),
label
:
__
(
'
Filename
'
),
},
{
key
:
'
permissions
'
,
label
:
s
__
(
'
Permissions
'
),
label
:
__
(
'
Permissions
'
),
tdClass
:
'
text-plain
'
,
},
{
key
:
'
created_at
'
,
label
:
s
__
(
'
Created
'
),
label
:
__
(
'
Created
'
),
},
],
components
:
{
GlButton
,
GlIcon
,
GlLink
,
GlLoadingIcon
,
GlPagination
,
GlTable
,
helpPagePath
,
TimeagoTooltip
,
},
computed
:
{
fields
()
{
return
this
.
$options
.
fields
;
},
},
created
()
{
this
.
getProjectSecureFiles
();
},
watch
:
{
page
(
newPage
)
{
this
.
getProjectSecureFiles
(
newPage
);
},
},
},
created
()
{
this
.
getProjectSecureFiles
();
},
methods
:
{
async
getProjectSecureFiles
(
page
){
this
.
loading
=
true
;
...
...
@@ -92,7 +89,7 @@ export default {
<gl-table
:busy=
"loading"
:fields=
"fields"
:items=
"
this.
projectSecureFiles"
:items=
"projectSecureFiles"
tbody-tr-class=
"js-ci-secure-files-row"
data-qa-selector=
"ci_secure_files_table_content"
sort-by=
"key"
...
...
locale/gitlab.pot
View file @
86313412
...
...
@@ -43302,15 +43302,6 @@ msgstr ""
msgid "ciReport|is loading, errors when loading results"
msgstr ""
msgid "ciSecureFiles|Filename"
msgstr ""
msgid "ciSecureFiles|Permissions"
msgstr ""
msgid "ciSecureFiles|Created"
msgstr ""
msgid "closed"
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment