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
bec0f26f
Commit
bec0f26f
authored
Nov 05, 2020
by
Justin Ho Tuan Duong
Committed by
Mike Greiling
Nov 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Webpack setup for Jira Connect app
- Create a separate JS bundle for jira_connect - Add ESLint
parent
de852bce
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
1 deletion
+36
-1
app/assets/javascripts/jira_connect/.eslintrc.yml
app/assets/javascripts/jira_connect/.eslintrc.yml
+5
-0
app/assets/javascripts/jira_connect/components/app.vue
app/assets/javascripts/jira_connect/components/app.vue
+7
-0
app/assets/javascripts/jira_connect/index.js
app/assets/javascripts/jira_connect/index.js
+15
-0
app/assets/stylesheets/page_bundles/jira_connect.scss
app/assets/stylesheets/page_bundles/jira_connect.scss
+3
-1
app/views/jira_connect/subscriptions/index.html.haml
app/views/jira_connect/subscriptions/index.html.haml
+5
-0
config/webpack.config.js
config/webpack.config.js
+1
-0
No files found.
app/assets/javascripts/jira_connect/.eslintrc.yml
0 → 100644
View file @
bec0f26f
globals
:
AP
:
readonly
rules
:
'
@gitlab/require-i18n-strings'
:
off
'
@gitlab/vue-require-i18n-strings'
:
off
app/assets/javascripts/jira_connect/components/app.vue
0 → 100644
View file @
bec0f26f
<
script
>
export
default
{};
</
script
>
<
template
>
<div></div>
</
template
>
app/assets/javascripts/jira_connect/index.js
0 → 100644
View file @
bec0f26f
import
Vue
from
'
vue
'
;
import
App
from
'
./components/app.vue
'
;
function
initJiraConnect
()
{
const
el
=
document
.
querySelector
(
'
.js-jira-connect-app
'
);
return
new
Vue
({
el
,
render
(
createElement
)
{
return
createElement
(
App
,
{});
},
});
}
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initJiraConnect
);
app/assets/stylesheets/page_bundles/jira_connect.scss
View file @
bec0f26f
@import
'framework/variables'
;
@import
'mixins_and_variables_and_functions'
;
// We should only import styles that we actually use.
// @import '@gitlab/ui/src/scss/gitlab_ui';
$atlaskit-border-color
:
#dfe1e6
;
$atlaskit-border-color
:
#dfe1e6
;
...
...
app/views/jira_connect/subscriptions/index.html.haml
View file @
bec0f26f
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
.gl-mt-5
.gl-mt-5
%p
Note: this integration only works with accounts on GitLab.com (SaaS).
%p
Note: this integration only works with accounts on GitLab.com (SaaS).
-
else
-
else
.js-jira-connect-app
%form
#add-subscription-form
.subscription-form
{
action:
jira_connect_subscriptions_path
}
%form
#add-subscription-form
.subscription-form
{
action:
jira_connect_subscriptions_path
}
.ak-field-group
.ak-field-group
%label
%label
...
@@ -57,5 +59,8 @@
...
@@ -57,5 +59,8 @@
or enable cross-site cookies in your browser when adding a namespace.
or enable cross-site cookies in your browser when adding a namespace.
%a
{
href:
'https://gitlab.com/gitlab-org/gitlab/-/issues/263509'
,
target:
'_blank'
,
rel:
'noopener noreferrer'
}
Learn more
%a
{
href:
'https://gitlab.com/gitlab-org/gitlab/-/issues/263509'
,
target:
'_blank'
,
rel:
'noopener noreferrer'
}
Learn more
=
webpack_bundle_tag
'performance_bar'
if
performance_bar_enabled?
=
webpack_bundle_tag
'jira_connect_app'
=
page_specific_javascript_tag
(
'jira_connect.js'
)
=
page_specific_javascript_tag
(
'jira_connect.js'
)
-
add_page_specific_style
'page_bundles/jira_connect'
-
add_page_specific_style
'page_bundles/jira_connect'
config/webpack.config.js
View file @
bec0f26f
...
@@ -82,6 +82,7 @@ function generateEntries() {
...
@@ -82,6 +82,7 @@ function generateEntries() {
// sentry: './sentry/index.js', Temporarily commented out to investigate performance: https://gitlab.com/gitlab-org/gitlab/-/issues/251179
// sentry: './sentry/index.js', Temporarily commented out to investigate performance: https://gitlab.com/gitlab-org/gitlab/-/issues/251179
performance_bar
:
'
./performance_bar/index.js
'
,
performance_bar
:
'
./performance_bar/index.js
'
,
chrome_84_icon_fix
:
'
./lib/chrome_84_icon_fix.js
'
,
chrome_84_icon_fix
:
'
./lib/chrome_84_icon_fix.js
'
,
jira_connect_app
:
'
./jira_connect/index.js
'
,
};
};
return
Object
.
assign
(
manualEntries
,
autoEntries
);
return
Object
.
assign
(
manualEntries
,
autoEntries
);
...
...
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