You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2019/09/05 13:44:17 UTC

[sling-org-apache-sling-app-cms] 01/03: Removing duplicate component

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit 6b1a4fdb592e84b4f1ffe374d299f46ee89b4e50
Author: Dan Klco <dk...@apache.org>
AuthorDate: Thu Sep 5 09:43:20 2019 -0400

    Removing duplicate component
---
 .../libs/sling-cms/components/config/config.jsp    | 59 ----------------------
 .../libs/sling-cms/components/config/edit.json     | 48 ------------------
 2 files changed, 107 deletions(-)

diff --git a/ui/src/main/resources/jcr_root/libs/sling-cms/components/config/config.jsp b/ui/src/main/resources/jcr_root/libs/sling-cms/components/config/config.jsp
deleted file mode 100644
index 0a97fe2..0000000
--- a/ui/src/main/resources/jcr_root/libs/sling-cms/components/config/config.jsp
+++ /dev/null
@@ -1,59 +0,0 @@
-<%-- /*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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.
- */ --%>
-<%@include file="/libs/sling-cms/global.jsp"%>
-<br/>
-<h3><sling:encode value="${properties['jcr:title']}" mode="HTML" /> (${resource.path})</h3>
-<br/>
-<div>
-    <h4>Allowed Paths</h4>
-    <ul>
-        <c:forEach var="allowedPath" items="${properties.allowedPaths}">
-            <li>
-                <pre><sling:encode value="${allowedPath}" mode="HTML" /></pre>
-            </li>
-        </c:forEach>
-    </ul>
-</div>
-<hr/>
-<div>
-    <h4>
-        Component Policies
-    </h4>
-    <c:set var="oldAvailableTypes" value="${availableTypes}" />
-    <c:set var="availableTypes" value="SlingCMS-PolicyMappingConfig" scope="request" />
-    <sling:include path="policies" resourceType="sling-cms/components/general/container" />
-    <c:set var="availableTypes" value="${oldAvailableTypes}" scope="request" />
-</div>
-<hr/>
-<div>
-    <h4>
-        Template Content
-    </h4>
-    <pre><sling:encode value="${properties.template}" mode="HTML" /></pre>
-</div>
-<hr/>
-<div>
-    <h4>
-        Configuration Fields
-    </h4>
-    <c:set var="oldAvailableTypes" value="${availableTypes}" />
-    <c:set var="availableTypes" value="SlingCMS-FieldConfig" scope="request" />
-    <sling:include path="fields" resourceType="sling-cms/components/general/container" />
-    <c:set var="availableTypes" value="${oldAvailableTypes}" scope="request" />
-</div>
\ No newline at end of file
diff --git a/ui/src/main/resources/jcr_root/libs/sling-cms/components/config/edit.json b/ui/src/main/resources/jcr_root/libs/sling-cms/components/config/edit.json
deleted file mode 100644
index 37c1e23..0000000
--- a/ui/src/main/resources/jcr_root/libs/sling-cms/components/config/edit.json
+++ /dev/null
@@ -1,48 +0,0 @@
- {
-    "jcr:primaryType": "nt:unstructured",
-    "sling:resourceType": "sling-cms/components/editor/slingform",
-    "button": "Save Page Type",
-    "fields": {
-        "jcr:primaryType": "nt:unstructured",
-        "sling:resourceType": "sling-cms/components/general/container",
-        "title": {
-            "jcr:primaryType": "nt:unstructured",
-            "sling:resourceType": "sling-cms/components/editor/fields/text",
-            "label": "Title",
-            "name": "jcr:title",
-            "required": true
-        },
-        "allowedPaths": {
-            "jcr:primaryType": "nt:unstructured",
-            "sling:resourceType": "sling-cms/components/editor/fields/repeating",
-            "type": "text",
-            "label": "Allowed Paths",
-            "name": "allowedPaths",
-            "required": true
-        },
-        "allowedPathsTypeHint": {
-            "jcr:primaryType": "nt:unstructured",
-            "sling:resourceType": "sling-cms/components/editor/fields/hidden",
-            "name": "allowedPaths@TypeHint",
-            "value": "String[]"
-        },
-        "availableComponentTypes": {
-            "jcr:primaryType": "nt:unstructured",
-            "sling:resourceType": "sling-cms/components/cms/availablecomponenttypes"
-        },
-        "template": {
-            "jcr:primaryType": "nt:unstructured",
-            "sling:resourceType": "sling-cms/components/editor/fields/textarea",
-            "defaultValue": "{\r\n  \"jcr:primaryType\": \"sling:Page\",\r\n  \"jcr:content\": {\r\n    \"jcr:primaryType\": \"nt:unstructured\",\r\n    \"jcr:title\": \"{{title}}\",\r\n    \"sling:template\": \"{{template}}\",\r\n    \"sling:resourceType\": \"reference\/components\/pages\/base\",\r\n    \"published\": false\r\n  }\r\n}",
-            "label": "Template",
-            "name": "template",
-            "required": true
-        },
-        "format": {
-            "jcr:primaryType": "nt:unstructured",
-            "sling:resourceType": "sling-cms/components/editor/fields/button",
-            "label": "Format",
-            "onclick": "javascript:try {document.querySelector('textarea[name=template]').value = JSON.stringify(JSON.parse(document.querySelector('textarea[name=template]').value), null, 2);} catch (e) { alert('Unable to parse Template JSON'); };return false;"
-        }
-    }
-}
\ No newline at end of file