diff --git a/.forceignore b/.forceignore
new file mode 100644
index 0000000..7be6824
--- /dev/null
+++ b/.forceignore
@@ -0,0 +1,13 @@
+# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
+# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
+#
+
+package.xml
+**profiles
+
+# LWC configuration files
+**/jsconfig.json
+**/.eslintrc.json
+
+# LWC Jest
+**/__tests__/**
\ No newline at end of file
diff --git a/README.md b/README.md
index 2ad5bbe..7e922cf 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@ See files shared to all related records on one page in Lightning.
This project provides a Lightning Component you can drag on to your Lightning Record Pages in App Builder.
-
+
Background
----------
@@ -29,20 +29,20 @@ However, this "rollup" of Classic Attachments is a much beloved feature and cust
[Keri-An Richards](https://www.linkedin.com/in/keri-an-richards-44270810/) took to the IdeaExchange and submitted
[Roll up display of Notes and Attachments in Lightning as it was in Classic](https://success.salesforce.com/ideaView?id=08730000000cHYhAAM).
-[](https://success.salesforce.com/ideaView?id=08730000000cHYhAAM)
+[](https://success.salesforce.com/ideaView?id=08730000000cHYhAAM)
Others, like [Abi Beaty](https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009SE1&fId=0D53A000037sJDC)
and [Hilary Henderson](https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009SE1&fId=0D53A00003Bs5Tk),
have also inquired on the Success Community how to get this rollup feature in Lightning.
-[](https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009SE1&fId=0D53A000037sJDC)
+[](https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009SE1&fId=0D53A000037sJDC)
-[](https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009SE1&fId=0D53A00003Bs5Tk)
+[](https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F93A0000009SE1&fId=0D53A00003Bs5Tk)
Seeing a need I began developing this app. After [sharing a sneak peek](https://twitter.com/DouglasCAyers/status/900277146668728320) on Twitter,
[Haris Ikram](https://twitter.com/HarisIkramH), Product Manager for Salesforce, commented that such a solution is in demand and happy to share this with the Salesforce Lightning Team.
-[](https://twitter.com/HarisIkramH/status/901074270524104704)
+[](https://twitter.com/HarisIkramH/status/901074270524104704)
---
@@ -80,7 +80,7 @@ Getting Started
Check out this 7 minute setup and how-to video:
-[](https://www.youtube.com/watch?v=14CyPXDxHNI)
+[](https://www.youtube.com/watch?v=14CyPXDxHNI)
Recommendations
---------------
@@ -121,7 +121,7 @@ then navigate to the lookup field that points to the parent object (that is the
On the field's detail page you'll see the field label, field name, and the child relationship name (use this value in App Bulider).
If this is a custom lookup or master-detail field then [you will need to append `__r` to the child relationship name](https://github.com/DouglasCAyers/sfdc-related-files-lightning/issues/13).
-
+
What do the badge counts mean in the vertical navigation?
---------------------------------------------------------
@@ -132,7 +132,7 @@ For example, if the single file "Hello.txt" is shared to 3 contacts related to t
when viewing this **Related Files** lightning component on that account page would display the badge count 1
for the `Contacts` relationship even though 3 contacts exist because only 1 unique file was shared among them.
-
+
How do I use this app in Classic?
---------------------------------
diff --git a/config/project-scratch-def.json b/config/project-scratch-def.json
new file mode 100644
index 0000000..b3a416d
--- /dev/null
+++ b/config/project-scratch-def.json
@@ -0,0 +1,5 @@
+{
+ "orgName": "Related Files in Lightning",
+ "edition": "Developer",
+ "features": []
+}
diff --git a/src/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.cmp b/force-app/main/default/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.cmp
similarity index 100%
rename from src/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.cmp
rename to force-app/main/default/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.cmp
diff --git a/src/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.cmp-meta.xml b/force-app/main/default/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.cmp-meta.xml
similarity index 100%
rename from src/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.cmp-meta.xml
rename to force-app/main/default/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.cmp-meta.xml
diff --git a/src/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.css b/force-app/main/default/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.css
similarity index 100%
rename from src/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.css
rename to force-app/main/default/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.css
diff --git a/src/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.design b/force-app/main/default/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.design
similarity index 100%
rename from src/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.design
rename to force-app/main/default/aura/CF_ChildFilesCmp/CF_ChildFilesCmp.design
diff --git a/src/aura/CF_ChildFilesCmp/CF_ChildFilesCmpController.js b/force-app/main/default/aura/CF_ChildFilesCmp/CF_ChildFilesCmpController.js
similarity index 100%
rename from src/aura/CF_ChildFilesCmp/CF_ChildFilesCmpController.js
rename to force-app/main/default/aura/CF_ChildFilesCmp/CF_ChildFilesCmpController.js
diff --git a/src/aura/CF_ChildFilesCmp/CF_ChildFilesCmpHelper.js b/force-app/main/default/aura/CF_ChildFilesCmp/CF_ChildFilesCmpHelper.js
similarity index 100%
rename from src/aura/CF_ChildFilesCmp/CF_ChildFilesCmpHelper.js
rename to force-app/main/default/aura/CF_ChildFilesCmp/CF_ChildFilesCmpHelper.js
diff --git a/src/aura/CF_ChildFilesOutApp/CF_ChildFilesOutApp.app b/force-app/main/default/aura/CF_ChildFilesOutApp/CF_ChildFilesOutApp.app
similarity index 100%
rename from src/aura/CF_ChildFilesOutApp/CF_ChildFilesOutApp.app
rename to force-app/main/default/aura/CF_ChildFilesOutApp/CF_ChildFilesOutApp.app
diff --git a/src/aura/CF_ChildFilesOutApp/CF_ChildFilesOutApp.app-meta.xml b/force-app/main/default/aura/CF_ChildFilesOutApp/CF_ChildFilesOutApp.app-meta.xml
similarity index 100%
rename from src/aura/CF_ChildFilesOutApp/CF_ChildFilesOutApp.app-meta.xml
rename to force-app/main/default/aura/CF_ChildFilesOutApp/CF_ChildFilesOutApp.app-meta.xml
diff --git a/src/aura/defaultTokens/defaultTokens.tokens b/force-app/main/default/aura/defaultTokens/defaultTokens.tokens
similarity index 100%
rename from src/aura/defaultTokens/defaultTokens.tokens
rename to force-app/main/default/aura/defaultTokens/defaultTokens.tokens
diff --git a/src/aura/defaultTokens/defaultTokens.tokens-meta.xml b/force-app/main/default/aura/defaultTokens/defaultTokens.tokens-meta.xml
similarity index 100%
rename from src/aura/defaultTokens/defaultTokens.tokens-meta.xml
rename to force-app/main/default/aura/defaultTokens/defaultTokens.tokens-meta.xml
diff --git a/src/classes/CF_ChildFilesController.cls b/force-app/main/default/classes/CF_ChildFilesController.cls
similarity index 100%
rename from src/classes/CF_ChildFilesController.cls
rename to force-app/main/default/classes/CF_ChildFilesController.cls
diff --git a/src/classes/CF_ChildFilesController.cls-meta.xml b/force-app/main/default/classes/CF_ChildFilesController.cls-meta.xml
similarity index 100%
rename from src/classes/CF_ChildFilesController.cls-meta.xml
rename to force-app/main/default/classes/CF_ChildFilesController.cls-meta.xml
diff --git a/src/classes/CF_ChildFilesControllerTest.cls b/force-app/main/default/classes/CF_ChildFilesControllerTest.cls
similarity index 100%
rename from src/classes/CF_ChildFilesControllerTest.cls
rename to force-app/main/default/classes/CF_ChildFilesControllerTest.cls
diff --git a/src/classes/CF_ChildFilesControllerTest.cls-meta.xml b/force-app/main/default/classes/CF_ChildFilesControllerTest.cls-meta.xml
similarity index 100%
rename from src/classes/CF_ChildFilesControllerTest.cls-meta.xml
rename to force-app/main/default/classes/CF_ChildFilesControllerTest.cls-meta.xml
diff --git a/src/classes/CF_ChildFilesFieldSetDynamicPicklist.cls b/force-app/main/default/classes/CF_ChildFilesFieldSetDynamicPicklist.cls
similarity index 100%
rename from src/classes/CF_ChildFilesFieldSetDynamicPicklist.cls
rename to force-app/main/default/classes/CF_ChildFilesFieldSetDynamicPicklist.cls
diff --git a/src/classes/CF_ChildFilesFieldSetDynamicPicklist.cls-meta.xml b/force-app/main/default/classes/CF_ChildFilesFieldSetDynamicPicklist.cls-meta.xml
similarity index 100%
rename from src/classes/CF_ChildFilesFieldSetDynamicPicklist.cls-meta.xml
rename to force-app/main/default/classes/CF_ChildFilesFieldSetDynamicPicklist.cls-meta.xml
diff --git a/src/classes/CF_ChildFilesFilterDynamicPicklist.cls b/force-app/main/default/classes/CF_ChildFilesFilterDynamicPicklist.cls
similarity index 100%
rename from src/classes/CF_ChildFilesFilterDynamicPicklist.cls
rename to force-app/main/default/classes/CF_ChildFilesFilterDynamicPicklist.cls
diff --git a/src/classes/CF_ChildFilesFilterDynamicPicklist.cls-meta.xml b/force-app/main/default/classes/CF_ChildFilesFilterDynamicPicklist.cls-meta.xml
similarity index 100%
rename from src/classes/CF_ChildFilesFilterDynamicPicklist.cls-meta.xml
rename to force-app/main/default/classes/CF_ChildFilesFilterDynamicPicklist.cls-meta.xml
diff --git a/src/classes/CF_ChildFilesFilterDynamicPicklistTest.cls b/force-app/main/default/classes/CF_ChildFilesFilterDynamicPicklistTest.cls
similarity index 100%
rename from src/classes/CF_ChildFilesFilterDynamicPicklistTest.cls
rename to force-app/main/default/classes/CF_ChildFilesFilterDynamicPicklistTest.cls
diff --git a/src/classes/CF_ChildFilesFilterDynamicPicklistTest.cls-meta.xml b/force-app/main/default/classes/CF_ChildFilesFilterDynamicPicklistTest.cls-meta.xml
similarity index 100%
rename from src/classes/CF_ChildFilesFilterDynamicPicklistTest.cls-meta.xml
rename to force-app/main/default/classes/CF_ChildFilesFilterDynamicPicklistTest.cls-meta.xml
diff --git a/src/classes/CF_HttpCalloutMock.cls b/force-app/main/default/classes/CF_HttpCalloutMock.cls
similarity index 100%
rename from src/classes/CF_HttpCalloutMock.cls
rename to force-app/main/default/classes/CF_HttpCalloutMock.cls
diff --git a/src/classes/CF_HttpCalloutMock.cls-meta.xml b/force-app/main/default/classes/CF_HttpCalloutMock.cls-meta.xml
similarity index 100%
rename from src/classes/CF_HttpCalloutMock.cls-meta.xml
rename to force-app/main/default/classes/CF_HttpCalloutMock.cls-meta.xml
diff --git a/src/classes/CF_NamespaceUtils.cls b/force-app/main/default/classes/CF_NamespaceUtils.cls
similarity index 100%
rename from src/classes/CF_NamespaceUtils.cls
rename to force-app/main/default/classes/CF_NamespaceUtils.cls
diff --git a/src/classes/CF_NamespaceUtils.cls-meta.xml b/force-app/main/default/classes/CF_NamespaceUtils.cls-meta.xml
similarity index 100%
rename from src/classes/CF_NamespaceUtils.cls-meta.xml
rename to force-app/main/default/classes/CF_NamespaceUtils.cls-meta.xml
diff --git a/src/classes/CF_NamespaceUtilsTest.cls b/force-app/main/default/classes/CF_NamespaceUtilsTest.cls
similarity index 100%
rename from src/classes/CF_NamespaceUtilsTest.cls
rename to force-app/main/default/classes/CF_NamespaceUtilsTest.cls
diff --git a/src/classes/CF_NamespaceUtilsTest.cls-meta.xml b/force-app/main/default/classes/CF_NamespaceUtilsTest.cls-meta.xml
similarity index 100%
rename from src/classes/CF_NamespaceUtilsTest.cls-meta.xml
rename to force-app/main/default/classes/CF_NamespaceUtilsTest.cls-meta.xml
diff --git a/src/classes/CF_VisualforceDomainController.cls b/force-app/main/default/classes/CF_VisualforceDomainController.cls
similarity index 100%
rename from src/classes/CF_VisualforceDomainController.cls
rename to force-app/main/default/classes/CF_VisualforceDomainController.cls
diff --git a/src/classes/CF_VisualforceDomainController.cls-meta.xml b/force-app/main/default/classes/CF_VisualforceDomainController.cls-meta.xml
similarity index 100%
rename from src/classes/CF_VisualforceDomainController.cls-meta.xml
rename to force-app/main/default/classes/CF_VisualforceDomainController.cls-meta.xml
diff --git a/src/classes/CF_VisualforceDomainControllerTest.cls b/force-app/main/default/classes/CF_VisualforceDomainControllerTest.cls
similarity index 100%
rename from src/classes/CF_VisualforceDomainControllerTest.cls
rename to force-app/main/default/classes/CF_VisualforceDomainControllerTest.cls
diff --git a/src/classes/CF_VisualforceDomainControllerTest.cls-meta.xml b/force-app/main/default/classes/CF_VisualforceDomainControllerTest.cls-meta.xml
similarity index 100%
rename from src/classes/CF_VisualforceDomainControllerTest.cls-meta.xml
rename to force-app/main/default/classes/CF_VisualforceDomainControllerTest.cls-meta.xml
diff --git a/force-app/main/default/lwc/jsconfig.json b/force-app/main/default/lwc/jsconfig.json
new file mode 100644
index 0000000..5c657bd
--- /dev/null
+++ b/force-app/main/default/lwc/jsconfig.json
@@ -0,0 +1,16 @@
+{
+ "compilerOptions": {
+ "experimentalDecorators": true,
+ "baseUrl": ".",
+ "paths": {}
+ },
+ "include": [
+ "**/*",
+ "../../../../.sfdx/typings/lwc/**/*.d.ts"
+ ],
+ "typeAcquisition": {
+ "include": [
+ "jest"
+ ]
+ }
+}
diff --git a/force-app/main/default/objects/Account/webLinks/View_Related_Files.webLink-meta.xml b/force-app/main/default/objects/Account/webLinks/View_Related_Files.webLink-meta.xml
new file mode 100644
index 0000000..74a9435
--- /dev/null
+++ b/force-app/main/default/objects/Account/webLinks/View_Related_Files.webLink-meta.xml
@@ -0,0 +1,13 @@
+
+
+ View_Related_Files
+ online
+ button
+ UTF-8
+ 600
+ url
+ View Related Files
+ sidebar
+ false
+ /apex/CF_ChildFilesPage?id={!Account.Id}
+
diff --git a/force-app/main/default/objects/Campaign/webLinks/View_Related_Files.webLink-meta.xml b/force-app/main/default/objects/Campaign/webLinks/View_Related_Files.webLink-meta.xml
new file mode 100644
index 0000000..5d2513e
--- /dev/null
+++ b/force-app/main/default/objects/Campaign/webLinks/View_Related_Files.webLink-meta.xml
@@ -0,0 +1,13 @@
+
+
+ View_Related_Files
+ online
+ button
+ UTF-8
+ 600
+ url
+ View Related Files
+ sidebar
+ false
+ /apex/CF_ChildFilesPage?id={!Campaign.Id}
+
diff --git a/force-app/main/default/objects/Case/webLinks/View_Related_Files.webLink-meta.xml b/force-app/main/default/objects/Case/webLinks/View_Related_Files.webLink-meta.xml
new file mode 100644
index 0000000..b2543e9
--- /dev/null
+++ b/force-app/main/default/objects/Case/webLinks/View_Related_Files.webLink-meta.xml
@@ -0,0 +1,13 @@
+
+
+ View_Related_Files
+ online
+ button
+ UTF-8
+ 600
+ url
+ View Related Files
+ sidebar
+ false
+ /apex/CF_ChildFilesPage?id={!Case.Id}
+
diff --git a/force-app/main/default/objects/Contact/webLinks/View_Related_Files.webLink-meta.xml b/force-app/main/default/objects/Contact/webLinks/View_Related_Files.webLink-meta.xml
new file mode 100644
index 0000000..6f9bd79
--- /dev/null
+++ b/force-app/main/default/objects/Contact/webLinks/View_Related_Files.webLink-meta.xml
@@ -0,0 +1,13 @@
+
+
+ View_Related_Files
+ online
+ button
+ UTF-8
+ 600
+ url
+ View Related Files
+ sidebar
+ false
+ /apex/CF_ChildFilesPage?id={!Contact.Id}
+
diff --git a/force-app/main/default/objects/Contract/webLinks/View_Related_Files.webLink-meta.xml b/force-app/main/default/objects/Contract/webLinks/View_Related_Files.webLink-meta.xml
new file mode 100644
index 0000000..418121b
--- /dev/null
+++ b/force-app/main/default/objects/Contract/webLinks/View_Related_Files.webLink-meta.xml
@@ -0,0 +1,13 @@
+
+
+ View_Related_Files
+ online
+ button
+ UTF-8
+ 600
+ url
+ View Related Files
+ sidebar
+ false
+ /apex/CF_ChildFilesPage?id={!Contract.Id}
+
diff --git a/force-app/main/default/objects/Lead/webLinks/View_Related_Files.webLink-meta.xml b/force-app/main/default/objects/Lead/webLinks/View_Related_Files.webLink-meta.xml
new file mode 100644
index 0000000..468bdd5
--- /dev/null
+++ b/force-app/main/default/objects/Lead/webLinks/View_Related_Files.webLink-meta.xml
@@ -0,0 +1,13 @@
+
+
+ View_Related_Files
+ online
+ button
+ UTF-8
+ 600
+ url
+ View Related Files
+ sidebar
+ false
+ /apex/CF_ChildFilesPage?id={!Lead.Id}
+
diff --git a/force-app/main/default/objects/Opportunity/webLinks/View_Related_Files.webLink-meta.xml b/force-app/main/default/objects/Opportunity/webLinks/View_Related_Files.webLink-meta.xml
new file mode 100644
index 0000000..7e895cc
--- /dev/null
+++ b/force-app/main/default/objects/Opportunity/webLinks/View_Related_Files.webLink-meta.xml
@@ -0,0 +1,13 @@
+
+
+ View_Related_Files
+ online
+ button
+ UTF-8
+ 600
+ url
+ View Related Files
+ sidebar
+ false
+ /apex/CF_ChildFilesPage?id={!Opportunity.Id}
+
diff --git a/force-app/main/default/objects/Order/webLinks/View_Related_Files.webLink-meta.xml b/force-app/main/default/objects/Order/webLinks/View_Related_Files.webLink-meta.xml
new file mode 100644
index 0000000..6f67563
--- /dev/null
+++ b/force-app/main/default/objects/Order/webLinks/View_Related_Files.webLink-meta.xml
@@ -0,0 +1,13 @@
+
+
+ View_Related_Files
+ online
+ button
+ UTF-8
+ 600
+ url
+ View Related Files
+ sidebar
+ false
+ /apex/CF_ChildFilesPage?id={!Order.Id}
+
diff --git a/src/pages/CF_ChildFilesPage.page b/force-app/main/default/pages/CF_ChildFilesPage.page
similarity index 100%
rename from src/pages/CF_ChildFilesPage.page
rename to force-app/main/default/pages/CF_ChildFilesPage.page
diff --git a/src/pages/CF_ChildFilesPage.page-meta.xml b/force-app/main/default/pages/CF_ChildFilesPage.page-meta.xml
similarity index 80%
rename from src/pages/CF_ChildFilesPage.page-meta.xml
rename to force-app/main/default/pages/CF_ChildFilesPage.page-meta.xml
index b1d19d1..df667e9 100644
--- a/src/pages/CF_ChildFilesPage.page-meta.xml
+++ b/force-app/main/default/pages/CF_ChildFilesPage.page-meta.xml
@@ -3,6 +3,6 @@
45.0truefalse
- Allows users to use the "Related Files" Lightning component within Classic UI. Grant users access to the page via a profile or permission set, then create a link to it passing in the parent record's id, like '/apex/CF_ChildFilesPage?id={!Account.Id}'.
+ Allows users to use the "Related Files" Lightning component within Classic UI. Grant users access to the page via a profile or permission set, then create a link to it passing in the parent record's id, like '/apex/CF_ChildFilesPage?id={!Account.Id}'.
diff --git a/src/pages/CF_VisualforceDomainPage.page b/force-app/main/default/pages/CF_VisualforceDomainPage.page
similarity index 100%
rename from src/pages/CF_VisualforceDomainPage.page
rename to force-app/main/default/pages/CF_VisualforceDomainPage.page
diff --git a/src/pages/CF_VisualforceDomainPage.page-meta.xml b/force-app/main/default/pages/CF_VisualforceDomainPage.page-meta.xml
similarity index 100%
rename from src/pages/CF_VisualforceDomainPage.page-meta.xml
rename to force-app/main/default/pages/CF_VisualforceDomainPage.page-meta.xml
diff --git a/images/abi-beaty.png b/images/abi-beaty.png
deleted file mode 100644
index d2e24be..0000000
Binary files a/images/abi-beaty.png and /dev/null differ
diff --git a/images/haris-ikram.png b/images/haris-ikram.png
deleted file mode 100644
index 21ad626..0000000
Binary files a/images/haris-ikram.png and /dev/null differ
diff --git a/images/hilary-henderson.png b/images/hilary-henderson.png
deleted file mode 100644
index 0b976c8..0000000
Binary files a/images/hilary-henderson.png and /dev/null differ
diff --git a/images/keri-an-richards.png b/images/keri-an-richards.png
deleted file mode 100644
index 55f0e2d..0000000
Binary files a/images/keri-an-richards.png and /dev/null differ
diff --git a/images/related-files-badge-counts.png b/images/related-files-badge-counts.png
deleted file mode 100644
index 00f31a8..0000000
Binary files a/images/related-files-badge-counts.png and /dev/null differ
diff --git a/images/related-files-duplicate-labels.png b/images/related-files-duplicate-labels.png
deleted file mode 100644
index 7e6106c..0000000
Binary files a/images/related-files-duplicate-labels.png and /dev/null differ
diff --git a/images/related-files-example.png b/images/related-files-example.png
deleted file mode 100644
index 343f5f9..0000000
Binary files a/images/related-files-example.png and /dev/null differ
diff --git a/images/related-files-left-nav.png b/images/related-files-left-nav.png
deleted file mode 100644
index 1884f60..0000000
Binary files a/images/related-files-left-nav.png and /dev/null differ
diff --git a/images/setup-add-files-related-list.png b/images/setup-add-files-related-list.png
deleted file mode 100644
index 7a3467c..0000000
Binary files a/images/setup-add-files-related-list.png and /dev/null differ
diff --git a/images/setup-child-relationship-field-name.png b/images/setup-child-relationship-field-name.png
deleted file mode 100644
index 9622191..0000000
Binary files a/images/setup-child-relationship-field-name.png and /dev/null differ
diff --git a/images/setup-gear-edit-page.png b/images/setup-gear-edit-page.png
deleted file mode 100644
index 2f844ff..0000000
Binary files a/images/setup-gear-edit-page.png and /dev/null differ
diff --git a/images/youtube-cover.png b/images/youtube-cover.png
deleted file mode 100644
index ec0b03d..0000000
Binary files a/images/youtube-cover.png and /dev/null differ
diff --git a/sfdx-project.json b/sfdx-project.json
new file mode 100644
index 0000000..42c4b1a
--- /dev/null
+++ b/sfdx-project.json
@@ -0,0 +1,11 @@
+{
+ "packageDirectories": [
+ {
+ "path": "force-app",
+ "default": true
+ }
+ ],
+ "namespace": "",
+ "sfdcLoginUrl": "https://login.salesforce.com",
+ "sourceApiVersion": "48.0"
+}
\ No newline at end of file
diff --git a/src/classes/CF_ChildFilesFieldSetDynamicPicklistTest.cls b/src/classes/CF_ChildFilesFieldSetDynamicPicklistTest.cls
deleted file mode 100644
index ab9c0a4..0000000
--- a/src/classes/CF_ChildFilesFieldSetDynamicPicklistTest.cls
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
-Author: Doug Ayers
-Website: https://douglascayers.com
-GitHub: https://github.com/DouglasCAyers/sfdc-related-files-lightning
-License: BSD 3-Clause License
-*/
-@IsTest
-private class CF_ChildFilesFieldSetDynamicPicklistTest {
-
- @IsTest
- static void test_dynamic_picklist() {
-
- Map fsMap = SObjectType.ContentVersion.fieldSets.getMap();
-
- Test.startTest();
-
- CF_ChildFilesFieldSetDynamicPicklist picklist = new CF_ChildFilesFieldSetDynamicPicklist();
-
- // an entry for each field set plus the "default" option
- System.assertEquals( fsMap.size() + 1, picklist.getValues().size() );
-
- VisualEditor.DataRow defaultValue = null;
- for ( VisualEditor.DataRow row : picklist.getValues().getDataRows() ) {
- if ( row.isSelected() ) {
- defaultValue = row;
- }
- }
-
- System.assertNotEquals( null, defaultValue );
- System.assertEquals( defaultValue.getLabel(), picklist.getDefaultValue().getLabel() );
- System.assertEquals( defaultValue.getValue(), picklist.getDefaultValue().getValue() );
-
- Test.stopTest();
-
- }
-
-}
-/*
-BSD 3-Clause License
-
-Copyright (c) 2019, Doug Ayers
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of the copyright holder nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
\ No newline at end of file
diff --git a/src/classes/CF_ChildFilesFieldSetDynamicPicklistTest.cls-meta.xml b/src/classes/CF_ChildFilesFieldSetDynamicPicklistTest.cls-meta.xml
deleted file mode 100644
index e3d1b51..0000000
--- a/src/classes/CF_ChildFilesFieldSetDynamicPicklistTest.cls-meta.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- 45.0
- Active
-
diff --git a/src/objects/Account.object b/src/objects/Account.object
deleted file mode 100644
index cfa1280..0000000
--- a/src/objects/Account.object
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- View_Related_Files
- online
- button
- UTF-8
- url
- View Related Files
- replace
- false
- /apex/CF_ChildFilesPage?id={!Account.Id}
-
-
diff --git a/src/objects/Campaign.object b/src/objects/Campaign.object
deleted file mode 100644
index c889208..0000000
--- a/src/objects/Campaign.object
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- View_Related_Files
- online
- button
- UTF-8
- url
- View Related Files
- replace
- false
- /apex/CF_ChildFilesPage?id={!Campaign.Id}
-
-
diff --git a/src/objects/Case.object b/src/objects/Case.object
deleted file mode 100644
index 6e9f6a6..0000000
--- a/src/objects/Case.object
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- View_Related_Files
- online
- button
- UTF-8
- url
- View Related Files
- replace
- false
- /apex/CF_ChildFilesPage?id={!Case.Id}
-
-
diff --git a/src/objects/Contact.object b/src/objects/Contact.object
deleted file mode 100644
index 9abddee..0000000
--- a/src/objects/Contact.object
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- View_Related_Files
- online
- button
- UTF-8
- url
- View Related Files
- replace
- false
- /apex/CF_ChildFilesPage?id={!Contact.Id}
-
-
diff --git a/src/objects/Contract.object b/src/objects/Contract.object
deleted file mode 100644
index 69d77e5..0000000
--- a/src/objects/Contract.object
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- View_Related_Files
- online
- button
- UTF-8
- url
- View Related Files
- replace
- false
- /apex/CF_ChildFilesPage?id={!Contract.Id}
-
-
diff --git a/src/objects/Lead.object b/src/objects/Lead.object
deleted file mode 100644
index c251758..0000000
--- a/src/objects/Lead.object
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- View_Related_Files
- online
- button
- UTF-8
- url
- View Related Files
- replace
- false
- /apex/CF_ChildFilesPage?id={!Lead.Id}
-
-
diff --git a/src/objects/Opportunity.object b/src/objects/Opportunity.object
deleted file mode 100644
index 95c944f..0000000
--- a/src/objects/Opportunity.object
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- View_Related_Files
- online
- button
- UTF-8
- url
- View Related Files
- replace
- false
- /apex/CF_ChildFilesPage?id={!Opportunity.Id}
-
-
diff --git a/src/objects/Order.object b/src/objects/Order.object
deleted file mode 100644
index f7e358b..0000000
--- a/src/objects/Order.object
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- View_Related_Files
- online
- button
- UTF-8
- url
- View Related Files
- replace
- false
- /apex/CF_ChildFilesPage?id={!Order.Id}
-
-
diff --git a/src/package.xml b/src/package.xml
deleted file mode 100644
index 3718311..0000000
--- a/src/package.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
- CF_ChildFilesController
- CF_ChildFilesControllerTest
- CF_ChildFilesFilterDynamicPicklist
- CF_ChildFilesFilterDynamicPicklistTest
- CF_HttpCalloutMock
- CF_NamespaceUtils
- CF_NamespaceUtilsTest
- CF_VisualforceDomainController
- CF_VisualforceDomainControllerTest
- ApexClass
-
-
- CF_ChildFilesPage
- CF_VisualforceDomainPage
- ApexPage
-
-
- CF_ChildFilesCmp
- CF_ChildFilesOutApp
- defaultTokens
- AuraDefinitionBundle
-
-
- Account.View_Related_Files
- Campaign.View_Related_Files
- Case.View_Related_Files
- Contact.View_Related_Files
- Contract.View_Related_Files
- Lead.View_Related_Files
- Opportunity.View_Related_Files
- Order.View_Related_Files
- WebLink
-
- 45.0
-