From 01a39f4fb79b591523d672daf9742af82c570870 Mon Sep 17 00:00:00 2001 From: Pete Richards Date: Fri, 31 Aug 2018 16:34:03 -0700 Subject: [PATCH] [Inspector] More vue commit 9b735b4f70bf4d21f64a1e418a5f9d7342567104 Author: Pete Richards Date: Fri Aug 31 16:31:48 2018 -0700 Slight HTML tweak commit 3e58e140f9ea3640e5551d5f43abf837610c6fb4 Author: Pete Richards Date: Fri Aug 31 16:26:36 2018 -0700 [Inspector] Wire up elements pool Elements pool wired up to show angular elements pool. commit d9c60f31bd6d32a5d2e2227d5476edd81e2e4360 Author: Pete Richards Date: Fri Aug 31 13:56:04 2018 -0700 [Inspector] vue inspector Create a vue inspctor which responds to selection events and shows object properties and inspector views. --- platform/commonUI/edit/bundle.js | 6 ++ src/ui/components/inspector/Elements.vue | 33 +++++++ .../Inspector.vue} | 18 +++- src/ui/components/inspector/InspectorView.vue | 32 ++++++ src/ui/components/inspector/Location.vue | 42 ++++++++ src/ui/components/inspector/Properties.vue | 97 +++++++++++++++++++ src/ui/components/layout/Layout.vue | 6 +- 7 files changed, 228 insertions(+), 6 deletions(-) create mode 100644 src/ui/components/inspector/Elements.vue rename src/ui/components/{layout/MctInspector.vue => inspector/Inspector.vue} (91%) create mode 100644 src/ui/components/inspector/InspectorView.vue create mode 100644 src/ui/components/inspector/Location.vue create mode 100644 src/ui/components/inspector/Properties.vue diff --git a/platform/commonUI/edit/bundle.js b/platform/commonUI/edit/bundle.js index 2d823606bf..422703354a 100644 --- a/platform/commonUI/edit/bundle.js +++ b/platform/commonUI/edit/bundle.js @@ -319,6 +319,12 @@ define([ ] } ], + "templates": [ + { + key: "elementsPool", + template: elementsTemplate + } + ], "components": [ { "type": "decorator", diff --git a/src/ui/components/inspector/Elements.vue b/src/ui/components/inspector/Elements.vue new file mode 100644 index 0000000000..4d4f5afd70 --- /dev/null +++ b/src/ui/components/inspector/Elements.vue @@ -0,0 +1,33 @@ + + + diff --git a/src/ui/components/layout/MctInspector.vue b/src/ui/components/inspector/Inspector.vue similarity index 91% rename from src/ui/components/layout/MctInspector.vue rename to src/ui/components/inspector/Inspector.vue index d032e16663..d1f1a3859e 100644 --- a/src/ui/components/layout/MctInspector.vue +++ b/src/ui/components/inspector/Inspector.vue @@ -2,12 +2,14 @@ -
+ + +
-
c-inspector__elements 1
+
@@ -193,10 +195,20 @@ diff --git a/src/ui/components/inspector/InspectorView.vue b/src/ui/components/inspector/InspectorView.vue new file mode 100644 index 0000000000..6b1b6b5e85 --- /dev/null +++ b/src/ui/components/inspector/InspectorView.vue @@ -0,0 +1,32 @@ + + + + + diff --git a/src/ui/components/inspector/Location.vue b/src/ui/components/inspector/Location.vue new file mode 100644 index 0000000000..be829f906f --- /dev/null +++ b/src/ui/components/inspector/Location.vue @@ -0,0 +1,42 @@ + + + diff --git a/src/ui/components/inspector/Properties.vue b/src/ui/components/inspector/Properties.vue new file mode 100644 index 0000000000..bd0546ad99 --- /dev/null +++ b/src/ui/components/inspector/Properties.vue @@ -0,0 +1,97 @@ + + + diff --git a/src/ui/components/layout/Layout.vue b/src/ui/components/layout/Layout.vue index dbec15225b..a1050025c8 100644 --- a/src/ui/components/layout/Layout.vue +++ b/src/ui/components/layout/Layout.vue @@ -24,7 +24,7 @@ handle="before" label="Inspect" collapsable> - +
@@ -150,7 +150,7 @@