1297 Commits

Author SHA1 Message Date
Giuseppe Criscione
561649be2b Fix tooltips.js altering title attributes outside document body 2020-11-30 22:20:36 +01:00
Giuseppe Criscione
163550295e Move JSON encoding to controllers 2020-11-30 19:05:26 +01:00
Giuseppe Criscione
cbc4848766 Load scripts in login and register views 2020-11-30 18:59:16 +01:00
Giuseppe Criscione
0c54e930bd Move <script> tags before </body> 2020-11-30 18:57:47 +01:00
Giuseppe Criscione
9dcad3b53b Fix js error in pages without sidebar 2020-11-30 18:52:26 +01:00
Giuseppe Criscione
161d6f2c1a Update npm packages 2020-11-30 18:47:24 +01:00
Giuseppe Criscione
8a421622b2
Merge pull request #56 from getformwork/feature/dark-color-scheme
Add dark color scheme
2020-11-30 18:42:55 +01:00
Giuseppe Criscione
d6231c366b
Merge pull request #58 from getformwork/feature/json-parser
Add JSON parser (wrapper around `json_encode()` and `json_decode()`)
2020-11-30 02:01:05 +01:00
Giuseppe Criscione
2da402305e Update Composer packages 2020-11-30 02:00:02 +01:00
Giuseppe Criscione
1a7e63b167 Support PHP >= 7.3.5 2020-11-30 01:58:19 +01:00
Giuseppe Criscione
afd5b39c9e Fix FileSystem::moveDirectory() ignoring $overwrite argument on recursion 2020-11-28 17:18:36 +01:00
Giuseppe Criscione
8f5328de06 Fix FileSystem::isVisible() failing for empty paths 2020-11-28 17:16:26 +01:00
Giuseppe Criscione
55ad5e1a1a Update default avatar 2020-11-28 16:19:07 +01:00
Giuseppe Criscione
080c4e1d8a Avoid retaining in memory unmodified copies of images 2020-11-28 16:05:42 +01:00
Giuseppe Criscione
4723af893e Use SHA-256 hashes instead of SHA-1 2020-11-28 16:04:52 +01:00
Giuseppe Criscione
8b50172620 Add File Creation Mask to Options > Info 2020-11-28 15:38:35 +01:00
Giuseppe Criscione
4c9807d8ba Explicitly handle the mode of created files and directories 2020-11-27 16:36:03 +01:00
Giuseppe Criscione
d2092c859b Use FileSystem::createTemporaryFile() in FileSystem::write() 2020-11-27 15:49:07 +01:00
Giuseppe Criscione
e3ac55197d Add FileSystem::createTemporaryFile() 2020-11-27 15:47:32 +01:00
Giuseppe Criscione
b29350e801 Make FileSystem::createDirectory() error handling similar to FileSystem::createFile() 2020-11-27 15:46:09 +01:00
Giuseppe Criscione
43b9836b3c Make FileSystem::createFile() check file existence atomically and avoid call to FileSystem::write() 2020-11-27 15:44:47 +01:00
Giuseppe Criscione
cf0d8845dc Deprecate FileSystem::temporaryName() 2020-11-27 13:38:38 +01:00
Giuseppe Criscione
846ba5bb4a Add $prefix argument to FileSystem::randomName() 2020-11-27 13:38:27 +01:00
Giuseppe Criscione
b815346743 Use random_bytes() in FileSystem::randomName() 2020-11-27 13:29:46 +01:00
Giuseppe Criscione
ac8b8bce6e Remove superfluous checks before foreach 2020-11-26 16:46:15 +01:00
Giuseppe Criscione
026cce18b2 Simplify Cookie::send() 2020-11-26 16:39:37 +01:00
Giuseppe Criscione
235f145f98 Simplify Arr::appendMissing() 2020-11-26 16:38:34 +01:00
Giuseppe Criscione
eb003904b0 Simplify and combine conditionals when possible 2020-11-26 16:24:02 +01:00
Giuseppe Criscione
bc2fa532d6 Simplify conditional returns 2020-11-26 16:12:40 +01:00
Giuseppe Criscione
e9511a95f0 Remove superfluous argument 2020-11-26 16:08:45 +01:00
Giuseppe Criscione
3b2b216af2 Use methods from Path class in FileSystem and Uri 2020-11-25 17:39:01 +01:00
Giuseppe Criscione
09d0fe4dfa Add Path class 2020-11-25 17:32:00 +01:00
Giuseppe Criscione
3586ac690f Add supplementary version checks to Updater::checkUpdates() 2020-11-25 17:22:55 +01:00
Giuseppe Criscione
246c4121ab Add SemVer class 2020-11-25 17:14:37 +01:00
Giuseppe Criscione
b12e87d208 Make Formwork and Admin classes final 2020-11-25 11:32:27 +01:00
Giuseppe Criscione
8419a0d9c3 Fix method visibility 2020-11-25 11:32:10 +01:00
Giuseppe Criscione
21bc2df701 Replace json_encode() and json_decode() with methods from JSON 2020-11-24 17:50:22 +01:00
Giuseppe Criscione
ee89bfea63 Add JSON class 2020-11-24 17:48:29 +01:00
Giuseppe Criscione
072c18da64 Use YAML::encodeToFile() 2020-11-24 14:21:31 +01:00
Giuseppe Criscione
3242b4a0af Make YAML class extend AbstractEncoder 2020-11-24 14:20:51 +01:00
Giuseppe Criscione
f69160feda Add AbstractEncoder class 2020-11-24 14:19:47 +01:00
Giuseppe Criscione
aa87e4b1e9 Avoid concatenating twice in Uri::make() 2020-11-24 12:50:33 +01:00
Giuseppe Criscione
7efec4c00c Handle scheme and host always as lowercase in Uri class 2020-11-24 12:35:10 +01:00
Giuseppe Criscione
8da8f253f0 Handle default ports scheme-dependently in Uri class 2020-11-24 12:28:00 +01:00
Giuseppe Criscione
e8b7f49b17 Throw an exception when an URI is invalid 2020-11-24 11:12:53 +01:00
Giuseppe Criscione
0973eb9cbf Remove unneeded slashes normalization since Uri::normalize() does that 2020-11-24 00:40:28 +01:00
Giuseppe Criscione
19cf4fd407 Avoid treating page relative path as URI 2020-11-24 00:39:26 +01:00
Giuseppe Criscione
8fd8315d2f Normalize path in Site::__construct() 2020-11-24 00:38:20 +01:00
Giuseppe Criscione
3249a5c833 Return User::lastAccess() as integer 2020-11-24 00:20:11 +01:00
Giuseppe Criscione
45171d492a Fix timestamp format to avoid locale-dependent issues in Log::log() 2020-11-24 00:17:18 +01:00