Skip to content

Commit

Permalink
Backup Pletacka-website-221015
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubAndrysek committed Oct 15, 2022
1 parent f88a1c5 commit dddf5b2
Show file tree
Hide file tree
Showing 178 changed files with 12,238 additions and 17 deletions.
Empty file modified .github/workflows/doxygen.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/php.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .htaccess
100644 → 100755
Empty file.
Empty file modified Doxyfile
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
10 changes: 6 additions & 4 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Pletacka-website-nette

[<!--lint ignore no-dead-urls-->![GitHub Actions status | Pletacka-IoT/Pletacka-website](https://github.com/Pletacka-IoT/Pletacka-website/workflows/PHP%20Tests/badge.svg)](https://github.com/Pletacka-IoT/Pletacka-website/actions?workflow=PHP+Tests)
Database: https://github.com/Pletacka-IoT/DB-backup/blob/main/Pletacka-IoT-2022-09-20.sql.gz

[<!--lint ignore no-dead-urls-->![GitHub Actions status | Pletacka-IoT/Pletacka-website](https://github.com/Pletacka-IoT/Pletacka-website/workflows/PHP%20Tests/badge.svg)](https://github.com/Pletacka-IoT/Pletacka-website/actions?workflow=PHP+Tests)
[<!--lint ignore no-dead-urls-->![GitHub Actions status | Pletacka-IoT/Pletacka-website](https://github.com/Pletacka-IoT/Pletacka-website/workflows/Deploy%20documentation/badge.svg)](https://github.com/Pletacka-IoT/Pletacka-website/actions?workflow=Deploy+documentation)

<h2>Pletacka <a href="https://jakubandrysek.github.io/Pletacka-website-nette">documentation</a></h2>

- [Classes](https://jakubandrysek.github.io/Pletacka-website-nette/annotated.html)
- [Namespaces](https://jakubandrysek.github.io/Pletacka-website-nette/namespaces.html)
- [Classes](https://jakubandrysek.github.io/Pletacka-website-nette/annotated.html)
- [Namespaces](https://jakubandrysek.github.io/Pletacka-website-nette/namespaces.html)
- [Files](https://jakubandrysek.github.io/Pletacka-website-nette/files.html)

## CZ
Expand All @@ -24,5 +26,5 @@ To clone and run this repository you'll need [Git](https://git-scm.com), [PHP 7
```bash
# Clone this repository to Apache server folder
git clone https://github.com/JakubAndrysek/Pletacka-website-nette.git
```
```
...
2 changes: 1 addition & 1 deletion app/Bootstrap.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static function boot(): Configurator
{
$configurator = new Configurator;

$configurator->setDebugMode(array("192.168.0.112", "192.168.0.134", "25.86.125.145", "192.168.0.114", "192.168.0.15", "192.168.0.141", "25.58.99.187")); // enable for your remote IP
$configurator->setDebugMode(array("192.168.0.112", "192.168.0.134", "25.86.125.145", "192.168.0.114", "192.168.0.15", "192.168.0.141", "25.58.99.187", "192.168.0.154")); // enable for your remote IP
// $configurator->setDebugMode(false);
$configurator->enableTracy(__DIR__ . '/../log');

Expand Down
Empty file.
Empty file.
Empty file.
Empty file modified app/CoreModule/Component/SensorOverview/SensorOverview.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Component/SensorOverview/SensorOverview.php
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified app/CoreModule/Component/ThisChartControl/ThisChartControl.php
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified app/CoreModule/Controllers/BaseController.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Controllers/BaseV1Controller.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Controllers/DatabaseSelectionController.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Controllers/SensorsController.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Controllers/ThisSensorController.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Exceptions/MyException.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Forms/SensorsFormFactory.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Forms/ThisSensorFormFactory.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Forms/WorkShiftFormFactory.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Model/ChartManager.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Model/DatabaseSelectionManager.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Model/DatabaseTestManager.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Model/MultiSensorsManager.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Model/RoomManager.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Model/SensorsManager.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Model/SetupManager.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Model/ThisChartManager.php
100644 → 100755
Empty file.
7 changes: 2 additions & 5 deletions app/CoreModule/Model/ThisSensorManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,8 @@ public function sensorHasData($sNumber): bool

public function getPreviousEvent($sNumber, $events)
{
if(!$events) {
return false;
}
$previous = array_key_first($events)-1;
return $this->database->table("A".$sNumber)->where("id =?",$previous)->limit(1)->fetch();
$previous = array_key_first($events)-1;
return $this->database->table("A".$sNumber)->where("id =?",$previous)->fetch();
}


Expand Down
Empty file modified app/CoreModule/Model/WorkShiftManager.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/ConnectPresenter.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/DatabaseTestPresenter.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/HomepagePresenter.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/OverviewPresenter.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/SensorsPresenter.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/SensorsSettingsPresenter.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/SetupPresenter.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/SignPresenter.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/TestPresenter.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/WorkShiftPresenter.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/@layout.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/Connect/add.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/Connect/default.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/DatabaseTest/default.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/Homepage/default.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/Overview/default.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/Sensors/default.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/Sensors/overview.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/SensorsSettings/debug.latte
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified app/CoreModule/Presenters/templates/SensorsSettings/edit.latte
100644 → 100755
Empty file.
Empty file.
Empty file modified app/CoreModule/Presenters/templates/Setup/default.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/Sign/in.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/Sign/out.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/Sign/up.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/Test/chart.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/Test/debug.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/WorkShift/default.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/WorkShift/test.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/components/bubbles.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/components/charts.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Presenters/templates/components/form.latte
100644 → 100755
Empty file.
Empty file modified app/CoreModule/TimeManagers/TimeBox.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Utils/BubblesPretty.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Utils/ChartDataPretty.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Utils/ChartDataSetup.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Utils/DatabaseDataExtractorPretty.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Utils/DatabaseSelection.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Utils/DatabaseSelectionPretty.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Utils/NumbersPretty.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/Utils/Pretty.php
100644 → 100755
Empty file.
Empty file modified app/CoreModule/config/config.neon
100644 → 100755
Empty file.
Empty file modified app/Forms/FormFactory.php
100644 → 100755
Empty file.
Empty file modified app/Forms/SignInFormFactory.php
100644 → 100755
Empty file.
Empty file modified app/Forms/SignUpFormFactory.php
100644 → 100755
Empty file.
Empty file modified app/Model/UserManager.php
100644 → 100755
Empty file.
Empty file modified app/Presenters/BasePresenter.php
100644 → 100755
Empty file.
Empty file modified app/Presenters/Error4xxPresenter.php
100644 → 100755
Empty file.
Empty file modified app/Presenters/ErrorAppPresenter.php
100644 → 100755
Empty file.
Empty file modified app/Presenters/ErrorPresenter.php
100644 → 100755
Empty file.
Empty file modified app/Presenters/templates/Error/403.latte
100644 → 100755
Empty file.
Empty file modified app/Presenters/templates/Error/404.latte
100644 → 100755
Empty file.
Empty file modified app/Presenters/templates/Error/405.latte
100644 → 100755
Empty file.
Empty file modified app/Presenters/templates/Error/410.latte
100644 → 100755
Empty file.
Empty file modified app/Presenters/templates/Error/4xx.latte
100644 → 100755
Empty file.
Empty file modified app/Presenters/templates/Error/500.phtml
100644 → 100755
Empty file.
Empty file modified app/Presenters/templates/Error/503.phtml
100644 → 100755
Empty file.
Empty file modified app/Presenters/templates/Error/ErrorMy.latte
100644 → 100755
Empty file.
Empty file modified app/Router/RouterFactory.php
100644 → 100755
Empty file.
10 changes: 5 additions & 5 deletions app/config/common.neon
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ session:
database:
dsn: 'mysql:host=127.0.0.1;dbname=Pletacka-IoT'
# dsn: 'mysql:host=127.0.0.1;dbname=Pletacka-IoT-2.0'
user: pletacka
password: ladasmolik
user: root
password: rakosnicek
# port: 3306
options:
lazy: yes
Expand All @@ -64,9 +64,9 @@ services:
setup:
# - addResource(Error)
# - addResource(Error4xx)

# - allow(guest, Error)
# - allow(guest, Error4xx)
# - allow(guest, Error4xx)

- App\Model\UserManager
# - App\Model\DatabaseManager
Expand All @@ -76,5 +76,5 @@ services:
router: App\Router\RouterFactory::createRouter

includes:
- ../CoreModule/config/config.neon # Načtení konfigurace z CoreModule.
- ../CoreModule/config/config.neon # Načtení konfigurace z CoreModule.

Empty file modified app/config/local.neon
100644 → 100755
Empty file.
Empty file modified bash-scripts/ClearCacheNette.sh
100644 → 100755
Empty file.
Empty file modified bash-scripts/Doxygen.sh
100644 → 100755
Empty file.
Empty file modified bash-scripts/git-updater.sh
100644 → 100755
Empty file.
Empty file modified bin/composer-upgrade.php
100644 → 100755
Empty file.
Empty file modified bin/create-user.php
100644 → 100755
Empty file.
Empty file modified codealike.json
100644 → 100755
Empty file.
Empty file modified composer.json
100644 → 100755
Empty file.
2 changes: 0 additions & 2 deletions log/.gitignore

This file was deleted.

1,299 changes: 1,299 additions & 0 deletions log/exception--2021-12-13--16-51--a4774a15fa.html

Large diffs are not rendered by default.

1,628 changes: 1,628 additions & 0 deletions log/exception--2022-01-02--19-16--0d894e71a1.html

Large diffs are not rendered by default.

1,654 changes: 1,654 additions & 0 deletions log/exception--2022-01-02--19-16--92a052e83d.html

Large diffs are not rendered by default.

1,659 changes: 1,659 additions & 0 deletions log/exception--2022-01-02--19-16--e952f93678.html

Large diffs are not rendered by default.

1,658 changes: 1,658 additions & 0 deletions log/exception--2022-01-02--19-16--f07aee0009.html

Large diffs are not rendered by default.

1,479 changes: 1,479 additions & 0 deletions log/exception--2022-01-02--19-52--155e5cc12c.html

Large diffs are not rendered by default.

276 changes: 276 additions & 0 deletions log/exception.log

Large diffs are not rendered by default.

1,058 changes: 1,058 additions & 0 deletions log/info--2021-12-13--16-51--6c9bc45fa7.html

Large diffs are not rendered by default.

1,241 changes: 1,241 additions & 0 deletions log/info--2021-12-16--20-43--31df9cf49f.html

Large diffs are not rendered by default.

270 changes: 270 additions & 0 deletions log/info.log

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
run:
faketime -f "@2022-10-05 10:05:00" php -S 127.0.0.1:8979 --docroot www
Empty file modified phpstan.neon
100644 → 100755
Empty file.
Empty file modified tests/ExampleTests/ExampleTest.php
100644 → 100755
Empty file.
Empty file modified tests/UtilsTest/DatabaseDataExtractorPrettyTest.php
100644 → 100755
Empty file.
Empty file modified tests/bootstrap.php
100644 → 100755
Empty file.
Empty file modified web.config
100644 → 100755
Empty file.
Empty file modified www/.htaccess
100644 → 100755
Empty file.
Empty file modified www/adminer/adminer.css
100644 → 100755
Empty file.
Empty file modified www/adminer/index.php
100644 → 100755
Empty file.
Empty file modified www/checker/assets/denied/.htaccess
100644 → 100755
Empty file.
Empty file modified www/checker/assets/denied/checker.js
100644 → 100755
Empty file.
Empty file modified www/checker/assets/denied/web.config
100644 → 100755
Empty file.
Empty file modified www/checker/assets/failed.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/checker/assets/info.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/checker/assets/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/checker/assets/nginx/checker.php
100644 → 100755
Empty file.
Empty file modified www/checker/assets/passed.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/checker/assets/rewrite/.htaccess
100644 → 100755
Empty file.
Empty file modified www/checker/assets/rewrite/checker.js
100644 → 100755
Empty file.
Empty file modified www/checker/assets/rewrite/web.config
100644 → 100755
Empty file.
Empty file modified www/checker/assets/warning.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/checker/index.php
100644 → 100755
Empty file.
Empty file modified www/css/app/style.css
100644 → 100755
Empty file.
Empty file modified www/css/app/thisChart.css
100644 → 100755
Empty file.
Empty file modified www/css/external/boostrap.css
100644 → 100755
Empty file.
Empty file modified www/css/external/c3.css
100644 → 100755
Empty file.
Empty file modified www/css/external/daterangepicker.css
100644 → 100755
Empty file.
Empty file modified www/favicon.ico
100644 → 100755
Empty file.
Empty file modified www/images/Kuba_logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/images/Kuba_logo_100.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/images/Kuba_logo_min.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/images/Pletacka-IoT-100.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/images/Pletacka-IoT-crop.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/images/Pletacka-IoT.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/index.php
100644 → 100755
Empty file.
Empty file modified www/js/external/Naja-2-0-1.min.js
100644 → 100755
Empty file.
Empty file modified www/js/external/Naja_v1.8.1.js
100644 → 100755
Empty file.
Empty file modified www/js/external/bootstrap.min.js
100644 → 100755
Empty file.
Empty file modified www/js/external/c3.js
100644 → 100755
Empty file.
Empty file modified www/js/external/d3.js
100644 → 100755
Empty file.
Empty file modified www/js/external/daterangepicker.min.js
100644 → 100755
Empty file.
Empty file modified www/js/external/jquery.min.js
100644 → 100755
Empty file.
Empty file modified www/js/external/moment.min.js
100644 → 100755
Empty file.
Empty file modified www/js/external/netteForms.min.js
100644 → 100755
Empty file.
Empty file modified www/js/main.js
100644 → 100755
Empty file.
Empty file modified www/robots.txt
100644 → 100755
Empty file.
Empty file modified www/web.config
100644 → 100755
Empty file.

0 comments on commit dddf5b2

Please sign in to comment.