From aa5edb0b833aea2ae1510e84e2c7318be71d36fb Mon Sep 17 00:00:00 2001 From: David Tsay <3614296+davetsay@users.noreply.github.com> Date: Fri, 17 Sep 2021 16:20:22 -0700 Subject: [PATCH] Flexible inspector properties (#4109) * inspector properties can be passed in through context * defaults to the currently hard-coded details (title, type, modified or created) --- src/ui/inspector/ElementItem.vue | 22 ++ src/ui/inspector/ElementsPool.vue | 22 ++ src/ui/inspector/Inspector.vue | 40 +++- src/ui/inspector/InspectorDetailsSpec.js | 166 +++++++++++++++ src/ui/inspector/InspectorStylesSpecMocks.js | 22 ++ src/ui/inspector/InspectorViews.vue | 25 ++- src/ui/inspector/Location.vue | 22 ++ src/ui/inspector/ObjectName.vue | 22 ++ src/ui/inspector/Properties.vue | 171 ---------------- src/ui/inspector/details/DetailText.vue | 43 ++++ src/ui/inspector/details/Properties.vue | 201 +++++++++++++++++++ 11 files changed, 579 insertions(+), 177 deletions(-) create mode 100644 src/ui/inspector/InspectorDetailsSpec.js delete mode 100644 src/ui/inspector/Properties.vue create mode 100644 src/ui/inspector/details/DetailText.vue create mode 100644 src/ui/inspector/details/Properties.vue diff --git a/src/ui/inspector/ElementItem.vue b/src/ui/inspector/ElementItem.vue index 7418abc14f..8cf6c3de57 100644 --- a/src/ui/inspector/ElementItem.vue +++ b/src/ui/inspector/ElementItem.vue @@ -1,3 +1,25 @@ +/***************************************************************************** + * Open MCT, Copyright (c) 2014-2021, United States Government + * as represented by the Administrator of the National Aeronautics and Space + * Administration. All rights reserved. + * + * Open MCT is licensed under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * Open MCT includes source code licensed under additional open source + * licenses. See the Open Source Licenses file (LICENSES.md) included with + * this source code distribution or the Licensing information page available + * at runtime from the About dialog for additional information. + *****************************************************************************/ +