1210 Commits

Author SHA1 Message Date
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
Giuseppe Criscione
ddefc5db9b Add Str::append() and Str::prepend() 2020-11-24 00:12:52 +01:00
Giuseppe Criscione
97f571ae60 Use substr_compare() to make Str::startsWith() and Str::endsWith() more efficient 2020-11-24 00:11:05 +01:00
Giuseppe Criscione
d05a0de1cb Use $assertExists argument to remove FileSystem::exists() checks 2020-11-20 17:16:49 +01:00
Giuseppe Criscione
08c189c465 Add $assertExists argument to FileSystem::isReadable(), FileSystem::isWritable(), FileSystem::isFile(), FileSystem::isDirectory() and FileSystem::isEmptyDirectory() 2020-11-20 17:14:10 +01:00
Giuseppe Criscione
d051f668f7 Rename FileSystem::assert() to FileSystem::assertExists() 2020-11-20 16:56:28 +01:00
Giuseppe Criscione
30ec0a9d5a Fix FileSystem::write() potentially writing files without write permissions 2020-11-20 16:39:58 +01:00
Giuseppe Criscione
b5d845a903 Add stream error details to FileSystem::write() 2020-11-20 16:34:22 +01:00
Giuseppe Criscione
d0e2ce50cd Extract FileSystem::getLastStreamErrorMessage() from FileSystem::fetch() 2020-11-20 16:31:11 +01:00
Giuseppe Criscione
b40f5bfd9c Fix Str::endsWith() returning false with empty $needle 2020-11-20 13:44:46 +01:00
Giuseppe Criscione
1c701e9b9c Simplify YAML class 2020-11-20 13:41:27 +01:00
Giuseppe Criscione
f38dba7c23 Rewrite FileSystem::name() and FileSystem::extension() using pathinfo() 2020-11-20 13:07:16 +01:00
Giuseppe Criscione
4d31f7df6e Rewrite Uri::make() and Uri::normalize() moving slashes normalization in the first method 2020-11-20 13:07:16 +01:00
Giuseppe Criscione
c9aaf1641f Use new utilities from Str class 2020-11-20 13:07:16 +01:00
Giuseppe Criscione
0937ed8697 Add Str::contains(), Str::before(), Str::beforeLast(), Str::after() and Str::afterLast() 2020-11-20 13:07:16 +01:00
Giuseppe Criscione
1cbf25b47c Avoid wrapping strings more than once with Str::wrap() 2020-11-20 13:07:11 +01:00
Giuseppe Criscione
c8679ffa2a Add support for system preferred color scheme 2020-11-19 13:20:39 +01:00
Giuseppe Criscione
be79e5841a Add color scheme options to system and user schemes 2020-11-18 17:52:57 +01:00
Giuseppe Criscione
bb8a0baa19 Add color scheme support to panel 2020-11-18 17:50:25 +01:00
Giuseppe Criscione
0202a62f5b Add dark color scheme CSS 2020-11-18 17:47:27 +01:00
Giuseppe Criscione
4375feccf9 Build minified CSS only 2020-11-18 15:44:18 +01:00
Giuseppe Criscione
504d77164f Fix .page-slug-change icon 2020-11-17 16:47:19 +01:00
Giuseppe Criscione
e565c311a3 Fix for-in loops 2020-11-16 18:34:11 +01:00
Giuseppe Criscione
3ed082c87b Update .eslintrc 2020-11-16 18:31:37 +01:00
Giuseppe Criscione
ffe3afca18 Add new options to tooltip component 2020-11-16 18:20:03 +01:00
Giuseppe Criscione
15e358e31f Recognize archive file type and display appropriate icon 2020-11-16 15:38:42 +01:00
Giuseppe Criscione
581a66ee96 Fix return type in File::type() 2020-11-16 15:32:15 +01:00
Giuseppe Criscione
62e336ddfa Update MimeType::MIME_TYPES 2020-11-16 15:29:10 +01:00
Giuseppe Criscione
228b13bba5 Move fonts.scss and icons.scss to components folder 2020-11-16 15:27:02 +01:00
Giuseppe Criscione
c2dc6d1399 Update fonts 2020-11-16 15:25:08 +01:00
Giuseppe Criscione
4cea9e1e82 Use system monospace font stack 2020-11-16 00:49:17 +01:00
Giuseppe Criscione
e7a87f67b2 Display Markdown only on active CodeMirror lines 2020-11-16 00:49:17 +01:00
Giuseppe Criscione
968fc520ba Use a default avatar image in SVG format 2020-11-16 00:49:04 +01:00
Giuseppe Criscione
b7f6136939 Add Formwork icon in SVG format 2020-11-15 16:43:38 +01:00
Giuseppe Criscione
218e05bff8 Ad Max Path Length to Options > Info 2020-11-14 18:02:37 +01:00
Giuseppe Criscione
74f00dc007 Add OPcache status to Options > Info 2020-11-14 18:02:21 +01:00
Giuseppe Criscione
a137e7067b Add PageCollection::shuffle() 2020-11-14 17:56:55 +01:00
Giuseppe Criscione
517563df5d Add Collection::random() 2020-11-14 17:53:35 +01:00