From 473490a07f72f8f36189f0e950726d033283ad5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20K=C5=99=C3=AD=C5=BE?= Date: Sun, 5 Oct 2014 14:37:02 +0200 Subject: [PATCH] Typos & reositories & remove entity suffix & phing tasks --- .travis.yml | 4 +- Resources/public/js/application.js | 20 +- Resources/templates/@layout.latte | 6 +- bin/venne | 4 + bin/venne.php | 16 + build.php | 5 - build.xml | 10 + build/ruleset.xml | 59 ++ composer.json | 5 +- src/Config/ConfigBuilder.php | 4 +- src/Config/ConfigMapper.php | 2 +- src/Doctrine/DerivedEntityDao.php | 34 -- src/Doctrine/Entities/NamedEntityTrait.php | 2 +- .../Mapping/DynamicMapperSubscriber.php | 31 +- .../AdminModule/DefaultPresenter.php | 2 - .../AdminModule/EmailPresenter.php | 2 - .../AdminModule/SettingsPresenter.php | 29 +- .../Components/NotificationControl.php | 29 +- .../Components/NotificationsControl.php | 13 +- .../DI/NotificationsExtension.php | 32 +- src/Notifications/EmailManager.php | 4 +- src/Notifications/Event.php | 4 +- src/Notifications/EventManager.php | 1 - src/Notifications/IEvent.php | 4 +- src/Notifications/Jobs/EmailJob.php | 31 +- src/Notifications/Jobs/NotificationJob.php | 60 +- src/Notifications/Notification.php | 127 ++++ src/Notifications/NotificationDto.php | 6 +- src/Notifications/NotificationEntity.php | 89 --- src/Notifications/NotificationManager.php | 98 ++-- ...tingEntity.php => NotificationSetting.php} | 15 +- ...ionTypeEntity.php => NotificationType.php} | 3 +- ...ionUserEntity.php => NotificationUser.php} | 19 +- src/Queue/AdminModule/DefaultPresenter.php | 2 - src/Queue/AdminModule/JobFormFactory.php | 13 +- src/Queue/AdminModule/JobFormService.php | 54 ++ src/Queue/AdminModule/JobsPresenter.php | 32 +- src/Queue/AdminModule/WorkerPresenter.php | 2 - src/Queue/Components/JobControl.php | 20 +- src/Queue/Components/JobsControl.php | 15 +- src/Queue/DI/QueueExtension.php | 15 +- src/Queue/DI/services.neon | 4 + src/Queue/IJob.php | 4 +- src/Queue/Job.php | 117 +++- src/Queue/JobEntity.php | 137 ----- src/Queue/JobManager.php | 56 +- src/Queue/JobType.php | 28 + src/Queue/WorkerManager.php | 2 +- src/Security/AdminModule/AccountPresenter.php | 55 +- src/Security/AdminModule/DefaultPresenter.php | 24 +- .../AdminModule/InvitationFormFactory.php | 2 - .../AdminModule/InvitationFormService.php | 64 ++ .../AdminModule/InvitationPresenter.php | 2 - .../AdminModule/InvitationsTableFactory.php | 58 +- src/Security/AdminModule/RequestPresenter.php | 2 - src/Security/AdminModule/RoleFormFactory.php | 11 +- src/Security/AdminModule/RoleFormService.php | 54 ++ src/Security/AdminModule/RolesPresenter.php | 13 +- .../AdminModule/RolesTableFactory.php | 28 +- .../templates/Account/default.latte | 6 +- src/Security/Authenticator.php | 25 +- src/Security/AuthorizatorFactory.php | 30 +- .../AnnotationReader.php | 8 +- .../ControlVerifiers/ControlVerifier.php | 40 +- src/Security/DI/SecurityExtension.php | 131 +++-- src/Security/DI/UserType.php | 67 +++ src/Security/DI/UserTypeProvider.php | 25 + src/Security/DI/services.neon | 22 + src/Security/DefaultType/AdminFormFactory.php | 36 +- src/Security/DefaultType/AdminFormService.php | 72 +++ src/Security/DefaultType/FrontFormFactory.php | 26 +- src/Security/DefaultType/FrontFormService.php | 71 +++ .../DefaultType/RegistrationFormFactory.php | 11 +- .../DefaultType/RegistrationFormService.php | 71 +++ .../DefaultType/{UserEntity.php => User.php} | 4 +- ...xtendedUserEntity.php => ExtendedUser.php} | 12 +- src/Security/ILoginProvider.php | 6 +- .../Listeners/ExtendedUserListener.php | 6 +- src/Security/Listeners/UserLogListener.php | 27 +- src/Security/Listeners/UserStateListener.php | 6 +- src/Security/{LoginEntity.php => Login.php} | 14 +- src/Security/Login/LoginControl.panel.latte | 2 +- src/Security/Login/LoginControl.php | 34 +- ...inProviderEntity.php => LoginProvider.php} | 10 +- src/Security/NetteUser.php | 230 ++++++++ .../{PermissionEntity.php => Permission.php} | 12 +- .../IRegistrationControlFactory.php | 2 +- .../Registration/RegistrationControl.php | 59 +- src/Security/Role.php | 191 ++++++ src/Security/RoleEntity.php | 80 --- src/Security/SecurityManager.php | 12 +- src/Security/User.php | 546 +++++++++++++----- src/Security/UserDirEntity.php | 40 -- src/Security/UserEntity.php | 513 ---------------- src/Security/UserType.php | 194 +++---- src/System/AdminModule/AboutPresenter.php | 2 - .../AdminModule/ApplicationFormFactory.php | 3 +- .../AdminModule/ApplicationPresenter.php | 2 - .../AdminModule/AuthenticationFormFactory.php | 13 +- src/System/AdminModule/CachePresenter.php | 2 - src/System/AdminModule/DashboardPresenter.php | 25 +- src/System/AdminModule/ErrorPresenter.php | 11 +- src/System/AdminModule/LoginPresenter.php | 47 +- src/System/AdminModule/LogsPresenter.php | 6 +- .../AdminModule/RegistrationFormFactory.php | 8 +- .../AdminModule/RegistrationFormService.php | 54 ++ .../AdminModule/RegistrationTableFactory.php | 29 +- src/System/AdminModule/UserDto.php | 2 +- src/System/AdminPresenterTrait.php | 1 + src/System/AdministrationManager.php | 1 - src/System/AjaxControlTrait.php | 2 +- src/System/Commands/InstallCommand.php | 38 +- .../Components/AdminGrid/AdminGrid.latte | 7 +- src/System/Components/AdminGrid/AdminGrid.php | 109 ++-- src/System/Components/AdminGrid/Form.php | 52 +- .../Components/INavbarControlFactory.php | 2 +- src/System/Components/NavbarControl.php | 2 + src/System/DI/SystemExtension.php | 109 +--- src/System/DI/services.neon | 5 + src/System/DoctrineFormService.php | 158 +++++ src/System/Forms/Controls/TextWithSelect.php | 274 ++++----- .../DoctrineForms/Controls/TextControl.php | 8 +- .../{InvitationEntity.php => Invitation.php} | 18 +- .../Listeners/InvitationStateListener.php | 4 +- ...egistrationEntity.php => Registration.php} | 8 +- src/System/Routers/AdminRoute.php | 1 - src/System/UI/AdminTemplateLocator.php | 23 +- src/System/UI/ControlTrait.php | 1 - src/System/UI/ITemplateLocator.php | 1 - tests/src/bootstrap.php | 17 +- venne-phing.xml | 90 +++ 131 files changed, 3070 insertions(+), 2290 deletions(-) create mode 100644 bin/venne create mode 100644 bin/venne.php delete mode 100755 build.php create mode 100644 build.xml create mode 100644 build/ruleset.xml delete mode 100755 src/Doctrine/DerivedEntityDao.php create mode 100644 src/Notifications/Notification.php delete mode 100755 src/Notifications/NotificationEntity.php rename src/Notifications/{NotificationSettingEntity.php => NotificationSetting.php} (74%) mode change 100755 => 100644 rename src/Notifications/{NotificationTypeEntity.php => NotificationType.php} (93%) mode change 100755 => 100644 rename src/Notifications/{NotificationUserEntity.php => NotificationUser.php} (69%) mode change 100755 => 100644 create mode 100644 src/Queue/AdminModule/JobFormService.php create mode 100644 src/Queue/DI/services.neon delete mode 100755 src/Queue/JobEntity.php create mode 100644 src/Queue/JobType.php create mode 100644 src/Security/AdminModule/InvitationFormService.php create mode 100644 src/Security/AdminModule/RoleFormService.php create mode 100644 src/Security/DI/UserType.php create mode 100644 src/Security/DI/UserTypeProvider.php create mode 100644 src/Security/DI/services.neon create mode 100644 src/Security/DefaultType/AdminFormService.php create mode 100644 src/Security/DefaultType/FrontFormService.php create mode 100644 src/Security/DefaultType/RegistrationFormService.php rename src/Security/DefaultType/{UserEntity.php => User.php} (78%) mode change 100755 => 100644 rename src/Security/{ExtendedUserEntity.php => ExtendedUser.php} (77%) mode change 100755 => 100644 rename src/Security/{LoginEntity.php => Login.php} (83%) mode change 100755 => 100644 rename src/Security/{LoginProviderEntity.php => LoginProvider.php} (93%) mode change 100755 => 100644 create mode 100644 src/Security/NetteUser.php rename src/Security/{PermissionEntity.php => Permission.php} (81%) mode change 100755 => 100644 create mode 100644 src/Security/Role.php delete mode 100755 src/Security/RoleEntity.php delete mode 100644 src/Security/UserDirEntity.php delete mode 100755 src/Security/UserEntity.php create mode 100644 src/System/AdminModule/RegistrationFormService.php create mode 100644 src/System/DI/services.neon create mode 100644 src/System/DoctrineFormService.php rename src/System/{InvitationEntity.php => Invitation.php} (70%) rename src/System/{RegistrationEntity.php => Registration.php} (89%) create mode 100644 venne-phing.xml diff --git a/.travis.yml b/.travis.yml index c7d95a73..a2aecc8c 100755 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,11 @@ language: php php: - - 5.4 - 5.5 + - 5.6 before_script: - composer self-update - composer install --no-interaction --dev -script: VERBOSE=true vendor/bin/tester tests/ \ No newline at end of file +script: VERBOSE=true vendor/bin/phing check diff --git a/Resources/public/js/application.js b/Resources/public/js/application.js index 9ed4183a..737aafaf 100755 --- a/Resources/public/js/application.js +++ b/Resources/public/js/application.js @@ -275,13 +275,19 @@ $(function () { }); $.nette.ext('alerts', { success: function () { - var $alert = $(".alert"); - $alert.fadeTo(0, 0).fadeTo(500, 1); - window.setTimeout(function() { - $alert.fadeTo(500, 0).slideUp(500, function(){ - $(this).remove(); - }); - }, 4000); + $('#snippet--flashes .alert').each(function () { + var $alert = $(this); + + if (!$alert.data('venne-animation-apply')) { + $alert.attr('data-venne-animation-apply', true); + $alert.fadeTo(0, 0).fadeTo(500, 1); + window.setTimeout(function () { + $alert.fadeTo(500, 0).slideUp(500, function () { + $(this).remove(); + }); + }, 4000); + } + }); } }); $.nette.init(); diff --git a/Resources/templates/@layout.latte b/Resources/templates/@layout.latte index cb7697ea..a6d552e9 100755 --- a/Resources/templates/@layout.latte +++ b/Resources/templates/@layout.latte @@ -27,7 +27,7 @@