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
f83b3dc5
Commit
f83b3dc5
authored
Dec 07, 2021
by
Coung Ngo
Committed by
Illya Klymov
Dec 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move code out of ee/pages
parent
2687bb77
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
28 additions
and
24 deletions
+28
-24
ee/app/assets/javascripts/pages/registrations/welcome/index.js
...p/assets/javascripts/pages/registrations/welcome/index.js
+2
-17
ee/app/assets/javascripts/pages/trial_registrations/new/index.js
...assets/javascripts/pages/trial_registrations/new/index.js
+1
-1
ee/app/assets/javascripts/pages/trials/apply/index.js
ee/app/assets/javascripts/pages/trials/apply/index.js
+1
-1
ee/app/assets/javascripts/pages/trials/create_lead/index.js
ee/app/assets/javascripts/pages/trials/create_lead/index.js
+1
-1
ee/app/assets/javascripts/pages/trials/new/index.js
ee/app/assets/javascripts/pages/trials/new/index.js
+1
-1
ee/app/assets/javascripts/pages/trials/select/index.js
ee/app/assets/javascripts/pages/trials/select/index.js
+1
-1
ee/app/assets/javascripts/registrations/groups/new/index.js
ee/app/assets/javascripts/registrations/groups/new/index.js
+1
-1
ee/app/assets/javascripts/registrations/welcome/index.js
ee/app/assets/javascripts/registrations/welcome/index.js
+19
-0
ee/app/assets/javascripts/trial_registrations/username_suggester.js
...ets/javascripts/trial_registrations/username_suggester.js
+0
-0
ee/app/assets/javascripts/trials/country_select.js
ee/app/assets/javascripts/trials/country_select.js
+0
-0
ee/app/assets/javascripts/trials/namespace_select.js
ee/app/assets/javascripts/trials/namespace_select.js
+0
-0
ee/spec/frontend/trial_registrations/username_suggester_spec.js
...c/frontend/trial_registrations/username_suggester_spec.js
+1
-1
No files found.
ee/app/assets/javascripts/pages/registrations/welcome/index.js
View file @
f83b3dc5
import
'
ee/registrations/welcome/other_role
'
;
import
'
ee/registrations/welcome/other_role
'
;
import
'
ee/registrations/welcome/jobs_to_be_done
'
;
import
'
ee/registrations/welcome/jobs_to_be_done
'
;
import
{
initWelcomeIndex
}
from
'
ee/registrations/welcome
'
;
const
emailUpdatesForm
=
document
.
querySelector
(
'
.js-email-opt-in
'
);
initWelcomeIndex
();
const
setupForCompany
=
document
.
querySelector
(
'
.js-setup-for-company
'
);
const
setupForMe
=
document
.
querySelector
(
'
.js-setup-for-me
'
);
if
(
emailUpdatesForm
)
{
if
(
setupForCompany
)
{
setupForCompany
.
addEventListener
(
'
change
'
,
()
=>
{
emailUpdatesForm
.
classList
.
add
(
'
hidden
'
);
});
}
if
(
setupForMe
)
{
setupForMe
.
addEventListener
(
'
change
'
,
()
=>
{
emailUpdatesForm
.
classList
.
remove
(
'
hidden
'
);
});
}
}
ee/app/assets/javascripts/pages/trial_registrations/new/index.js
View file @
f83b3dc5
...
@@ -4,7 +4,7 @@ import NoEmojiValidator from '~/emoji/no_emoji_validator';
...
@@ -4,7 +4,7 @@ import NoEmojiValidator from '~/emoji/no_emoji_validator';
import
LengthValidator
from
'
~/pages/sessions/new/length_validator
'
;
import
LengthValidator
from
'
~/pages/sessions/new/length_validator
'
;
import
SigninTabsMemoizer
from
'
~/pages/sessions/new/signin_tabs_memoizer
'
;
import
SigninTabsMemoizer
from
'
~/pages/sessions/new/signin_tabs_memoizer
'
;
import
UsernameValidator
from
'
~/pages/sessions/new/username_validator
'
;
import
UsernameValidator
from
'
~/pages/sessions/new/username_validator
'
;
import
UsernameSuggester
from
'
.
/username_suggester
'
;
import
UsernameSuggester
from
'
ee/trial_registrations
/username_suggester
'
;
new
UsernameValidator
();
// eslint-disable-line no-new
new
UsernameValidator
();
// eslint-disable-line no-new
new
LengthValidator
();
// eslint-disable-line no-new
new
LengthValidator
();
// eslint-disable-line no-new
...
...
ee/app/assets/javascripts/pages/trials/apply/index.js
View file @
f83b3dc5
import
'
ee/
pages/
trials/namespace_select
'
;
import
'
ee/trials/namespace_select
'
;
import
'
ee/trials/track_trial_user_errors
'
;
import
'
ee/trials/track_trial_user_errors
'
;
ee/app/assets/javascripts/pages/trials/create_lead/index.js
View file @
f83b3dc5
import
'
ee/
pages/
trials/country_select
'
;
import
'
ee/trials/country_select
'
;
import
'
ee/trials/track_trial_user_errors
'
;
import
'
ee/trials/track_trial_user_errors
'
;
ee/app/assets/javascripts/pages/trials/new/index.js
View file @
f83b3dc5
import
'
ee/
pages/
trials/country_select
'
;
import
'
ee/trials/country_select
'
;
ee/app/assets/javascripts/pages/trials/select/index.js
View file @
f83b3dc5
import
'
ee/
pages/
trials/namespace_select
'
;
import
'
ee/trials/namespace_select
'
;
ee/app/assets/javascripts/registrations/groups/new/index.js
View file @
f83b3dc5
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
mountVisibilityLevelDropdown
from
'
~/groups/visibility_level
'
;
import
mountVisibilityLevelDropdown
from
'
~/groups/visibility_level
'
;
import
'
ee/
pages/
trials/country_select
'
;
import
'
ee/trials/country_select
'
;
import
RegistrationTrialToggle
from
'
../../components/registration_trial_toggle.vue
'
;
import
RegistrationTrialToggle
from
'
../../components/registration_trial_toggle.vue
'
;
function
toggleTrialForm
(
trial
)
{
function
toggleTrialForm
(
trial
)
{
...
...
ee/app/assets/javascripts/registrations/welcome/index.js
0 → 100644
View file @
f83b3dc5
export
const
initWelcomeIndex
=
()
=>
{
const
emailUpdatesForm
=
document
.
querySelector
(
'
.js-email-opt-in
'
);
const
setupForCompany
=
document
.
querySelector
(
'
.js-setup-for-company
'
);
const
setupForMe
=
document
.
querySelector
(
'
.js-setup-for-me
'
);
if
(
emailUpdatesForm
)
{
if
(
setupForCompany
)
{
setupForCompany
.
addEventListener
(
'
change
'
,
()
=>
{
emailUpdatesForm
.
classList
.
add
(
'
hidden
'
);
});
}
if
(
setupForMe
)
{
setupForMe
.
addEventListener
(
'
change
'
,
()
=>
{
emailUpdatesForm
.
classList
.
remove
(
'
hidden
'
);
});
}
}
};
ee/app/assets/javascripts/
pages/trial_registrations/new
/username_suggester.js
→
ee/app/assets/javascripts/
trial_registrations
/username_suggester.js
View file @
f83b3dc5
File moved
ee/app/assets/javascripts/
pages/
trials/country_select.js
→
ee/app/assets/javascripts/trials/country_select.js
View file @
f83b3dc5
File moved
ee/app/assets/javascripts/
pages/
trials/namespace_select.js
→
ee/app/assets/javascripts/trials/namespace_select.js
View file @
f83b3dc5
File moved
ee/spec/frontend/trial_registrations/username_suggester_spec.js
View file @
f83b3dc5
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
UsernameSuggester
from
'
ee/
pages/trial_registrations/new
/username_suggester
'
;
import
UsernameSuggester
from
'
ee/
trial_registrations
/username_suggester
'
;
import
{
setHTMLFixture
}
from
'
helpers/fixtures
'
;
import
{
setHTMLFixture
}
from
'
helpers/fixtures
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
...
...
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