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
85b67fbc
Commit
85b67fbc
authored
Jan 06, 2020
by
Martin Wortschack
Committed by
Phil Hughes
Jan 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace breakpoints with GlBreakpointInstance in main.js and onboarding/onboarding_welcome/index.js
parent
d3036faf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+4
-3
ee/app/assets/javascripts/onboarding/onboarding_welcome/index.js
...assets/javascripts/onboarding/onboarding_welcome/index.js
+1
-1
No files found.
app/assets/javascripts/main.js
View file @
85b67fbc
...
@@ -19,7 +19,7 @@ import { getLocationHash, visitUrl } from './lib/utils/url_utility';
...
@@ -19,7 +19,7 @@ import { getLocationHash, visitUrl } from './lib/utils/url_utility';
// everything else
// everything else
import
loadAwardsHandler
from
'
./awards_handler
'
;
import
loadAwardsHandler
from
'
./awards_handler
'
;
import
bp
from
'
./breakpoint
s
'
;
import
{
GlBreakpointInstance
as
bp
}
from
'
@gitlab/ui/dist/util
s
'
;
import
Flash
,
{
removeFlashClickListener
}
from
'
./flash
'
;
import
Flash
,
{
removeFlashClickListener
}
from
'
./flash
'
;
import
'
./gl_dropdown
'
;
import
'
./gl_dropdown
'
;
import
initTodoToggle
from
'
./header
'
;
import
initTodoToggle
from
'
./header
'
;
...
@@ -185,7 +185,7 @@ document.addEventListener('DOMContentLoaded', () => {
...
@@ -185,7 +185,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
}
});
});
if
(
bootstrapBreakpoint
===
'
xs
'
)
{
if
(
bootstrapBreakpoint
===
'
sm
'
||
bootstrapBreakpoint
===
'
xs
'
)
{
const
$rightSidebar
=
$
(
'
aside.right-sidebar, .layout-page
'
);
const
$rightSidebar
=
$
(
'
aside.right-sidebar, .layout-page
'
);
$rightSidebar
.
removeClass
(
'
right-sidebar-expanded
'
).
addClass
(
'
right-sidebar-collapsed
'
);
$rightSidebar
.
removeClass
(
'
right-sidebar-expanded
'
).
addClass
(
'
right-sidebar-collapsed
'
);
...
@@ -270,7 +270,8 @@ document.addEventListener('DOMContentLoaded', () => {
...
@@ -270,7 +270,8 @@ document.addEventListener('DOMContentLoaded', () => {
});
});
$document
.
on
(
'
breakpoint:change
'
,
(
e
,
breakpoint
)
=>
{
$document
.
on
(
'
breakpoint:change
'
,
(
e
,
breakpoint
)
=>
{
if
(
breakpoint
===
'
sm
'
||
breakpoint
===
'
xs
'
)
{
const
breakpointSizes
=
[
'
md
'
,
'
sm
'
,
'
xs
'
];
if
(
breakpointSizes
.
includes
(
breakpoint
))
{
const
$gutterIcon
=
$sidebarGutterToggle
.
find
(
'
i
'
);
const
$gutterIcon
=
$sidebarGutterToggle
.
find
(
'
i
'
);
if
(
$gutterIcon
.
hasClass
(
'
fa-angle-double-right
'
))
{
if
(
$gutterIcon
.
hasClass
(
'
fa-angle-double-right
'
))
{
$sidebarGutterToggle
.
trigger
(
'
click
'
);
$sidebarGutterToggle
.
trigger
(
'
click
'
);
...
...
ee/app/assets/javascripts/onboarding/onboarding_welcome/index.js
View file @
85b67fbc
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
{
GlBreakpointInstance
as
breakpointInstance
}
from
'
@gitlab/ui/dist/utils
'
;
import
WelcomePage
from
'
./components/welcome_page.vue
'
;
import
WelcomePage
from
'
./components/welcome_page.vue
'
;
import
{
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
import
{
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
import
{
redirectTo
}
from
'
~/lib/utils/url_utility
'
;
import
{
redirectTo
}
from
'
~/lib/utils/url_utility
'
;
import
onboardingUtils
from
'
./../utils
'
;
import
onboardingUtils
from
'
./../utils
'
;
import
breakpointInstance
from
'
~/breakpoints
'
;
export
default
function
()
{
export
default
function
()
{
const
el
=
document
.
getElementById
(
'
js-onboarding-welcome
'
);
const
el
=
document
.
getElementById
(
'
js-onboarding-welcome
'
);
...
...
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