122 Commits

Author SHA1 Message Date
Giuseppe Criscione
dc5f531143 Retain cursor position in Pages Editor after saving/reloading 2018-09-12 13:09:37 +02:00
Giuseppe Criscione
a91ffc1dd7 Fix tabs wrapping 2018-09-12 11:20:31 +02:00
Giuseppe Criscione
cdc538acec Add Updater feature to automatically download new releases from GitHub repository (#4)
* Add remote request methods to `FileSystem` class

* Add `Updater` class

* Fix extraction path in `Updater` class

* Merge branch 'master' into feature/updater

* Fix coding style with PHP-CS-Fixer

* Update .gitignore

* Add `cleanupAfterInstall` option to `Updater` class

* Add `Updater::latestRelease()` method

* Use `version_compare()` to check if Formwork is up-to-date

* Use more specific exception classes in `Updater`

* Update language strings

* Add `Updates` controller

* Add Options > Updates tab

* Fix incorrect version name displayed after update

* Rename `FileSystem::retrieve()` to `FileSystem::fetch()`

* Fix wrong function calls

* Use `Registry` object in `Updater` class

* Move archive URI in `Updater::$release` property

* Fix code to work after last merge commit

* Fix coding style with PHP-CS-Fixer

* Cleanup code
2018-09-11 22:32:41 +02:00
Giuseppe Criscione
e100c25fa8 Add new entries to Options > Info tab 2018-09-11 21:39:50 +02:00
Giuseppe Criscione
0f9885990c Fix AdminTrait::redirectToReferer() comparison with current uri 2018-09-11 18:16:51 +02:00
Giuseppe Criscione
37e32d8cd4 Cleanup code 2018-09-11 18:10:18 +02:00
Giuseppe Criscione
114eae00bf Add Admin Errors controller 2018-09-11 17:26:02 +02:00
Giuseppe Criscione
70723c6bc8 Fix language strings quotes 2018-09-11 00:06:51 +02:00
Giuseppe Criscione
87e4f203ad Fix notifications and language strings in Pages controller 2018-09-10 22:12:48 +02:00
Giuseppe Criscione
4d5986f1fa Fix coding style with PHP-CS-Fixer 2018-09-10 21:55:42 +02:00
Giuseppe Criscione
3bfab8b92a Cleanup code 2018-09-10 21:05:27 +02:00
Giuseppe Criscione
8c60c41467 Fix AdminTrait::redirectToReferer() to avoid same-uri redirects 2018-09-10 21:03:57 +02:00
Giuseppe Criscione
e551e1c37a Remove now unnecessary Admin::ensureLogin() 2018-09-10 19:52:41 +02:00
Giuseppe Criscione
ec3c5030eb Cleanup code 2018-09-10 17:30:49 +02:00
Giuseppe Criscione
9beec6c66c Add AdminTrait::redirectToPanel() method 2018-09-10 12:32:03 +02:00
Giuseppe Criscione
5a040536b8 Add Language::codeToName() and Language::codeToNativeName() 2018-09-10 11:57:15 +02:00
Giuseppe Criscione
ea18dbf1cc Add AdminTrait 2018-09-10 11:37:18 +02:00
Giuseppe Criscione
a7b64e0fa5 Add Attributes component to pages.editor view (#6) 2018-09-09 19:45:53 +02:00
Giuseppe Criscione
0a86c9b99a Add error notification when POST request size is greater than allowed 2018-09-09 17:51:09 +02:00
Giuseppe Criscione
4d25d0420d Display Session Strict Mode information in Options > Info tab 2018-09-09 17:48:32 +02:00
Giuseppe Criscione
09fd72b600 Add admin.logout_redirect option 2018-09-08 18:09:11 +02:00
Giuseppe Criscione
ca9f24f6fe Fix session temporary file persistence after logout 2018-09-08 18:06:52 +02:00
Giuseppe Criscione
80eb7ded77 Enable session use_strict_mode 2018-09-08 18:06:19 +02:00
Giuseppe Criscione
26df0fc30e Fix long notification text overflow 2018-09-07 18:54:00 +02:00
Giuseppe Criscione
5e24c69f5c Display loaded php.ini filename in Options > Info tab 2018-09-07 15:53:56 +02:00
Giuseppe Criscione
39fcc99bc4 Add range field type 2018-09-07 15:49:59 +02:00
Giuseppe Criscione
f945fb2f31 Add XHR request type to existing routes 2018-09-06 19:47:04 +02:00
Giuseppe Criscione
3f8760b9b6 Update npm packages 2018-09-06 18:45:38 +02:00
Giuseppe Criscione
0f6034fca7 Remove unused .button-save CSS class 2018-09-06 18:43:29 +02:00
Giuseppe Criscione
bebc4244d8 Add keyboard shortcut to all views with Save command 2018-09-06 18:40:52 +02:00
Giuseppe Criscione
f2590df3d5 Update jQuery version 2018-09-04 15:59:22 +02:00
Giuseppe Criscione
1d1f173cb6 Fix JS whitespace 2018-09-04 15:46:24 +02:00
Giuseppe Criscione
8e4d633dd6 Fix Formwork.Utils.uriPrependBase() returning multiple slashes 2018-09-04 15:39:09 +02:00
Giuseppe Criscione
35879393a5 Cleanup JS 2018-09-04 14:59:46 +02:00
Giuseppe Criscione
4a2d17cac4 Display HTTP Response Headers in Options > Info tab 2018-09-01 16:32:39 +02:00
Giuseppe Criscione
e81c2225dd Add HTTPRequest::isHTTPS() method 2018-09-01 16:30:55 +02:00
Giuseppe Criscione
26e070b661 Sort HTTP Request Headers in Options > Info tab 2018-08-29 17:41:43 +02:00
Giuseppe Criscione
f987571b9f Fix vertical scrollbar always visible in IE/Edge 2018-08-29 17:24:53 +02:00
Giuseppe Criscione
a5b02b26aa Update npm packages 2018-08-27 20:32:06 +02:00
Giuseppe Criscione
adece95642 Make buttons in Pages list look the same as in Page editor 2018-08-27 20:19:51 +02:00
Giuseppe Criscione
d3dbbeba94 Cleanup code 2018-08-27 20:17:00 +02:00
Giuseppe Criscione
b70f1bfb9c Fix method names which broke PHP ^5.5.0 compatibility
* Rename `Admin\Controllers\Pages::list()` to `Admin\Controllers\Pages::index()`
* Rename `Admin\Controllers\Pages::new()` to `Admin\Controllers\Pages::create()`
* Rename `Admin\Controllers\Users::new()` to `Admin\Controllers\Users::create()`
* Rename `Admin\Fields\Field::empty()` to `Admin\Fields\Field::isEmpty()`
* Rename `Core\Page::empty()` to `Core\Page::isEmpty()`
* Rename `Core\PageCollection::empty()` to `Core\PageCollection::isEmpty()`
* Rename `Core\Scheme::default()` to `Core\Scheme::isDefault()`
* Rename `Data\Collection::empty()` to `Data\Collection::isEmpty()`
* Rename `Utils\FileSystem::list()` to `Utils\FileSystem::scan()`

* Remove `Admin\Fields\Field::default()`
2018-08-27 20:06:49 +02:00
Giuseppe Criscione
92f579432a Add box shadow to pages list items when sorting pages 2018-08-02 15:13:07 +02:00
Giuseppe Criscione
caaad28694 Fix missing pages.new-page.template language string 2018-08-02 12:22:05 +02:00
Giuseppe Criscione
3a5d92c45a Make "Root (/)" option translatable in New Page modal 2018-08-02 10:56:32 +02:00
Giuseppe Criscione
32414d808c Fix typo in language strings 2018-08-01 20:50:33 +02:00
Giuseppe Criscione
7fe51eb7e0 Remove inline styles in User view 2018-08-01 20:48:14 +02:00
Giuseppe Criscione
2dcf2d9e06 Add logout notification 2018-08-01 15:20:43 +02:00
Giuseppe Criscione
44f923563a Sort language strings 2018-08-01 13:13:16 +02:00
Giuseppe Criscione
d042303381 Cleanup code 2018-08-01 11:15:12 +02:00