From c2fa1b7e8d43a236219d1f6ad2831de1af296cb4 Mon Sep 17 00:00:00 2001 From: aribeiro Date: Thu, 13 Jan 2022 14:33:25 +0000 Subject: View Interface definition on VFC Add Interface support to VFC view UI Issue-ID: SDC-3850 Signed-off-by: aribeiro Change-Id: Icd195c939af39d40ae8c617e740323dd3e70fc15 --- .../interface-definition-view-model.ts | 35 ++++++++++++++++++++++ .../interface-definition-view.html | 27 +++++++++++++++++ .../interface-definition/interface-definition.less | 26 ++++++++++++++++ 3 files changed, 88 insertions(+) create mode 100644 catalog-ui/src/app/view-models/workspace/tabs/interface-definition/interface-definition-view-model.ts create mode 100644 catalog-ui/src/app/view-models/workspace/tabs/interface-definition/interface-definition-view.html create mode 100644 catalog-ui/src/app/view-models/workspace/tabs/interface-definition/interface-definition.less (limited to 'catalog-ui/src/app/view-models/workspace/tabs') diff --git a/catalog-ui/src/app/view-models/workspace/tabs/interface-definition/interface-definition-view-model.ts b/catalog-ui/src/app/view-models/workspace/tabs/interface-definition/interface-definition-view-model.ts new file mode 100644 index 0000000000..46ba0317d9 --- /dev/null +++ b/catalog-ui/src/app/view-models/workspace/tabs/interface-definition/interface-definition-view-model.ts @@ -0,0 +1,35 @@ +/* +* ============LICENSE_START======================================================= +* SDC +* ================================================================================ +* Copyright (C) 2022 Nordix Foundation. All rights reserved. +* ================================================================================ +* 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. +* +* SPDX-License-Identifier: Apache-2.0 +* ============LICENSE_END========================================================= +*/ +'use strict'; + +import {IWorkspaceViewModelScope} from "app/view-models/workspace/workspace-view-model"; + +export interface IInterfaceDefinitionViewModelScope extends IWorkspaceViewModelScope {}; + +export class InterfaceDefinitionViewModel { + + static '$inject' = [ + '$scope' + ]; + + constructor(private $scope: IInterfaceDefinitionViewModelScope) {} + +} diff --git a/catalog-ui/src/app/view-models/workspace/tabs/interface-definition/interface-definition-view.html b/catalog-ui/src/app/view-models/workspace/tabs/interface-definition/interface-definition-view.html new file mode 100644 index 0000000000..4eba48871d --- /dev/null +++ b/catalog-ui/src/app/view-models/workspace/tabs/interface-definition/interface-definition-view.html @@ -0,0 +1,27 @@ + +
+ + +
diff --git a/catalog-ui/src/app/view-models/workspace/tabs/interface-definition/interface-definition.less b/catalog-ui/src/app/view-models/workspace/tabs/interface-definition/interface-definition.less new file mode 100644 index 0000000000..ce0264e13d --- /dev/null +++ b/catalog-ui/src/app/view-models/workspace/tabs/interface-definition/interface-definition.less @@ -0,0 +1,26 @@ +/* +* ============LICENSE_START======================================================= +* SDC +* ================================================================================ +* Copyright (C) 2022 Nordix Foundation. All rights reserved. +* ================================================================================ +* 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. +* +* SPDX-License-Identifier: Apache-2.0 +* ============LICENSE_END========================================================= +*/ +.workspace-interface-definition { + width: 100%; + display: inline-block; + top: -26px; + position: relative; +} -- cgit 1.2.3-korg