-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Germey <[email protected]>
- Loading branch information
Showing
146 changed files
with
1,135 additions
and
582 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@acedatacloud-hub-b634c68d-ad57-4fa0-8780-c27a2aef120c.json
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "add support for usage history", | ||
"packageName": "@acedatacloud/hub", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<template> | ||
<div> | ||
<el-dialog v-model="visible" center width="80%"> | ||
<el-table :data="data" stripe :span-method="spanMethod" :header-cell-style="cellStyle" :cell-style="cellStyle"> | ||
<el-table-column | ||
v-for="(column, columnIndex) in columns" | ||
:key="columnIndex" | ||
:prop="column.key" | ||
:label="column.label" | ||
/> | ||
</el-table> | ||
</el-dialog> | ||
<el-button round size="small" @click="visible = true"> | ||
{{ $t('service.button.pricing') }} | ||
</el-button> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { IApiPrice } from '@/models'; | ||
import { defineComponent } from 'vue'; | ||
import { ElTable, ElTableColumn, ElDialog, ElButton } from 'element-plus'; | ||
import type { CellStyle, TableColumnCtx } from 'element-plus'; | ||
interface SpanMethodProps { | ||
row: IApiPrice; | ||
column: TableColumnCtx<IApiPrice>; | ||
rowIndex: number; | ||
columnIndex: number; | ||
} | ||
export default defineComponent({ | ||
name: 'ApiPrice', | ||
components: { | ||
ElTable, | ||
ElTableColumn, | ||
ElDialog, | ||
ElButton | ||
}, | ||
props: { | ||
price: { | ||
type: Object as () => IApiPrice | undefined, | ||
required: true | ||
} | ||
}, | ||
data() { | ||
return { | ||
visible: false | ||
}; | ||
}, | ||
computed: { | ||
data() { | ||
return this.price?.data || []; | ||
}, | ||
columns() { | ||
return this.price?.columns; | ||
}, | ||
spans() { | ||
return this.price?.spans; | ||
} | ||
}, | ||
methods: { | ||
// @ts-ignore | ||
cellStyle(): CellStyle { | ||
return { | ||
'font-weight': 'bold', | ||
'text-align': 'center' | ||
}; | ||
}, | ||
spanMethod({ row, column, rowIndex, columnIndex }: SpanMethodProps) { | ||
if (this.spans) { | ||
for (const span of this.spans) { | ||
if (rowIndex === span[0] && columnIndex === span[1]) { | ||
return [span[2], span[3]]; | ||
} | ||
} | ||
} | ||
return [1, 1]; | ||
} | ||
} | ||
}); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.table { | ||
width: 80%; | ||
max-width: 1200px; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<template> | ||
<div> | ||
<el-tooltip effect="dark" :content="$t('common.message.joinDiscord')" placement="top-start"> | ||
<el-button type="primary" circle size="large" @click="onJoin"> | ||
<font-awesome-icon icon="fa-brands fa-discord" /> | ||
</el-button> | ||
</el-tooltip> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import { ElTooltip, ElButton } from 'element-plus'; | ||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; | ||
export default defineComponent({ | ||
name: 'HelpEntry', | ||
components: { | ||
ElTooltip, | ||
ElButton, | ||
FontAwesomeIcon | ||
}, | ||
methods: { | ||
onJoin() { | ||
window.open('https://discord.gg/73F3MYj3vp', '_blank'); | ||
} | ||
} | ||
}); | ||
</script> |
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.
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
Oops, something went wrong.