forked from jsnbuchanan/crowd-funder-for-time-pwa
feat: enhance EntityGrid with function props and improve code formatting
- Add configurable entity display logic via function props to EntityGrid - Implement comprehensive test suite for EntityGrid function props in TestView - Apply consistent code formatting across 15 components and views - Fix linting issues with trailing commas and line breaks - Add new EntityGridFunctionPropTest.vue for component testing - Update endorserServer with improved error handling and logging - Streamline PlatformServiceMixin with better cache management - Enhance component documentation and type safety Changes span 15 files with 159 additions and 69 deletions, focusing on component flexibility, code quality, and testing infrastructure.
This commit is contained in:
@@ -1011,9 +1011,6 @@ export default class AccountViewView extends Vue {
|
||||
* Initializes component state with values from the database or defaults.
|
||||
*/
|
||||
async initializeState(): Promise<void> {
|
||||
// First get the master settings to see the active DID
|
||||
const masterSettings = await this.$settings();
|
||||
|
||||
// Then get the account-specific settings
|
||||
const settings: AccountSettings = await this.$accountSettings();
|
||||
|
||||
@@ -1391,7 +1388,7 @@ export default class AccountViewView extends Vue {
|
||||
this.loadingLimits = true;
|
||||
try {
|
||||
const did = this.activeDid;
|
||||
|
||||
|
||||
if (!did) {
|
||||
this.limitsMessage = ACCOUNT_VIEW_CONSTANTS.LIMITS.NO_IDENTIFIER;
|
||||
return;
|
||||
@@ -1404,7 +1401,7 @@ export default class AccountViewView extends Vue {
|
||||
});
|
||||
|
||||
const imageResp = await fetchImageRateLimits(this.axios, did);
|
||||
|
||||
|
||||
if (imageResp.status === 200) {
|
||||
this.imageLimits = imageResp.data;
|
||||
} else {
|
||||
@@ -1422,7 +1419,7 @@ export default class AccountViewView extends Vue {
|
||||
this.axios,
|
||||
did,
|
||||
);
|
||||
|
||||
|
||||
if (endorserResp.status === 200) {
|
||||
this.endorserLimits = endorserResp.data;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user