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
1449cc3c
Commit
1449cc3c
authored
Apr 07, 2021
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide all snippet sources configuration paths
parent
628f2706
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
app/assets/javascripts/pipeline_editor/index.js
app/assets/javascripts/pipeline_editor/index.js
+9
-2
No files found.
app/assets/javascripts/pipeline_editor/index.js
View file @
1449cc3c
...
@@ -3,6 +3,7 @@ import Vue from 'vue';
...
@@ -3,6 +3,7 @@ import Vue from 'vue';
import
VueApollo
from
'
vue-apollo
'
;
import
VueApollo
from
'
vue-apollo
'
;
import
createDefaultClient
from
'
~/lib/graphql
'
;
import
createDefaultClient
from
'
~/lib/graphql
'
;
import
{
resetServiceWorkersPublicPath
}
from
'
../lib/utils/webpack
'
;
import
{
resetServiceWorkersPublicPath
}
from
'
../lib/utils/webpack
'
;
import
{
CODE_SNIPPET_SOURCE_SETTINGS
}
from
'
./components/code_snippet_alert/constants
'
;
import
getCommitSha
from
'
./graphql/queries/client/commit_sha.graphql
'
;
import
getCommitSha
from
'
./graphql/queries/client/commit_sha.graphql
'
;
import
getCurrentBranch
from
'
./graphql/queries/client/current_branch.graphql
'
;
import
getCurrentBranch
from
'
./graphql/queries/client/current_branch.graphql
'
;
import
{
resolvers
}
from
'
./graphql/resolvers
'
;
import
{
resolvers
}
from
'
./graphql/resolvers
'
;
...
@@ -35,9 +36,15 @@ export const initPipelineEditor = (selector = '#js-pipeline-editor') => {
...
@@ -35,9 +36,15 @@ export const initPipelineEditor = (selector = '#js-pipeline-editor') => {
projectPath
,
projectPath
,
projectNamespace
,
projectNamespace
,
ymlHelpPagePath
,
ymlHelpPagePath
,
apiFuzzingConfigurationPath
,
}
=
el
?.
dataset
;
}
=
el
?.
dataset
;
const
provideCodeSnippetConfigurationPaths
=
Object
.
fromEntries
(
Object
.
values
(
CODE_SNIPPET_SOURCE_SETTINGS
).
map
(({
configurationPathInjectKey
})
=>
[
configurationPathInjectKey
,
el
.
dataset
[
configurationPathInjectKey
],
]),
);
Vue
.
use
(
VueApollo
);
Vue
.
use
(
VueApollo
);
const
apolloProvider
=
new
VueApollo
({
const
apolloProvider
=
new
VueApollo
({
...
@@ -72,7 +79,7 @@ export const initPipelineEditor = (selector = '#js-pipeline-editor') => {
...
@@ -72,7 +79,7 @@ export const initPipelineEditor = (selector = '#js-pipeline-editor') => {
projectPath
,
projectPath
,
projectNamespace
,
projectNamespace
,
ymlHelpPagePath
,
ymlHelpPagePath
,
apiFuzzingConfigurationPath
,
...
provideCodeSnippetConfigurationPaths
,
},
},
render
(
h
)
{
render
(
h
)
{
return
h
(
PipelineEditorApp
);
return
h
(
PipelineEditorApp
);
...
...
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