diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-24 15:08:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-24 15:08:44 +0000 |
commit | 120f4aaedc8fe830a3f572491d240d8ee6addefb (patch) | |
tree | a2138baa55dfa67d292fb1a83ce686ee7f5d10a5 /app/assets | |
parent | 729e3765d5feb762df1ccfbc228a8dd4662aa3f9 (diff) | |
download | gitlab-ce-120f4aaedc8fe830a3f572491d240d8ee6addefb.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/pages/admin/application_settings/integrations/index.js | 6 | ||||
-rw-r--r-- | app/assets/javascripts/pages/projects/snippets/show/index.js | 4 | ||||
-rw-r--r-- | app/assets/javascripts/pages/snippets/show/index.js | 4 | ||||
-rw-r--r-- | app/assets/javascripts/pipelines/components/pipeline_url.vue | 6 | ||||
-rw-r--r-- | app/assets/javascripts/snippets/components/show.vue (renamed from app/assets/javascripts/snippets/components/app.vue) | 0 | ||||
-rw-r--r-- | app/assets/javascripts/snippets/index.js | 17 | ||||
-rw-r--r-- | app/assets/stylesheets/utilities.scss | 5 |
7 files changed, 30 insertions, 12 deletions
diff --git a/app/assets/javascripts/pages/admin/application_settings/integrations/index.js b/app/assets/javascripts/pages/admin/application_settings/integrations/index.js new file mode 100644 index 00000000000..2e61eedd185 --- /dev/null +++ b/app/assets/javascripts/pages/admin/application_settings/integrations/index.js @@ -0,0 +1,6 @@ +import PersistentUserCallout from '~/persistent_user_callout'; + +document.addEventListener('DOMContentLoaded', () => { + const callout = document.querySelector('.js-admin-integrations-moved'); + PersistentUserCallout.factory(callout); +}); diff --git a/app/assets/javascripts/pages/projects/snippets/show/index.js b/app/assets/javascripts/pages/projects/snippets/show/index.js index d8fbb851ffb..e49d46ea97b 100644 --- a/app/assets/javascripts/pages/projects/snippets/show/index.js +++ b/app/assets/javascripts/pages/projects/snippets/show/index.js @@ -3,7 +3,7 @@ import ZenMode from '~/zen_mode'; import LineHighlighter from '~/line_highlighter'; import BlobViewer from '~/blob/viewer'; import snippetEmbed from '~/snippet/snippet_embed'; -import initSnippetsApp from '~/snippets'; +import { SnippetShowInit } from '~/snippets'; document.addEventListener('DOMContentLoaded', () => { if (!gon.features.snippetsVue) { @@ -13,7 +13,7 @@ document.addEventListener('DOMContentLoaded', () => { new ZenMode(); // eslint-disable-line no-new snippetEmbed(); } else { - initSnippetsApp(); + SnippetShowInit(); initNotes(); } }); diff --git a/app/assets/javascripts/pages/snippets/show/index.js b/app/assets/javascripts/pages/snippets/show/index.js index 3bc9d4f957f..9a463b4762b 100644 --- a/app/assets/javascripts/pages/snippets/show/index.js +++ b/app/assets/javascripts/pages/snippets/show/index.js @@ -3,7 +3,7 @@ import BlobViewer from '~/blob/viewer'; import ZenMode from '~/zen_mode'; import initNotes from '~/init_notes'; import snippetEmbed from '~/snippet/snippet_embed'; -import initSnippetsApp from '~/snippets'; +import { SnippetShowInit } from '~/snippets'; document.addEventListener('DOMContentLoaded', () => { if (!gon.features.snippetsVue) { @@ -13,7 +13,7 @@ document.addEventListener('DOMContentLoaded', () => { new ZenMode(); // eslint-disable-line no-new snippetEmbed(); } else { - initSnippetsApp(); + SnippetShowInit(); initNotes(); } }); diff --git a/app/assets/javascripts/pipelines/components/pipeline_url.vue b/app/assets/javascripts/pipelines/components/pipeline_url.vue index 0c9d242f509..6c977b841af 100644 --- a/app/assets/javascripts/pipelines/components/pipeline_url.vue +++ b/app/assets/javascripts/pipelines/components/pipeline_url.vue @@ -58,7 +58,11 @@ export default { </script> <template> <div class="table-section section-10 d-none d-sm-none d-md-block pipeline-tags"> - <gl-link :href="pipeline.path" class="js-pipeline-url-link js-onboarding-pipeline-item"> + <gl-link + :href="pipeline.path" + class="js-pipeline-url-link js-onboarding-pipeline-item" + data-qa-selector="pipeline_url_link" + > <span class="pipeline-id">#{{ pipeline.id }}</span> </gl-link> <div class="label-container"> diff --git a/app/assets/javascripts/snippets/components/app.vue b/app/assets/javascripts/snippets/components/show.vue index e98f56d87f5..e98f56d87f5 100644 --- a/app/assets/javascripts/snippets/components/app.vue +++ b/app/assets/javascripts/snippets/components/show.vue diff --git a/app/assets/javascripts/snippets/index.js b/app/assets/javascripts/snippets/index.js index 654856f8d14..b826110117c 100644 --- a/app/assets/javascripts/snippets/index.js +++ b/app/assets/javascripts/snippets/index.js @@ -3,19 +3,16 @@ import Translate from '~/vue_shared/translate'; import VueApollo from 'vue-apollo'; import createDefaultClient from '~/lib/graphql'; -import SnippetsApp from './components/app.vue'; +import SnippetsApp from './components/show.vue'; Vue.use(VueApollo); Vue.use(Translate); -export default () => { - const el = document.getElementById('js-snippet-view'); - +function appFactory(el, Component) { if (!el) { return false; } - const { snippetGid } = el.dataset; const apolloProvider = new VueApollo({ defaultClient: createDefaultClient(), }); @@ -24,11 +21,17 @@ export default () => { el, apolloProvider, render(createElement) { - return createElement(SnippetsApp, { + return createElement(Component, { props: { - snippetGid, + ...el.dataset, }, }); }, }); +} + +export const SnippetShowInit = () => { + appFactory(document.getElementById('js-snippet-view'), SnippetsApp); }; + +export default () => {}; diff --git a/app/assets/stylesheets/utilities.scss b/app/assets/stylesheets/utilities.scss index 1eff21401a2..00d738a50be 100644 --- a/app/assets/stylesheets/utilities.scss +++ b/app/assets/stylesheets/utilities.scss @@ -81,3 +81,8 @@ .gl-text-green-700 { @include gl-text-green-700; } .gl-align-items-center { @include gl-align-items-center; } +.d-sm-table-column { + @include media-breakpoint-up(sm) { + display: table-column !important; + } +} |