Skip to content

Commit

Permalink
Dev: Bump fancytree to the latest version [bower-ready]
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Nov 11, 2016
1 parent b5ad4fd commit d39eef7
Show file tree
Hide file tree
Showing 440 changed files with 103,793 additions and 8,227 deletions.
4 changes: 2 additions & 2 deletions application/config/third_party.php
Expand Up @@ -329,10 +329,10 @@
'fancytree' => array(
'basePath' => 'third_party.fancytree',
'js' => array(
'jquery.fancytree-all.min.js'
'dist/jquery.fancytree-all.js'
),
'css' => array(
'skin-bootstrap-n/ui.fancytree.min.css'
'dist/skin-bootstrap/ui.fancytree.min.css'
),
),
);
26 changes: 26 additions & 0 deletions third_party/fancytree/.editorconfig
@@ -0,0 +1,26 @@
; EditorConfig is awesome: http://EditorConfig.org

; top-most EditorConfig file
root = true

; Unix-style newlines with a newline ending every file
[*]
; end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

; 4 space indentation
[*.py]
indent_style = space
indent_size = 4

; Tab indentation (no size specified)
[*.js]
; indent_style = tab
indent_style = space
indent_size = 4

; Indentation override for all JS under lib directory
[lib/**.js]
indent_style = space
indent_size = 2
4 changes: 4 additions & 0 deletions third_party/fancytree/.github/CONTRIBUTING.md
@@ -0,0 +1,4 @@
Thanks for contributing :-)

Please have a look at the
[Contributing Guidelines](https://github.com/mar10/fancytree/wiki/HowtoContribute#report-issues).
27 changes: 27 additions & 0 deletions third_party/fancytree/.github/ISSUE_TEMPLATE.md
@@ -0,0 +1,27 @@
Thanks for contributing :-)

Please also read the hints:
https://github.com/mar10/fancytree/wiki/HowtoContribute#report-issues
then remove all unneeded lines from this issue report.


### Expected and actual behavior

... (Maybe even a screenshot? Any hints on the browser's debug console?)


### Steps to reproduce the problem

1. ...
2. ...

Could you set up a jsFiddle (http://jsfiddle.net/mar10/KcxRd/) or
Plunker (http://plnkr.co/edit/8sdy3r?p=preview) ?


### Environment

- Browser type and version:
- jQuery and jQuery UI versions:
- Fancytree version:
enabled/affected extensions:
14 changes: 14 additions & 0 deletions third_party/fancytree/.gitignore
@@ -0,0 +1,14 @@
/.settings
/archive
/build
/test/triage
/doc/annotated-src
/doc/jsdoc
/doc/jsdoc_new
/doc/jsdoc_old
/node_modules
/doc/screenshots
/src/skin-custom-*
*.log
sauce_connect.*
.pyftpsync-meta.json
29 changes: 29 additions & 0 deletions third_party/fancytree/.jshintrc
@@ -0,0 +1,29 @@

{
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"expr": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"nonew": true,
"onevar": true,
"quotmark": "double",
"trailing": true,
"undef": true,
"unused": "vars",

"boss": true,
"eqnull": true,
"evil": false,
"smarttabs": true,

"browser": true,
"globals": {
"define": true,
"jQuery": true
}
}
11 changes: 11 additions & 0 deletions third_party/fancytree/.travis.yml
@@ -0,0 +1,11 @@
language: node_js
node_js:
- 0.10
before_script:
- npm install -g grunt-cli
script: grunt travis --verbose
sudo: false
env:
global:
- secure: VmlzKmxE+V+QZpvDuj5W41u2HTu2uTvW0aUi2p+2yhCHd7J5TFdOoECwIhTa/4VDEpnZwjLJXPd2q9kEn3+G0HpEqRMtKVTP/sM8y0JKUkprSCWV/y+pVX+0B9jQBAhEcjtkLDEGI3xVI8n+WV0Fig4kWecSCcSSUN5Mlbq5glQ=
- secure: ITp8qeoTyowtRqqFKPSjKq1tenmjt5ezNG/8ybEJQzxAMVGJ8bnyRPV1Aep0HB0ULP+GcYzDzGj5UeKM3hfWAJEfx+z1/HiHIMpJjEuGBz1JPfHx0lKcB7QfbhsRY3r8DVYptxdK9SyMisdIfCKApNMDW90RGDuALUdkLNPPXhI=
@@ -0,0 +1,119 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Fancytree - 3rd Party Example: Context menu</title>

<script src="//code.jquery.com/jquery-1.12.1.min.js" type="text/javascript"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js" type="text/javascript"></script>

<link href="../../../src/skin-win7/ui.fancytree.css" rel="stylesheet" type="text/css">
<script src="../../../src/jquery.fancytree.js" type="text/javascript"></script>

<link rel="stylesheet" href="css/jquery.contextMenu.css" type="text/css" />
<script src="js/jquery.contextMenu-1.6.5.js" type="text/javascript"></script>
<script src="js/jquery.fancytree.contextMenu.js" type="text/javascript"></script>

<!-- Start_Exclude: This block is not part of the sample code -->
<link href="../../../lib/prettify.css" rel="stylesheet">
<script src="../../../lib/prettify.js" type="text/javascript"></script>
<link href="../../../demo/sample.css" rel="stylesheet" type="text/css">
<script src="../../../demo/sample.js" type="text/javascript"></script>
<!-- End_Exclude -->

<!-- Add code to initialize the tree when the document is loaded: -->
<script type="text/javascript">
$(function() {
$('#tree').fancytree({
extensions: ['contextMenu'],
source: {
url: '../../../demo/ajax-tree-local.json'
},
contextMenu: {
menu: {
'edit': { 'name': 'Edit', 'icon': 'edit' },
'cut': { 'name': 'Cut', 'icon': 'cut' },
'copy': { 'name': 'Copy', 'icon': 'copy' },
'paste': { 'name': 'Paste', 'icon': 'paste' },
'delete': { 'name': 'Delete', 'icon': 'delete', 'disabled': true },
'sep1': '---------',
'quit': { 'name': 'Quit', 'icon': 'quit' },
'sep2': '---------',
'fold1': {
'name': 'Sub group',
'items': {
'fold1-key1': { 'name': 'Foo bar' },
'fold2': {
'name': 'Sub group 2',
'items': {
'fold2-key1': { 'name': 'alpha' },
'fold2-key2': { 'name': 'bravo' },
'fold2-key3': { 'name': 'charlie' }
}
},
'fold1-key3': { 'name': 'delta' }
}
},
'fold1a': {
'name': 'Other group',
'items': {
'fold1a-key1': { 'name': 'echo' },
'fold1a-key2': { 'name': 'foxtrot' },
'fold1a-key3': { 'name': 'golf' }
}
}
},
actions: function(node, action, options) {
$('#selected-action').text('Selected action "' + action + '" on node ' + node);
}
},
lazyLoad: function(event, data) {
data.result = { url: '../../ajax-sub2.json' }
}
});
});
</script>
</head>

<body class="example">

<h1>Example: 'contextMenu' extension</h1>

<div class="description">
<p>
This example make use of the `contextMenu` extension that was
<a href="https://github.com/mar10/fancytree/pull/3" target="_blank" class="external">contributed by Tomas Norkūnas</a>.
</p>
<p>
The extension in turn integrates the
<a href="http://medialize.github.io/jQuery-contextMenu/" target="_blank" class="external">jQuery contextMenu plugin</a>
by Rodney Rehm (please report bugs there).
</p>
</div>
<!--
<div>
<label for="skinswitcher">Skin:</label> <select id="skinswitcher"></select>
</div>
-->
<!-- Tree wrapper -->
<div id="tree"></div>

<hr />

<div id="selected-action">Click right mouse button on node</div>

<!-- Start_Exclude: This block is not part of the sample code -->
<hr>

<p class="sample-links no_code">
<a class="hideInsideFS" href="https://github.com/mar10/fancytree">jquery.fancytree.js project home</a>
<a class="hideOutsideFS" href="#">Link to this page</a>
<a class="hideInsideFS" href="index.html">Example Browser</a>
<a href="#" id="codeExample">View source code</a>
</p>

<pre id="sourceCode" class="prettyprint" style="display:none"></pre>
<!-- End_Exclude -->

</body>
</html>
@@ -0,0 +1,142 @@
/*!
* jQuery contextMenu - Plugin for simple contextMenu handling
*
* Version: 1.6.5
*
* Authors: Rodney Rehm, Addy Osmani (patches for FF)
* Web: http://medialize.github.com/jQuery-contextMenu/
*
* Licensed under
* MIT License http://www.opensource.org/licenses/mit-license
* GPL v3 http://opensource.org/licenses/GPL-3.0
*
*/

.context-menu-list {
margin:0;
padding:0;

min-width: 120px;
max-width: 250px;
display: inline-block;
position: absolute;
list-style-type: none;

border: 1px solid #DDD;
background: #EEE;

-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
-ms-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
-o-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);

font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}

.context-menu-item {
padding: 2px 2px 2px 24px;
background-color: #EEE;
position: relative;
-webkit-user-select: none;
-moz-user-select: -moz-none;
-ms-user-select: none;
user-select: none;
}

.context-menu-separator {
padding-bottom:0;
border-bottom: 1px solid #DDD;
}

.context-menu-item > label > input,
.context-menu-item > label > textarea {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}

.context-menu-item.hover {
cursor: pointer;
background-color: #39F;
}

.context-menu-item.disabled {
color: #666;
}

.context-menu-input.hover,
.context-menu-item.disabled.hover {
cursor: default;
background-color: #EEE;
}

.context-menu-submenu:after {
content: ">";
color: #666;
position: absolute;
top: 0;
right: 3px;
z-index: 1;
}

/* icons
#protip:
In case you want to use sprites for icons (which I would suggest you do) have a look at
http://css-tricks.com/13224-pseudo-spriting/ to get an idea of how to implement
.context-menu-item.icon:before {}
*/
.context-menu-item.icon { min-height: 18px; background-repeat: no-repeat; background-position: 4px 2px; }
.context-menu-item.icon-edit { background-image: url(../images/page_white_edit.png); }
.context-menu-item.icon-cut { background-image: url(../images/cut.png); }
.context-menu-item.icon-copy { background-image: url(../images/page_white_copy.png); }
.context-menu-item.icon-paste { background-image: url(../images/page_white_paste.png); }
.context-menu-item.icon-delete { background-image: url(../images/page_white_delete.png); }
.context-menu-item.icon-add { background-image: url(../images/page_white_add.png); }
.context-menu-item.icon-quit { background-image: url(../images/door.png); }

/* vertically align inside labels */
.context-menu-input > label > * { vertical-align: top; }

/* position checkboxes and radios as icons */
.context-menu-input > label > input[type="checkbox"],
.context-menu-input > label > input[type="radio"] {
margin-left: -17px;
}
.context-menu-input > label > span {
margin-left: 5px;
}

.context-menu-input > label,
.context-menu-input > label > input[type="text"],
.context-menu-input > label > textarea,
.context-menu-input > label > select {
display: block;
width: 100%;

-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
}

.context-menu-input > label > textarea {
height: 100px;
}
.context-menu-item > .context-menu-list {
display: none;
/* re-positioned by js */
right: -5px;
top: 5px;
}

.context-menu-item.hover > .context-menu-list {
display: block;
}

.context-menu-accesskey {
text-decoration: underline;
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d39eef7

Please sign in to comment.