Skip to content

Commit

Permalink
Add subscription support (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: AceDataCloud <[email protected]>
  • Loading branch information
Germey and AceDataCloud authored Aug 15, 2024
1 parent 7688a17 commit 14b04fe
Show file tree
Hide file tree
Showing 355 changed files with 9,161 additions and 7,020 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "add subscriptions support",
"packageName": "@acedatacloud/nexior",
"email": "[email protected]",
"dependentChangeType": "patch"
}
1 change: 0 additions & 1 deletion src/components/application/Confirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import { getBaseUrlPlatform } from '@/utils';
interface IData {
checked: boolean;
showPolicy: boolean;
}
export default defineComponent({
Expand Down
10 changes: 7 additions & 3 deletions src/components/application/Status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
</el-skeleton>
</div>
<div v-else-if="application" class="status">
<span class="info">
<span v-if="application.type === 'Period'" class="info">
{{ $t('common.message.expiredAt') }}:
{{ $dayjs.format(application.expired_at) }}
</span>
<span v-if="application.type === 'Usage'" class="info">
{{ $t('common.message.remainingAmount') }}:
{{ application?.remaining_amount?.toFixed(6) }}
{{ $t(`service.unit.` + application?.service?.unit + 's') }}
Expand Down Expand Up @@ -49,7 +53,7 @@ import { ElButton, ElMessage, ElSkeleton, ElSkeletonItem } from 'element-plus';
import ApplicationConfirm from '@/components/application/Confirm.vue';
import { IApplicationType, IApplication, IApplicationDetailResponse, IService } from '@/models';
import { ERROR_CODE_DUPLICATION } from '@/constants/errorCode';
import { ROUTE_CONSOLE_APPLICATION_BUY } from '@/router';
import { ROUTE_CONSOLE_APPLICATION_SUBSCRIBE } from '@/router';
import ApiPrice from '@/components/api/Price.vue';
export interface IData {
Expand Down Expand Up @@ -117,7 +121,7 @@ export default defineComponent({
methods: {
onBuyMore(application: IApplication) {
this.$router.push({
name: ROUTE_CONSOLE_APPLICATION_BUY,
name: ROUTE_CONSOLE_APPLICATION_SUBSCRIBE,
params: {
id: application.id
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/chat/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ import {
ERROR_CODE_USED_UP,
ROLE_ASSISTANT
} from '@/constants';
import { ROUTE_CONSOLE_APPLICATION_BUY } from '@/router';
import { ROUTE_CONSOLE_APPLICATION_EXTRA } from '@/router';
interface IData {
copied: boolean;
Expand Down Expand Up @@ -203,7 +203,7 @@ export default defineComponent({
},
onBuyMore() {
this.$router.push({
name: ROUTE_CONSOLE_APPLICATION_BUY,
name: ROUTE_CONSOLE_APPLICATION_EXTRA,
params: {
id: this.application?.id
}
Expand Down
175 changes: 0 additions & 175 deletions src/components/order/Create.vue

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Loading

0 comments on commit 14b04fe

Please sign in to comment.