Version Description
- Fixed dialog issues with Z order of find, settings and git dialogs
- Fixed dialog close button mislocation
Download this release
Release Info
Developer | shanept |
Plugin | AceIDE |
Version | 2.5.1 |
Comparing to | |
See all releases |
Code changes from version 2.5.0 to 2.5.1
- AceIDE.php +1 -1
- readme.txt +7 -3
- src/IDE.php +82 -69
- src/Modules/GitOps.php +3 -2
- src/css/flick/jquery-ui-1.8.20.custom.css +2 -2
- src/js/load-editor.js +58 -309
- vendor/composer/LICENSE +428 -16
- vendor/composer/autoload_real.php +12 -23
AceIDE.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: AceIDE
|
4 |
* Plugin URI: https://github.com/AceIDE/AceIDE
|
5 |
* Description: WordPress code editor with auto completion of both WordPress and PHP functions with reference, syntax highlighting, line numbers, tabbed editing, automatic backup.
|
6 |
-
* Version: 2.5.
|
7 |
* Author: AceIDE
|
8 |
**/
|
9 |
|
3 |
* Plugin Name: AceIDE
|
4 |
* Plugin URI: https://github.com/AceIDE/AceIDE
|
5 |
* Description: WordPress code editor with auto completion of both WordPress and PHP functions with reference, syntax highlighting, line numbers, tabbed editing, automatic backup.
|
6 |
+
* Version: 2.5.1
|
7 |
* Author: AceIDE
|
8 |
**/
|
9 |
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== AceIDE ===
|
2 |
-
Contributors: WPsites, Thomas Wieczorek
|
3 |
Tags: code, theme editor, plugin editor, code editor
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 2.5.
|
7 |
|
8 |
A fork of the WPide project, AceIDE is a code editor with the long term goal of becoming the ultimate environment to develop themes and plugins.
|
9 |
|
@@ -61,6 +61,10 @@ AceIDE on GitHub: https://github.com/AceIDE/editor/
|
|
61 |
1. Default colour picker image
|
62 |
|
63 |
== Changelog ==
|
|
|
|
|
|
|
|
|
64 |
= 2.5.0 =
|
65 |
* WPide was forked into AceIDE!
|
66 |
* Introduced composer as a dependency management solution
|
1 |
=== AceIDE ===
|
2 |
+
Contributors: shanept, WPsites, Thomas Wieczorek
|
3 |
Tags: code, theme editor, plugin editor, code editor
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 4.6
|
6 |
+
Stable tag: 2.5.1
|
7 |
|
8 |
A fork of the WPide project, AceIDE is a code editor with the long term goal of becoming the ultimate environment to develop themes and plugins.
|
9 |
|
61 |
1. Default colour picker image
|
62 |
|
63 |
== Changelog ==
|
64 |
+
= 2.5.1 =
|
65 |
+
* Fixed dialog issues with Z order of find, settings and git dialogs
|
66 |
+
* Fixed dialog close button mislocation
|
67 |
+
|
68 |
= 2.5.0 =
|
69 |
* WPide was forked into AceIDE!
|
70 |
* Introduced composer as a dependency management solution
|
src/IDE.php
CHANGED
@@ -77,8 +77,6 @@ class IDE
|
|
77 |
return array (
|
78 |
array( 'admin_print_scripts-' . $this->menu_hook, array( &$this, 'add_admin_js' ) ),
|
79 |
array( 'admin_print_styles-' . $this->menu_hook, array( &$this, 'add_admin_styles' ) ),
|
80 |
-
array( 'admin_print_footer_scripts', array( &$this, 'print_find_dialog' ) ),
|
81 |
-
array( 'admin_print_footer_scripts', array( &$this, 'print_settings_dialog' ) ),
|
82 |
array( 'wp_ajax_jqueryFileTree', array( &$this, 'jqueryFileTree_get_list' ) ),
|
83 |
|
84 |
array( 'wp_ajax_aceide_image_edit_key', array( &$this, 'image_edit_key' ) ),
|
@@ -147,30 +145,30 @@ class IDE
|
|
147 |
$ver = $this->ace_version;
|
148 |
|
149 |
// include file tree
|
150 |
-
wp_enqueue_script( 'jquery-file-tree', plugins_url( 'js/jqueryFileTree.js', __FILE__ ) );
|
151 |
// include ace
|
152 |
wp_enqueue_script( 'ace', "{$plugin_path}js/ace-{$ver}/ace.js" );
|
153 |
// include ace modes for css, javascript & php
|
154 |
-
wp_enqueue_script( 'ace-mode-css', "{$plugin_path}js/ace-{$ver}/mode-css.js" );
|
155 |
-
wp_enqueue_script( 'ace-mode-less', "{$plugin_path}js/ace-{$ver}/mode-less.js" );
|
156 |
-
wp_enqueue_script( 'ace-mode-javascript', "{$plugin_path}js/ace-{$ver}/mode-javascript.js" );
|
157 |
-
wp_enqueue_script( 'ace-mode-php', "{$plugin_path}js/ace-{$ver}/mode-php.js" );
|
158 |
-
wp_enqueue_script( 'ace-mode-twig', "{$plugin_path}js/ace-{$ver}/mode-twig.js" );
|
159 |
// include ace theme
|
160 |
-
wp_enqueue_script( 'ace-theme', "{$plugin_path}js/ace-{$ver}/theme-dawn.js" ); // ambiance looks really nice for high contrast
|
161 |
// load emmet
|
162 |
-
wp_enqueue_script( 'aceide-ext-emmet', "{$plugin_path}js/ace-{$ver}/ext-emmet.js" );
|
163 |
-
wp_enqueue_script( 'aceide-emmet', "{$plugin_path}js/emmet.js" );
|
164 |
// wordpress-completion tags
|
165 |
-
wp_enqueue_script( 'aceide-wordpress-completion', "{$plugin_path}js/autocomplete/wordpress.js" );
|
166 |
// php-completion tags
|
167 |
-
wp_enqueue_script( 'aceide-php-completion', "{$plugin_path}js/autocomplete/php.js" );
|
168 |
// load editor
|
169 |
-
wp_enqueue_script( 'aceide-load-editor', "{$plugin_path}js/load-editor.js" );
|
170 |
// load filetree menu
|
171 |
-
wp_enqueue_script( 'aceide-load-filetree-menu', "{$plugin_path}js/load-filetree-menu.js" );
|
172 |
// load autocomplete dropdown
|
173 |
-
wp_enqueue_script( 'aceide-dd', "{$plugin_path}js/jquery.dd.js" );
|
174 |
|
175 |
// load color picker
|
176 |
wp_enqueue_script( 'ImageColorPicker', plugins_url( 'js/ImageColorPicker.js', __FILE__ ), array( 'jquery', 'jquery-ui-core', 'jquery-ui-widget' ), '0.3' );
|
@@ -520,13 +518,17 @@ class IDE
|
|
520 |
$app_url = str_replace( "http:", "https:", $app_url );
|
521 |
}
|
522 |
|
|
|
|
|
|
|
|
|
523 |
do_action('pre_output_aceide_menu_page');
|
524 |
do_action('pre_output_aceide_menu_page_scripts');
|
525 |
?>
|
526 |
<script>
|
527 |
|
528 |
var aceide_app_path = "<?php echo plugin_dir_url( __FILE__ ); ?>";
|
529 |
-
// dont think this is needed any more.. var aceide_file_root_url = "<?php echo
|
530 |
var user_nonce_addition = '';
|
531 |
|
532 |
function the_filetree() {
|
@@ -553,7 +555,7 @@ class IDE
|
|
553 |
if ("lets not" == "use the modal for now") {
|
554 |
|
555 |
var NewDialog = jQuery('<div id="MenuDialog">\
|
556 |
-
<iframe src="http://www.sumopaint.com/app/?key=ebcdaezjeojbfgih&target=<?php echo get_bloginfo( 'url' ); ?>?action=aceide_image_save&url=<?php echo
|
557 |
</div>');
|
558 |
NewDialog.dialog({
|
559 |
modal: true,
|
@@ -592,7 +594,7 @@ class IDE
|
|
592 |
}
|
593 |
|
594 |
jQuery(document).ready(function($) {
|
595 |
-
//
|
596 |
|
597 |
$(document).trigger('aceide:prefiletree');
|
598 |
|
@@ -674,7 +676,7 @@ class IDE
|
|
674 |
<div id="submitdiv" class="postbox ">
|
675 |
<h3 class="hndle"><span>Files</span></h3>
|
676 |
<div class="inside">
|
677 |
-
|
678 |
<div class="submitbox" id="submitpost">
|
679 |
<div id="minor-publishing"></div>
|
680 |
<div id="major-publishing-actions">
|
@@ -726,59 +728,70 @@ class IDE
|
|
726 |
</form>
|
727 |
</div>
|
728 |
</div>
|
729 |
-
<?php
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
<
|
760 |
-
<
|
761 |
-
<
|
762 |
-
|
763 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
764 |
</div>
|
765 |
-
</form>
|
766 |
-
<?php if ( false ): ?>
|
767 |
-
<form id="find-func">
|
768 |
-
<label class="left"> <?php esc_html_e( 'Function' ); ?><input type="search" name="find" /></label>
|
769 |
<div class="right">
|
770 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
771 |
</div>
|
772 |
-
</
|
773 |
-
<?php endif; ?>
|
774 |
-
</div>
|
775 |
-
<div id="editor_goto_dialog" title="<?php esc_attr_e( 'Go to...' ); ?>" style="padding: 0px; display: none;"></div>
|
776 |
<?php
|
777 |
do_action('post_output_aceide_menu_page_html');
|
778 |
}
|
779 |
-
|
780 |
-
public function print_settings_dialog() {
|
781 |
-
// Do not check for a nonce, however check other permissions
|
782 |
-
self::check_perms( false );
|
783 |
-
}
|
784 |
}
|
77 |
return array (
|
78 |
array( 'admin_print_scripts-' . $this->menu_hook, array( &$this, 'add_admin_js' ) ),
|
79 |
array( 'admin_print_styles-' . $this->menu_hook, array( &$this, 'add_admin_styles' ) ),
|
|
|
|
|
80 |
array( 'wp_ajax_jqueryFileTree', array( &$this, 'jqueryFileTree_get_list' ) ),
|
81 |
|
82 |
array( 'wp_ajax_aceide_image_edit_key', array( &$this, 'image_edit_key' ) ),
|
145 |
$ver = $this->ace_version;
|
146 |
|
147 |
// include file tree
|
148 |
+
wp_enqueue_script( 'jquery-file-tree', plugins_url( 'js/jqueryFileTree.js', __FILE__ ), array( 'jquery' ) );
|
149 |
// include ace
|
150 |
wp_enqueue_script( 'ace', "{$plugin_path}js/ace-{$ver}/ace.js" );
|
151 |
// include ace modes for css, javascript & php
|
152 |
+
wp_enqueue_script( 'ace-mode-css', "{$plugin_path}js/ace-{$ver}/mode-css.js", array( 'ace' ) );
|
153 |
+
wp_enqueue_script( 'ace-mode-less', "{$plugin_path}js/ace-{$ver}/mode-less.js", array( 'ace' ) );
|
154 |
+
wp_enqueue_script( 'ace-mode-javascript', "{$plugin_path}js/ace-{$ver}/mode-javascript.js", array( 'ace' ) );
|
155 |
+
wp_enqueue_script( 'ace-mode-php', "{$plugin_path}js/ace-{$ver}/mode-php.js", array( 'ace' ) );
|
156 |
+
wp_enqueue_script( 'ace-mode-twig', "{$plugin_path}js/ace-{$ver}/mode-twig.js", array( 'ace' ) );
|
157 |
// include ace theme
|
158 |
+
wp_enqueue_script( 'ace-theme', "{$plugin_path}js/ace-{$ver}/theme-dawn.js", array( 'ace' ) ); // ambiance looks really nice for high contrast
|
159 |
// load emmet
|
160 |
+
wp_enqueue_script( 'aceide-ext-emmet', "{$plugin_path}js/ace-{$ver}/ext-emmet.js", array( 'ace' ) );
|
161 |
+
wp_enqueue_script( 'aceide-emmet', "{$plugin_path}js/emmet.js", array( 'aceide-ext-emmet' ) );
|
162 |
// wordpress-completion tags
|
163 |
+
wp_enqueue_script( 'aceide-wordpress-completion', "{$plugin_path}js/autocomplete/wordpress.js", array( 'ace' ) );
|
164 |
// php-completion tags
|
165 |
+
wp_enqueue_script( 'aceide-php-completion', "{$plugin_path}js/autocomplete/php.js", array( 'ace' ) );
|
166 |
// load editor
|
167 |
+
wp_enqueue_script( 'aceide-load-editor', "{$plugin_path}js/load-editor.js", array( 'ace', 'jquery', 'jquery-ui-core', 'jquery-ui-dialog' ) );
|
168 |
// load filetree menu
|
169 |
+
wp_enqueue_script( 'aceide-load-filetree-menu', "{$plugin_path}js/load-filetree-menu.js", array( 'ace', 'jquery' ) );
|
170 |
// load autocomplete dropdown
|
171 |
+
wp_enqueue_script( 'aceide-dd', "{$plugin_path}js/jquery.dd.js", array( 'ace', 'jquery' ) );
|
172 |
|
173 |
// load color picker
|
174 |
wp_enqueue_script( 'ImageColorPicker', plugins_url( 'js/ImageColorPicker.js', __FILE__ ), array( 'jquery', 'jquery-ui-core', 'jquery-ui-widget' ), '0.3' );
|
518 |
$app_url = str_replace( "http:", "https:", $app_url );
|
519 |
}
|
520 |
|
521 |
+
$url = trailingslashit( site_url() );
|
522 |
+
$root = apply_filters( "aceide_file_root_url", WP_CONTENT_URL );
|
523 |
+
$root = str_replace( ABSPATH, $url, $root );
|
524 |
+
|
525 |
do_action('pre_output_aceide_menu_page');
|
526 |
do_action('pre_output_aceide_menu_page_scripts');
|
527 |
?>
|
528 |
<script>
|
529 |
|
530 |
var aceide_app_path = "<?php echo plugin_dir_url( __FILE__ ); ?>";
|
531 |
+
// dont think this is needed any more.. var aceide_file_root_url = "<?php echo $root ?>";
|
532 |
var user_nonce_addition = '';
|
533 |
|
534 |
function the_filetree() {
|
555 |
if ("lets not" == "use the modal for now") {
|
556 |
|
557 |
var NewDialog = jQuery('<div id="MenuDialog">\
|
558 |
+
<iframe src="http://www.sumopaint.com/app/?key=ebcdaezjeojbfgih&target=<?php echo get_bloginfo( 'url' ); ?>?action=aceide_image_save&url=<?php echo $root; ?>' + file + '&title=Edit image&service=Save back to AceIDE" width="100%" height="600px"> </iframe>\
|
559 |
</div>');
|
560 |
NewDialog.dialog({
|
561 |
modal: true,
|
594 |
}
|
595 |
|
596 |
jQuery(document).ready(function($) {
|
597 |
+
// $("#fancyeditordiv").css("height", ($('body').height()-120) + 'px' );
|
598 |
|
599 |
$(document).trigger('aceide:prefiletree');
|
600 |
|
676 |
<div id="submitdiv" class="postbox ">
|
677 |
<h3 class="hndle"><span>Files</span></h3>
|
678 |
<div class="inside">
|
679 |
+
<ul id="drag_coverup" class="jqueryFileTree" style="position: absolute; background-color: white; z-index: -1;"></ul>
|
680 |
<div class="submitbox" id="submitpost">
|
681 |
<div id="minor-publishing"></div>
|
682 |
<div id="major-publishing-actions">
|
728 |
</form>
|
729 |
</div>
|
730 |
</div>
|
731 |
+
<div id="editor_find_dialog" title="<?php esc_attr_e( 'Find...' ); ?>" style="padding: 0px; display: none;">
|
732 |
+
<?php if ( false ): ?>
|
733 |
+
<ul>
|
734 |
+
<li><a href="#find-inline"><?php esc_html_e( 'Text' ); ?></a></li>
|
735 |
+
<li><a href="#find-func"><?php esc_html_e( 'Function' ); ?></a></li>
|
736 |
+
</ul>
|
737 |
+
<?php endif; ?>
|
738 |
+
<form id="find-inline" style="position: relative; padding: 4px; margin: 0px; height: 100%; overflow: hidden; width: 400px;">
|
739 |
+
<label class="left"> <?php esc_html_e( 'Find' ); ?><input type="search" name="find" /></label>
|
740 |
+
<label class="left"> <?php esc_html_e( 'Replace' ); ?><input type="search" name="replace" /></label>
|
741 |
+
<div class="clear" style="height: 33px;"></div>
|
742 |
+
|
743 |
+
<label><input type="checkbox" name="wrap" checked="checked" /> <?php esc_html_e( 'Wrap Around' ); ?></label>
|
744 |
+
<label><input type="checkbox" name="case" /> <?php esc_html_e( 'Case Sensitive' ); ?></label>
|
745 |
+
<label><input type="checkbox" name="whole" /> <?php esc_html_e( 'Match Whole Word' ); ?></label>
|
746 |
+
<label><input type="checkbox" name="regexp" /> <?php esc_html_e( 'Regular Expression' ); ?></label>
|
747 |
+
|
748 |
+
<div class="search_direction">
|
749 |
+
<?php esc_html_e( 'Direction:' ); ?>
|
750 |
+
<label><input type="radio" name="direction" value="0" /> <?php esc_html_e( 'Up' ); ?></label>
|
751 |
+
<label><input type="radio" name="direction" value="1" checked="checked" /> <?php esc_html_e( 'Down' ); ?></label>
|
752 |
+
</div>
|
753 |
+
<div class="right">
|
754 |
+
<input type="submit" name="submit" value="<?php esc_attr_e( 'Find' ); ?>" class="action_button" />
|
755 |
+
<input type="button" name="replace" value="<?php esc_attr_e( 'Replace' ); ?>" class="action_button" />
|
756 |
+
<input type="button" name="replace_all" value="<?php esc_attr_e( 'Replace All' ); ?>" class="action_button" />
|
757 |
+
<input type="button" name="cancel" value="<?php esc_attr_e( 'Cancel' ); ?>" class="action_button" />
|
758 |
+
</div>
|
759 |
+
</form>
|
760 |
+
<?php if ( false ): ?>
|
761 |
+
<form id="find-func">
|
762 |
+
<label class="left"> <?php esc_html_e( 'Function' ); ?><input type="search" name="find" /></label>
|
763 |
+
<div class="right">
|
764 |
+
<input type="submit" name="submit" value="<?php esc_attr_e( 'Find Function' ); ?>" class="action_button" />
|
765 |
+
</div>
|
766 |
+
</form>
|
767 |
+
<?php endif; ?>
|
768 |
+
</div>
|
769 |
+
<div id="editor_goto_dialog" title="<?php esc_attr_e( 'Go to...' ); ?>" style="padding: 0px; display: none;"></div>
|
770 |
+
<div id="editor_settings_dialog" style="padding: 10px 10px 5px; display: none;">
|
771 |
+
<div class="left">
|
772 |
+
<label><?php _e( 'Theme:' ); ?> <input type="text" id="editor_theme_setting" class="ipt-sel"></label>
|
773 |
+
<label><?php _e( 'Folding:' ); ?> <select id="editor_folding_setting" class="ipt-sel">
|
774 |
+
<option value="manual"><?php _e( 'Manual' ); ?></option>
|
775 |
+
<option value="markbegin" selected="selected"><?php _e( 'Beginning' ); ?></option>
|
776 |
+
<option value="markbeginend"><?php _e( 'Beginning And End' ); ?></option>
|
777 |
+
</select></label>
|
778 |
+
<label><?php _e( 'Font Size:' ); ?> <input type="number" id="editor_font_size_setting" class="number"></label>
|
779 |
+
<label><?php _e( 'Wrap Limit:' ); ?> <input type="number" id="editor_wrap_limit_setting" class="number"></label>
|
780 |
+
<label><?php _e( 'Wrap Long Text:' ); ?> <input type="checkbox" id="editor_wrap_setting"></label>
|
781 |
+
<label><?php _e( 'Fade Folders:' ); ?> <input type="checkbox" id="editor_fade_fold_setting"></label>
|
782 |
</div>
|
|
|
|
|
|
|
|
|
783 |
<div class="right">
|
784 |
+
<label><?php _e( 'Highlight Current Line:' ); ?> <input type="checkbox" id="editor_highlight_line_setting"></label>
|
785 |
+
<label><?php _e( 'Show Invisible Characters:' ); ?> <input type="checkbox" id="editor_show_invisibles"></label>
|
786 |
+
<label><?php _e( 'Show Indent Guidelines:' ); ?> <input type="checkbox" id="editor_display_indent_guides_setting"></label>
|
787 |
+
<label><?php _e( 'Animate Scrollbar:' ); ?> <input type="checkbox" id="editor_animate_scroll_setting"></label>
|
788 |
+
<label><?php _e( 'Show Gutter:' ); ?> <input type="checkbox" id="editor_show_gutter_setting"></label>
|
789 |
+
<label><?php _e( 'Use Tabs:' ); ?> <input type="checkbox" id="editor_use_tabs_setting"></label>
|
790 |
+
<label><?php _e( 'Highlight Same Words:' ); ?> <input type="checkbox" id="editor_word_highlight"></label>
|
791 |
+
<label><?php _e( 'Show Behaviours:' ); ?> <input type="checkbox" id="editor_behaviours_setting"></label>
|
792 |
</div>
|
793 |
+
</div>
|
|
|
|
|
|
|
794 |
<?php
|
795 |
do_action('post_output_aceide_menu_page_html');
|
796 |
}
|
|
|
|
|
|
|
|
|
|
|
797 |
}
|
src/Modules/GitOps.php
CHANGED
@@ -12,7 +12,7 @@ class GitOps implements Module
|
|
12 |
public function setup_hooks() {
|
13 |
return array (
|
14 |
array( 'post_output_aceide_menu_page_scripts', array( &$this, 'add_git_js' ) ),
|
15 |
-
array( '
|
16 |
array( 'wp_ajax_aceide_git_status', array( &$this, 'git_status' ) ),
|
17 |
array( 'wp_ajax_aceide_git_diff', array( &$this, 'git_diff' ) ),
|
18 |
array( 'wp_ajax_aceide_git_commit', array( &$this, 'git_commit' ) ),
|
@@ -34,7 +34,8 @@ class GitOps implements Module
|
|
34 |
$('#gitdiv').dialog({
|
35 |
autoOpen: false,
|
36 |
title: 'Git',
|
37 |
-
width: 800
|
|
|
38 |
});
|
39 |
});
|
40 |
|
12 |
public function setup_hooks() {
|
13 |
return array (
|
14 |
array( 'post_output_aceide_menu_page_scripts', array( &$this, 'add_git_js' ) ),
|
15 |
+
array( 'post_output_aceide_menu_page_html', array( &$this, 'add_git_html') ),
|
16 |
array( 'wp_ajax_aceide_git_status', array( &$this, 'git_status' ) ),
|
17 |
array( 'wp_ajax_aceide_git_diff', array( &$this, 'git_diff' ) ),
|
18 |
array( 'wp_ajax_aceide_git_commit', array( &$this, 'git_commit' ) ),
|
34 |
$('#gitdiv').dialog({
|
35 |
autoOpen: false,
|
36 |
title: 'Git',
|
37 |
+
width: 800,
|
38 |
+
appendTo: jQuery("#wpbody-content")
|
39 |
});
|
40 |
});
|
41 |
|
src/css/flick/jquery-ui-1.8.20.custom.css
CHANGED
@@ -432,11 +432,11 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
|
|
432 |
*
|
433 |
* http://docs.jquery.com/UI/Dialog#theming
|
434 |
*/
|
435 |
-
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
|
436 |
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
437 |
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
438 |
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
439 |
-
.ui-dialog .ui-dialog-titlebar-close span { display: block;
|
440 |
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
441 |
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
442 |
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
432 |
*
|
433 |
* http://docs.jquery.com/UI/Dialog#theming
|
434 |
*/
|
435 |
+
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; z-index: 1000; }
|
436 |
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
437 |
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
438 |
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
439 |
+
.ui-dialog .ui-dialog-titlebar-close span { display: block; }
|
440 |
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
441 |
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
442 |
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
src/js/load-editor.js
CHANGED
@@ -739,11 +739,13 @@ function load_editor_settings() {
|
|
739 |
editor.session.setUseSoftTabs( use_tabs == false ); // soft tab is space
|
740 |
editor.setHighlightActiveLine( highlight == true );
|
741 |
editor.renderer.setShowInvisibles( invisibles == true );
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
|
|
|
|
747 |
editor.renderer.setAnimatedScroll( anim_scroll == true );
|
748 |
editor.renderer.setShowGutter( show_gutter == true );
|
749 |
editor.setHighlightSelectedWord( word_hglt == true );
|
@@ -769,338 +771,84 @@ window.console && console.error( 'setDisplayIndentGuides not supported' );
|
|
769 |
|
770 |
function display_editor_settings() {
|
771 |
// Create HTML dialog
|
772 |
-
if (
|
773 |
// Ensure settings are loaded...
|
774 |
load_editor_settings();
|
775 |
|
776 |
-
// Create nodes
|
777 |
-
var theme = jQuery( '<input>' ).attr({
|
778 |
-
type: 'text',
|
779 |
-
id: 'editor_theme_setting',
|
780 |
-
class: 'ipt-sel'
|
781 |
-
});
|
782 |
-
|
783 |
-
var fontSize = jQuery( '<input>' ).attr({
|
784 |
-
type: 'number',
|
785 |
-
id: 'editor_font_size_setting',
|
786 |
-
class: 'number'
|
787 |
-
});
|
788 |
-
var fadeFold = jQuery( '<input>' ).attr({
|
789 |
-
type: 'checkbox',
|
790 |
-
id: 'editor_fade_fold_setting'
|
791 |
-
});
|
792 |
-
var wrap = jQuery( '<input>' ).attr({
|
793 |
-
type: 'checkbox',
|
794 |
-
id: 'editor_wrap_setting'
|
795 |
-
});
|
796 |
-
var wrap_limit = jQuery( '<input>' ).attr({
|
797 |
-
type: 'number',
|
798 |
-
id: 'editor_wrap_limit_setting',
|
799 |
-
class: 'number'
|
800 |
-
});
|
801 |
-
var hglt_ln = jQuery( '<input>' ).attr({
|
802 |
-
type: 'checkbox',
|
803 |
-
id: 'editor_highlight_line_setting'
|
804 |
-
});
|
805 |
-
var invisibles = jQuery( '<input>' ).attr({
|
806 |
-
type: 'checkbox',
|
807 |
-
id: 'editor_show_invisibles'
|
808 |
-
});
|
809 |
-
var indentguide = jQuery( '<input>' ).attr({
|
810 |
-
type: 'checkbox',
|
811 |
-
id: 'editor_display_indent_guides_setting'
|
812 |
-
});
|
813 |
-
var anim_scroll = jQuery( '<input>' ).attr({
|
814 |
-
type: 'checkbox',
|
815 |
-
id: 'editor_animate_scroll_setting'
|
816 |
-
});
|
817 |
-
var show_gutter = jQuery( '<input>' ).attr({
|
818 |
-
type: 'checkbox',
|
819 |
-
id: 'editor_show_gutter_setting'
|
820 |
-
});
|
821 |
-
var use_tabs = jQuery( '<input>' ).attr({
|
822 |
-
type: 'checkbox',
|
823 |
-
id: 'editor_use_tabs_setting'
|
824 |
-
});
|
825 |
-
var word_hglt = jQuery( '<input>' ).attr({
|
826 |
-
type: 'checkbox',
|
827 |
-
id: 'editor_word_highlight'
|
828 |
-
});
|
829 |
-
var behaviours = jQuery( '<input>' ).attr({
|
830 |
-
type: 'checkbox',
|
831 |
-
id: 'editor_behaviours_setting'
|
832 |
-
});
|
833 |
-
|
834 |
-
var folding = jQuery( '<select>' ).attr({
|
835 |
-
id: 'editor_folding_setting',
|
836 |
-
class: 'ipt-sel'
|
837 |
-
});
|
838 |
-
jQuery( '<option>' ).attr({
|
839 |
-
value: "manual",
|
840 |
-
selected: editor.session.$foldStyle == "manual"
|
841 |
-
}).text( 'Manual').appendTo( folding );
|
842 |
-
jQuery( '<option>' ).attr({
|
843 |
-
value: "markbegin",
|
844 |
-
selected: ( editor.session.$foldStyle != "manual" && editor.session.$foldStyle != "markbeginend" )
|
845 |
-
}).text( 'Beginning' ).appendTo( folding );
|
846 |
-
jQuery( '<option>' ).attr({
|
847 |
-
value: "markbeginend",
|
848 |
-
selected: editor.session.$foldStyle == "markbeginend"
|
849 |
-
}).text( 'Beginning And End' ).appendTo( folding );
|
850 |
-
|
851 |
-
|
852 |
// Add Listeners
|
853 |
-
jQuery(
|
854 |
-
localStorage.custom_editor_theme = jQuery(
|
855 |
-
});
|
856 |
-
jQuery( fontSize ).change(function() {
|
857 |
-
localStorage.custom_editor_fontSize = jQuery( this ).val();
|
858 |
});
|
859 |
-
jQuery(
|
860 |
-
localStorage.
|
861 |
});
|
862 |
-
jQuery(
|
863 |
-
localStorage.
|
864 |
-
});
|
865 |
-
jQuery( wrap_limit ).change(function() {
|
866 |
-
localStorage.custom_editor_wrap_limit = jQuery( this ).val();
|
867 |
});
|
868 |
-
jQuery(
|
869 |
-
localStorage.
|
870 |
});
|
871 |
-
jQuery(
|
872 |
-
localStorage.
|
873 |
});
|
874 |
-
jQuery(
|
875 |
-
localStorage.
|
876 |
});
|
877 |
-
jQuery(
|
878 |
-
localStorage.
|
879 |
});
|
880 |
-
jQuery(
|
881 |
-
localStorage.
|
882 |
});
|
883 |
-
jQuery(
|
884 |
-
localStorage.
|
885 |
});
|
886 |
-
jQuery(
|
887 |
-
localStorage.
|
888 |
});
|
889 |
-
jQuery(
|
890 |
-
localStorage.
|
891 |
});
|
892 |
-
jQuery(
|
893 |
-
localStorage.
|
894 |
});
|
895 |
-
|
896 |
-
|
897 |
-
var container = jQuery("<div>").attr({
|
898 |
-
id: "editor_settings_dialog",
|
899 |
-
title: "Editor Settings"
|
900 |
-
}).css( "display", "none" );
|
901 |
-
var left = jQuery( '<div>' ).attr({
|
902 |
-
class: "left"
|
903 |
});
|
904 |
-
|
905 |
-
|
906 |
});
|
907 |
-
|
908 |
-
jQuery( left )
|
909 |
-
.append(function() {
|
910 |
-
return jQuery( '<label>' ).text( "Theme: " ).append( theme );
|
911 |
-
}) // Theme
|
912 |
-
.append(function() {
|
913 |
-
return jQuery( '<label>' ).text( "Folding: ").append( folding );
|
914 |
-
})
|
915 |
-
.append(function() {
|
916 |
-
return jQuery( '<label>' ).text( "Font Size: " ).append( fontSize );
|
917 |
-
}) // Font Size
|
918 |
-
.append(function() {
|
919 |
-
return jQuery( '<label>' ).text( "Wrap Limit: " ).append( wrap_limit );
|
920 |
-
}) // Wrap Limit
|
921 |
-
.append(function() {
|
922 |
-
return jQuery( '<label>' ).text( "Wrap Long Text: " ).append( wrap );
|
923 |
-
}) // Wrap
|
924 |
-
.append(function() {
|
925 |
-
return jQuery( '<label>' ).text( "Fade Folders: " ).append( fadeFold );
|
926 |
-
}); // Fade
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
jQuery( right )
|
931 |
-
.append(function() {
|
932 |
-
return jQuery( '<label>' ).text( "Highlight Current Line: " ).append( hglt_ln );
|
933 |
-
}) // Highlight Current Line
|
934 |
-
.append(function() {
|
935 |
-
return jQuery( '<label>' ).text( "Show Invisible Characters: " ).append( invisibles );
|
936 |
-
}) // Invisible
|
937 |
-
.append(function() {
|
938 |
-
return jQuery( '<label>' ).text( "Show Indent Guidelines: " ).append( indentguide );
|
939 |
-
}) // Indent Guides
|
940 |
-
.append(function() {
|
941 |
-
return jQuery( '<label>' ).text( "Animate Scrollbar: ").append( anim_scroll );
|
942 |
-
}) // Animate Scrollbars
|
943 |
-
.append(function() {
|
944 |
-
return jQuery( '<label>' ).text( "Show Gutter: " ).append( show_gutter );
|
945 |
-
}) // Gutter
|
946 |
-
.append(function() {
|
947 |
-
return jQuery( '<label>' ).text( "Use Tabs: " ).append( use_tabs );
|
948 |
-
}) // Use tabs
|
949 |
-
.append(function() {
|
950 |
-
return jQuery( '<label>' ).text( "Highlight Same Words: " ).append( word_hglt );
|
951 |
-
}) // Word Highlight
|
952 |
-
.append(function() {
|
953 |
-
return jQuery( '<label>' ).text( "Show Behaviours: " ).append( behaviours );
|
954 |
-
}); // Behaviours
|
955 |
-
|
956 |
-
jQuery( container ).append( left ).append( right );
|
957 |
-
|
958 |
-
jQuery( document.body ).append( container );
|
959 |
}
|
960 |
|
961 |
// Update values
|
962 |
-
jQuery(
|
963 |
-
jQuery(
|
964 |
-
jQuery(
|
965 |
-
jQuery(
|
966 |
-
jQuery(
|
967 |
-
jQuery(
|
968 |
-
jQuery(
|
969 |
-
jQuery(
|
970 |
-
jQuery(
|
971 |
-
jQuery(
|
972 |
-
jQuery(
|
973 |
-
jQuery(
|
974 |
-
jQuery(
|
975 |
-
jQuery(
|
976 |
-
jQuery(
|
977 |
|
978 |
// Display Dialog
|
979 |
-
jQuery(
|
980 |
-
height: "264",
|
981 |
width: "550",
|
982 |
modal: true,
|
983 |
resizable: false,
|
984 |
show: "fade",
|
985 |
-
close: load_editor_settings
|
986 |
-
|
|
|
987 |
}
|
988 |
|
989 |
function display_find_dialog() {
|
990 |
-
/*
|
991 |
-
if ( !jQuery( "#editor_find_dialog" ).length ) {
|
992 |
-
// Generate dialog
|
993 |
-
var container = jQuery( '<div>' ).attr({
|
994 |
-
id: "editor_find_dialog",
|
995 |
-
title: "Find..."
|
996 |
-
}).css( "padding", "0px" );
|
997 |
-
|
998 |
-
var find_ipt = jQuery( '<input>' ).attr({
|
999 |
-
type: "search",
|
1000 |
-
name: "find"
|
1001 |
-
});
|
1002 |
-
var replace_ipt = jQuery( '<input>' ).attr({
|
1003 |
-
type: "search",
|
1004 |
-
name: "replace"
|
1005 |
-
});
|
1006 |
-
var find_btn = jQuery( '<input>' ).attr({
|
1007 |
-
type: "submit",
|
1008 |
-
name: "submit",
|
1009 |
-
value: "Find",
|
1010 |
-
class: "action_button"
|
1011 |
-
});
|
1012 |
-
var replace_btn = jQuery( '<input>' ).attr({
|
1013 |
-
type: "button",
|
1014 |
-
name: "replace",
|
1015 |
-
value: "Replace",
|
1016 |
-
class: "action_button"
|
1017 |
-
});
|
1018 |
-
var rep_all_btn = jQuery( '<input>' ).attr({
|
1019 |
-
type: "button",
|
1020 |
-
name: "replace_all",
|
1021 |
-
value: "Replace All",
|
1022 |
-
class: "action_button"
|
1023 |
-
});
|
1024 |
-
var cancel_btn = jQuery( '<input>' ).attr({
|
1025 |
-
type: "button",
|
1026 |
-
name: "cancel",
|
1027 |
-
value: "Cancel",
|
1028 |
-
class: "action_button"
|
1029 |
-
});
|
1030 |
-
var wrap = jQuery( '<input>' ).attr({
|
1031 |
-
type: "checkbox",
|
1032 |
-
name: "wrap",
|
1033 |
-
}).prop( "checked", true );
|
1034 |
-
var sensitive = jQuery( '<input>' ).attr({
|
1035 |
-
type: "checkbox",
|
1036 |
-
name: "case"
|
1037 |
-
}).prop( "checked", false );
|
1038 |
-
var whole = jQuery( '<input>' ).attr({
|
1039 |
-
type: "checkbox",
|
1040 |
-
name: "whole"
|
1041 |
-
}).prop( "checked", false );
|
1042 |
-
var regEx = jQuery( '<input>' ).attr({
|
1043 |
-
type: "checkbox",
|
1044 |
-
name: "regexp"
|
1045 |
-
}).prop( "checked", false );
|
1046 |
-
|
1047 |
-
var fromTop = jQuery( '<input>' ).attr({
|
1048 |
-
type: "radio",
|
1049 |
-
name: "direction",
|
1050 |
-
value: "0"
|
1051 |
-
}).prop( "checked", false );
|
1052 |
-
var fromBottom = jQuery( '<input>' ).attr({
|
1053 |
-
type: "radio",
|
1054 |
-
name: "direction",
|
1055 |
-
value: "1"
|
1056 |
-
}).prop( "checked", true );
|
1057 |
-
|
1058 |
-
|
1059 |
-
var buttons = jQuery( '<div>' )
|
1060 |
-
.attr( "class", "right" )
|
1061 |
-
.append( find_btn )
|
1062 |
-
.append( replace_btn )
|
1063 |
-
.append( rep_all_btn )
|
1064 |
-
.append( cancel_btn );
|
1065 |
-
var find_label = jQuery( '<label>' ).attr( "class", "left" ).text( " Find" ).append( find_ipt );
|
1066 |
-
var replace_label = jQuery( '<label>' ).attr( "class", "left" ).text( " Replace" ).append( replace_ipt );
|
1067 |
-
var wrap_label = jQuery( '<label>' ).text( " Wrap Around" ).prepend( wrap );
|
1068 |
-
var sensitive_label = jQuery( '<label>' ).text( " Case Sensitive" ).prepend( sensitive );
|
1069 |
-
var whole_label = jQuery( '<label>' ).text( " Match Whole Word" ).prepend( whole );
|
1070 |
-
var regex_label = jQuery( '<label>' ).text( " Regular Expression" ).prepend( regEx );
|
1071 |
-
|
1072 |
-
var fromTopLabel = jQuery( '<label>' ).text( " Up" ).prepend( fromTop );
|
1073 |
-
var fromBottomLabel = jQuery( '<label>' ).text( " Down" ).prepend( fromBottom );
|
1074 |
-
|
1075 |
-
var direction = jQuery( '<div>' ).attr( "class", "search_direction" ).text( "Direction:" ).append( fromTopLabel ).append( fromBottomLabel );
|
1076 |
-
var clear = jQuery( '<div>' ).attr( 'class', 'clear' ).height( 20 );
|
1077 |
-
|
1078 |
-
|
1079 |
-
var innerContainer = jQuery( '<form>' ).css({
|
1080 |
-
position: "relative",
|
1081 |
-
padding: "4px",
|
1082 |
-
margin: "0px",
|
1083 |
-
height: "100%",
|
1084 |
-
overflow: "hidden",
|
1085 |
-
width: "400px"
|
1086 |
-
})
|
1087 |
-
.append( find_label )
|
1088 |
-
.append( replace_label )
|
1089 |
-
.append( clear )
|
1090 |
-
.append( wrap_label )
|
1091 |
-
.append( sensitive_label )
|
1092 |
-
.append( whole_label )
|
1093 |
-
.append( regex_label )
|
1094 |
-
.append( direction )
|
1095 |
-
.append( buttons )
|
1096 |
-
|
1097 |
-
|
1098 |
-
container.append( innerContainer );
|
1099 |
-
|
1100 |
-
jQuery( document.body ).append( container );
|
1101 |
-
}
|
1102 |
-
*/
|
1103 |
-
|
1104 |
// Initiate the search box with the current selection
|
1105 |
if ( !editor.session.selection.$isEmpty )
|
1106 |
var value = editor.session.doc.getTextRange( editor.session.selection.getRange() );
|
@@ -1114,8 +862,9 @@ function display_find_dialog() {
|
|
1114 |
width: "408",
|
1115 |
resizable: false,
|
1116 |
show: "fade",
|
1117 |
-
hide: "fade"
|
1118 |
-
|
|
|
1119 |
|
1120 |
}
|
1121 |
|
739 |
editor.session.setUseSoftTabs( use_tabs == false ); // soft tab is space
|
740 |
editor.setHighlightActiveLine( highlight == true );
|
741 |
editor.renderer.setShowInvisibles( invisibles == true );
|
742 |
+
|
743 |
+
try {
|
744 |
+
editor.renderer.setDisplayIndentGuides( indents == true );
|
745 |
+
} catch(error) {
|
746 |
+
window.console && console.error( 'setDisplayIndentGuides not supported' );
|
747 |
+
}
|
748 |
+
|
749 |
editor.renderer.setAnimatedScroll( anim_scroll == true );
|
750 |
editor.renderer.setShowGutter( show_gutter == true );
|
751 |
editor.setHighlightSelectedWord( word_hglt == true );
|
771 |
|
772 |
function display_editor_settings() {
|
773 |
// Create HTML dialog
|
774 |
+
if (!jQuery(".ui-dialog #editor_settings_dialog").length) {
|
775 |
// Ensure settings are loaded...
|
776 |
load_editor_settings();
|
777 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
778 |
// Add Listeners
|
779 |
+
jQuery("#editor_theme_setting").blur(function() {
|
780 |
+
localStorage.custom_editor_theme = jQuery(this).val();
|
|
|
|
|
|
|
781 |
});
|
782 |
+
jQuery("#editor_folding_setting").change(function() {
|
783 |
+
localStorage.custom_editor_folding = jQuery(this).val();
|
784 |
});
|
785 |
+
jQuery("#editor_font_size_setting").change(function() {
|
786 |
+
localStorage.custom_editor_fontSize = jQuery( this ).val();
|
|
|
|
|
|
|
787 |
});
|
788 |
+
jQuery("#editor_fade_fold_setting").change(function() {
|
789 |
+
localStorage.custom_editor_fade_folding = (jQuery(this).is(":checked") ? 1 : 0);
|
790 |
});
|
791 |
+
jQuery("#editor_wrap_setting").change(function() {
|
792 |
+
localStorage.custom_editor_wrap = (jQuery(this).is(":checked") ? 1 : 0);
|
793 |
});
|
794 |
+
jQuery("#editor_wrap_limit_setting").change(function() {
|
795 |
+
localStorage.custom_editor_wrap_limit = jQuery(this).val();
|
796 |
});
|
797 |
+
jQuery("#editor_highlight_line_setting").change(function() {
|
798 |
+
localStorage.custom_editor_highlight_current_line = (jQuery(this).is(":checked") ? 1 : 0);
|
799 |
});
|
800 |
+
jQuery("#editor_show_invisibles").change(function() {
|
801 |
+
localStorage.custom_editor_invisibles = (jQuery(this).is(":checked") ? 1 : 0);
|
802 |
});
|
803 |
+
jQuery("#editor_display_indent_guides_setting").change(function() {
|
804 |
+
localStorage.custom_editor_indent_guides = (jQuery(this).is(":checked") ? 1 : 0);
|
805 |
});
|
806 |
+
jQuery("#editor_animate_scroll_setting").change(function() {
|
807 |
+
localStorage.custom_editor_animate_scrolling = (jQuery(this).is(":checked") ? 1 : 0);
|
808 |
});
|
809 |
+
jQuery("#editor_show_gutter_setting").change(function() {
|
810 |
+
localStorage.custom_editor_show_gutter = (jQuery(this).is(":checked") ? 1 : 0);
|
811 |
});
|
812 |
+
jQuery("#editor_use_tabs_setting").change(function() {
|
813 |
+
localStorage.custom_editor_use_tabs = (jQuery(this).is(":checked") ? 1 : 0);
|
814 |
});
|
815 |
+
jQuery("#editor_word_highlight").change(function() {
|
816 |
+
localStorage.custom_editor_highlight_selected_word = (jQuery(this).is(":checked") ? 1 : 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
817 |
});
|
818 |
+
jQuery("#editor_behaviours_setting").change(function() {
|
819 |
+
localStorage.custom_editor_behaviours = (jQuery(this).is(":checked") ? 1 : 0);
|
820 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
821 |
}
|
822 |
|
823 |
// Update values
|
824 |
+
jQuery('#editor_theme_setting').val(editor.getTheme());
|
825 |
+
jQuery('#editor_font_size_setting').val(editor.container.style.fontSize.replace('px','') || 12);
|
826 |
+
jQuery('#editor_fade_fold_setting').prop('checked', editor.getFadeFoldWidgets());
|
827 |
+
jQuery('#editor_wrap_setting').prop('checked', editor.session.getUseWrapMode());
|
828 |
+
jQuery('#editor_wrap_limit_setting').prop('checked', editor.session.getWrapLimit() || 0);
|
829 |
+
jQuery('#editor_highlight_line_setting').prop('checked', editor.getHighlightActiveLine());
|
830 |
+
jQuery('#editor_show_invisibles').prop('checked', editor.renderer.getShowInvisibles());
|
831 |
+
jQuery('#editor_display_indent_guides_setting').prop('checked', editor.renderer.getDisplayIndentGuides());
|
832 |
+
jQuery('#editor_animate_scroll_setting').prop('checked', editor.getAnimatedScroll());
|
833 |
+
jQuery('#editor_show_gutter_setting').prop('checked', editor.renderer.getShowGutter());
|
834 |
+
jQuery('#editor_use_tabs_setting').prop('checked', !editor.session.getUseSoftTabs());
|
835 |
+
jQuery('#editor_word_highlight').prop('checked', editor.getHighlightSelectedWord());
|
836 |
+
jQuery('#editor_behaviours_setting').prop('checked', editor.getBehavioursEnabled());
|
837 |
+
jQuery('#editor_folding_setting option').prop('selected', false);
|
838 |
+
jQuery('#editor_folding_setting option[value="' + editor.session.$foldStyle + '"]').prop('selected', true);
|
839 |
|
840 |
// Display Dialog
|
841 |
+
jQuery("#editor_settings_dialog").dialog({
|
|
|
842 |
width: "550",
|
843 |
modal: true,
|
844 |
resizable: false,
|
845 |
show: "fade",
|
846 |
+
close: load_editor_settings,
|
847 |
+
appendTo: jQuery("#wpbody-content")
|
848 |
+
}).dialog("moveToTop");
|
849 |
}
|
850 |
|
851 |
function display_find_dialog() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
852 |
// Initiate the search box with the current selection
|
853 |
if ( !editor.session.selection.$isEmpty )
|
854 |
var value = editor.session.doc.getTextRange( editor.session.selection.getRange() );
|
862 |
width: "408",
|
863 |
resizable: false,
|
864 |
show: "fade",
|
865 |
+
hide: "fade",
|
866 |
+
appendTo: jQuery("#wpbody-content")
|
867 |
+
}).dialog("moveToTop");
|
868 |
|
869 |
}
|
870 |
|
vendor/composer/LICENSE
CHANGED
@@ -1,21 +1,433 @@
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
-
|
|
|
|
|
|
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8 |
-
copies of the Software, and to permit persons to whom the Software is furnished
|
9 |
-
to do so, subject to the following conditions:
|
10 |
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
2 |
+
Upstream-Name: Composer
|
3 |
+
Upstream-Contact: Jordi Boggiano <j.boggiano@seld.be>
|
4 |
+
Source: https://github.com/composer/composer
|
5 |
|
6 |
+
Files: *
|
7 |
+
Copyright: 2016, Nils Adermann <naderman@naderman.de>
|
8 |
+
2016, Jordi Boggiano <j.boggiano@seld.be>
|
9 |
+
License: Expat
|
10 |
|
11 |
+
Files: res/cacert.pem
|
12 |
+
Copyright: 2015, Mozilla Foundation
|
13 |
+
License: MPL-2.0
|
|
|
|
|
|
|
14 |
|
15 |
+
Files: src/Composer/Util/RemoteFilesystem.php
|
16 |
+
src/Composer/Util/TlsHelper.php
|
17 |
+
Copyright: 2016, Nils Adermann <naderman@naderman.de>
|
18 |
+
2016, Jordi Boggiano <j.boggiano@seld.be>
|
19 |
+
2013, Evan Coury <me@evancoury.com>
|
20 |
+
License: Expat and BSD-2-Clause
|
21 |
|
22 |
+
License: BSD-2-Clause
|
23 |
+
Redistribution and use in source and binary forms, with or without modification,
|
24 |
+
are permitted provided that the following conditions are met:
|
25 |
+
.
|
26 |
+
* Redistributions of source code must retain the above copyright notice,
|
27 |
+
this list of conditions and the following disclaimer.
|
28 |
+
.
|
29 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
30 |
+
this list of conditions and the following disclaimer in the documentation
|
31 |
+
and/or other materials provided with the distribution.
|
32 |
+
.
|
33 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
34 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
35 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
36 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
37 |
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
38 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
39 |
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
40 |
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
41 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
42 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
43 |
|
44 |
+
License: Expat
|
45 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
46 |
+
of this software and associated documentation files (the "Software"), to deal
|
47 |
+
in the Software without restriction, including without limitation the rights
|
48 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
49 |
+
copies of the Software, and to permit persons to whom the Software is furnished
|
50 |
+
to do so, subject to the following conditions:
|
51 |
+
.
|
52 |
+
The above copyright notice and this permission notice shall be included in all
|
53 |
+
copies or substantial portions of the Software.
|
54 |
+
.
|
55 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
56 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
57 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
58 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
59 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
60 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
61 |
+
THE SOFTWARE.
|
62 |
+
|
63 |
+
License: MPL-2.0
|
64 |
+
1. Definitions
|
65 |
+
--------------
|
66 |
+
.
|
67 |
+
1.1. "Contributor"
|
68 |
+
means each individual or legal entity that creates, contributes to
|
69 |
+
the creation of, or owns Covered Software.
|
70 |
+
.
|
71 |
+
1.2. "Contributor Version"
|
72 |
+
means the combination of the Contributions of others (if any) used
|
73 |
+
by a Contributor and that particular Contributor's Contribution.
|
74 |
+
.
|
75 |
+
1.3. "Contribution"
|
76 |
+
means Covered Software of a particular Contributor.
|
77 |
+
.
|
78 |
+
1.4. "Covered Software"
|
79 |
+
means Source Code Form to which the initial Contributor has attached
|
80 |
+
the notice in Exhibit A, the Executable Form of such Source Code
|
81 |
+
Form, and Modifications of such Source Code Form, in each case
|
82 |
+
including portions thereof.
|
83 |
+
.
|
84 |
+
1.5. "Incompatible With Secondary Licenses"
|
85 |
+
means
|
86 |
+
.
|
87 |
+
(a) that the initial Contributor has attached the notice described
|
88 |
+
in Exhibit B to the Covered Software; or
|
89 |
+
.
|
90 |
+
(b) that the Covered Software was made available under the terms of
|
91 |
+
version 1.1 or earlier of the License, but not also under the
|
92 |
+
terms of a Secondary License.
|
93 |
+
.
|
94 |
+
1.6. "Executable Form"
|
95 |
+
means any form of the work other than Source Code Form.
|
96 |
+
.
|
97 |
+
1.7. "Larger Work"
|
98 |
+
means a work that combines Covered Software with other material, in
|
99 |
+
a separate file or files, that is not Covered Software.
|
100 |
+
.
|
101 |
+
1.8. "License"
|
102 |
+
means this document.
|
103 |
+
.
|
104 |
+
1.9. "Licensable"
|
105 |
+
means having the right to grant, to the maximum extent possible,
|
106 |
+
whether at the time of the initial grant or subsequently, any and
|
107 |
+
all of the rights conveyed by this License.
|
108 |
+
.
|
109 |
+
1.10. "Modifications"
|
110 |
+
means any of the following:
|
111 |
+
.
|
112 |
+
(a) any file in Source Code Form that results from an addition to,
|
113 |
+
deletion from, or modification of the contents of Covered
|
114 |
+
Software; or
|
115 |
+
.
|
116 |
+
(b) any new file in Source Code Form that contains any Covered
|
117 |
+
Software.
|
118 |
+
.
|
119 |
+
1.11. "Patent Claims" of a Contributor
|
120 |
+
means any patent claim(s), including without limitation, method,
|
121 |
+
process, and apparatus claims, in any patent Licensable by such
|
122 |
+
Contributor that would be infringed, but for the grant of the
|
123 |
+
License, by the making, using, selling, offering for sale, having
|
124 |
+
made, import, or transfer of either its Contributions or its
|
125 |
+
Contributor Version.
|
126 |
+
.
|
127 |
+
1.12. "Secondary License"
|
128 |
+
means either the GNU General Public License, Version 2.0, the GNU
|
129 |
+
Lesser General Public License, Version 2.1, the GNU Affero General
|
130 |
+
Public License, Version 3.0, or any later versions of those
|
131 |
+
licenses.
|
132 |
+
.
|
133 |
+
1.13. "Source Code Form"
|
134 |
+
means the form of the work preferred for making modifications.
|
135 |
+
.
|
136 |
+
1.14. "You" (or "Your")
|
137 |
+
means an individual or a legal entity exercising rights under this
|
138 |
+
License. For legal entities, "You" includes any entity that
|
139 |
+
controls, is controlled by, or is under common control with You. For
|
140 |
+
purposes of this definition, "control" means (a) the power, direct
|
141 |
+
or indirect, to cause the direction or management of such entity,
|
142 |
+
whether by contract or otherwise, or (b) ownership of more than
|
143 |
+
fifty percent (50%) of the outstanding shares or beneficial
|
144 |
+
ownership of such entity.
|
145 |
+
.
|
146 |
+
2. License Grants and Conditions
|
147 |
+
--------------------------------
|
148 |
+
.
|
149 |
+
2.1. Grants
|
150 |
+
.
|
151 |
+
Each Contributor hereby grants You a world-wide, royalty-free,
|
152 |
+
non-exclusive license:
|
153 |
+
.
|
154 |
+
(a) under intellectual property rights (other than patent or trademark)
|
155 |
+
Licensable by such Contributor to use, reproduce, make available,
|
156 |
+
modify, display, perform, distribute, and otherwise exploit its
|
157 |
+
Contributions, either on an unmodified basis, with Modifications, or
|
158 |
+
as part of a Larger Work; and
|
159 |
+
.
|
160 |
+
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
161 |
+
for sale, have made, import, and otherwise transfer either its
|
162 |
+
Contributions or its Contributor Version.
|
163 |
+
.
|
164 |
+
2.2. Effective Date
|
165 |
+
.
|
166 |
+
The licenses granted in Section 2.1 with respect to any Contribution
|
167 |
+
become effective for each Contribution on the date the Contributor first
|
168 |
+
distributes such Contribution.
|
169 |
+
.
|
170 |
+
2.3. Limitations on Grant Scope
|
171 |
+
.
|
172 |
+
The licenses granted in this Section 2 are the only rights granted under
|
173 |
+
this License. No additional rights or licenses will be implied from the
|
174 |
+
distribution or licensing of Covered Software under this License.
|
175 |
+
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
176 |
+
Contributor:
|
177 |
+
.
|
178 |
+
(a) for any code that a Contributor has removed from Covered Software;
|
179 |
+
or
|
180 |
+
.
|
181 |
+
(b) for infringements caused by: (i) Your and any other third party's
|
182 |
+
modifications of Covered Software, or (ii) the combination of its
|
183 |
+
Contributions with other software (except as part of its Contributor
|
184 |
+
Version); or
|
185 |
+
.
|
186 |
+
(c) under Patent Claims infringed by Covered Software in the absence of
|
187 |
+
its Contributions.
|
188 |
+
.
|
189 |
+
This License does not grant any rights in the trademarks, service marks,
|
190 |
+
or logos of any Contributor (except as may be necessary to comply with
|
191 |
+
the notice requirements in Section 3.4).
|
192 |
+
.
|
193 |
+
2.4. Subsequent Licenses
|
194 |
+
.
|
195 |
+
No Contributor makes additional grants as a result of Your choice to
|
196 |
+
distribute the Covered Software under a subsequent version of this
|
197 |
+
License (see Section 10.2) or under the terms of a Secondary License (if
|
198 |
+
permitted under the terms of Section 3.3).
|
199 |
+
.
|
200 |
+
2.5. Representation
|
201 |
+
.
|
202 |
+
Each Contributor represents that the Contributor believes its
|
203 |
+
Contributions are its original creation(s) or it has sufficient rights
|
204 |
+
to grant the rights to its Contributions conveyed by this License.
|
205 |
+
.
|
206 |
+
2.6. Fair Use
|
207 |
+
.
|
208 |
+
This License is not intended to limit any rights You have under
|
209 |
+
applicable copyright doctrines of fair use, fair dealing, or other
|
210 |
+
equivalents.
|
211 |
+
.
|
212 |
+
2.7. Conditions
|
213 |
+
.
|
214 |
+
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
215 |
+
in Section 2.1.
|
216 |
+
.
|
217 |
+
3. Responsibilities
|
218 |
+
-------------------
|
219 |
+
.
|
220 |
+
3.1. Distribution of Source Form
|
221 |
+
.
|
222 |
+
All distribution of Covered Software in Source Code Form, including any
|
223 |
+
Modifications that You create or to which You contribute, must be under
|
224 |
+
the terms of this License. You must inform recipients that the Source
|
225 |
+
Code Form of the Covered Software is governed by the terms of this
|
226 |
+
License, and how they can obtain a copy of this License. You may not
|
227 |
+
attempt to alter or restrict the recipients' rights in the Source Code
|
228 |
+
Form.
|
229 |
+
.
|
230 |
+
3.2. Distribution of Executable Form
|
231 |
+
.
|
232 |
+
If You distribute Covered Software in Executable Form then:
|
233 |
+
.
|
234 |
+
(a) such Covered Software must also be made available in Source Code
|
235 |
+
Form, as described in Section 3.1, and You must inform recipients of
|
236 |
+
the Executable Form how they can obtain a copy of such Source Code
|
237 |
+
Form by reasonable means in a timely manner, at a charge no more
|
238 |
+
than the cost of distribution to the recipient; and
|
239 |
+
.
|
240 |
+
(b) You may distribute such Executable Form under the terms of this
|
241 |
+
License, or sublicense it under different terms, provided that the
|
242 |
+
license for the Executable Form does not attempt to limit or alter
|
243 |
+
the recipients' rights in the Source Code Form under this License.
|
244 |
+
.
|
245 |
+
3.3. Distribution of a Larger Work
|
246 |
+
.
|
247 |
+
You may create and distribute a Larger Work under terms of Your choice,
|
248 |
+
provided that You also comply with the requirements of this License for
|
249 |
+
the Covered Software. If the Larger Work is a combination of Covered
|
250 |
+
Software with a work governed by one or more Secondary Licenses, and the
|
251 |
+
Covered Software is not Incompatible With Secondary Licenses, this
|
252 |
+
License permits You to additionally distribute such Covered Software
|
253 |
+
under the terms of such Secondary License(s), so that the recipient of
|
254 |
+
the Larger Work may, at their option, further distribute the Covered
|
255 |
+
Software under the terms of either this License or such Secondary
|
256 |
+
License(s).
|
257 |
+
.
|
258 |
+
3.4. Notices
|
259 |
+
.
|
260 |
+
You may not remove or alter the substance of any license notices
|
261 |
+
(including copyright notices, patent notices, disclaimers of warranty,
|
262 |
+
or limitations of liability) contained within the Source Code Form of
|
263 |
+
the Covered Software, except that You may alter any license notices to
|
264 |
+
the extent required to remedy known factual inaccuracies.
|
265 |
+
.
|
266 |
+
3.5. Application of Additional Terms
|
267 |
+
.
|
268 |
+
You may choose to offer, and to charge a fee for, warranty, support,
|
269 |
+
indemnity or liability obligations to one or more recipients of Covered
|
270 |
+
Software. However, You may do so only on Your own behalf, and not on
|
271 |
+
behalf of any Contributor. You must make it absolutely clear that any
|
272 |
+
such warranty, support, indemnity, or liability obligation is offered by
|
273 |
+
You alone, and You hereby agree to indemnify every Contributor for any
|
274 |
+
liability incurred by such Contributor as a result of warranty, support,
|
275 |
+
indemnity or liability terms You offer. You may include additional
|
276 |
+
disclaimers of warranty and limitations of liability specific to any
|
277 |
+
jurisdiction.
|
278 |
+
.
|
279 |
+
4. Inability to Comply Due to Statute or Regulation
|
280 |
+
---------------------------------------------------
|
281 |
+
.
|
282 |
+
If it is impossible for You to comply with any of the terms of this
|
283 |
+
License with respect to some or all of the Covered Software due to
|
284 |
+
statute, judicial order, or regulation then You must: (a) comply with
|
285 |
+
the terms of this License to the maximum extent possible; and (b)
|
286 |
+
describe the limitations and the code they affect. Such description must
|
287 |
+
be placed in a text file included with all distributions of the Covered
|
288 |
+
Software under this License. Except to the extent prohibited by statute
|
289 |
+
or regulation, such description must be sufficiently detailed for a
|
290 |
+
recipient of ordinary skill to be able to understand it.
|
291 |
+
.
|
292 |
+
5. Termination
|
293 |
+
--------------
|
294 |
+
.
|
295 |
+
5.1. The rights granted under this License will terminate automatically
|
296 |
+
if You fail to comply with any of its terms. However, if You become
|
297 |
+
compliant, then the rights granted under this License from a particular
|
298 |
+
Contributor are reinstated (a) provisionally, unless and until such
|
299 |
+
Contributor explicitly and finally terminates Your grants, and (b) on an
|
300 |
+
ongoing basis, if such Contributor fails to notify You of the
|
301 |
+
non-compliance by some reasonable means prior to 60 days after You have
|
302 |
+
come back into compliance. Moreover, Your grants from a particular
|
303 |
+
Contributor are reinstated on an ongoing basis if such Contributor
|
304 |
+
notifies You of the non-compliance by some reasonable means, this is the
|
305 |
+
first time You have received notice of non-compliance with this License
|
306 |
+
from such Contributor, and You become compliant prior to 30 days after
|
307 |
+
Your receipt of the notice.
|
308 |
+
.
|
309 |
+
5.2. If You initiate litigation against any entity by asserting a patent
|
310 |
+
infringement claim (excluding declaratory judgment actions,
|
311 |
+
counter-claims, and cross-claims) alleging that a Contributor Version
|
312 |
+
directly or indirectly infringes any patent, then the rights granted to
|
313 |
+
You by any and all Contributors for the Covered Software under Section
|
314 |
+
2.1 of this License shall terminate.
|
315 |
+
.
|
316 |
+
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
317 |
+
end user license agreements (excluding distributors and resellers) which
|
318 |
+
have been validly granted by You or Your distributors under this License
|
319 |
+
prior to termination shall survive termination.
|
320 |
+
.
|
321 |
+
************************************************************************
|
322 |
+
* *
|
323 |
+
* 6. Disclaimer of Warranty *
|
324 |
+
* ------------------------- *
|
325 |
+
* *
|
326 |
+
* Covered Software is provided under this License on an "as is" *
|
327 |
+
* basis, without warranty of any kind, either expressed, implied, or *
|
328 |
+
* statutory, including, without limitation, warranties that the *
|
329 |
+
* Covered Software is free of defects, merchantable, fit for a *
|
330 |
+
* particular purpose or non-infringing. The entire risk as to the *
|
331 |
+
* quality and performance of the Covered Software is with You. *
|
332 |
+
* Should any Covered Software prove defective in any respect, You *
|
333 |
+
* (not any Contributor) assume the cost of any necessary servicing, *
|
334 |
+
* repair, or correction. This disclaimer of warranty constitutes an *
|
335 |
+
* essential part of this License. No use of any Covered Software is *
|
336 |
+
* authorized under this License except under this disclaimer. *
|
337 |
+
* *
|
338 |
+
************************************************************************
|
339 |
+
.
|
340 |
+
************************************************************************
|
341 |
+
* *
|
342 |
+
* 7. Limitation of Liability *
|
343 |
+
* -------------------------- *
|
344 |
+
* *
|
345 |
+
* Under no circumstances and under no legal theory, whether tort *
|
346 |
+
* (including negligence), contract, or otherwise, shall any *
|
347 |
+
* Contributor, or anyone who distributes Covered Software as *
|
348 |
+
* permitted above, be liable to You for any direct, indirect, *
|
349 |
+
* special, incidental, or consequential damages of any character *
|
350 |
+
* including, without limitation, damages for lost profits, loss of *
|
351 |
+
* goodwill, work stoppage, computer failure or malfunction, or any *
|
352 |
+
* and all other commercial damages or losses, even if such party *
|
353 |
+
* shall have been informed of the possibility of such damages. This *
|
354 |
+
* limitation of liability shall not apply to liability for death or *
|
355 |
+
* personal injury resulting from such party's negligence to the *
|
356 |
+
* extent applicable law prohibits such limitation. Some *
|
357 |
+
* jurisdictions do not allow the exclusion or limitation of *
|
358 |
+
* incidental or consequential damages, so this exclusion and *
|
359 |
+
* limitation may not apply to You. *
|
360 |
+
* *
|
361 |
+
************************************************************************
|
362 |
+
.
|
363 |
+
8. Litigation
|
364 |
+
-------------
|
365 |
+
.
|
366 |
+
Any litigation relating to this License may be brought only in the
|
367 |
+
courts of a jurisdiction where the defendant maintains its principal
|
368 |
+
place of business and such litigation shall be governed by laws of that
|
369 |
+
jurisdiction, without reference to its conflict-of-law provisions.
|
370 |
+
Nothing in this Section shall prevent a party's ability to bring
|
371 |
+
cross-claims or counter-claims.
|
372 |
+
.
|
373 |
+
9. Miscellaneous
|
374 |
+
----------------
|
375 |
+
.
|
376 |
+
This License represents the complete agreement concerning the subject
|
377 |
+
matter hereof. If any provision of this License is held to be
|
378 |
+
unenforceable, such provision shall be reformed only to the extent
|
379 |
+
necessary to make it enforceable. Any law or regulation which provides
|
380 |
+
that the language of a contract shall be construed against the drafter
|
381 |
+
shall not be used to construe this License against a Contributor.
|
382 |
+
.
|
383 |
+
10. Versions of the License
|
384 |
+
---------------------------
|
385 |
+
.
|
386 |
+
10.1. New Versions
|
387 |
+
.
|
388 |
+
Mozilla Foundation is the license steward. Except as provided in Section
|
389 |
+
10.3, no one other than the license steward has the right to modify or
|
390 |
+
publish new versions of this License. Each version will be given a
|
391 |
+
distinguishing version number.
|
392 |
+
.
|
393 |
+
10.2. Effect of New Versions
|
394 |
+
.
|
395 |
+
You may distribute the Covered Software under the terms of the version
|
396 |
+
of the License under which You originally received the Covered Software,
|
397 |
+
or under the terms of any subsequent version published by the license
|
398 |
+
steward.
|
399 |
+
.
|
400 |
+
10.3. Modified Versions
|
401 |
+
.
|
402 |
+
If you create software not governed by this License, and you want to
|
403 |
+
create a new license for such software, you may create and use a
|
404 |
+
modified version of this License if you rename the license and remove
|
405 |
+
any references to the name of the license steward (except to note that
|
406 |
+
such modified license differs from this License).
|
407 |
+
.
|
408 |
+
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
409 |
+
Licenses
|
410 |
+
.
|
411 |
+
If You choose to distribute Source Code Form that is Incompatible With
|
412 |
+
Secondary Licenses under the terms of this version of the License, the
|
413 |
+
notice described in Exhibit B of this License must be attached.
|
414 |
+
.
|
415 |
+
Exhibit A - Source Code Form License Notice
|
416 |
+
-------------------------------------------
|
417 |
+
.
|
418 |
+
This Source Code Form is subject to the terms of the Mozilla Public
|
419 |
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
420 |
+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
421 |
+
.
|
422 |
+
If it is not possible or desirable to put the notice in a particular
|
423 |
+
file, then You may include the notice in a location (such as a LICENSE
|
424 |
+
file in a relevant directory) where a recipient would be likely to look
|
425 |
+
for such a notice.
|
426 |
+
.
|
427 |
+
You may add additional accurate notices of copyright ownership.
|
428 |
+
.
|
429 |
+
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
430 |
+
---------------------------------------------------------
|
431 |
+
.
|
432 |
+
This Source Code Form is "Incompatible With Secondary Licenses", as
|
433 |
+
defined by the Mozilla Public License, v. 2.0.
|
vendor/composer/autoload_real.php
CHANGED
@@ -23,35 +23,24 @@ class ComposerAutoloaderInit4c3174ac4bf370c3acc8c379bef0ab9a
|
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
spl_autoload_unregister(array('ComposerAutoloaderInit4c3174ac4bf370c3acc8c379bef0ab9a', 'loadClassLoader'));
|
25 |
|
26 |
-
$
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
call_user_func(\Composer\Autoload\ComposerStaticInit4c3174ac4bf370c3acc8c379bef0ab9a::getInitializer($loader));
|
31 |
-
} else {
|
32 |
-
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
-
foreach ($map as $namespace => $path) {
|
34 |
-
$loader->set($namespace, $path);
|
35 |
-
}
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
}
|
46 |
}
|
47 |
|
48 |
$loader->register(true);
|
49 |
|
50 |
-
|
51 |
-
$includeFiles = Composer\Autoload\ComposerStaticInit4c3174ac4bf370c3acc8c379bef0ab9a::$files;
|
52 |
-
} else {
|
53 |
-
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
-
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
composerRequire4c3174ac4bf370c3acc8c379bef0ab9a($fileIdentifier, $file);
|
57 |
}
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
spl_autoload_unregister(array('ComposerAutoloaderInit4c3174ac4bf370c3acc8c379bef0ab9a', 'loadClassLoader'));
|
25 |
|
26 |
+
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
+
foreach ($map as $namespace => $path) {
|
28 |
+
$loader->set($namespace, $path);
|
29 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
+
$map = require __DIR__ . '/autoload_psr4.php';
|
32 |
+
foreach ($map as $namespace => $path) {
|
33 |
+
$loader->setPsr4($namespace, $path);
|
34 |
+
}
|
35 |
|
36 |
+
$classMap = require __DIR__ . '/autoload_classmap.php';
|
37 |
+
if ($classMap) {
|
38 |
+
$loader->addClassMap($classMap);
|
|
|
39 |
}
|
40 |
|
41 |
$loader->register(true);
|
42 |
|
43 |
+
$includeFiles = require __DIR__ . '/autoload_files.php';
|
|
|
|
|
|
|
|
|
44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
composerRequire4c3174ac4bf370c3acc8c379bef0ab9a($fileIdentifier, $file);
|
46 |
}
|