Skip to content
Permalink
Browse files

Plans module

* Plans module added
* Minor updates
  • Loading branch information...
sergejey committed Feb 26, 2019
1 parent d4dbd85 commit 4476370e09bfe6916216bdf791f596e9c0a549a8
Showing with 13,575 additions and 3,998 deletions.
  1. +107 −0 3rdparty/select2/CONTRIBUTING.md
  2. +18 −0 3rdparty/select2/LICENSE
  3. +114 −0 3rdparty/select2/README.md
  4. +8 −0 3rdparty/select2/bower.json
  5. +66 −0 3rdparty/select2/component.json
  6. +29 −0 3rdparty/select2/composer.json
  7. +20 −0 3rdparty/select2/package.json
  8. +79 −0 3rdparty/select2/release.sh
  9. +87 −0 3rdparty/select2/select2-bootstrap.css
  10. BIN 3rdparty/select2/select2-spinner.gif
  11. +704 −0 3rdparty/select2/select2.css
  12. +36 −0 3rdparty/select2/select2.jquery.json
  13. +3,541 −0 3rdparty/select2/select2.js
  14. +23 −0 3rdparty/select2/select2.min.js
  15. BIN 3rdparty/select2/select2.png
  16. +19 −0 3rdparty/select2/select2_locale_ar.js
  17. +20 −0 3rdparty/select2/select2_locale_az.js
  18. +20 −0 3rdparty/select2/select2_locale_bg.js
  19. +19 −0 3rdparty/select2/select2_locale_ca.js
  20. +51 −0 3rdparty/select2/select2_locale_cs.js
  21. +19 −0 3rdparty/select2/select2_locale_da.js
  22. +18 −0 3rdparty/select2/select2_locale_de.js
  23. +19 −0 3rdparty/select2/select2_locale_el.js
  24. +20 −0 3rdparty/select2/select2_locale_en.js.template
  25. +19 −0 3rdparty/select2/select2_locale_es.js
  26. +19 −0 3rdparty/select2/select2_locale_et.js
  27. +45 −0 3rdparty/select2/select2_locale_eu.js
  28. +21 −0 3rdparty/select2/select2_locale_fa.js
  29. +30 −0 3rdparty/select2/select2_locale_fi.js
  30. +18 −0 3rdparty/select2/select2_locale_fr.js
  31. +45 −0 3rdparty/select2/select2_locale_gl.js
  32. +19 −0 3rdparty/select2/select2_locale_he.js
  33. +24 −0 3rdparty/select2/select2_locale_hr.js
  34. +17 −0 3rdparty/select2/select2_locale_hu.js
  35. +19 −0 3rdparty/select2/select2_locale_id.js
  36. +17 −0 3rdparty/select2/select2_locale_is.js
  37. +17 −0 3rdparty/select2/select2_locale_it.js
  38. +17 −0 3rdparty/select2/select2_locale_ja.js
  39. +19 −0 3rdparty/select2/select2_locale_ka.js
  40. +19 −0 3rdparty/select2/select2_locale_ko.js
  41. +26 −0 3rdparty/select2/select2_locale_lt.js
  42. +19 −0 3rdparty/select2/select2_locale_lv.js
  43. +19 −0 3rdparty/select2/select2_locale_mk.js
  44. +19 −0 3rdparty/select2/select2_locale_ms.js
  45. +22 −0 3rdparty/select2/select2_locale_nb.js
  46. +17 −0 3rdparty/select2/select2_locale_nl.js
  47. +18 −0 3rdparty/select2/select2_locale_no.js
  48. +54 −0 3rdparty/select2/select2_locale_pl.js
  49. +18 −0 3rdparty/select2/select2_locale_pt-BR.js
  50. +17 −0 3rdparty/select2/select2_locale_pt-PT.js
  51. +17 −0 3rdparty/select2/select2_locale_ro.js
  52. +19 −0 3rdparty/select2/select2_locale_rs.js
  53. +23 −0 3rdparty/select2/select2_locale_ru.js
  54. +50 −0 3rdparty/select2/select2_locale_sk.js
  55. +19 −0 3rdparty/select2/select2_locale_sv.js
  56. +19 −0 3rdparty/select2/select2_locale_th.js
  57. +19 −0 3rdparty/select2/select2_locale_tr.js
  58. +17 −0 3rdparty/select2/select2_locale_ua.js
  59. +16 −0 3rdparty/select2/select2_locale_ug-CN.js
  60. +25 −0 3rdparty/select2/select2_locale_uk.js
  61. +20 −0 3rdparty/select2/select2_locale_vi.js
  62. +16 −0 3rdparty/select2/select2_locale_zh-CN.js
  63. +16 −0 3rdparty/select2/select2_locale_zh-TW.js
  64. BIN 3rdparty/select2/select2x2.png
  65. +261 −0 3rdparty/svg-pan-zoom/svg-pan-zoom.d.ts
  66. +1,900 −0 3rdparty/svg-pan-zoom/svg-pan-zoom.js
  67. +3 −0 3rdparty/svg-pan-zoom/svg-pan-zoom.min.js
  68. BIN img/modules/plans.png
  69. +1,361 −1,344 languages/default.php
  70. +18 −0 languages/ru.php
  71. +7 −1 lib/general.class.php
  72. +525 −470 lib/websockets/server/lib/WebSocket/Application/MajordomoApplication.php
  73. +337 −334 modules/layouts/layouts.class.php
  74. +1,094 −1,091 modules/objects/objects.class.php
  75. 0 modules/plans/app
  76. +499 −0 modules/plans/plans.class.php
  77. +64 −0 modules/plans/plans_edit.inc.php
  78. +30 −0 modules/plans/plans_search.inc.php
  79. +138 −0 modules/plans/states.inc.php
  80. +706 −707 pChart/index.php
  81. +45 −42 scripts/cycle_websockets.php
  82. +4 −0 templates/actions.html
  83. +2 −2 templates/classes/views/SRGB.html
  84. +2 −2 templates/devices/devices_edit_links.html
  85. +0 −3 templates/layouts/layouts_edit.html
  86. +2 −2 templates/linkedobject/linkedobject.html
  87. +52 −0 templates/plans/action_admin.html
  88. +10 −0 templates/plans/action_usual.html
  89. +68 −0 templates/plans/basic.css
  90. +9 −0 templates/plans/plans.html
  91. +65 −0 templates/plans/plans_edit.html
  92. +10 −0 templates/plans/plans_preview.html
  93. +70 −0 templates/plans/plans_search_admin.html
  94. +244 −0 templates/plans/plans_states.html
  95. +142 −0 templates/plans/preview.html
@@ -0,0 +1,107 @@
Contributing to Select2
=======================
Looking to contribute something to Select2? **Here's how you can help.**

Please take a moment to review this document in order to make the contribution
process easy and effective for everyone involved.

Following these guidelines helps to communicate that you respect the time of
the developers managing and developing this open source project. In return,
they should reciprocate that respect in addressing your issue or assessing
patches and features.

Using the issue tracker
-----------------------
When [reporting bugs][reporting-bugs] or
[requesting features][requesting-features], the
[issue tracker on GitHub][issue-tracker] is the recommended channel to use.

The issue tracker **is not** a place for support requests. The
[mailing list][mailing-list] or [IRC channel][irc-channel] are better places to
get help.

Reporting bugs with Select2
---------------------------
We really appreciate clear bug reports that _consistently_ show an issue
_within Select2_.

The ideal bug report follows these guidelines:

1. **Use the [GitHub issue search][issue-search]** — Check if the issue
has already been reported.
2. **Check if the issue has been fixed** — Try to reproduce the problem
using the code in the `master` branch.
3. **Isolate the problem** — Try to create an
[isolated test case][isolated-case] that consistently reproduces the problem.

Please try to be as detailed as possible in your bug report, especially if an
isolated test case cannot be made. Some useful questions to include the answer
to are:

- What steps can be used to reproduce the issue?
- What is the bug and what is the expected outcome?
- What browser(s) and Operating System have you tested with?
- Does the bug happen consistently across all tested browsers?
- What version of jQuery are you using? And what version of Select2?
- Are you using Select2 with other plugins?

All of these questions will help people fix and identify any potential bugs.

Requesting features in Select2
------------------------------
Select2 is a large library that carries with it a lot of functionality. Because
of this, many feature requests will not be implemented in the core library.

Before starting work on a major feature for Select2, **contact the
[community][community] first** or you may risk spending a considerable amount of
time on something which the project developers are not interested in bringing
into the project.

### Select2 4.0

Many feature requests will be closed off until 4.0, where Select2 plans to adopt
a more flexible API. If you are interested in helping with the development of
the next major Select2 release, please send a message to the
[mailing list][mailing-list] or [irc channel][irc-channel] for more information.

Triaging issues and pull requests
---------------------------------
Anyone can help the project maintainers triage issues and review pull requests.

### Handling new issues

Select2 regularly receives new issues which need to be tested and organized.

When a new issue that comes in that is similar to another existing issue, it
should be checked to make sure it is not a duplicate. Duplicates issues should
be marked by replying to the issue with "Duplicate of #[issue number]" where
`[issue number]` is the url or issue number for the existing issue. This will
allow the project maintainers to quickly close off additional issues and keep
the discussion focused within a single issue.

If you can test issues that are reported to Select2 that contain test cases and
confirm under what conditions bugs happen, that will allow others to identify
what causes a bug quicker.

### Reviewing pull requests

It is very common for pull requests to be opened for issues that contain a clear
solution to the problem. These pull requests should be rigorously reviewed by
the community before being accepted. If you are not sure about a piece of
submitted code, or know of a better way to do something, do not hesitate to make
a comment on the pull request.

It should also be made clear that **all code contributed to Select** must be
licensable under the [Apache 2 or GPL 2 licenses][licensing]. Code that cannot
be released under either of these licenses **cannot be accepted** into the
project.

[community]: https://github.com/ivaynberg/select2#community
[reporting-bugs]: #reporting-bugs-with-select2
[requesting-features]: #requesting-features-in-select2
[issue-tracker]: https://github.com/ivaynberg/select2/issues
[mailing-list]: https://github.com/ivaynberg/select2#mailing-list
[irc-channel]: https://github.com/ivaynberg/select2#irc-channel
[issue-search]: https://github.com/ivaynberg/select2/search?q=&type=Issues
[isolated-case]: http://css-tricks.com/6263-reduced-test-cases/
[licensing]: https://github.com/ivaynberg/select2#copyright-and-license
@@ -0,0 +1,18 @@
Copyright 2014 Igor Vaynberg

Version: @@ver@@ Timestamp: @@timestamp@@

This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
General Public License version 2 (the "GPL License"). You may choose either license to govern your
use of this software only upon the condition that you accept all of the terms of either the Apache
License or the GPL License.

You may obtain a copy of the Apache License and the GPL License at:

http://www.apache.org/licenses/LICENSE-2.0
http://www.gnu.org/licenses/gpl-2.0.html

Unless required by applicable law or agreed to in writing, software distributed under the Apache License
or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the Apache License and the GPL License for the specific language governing
permissions and limitations under the Apache License and the GPL License.
@@ -0,0 +1,114 @@
Select2
=======

Select2 is a jQuery-based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.

To get started, checkout examples and documentation at http://ivaynberg.github.com/select2

Use cases
---------

* Enhancing native selects with search.
* Enhancing native selects with a better multi-select interface.
* Loading data from JavaScript: easily load items via ajax and have them searchable.
* Nesting optgroups: native selects only support one level of nested. Select2 does not have this restriction.
* Tagging: ability to add new items on the fly.
* Working with large, remote datasets: ability to partially load a dataset based on the search term.
* Paging of large datasets: easy support for loading more pages when the results are scrolled to the end.
* Templating: support for custom rendering of results and selections.

Browser compatibility
---------------------
* IE 8+
* Chrome 8+
* Firefox 10+
* Safari 3+
* Opera 10.6+

Usage
-----
You can source Select2 directly from a CDN like [JSDliver](http://www.jsdelivr.com/#!select2) or [CDNJS](http://www.cdnjs.com/libraries/select2), [download it from this GitHub repo](https://github.com/ivaynberg/select2/tags), or use one of the integrations below.

Integrations
------------

* [Wicket-Select2](https://github.com/ivaynberg/wicket-select2) (Java / [Apache Wicket](http://wicket.apache.org))
* [select2-rails](https://github.com/argerim/select2-rails) (Ruby on Rails)
* [AngularUI](http://angular-ui.github.io/#ui-select) ([AngularJS](https://angularjs.org/))
* [Django](https://github.com/applegrew/django-select2)
* [Symfony](https://github.com/19Gerhard85/sfSelect2WidgetsPlugin)
* [Symfony2](https://github.com/avocode/FormExtensions)
* [Bootstrap 2](https://github.com/t0m/select2-bootstrap-css) and [Bootstrap 3](https://github.com/t0m/select2-bootstrap-css/tree/bootstrap3) (CSS skins)
* [Meteor](https://github.com/nate-strauser/meteor-select2) (modern reactive JavaScript framework; + [Bootstrap 3 skin](https://github.com/esperadomedia/meteor-select2-bootstrap3-css/))
* [Meteor](https://jquery-select2.meteor.com)
* [Yii 2.x](http://demos.krajee.com/widgets#select2)
* [Yii 1.x](https://github.com/tonybolzan/yii-select2)
* [AtmosphereJS](https://atmospherejs.com/package/jquery-select2)

### Example Integrations

* [Knockout.js](https://github.com/ivaynberg/select2/wiki/Knockout.js-Integration)
* [Socket.IO](https://github.com/ivaynberg/select2/wiki/Socket.IO-Integration)
* [PHP](https://github.com/ivaynberg/select2/wiki/PHP-Example)
* [.Net MVC] (https://github.com/ivaynberg/select2/wiki/.Net-MVC-Example)

Internationalization (i18n)
---------------------------

Select2 supports multiple languages by simply including the right language JS
file (`select2_locale_it.js`, `select2_locale_nl.js`, etc.) after `select2.js`.

Missing a language? Just copy `select2_locale_en.js.template`, translate
it, and make a pull request back to Select2 here on GitHub.

Documentation
-------------

The documentation for Select2 is available [through GitHub Pages](https://ivaynberg.github.io/select2/) and is located within this repository in the [`gh-pages` branch](https://github.com/ivaynberg/select2/tree/gh-pages).

Community
---------

### Bug tracker

Have a bug? Please create an issue here on GitHub!

https://github.com/ivaynberg/select2/issues

### Mailing list

Have a question? Ask on our mailing list!

select2@googlegroups.com

https://groups.google.com/d/forum/select2

### IRC channel

Need help implementing Select2 in your project? Ask in our IRC channel!

**Network:** [Freenode](https://freenode.net/) (`chat.freenode.net`)

**Channel:** `#select2`

**Web access:** https://webchat.freenode.net/?channels=select2

Copyright and license
---------------------

Copyright 2012 Igor Vaynberg

This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
General Public License version 2 (the "GPL License"). You may choose either license to govern your
use of this software only upon the condition that you accept all of the terms of either the Apache
License or the GPL License.

You may obtain a copy of the Apache License and the GPL License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0
http://www.gnu.org/licenses/gpl-2.0.html

Unless required by applicable law or agreed to in writing, software distributed under the Apache License
or the GPL License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the Apache License and the GPL License for the specific language governing
permissions and limitations under the Apache License and the GPL License.
@@ -0,0 +1,8 @@
{
"name": "select2",
"version": "3.5.2",
"main": ["select2.js", "select2.css", "select2.png", "select2x2.png", "select2-spinner.gif"],
"dependencies": {
"jquery": ">= 1.7.1"
}
}
@@ -0,0 +1,66 @@
{
"name": "select2",
"repo": "ivaynberg/select2",
"description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.",
"version": "3.5.2",
"demo": "http://ivaynberg.github.io/select2/",
"keywords": [
"jquery"
],
"main": "select2.js",
"styles": [
"select2.css",
"select2-bootstrap.css"
],
"scripts": [
"select2.js",
"select2_locale_ar.js",
"select2_locale_bg.js",
"select2_locale_ca.js",
"select2_locale_cs.js",
"select2_locale_da.js",
"select2_locale_de.js",
"select2_locale_el.js",
"select2_locale_es.js",
"select2_locale_et.js",
"select2_locale_eu.js",
"select2_locale_fa.js",
"select2_locale_fi.js",
"select2_locale_fr.js",
"select2_locale_gl.js",
"select2_locale_he.js",
"select2_locale_hr.js",
"select2_locale_hu.js",
"select2_locale_id.js",
"select2_locale_is.js",
"select2_locale_it.js",
"select2_locale_ja.js",
"select2_locale_ka.js",
"select2_locale_ko.js",
"select2_locale_lt.js",
"select2_locale_lv.js",
"select2_locale_mk.js",
"select2_locale_ms.js",
"select2_locale_nl.js",
"select2_locale_no.js",
"select2_locale_pl.js",
"select2_locale_pt-BR.js",
"select2_locale_pt-PT.js",
"select2_locale_ro.js",
"select2_locale_ru.js",
"select2_locale_sk.js",
"select2_locale_sv.js",
"select2_locale_th.js",
"select2_locale_tr.js",
"select2_locale_uk.js",
"select2_locale_vi.js",
"select2_locale_zh-CN.js",
"select2_locale_zh-TW.js"
],
"images": [
"select2-spinner.gif",
"select2.png",
"select2x2.png"
],
"license": "MIT"
}
@@ -0,0 +1,29 @@
{
"name":
"ivaynberg/select2",
"description": "Select2 is a jQuery based replacement for select boxes.",
"version": "3.5.2",
"type": "component",
"homepage": "http://ivaynberg.github.io/select2/",
"license": "Apache-2.0",
"require": {
"robloach/component-installer": "*",
"components/jquery": ">=1.7.1"
},
"extra": {
"component": {
"scripts": [
"select2.js"
],
"files": [
"select2.js",
"select2_locale_*.js",
"select2.css",
"select2-bootstrap.css",
"select2-spinner.gif",
"select2.png",
"select2x2.png"
]
}
}
}
@@ -0,0 +1,20 @@
{
"name" : "Select2",
"description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.",
"homepage": "http://ivaynberg.github.io/select2",
"author": "Igor Vaynberg",
"repository": {"type": "git", "url": "git://github.com/ivaynberg/select2.git"},
"main": "select2.js",
"version": "3.5.2",
"jspm": {
"main": "select2",
"files": ["select2.js", "select2.png", "select2.css", "select2-spinner.gif"],
"shim": {
"select2": {
"imports": ["jquery", "./select2.css!"],
"exports": "$"
}
},
"buildConfig": { "uglify": true }
}
}
Oops, something went wrong.

0 comments on commit 4476370

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