#
# SECURITY WARNING: it is CRITICAL that this file & directory are NOT accessible directly via a web browser!
#
# If you don't protect this directory from direct web access, anybody will be able to see your passwords.
# http://nette.org/security-warning
#
php:
	date.timezone: 'Europe/Prague'

nette:
	application:
		errorPresenter: Error
		mapping:
			*: App\*Module\Presenters\*Presenter
	container:
		debugger: true
	session:
		autoStart: smart
		expiration: + 30 days

extensions:
	dibi: Dibi\Bridges\Nette\DibiExtension22
	helpModule: App\BackendModule\HelpModule\HelpExtension
	webloader: WebLoader\Nette\Extension

dibi:
	driver: %database.driver%
	host: %database.host%
	username: %database.username%
	password: %database.password%
	database: %database.database%
	profiler: %database.profiler%
	substitutes:
		'': %database.prefix%

helpModule:
	baseArticleId: '1'
	redactorDir: '%wwwDir%/data/redactor'
	redactorDirUrl: '/data/redactor'

services:
	# Routes
	- App\RouterFactory
	router: @App\RouterFactory::createRouter

	# Dibi
	- @dibi.connection
	- App\Models\LoggerDibiModel

	# Security
	- Security\PasswordAuthenticator

	# Models
	- App\Models\CustomerModel
	- App\Models\OrderModel
	- App\Models\ReportModel
	- App\Models\UserModel
	- App\Models\DailySummaryModel
	- App\Models\StockItemModel
	- App\Models\StockItemMoveModel
	- App\Models\StockItemCategoryModel
	- App\Models\SupplierModel
	- App\Models\CsvHistoryModel

	# Project
	- Xprom\Utils\Project(%project%)

	# Webloader
	- WebLoader\Filter\CssUrlsFilter(%wwwDir%)
	- Xprom\Utils\WebLoader\Filter\CssMinify
	- Xprom\Utils\WebLoader\Filter\JsShrink
	- Xprom\Utils\WebLoader\Filter\Minifier

webloader:
	css:
		default:
			files:
				- %wwwDir%/css/jquery-ui-1.8.21.custom.css
				- %wwwDir%/css/bootstrap.css
				- %wwwDir%/css/bootstrap-responsive.min.css
				- %wwwDir%/css/fullcalendar.css
				- %wwwDir%/css/chosen.css
				- %wwwDir%/css/uniform.default.css
				- %wwwDir%/css/jquery.cleditor.css
				- %wwwDir%/css/jquery.noty.css
				- %wwwDir%/css/noty_theme_default.css
				- %wwwDir%/css/elfinder.min.css
				- %wwwDir%/css/elfinder.theme.css
				- %wwwDir%/css/jquery.iphone.toggle.css
				- %wwwDir%/css/uploadify.css
				- %wwwDir%/css/jquery.gritter.css
				- %wwwDir%/css/style.css
				- %wwwDir%/css/style-responsive.css
				- %wwwDir%/css/redactor/redactor.css
				- %wwwDir%/css/bootstrap-tagsinput/bootstrap-tagsinput.css
				- %wwwDir%/css/bootstrap-spinner.css
				- %wwwDir%/css/font-awesome/font-awesome.min.css
				- %wwwDir%/css/main.css
			fileFilters:
				- @WebLoader\Filter\CssUrlsFilter
				- @Xprom\Utils\WebLoader\Filter\CssMinify
		print:
			files:
				- %wwwDir%/css/print.css
			fileFilters:
				- @WebLoader\Filter\CssUrlsFilter
				- @Xprom\Utils\WebLoader\Filter\CssMinify

	js:
		default:
			files:
				- %wwwDir%/js/jquery-1.7.2.min.js
				- %wwwDir%/js/jquery-ui-1.8.21.custom.min.js
				- %wwwDir%/js/bootstrap.js
				- %wwwDir%/js/jquery.cookie.js
				- %wwwDir%/js/fullcalendar.min.js
				- %wwwDir%/js/jquery.dataTables.min.js
				- %wwwDir%/js/excanvas.js
				- %wwwDir%/js/jquery.flot.min.js
				- %wwwDir%/js/jquery.flot.pie.min.js
				- %wwwDir%/js/jquery.flot.stack.js
				- %wwwDir%/js/jquery.flot.resize.min.js
				- %wwwDir%/js/jquery.chosen.min.js
				- %wwwDir%/js/jquery.uniform.min.js
				- %wwwDir%/js/jquery.cleditor.min.js
				- %wwwDir%/js/jquery.noty.js
				- %wwwDir%/js/jquery.elfinder.min.js
				- %wwwDir%/js/jquery.raty.min.js
				- %wwwDir%/js/jquery.iphone.toggle.js
				- %wwwDir%/js/jquery.uploadify-3.1.min.js
				- %wwwDir%/js/jquery.gritter.min.js
				- %wwwDir%/js/jquery.imagesloaded.js
				- %wwwDir%/js/jquery.masonry.min.js
				- %wwwDir%/js/redactor/redactor.min.js
				- %wwwDir%/js/redactor/cs.js
				- %wwwDir%/js/bootstrap-tagsinput/bootstrap-tagsinput.min.js
				- %wwwDir%/js/jquery.spinner.js
				- %wwwDir%/js/netteForms.js
				- %wwwDir%/js/nette.ajax.js
				- %wwwDir%/js/nette.ajax.spinner.js
				- %wwwDir%/js/theme.js
				- %wwwDir%/js/main.js
			fileFilters:
				- @Xprom\Utils\WebLoader\Filter\Minifier

parameters:
	database:
		driver: mysql
		host: localhost
		username: ''
		password: ''
		database: ''
		lazy: TRUE
		profiler: TRUE
		prefix: ''
	importCsvDir: '%wwwDir%/data/import_csv'
	exportCsvDir: '%wwwDir%/data/export_csv'
	project:
		name: 'Kadlec Kolín'
		exportFormat: 'csv'
		appVersion: '2018_01_04_002'
	summaryIds:
		id3: 'success' #'success', 'warning', 'danger', 'info', 'active'
		id4: 'warning'
		id5: 'danger'
		id6: 'info'
		id20: 'active'
		id21: 'active'
		id22: 'active'
