From bf3158e2af63aca117725c5495711865169be96b Mon Sep 17 00:00:00 2001 From: mkzyk Date: Wed, 29 Nov 2023 18:16:38 +0900 Subject: [PATCH] fix deployment error and script error --- README.md | 4 +- src/.DS_Store | Bin 12292 -> 12292 bytes src/classes/qsyd_FileExplorerCommon.cls | 4 +- src/lwc/qsydFileExplorer/qsydFileExplorer.js | 91 ++++++++++--------- src/lwc/qsydModal/qsydModal.js-meta.xml | 7 ++ src/package.xml | 17 +++- 6 files changed, 76 insertions(+), 47 deletions(-) create mode 100644 src/lwc/qsydModal/qsydModal.js-meta.xml diff --git a/README.md b/README.md index 4826aec..8efaf82 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Lightning File Explorer
- + Deploy to Salesforce @@ -14,4 +14,4 @@ With the Lightning File Explorer, you can create and then view a hierarchy of yo https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000G12iVUAR ## Setup Guide -- [Setup and Configuration Guide](https://salesforce.quip.com/M45zATwr2795) \ No newline at end of file +- [Setup and Configuration Guide](https://salesforce.quip.com/M45zATwr2795) diff --git a/src/.DS_Store b/src/.DS_Store index af3925762ba9f842461978622e18edfc1f5d2947..afab9f9be2a88ee0460398b75c3181eee54470c3 100644 GIT binary patch delta 28 kcmZokXi3=6CO$b@TzT?J@k5LZlXE0w7#TKqN>qyj0GQ(mZU6uP delta 30 kcmZokXi3=6CeFw>`MtQ( { - // console.log('>>>>> initialise.result'); - // console.log(result); + console.log('>>>>> initialise.result : ' + result); this.showFileExplorer = (result === ''); this.reasonWhyFileExplorerNotShown = result; @@ -222,47 +221,55 @@ export default class QsydFileExplorerCmp extends LightningElement { } handleDataLoaded(e) { + console.log('handleDataLoaded called'); - switch (this.action) { - case CONSTANTS.ACTION_TYPES.ADD_FILE: - this.results = this.findTreeItem(this.dataDictionary, - 'Contents', - this.folderId); - break; - - case CONSTANTS.ACTION_TYPES.UPDATE_FILE: - case CONSTANTS.ACTION_TYPES.DELETE_FILE: - case CONSTANTS.ACTION_TYPES.ADD_FOLDER: - case CONSTANTS.ACTION_TYPES.MOVE_FOLDER: - case CONSTANTS.ACTION_TYPES.RENAME_FOLDER: - case CONSTANTS.ACTION_TYPES.DELETE_FOLDER: - this.item = this.findItemInSet(this.shadowItem) || new item(); - break; - // case CONSTANTS.ACTION_TYPES.UPDATE_FILE: - // this.item = this.findItemInSet(this.shadowItem) || new item(); - // break; - // - // case CONSTANTS.ACTION_TYPES.DELETE_FILE: - // this.item = this.findItemInSet(this.shadowItem) || new item(); - // break; - // - // case CONSTANTS.ACTION_TYPES.ADD_FOLDER: - // this.item = this.findItemInSet(this.shadowItem) || new item(); - // break; - // - // case CONSTANTS.ACTION_TYPES.MOVE_FOLDER: - // this.item = this.findItemInSet(this.shadowItem) || new item(); - // break; - // - // case CONSTANTS.ACTION_TYPES.RENAME_FOLDER: - // this.item = this.findItemInSet(this.shadowItem) || new item(); - // break; - // - // case CONSTANTS.ACTION_TYPES.DELETE_FOLDER: - // this.item = this.findItemInSet(this.shadowItem) || new item(); - - default: - break; + try { + if(this.action === undefined) { + throw new error(); + } + switch (this.action) { + case CONSTANTS.ACTION_TYPES.ADD_FILE: + this.results = this.findTreeItem(this.dataDictionary, + 'Contents', + this.folderId); + break; + + case CONSTANTS.ACTION_TYPES.UPDATE_FILE: + case CONSTANTS.ACTION_TYPES.DELETE_FILE: + case CONSTANTS.ACTION_TYPES.ADD_FOLDER: + case CONSTANTS.ACTION_TYPES.MOVE_FOLDER: + case CONSTANTS.ACTION_TYPES.RENAME_FOLDER: + case CONSTANTS.ACTION_TYPES.DELETE_FOLDER: + this.item = this.findItemInSet(this.shadowItem) || new item(); + break; + // case CONSTANTS.ACTION_TYPES.UPDATE_FILE: + // this.item = this.findItemInSet(this.shadowItem) || new item(); + // break; + // + // case CONSTANTS.ACTION_TYPES.DELETE_FILE: + // this.item = this.findItemInSet(this.shadowItem) || new item(); + // break; + // + // case CONSTANTS.ACTION_TYPES.ADD_FOLDER: + // this.item = this.findItemInSet(this.shadowItem) || new item(); + // break; + // + // case CONSTANTS.ACTION_TYPES.MOVE_FOLDER: + // this.item = this.findItemInSet(this.shadowItem) || new item(); + // break; + // + // case CONSTANTS.ACTION_TYPES.RENAME_FOLDER: + // this.item = this.findItemInSet(this.shadowItem) || new item(); + // break; + // + // case CONSTANTS.ACTION_TYPES.DELETE_FOLDER: + // this.item = this.findItemInSet(this.shadowItem) || new item(); + + default: + break; + } + } catch(e) { + console.log('this.action is undefined'); } } diff --git a/src/lwc/qsydModal/qsydModal.js-meta.xml b/src/lwc/qsydModal/qsydModal.js-meta.xml new file mode 100644 index 0000000..34ebdbe --- /dev/null +++ b/src/lwc/qsydModal/qsydModal.js-meta.xml @@ -0,0 +1,7 @@ + + + 49.0 + QSyd - Modal + false + QSyd Modal + \ No newline at end of file diff --git a/src/package.xml b/src/package.xml index df3a2f2..50b23dc 100644 --- a/src/package.xml +++ b/src/package.xml @@ -1,4 +1,4 @@ -git add + Lightning File Explorer Unrestricted @@ -12,6 +12,7 @@ git add qsyd_ContentDocumentTriggerHandlerTest qsyd_File qsyd_FileList + qsyd_FileExplorerCommon qsyd_Folder qsyd_FolderList qsyd_FolderTemplate @@ -55,11 +56,13 @@ git add FileExplorerFolder__c.Label__c FileExplorerFolder__c.LinkedEntityId__c FileExplorerFolder__c.TemplateFolderId__c + Lightning_File_Explorer__mdt.Enable__c CustomField Action_Error_Messages_Duplicate_folder Action_Error_Messages_Failed_to_retrieve_templates + Action_Error_Messages_Failed_to_insert_template Action_Error_Messages_Invalid_template Action_Error_Messages_Move_file_same_source_and_target Action_Error_Messages_Move_folder_circular_dependency @@ -68,6 +71,7 @@ git add Action_Headers_Add_file Action_Headers_Add_folder Action_Headers_Delete_folder + Action_Headers_Delete_file Action_Headers_Edit_tags Action_Headers_Move_file Action_Headers_Move_folder @@ -81,6 +85,7 @@ git add Action_Labels_Collapse Action_Labels_Confirm Action_Labels_Delete_folder + Action_Labels_Delete_file Action_Labels_Edit_template Action_Labels_Expand Action_Labels_File_header @@ -99,6 +104,8 @@ git add Action_Labels_Template_modified_date_header Action_Labels_Template_name_header Action_Messages_Delete_folder + Action_Messages_Delete_file + Action_Messages_File_Explorer_is_not_enabled Action_Messages_No_permission_set Action_Messages_No_templates Action_Messages_Select_template_folder @@ -106,6 +113,7 @@ git add Action_Success_Messages_Add_file Action_Success_Messages_Add_folder Action_Success_Messages_Delete_folder + Action_Success_Messages_Delete_file Action_Success_Messages_Edit_tags Action_Success_Messages_Move_file Action_Success_Messages_Move_folder @@ -125,6 +133,7 @@ git add Detail_Labels_Tags Detail_Labels_Type Detail_Messages_Select_File + Detail_Messages_Version Search_Category_Files Search_Category_Folders Search_Category_Tagged @@ -138,10 +147,15 @@ git add CustomLabels CustomLabels + + * + CustomMetadata + FileExplorerFile__c FileExplorerFolderTemplate__c FileExplorerFolder__c + Lightning_File_Explorer__mdt CustomObject @@ -188,6 +202,7 @@ git add FileExplorerFile__c.All FileExplorerFolderTemplate__c.All FileExplorerFolder__c.All + Lightning_File_Explorer__mdt.All_Fields ListView