Skip to content
Permalink
Browse files

Created custom contentfinder tab with name wookie

  • Loading branch information...
ankit-gubrani committed Aug 19, 2015
1 parent f1773b8 commit c4ad0d515961b9a274749672399270f22dc8b49a
Showing with 238 additions and 0 deletions.
  1. +3 −0 content/src/main/content/META-INF/vault/filter.xml
  2. +3 −0 content/src/main/content/jcr_root/apps/wcm/extensions/.content.xml
  3. +5 −0 content/src/main/content/jcr_root/apps/wcm/extensions/contentfinder/.content.xml
  4. +46 −0 content/src/main/content/jcr_root/apps/wcm/extensions/contentfinder/wookie_cf.js
  5. +8 −0 content/src/main/content/jcr_root/apps/wcm/extensions/contentfinder/wookie_cf.js.dir/.content.xml
  6. +26 −0 content/src/main/content/jcr_root/content/.content.xml
  7. +1 −0 content/src/main/content/jcr_root/content/wookie_widgets.txt
  8. +4 −0 content/src/main/content/jcr_root/etc/.content.xml
  9. +5 −0 content/src/main/content/jcr_root/etc/clientlibs/.content.xml
  10. +33 −0 content/src/main/content/jcr_root/etc/clientlibs/codebrains/icons/defaultwidget.png/.content.xml
  11. BIN ...lientlibs/codebrains/icons/defaultwidget.png/_jcr_content/renditions/cq5dam.thumbnail.140.100.png
  12. BIN ...lientlibs/codebrains/icons/defaultwidget.png/_jcr_content/renditions/cq5dam.thumbnail.319.319.png
  13. BIN .../clientlibs/codebrains/icons/defaultwidget.png/_jcr_content/renditions/cq5dam.thumbnail.48.48.png
  14. BIN ...tc/clientlibs/codebrains/icons/defaultwidget.png/_jcr_content/renditions/cq5dam.web.1280.1280.png
  15. BIN ...ntent/jcr_root/etc/clientlibs/codebrains/icons/defaultwidget.png/_jcr_content/renditions/original
  16. +8 −0 ...c/clientlibs/codebrains/icons/defaultwidget.png/_jcr_content/renditions/original.dir/.content.xml
  17. +32 −0 content/src/main/content/jcr_root/etc/clientlibs/codebrains/icons/wookie16X16.png/.content.xml
  18. BIN .../clientlibs/codebrains/icons/wookie16X16.png/_jcr_content/renditions/cq5dam.thumbnail.140.100.png
  19. BIN .../clientlibs/codebrains/icons/wookie16X16.png/_jcr_content/renditions/cq5dam.thumbnail.319.319.png
  20. BIN ...tc/clientlibs/codebrains/icons/wookie16X16.png/_jcr_content/renditions/cq5dam.thumbnail.48.48.png
  21. BIN .../etc/clientlibs/codebrains/icons/wookie16X16.png/_jcr_content/renditions/cq5dam.web.1280.1280.png
  22. BIN ...content/jcr_root/etc/clientlibs/codebrains/icons/wookie16X16.png/_jcr_content/renditions/original
  23. +8 −0 ...etc/clientlibs/codebrains/icons/wookie16X16.png/_jcr_content/renditions/original.dir/.content.xml
  24. +4 −0 content/src/main/content/jcr_root/etc/clientlibs/codebrains/wookie/.content.xml
  25. +1 −0 content/src/main/content/jcr_root/etc/clientlibs/codebrains/wookie/css.txt
  26. 0 content/src/main/content/jcr_root/etc/clientlibs/codebrains/wookie/js.txt
  27. +51 −0 content/src/main/content/jcr_root/etc/clientlibs/codebrains/wookie/wookie.css
@@ -1,4 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
<filter root="/apps/codebrains"/>
<filter root="/apps/wcm"/>
<filter root="/content/wookie_widgets.txt"/>
<filter root="/etc/clientlibs/codebrains"/>
</workspaceFilter>
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:Folder"/>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:Folder"
extensionGroup="tabs"
extensionType="contentfinder_extension"/>
@@ -0,0 +1,46 @@
{
"tabTip": CQ.I18n.getMessage("Wookie Widgets"),
"id": "cfTab-Wookie-widgets",
"xtype": "contentfindertab",
"iconCls": "cq-cft-tab-icon wookie",
"ranking": 1,
"items": [
CQ.wcm.ContentFinderTab.getResultsBoxConfig({
"itemsDDGroups": [CQ.wcm.EditBase.DD_GROUP_ASSET],
"items": {
"tpl":
'<tpl for=".">' +
'<div class="cq-cft-search-item cq-cft-wookie-item" title="{pathEncoded}" ondblclick="CQ.wcm.ContentFinder.loadContentWindow(\'{[CQ.HTTP.encodePath(values.path)]}.html\');">' +
'<div class="cq-cft-wookie-thumb-top <tpl if=\"!values.icon.src\">wookie-default-widget</tpl>" style="background-image:url(\'{[values.icon.src]}\');"></div>' +
'<div class="cq-cft-wookie-text-wrapper">' +
'<div class="cq-cft-wookie-title">{[values.name.content]}</div>' +
'<div class="cq-cft-wookie-decription">{[values.description]}</div>' +
'</div>' +
'<div class="cq-cft-wookie-separator"></div>' +
'</div>' +
'</tpl>',
"itemSelector": CQ.wcm.ContentFinderTab.DETAILS_ITEMSELECTOR
},
"tbar": [
CQ.wcm.ContentFinderTab.REFRESH_BUTTON
]
},{
"url": "/content/wookie_widgets.txt"
}, {
"baseParams": {
/*"defaultMimeType": "image"*/
"mimeType": "image"
},
"autoLoad":false,
"reader": new CQ.Ext.data.JsonReader({
"totalProperty": "results",
"root": "widgets.widget",
"fields": [
"id", "author", "height", "description", "name", "width", "license", "version","icon"
],
"id": "id",
})
})
]

}
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:file">
<jcr:content
jcr:lastModifiedBy="admin"
jcr:mimeType="text/javascript"
jcr:primaryType="nt:resource"/>
</jcr:root>
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:rep="internal"
jcr:mixinTypes="[mix:lockable,rep:AccessControllable,sling:Redirect]"
jcr:primaryType="sling:OrderedFolder"
sling:resourceType="sling:redirect"
sling:target="/geohome">
<dam/>
<usergenerated/>
<rep:policy/>
<launches/>
<campaigns/>
<community-components/>
<catalogs/>
<geometrixx/>
<geometrixx_mobile/>
<geometrixx-outdoors/>
<geometrixx-outdoors-mobile/>
<communities/>
<phonegap/>
<geometrixx-media/>
<publications/>
<geometrixx-gov/>
<forms/>
<projects/>
<wookie_widgets.txt/>
</jcr:root>
@@ -0,0 +1 @@
{"widgets":{"widget":[{"id":"http://notsupported","author":"Paul Sharples","height":358,"description":"This widget is a placeholder for when no corresponding widget is found for a given type","name":{"content":"Unsupported widget widget","short":""},"width":500,"license":"Licensed under the Apache 2.0 License (see http://www.apache.org/licenses/LICENSE-2.0).","version":""},{"id":"http://www.getwookie.org/widgets/camera","author":"Apache Wookie (Incubating) Team","icon":{"src":"http://localhost:8080/wookie/deploy/www.getwookie.org/widgets/camera/icon.png"},"height":380,"description":"A widget demonstrating the use of the BONDI camera API","name":{"content":"camera","short":""},"width":380,"license":"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.","version":""},{"id":"http://wookie.apache.org/widgets/youtube","author":"Apache Wookie (Incubating) Team","icon":{"src":"http://localhost:8080/wookie/deploy/wookie.apache.org/widgets/youtube/icon.png"},"height":490,"description":"Find and play YouTube videos","name":{"content":"YouTube","short":""},"width":600,"license":"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. This distribution includes a number of subcomponents with separate copyright notices and license terms. Your use of the code for the these subcomponents is subject to the terms and conditions of the following licenses. This product includes software (JQuery TubePlayer Plugin) developed by Nirvana Tikku (http://www.tikku.com/jquery-youtube-tubeplayer-plugin) and licensed under the MIT license. This product includes software (JQuery) developed by the JQUery Project, a member of the Software Freedom Conservancy (http://www.jquery.org/) and licensed under the MIT license. The \"YouTube Videos\" badge in the widget logo is used in accordance with the YouTube API branding guidelines available at http://code.google.com/apis/youtube/branding.html and terms of service, available at http://code.google.com/apis/youtube/terms.html","version":1},{"id":"http://www.opera.com/widgets/bubbles","author":"Mathieu Henri, Gautam Chandna, Christian Mangnus Sinding-Larsen, Opera Software ASA","icon":{"src":"http://localhost:8080/wookie/deploy/www.opera.com/widgets/bubbles/icon_64.png"},"height":320,"description":"A Bubbles game","name":{"content":"Bubbles","short":""},"width":240,"license":"Copyright (c) 2007, Opera Software ASA 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 Opera Software ASA 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 OPERA SOFTWARE ASA ``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 OPERA SOFTWARE ASA 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.","version":"2006-07-26"},{"id":"http://www.getwookie.org/widgets/sudoku","author":"Austin Chau","icon":{"src":"http://localhost:8080/wookie/deploy/www.getwookie.org/widgets/sudoku/icon.png"},"height":380,"description":"Sudoku","name":{"content":"Sudoku","short":""},"width":480,"license":"Copyright [2007] [Austin Chau] 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","version":1},{"id":"http://wookie.apache.org/widgets/butterfly","author":"Apache Wookie (Incubating) Team","icon":{"src":"http://localhost:8080/wookie/deploy/wookie.apache.org/widgets/butterfly/images/icon.png"},"height":350,"description":"Paint colourful butterflies!","name":{"content":"Butterfly","short":""},"width":420,"license":"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.","version":0.1},{"id":"http://wookie.apache.org/widgets/simplechat","author":"Apache Wookie (Incubating) Team","icon":{"src":"http://localhost:8080/wookie/deploy/wookie.apache.org/widgets/simplechat/icon.png"},"height":383,"preference":{"name":"moderator","value":false,"readonly":false},"description":"Stripped down chat widget with minimal styling","name":{"content":"SimpleChat","short":""},"width":255,"license":"Licensed under the Apache 2.0 License (see http://www.apache.org/licenses/LICENSE-2.0). Smileys created by macpoupou and licensed under Creative Commons Attribution License 3.0. See http://ismileys.free.fr/smileys/ for more information.","version":""},{"id":"http://wookie.apache.org/widgets/sharedraw","author":"Apache Wookie (Incubating) Team","icon":{"src":"http://localhost:8080/wookie/deploy/wookie.apache.org/widgets/sharedraw/images/icon.png"},"height":300,"description":"A collaborative drawing application - sketch with friends!","name":{"content":"ShareDraw","short":""},"width":400,"license":"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.","version":0.1},{"id":"http://www.getwookie.org/widgets/todo","author":"Apache Wookie (Incubating) Team","icon":{"src":"http://localhost:8080/wookie/deploy/www.getwookie.org/widgets/todo/icon.png"},"height":460,"description":"A shared to-do list widget","name":{"content":"Ta-Da!","short":""},"width":320,"license":"Licensed under the Apache 2.0 License (see http://www.apache.org/licenses/LICENSE-2.0).","version":""},{"id":"http://wookie.apache.org/widgets/geo","author":"Apache Wookie (Incubating) Team","icon":{"src":"http://localhost:8080/wookie/deploy/wookie.apache.org/widgets/geo/icon.png"},"height":660,"description":"An example of a HTML 5 geolocation widget.","name":{"content":"geo","short":""},"width":620,"license":"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.","version":0.1},{"id":"http://wookie.apache.org/widgets/freeder","author":"Apache Wookie (Incubating) Team","icon":{"src":"http://localhost:8080/wookie/deploy/wookie.apache.org/widgets/freeder/images/icon.png"},"height":480,"description":"An RSS reader widget optimised for small screens or desktop widgets.","name":{"content":"freeder","short":""},"width":320,"license":"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.","version":0.1},{"id":"http://wookie.apache.org/widgets/twitter","author":"Apache Wookie (Incubating) Community","icon":{"src":"http://localhost:8080/wookie/deploy/wookie.apache.org/widgets/twitter/images/icon.png"},"height":480,"description":"See what's happening on Twitter","name":{"content":"Twidget","short":""},"width":320,"license":"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.","version":0.1},{"id":"http://www.getwookie.org/widgets/weather","author":"Scott Wilson","icon":{"src":"http://localhost:8080/wookie/deploy/www.getwookie.org/widgets/weather/icon.png"},"height":125,"description":"A silly Weather widget","name":{"content":"Weather","short":""},"width":125,"license":"Licensed under the Apache 2.0 License (see http://www.apache.org/licenses/LICENSE-2.0).","version":1},{"id":"http://www.getwookie.org/widgets/youdecide","author":"Scott Wilson","icon":{"src":"http://localhost:8080/wookie/deploy/www.getwookie.org/widgets/youdecide/icon.png"},"height":320,"preference":{"name":"moderator","value":false,"readonly":false},"description":"A quick and simple voting widget","name":{"content":"You decide","short":""},"width":255,"version":1},{"id":"http://www.getwookie.org/widgets/wiki","author":"Apache Wookie (Incubating) Team","icon":{"src":"http://localhost:8080/wookie/deploy/www.getwookie.org/widgets/wiki/icon.png"},"height":520,"description":"A Wiki In A Widget","name":{"content":"WookieWiki","short":""},"width":320,"license":"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. Note this widget makes heavy use of Creole, (c) 2009 by Ivan Fomichev (see license in creole.js)","version":1},{"id":"http://www.getwookie.org/widgets/natter","author":"Scott Wilson","icon":{"src":"http://localhost:8080/wookie/deploy/www.getwookie.org/widgets/natter/icon.png"},"height":383,"preference":{"name":"moderator","value":false,"readonly":false},"description":"basic chat widget","name":{"content":"Natter","short":""},"width":255,"license":"Licensed under the Apache 2.0 License (see http://www.apache.org/licenses/LICENSE-2.0). Smileys created by macpoupou and licensed under Creative Commons Attribution License 3.0. See http://ismileys.free.fr/smileys/ for more information.","version":""}]}}
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:mixinTypes="[rep:AccessControllable]"
jcr:primaryType="sling:Folder"/>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:mixinTypes="[rep:AccessControllable]"
jcr:primaryType="sling:Folder"
hidden="true"/>
Oops, something went wrong.

0 comments on commit c4ad0d5

Please sign in to comment.
You can’t perform that action at this time.