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
dd6642bd
Commit
dd6642bd
authored
Jun 15, 2021
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge constants into a single file
parent
bbeea2de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
ee/app/assets/javascripts/subscriptions/constants.js
ee/app/assets/javascripts/subscriptions/constants.js
+13
-0
ee/app/assets/javascripts/subscriptions/new/components/checkout/zuora.vue
...vascripts/subscriptions/new/components/checkout/zuora.vue
+1
-1
ee/app/assets/javascripts/subscriptions/new/constants.js
ee/app/assets/javascripts/subscriptions/new/constants.js
+0
-10
ee/app/assets/javascripts/subscriptions/new/store/actions.js
ee/app/assets/javascripts/subscriptions/new/store/actions.js
+1
-1
No files found.
ee/app/assets/javascripts/subscriptions/constants.js
View file @
dd6642bd
import
{
s__
}
from
'
~/locale
'
;
export
const
ZUORA_SCRIPT_URL
=
'
https://static.zuora.com/Resources/libs/hosted/1.3.1/zuora-min.js
'
;
export
const
PAYMENT_FORM_ID
=
'
paid_signup_flow
'
;
export
const
ZUORA_IFRAME_OVERRIDE_PARAMS
=
{
style
:
'
inline
'
,
submitEnabled
:
'
true
'
,
retainValues
:
'
true
'
,
};
export
const
ERROR_FETCHING_COUNTRIES
=
s__
(
'
Checkout|Failed to load countries. Please try again.
'
);
export
const
ERROR_FETCHING_STATES
=
s__
(
'
Checkout|Failed to load states. Please try again.
'
);
export
const
ERROR_LOADING_PAYMENT_FORM
=
s__
(
'
Checkout|Failed to load the payment form. Please try again.
'
,
);
// The order of the steps in this array determines the flow of the application
/* eslint-disable @gitlab/require-i18n-strings */
...
...
ee/app/assets/javascripts/subscriptions/new/components/checkout/zuora.vue
View file @
dd6642bd
<
script
>
import
{
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
{
mapState
,
mapActions
}
from
'
vuex
'
;
import
{
ZUORA_SCRIPT_URL
,
ZUORA_IFRAME_OVERRIDE_PARAMS
}
from
'
ee/subscriptions/
new/
constants
'
;
import
{
ZUORA_SCRIPT_URL
,
ZUORA_IFRAME_OVERRIDE_PARAMS
}
from
'
ee/subscriptions/constants
'
;
export
default
{
components
:
{
...
...
ee/app/assets/javascripts/subscriptions/new/constants.js
View file @
dd6642bd
export
const
ZUORA_SCRIPT_URL
=
'
https://static.zuora.com/Resources/libs/hosted/1.3.1/zuora-min.js
'
;
export
const
PAYMENT_FORM_ID
=
'
paid_signup_flow
'
;
export
const
ZUORA_IFRAME_OVERRIDE_PARAMS
=
{
style
:
'
inline
'
,
submitEnabled
:
'
true
'
,
retainValues
:
'
true
'
,
};
export
const
TAX_RATE
=
0
;
export
const
NEW_GROUP
=
'
new_group
'
;
ee/app/assets/javascripts/subscriptions/new/store/actions.js
View file @
dd6642bd
import
Api
from
'
ee/api
'
;
import
{
PAYMENT_FORM_ID
}
from
'
ee/subscriptions/constants
'
;
import
{
GENERAL_ERROR_MESSAGE
}
from
'
ee/vue_shared/purchase_flow/constants
'
;
import
activateNextStepMutation
from
'
ee/vue_shared/purchase_flow/graphql/mutations/activate_next_step.mutation.graphql
'
;
import
createFlash
from
'
~/flash
'
;
import
{
redirectTo
}
from
'
~/lib/utils/url_utility
'
;
import
{
sprintf
,
s__
}
from
'
~/locale
'
;
import
{
PAYMENT_FORM_ID
}
from
'
../constants
'
;
import
defaultClient
from
'
../graphql
'
;
import
*
as
types
from
'
./mutation_types
'
;
...
...
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