├── public ├── .keep ├── here.html └── img │ ├── 403.png │ ├── 404.png │ └── 500.png ├── scripts ├── encodeToUTF8.sh ├── clear_all_logs.sh ├── phpdox │ ├── addReport.txt │ ├── phploc.xml │ └── phpdox.xml ├── clean_cache_manager.php ├── update_log_path.sh ├── clear_cache.sh ├── deb-install.sh ├── push_doc.sh └── translate.php ├── assets ├── config │ ├── scenario │ │ └── .keep │ ├── Nextdom_version │ ├── Jeedom_version │ └── dist │ │ ├── opcache.ini.dev │ │ └── opcache.ini.dist ├── img │ ├── 401.png │ ├── 403.png │ ├── 404.png │ ├── 500.png │ ├── favicon.png │ ├── logo_diy.png │ ├── no_image.gif │ ├── euro-market.jpg │ ├── flags │ │ ├── russe.png │ │ ├── anglais.png │ │ ├── italien.png │ │ ├── allemand.png │ │ ├── espagnol.png │ │ ├── francais.png │ │ └── indonesien.png │ ├── icon-25x25.png │ ├── logo_docker.png │ ├── logo_notset.png │ ├── logo_rpi12.png │ ├── wait_icon.png │ ├── NextDom_User.png │ ├── icon-128x128.png │ ├── icon-256x256.png │ ├── unknown_icon.png │ ├── NextDom_Camera.png │ ├── NextDom_Plugin.png │ ├── NextDom_Scenario.png │ ├── NextDom_Script.png │ ├── NextDom_Widget.png │ ├── NextDom_NoPicture.png │ ├── logo_nextdomboard.png │ ├── profils │ │ ├── avatar_00.png │ │ ├── avatar_01.png │ │ ├── avatar_02.png │ │ ├── avatar_03.png │ │ ├── avatar_04.png │ │ ├── avatar_05.png │ │ ├── avatar_06.png │ │ ├── avatar_07.png │ │ ├── avatar_08.png │ │ ├── avatar_09.png │ │ ├── avatar_10.png │ │ ├── avatar_11.png │ │ ├── avatar_12.png │ │ ├── avatar_13.png │ │ ├── avatar_14.png │ │ ├── avatar_15.png │ │ ├── avatar_16.png │ │ ├── avatar_17.png │ │ ├── avatar_18.png │ │ ├── avatar_19.png │ │ ├── avatar_20.png │ │ ├── avatar_21.png │ │ ├── avatar_22.png │ │ ├── avatar_23.png │ │ ├── avatar_24.png │ │ ├── avatar_25.png │ │ ├── avatar_26.png │ │ ├── avatar_27.png │ │ ├── avatar_28.png │ │ ├── avatar_29.png │ │ ├── avatar_30.png │ │ ├── avatar_31.png │ │ ├── avatar_32.png │ │ ├── avatar_33.png │ │ ├── avatar_34.png │ │ ├── avatar_35.png │ │ ├── avatar_36.png │ │ ├── avatar_37.png │ │ ├── avatar_38.png │ │ ├── avatar_39.png │ │ ├── avatar_40.png │ │ ├── avatar_41.png │ │ ├── avatar_42.png │ │ ├── avatar_43.png │ │ ├── avatar_44.png │ │ ├── avatar_45.png │ │ ├── avatar_46.png │ │ ├── avatar_47.png │ │ ├── avatar_48.png │ │ ├── avatar_49.png │ │ ├── avatar_50.png │ │ ├── avatar_51.png │ │ ├── avatar_52.png │ │ ├── avatar_53.png │ │ └── avatar_54.png │ ├── NextDom │ │ ├── NextDom_Setup.png │ │ ├── NextDom_Wide_AlphaBlack.png │ │ ├── NextDom_Wide_AlphaWhite.png │ │ ├── NextDom_Square_AlphaBlack.png │ │ ├── NextDom_Square_AlphaWhite.png │ │ ├── NextDom_Wide_AlphaBlackWhite.png │ │ ├── NextDom_Wide_AlphaWhiteBlack.png │ │ ├── NextDom_Wide_WhiteBlackBlue.png │ │ ├── NextDom_Square_AlphaBlackWhite.png │ │ ├── NextDom_Square_AlphaWhiteBlack.png │ │ └── NextDom_Square_WhiteBlackBlue.png │ ├── NextDom_Camera_Gray.png │ ├── NextDom_Interaction.png │ ├── NextDom_Plugin_Gray.png │ ├── NextDom_Scenario_Gray.png │ ├── NextDom_Script_Gray.png │ ├── NextDom_Widget_Gray.png │ ├── startup-image-320x460.png │ ├── startup-image-640x920.png │ ├── NextDom_NoPicture_Gray.png │ ├── startup-image-1496x2048.png │ ├── startup-image-1536x2008.png │ ├── startup-image-640x1096.png │ ├── startup-image-748x1024.png │ ├── startup-image-768x1004.png │ └── NextDom_Interaction_Gray.png ├── icon │ ├── meteo │ │ └── fonts │ │ │ ├── meteo.eot │ │ │ ├── meteo.ttf │ │ │ └── meteo.woff │ ├── animal │ │ └── fonts │ │ │ ├── animal.eot │ │ │ ├── animal.ttf │ │ │ └── animal.woff │ ├── divers │ │ └── fonts │ │ │ ├── divers.eot │ │ │ ├── divers.ttf │ │ │ └── divers.woff │ ├── loisir │ │ └── fonts │ │ │ ├── loisir.eot │ │ │ ├── loisir.ttf │ │ │ └── loisir.woff │ ├── maison │ │ └── fonts │ │ │ ├── maison.eot │ │ │ ├── maison.ttf │ │ │ └── maison.woff │ ├── nature │ │ └── fonts │ │ │ ├── nature.eot │ │ │ ├── nature.ttf │ │ │ └── nature.woff │ ├── techno │ │ └── fonts │ │ │ ├── techno.eot │ │ │ ├── techno.ttf │ │ │ └── techno.woff │ ├── fashion │ │ └── fonts │ │ │ ├── fashion.eot │ │ │ ├── fashion.ttf │ │ │ └── fashion.woff │ ├── nextdom │ │ └── fonts │ │ │ ├── nextdom.eot │ │ │ ├── nextdom.ttf │ │ │ └── nextdom.woff │ ├── nextdom2 │ │ └── fonts │ │ │ ├── nextdom2.eot │ │ │ ├── nextdom2.ttf │ │ │ └── nextdom2.woff │ ├── personne │ │ └── fonts │ │ │ ├── personne.eot │ │ │ ├── personne.ttf │ │ │ └── personne.woff │ ├── securite │ │ ├── fonts │ │ │ ├── securite.eot │ │ │ ├── securite.ttf │ │ │ └── securite.woff │ │ └── style.css │ ├── transport │ │ └── fonts │ │ │ ├── transport.eot │ │ │ ├── transport.ttf │ │ │ └── transport.woff │ ├── nextdomapp │ │ └── fonts │ │ │ ├── nextdomapp.eot │ │ │ ├── nextdomapp.ttf │ │ │ └── nextdomapp.woff │ └── nourriture │ │ └── fonts │ │ ├── nourriture.eot │ │ ├── nourriture.ttf │ │ └── nourriture.woff ├── 3rdparty │ └── jquery.utils │ │ └── gritter.png ├── js │ ├── core │ │ ├── jeedom.class.js │ │ ├── network.class.js │ │ ├── listener.class.js │ │ └── security.class.js │ └── factory │ │ └── elements │ │ ├── A.js │ │ ├── Br.js │ │ ├── Td.js │ │ ├── Th.js │ │ ├── Tr.js │ │ ├── Thead.js │ │ ├── Space.js │ │ ├── Tbody.js │ │ ├── Span.js │ │ ├── TextNode.js │ │ ├── IFA.js │ │ ├── Label.js │ │ ├── Button.js │ │ └── InputText.js └── css │ ├── themes │ └── output │ │ ├── mix-blue.scss │ │ ├── mix-gold.scss │ │ ├── mix-gray.scss │ │ ├── mix-teal.scss │ │ ├── dark-black.scss │ │ ├── dark-blue.scss │ │ ├── dark-gold.scss │ │ ├── dark-gray.scss │ │ ├── dark-green.scss │ │ ├── dark-nextdom.scss │ │ ├── dark-orange.scss │ │ ├── dark-teal.scss │ │ ├── dark-yellow.scss │ │ ├── light-black.scss │ │ ├── light-blue.scss │ │ ├── light-gold.scss │ │ ├── light-gray.scss │ │ ├── light-green.scss │ │ ├── light-teal.scss │ │ ├── mix-black.scss │ │ ├── mix-green.scss │ │ ├── mix-nextdom.scss │ │ ├── mix-orange.scss │ │ ├── mix-yellow.scss │ │ ├── light-nextdom.scss │ │ ├── light-orange.scss │ │ └── light-yellow.scss │ ├── divers │ └── _cursors.scss │ └── compiled │ └── pages │ └── plugins.scss ├── tests ├── pylibs │ └── __init__.py ├── data │ ├── plugin4tests │ │ ├── LICENSE │ │ ├── core │ │ │ ├── config │ │ │ │ └── plugin4tests.config.ini │ │ │ └── template │ │ │ │ └── dashboard │ │ │ │ └── eqLogic.html │ │ ├── plugin_info │ │ │ ├── info.json │ │ │ └── install.php │ │ └── desktop │ │ │ └── css │ │ │ └── plugin4tests.css │ ├── backup-Jeedom-3.2.11-2018-11-17-23h26.tar.gz │ └── smallest_scenario.sql ├── phpunit ├── docker │ ├── nextdom-dev │ │ ├── nextdom-apt.list │ │ └── with-samba.sh │ └── nextdom-test │ │ ├── nextdom-apt.list │ │ ├── launch.sh │ │ └── start.sh ├── .pylintrc ├── scripts │ ├── sed_in_docker.sh │ ├── remove_test_container.sh │ ├── remove_docker.sh │ └── start_test_container.sh ├── phpunit_tests │ ├── .phpunit.result.cache │ ├── libs │ │ ├── BaseTest.php │ │ ├── BaseAjaxTest.php │ │ └── BaseControllerTest.php │ └── Gui │ │ ├── ModalPageTest.php │ │ ├── PlanPageTest.php │ │ └── AdministrationPageTest.php ├── install_chrome.sh └── start_docker_test.py ├── robots.txt ├── views ├── templates │ ├── scenario │ │ ├── cmd.action.binary.default.html │ │ ├── cmd.action.other.default.html │ │ ├── cmd.info.numeric.default.html │ │ ├── delete_variable.default.html │ │ ├── sleep.default.html │ │ ├── cmd.action.select.default.html │ │ ├── icon.default.html │ │ ├── cmd.action.text.default.html │ │ ├── cmd.action.slider.default.html │ │ ├── popup.default.html │ │ ├── log.default.html │ │ ├── say.default.html │ │ ├── scenario_return.default.html │ │ └── message.default.html │ └── dashboard │ │ ├── themes │ │ ├── flat │ │ │ └── flat.png │ │ ├── nextdom │ │ │ └── nextdom.png │ │ └── adminlte │ │ │ └── adminlte.png │ │ ├── cmd.info.numeric.HygroThermographe │ │ ├── No.ext_100_Dark.png │ │ ├── No.ext_100_Light.png │ │ └── font │ │ │ ├── digital-7.eot │ │ │ ├── digital-7.ttf │ │ │ └── digital-7.woff │ │ ├── cmd.error.html │ │ ├── cmd.info.numeric.rain │ │ └── water.svg │ │ ├── cmd.info.string.buttonImage.html │ │ ├── cmd.action.select.default.html │ │ ├── cmd.action.upload.default.html │ │ ├── cmd.action.text.default.html │ │ ├── cmd.action.other.default.html │ │ └── cmd.info.string.tile.html ├── modals │ ├── scenario.export.html.twig │ ├── eqLogic.displayWidget.html.twig │ └── scenario.human.insert.html.twig └── layouts │ └── ajax_content.html.twig ├── install ├── apache │ ├── privatetmp.conf │ ├── nextdom.conf │ └── nextdom-ssl.conf ├── OS_specific │ ├── rpi │ │ └── post-install.sh │ ├── Docker │ │ └── README.md │ ├── armbian │ │ └── post-install.sh │ └── windows │ │ └── pre_inst.sh └── fix_apache_private_tmp.sh ├── core ├── api │ ├── tts.php │ ├── jeeApi.php │ ├── proApi.php │ └── marketApi.php ├── repo │ ├── market.api.repo.php │ ├── market.list.repo.php │ ├── market.send.repo.php │ ├── market.display.repo.php │ ├── apt.repo.php │ ├── file.repo.php │ ├── url.repo.php │ ├── github.repo.php │ ├── samba.repo.php │ ├── market.repo.php │ └── nextdom.repo.php ├── php │ ├── core.inc.php │ ├── getJS.php │ ├── getCSS.php │ ├── getResource.php │ ├── watchdog.php │ ├── export.php │ ├── downloadFile.php │ ├── icon.inc.php │ ├── jeeCron.php │ ├── jeePlugin.php │ ├── jeeScenario.php │ ├── jeeListener.php │ └── jeeScenarioExpression.php ├── class │ ├── jeedom.class.php │ ├── jsonrpcClient.class.php │ ├── jsonrpc.class.php │ ├── object.class.php │ └── historyArch.class.php ├── com │ ├── http.com.php │ └── shell.com.php └── ajax │ ├── cmd.ajax.php │ ├── log.ajax.php │ ├── cron.ajax.php │ ├── note.ajax.php │ ├── plan.ajax.php │ ├── repo.ajax.php │ ├── user.ajax.php │ ├── view.ajax.php │ ├── cache.ajax.php │ ├── event.ajax.php │ ├── widgets.ajax.php │ ├── config.ajax.php │ ├── object.ajax.php │ ├── plugin.ajax.php │ ├── report.ajax.php │ ├── update.ajax.php │ ├── eqLogic.ajax.php │ ├── message.ajax.php │ ├── network.ajax.php │ ├── nextdom.ajax.php │ ├── profils.ajax.php │ ├── interact.ajax.php │ ├── listener.ajax.php │ ├── scenario.ajax.php │ ├── dataStore.ajax.php │ └── nextdom_market.ajax.php ├── src ├── Interfaces │ ├── BaseRepo.php │ ├── EntityInterface.php │ └── SenarioInterface.php ├── Model │ ├── Entity │ │ └── Parents │ │ │ ├── RefreshEntity.php │ │ │ ├── NameEntity.php │ │ │ ├── BaseEntity.php │ │ │ ├── PositionEntity.php │ │ │ ├── LogicalIdEntity.php │ │ │ ├── OrderEntity.php │ │ │ ├── TypeEntity.php │ │ │ ├── EnableEntity.php │ │ │ └── IsVisibleEntity.php │ └── DataClass │ │ └── WidgetTheme.php ├── Exceptions │ ├── DbException.php │ ├── PluginException.php │ ├── MarketException.php │ └── OperatingSystemException.php └── Enums │ ├── ViewType.php │ ├── ScenarioExpressionSubType.php │ ├── UserLocation.php │ ├── ActionRight.php │ ├── UserRight.php │ ├── CmdType.php │ ├── DaemonState.php │ ├── LogLevel.php │ ├── BatteryStatus.php │ ├── UserOption.php │ ├── PlanVersion.php │ ├── CmdViewType.php │ ├── ApiMode.php │ ├── LogRotate.php │ └── ScenarioState.php ├── .coveralls.yml ├── api └── .htaccess ├── .sonarcloud.properties ├── .gitignore ├── .github └── ISSUE_TEMPLATE │ ├── rapport-de-bug.md │ └── demande-de-nouvelle-feature-ou-d-am-lioration.md └── manifest.json /public/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/here.html: -------------------------------------------------------------------------------- 1 | ok 2 | -------------------------------------------------------------------------------- /scripts/encodeToUTF8.sh: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/config/scenario/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/pylibs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/plugin4tests/LICENSE: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/config/Nextdom_version: -------------------------------------------------------------------------------- 1 | 0.8.0 -------------------------------------------------------------------------------- /assets/config/Jeedom_version: -------------------------------------------------------------------------------- 1 | 4.0.45 2 | -------------------------------------------------------------------------------- /robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: / -------------------------------------------------------------------------------- /views/templates/scenario/cmd.action.binary.default.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /views/templates/scenario/cmd.action.other.default.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /views/templates/scenario/cmd.info.numeric.default.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /install/apache/privatetmp.conf: -------------------------------------------------------------------------------- 1 | [Service] 2 | PrivateTmp=no 3 | -------------------------------------------------------------------------------- /views/modals/scenario.export.html.twig: -------------------------------------------------------------------------------- 1 |
{{ scenarioExportData }}
-------------------------------------------------------------------------------- /core/api/tts.php: -------------------------------------------------------------------------------- 1 | {}' \; 4 | -------------------------------------------------------------------------------- /assets/img/euro-market.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/euro-market.jpg -------------------------------------------------------------------------------- /assets/img/flags/russe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/flags/russe.png -------------------------------------------------------------------------------- /assets/img/icon-25x25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/icon-25x25.png -------------------------------------------------------------------------------- /assets/img/logo_docker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/logo_docker.png -------------------------------------------------------------------------------- /assets/img/logo_notset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/logo_notset.png -------------------------------------------------------------------------------- /assets/img/logo_rpi12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/logo_rpi12.png -------------------------------------------------------------------------------- /assets/img/wait_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/wait_icon.png -------------------------------------------------------------------------------- /core/repo/market.api.repo.php: -------------------------------------------------------------------------------- 1 |
  • Code Analysis 2 | -------------------------------------------------------------------------------- /tests/data/plugin4tests/core/config/plugin4tests.config.ini: -------------------------------------------------------------------------------- 1 | config_key = 'a text value' 2 | another_key = 12 -------------------------------------------------------------------------------- /tests/docker/nextdom-test/nextdom-apt.list: -------------------------------------------------------------------------------- 1 | deb http://debian-dsddsds.nextdom.org/debian nextdom main 2 | -------------------------------------------------------------------------------- /assets/img/NextDom_User.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom_User.png -------------------------------------------------------------------------------- /assets/img/flags/anglais.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/flags/anglais.png -------------------------------------------------------------------------------- /assets/img/flags/italien.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/flags/italien.png -------------------------------------------------------------------------------- /assets/img/icon-128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/icon-128x128.png -------------------------------------------------------------------------------- /assets/img/icon-256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/icon-256x256.png -------------------------------------------------------------------------------- /assets/img/unknown_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/unknown_icon.png -------------------------------------------------------------------------------- /core/repo/market.display.repo.php: -------------------------------------------------------------------------------- 1 | /dev/null 2>&1 4 | docker rm $1 > /dev/null 2>&1 -------------------------------------------------------------------------------- /assets/icon/fashion/fonts/fashion.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/fashion/fonts/fashion.eot -------------------------------------------------------------------------------- /assets/icon/fashion/fonts/fashion.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/fashion/fonts/fashion.ttf -------------------------------------------------------------------------------- /assets/icon/fashion/fonts/fashion.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/fashion/fonts/fashion.woff -------------------------------------------------------------------------------- /assets/icon/nextdom/fonts/nextdom.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/nextdom/fonts/nextdom.eot -------------------------------------------------------------------------------- /assets/icon/nextdom/fonts/nextdom.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/nextdom/fonts/nextdom.ttf -------------------------------------------------------------------------------- /assets/icon/nextdom/fonts/nextdom.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/nextdom/fonts/nextdom.woff -------------------------------------------------------------------------------- /assets/img/NextDom_NoPicture_Gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom_NoPicture_Gray.png -------------------------------------------------------------------------------- /assets/img/startup-image-1496x2048.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/startup-image-1496x2048.png -------------------------------------------------------------------------------- /assets/img/startup-image-1536x2008.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/startup-image-1536x2008.png -------------------------------------------------------------------------------- /assets/img/startup-image-640x1096.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/startup-image-640x1096.png -------------------------------------------------------------------------------- /assets/img/startup-image-748x1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/startup-image-748x1024.png -------------------------------------------------------------------------------- /assets/img/startup-image-768x1004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/startup-image-768x1004.png -------------------------------------------------------------------------------- /install/OS_specific/rpi/post-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | sed -i 's/127.0.0.1 raspberrypi/127.0.0.1 nextdom/g' /etc/hosts > /dev/null 2>&1 -------------------------------------------------------------------------------- /assets/3rdparty/jquery.utils/gritter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/3rdparty/jquery.utils/gritter.png -------------------------------------------------------------------------------- /assets/icon/nextdom2/fonts/nextdom2.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/nextdom2/fonts/nextdom2.eot -------------------------------------------------------------------------------- /assets/icon/nextdom2/fonts/nextdom2.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/nextdom2/fonts/nextdom2.ttf -------------------------------------------------------------------------------- /assets/icon/nextdom2/fonts/nextdom2.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/nextdom2/fonts/nextdom2.woff -------------------------------------------------------------------------------- /assets/icon/personne/fonts/personne.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/personne/fonts/personne.eot -------------------------------------------------------------------------------- /assets/icon/personne/fonts/personne.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/personne/fonts/personne.ttf -------------------------------------------------------------------------------- /assets/icon/personne/fonts/personne.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/personne/fonts/personne.woff -------------------------------------------------------------------------------- /assets/icon/securite/fonts/securite.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/securite/fonts/securite.eot -------------------------------------------------------------------------------- /assets/icon/securite/fonts/securite.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/securite/fonts/securite.ttf -------------------------------------------------------------------------------- /assets/icon/securite/fonts/securite.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/securite/fonts/securite.woff -------------------------------------------------------------------------------- /assets/icon/transport/fonts/transport.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/transport/fonts/transport.eot -------------------------------------------------------------------------------- /assets/icon/transport/fonts/transport.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/transport/fonts/transport.ttf -------------------------------------------------------------------------------- /assets/img/NextDom_Interaction_Gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom_Interaction_Gray.png -------------------------------------------------------------------------------- /assets/js/core/jeedom.class.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Interface pour nextdom.class.js 3 | */ 4 | class jeedom extends nextdom { 5 | 6 | } 7 | 8 | -------------------------------------------------------------------------------- /install/OS_specific/Docker/README.md: -------------------------------------------------------------------------------- 1 | ## Installation via docker 2 | 3 | Voir le projet nextdom-docker pour executer nextdom sur docker. -------------------------------------------------------------------------------- /assets/icon/nextdomapp/fonts/nextdomapp.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/nextdomapp/fonts/nextdomapp.eot -------------------------------------------------------------------------------- /assets/icon/nextdomapp/fonts/nextdomapp.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/nextdomapp/fonts/nextdomapp.ttf -------------------------------------------------------------------------------- /assets/icon/nourriture/fonts/nourriture.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/nourriture/fonts/nourriture.eot -------------------------------------------------------------------------------- /assets/icon/nourriture/fonts/nourriture.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/nourriture/fonts/nourriture.ttf -------------------------------------------------------------------------------- /assets/icon/transport/fonts/transport.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/transport/fonts/transport.woff -------------------------------------------------------------------------------- /assets/icon/nextdomapp/fonts/nextdomapp.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/nextdomapp/fonts/nextdomapp.woff -------------------------------------------------------------------------------- /assets/icon/nourriture/fonts/nourriture.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/icon/nourriture/fonts/nourriture.woff -------------------------------------------------------------------------------- /assets/img/NextDom/NextDom_Wide_AlphaBlack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom/NextDom_Wide_AlphaBlack.png -------------------------------------------------------------------------------- /assets/img/NextDom/NextDom_Wide_AlphaWhite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom/NextDom_Wide_AlphaWhite.png -------------------------------------------------------------------------------- /views/templates/dashboard/themes/flat/flat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/views/templates/dashboard/themes/flat/flat.png -------------------------------------------------------------------------------- /assets/img/NextDom/NextDom_Square_AlphaBlack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom/NextDom_Square_AlphaBlack.png -------------------------------------------------------------------------------- /assets/img/NextDom/NextDom_Square_AlphaWhite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom/NextDom_Square_AlphaWhite.png -------------------------------------------------------------------------------- /assets/img/NextDom/NextDom_Wide_AlphaBlackWhite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom/NextDom_Wide_AlphaBlackWhite.png -------------------------------------------------------------------------------- /assets/img/NextDom/NextDom_Wide_AlphaWhiteBlack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom/NextDom_Wide_AlphaWhiteBlack.png -------------------------------------------------------------------------------- /assets/img/NextDom/NextDom_Wide_WhiteBlackBlue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom/NextDom_Wide_WhiteBlackBlue.png -------------------------------------------------------------------------------- /assets/img/NextDom/NextDom_Square_AlphaBlackWhite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom/NextDom_Square_AlphaBlackWhite.png -------------------------------------------------------------------------------- /assets/img/NextDom/NextDom_Square_AlphaWhiteBlack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom/NextDom_Square_AlphaWhiteBlack.png -------------------------------------------------------------------------------- /assets/img/NextDom/NextDom_Square_WhiteBlackBlue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/assets/img/NextDom/NextDom_Square_WhiteBlackBlue.png -------------------------------------------------------------------------------- /install/OS_specific/armbian/post-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | sed -i '/# The named pipe \/dev\/xconsole/,$d' /etc/rsyslog.conf 3 | systemctl restart rsyslog.service -------------------------------------------------------------------------------- /views/templates/dashboard/themes/nextdom/nextdom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/views/templates/dashboard/themes/nextdom/nextdom.png -------------------------------------------------------------------------------- /tests/data/backup-Jeedom-3.2.11-2018-11-17-23h26.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/tests/data/backup-Jeedom-3.2.11-2018-11-17-23h26.tar.gz -------------------------------------------------------------------------------- /views/templates/dashboard/themes/adminlte/adminlte.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NextDom/nextdom-core/HEAD/views/templates/dashboard/themes/adminlte/adminlte.png -------------------------------------------------------------------------------- /tests/docker/nextdom-test/launch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | service cron start 4 | service mysql start 5 | service apache2 start 6 | while true; do 7 | sleep 100 8 | done 9 | -------------------------------------------------------------------------------- /scripts/clean_cache_manager.php: -------------------------------------------------------------------------------- 1 | 2 |
    3 | {{ eqLogicHtml|raw }} 4 |
    5 | 6 | -------------------------------------------------------------------------------- /tests/scripts/remove_docker.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker kill nextdom-test > /dev/null 2>&1 4 | docker rm nextdom-test > /dev/null 2>&1 5 | docker rmi nextdom-test-snap > /dev/null 2>&1 6 | -------------------------------------------------------------------------------- /api/.htaccess: -------------------------------------------------------------------------------- 1 | Options +FollowSymlinks 2 | 3 | RewriteEngine On 4 | RewriteRule ^index.php - [L] 5 | 6 | RewriteCond %{REQUEST_FILENAME} !-f 7 | RewriteRule ^(.*)$ index.php [QSA,L] -------------------------------------------------------------------------------- /core/repo/apt.repo.php: -------------------------------------------------------------------------------- 1 | 2 | ServerAdmin webmaster@localhost 3 | Define wwwdir "/usr/share/nextdom" 4 | Define logdir "/var/log/nextdom" 5 | 6 | Include /etc/apache2/sites-available/nextdom-common 7 | 8 | ErrorLog "${logdir}/http.error" 9 | 10 | -------------------------------------------------------------------------------- /tests/install_chrome.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export CHROME_SOURCE_URL=https://www.slimjet.com/chrome/download-chrome.php?file=files%2F79.0.3945.88%2Fgoogle-chrome-stable_current_amd64.deb 4 | wget --no-verbose -O /tmp/$(basename $CHROME_SOURCE_URL) $CHROME_SOURCE_URL 5 | dpkg -i /tmp/$(basename $CHROME_SOURCE_URL) 6 | apt-get update 7 | apt-get install -yf 8 | -------------------------------------------------------------------------------- /scripts/update_log_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | sed -i 's#/var/www/html/log/http.error#/var/log/nextdom/http.error#g' /etc/apache2/sites-enabled/* 4 | sed -i 's#/var/www/html/log/http.error#/var/log/nextdom/http.error#g' /etc/apache2/conf-enabled/* 5 | mkdir -p /var/log/nextdom/scenarioLog 6 | chown www-data:www-data -R /var/log/nextdom 7 | service apache2 restart -------------------------------------------------------------------------------- /assets/config/dist/opcache.ini.dist: -------------------------------------------------------------------------------- 1 | ; configuration for php opcache module 2 | ; priority=10 3 | zend_extension=opcache.so 4 | 5 | opcache.enable=1 6 | opcache.memory_consumption=64 7 | opcache.interned_strings_buffer=8 8 | opcache.max_accelerated_files=79433 9 | opcache.revalidate_freq=60 10 | opcache.revalidate_path=0 11 | opcache.enable_file_override=1 12 | -------------------------------------------------------------------------------- /tests/phpunit_tests/libs/BaseTest.php: -------------------------------------------------------------------------------- 1 | 2 | {{Nom}} 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/Model/Entity/Parents/RefreshEntity.php: -------------------------------------------------------------------------------- 1 | 2 |
    #name_display# #state#
    3 | -------------------------------------------------------------------------------- /tests/start_docker_test.py: -------------------------------------------------------------------------------- 1 | """Launch NextDom GUI tests 2 | """ 3 | from pylibs.tests_funcs import * 4 | 5 | NEXTDOM_URL = 'http://127.0.0.1:8765' 6 | NEXTDOM_LOGIN = 'admin' 7 | NEXTDOM_PASSWORD = 'nextdom-test' 8 | 9 | if __name__ == "__main__": 10 | init_docker() 11 | start_test_container('test', NEXTDOM_PASSWORD) 12 | input('Press enter to stop container') 13 | remove_test_container('test') 14 | -------------------------------------------------------------------------------- /install/fix_apache_private_tmp.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | rm /etc/systemd/system/multi-user.target.wants/apache2.service 3 | cp /lib/systemd/system/apache2.service /etc/systemd/system/multi-user.target.wants/ 4 | sed -i 's/PrivateTmp=true/PrivateTmp=false/g' /etc/systemd/system/multi-user.target.wants/apache2.service > /dev/null 2>&1 5 | sed -i 's/PrivateTmp=true/PrivateTmp=false/g' /lib/systemd/system/apache2.service > /dev/null 2>&1 6 | systemctl daemon-reload -------------------------------------------------------------------------------- /tests/docker/nextdom-dev/with-samba.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [ ${ENABLE_SMB:-0} -eq 0 ]; then 4 | exit 0 5 | fi 6 | 7 | 8 | apt-get update -y 9 | apt-get --yes install samba 10 | 11 | useradd nextdom 12 | echo -e "nextdom\nnextdom" | smbpasswd -s -a nextdom 13 | 14 | cat - >> /etc/samba/smb.conf < 2 | My Plugin 3 | 4 | -------------------------------------------------------------------------------- /scripts/clear_cache.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | LIB_DIRECTORY=/var/lib/nextdom 4 | 5 | # Clear traductions cache 6 | if [ -d ${LIB_DIRECTORY}/cache/i18n ]; then 7 | rm -fr ${LIB_DIRECTORY}/cache/i18n/* 8 | fi 9 | 10 | # Clear routes cache 11 | if [ -d ${LIB_DIRECTORY}/cache/routes ]; then 12 | rm -fr ${LIB_DIRECTORY}/cache/routes/* 13 | fi 14 | 15 | # Clear twig cache 16 | if [ -d ${LIB_DIRECTORY}/cache/twig ]; then 17 | rm -fr ${LIB_DIRECTORY}/cache/twig/* 18 | fi 19 | -------------------------------------------------------------------------------- /views/templates/scenario/sleep.default.html: -------------------------------------------------------------------------------- 1 |
    2 | {{Durée}} (sec) 3 | 4 |
    5 | -------------------------------------------------------------------------------- /tests/phpunit_tests/Gui/ModalPageTest.php: -------------------------------------------------------------------------------- 1 | goTo('index.php?v=d&p=dashboard'); 10 | $this->crawler->filter('#bt_messageModal')->click(); 11 | sleep(2); 12 | $this->assertEquals('a', $this->crawler->filter('#bt_clearMessage')->getTagName()); 13 | $this->checkJs(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /views/templates/dashboard/cmd.info.numeric.rain/water.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /views/templates/scenario/cmd.action.select.default.html: -------------------------------------------------------------------------------- 1 |
    2 | #name_display# 3 | 4 | 7 |
    8 | -------------------------------------------------------------------------------- /tests/scripts/start_test_container.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker run -d -p 8765:80 --name=$1 nextdom-test-snap:latest /launch.sh > /dev/null 2>&1 4 | sleep 10 5 | if [ "$2" != "" ]; then 6 | ./scripts/sed_in_docker.sh "nextdom::firstUse = 1" "nextdom::firstUse = 0" /var/lib/nextdom/config/default.config.ini $1 7 | ./scripts/sed_in_docker.sh "nextdom::Welcome = 1" "nextdom::Welcome = 0" /var/lib/nextdom/config/default.config.ini $1 8 | docker exec -i $1 /usr/bin/mysql -u root nextdom <<< "UPDATE user SET password = SHA2('$2', 512)" 9 | fi 10 | -------------------------------------------------------------------------------- /install/OS_specific/windows/pre_inst.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Hacks for "bash for windows" 4 | if [[ $(uname -r | grep -i microsoft) = "" ]] ; then exit 0 ; fi 5 | 6 | # Apache 2 hack 7 | #sed -i "s/^Listen 80.*/Listen 8000/g" /etc/apache2/ports.conf 8 | sed -i "/^Servername.*/d" /etc/apache2/apache2.conf 9 | sed -i "/^AcceptFilter.*/d" /etc/apache2/apache2.conf 10 | echo "Servername localhost" >> /etc/apache2/apache2.conf 11 | echo "AcceptFilter http none" >> /etc/apache2/apache2.conf 12 | echo "AcceptFilter https none" >> /etc/apache2/apache2.conf 13 | -------------------------------------------------------------------------------- /install/apache/nextdom-ssl.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | ServerAdmin webmaster@localhost 4 | Define wwwdir "/usr/share/nextdom" 5 | Define logdir "/var/log/nextdom" 6 | 7 | SSLEngine on 8 | SSLHonorCipherOrder on 9 | SSLCertificateFile /etc/nextdom/ssl/nextdom.crt 10 | SSLCertificateKeyFile /etc/nextdom/ssl/nextdom.key 11 | 12 | Include /etc/apache2/sites-available/nextdom-common 13 | 14 | ErrorLog "${logdir}/http.error" 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/data/smallest_scenario.sql: -------------------------------------------------------------------------------- 1 | SET FOREIGN_KEY_CHECKS=0; 2 | INSERT INTO `scenario` VALUES (1,'Test scenario','',1,'schedule','* * * * *','[\"1\"]','[\"\"]',NULL,1,NULL,'{\"name\":\"\"}','','{\"timeDependency\":0,\"has_return\":0,\"logmode\":\"default\",\"allowMultiInstance\":\"0\",\"syncmode\":\"0\",\"timeline::enable\":\"0\"}',99,'expert'); 3 | INSERT INTO `scenarioElement` VALUES (1,0,'action',NULL,NULL,NULL); 4 | INSERT INTO `scenarioExpression` VALUES (1,0,1,'action',NULL,'log','{\"enable\":\"1\",\"background\":\"0\",\"message\":\"LAUNCHED\"}',NULL); 5 | SET FOREIGN_KEY_CHECKS=1; 6 | -------------------------------------------------------------------------------- /tests/data/plugin4tests/plugin_info/info.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "plugin4tests", 3 | "name": "Plugin4Tests", 4 | "licence": "GPL", 5 | "require": "3.0", 6 | "version": "1.0", 7 | "category": "programming", 8 | "hasDependency": false, 9 | "hasOwnDaemon": false, 10 | "maxDependancyInstallTime": 0, 11 | "documentation": "https://nextdom.github.io/plugin-plugin4tests/#language#/", 12 | "changelog": "https://nextdom.github.io/plugin-plugin4tests/#language#/changelog", 13 | "description": "Plugin with some features useful for testing", 14 | "author": "NextDom" 15 | } 16 | -------------------------------------------------------------------------------- /.sonarcloud.properties: -------------------------------------------------------------------------------- 1 | # Path to sources 2 | sonar.sources=src 3 | #sonar.exclusions= 4 | #sonar.inclusions= 5 | 6 | # Path to tests 7 | #sonar.tests= 8 | #sonar.test.exclusions= 9 | #sonar.test.inclusions= 10 | 11 | # Source encoding 12 | sonar.sourceEncoding=UTF-8 13 | 14 | sonar.php.tests.reportPath=tests/coverage/junitlog.xml 15 | sonar.php.coverage.reportPaths=tests/coverage/clover.xml 16 | 17 | sonar.coverageReportPaths=tests/coverage/clover.xml 18 | sonar.testExecutionReportPaths=tests/coverage/junitlog.xml 19 | 20 | # Exclusions for copy-paste detection 21 | #sonar.cpd.exclusions= -------------------------------------------------------------------------------- /scripts/phpdox/phploc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /assets/js/factory/elements/A.js: -------------------------------------------------------------------------------- 1 | /* exported A */ 2 | /* global NextDomEnum NextDomElement */ 3 | 4 | /* 5 | * A(_id, _className) 6 | */ 7 | class A extends NextDomElement { 8 | /** 9 | * @constructor A 10 | * @description Object to create an A element 11 | * @extends Element 12 | * @public 13 | * @param {string} _id id of the th element 14 | * @param {string} _className name's class 15 | * @return {void} 16 | */ 17 | constructor(_id, _className) { 18 | super(_id,_className); 19 | this.htmlElement = this.createHTMLElement(NextDomEnum.ElementType.A); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /assets/js/factory/elements/Br.js: -------------------------------------------------------------------------------- 1 | /* exported Br */ 2 | /* global NextDomElement */ 3 | 4 | /* 5 | * Br(_id, _className) 6 | */ 7 | class Br extends NextDomElement { 8 | /** 9 | * @constructor Br 10 | * @description Object to create a textNode element 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id Description 14 | * @param {string} _className name's class 15 | * @return {void} 16 | */ 17 | constructor(_id,_className) { 18 | super(_id,_className); 19 | this.htmlElement = this.createHTMLElement(NextDomEnum.ElementType.BR); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /assets/js/factory/elements/Td.js: -------------------------------------------------------------------------------- 1 | /* exported Td */ 2 | /* global NextDomEnum NextDomElement */ 3 | 4 | /* 5 | * Td(_id, _className, _nextdomElement) 6 | */ 7 | class Td extends NextDomElement { 8 | /** 9 | * @constructor Td 10 | * @description Object to create a td element 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id Description 14 | * @param {string} _className name's class 15 | * @return {void} 16 | */ 17 | constructor(_id,_className) { 18 | super(_id,_className); 19 | this.htmlElement = this.createHTMLElement(NextDomEnum.ElementType.TD); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /assets/js/factory/elements/Th.js: -------------------------------------------------------------------------------- 1 | /* exported Th */ 2 | /* global NextDomEnum NextDomElement */ 3 | 4 | /* 5 | * Th(_id, _className, _nextdomElement) 6 | */ 7 | class Th extends NextDomElement { 8 | /** 9 | * @constructor Th 10 | * @description Object to create a th element 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id Description 14 | * @param {string} _className name's class 15 | * @return {void} 16 | */ 17 | constructor(_id,_className) { 18 | super(_id,_className); 19 | this.htmlElement = this.createHTMLElement(NextDomEnum.ElementType.TH); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /assets/js/factory/elements/Tr.js: -------------------------------------------------------------------------------- 1 | /* exported Tr */ 2 | /* global NextDomEnum NextDomElement */ 3 | 4 | /* 5 | * Tr(_id, _className, _nextdomElement) 6 | */ 7 | class Tr extends NextDomElement { 8 | /** 9 | * @constructor Tr 10 | * @description Object to create a tr element 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id Description 14 | * @param {string} _className name's class 15 | * @return {void} 16 | */ 17 | constructor(_id,_className) { 18 | super(_id,_className); 19 | this.htmlElement = this.createHTMLElement(NextDomEnum.ElementType.TR); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /assets/js/factory/elements/Thead.js: -------------------------------------------------------------------------------- 1 | /* exported Thead */ 2 | /* global NextDomEnum NextDomElement */ 3 | 4 | /* 5 | * Thead(_id, _className, _nextdomElement) 6 | */ 7 | class Thead extends NextDomElement { 8 | /** 9 | * @constructor Thead 10 | * @description Object to create a thead element 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id Description 14 | * @param {string} _className name's class 15 | * @return {void} 16 | */ 17 | constructor(_id,_className) { 18 | super(_id,_className); 19 | this.htmlElement = this.createHTMLElement(NextDomEnum.ElementType.THEAD); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /scripts/deb-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "$(id -u)" != "0" ]; then 4 | echo "This script must be run as root" 5 | exit 1; 6 | fi 7 | echo " >>> Installing apt packages" 8 | apt install -y software-properties-common gnupg wget 9 | echo " >>> Add non-free repositories" 10 | add-apt-repository non-free 11 | echo " >>> Add NextDom repository" 12 | wget -qO - http://debian.nextdom.org/debian/nextdom.gpg.key | apt-key add - 13 | echo "deb http://debian.nextdom.org/debian nextdom main" >/etc/apt/sources.list.d/nextdom.list 14 | echo " >>> Update packages list" 15 | apt update 16 | echo " >>> Start installation" 17 | apt -y install nextdom 18 | 19 | -------------------------------------------------------------------------------- /assets/js/factory/elements/Space.js: -------------------------------------------------------------------------------- 1 | /* exported Space */ 2 | /* global NextDomElement */ 3 | 4 | /* 5 | * Space(_id, _className) 6 | */ 7 | class Space extends NextDomElement { 8 | /** 9 | * @constructor Space 10 | * @description Object to create a textNode element with a space 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id Description 14 | * @param {string} _className name's class 15 | * @return {void} 16 | */ 17 | constructor(_id,_className) { 18 | super(_id,_className); 19 | this.htmlElement = new TextNode(_id, _className, NextDomEnum.ElementType.SPACE).htmlElement; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /assets/js/factory/elements/Tbody.js: -------------------------------------------------------------------------------- 1 | /* exported Tbody */ 2 | /* global NextDomEnum NextDomElement */ 3 | 4 | /* 5 | * Tbody(_id, _className, _nextdomElement) 6 | */ 7 | class Tbody extends NextDomElement { 8 | /** 9 | * @constructor Tbody 10 | * @description Object to create a tbody element 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id Description 14 | * @param {string} _className name's class 15 | * @return {void} 16 | */ 17 | constructor(_id,_className) { 18 | super(_id,_className); 19 | this.htmlElement = this.createHTMLElement(NextDomEnum.ElementType.TBODY); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /assets/js/factory/elements/Span.js: -------------------------------------------------------------------------------- 1 | /* exported Span */ 2 | /* global NextDomEnum NextDomElement */ 3 | 4 | /* 5 | * Span(_id, _className, _nextdomElement) 6 | */ 7 | class Span extends NextDomElement { 8 | /** 9 | * @constructor Span 10 | * @description Object to create a span element 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id id of the th element 14 | * @param {string} _className name's class 15 | * @return {void} 16 | */ 17 | constructor(_id,_className) { 18 | super(_id,_className); 19 | this.htmlElement = this.createHTMLElement(NextDomEnum.ElementType.SPAN); 20 | } 21 | } -------------------------------------------------------------------------------- /scripts/push_doc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | git clone https://github.com/NextDom/nextdom-core-doc 4 | cp scripts/phpdox/phpdox.xml . 5 | wget http://phpdox.de/releases/phpdox.phar 6 | php phpdox.phar 7 | cp -fr nextdom-core-doc/.git docs/ 8 | cd docs 9 | mv html docs 10 | cd docs 11 | git add * 12 | git add -u . 13 | # Too much files 14 | #git add *.png 15 | #git add *.css 16 | #git add *.js 17 | #git add *.md5 18 | #git add *.map 19 | #git add *.html 20 | #git add search 21 | #sleep 10 22 | #git add -u . 23 | #sleep 10 24 | git commit -m `date '+%Y%m%d'` 25 | #sleep 10 26 | git push "https://$GITHUB_TOKEN@github.com/NextDom/nextdom-core-doc.git" master 27 | #sleep 10 28 | -------------------------------------------------------------------------------- /assets/js/factory/elements/TextNode.js: -------------------------------------------------------------------------------- 1 | /* exported TextNode */ 2 | /* global NextDomElement */ 3 | 4 | /* 5 | * TextNode(_id, _className, _content) 6 | */ 7 | class TextNode extends NextDomElement { 8 | /** 9 | * @constructor TextNode 10 | * @description Object to create a textNode element 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id Description 14 | * @param {string} _className name's class 15 | * @param {string} _content text to display 16 | * @return {void} 17 | */ 18 | constructor(_id,_className,_content) { 19 | super(_id,_className); 20 | this.htmlElement = this.createTextNode(_content); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /views/templates/dashboard/cmd.info.string.buttonImage.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 | #name_display# 4 |
    5 | 13 |
    14 | -------------------------------------------------------------------------------- /assets/js/factory/elements/IFA.js: -------------------------------------------------------------------------------- 1 | /* exported IFA */ 2 | /* global NextDomEnum NextDomElement */ 3 | 4 | /* 5 | * IFA(_id, _className, _nextdomElement) 6 | */ 7 | class IFA extends NextDomElement { 8 | /** 9 | * @constructor IFA 10 | * @description Object to create an IFA element 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id id of the th element 14 | * @param {string} _className name's class 15 | * @return {void} 16 | */ 17 | constructor(_id, _className) { 18 | super(_id,_className); 19 | this.htmlElement = this.createHTMLElement(NextDomEnum.ElementType.I); 20 | this.htmlElement.className = _className; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Model/DataClass/WidgetTheme.php: -------------------------------------------------------------------------------- 1 | icon = $icon; 14 | $iconFilename = basename($icon); 15 | $this->code = substr($iconFilename, 0, strpos($iconFilename, '.')); 16 | } 17 | 18 | /** 19 | * @return string 20 | */ 21 | public function getIcon() 22 | { 23 | return $this->icon; 24 | } 25 | 26 | /** 27 | * @return string 28 | */ 29 | public function getCode() 30 | { 31 | return $this->code; 32 | } 33 | } -------------------------------------------------------------------------------- /views/templates/dashboard/cmd.action.select.default.html: -------------------------------------------------------------------------------- 1 |
    2 |
    #name_display#
    3 | 4 | 9 |
    10 | -------------------------------------------------------------------------------- /views/templates/dashboard/cmd.action.upload.default.html: -------------------------------------------------------------------------------- 1 |
    2 |
    #name_display#
    3 | 4 | 13 |
    14 | -------------------------------------------------------------------------------- /views/templates/dashboard/cmd.action.text.default.html: -------------------------------------------------------------------------------- 1 |
    2 | 3 |
    #name#
    4 | 9 |
    -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | nbproject/ 2 | test.php 3 | core/config/common.config.php 4 | /plugins 5 | sftp-config.json 6 | *.iml 7 | 8 | .idea 9 | .project 10 | .vscode 11 | 12 | log/* 13 | !log/.htaccess 14 | 15 | tmp/* 16 | !tmp/.htaccess 17 | 18 | Thumbs.db 19 | .DS_Store 20 | /.buildpath 21 | cache.tar.gz 22 | 23 | /vendor 24 | /scripts/phpdox/vendor 25 | composer.phar 26 | var/market_cache/* 27 | backup/* 28 | var/* 29 | /public/* 30 | /.sass-cache 31 | /DB_Backup.sql 32 | 33 | __pycache__/ 34 | tests/tests/chromedriver* 35 | 36 | core/config 37 | core/css 38 | core/js 39 | core/template 40 | 41 | /var.* 42 | /var 43 | /data.* 44 | /data 45 | /mobile 46 | /docs 47 | /tests/coverage 48 | 49 | /assets/config/default.config.ini 50 | /assets/css/builded/ 51 | -------------------------------------------------------------------------------- /scripts/translate.php: -------------------------------------------------------------------------------- 1 | 2 | #icon# 3 | {{Rechercher icône}} 4 | 11 | -------------------------------------------------------------------------------- /core/php/getJS.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | require_once 'getResource.php'; -------------------------------------------------------------------------------- /src/Model/Entity/Parents/NameEntity.php: -------------------------------------------------------------------------------- 1 | name; 22 | } 23 | 24 | /** 25 | * @param $_name 26 | * @return $this 27 | */ 28 | public function setName($_name) 29 | { 30 | $this->updateChangeState($this->name, $_name); 31 | $this->name = $_name; 32 | return $this; 33 | } 34 | } -------------------------------------------------------------------------------- /assets/js/factory/elements/Label.js: -------------------------------------------------------------------------------- 1 | /* exported Label */ 2 | /* global NextDomElement NextDomEnum TextNode */ 3 | 4 | /* 5 | * Label(_id, _className, _content) 6 | */ 7 | class Label extends NextDomElement { 8 | /** 9 | * @constructor Label 10 | * @description Object to create a label element 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id id of the div element 14 | * @param {string} _className name's class 15 | * @param {string} _content nextdom element to add as child 16 | * @return {void} 17 | */ 18 | constructor(_id,_className,_content) { 19 | super(_id,_className); 20 | this.htmlElement = this.createHTMLElement(NextDomEnum.ElementType.LABEL); 21 | this.addChild(new TextNode("","",_content)); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Model/Entity/Parents/BaseEntity.php: -------------------------------------------------------------------------------- 1 | id; 24 | } 25 | 26 | /** 27 | * @param $_id 28 | * @return $this 29 | */ 30 | public function setId($_id) 31 | { 32 | $this->updateChangeState($this->id, $_id); 33 | $this->id = $_id; 34 | return $this; 35 | } 36 | } -------------------------------------------------------------------------------- /views/templates/scenario/cmd.action.text.default.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/data/plugin4tests/desktop/css/plugin4tests.css: -------------------------------------------------------------------------------- 1 | #ul_eqLogic a { 2 | width: 100%; 3 | margin-top: 5px; 4 | margin-bottom: 5px; 5 | } 6 | 7 | #ul_eqLogic .filter { 8 | margin-bottom: 5px; 9 | } 10 | 11 | #ul_eqLogic .filter input { 12 | width: 100%; 13 | } 14 | 15 | .eqLogicThumbnailDisplay .eqLogicDisplayCard i { 16 | margin-bottom: 0 !important; 17 | } 18 | 19 | .eqLogic { 20 | border-left: solid 1px #eee; 21 | padding-left: 25px; 22 | } 23 | 24 | .eqLogic-form { 25 | height: calc(100% - 50px); 26 | overflow: auto; 27 | overflow-x: hidden; 28 | } 29 | 30 | .cmdAttrHidden, 31 | input[data-l1key="id"] { 32 | display: none; 33 | } 34 | 35 | #add-eqlogic-btn { 36 | color: #33b8cc; 37 | } 38 | 39 | #config-btn { 40 | color: #767676; 41 | } -------------------------------------------------------------------------------- /tests/phpunit_tests/libs/BaseAjaxTest.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | require_once 'getResource.php'; 20 | 21 | -------------------------------------------------------------------------------- /core/php/getResource.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | require_once ('../../src/Api/getResource.php'); 19 | 20 | -------------------------------------------------------------------------------- /core/php/watchdog.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | require_once ('../../scripts/watchdog.php'); 19 | -------------------------------------------------------------------------------- /core/php/export.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | require_once __DIR__ . '/../../src/Api/export.php'; -------------------------------------------------------------------------------- /assets/js/factory/elements/Button.js: -------------------------------------------------------------------------------- 1 | /* exported Button */ 2 | 3 | 4 | /* 5 | * Button(_id, _className, _event) 6 | */ 7 | class Button extends NextDomElement { 8 | /** 9 | * @constructor Div 10 | * @description Object to create a button element 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id id of the button element 14 | * @param {string} _className name's class 15 | * @param {string} _function name's function to call 16 | * @return {void} 17 | */ 18 | constructor(_id, _className, _function) { 19 | super(_id,_className); 20 | this.htmlElement = this.createHTMLElement(NextDomEnum.ElementType.BUTTON); 21 | this.htmlElement.addEventListener(NextDomEnum.DOMEvent.CLICK,_function); 22 | } 23 | } -------------------------------------------------------------------------------- /core/class/jeedom.class.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | class jeedom extends nextdom { 19 | 20 | } 21 | -------------------------------------------------------------------------------- /core/php/downloadFile.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | require_once ('../../src/Api/downloadFile.php'); 20 | -------------------------------------------------------------------------------- /core/php/icon.inc.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | require_once ('../../src/Api/icon.inc.php'); 20 | 21 | -------------------------------------------------------------------------------- /core/php/jeeCron.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | require_once ('../../src/Api/start_cron.php'); 20 | 21 | -------------------------------------------------------------------------------- /src/Model/Entity/Parents/PositionEntity.php: -------------------------------------------------------------------------------- 1 | position; 22 | } 23 | 24 | /** 25 | * @param $_position 26 | * @return $this 27 | */ 28 | public function setPosition($_position) 29 | { 30 | $this->updateChangeState($this->position, $_position); 31 | $this->position = $_position; 32 | return $this; 33 | } 34 | } -------------------------------------------------------------------------------- /scripts/phpdox/phpdox.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /core/php/jeePlugin.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | require_once ('../../src/Api/start_plugin_func.php'); 20 | 21 | -------------------------------------------------------------------------------- /core/php/jeeScenario.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | require_once ('../../src/Api/start_scenario.php'); 20 | 21 | -------------------------------------------------------------------------------- /core/php/jeeListener.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | require_once ('../../src/Api/start_listener.php'); 20 | -------------------------------------------------------------------------------- /core/php/jeeScenarioExpression.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | require_once ('../../src/Api/start_scenario_expr.php'); 20 | -------------------------------------------------------------------------------- /views/modals/scenario.human.insert.html.twig: -------------------------------------------------------------------------------- 1 |
    2 | 7 |
    8 | 24 | -------------------------------------------------------------------------------- /src/Model/Entity/Parents/LogicalIdEntity.php: -------------------------------------------------------------------------------- 1 | logicalId; 22 | } 23 | 24 | /** 25 | * @param $_logicalId 26 | * @return $this 27 | */ 28 | public function setLogicalId($_logicalId) 29 | { 30 | $this->updateChangeState($this->logicalId, $_logicalId); 31 | $this->logicalId = $_logicalId; 32 | return $this; 33 | } 34 | } -------------------------------------------------------------------------------- /core/class/jsonrpcClient.class.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | class jsonrpcClient extends \NextDom\Model\Entity\JsonRPCClient { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /tests/phpunit_tests/Gui/PlanPageTest.php: -------------------------------------------------------------------------------- 1 | goTo('index.php?v=d&p=plan'); 10 | $this->assertEquals('div', $this->crawler->filter('div[data-eqlogic_id="4"]')->getTagName()); 11 | $this->checkJs(); 12 | } 13 | 14 | public function testViewEditPage() 15 | { 16 | $this->goTo('index.php?v=d&p=plan'); 17 | 18 | $this->client->executeScript('showConfigModal();'); 19 | sleep(3); 20 | $this->assertEquals('a', $this->crawler->filter('#bt_saveConfigurePlanHeader')->getTagName()); 21 | $this->assertEquals('a', $this->crawler->filter('#bt_chooseIcon')->getTagName()); 22 | $this->checkJs(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /assets/js/factory/elements/InputText.js: -------------------------------------------------------------------------------- 1 | /* exported InputText */ 2 | /* global NextDomElement NextDomEnum TextNode */ 3 | 4 | /* 5 | * InputText(_id, _className, _content) 6 | */ 7 | class InputText extends NextDomElement { 8 | /** 9 | * @constructor InputText 10 | * @description Object to create an input text 11 | * @extends NextDomElement 12 | * @public 13 | * @param {string} _id id of the div element 14 | * @param {string} _className name's class 15 | * @param {string} _content text value 16 | * @return {void} 17 | */ 18 | constructor(_id,_className,_content) { 19 | super(_id,_className); 20 | this.htmlElement = this.createHTMLElement(NextDomEnum.ElementType.INPUTTEXT); 21 | this.htmlElement.setAttribute("value", _content); 22 | this.htmlElement.setAttribute("alt", _content); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Model/Entity/Parents/OrderEntity.php: -------------------------------------------------------------------------------- 1 | order)) { 22 | return 0; 23 | } 24 | return $this->order; 25 | } 26 | 27 | /** 28 | * @param $_order 29 | * @return $this 30 | */ 31 | public function setOrder($_order) 32 | { 33 | $this->updateChangeState($this->order, $_order); 34 | $this->order = $_order; 35 | return $this; 36 | } 37 | } -------------------------------------------------------------------------------- /core/com/http.com.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | require_once __DIR__ . '/../../src/core.php'; 20 | 21 | class com_http extends \NextDom\Com\ComHttp { 22 | } 23 | -------------------------------------------------------------------------------- /core/com/shell.com.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | require_once __DIR__ . '/../../src/core.php'; 20 | 21 | class com_shell extends \NextDom\Com\ComShell { 22 | } 23 | -------------------------------------------------------------------------------- /assets/css/themes/output/mix-blue.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('mix',#4b9fe1,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/mix-gold.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('mix',#c6ad8f,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/mix-gray.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('mix',#929d9e,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/mix-teal.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('mix',#7da2a9,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/dark-black.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('dark',#18181e,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/dark-blue.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('dark',#4b9fe1,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/dark-gold.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('dark',#c6ad8f,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/dark-gray.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('dark',#929d9e,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/dark-green.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('dark',#00a65a,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/dark-nextdom.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('dark',#33B8CC,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/dark-orange.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('dark',#fa9b28,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/dark-teal.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('dark',#7da2a9,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/dark-yellow.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('dark',#FED100,#000000); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/light-black.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('light',#18181e,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/light-blue.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('light',#4b9fe1,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/light-gold.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('light',#c6ad8f,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/light-gray.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('light',#929d9e,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/light-green.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('light',#00a65a,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/light-teal.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('light',#7da2a9,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/mix-black.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('mix',#18181e,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/mix-green.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('mix',#00a65a,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/mix-nextdom.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('mix',#33B8CC,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/mix-orange.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('mix',#fa9b28,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/mix-yellow.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('mix',#FED100,#000000); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /src/Interfaces/EntityInterface.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Interfaces; 19 | 20 | interface EntityInterface 21 | { 22 | function getTableName(); 23 | } 24 | -------------------------------------------------------------------------------- /src/Model/Entity/Parents/TypeEntity.php: -------------------------------------------------------------------------------- 1 | type; 22 | } 23 | 24 | /** 25 | * @param $_type 26 | * @return $this 27 | */ 28 | public function setType($_type) 29 | { 30 | $this->updateChangeState($this->type, $_type); 31 | $this->type = $_type; 32 | return $this; 33 | } 34 | 35 | public function isType($typeToTest) 36 | { 37 | return $this->type === $typeToTest; 38 | } 39 | } -------------------------------------------------------------------------------- /assets/css/themes/output/light-nextdom.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('light',#33B8CC,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/light-orange.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('light',#fa9b28,#ffffff); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /assets/css/themes/output/light-yellow.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | */ 17 | @import '../_types'; 18 | $color_theme: get_theme('light',#FED100,#000000); 19 | @import '../_base'; 20 | -------------------------------------------------------------------------------- /core/ajax/cmd.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\CmdAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $cmdAjax = new CmdAjax(); 24 | $cmdAjax->process(); 25 | 26 | -------------------------------------------------------------------------------- /tests/docker/nextdom-test/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | rsync -av \ 4 | --info=progress2 /data/ /usr/share/nextdom/ \ 5 | --exclude scripts/phpdox \ 6 | --exclude plugins \ 7 | --exclude docs \ 8 | --exclude vendor \ 9 | --exclude public \ 10 | --exclude .git \ 11 | --exclude .sass-cache \ 12 | --exclude docs \ 13 | --exclude var \ 14 | --exclude backup 15 | 16 | # as if we were in 'dev' mode 17 | mkdir -p /usr/share/nextdom/.git 18 | 19 | # as if nextdowm was installed by debian package 20 | chown root:root -R /usr/share/nextdom 21 | 22 | service cron start 23 | service mysql start 24 | service apache2 start 25 | 26 | bash -x /usr/share/nextdom/install/postinst 27 | 28 | mysql -u root -e "UPDATE nextdom.user SET password = SHA2('nextdom_test', 512)" 29 | 30 | echo NEXTDOM TEST READY 31 | while true; do 32 | sleep 50 33 | done 34 | 35 | -------------------------------------------------------------------------------- /core/class/jsonrpc.class.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | /* * ***************************Includes********************************* */ 20 | 21 | class jsonrpc extends \NextDom\Model\Entity\JsonRPC { 22 | 23 | } 24 | -------------------------------------------------------------------------------- /core/ajax/log.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\LogAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $logAjax = new LogAjax(); 24 | $logAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/cron.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\CronAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $cronAjax = new CronAjax(); 24 | $cronAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/note.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\NoteAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $noteAjax = new NoteAjax(); 24 | $noteAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/plan.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\PlanAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $planAjax = new PlanAjax(); 24 | $planAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/repo.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\RepoAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $repoAjax = new RepoAjax(); 24 | $repoAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/user.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\UserAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $userAjax = new UserAjax(); 24 | $userAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/view.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\ViewAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $viewAjax = new ViewAjax(); 24 | $viewAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/cache.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\CacheAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $cacheAjax = new CacheAjax(); 24 | $cacheAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/event.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\EventAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $eventAjax = new EventAjax(); 24 | $eventAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/widgets.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\WidgetAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $viewAjax = new WidgetAjax(); 24 | $viewAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/config.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\ConfigAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $configAjax = new ConfigAjax(); 24 | $configAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/object.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\ObjectAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $objectAjax = new ObjectAjax(); 24 | $objectAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/plugin.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\PluginAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $pluginAjax = new PluginAjax(); 24 | $pluginAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/report.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\ReportAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $reportAjax = new ReportAjax(); 24 | $reportAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/update.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\UpdateAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $updateAjax = new UpdateAjax(); 24 | $updateAjax->process(); 25 | -------------------------------------------------------------------------------- /assets/icon/securite/style.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'securite'; 3 | src:url('fonts/securite.eot'); 4 | src:url('fonts/securite.eot') format('embedded-opentype'), 5 | url('fonts/securite.woff') format('woff'), 6 | url('fonts/securite.ttf') format('truetype'), 7 | url('fonts/securite.svg') format('svg'); 8 | font-weight: normal; 9 | font-style: normal; 10 | } 11 | 12 | [class^="securite-"], [class*=" securite-"] { 13 | font-family: 'securite'; 14 | speak: none; 15 | font-style: normal; 16 | font-weight: normal; 17 | font-variant: normal; 18 | text-transform: none; 19 | line-height: 1; 20 | 21 | /* Better Font Rendering =========== */ 22 | -webkit-font-smoothing: antialiased; 23 | -moz-osx-font-smoothing: grayscale; 24 | } 25 | 26 | .securite-key1:before { 27 | content: "\e600"; 28 | } 29 | .securite-fbi:before { 30 | content: "\e601"; 31 | } 32 | .securite-exit7:before { 33 | content: "\e602"; 34 | } 35 | -------------------------------------------------------------------------------- /core/ajax/eqLogic.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\EqLogicAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $eqLogicAjax = new EqLogicAjax(); 24 | $eqLogicAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/message.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\MessageAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $messageAjax = new MessageAjax(); 24 | $messageAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/network.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\NetworkAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $networkAjax = new NetworkAjax(); 24 | $networkAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/nextdom.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\NextDomAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $nextdomAjax = new NextDomAjax(); 24 | $nextdomAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/profils.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\ProfilsAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $profilsAjax = new ProfilsAjax(); 24 | $profilsAjax->process(); 25 | -------------------------------------------------------------------------------- /src/Exceptions/DbException.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Exceptions; 19 | 20 | /** 21 | * Class DbException 22 | * @package NextDom\Exceptions 23 | */ 24 | class DbException extends \Exception 25 | { 26 | } -------------------------------------------------------------------------------- /core/ajax/interact.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\InteractAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $interactAjax = new InteractAjax(); 24 | $interactAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/listener.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\ListenerAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $listenerAjax = new ListenerAjax(); 24 | $listenerAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/scenario.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\ScenarioAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $scenarioAjax = new ScenarioAjax(); 24 | $scenarioAjax->process(); 25 | -------------------------------------------------------------------------------- /core/ajax/dataStore.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\DataStoreAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $dataStoreAjax = new DataStoreAjax(); 24 | $dataStoreAjax->process(); 25 | -------------------------------------------------------------------------------- /core/class/object.class.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | /* * ***************************Includes********************************* */ 20 | 21 | require_once __DIR__ . '/../../core/php/core.inc.php'; 22 | 23 | class object extends jeeObject {} -------------------------------------------------------------------------------- /src/Exceptions/PluginException.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Exceptions; 19 | 20 | /** 21 | * Class PluginException 22 | * @package NextDom\Exceptions 23 | */ 24 | class PluginException extends \Exception 25 | { 26 | } 27 | -------------------------------------------------------------------------------- /views/templates/scenario/cmd.action.slider.default.html: -------------------------------------------------------------------------------- 1 |
    2 | #slider_placeholder# 3 | 4 | 5 | 6 | 7 |
    8 | 9 | 16 | -------------------------------------------------------------------------------- /core/ajax/nextdom_market.ajax.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | use NextDom\Ajax\NextDomMarketAjax; 20 | 21 | require_once (__DIR__ . '/../../src/core.php'); 22 | 23 | $nextDomMarketAjax = new NextDomMarketAjax(); 24 | $nextDomMarketAjax->process(); 25 | -------------------------------------------------------------------------------- /src/Exceptions/MarketException.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | namespace NextDom\Exceptions; 20 | 21 | 22 | /** 23 | * Class MarketException 24 | * @package NextDom\Exceptions 25 | */ 26 | class MarketException extends \Exception 27 | { 28 | } 29 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/rapport-de-bug.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Rapport de Bug 3 | about: Créer un rapport pour nous aider à améliorer le Core... 4 | title: '' 5 | labels: Status_New, bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Décrivez le bug** 11 | Une description claire et concise du problème avec si possible une capture d'écran ou un log... 12 | 13 | **Comment reproduire ?** 14 | Étapes pour reproduire le problème : 15 | 1. Aller '...' 16 | 2. Cliquez sur '....' 17 | 3. Faites défiler jusqu'à '....' 18 | 4. Etc... 19 | 20 | **Screenshots** 21 | If applicable, add screenshots to help explain your problem. 22 | 23 | **Information matérielles** 24 | - OS : [ex : Debian 9.5] 25 | - Navigateur : [ex : chrome, safari] 26 | - Version NextDom : [ex : 0.1.3] 27 | - Branche NextDom : [ex : master, beta] 28 | - Installé via : [ex : paquet deb, git clone] 29 | 30 | **Labels** 31 | Ajouter à droite de cette issue le label Component_XXX ciblant le composant lié à cette issue... 32 | -------------------------------------------------------------------------------- /src/Enums/ViewType.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Enums; 19 | 20 | /** 21 | * Class ViewType 22 | * @package NextDom\Enums 23 | */ 24 | class ViewType extends Enum 25 | { 26 | const DESKTOP_VIEW = 'd'; 27 | const STATIC_VIEW = 's'; 28 | } 29 | -------------------------------------------------------------------------------- /src/Exceptions/OperatingSystemException.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Exceptions; 19 | 20 | /** 21 | * Class OperatingSystemException 22 | * @package NextDom\Exceptions 23 | */ 24 | class OperatingSystemException extends \Exception 25 | { 26 | } 27 | -------------------------------------------------------------------------------- /core/class/historyArch.class.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | /* * ***************************Includes********************************* */ 20 | require_once __DIR__ . '/../../core/php/core.inc.php'; 21 | 22 | class historyArch extends \NextDom\Model\Entity\HistoryArch { 23 | 24 | } -------------------------------------------------------------------------------- /src/Interfaces/SenarioInterface.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Interfaces; 19 | 20 | /** 21 | * Interface SenarioInterface 22 | * @package NextDom\Interfaces 23 | */ 24 | interface SenarioInterface 25 | { 26 | function getRealTrigger(); 27 | } 28 | -------------------------------------------------------------------------------- /src/Enums/ScenarioExpressionSubType.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | namespace NextDom\Enums; 20 | 21 | /** 22 | * Class ScenarioExpressionType 23 | * @package NextDom\Enums 24 | */ 25 | class ScenarioExpressionSubType extends Enum 26 | { 27 | const SLIDER = 'slider'; 28 | } 29 | -------------------------------------------------------------------------------- /src/Enums/UserLocation.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Enums; 19 | 20 | /** 21 | * Class UserLocation 22 | * @package NextDom\Enums 23 | */ 24 | class UserLocation extends Enum 25 | { 26 | const INTERNAL = 'internal'; 27 | const EXTERNAL = 'external'; 28 | } 29 | -------------------------------------------------------------------------------- /views/layouts/ajax_content.html.twig: -------------------------------------------------------------------------------- 1 | {% if CSS_POOL is defined %} 2 | {% for cssFile in CSS_POOL %} 3 | 4 | {% endfor %} 5 | {% endif %} 6 | {% if JS_VARS is defined and JS_VARS|length > 0 %} 7 | 12 | {% endif %} 13 | {% if JS_VARS_RAW is defined %} 14 | 19 | {% endif %} 20 | {% if JS_POOL is defined %} 21 | {% for jsFile in JS_POOL %} 22 | 23 | {% endfor %} 24 | {% endif %} 25 | {{ content|raw }} 26 | {% if JS_END_POOL is defined %} 27 | {% for jsFile in JS_END_POOL %} 28 | 29 | {% endfor %} 30 | {% endif %} 31 | -------------------------------------------------------------------------------- /src/Enums/ActionRight.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Enums; 19 | 20 | /** 21 | * Class ObjectRight 22 | * @package NextDom\Enums 23 | */ 24 | class ActionRight extends Enum 25 | { 26 | const EXECUTE = 'x'; 27 | const READ = 'r'; 28 | const WRITE = 'w'; 29 | } 30 | -------------------------------------------------------------------------------- /src/Enums/UserRight.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Enums; 19 | 20 | /** 21 | * Class UserRight 22 | * @package NextDom\Enums 23 | */ 24 | class UserRight extends Enum 25 | { 26 | const USER = ''; 27 | const ADMIN = 'admin'; 28 | const NOTHING = null; 29 | } 30 | -------------------------------------------------------------------------------- /src/Enums/CmdType.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Enums; 19 | 20 | /** 21 | * Class CmdType 22 | * @package NextDom\Enums 23 | */ 24 | class CmdType extends Enum 25 | { 26 | const INFO = 'info'; 27 | const ACTION = 'action'; 28 | const STRING = 'string'; 29 | } 30 | -------------------------------------------------------------------------------- /tests/phpunit_tests/libs/BaseControllerTest.php: -------------------------------------------------------------------------------- 1 | assertStringContainsString($key, $twigFileContent); 23 | } 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/demande-de-nouvelle-feature-ou-d-am-lioration.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Demande de Nouvelle Feature ou d'Amélioration 3 | about: Proposer une idée, une nouvelle fonctionnalité ou une amélioration... 4 | title: Titre simple mais le plus clair possible... 5 | labels: Status_New, Type_Feature 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Votre demande de fonctionnalité est-elle liée à un problème? Si oui, décrivez le s'il vous plait.** 11 | Une description claire et concise du problème avec éventuellement des captures d'écran... 12 | 13 | **Décrivez ce que vous souhaitez** 14 | Une description claire et concise de votre idée, de la nouvelle fonctionnalité que vous voulez voir être ajoutée ou de l'amélioration que vous souhaitez proposer... 15 | 16 | **Information supplémentaire** 17 | Ajoutez ici tout autre informations ou capture d'écran concernant la demande de fonctionnalité.... 18 | 19 | **Labels** 20 | Ajouter à droite de cette issue le label Component_XXX ciblant le composant lié à cette issue... 21 | -------------------------------------------------------------------------------- /src/Enums/DaemonState.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | namespace NextDom\Enums; 20 | 21 | /** 22 | * Class DaemonState 23 | * @package NextDom\Enums 24 | */ 25 | class DaemonState extends Enum 26 | { 27 | 28 | const NOT_OK = 'nok'; 29 | const IN_PROGRESS = 'in_progress'; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/Model/Entity/Parents/EnableEntity.php: -------------------------------------------------------------------------------- 1 | enable; 22 | } 23 | 24 | /** 25 | * @param $_enable 26 | * @return $this 27 | */ 28 | public function setEnable($_enable) 29 | { 30 | $this->updateChangeState($this->enable, $_enable); 31 | $this->enable = $_enable; 32 | return $this; 33 | } 34 | 35 | /** 36 | * Get bool enabled state 37 | * 38 | * @return bool True is task is enabled 39 | */ 40 | public function isEnabled() 41 | { 42 | return $this->enable == 1; 43 | } 44 | } -------------------------------------------------------------------------------- /src/Enums/LogLevel.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Enums; 19 | 20 | /** 21 | * Class LogLevel 22 | * @package NextDom\Enums 23 | */ 24 | class LogLevel extends Enum 25 | { 26 | const DEBUG = 100; 27 | const INFO = 200; 28 | const WARNING = 300; 29 | const ERROR = 400; 30 | } 31 | -------------------------------------------------------------------------------- /src/Enums/BatteryStatus.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | namespace NextDom\Enums; 20 | 21 | /** 22 | * Class BatteryStatus 23 | * @package NextDom\Enums 24 | */ 25 | class BatteryStatus extends Enum 26 | { 27 | 28 | const DANGER = 'batterydanger'; 29 | const WARNING = 'batterywarning'; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/Enums/UserOption.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Enums; 19 | 20 | /** 21 | * Class UserRight 22 | * @package NextDom\Enums 23 | */ 24 | class UserOption extends Enum 25 | { 26 | const REGISTER_DEVICE = 'registerDevice'; 27 | const TWO_FACTOR_AUTH = 'twoFactorAuthentification'; 28 | } 29 | -------------------------------------------------------------------------------- /views/templates/dashboard/cmd.action.other.default.html: -------------------------------------------------------------------------------- 1 | 2 | #name_display# 3 | 12 | 13 | -------------------------------------------------------------------------------- /tests/data/plugin4tests/plugin_info/install.php: -------------------------------------------------------------------------------- 1 | . 17 | */ 18 | 19 | 20 | require_once __DIR__ . '/../../../core/php/core.inc.php'; 21 | 22 | function plugin4tests_install() { 23 | 24 | } 25 | 26 | function plugin4tests_update() { 27 | 28 | } 29 | 30 | 31 | function plugin4tests_remove() { 32 | 33 | } 34 | -------------------------------------------------------------------------------- /views/templates/scenario/popup.default.html: -------------------------------------------------------------------------------- 1 |
    2 | {{Message}} 3 | 4 | 5 | 6 | 7 |
    8 | 9 | 16 | -------------------------------------------------------------------------------- /assets/css/divers/_cursors.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | 3 | /* This file is part of NextDom. 4 | * 5 | * NextDom is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * NextDom is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with NextDom. If not, see . 17 | * 18 | * @Support 19 | * @Email 20 | * @Authors/Contributors: Sylvaner, Byackee, cyrilphoenix71, ColonelMoutarde, edgd1er, slobberbone, Astral0, DanoneKiD 21 | */ 22 | 23 | /* Core-Surcharge */ 24 | .cursor, 25 | a { 26 | cursor: pointer; 27 | } -------------------------------------------------------------------------------- /src/Enums/PlanVersion.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Enums; 19 | 20 | class PlanVersion extends Enum 21 | { 22 | const DASHBOARD = 'dashboard'; 23 | // const DESKTOP = 'desktop'; 24 | // const DPLAN = 'dplan'; 25 | const DVIEW = 'dview'; 26 | const MOBILE = 'mobile'; 27 | const SCENARIO = 'scenario'; 28 | } -------------------------------------------------------------------------------- /views/templates/scenario/log.default.html: -------------------------------------------------------------------------------- 1 |
    2 | {{Message}} 3 | 4 | 5 | 6 | 7 |
    8 | 15 | -------------------------------------------------------------------------------- /assets/js/core/network.class.js: -------------------------------------------------------------------------------- 1 | /* This file is part of Jeedom. 2 | * 3 | * Jeedom is free software: you can redistribute it and/or modify 4 | * it under the terms of the GNU General Public License as published by 5 | * the Free Software Foundation, either version 3 of the License, or 6 | * (at your option) any later version. 7 | * 8 | * Jeedom is distributed in the hope that it will be useful, 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | * GNU General Public License for more details. 12 | * 13 | * You should have received a copy of the GNU General Public License 14 | * along with Jeedom. If not, see . 15 | */ 16 | 17 | nextdom.network = function() { 18 | }; 19 | 20 | nextdom.network.restartDns = function(queryParams) { 21 | nextdom.private.ajax('Network', 'restartDns', queryParams); 22 | }; 23 | 24 | nextdom.network.stopDns = function(queryParams) { 25 | nextdom.private.ajax('Network', 'stopDns', queryParams); 26 | }; -------------------------------------------------------------------------------- /src/Enums/CmdViewType.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Enums; 19 | 20 | /** 21 | * Class CmdViewType 22 | * @package NextDom\Enums 23 | */ 24 | class CmdViewType extends Enum 25 | { 26 | const DASHBOARD = 'dashboard'; 27 | const DVIEW = 'dview'; 28 | const MVIEW = 'mview'; 29 | const DPLAN = 'dplan'; 30 | } 31 | -------------------------------------------------------------------------------- /tests/phpunit_tests/Gui/AdministrationPageTest.php: -------------------------------------------------------------------------------- 1 | goTo('index.php?v=d&p=administration'); 10 | 11 | // Start test page 12 | $linkButtons = [ 13 | 'users', 'api', 'network', 'security', 'cache', 'services', 14 | 'general', 'profils', 'commandes', 'links', 'interact_config', 15 | 'eqlogic', 'summary', 'report_config', 'log_config', 16 | 'health', 'cron', 'eqAnalyse', 'history', 'timeline', 17 | 'report', 'log', 18 | 'display', 'backup', 'update', 'osdb', 'interact', 'widget', 'scenario', 19 | 'object', 'plugin']; 20 | foreach ($linkButtons as $linkButton) { 21 | $button = $this->crawler->filterXPath('//a[@href="index.php?v=d&p=' . $linkButton . '"]'); 22 | $this->assertNotNull($button); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /views/templates/dashboard/cmd.info.string.tile.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    #name_display#
    4 |
    5 | #unite# 6 |
    7 | 14 |
    -------------------------------------------------------------------------------- /views/templates/scenario/say.default.html: -------------------------------------------------------------------------------- 1 |
    2 | {{Message}} 3 | 4 | 5 | 6 | 7 |
    8 | 9 | 16 | -------------------------------------------------------------------------------- /views/templates/scenario/scenario_return.default.html: -------------------------------------------------------------------------------- 1 |
    2 | {{Message}} 3 | 4 | 5 | 6 | 7 |
    8 | 9 | 16 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "NextDom", 3 | "background_color": "#94ca02", 4 | "theme_color": "#94ca02", 5 | "name": "NextDom", 6 | "gcm_sender_id": "103953800507", 7 | "icons": [ 8 | { 9 | "src": "/public/img/icon-256x256.png", 10 | "sizes": "72x72", 11 | "type": "image/png" 12 | }, 13 | { 14 | "src": "/public/img/icon-256x256.png", 15 | "sizes": "96x96", 16 | "type": "image/png" 17 | }, 18 | { 19 | "src": "/public/img/icon-256x256.png", 20 | "sizes": "128x128", 21 | "type": "image/png" 22 | }, 23 | { 24 | "src": "/public/img/icon-256x256.png", 25 | "sizes": "144x144", 26 | "type": "image/png" 27 | }, 28 | { 29 | "src": "/public/img/icon-256x256.png", 30 | "sizes": "192x192", 31 | "type": "image/png" 32 | }, 33 | { 34 | "src": "/public/img/icon-256x256.png", 35 | "sizes": "256x256", 36 | "type": "image/png" 37 | } 38 | ], 39 | "start_url": "index.php", 40 | "display": "standalone" 41 | } -------------------------------------------------------------------------------- /assets/js/core/listener.class.js: -------------------------------------------------------------------------------- 1 | /* This file is part of Jeedom. 2 | * 3 | * Jeedom is free software: you can redistribute it and/or modify 4 | * it under the terms of the GNU General Public License as published by 5 | * the Free Software Foundation, either version 3 of the License, or 6 | * (at your option) any later version. 7 | * 8 | * Jeedom is distributed in the hope that it will be useful, 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | * GNU General Public License for more details. 12 | * 13 | * You should have received a copy of the GNU General Public License 14 | * along with Jeedom. If not, see . 15 | */ 16 | 17 | nextdom.listener = function() { 18 | }; 19 | 20 | nextdom.listener.all = function(queryParams) { 21 | nextdom.private.ajax('Listener', 'all'); 22 | }; 23 | 24 | nextdom.listener.save = function(queryParams) { 25 | nextdom.private.ajax('Listener', 'save', queryParams, ['listeners'], true); 26 | }; 27 | 28 | -------------------------------------------------------------------------------- /assets/js/core/security.class.js: -------------------------------------------------------------------------------- 1 | /* This file is part of Jeedom. 2 | * 3 | * Jeedom is free software: you can redistribute it and/or modify 4 | * it under the terms of the GNU General Public License as published by 5 | * the Free Software Foundation, either version 3 of the License, or 6 | * (at your option) any later version. 7 | * 8 | * Jeedom is distributed in the hope that it will be useful, 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | * GNU General Public License for more details. 12 | * 13 | * You should have received a copy of the GNU General Public License 14 | * along with Jeedom. If not, see . 15 | */ 16 | 17 | nextdom.security = function() { 18 | }; 19 | 20 | nextdom.security.remove = function(queryParams) { 21 | nextdom.private.ajax('Connection', 'remove', queryParams, ['id']); 22 | }; 23 | 24 | nextdom.security.ban = function(queryParams) { 25 | nextdom.private.ajax('Connection', 'ban', queryParams, ['id']); 26 | }; -------------------------------------------------------------------------------- /src/Enums/ApiMode.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Enums; 19 | 20 | /** 21 | * Class ApiMode 22 | * @package NextDom\Enums 23 | */ 24 | class ApiMode extends Enum 25 | { 26 | const API_ENABLE = 'enable'; 27 | const API_DISABLE = 'disable'; 28 | const API_WHITEIP = 'whiteip'; 29 | const API_LOCALHOST = 'cronDaily'; 30 | } 31 | -------------------------------------------------------------------------------- /src/Enums/LogRotate.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Enums; 19 | 20 | /** 21 | * Class LogRotate 22 | * @package NextDom\Enums 23 | */ 24 | class LogRotate extends Enum 25 | { 26 | const ROTATE_NONE = 'cron'; 27 | const ROTATE_DAY = 'cron5'; 28 | const ROTATE_MONTH = 'cron30'; 29 | const ROTATE_YEAR = 'cronDaily'; 30 | } 31 | -------------------------------------------------------------------------------- /src/Enums/ScenarioState.php: -------------------------------------------------------------------------------- 1 | . 16 | */ 17 | 18 | namespace NextDom\Enums; 19 | 20 | /** 21 | * Class ScenarioState 22 | * @package NextDom\Enums 23 | */ 24 | class ScenarioState extends Enum 25 | { 26 | const ERROR = 'error'; 27 | const IN_PROGRESS = 'in progress'; 28 | const STARTING = 'starting'; 29 | const STOP = 'stop'; 30 | } 31 | -------------------------------------------------------------------------------- /views/templates/scenario/message.default.html: -------------------------------------------------------------------------------- 1 |
    2 | {{Message}} 3 | 4 | 5 | 6 | 7 |
    8 | 9 | 16 | -------------------------------------------------------------------------------- /src/Model/Entity/Parents/IsVisibleEntity.php: -------------------------------------------------------------------------------- 1 | isVisible == '' || !is_numeric($this->isVisible)) { 24 | return $defaultValue; 25 | } 26 | return $this->isVisible; 27 | } 28 | 29 | public function isVisible() 30 | { 31 | return intval($this->isVisible) == 1; 32 | } 33 | 34 | /** 35 | * @param $isVisible 36 | * @return $this 37 | */ 38 | public function setIsVisible($isVisible) 39 | { 40 | $this->isVisible = $isVisible; 41 | return $this; 42 | } 43 | } -------------------------------------------------------------------------------- /assets/css/compiled/pages/plugins.scss: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* This file is part of NextDom Software. 3 | * 4 | * NextDom is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * NextDom Software is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with NextDom Software. If not, see . 16 | * 17 | * @Support 18 | * @Email 19 | * @Authors/Contributors: Sylvaner, Byackee, cyrilphoenix71, ColonelMoutarde, edgd1er, slobberbone, Astral0, DanoneKiD 20 | */ 21 | 22 | /* Pages */ 23 | .form-actions { 24 | margin-top: 5px; 25 | } 26 | --------------------------------------------------------------------------------