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
20ac7053
Commit
20ac7053
authored
Jul 22, 2020
by
Jose Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add metrics-dashboard template to WebIDE
parent
e440df08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app/assets/javascripts/ide/stores/modules/file_templates/getters.js
.../javascripts/ide/stores/modules/file_templates/getters.js
+4
-0
spec/frontend/ide/stores/modules/file_templates/getters_spec.js
...rontend/ide/stores/modules/file_templates/getters_spec.js
+1
-1
No files found.
app/assets/javascripts/ide/stores/modules/file_templates/getters.js
View file @
20ac7053
...
@@ -18,6 +18,10 @@ export const templateTypes = () => [
...
@@ -18,6 +18,10 @@ export const templateTypes = () => [
name
:
__
(
'
Dockerfile
'
),
name
:
__
(
'
Dockerfile
'
),
key
:
'
dockerfiles
'
,
key
:
'
dockerfiles
'
,
},
},
{
name
:
'
.metrics-dashboard.yml
'
,
key
:
'
metrics_dashboard_ymls
'
,
},
];
];
export
const
showFileTemplatesBar
=
(
_
,
getters
,
rootState
)
=>
name
=>
export
const
showFileTemplatesBar
=
(
_
,
getters
,
rootState
)
=>
name
=>
...
...
spec/frontend/ide/stores/modules/file_templates/getters_spec.js
View file @
20ac7053
...
@@ -5,7 +5,7 @@ import * as getters from '~/ide/stores/modules/file_templates/getters';
...
@@ -5,7 +5,7 @@ import * as getters from '~/ide/stores/modules/file_templates/getters';
describe
(
'
IDE file templates getters
'
,
()
=>
{
describe
(
'
IDE file templates getters
'
,
()
=>
{
describe
(
'
templateTypes
'
,
()
=>
{
describe
(
'
templateTypes
'
,
()
=>
{
it
(
'
returns list of template types
'
,
()
=>
{
it
(
'
returns list of template types
'
,
()
=>
{
expect
(
getters
.
templateTypes
().
length
).
toBe
(
4
);
expect
(
getters
.
templateTypes
().
length
).
toBe
(
5
);
});
});
});
});
...
...
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