-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #619 from codex-team/feat/revert-removing-accounting
Return billing to workspace settings
- Loading branch information
Showing
28 changed files
with
311 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ export const FRAGMENT_BUSINESS_OPERATION = ` | |
name | ||
} | ||
amount | ||
currency | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,6 +121,7 @@ export const WORKSPACE_PLAN = ` | |
id | ||
name | ||
monthlyCharge | ||
monthlyChargeCurrency | ||
eventsLimit | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ export const QUERY_PLANS = ` | |
id | ||
name | ||
monthlyCharge | ||
monthlyChargeCurrency | ||
eventsLimit | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,7 +97,7 @@ export default Vue.extend({ | |
icon: { | ||
type: String, | ||
default: '', | ||
} | ||
}, | ||
}, | ||
computed: { | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,17 +14,51 @@ | |
class="choose-plan__description" | ||
v-html="$t('workspaces.chooseTariffPlanDialog.description', {featuresURL: '#'})" | ||
/> | ||
<div class="choose-plan__plans"> | ||
|
||
<div | ||
:class="{ | ||
'choose-plan__plans': true, | ||
'choose-plan__plans--horizontal': plans.length > 3, | ||
}" | ||
> | ||
<TariffPlan | ||
v-for="plan in plans" | ||
:key="plan.id" | ||
:name="plan.name" | ||
:limit="plan.eventsLimit" | ||
:price="plan.monthlyCharge" | ||
:currency="plan.monthlyChargeCurrency" | ||
:selected="plan.id === selectedPlan.id" | ||
:is-current-plan="plan.id === workspace.plan.id" | ||
:horizontal="plans.length > 3" | ||
@click.native="selectPlan(plan.id)" | ||
/> | ||
|
||
<div class="choose-plan__premium-card"> | ||
<div class="choose-plan__premium-card-title"> | ||
{{ $t('workspaces.chooseTariffPlanDialog.premiumPlan') }} | ||
</div> | ||
|
||
<div class="choose-plan__premium-card-limit"> | ||
{{ $t('workspaces.chooseTariffPlanDialog.premiumPlanLimit') }} | ||
</div> | ||
|
||
<div class="choose-plan__premium-card-price"> | ||
{{ $t('workspaces.chooseTariffPlanDialog.premiumPlanPrice') }} | ||
</div> | ||
|
||
<a href="mailto:[email protected]"> | ||
<UiButton | ||
small | ||
submit | ||
rounded | ||
:content="$t('workspaces.chooseTariffPlanDialog.premiumPlanButtonText')" | ||
class="tariff-plan__button" | ||
/> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<UiButton | ||
class="choose-plan__continue-button" | ||
:content="$t('common.continue')" | ||
|
@@ -216,12 +250,43 @@ export default Vue.extend({ | |
&__plans { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
&__plans--horizontal { | ||
flex-direction: column; | ||
} | ||
&__continue-button { | ||
margin-top: 30px; | ||
} | ||
&__premium-card { | ||
background: var(--color-bg-main); | ||
border-radius: 7px; | ||
display: flex; | ||
align-items: center; | ||
padding: 20px 25px; | ||
} | ||
&__premium-card-title { | ||
font-weight: 600; | ||
width: 150px; | ||
} | ||
&__premium-card-limit { | ||
color: var(--color-text-second); | ||
font-weight: 600; | ||
font-size: 15px; | ||
letter-spacing: 0; | ||
} | ||
&__premium-card-price { | ||
margin-left: auto; | ||
color: var(--color-text-second); | ||
font-weight: 600; | ||
font-size: 13px; | ||
margin-right: 20px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.