-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delta-1642 Platform > Freedom Components > FHistory (#50)
* feat: added FHistory Demo page
- Loading branch information
Showing
9 changed files
with
207 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
"lint": "eslint --ext .js,.vue src", | ||
"dev": "cross-env node node_modules/@quasar/cli/bin/quasar dev", | ||
"docs": "esdoc", | ||
"postinstall": "npm i --no-save ./node_modules/quasar-app-extension-freedom-components/f-table ./node_modules/quasar-app-extension-freedom-components/f-filter" | ||
"postinstall": "npm i --no-save ./node_modules/quasar-app-extension-freedom-components/f-table ./node_modules/quasar-app-extension-freedom-components/f-filter ./node_modules/quasar-app-extension-freedom-components/f-history" | ||
}, | ||
"dependencies": { | ||
"@panter/vue-i18next": "^0.15.1", | ||
|
@@ -30,7 +30,7 @@ | |
"moment": "^2.20.1", | ||
"qs": "^6.5.2", | ||
"quasar": "^1.15.23", | ||
"quasar-app-extension-freedom-components": "git+https://freedom-components-readonly:[email protected]/anyTV/incubator/freedom-components.git#v1.7.5", | ||
"quasar-app-extension-freedom-components": "git+https://freedom-components-readonly:[email protected]/anyTV/incubator/freedom-components.git", | ||
"vue": "2.6.11", | ||
"vue-gtm": "3.1.0-vue2", | ||
"vue-router": "^3.0.1", | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"f-table": {}, | ||
"f-filter": {} | ||
"f-filter": {}, | ||
"f-history": {} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export default { | ||
formats: { | ||
ISO_DATE: 'YYYY-MM-DD', | ||
FULL_DATE: 'LL', | ||
}, | ||
}; |
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,17 @@ | ||
{ | ||
"claim-created": { | ||
"label": "claim-created", | ||
"styleClass": "text-positive", | ||
"description": "claim-created-description" | ||
}, | ||
"release": { | ||
"label": "released", | ||
"styleClass": "text-positive", | ||
"description": "user-accepted-description" | ||
}, | ||
"update": { | ||
"label": "updated", | ||
"styleClass": "text-positive", | ||
"description": "user-accepted-description" | ||
} | ||
} |
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,41 @@ | ||
{ | ||
"resubmitted": { | ||
"label": "resubmitted", | ||
"description": "user-resubmitted-description" | ||
}, | ||
"pending": { | ||
"label": "pending", | ||
"description": "user-pending-description" | ||
}, | ||
"accepted": { | ||
"label": "accepted", | ||
"styleClass": "text-positive", | ||
"description": "user-accepted-description" | ||
}, | ||
"rejected": { | ||
"label": "rejected", | ||
"styleClass": "text-negative", | ||
"description": "user-rejected-description" | ||
}, | ||
"escalated": { | ||
"label": "escalated", | ||
"styleClass": "text-primary", | ||
"description": "user-escalated-description", | ||
"hidden": true | ||
}, | ||
"cancelled": { | ||
"label": "cancelled", | ||
"styleClass": "text-faded", | ||
"description": "user-cancelled-description", | ||
"hidden": true | ||
}, | ||
"banned": { | ||
"label": "banned", | ||
"description": "user-banned-description" | ||
}, | ||
"under_verification": { | ||
"label": "waiting-for-verification", | ||
"styleClass": "text-faded", | ||
"description": "user-under-verification-description" | ||
} | ||
} |
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,114 @@ | ||
<template> | ||
<div class="full-width row wrap justify-center items-start"> | ||
<div class="history-container"> | ||
<f-history | ||
:history="history_sample" | ||
:status-types="status_types" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import _ from 'lodash'; | ||
import claim_status from 'src/data/claim-history-types.json'; | ||
import user_status from 'src/data/user-status-types.json'; | ||
export default { | ||
name : 'FHistoryDemo', | ||
data () { | ||
return { | ||
status_types: _.merge(claim_status, user_status), | ||
history_sample: { | ||
items: [ | ||
{ | ||
id: 0, | ||
reviewerId: 531, | ||
notes: 'Updated application', | ||
createdAt: '2021-08-27T22:26:52.000Z', | ||
status: 'pending', | ||
reviewerName: 'John Doe' | ||
}, | ||
{ | ||
id: 1, | ||
reviewerId: 531, | ||
notes: 'Updated application', | ||
createdAt: '2021-08-25T22:29:52.000Z', | ||
status: 'accepted', | ||
reviewerName: 'John Doe' | ||
}, | ||
{ | ||
id: 2, | ||
reviewerId: 531, | ||
notes: 'Test by jonel', | ||
status: 'resubmitted', | ||
createdAt: '2021-02-18T05:03:04.000Z', | ||
reviewerName: 'John Doe' | ||
}, | ||
{ | ||
id: 3, | ||
reviewerId: 531, | ||
notes: 'Lorem amet consectetur adipisicing elit. Ullam possimus reiciendis nam dolor quia! Quidem, unde. orem amet consectetur adipisicing elit. Ullam possimus reiciendis nam dolor quia! Quidem, unde.', | ||
status: 'rejected', | ||
createdAt: '2021-02-16T10:03:04.000Z', | ||
reviewerName: 'John Doe' | ||
}, | ||
{ | ||
id: 4, | ||
reviewerId: 531, | ||
notes: 'sit amet consectetur adipisicing elit. Ullam possimus reiciendis nam dol orem amet consectetur adipisicing elit. Ullam possimus reiciendis nam dolor quia! Quidem, unde.orem amet consectetur adipisicing elit. Ullam possimus reiciendis nam dolor quia! Quidem, unde.', | ||
status: 'escalated', | ||
createdAt: '2021-02-16T09:05:04.000Z', | ||
reviewerName: 'John Doe' | ||
}, | ||
{ | ||
id: 5, | ||
reviewerId: 531, | ||
notes: 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam possimus reiciendis nam dolor quia! Quidem, unde.', | ||
status: 'cancelled', | ||
createdAt: '2021-02-16T09:03:04.000Z', | ||
reviewerName: 'John Doe' | ||
}, | ||
{ | ||
id: 6, | ||
reviewerId: 531, | ||
notes: 'Lorem ipsum dolor sit amet .', | ||
status: 'banned', | ||
createdAt: '2021-02-16T08:13:04.000Z', | ||
reviewerName: 'John Doe' | ||
}, | ||
{ | ||
id: 7, | ||
reviewerId: 531, | ||
notes: 'Ullam possimus reiciendis nam dolor quia! Quidem, unde. orem amet consectetur adipisicing elit. Ullam possimus reiciendis nam dolor quia! Quidem, unde.orem amet consectetur adipisicing elit. Ullam possimus reiciendis nam dolor quia! Quidem, unde.', | ||
status: 'under_verification', | ||
createdAt: '2021-02-16T07:03:04.000Z', | ||
reviewerName: 'John Doe' | ||
}, | ||
{ | ||
claimId: "zZWUYz95", | ||
createdAt: "2020-11-01T17:32:42.000Z", | ||
status: "claim-created" | ||
}, | ||
{ | ||
claimId: "R93HZYRR", | ||
createdAt: "2020-10-01T14:30:42.000Z", | ||
status: "release" | ||
}, | ||
{ | ||
claimId: "nkGWV67a", | ||
createdAt: "2020-09-15T10:32:42.000Z", | ||
status: "update" | ||
}, | ||
], | ||
total: 11 | ||
} | ||
}; | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="stylus" scoped> | ||
.history-container | ||
width: 650px | ||
</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