Merge pull request #193 from Lukasss93/luca.patera
Improved changelog + new changelog page
This commit is contained in:
commit
0629264002
13 changed files with 395 additions and 191 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -9,6 +9,7 @@ composer.lock
|
||||||
### grunt ###
|
### grunt ###
|
||||||
# Grunt usually compiles files inside this directory
|
# Grunt usually compiles files inside this directory
|
||||||
dist/
|
dist/
|
||||||
|
release*.zip
|
||||||
|
|
||||||
# Grunt usually preprocesses files such as coffeescript, compass... inside the .tmp directory
|
# Grunt usually preprocesses files such as coffeescript, compass... inside the .tmp directory
|
||||||
.tmp/
|
.tmp/
|
||||||
|
@ -77,6 +78,7 @@ typings/
|
||||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||||
|
|
||||||
# User-specific stuff:
|
# User-specific stuff:
|
||||||
|
.idea/
|
||||||
.idea/**/workspace.xml
|
.idea/**/workspace.xml
|
||||||
.idea/**/tasks.xml
|
.idea/**/tasks.xml
|
||||||
.idea/dictionaries
|
.idea/dictionaries
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Options -Indexes
|
Options -Indexes
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteRule ^(app|bin|bootstrap|resources|storage|vendor|logs)(/.*|)$ - [NC,F]
|
RewriteRule ^(app|bin|bootstrap|resources|storage|vendor|logs|CHANGELOG.MD)(/.*|)$ - [NC,F]
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^(.*)$ index.php [QSA,L]
|
RewriteRule ^(.*)$ index.php [QSA,L]
|
||||||
|
|
438
CHANGELOG.md
438
CHANGELOG.md
|
@ -1,192 +1,298 @@
|
||||||
## v.3.1.1
|
# Changelog
|
||||||
+ Fixed error during a fresh installation with sqlite
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## v.3.1
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
+ Added tagging system (add, delete, search of tagged files).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
+ Added basic media auto-tagging on upload.
|
|
||||||
+ Added registration system.
|
|
||||||
+ Added password recovery system.
|
|
||||||
+ Added ability to export all media of an account.
|
|
||||||
+ Added ability to choose between default and raw url on copy.
|
|
||||||
+ Added hide by default option.
|
|
||||||
+ Added user disk quota.
|
|
||||||
+ Added reCAPTCHA login protection.
|
|
||||||
+ Added bulk delete.
|
|
||||||
+ Added account clean function.
|
|
||||||
+ Added user disk quota system.
|
|
||||||
+ Added notification option on account create.
|
|
||||||
+ Added LDAP authentication.
|
|
||||||
+ Fixed bug html files raws are rendered in a browser.
|
|
||||||
+ The theme is now re-applied after every system update.
|
|
||||||
+ Updated system settings page.
|
|
||||||
+ Updated translations.
|
|
||||||
+ Improved grid layout.
|
|
||||||
+ Fixes and improvements.
|
|
||||||
|
|
||||||
## v.3.0.2
|
## [3.1.2] - 2020-04-12
|
||||||
+ Fixed error with migrate command.
|
### Changed
|
||||||
+ Updated translations.
|
- Improved installer storage checks.
|
||||||
|
|
||||||
## v.3.0.1
|
### Fixed
|
||||||
+ Fixed error with older mysql versions.
|
- Fixed upload table lost when updating very old instances.
|
||||||
+ Fixed config is compiled with the di container.
|
|
||||||
+ Small installer update.
|
|
||||||
|
|
||||||
## v.3.0
|
## [3.1.1] - 2020-04-11
|
||||||
+ Upgraded from Slim3 to Slim 4.
|
### Fixed
|
||||||
+ Added web upload.
|
- Fixed error during a fresh installation with sqlite.
|
||||||
+ Added ability to add custom HTML in \<head\> tag.
|
|
||||||
+ Added ability to show a preview of PDF files.
|
|
||||||
+ Added remember me functionality.
|
|
||||||
+ Added delete button on the preview page if the user is logged in.
|
|
||||||
+ New project icon (by [@SerenaItalia](https://www.deviantart.com/serenaitalia)).
|
|
||||||
+ Raw URL now accept file extensions.
|
|
||||||
+ The linux script can be used on headless systems.
|
|
||||||
+ Improved installer.
|
|
||||||
+ Improved thumbnail generation.
|
|
||||||
+ Replaced videojs player with Plyr.
|
|
||||||
+ Implemented SameSite XSS protection.
|
|
||||||
+ Small fixes and improvements.
|
|
||||||
|
|
||||||
## v.2.6.6
|
## [3.1] - 2020-04-10
|
||||||
+ Ability to choose between releases and prereleases with the web updater.
|
### Added
|
||||||
+ Updated translations.
|
- Added tagging system (add, delete, search of tagged files).
|
||||||
|
- Added basic media auto-tagging on upload.
|
||||||
|
- Added registration system.
|
||||||
|
- Added password recovery system.
|
||||||
|
- Added ability to export all media of an account.
|
||||||
|
- Added ability to choose between default and raw url on copy.
|
||||||
|
- Added hide by default option.
|
||||||
|
- Added user disk quota.
|
||||||
|
- Added reCAPTCHA login protection.
|
||||||
|
- Added bulk delete.
|
||||||
|
- Added account clean function.
|
||||||
|
- Added user disk quota system.
|
||||||
|
- Added notification option on account create.
|
||||||
|
- Added LDAP authentication.
|
||||||
|
|
||||||
## v2.6.5
|
### Changed
|
||||||
+ Fixed error after orphaned files removal #74.
|
- The theme is now re-applied after every system update.
|
||||||
+ Fixed update password not correctly removed from log files #74.
|
- Updated system settings page.
|
||||||
+ Changed color to some buttons to address visibility with some themes.
|
- Updated translations.
|
||||||
|
- Improved grid layout.
|
||||||
|
|
||||||
## v2.6.4
|
### Fixed
|
||||||
+ Filter on displayable images.
|
- Fixed bug html files raws are rendered in a browser.
|
||||||
+ Fixed during upload error on php compiled for 32 bit.
|
- Fixes and improvements.
|
||||||
+ Fixed icons on the installer page.
|
|
||||||
+ The generated random strings are now more human readable.
|
|
||||||
|
|
||||||
## v2.6.3
|
## [3.0.2] - 2019-12-04
|
||||||
+ Fixed #67.
|
### Changed
|
||||||
+ Fixed bad preload statement.
|
- Updated translations.
|
||||||
+ Fixed wrong redirect after install in subdirs.
|
|
||||||
|
|
||||||
## v2.6.2
|
### Fixed
|
||||||
+ Use the font awesome web font for better performances.
|
- Fixed error with migrate command.
|
||||||
+ Changed background default color.
|
|
||||||
+ Added method for cache busting when updating/change theme.
|
|
||||||
+ Added russian translation from [Weblate](https://hosted.weblate.org/projects/xbackbone/xbackbone/).
|
|
||||||
|
|
||||||
## v2.6.1
|
## [3.0.1] - 2019-11-25
|
||||||
+ Fixed bad redirects on the web installer (#62).
|
### Changed
|
||||||
+ Fixed login page with dark themes.
|
- Small installer update.
|
||||||
+ Improved shell commands.
|
|
||||||
+ Added alert if required extensions are not loaded.
|
|
||||||
+ Updated translations.
|
|
||||||
|
|
||||||
## v2.6
|
### Fixed
|
||||||
+ Added support to use AWS S3, Google Cloud Storage, Dropbox and FTP(s) accounts as storage location.
|
- Fixed error with older mysql versions.
|
||||||
+ Fixed missing icon.
|
- Fixed config is compiled with the di container.
|
||||||
+ Added german and norwegian translations from [Weblate](https://hosted.weblate.org/projects/xbackbone/xbackbone/).
|
|
||||||
+ Improved lang detection.
|
|
||||||
+ Added ability to force system language.
|
|
||||||
|
|
||||||
## v2.5.3
|
## [3.0] - 2019-11-23
|
||||||
+ Fixed bad css loading on Firefox (#35).
|
### Added
|
||||||
+ Fixed wrong style for publish/unpublish button.
|
- Added web upload.
|
||||||
+ Improved exception stacktrace logging.
|
- Added ability to add custom HTML in \<head\> tag.
|
||||||
|
- Added ability to show a preview of PDF files.
|
||||||
|
- Added remember me functionality.
|
||||||
|
- Added delete button on the preview page if the user is logged in.
|
||||||
|
- New project icon (by [@SerenaItalia](https://www.deviantart.com/serenaitalia)).
|
||||||
|
- The linux script can be used on headless systems.
|
||||||
|
- Raw URL now accept file extensions.
|
||||||
|
- Implemented SameSite XSS protection.
|
||||||
|
|
||||||
## v2.5.2
|
### Changed
|
||||||
+ Improved session handling.
|
- Upgraded from Slim3 to Slim 4.
|
||||||
+ Fixed telegram share not working.
|
- Replaced videojs player with Plyr.
|
||||||
+ Fix for big text file now are not rendered in the browser.
|
- Improved installer.
|
||||||
+ Added preloading for some resources to improve performances.
|
- Improved thumbnail generation.
|
||||||
+ Added check for block execution on EOL and unsupported PHP versions.
|
- Small fixes and improvements.
|
||||||
+ Other minor improvements.
|
|
||||||
|
|
||||||
## v2.5.1
|
## [2.6.6] - 2019-10-23
|
||||||
+ Fixed bad redirect if the theme folder is not writable. (#27)
|
### Added
|
||||||
+ Improved HTTP partial content implementation for large files.
|
- Ability to choose between releases and prereleases with the web updater.
|
||||||
|
|
||||||
## v2.5
|
### Changed
|
||||||
+ Updated project license to <a href="https://choosealicense.com/licenses/agpl-3.0/">AGPL v3.0</a> (now releases ships with the new license).
|
- Updated translations.
|
||||||
+ **[BETA]** Added self update feature.
|
|
||||||
+ Added partial content implementation (stream seeking on chromium based browsers).
|
|
||||||
+ Improved video.js alignment with large videos.
|
|
||||||
+ Optimized output zip release size.
|
|
||||||
+ Templates cleanup and optimizations.
|
|
||||||
+ Improved error handling.
|
|
||||||
+ Added project favicon.
|
|
||||||
|
|
||||||
## v2.4.1
|
## [2.6.5] - 2019-09-17
|
||||||
+ Fixed error message when the file is too large. (#15)
|
### Changed
|
||||||
+ Fixed button alignment.
|
- Changed color to some buttons to address visibility with some themes.
|
||||||
|
|
||||||
## v2.4
|
### Fixed
|
||||||
+ Added function to remove orphaned files.
|
- Fixed error after orphaned files removal #74.
|
||||||
+ Switch between tab and gallery mode using an admin account.
|
- Fixed update password not correctly removed from log files (#74).
|
||||||
+ Multiple uploads sorting methods.
|
|
||||||
+ Search in uploads.
|
|
||||||
+ Internal refactoring and improvements
|
|
||||||
+ Updated js dependencies.
|
|
||||||
|
|
||||||
## v2.3.1
|
## [2.6.4] - 2019-09-15
|
||||||
+ Fixed en lang.
|
### Added
|
||||||
+ Fixed forced background with dark themes.
|
- Filter on displayable images.
|
||||||
+ Added checks during the installation wizard.
|
|
||||||
+ cURL and Wget can now directly download the file.
|
|
||||||
|
|
||||||
## v2.3
|
### Changed
|
||||||
+ Improved image scaling in user gallery.
|
- The generated random strings are now more human readable.
|
||||||
+ Added overlay on user gallery images.
|
|
||||||
+ Fixed IT translation.
|
|
||||||
+ Fontawesome icon match the single file mime-type.
|
|
||||||
+ Enable audio player with video.js.
|
|
||||||
+ Video and audio now starts with volume at 50%.
|
|
||||||
+ Added linux script to allow uploads from linux screenshot tools.
|
|
||||||
+ Minor layout fixes.
|
|
||||||
|
|
||||||
## v2.2
|
### Fixed
|
||||||
+ Added multi-language support.
|
- Fixed during upload error on php compiled for 32 bit.
|
||||||
+ Improved routing.
|
- Fixed icons on the installer page.
|
||||||
+ Fixed HTTP/2 push is resetting the current session.
|
|
||||||
+ Minor improvements and bug fixes.
|
|
||||||
|
|
||||||
## v2.1
|
## [2.6.3] - 2019-09-14
|
||||||
+ Improved theme style.
|
### Fixed
|
||||||
+ Improved page redirecting.
|
- Fixed #67.
|
||||||
+ Allow e-mail login.
|
- Fixed bad preload statement.
|
||||||
+ Support for ShareX deletion URL.
|
- Fixed wrong redirect after install in subdirs.
|
||||||
+ Fixed HTTP/2 push preload.
|
|
||||||
+ Added video.js support.
|
|
||||||
|
|
||||||
## v2.0
|
## [2.6.2] - 2019-09-06
|
||||||
+ Migrated from Flight to Slim 3 framework.
|
### Added
|
||||||
+ Added install wizard (using the CLI is no longer required).
|
- Added method for cache busting when updating/change theme.
|
||||||
+ Allow discord bot to display the preview.
|
- Added russian translation from [Weblate](https://hosted.weblate.org/projects/xbackbone/xbackbone/).
|
||||||
+ Theme switcher on the web UI.
|
|
||||||
+ Added used space indicator per user.
|
|
||||||
+ MySQL support.
|
|
||||||
+ Improvements under the hood.
|
|
||||||
|
|
||||||
## v1.3
|
### Changed
|
||||||
+ Added command to switch between bootswatch.com themes.
|
- Changed background default color.
|
||||||
+ Added popever to write the telegram message when sharing.
|
- Use the Font Awesome web font for better performances.
|
||||||
+ Packaging improvements.
|
|
||||||
+ Updated some dependencies.
|
|
||||||
+ Allow Facebook bots to display the preview.
|
|
||||||
|
|
||||||
## v1.2
|
## [2.6.1] - 2019-09-04
|
||||||
+ Previews are now scaled for better page load.
|
### Added
|
||||||
+ Added auto config generator for ShareX.
|
- Added alert if required extensions are not loaded.
|
||||||
+ Show upload file size on the dashboard.
|
|
||||||
+ Fixed insert for admin user (running `php bin\migrate --install`).
|
|
||||||
+ Removed HTTP2 push from the dashboard to improve loading time.
|
|
||||||
|
|
||||||
## v1.1
|
### Changed
|
||||||
+ Added logging.
|
- Improved shell commands.
|
||||||
+ Fixed back to top when click delete or publish/unpublish.
|
- Updated translations.
|
||||||
+ Improved migrate system.
|
|
||||||
+ Login redirect back to the requested page.
|
|
||||||
+ Updated Bootstrap theme.
|
|
||||||
+ Added share to Telegram.
|
|
||||||
|
|
||||||
## v1.0
|
### Fixed
|
||||||
+ Initial version.
|
- Fixed bad redirects on the web installer (#62).
|
||||||
|
- Fixed login page with dark themes.
|
||||||
|
|
||||||
|
## [2.6] - 2019-08-20
|
||||||
|
### Added
|
||||||
|
- Added support to use AWS S3, Google Cloud Storage, Dropbox and FTP(s) accounts as storage location.
|
||||||
|
- Added german and norwegian translations from [Weblate](https://hosted.weblate.org/projects/xbackbone/xbackbone/).
|
||||||
|
- Added ability to force system language.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Improved lang detection.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed missing icon.
|
||||||
|
|
||||||
|
## [2.5.3] - 2019-05-12
|
||||||
|
### Changed
|
||||||
|
- Improved exception stacktrace logging.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed bad css loading on Firefox (#35).
|
||||||
|
- Fixed wrong style for publish/unpublish button.
|
||||||
|
|
||||||
|
## [2.5.2] - 2019-05-09
|
||||||
|
### Added
|
||||||
|
- Added preloading for some resources to improve performances.
|
||||||
|
- Added check for block execution on EOL and unsupported PHP versions.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Improved session handling.
|
||||||
|
- Other minor improvements.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed telegram share not working.
|
||||||
|
- Fix for big text file now are not rendered in the browser.
|
||||||
|
|
||||||
|
## [2.5.1] - 2019-04-10
|
||||||
|
### Changed
|
||||||
|
- Improved HTTP partial content implementation for large files.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed bad redirect if the theme folder is not writable. (#27)
|
||||||
|
|
||||||
|
## [2.5] - 2019-02-10
|
||||||
|
### Added
|
||||||
|
- Added partial content implementation (stream seeking on chromium based browsers).
|
||||||
|
- **[BETA]** Added self update feature.
|
||||||
|
- Added project favicon.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Updated project license to [AGPL v3.0](https://choosealicense.com/licenses/agpl-3.0/) (now releases ships with the new license).
|
||||||
|
- Improved video.js alignment with large videos.
|
||||||
|
- Optimized output zip release size.
|
||||||
|
- Templates cleanup and optimizations.
|
||||||
|
- Improved error handling.
|
||||||
|
|
||||||
|
## [2.4.1] - 2019-01-24
|
||||||
|
### Fixed
|
||||||
|
- Fixed error message when the file is too large. (#15)
|
||||||
|
- Fixed button alignment.
|
||||||
|
|
||||||
|
## [2.4] - 2019-01-22
|
||||||
|
### Added
|
||||||
|
- Added function to remove orphaned files.
|
||||||
|
- Multiple uploads sorting methods.
|
||||||
|
- Switch between tab and gallery mode using an admin account.
|
||||||
|
- Search in uploads.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Updated js dependencies.
|
||||||
|
- Internal refactoring and improvements
|
||||||
|
|
||||||
|
## [2.3.1] - 2018-12-09
|
||||||
|
### Added
|
||||||
|
- Added checks during the installation wizard.
|
||||||
|
- cURL and Wget can now directly download the file.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed english language.
|
||||||
|
- Fixed forced background with dark themes.
|
||||||
|
|
||||||
|
## [2.3] - 2018-11-30
|
||||||
|
### Added
|
||||||
|
- Added overlay on user gallery images.
|
||||||
|
- Added linux script to allow uploads from linux screenshot tools.
|
||||||
|
- Enable audio player with video.js.
|
||||||
|
- Font Awesome icon match the single file mime-type.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Improved image scaling in user gallery.
|
||||||
|
- Video and audio now starts with volume at 50%.
|
||||||
|
- Minor layout fixes.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed IT translation.
|
||||||
|
|
||||||
|
## [2.2] - 2018-11-20
|
||||||
|
### Added
|
||||||
|
- Added multi-language support.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Improved routing.
|
||||||
|
- Minor improvements and bug fixes.
|
||||||
|
- Fixed HTTP/2 push is resetting the current session.
|
||||||
|
|
||||||
|
## [2.1] - 2018-11-20
|
||||||
|
### Added
|
||||||
|
- Added video.js support.
|
||||||
|
- Allow e-mail login.
|
||||||
|
- Support for ShareX deletion URL.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Improved theme style.
|
||||||
|
- Improved page redirecting.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed HTTP/2 push preload.
|
||||||
|
|
||||||
|
## [2.0] - 2018-11-13
|
||||||
|
### Added
|
||||||
|
- Added install wizard (using the CLI is no longer required).
|
||||||
|
- Added used space indicator per user.
|
||||||
|
- Allow discord bot to display the preview.
|
||||||
|
- Theme switcher on the web UI.
|
||||||
|
- MySQL support.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Migrated from Flight to Slim 3 framework.
|
||||||
|
- Improvements under the hood.
|
||||||
|
|
||||||
|
## [1.3] - 2018-10-14
|
||||||
|
### Added
|
||||||
|
- Added command to switch between bootswatch.com themes.
|
||||||
|
- Added popover to write the telegram message when sharing.
|
||||||
|
- Allow Facebook bots to display the preview.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Packaging improvements.
|
||||||
|
- Updated some dependencies.
|
||||||
|
|
||||||
|
## [1.2] - 2018-05-01
|
||||||
|
### Added
|
||||||
|
- Added auto config generator for ShareX.
|
||||||
|
- Show upload file size on the dashboard.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Previews are now scaled for better page load.
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
- Removed HTTP2 push from the dashboard to improve loading time.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed insert for admin user (running `php bin\migrate --install`).
|
||||||
|
|
||||||
|
## [1.1] - 2018-04-28
|
||||||
|
### Added
|
||||||
|
- Added logging.
|
||||||
|
- Added share to Telegram.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Improved migrate system.
|
||||||
|
- Updated Bootstrap theme.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed back to top when click delete or publish/unpublish.
|
||||||
|
- Login redirect back to the requested page.
|
||||||
|
|
||||||
|
## [1.0] - 2018-04-28
|
||||||
|
### Added
|
||||||
|
- Initial version.
|
||||||
|
|
|
@ -146,6 +146,7 @@ module.exports = function (grunt) {
|
||||||
'composer.lock',
|
'composer.lock',
|
||||||
'LICENSE',
|
'LICENSE',
|
||||||
'favicon.ico',
|
'favicon.ico',
|
||||||
|
'CHANGELOG.md'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -154,7 +155,7 @@ module.exports = function (grunt) {
|
||||||
command: '"./vendor/bin/phpstan" --level=0 analyse app resources/lang bin install'
|
command: '"./vendor/bin/phpstan" --level=0 analyse app resources/lang bin install'
|
||||||
},
|
},
|
||||||
composer_no_dev: {
|
composer_no_dev: {
|
||||||
command: 'composer update --no-dev --prefer-dist'
|
command: 'composer install --no-dev --prefer-dist'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ namespace App\Controllers;
|
||||||
|
|
||||||
use App\Web\Session;
|
use App\Web\Session;
|
||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
|
use Parsedown;
|
||||||
use Psr\Http\Message\ResponseInterface as Response;
|
use Psr\Http\Message\ResponseInterface as Response;
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
@ -153,6 +154,21 @@ class UpgradeController extends Controller
|
||||||
|
|
||||||
return json($response, $jsonResponse);
|
return json($response, $jsonResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Request $request
|
||||||
|
* @param Response $response
|
||||||
|
* @return Response
|
||||||
|
* @throws \Twig\Error\LoaderError
|
||||||
|
* @throws \Twig\Error\RuntimeError
|
||||||
|
* @throws \Twig\Error\SyntaxError
|
||||||
|
*/
|
||||||
|
public function changelog(Request $request, Response $response): Response
|
||||||
|
{
|
||||||
|
return view()->render($response, 'dashboard/changelog.twig', [
|
||||||
|
'content' => Parsedown::instance()->text(file_get_contents('CHANGELOG.md')),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
protected function getApiJson()
|
protected function getApiJson()
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,10 +34,11 @@ $app->group('', function (RouteCollectorProxy $group) {
|
||||||
$group->get('/system/themes', [AdminController::class, 'getThemes'])->setName('theme');
|
$group->get('/system/themes', [AdminController::class, 'getThemes'])->setName('theme');
|
||||||
|
|
||||||
$group->post('/system/settings/save', [SettingController::class, 'saveSettings'])->setName('settings.save');
|
$group->post('/system/settings/save', [SettingController::class, 'saveSettings'])->setName('settings.save');
|
||||||
|
|
||||||
$group->post('/system/upgrade', [UpgradeController::class, 'upgrade'])->setName('system.upgrade');
|
$group->post('/system/upgrade', [UpgradeController::class, 'upgrade'])->setName('system.upgrade');
|
||||||
$group->get('/system/checkForUpdates', [UpgradeController::class, 'checkForUpdates'])->setName('system.checkForUpdates');
|
$group->get('/system/checkForUpdates', [UpgradeController::class, 'checkForUpdates'])->setName('system.checkForUpdates');
|
||||||
|
$group->get('/system/changelog', [UpgradeController::class, 'changelog'])->setName('system.changelog');
|
||||||
|
|
||||||
$group->get('/system', [AdminController::class, 'system'])->setName('system');
|
$group->get('/system', [AdminController::class, 'system'])->setName('system');
|
||||||
|
|
||||||
$group->get('/users[/page/{page}]', [UserController::class, 'index'])->setName('user.index');
|
$group->get('/users[/page/{page}]', [UserController::class, 'index'])->setName('user.index');
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "sergix44/xbackbone",
|
"name": "sergix44/xbackbone",
|
||||||
|
"license": "AGPL-3.0",
|
||||||
"version": "3.1.2",
|
"version": "3.1.2",
|
||||||
"description": "A lightweight ShareX PHP backend",
|
"description": "A lightweight ShareX PHP backend",
|
||||||
"type": "project",
|
"type": "project",
|
||||||
|
@ -10,6 +11,7 @@
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-pdo": "*",
|
"ext-pdo": "*",
|
||||||
"ext-zip": "*",
|
"ext-zip": "*",
|
||||||
|
"erusev/parsedown": "^1.7",
|
||||||
"guzzlehttp/psr7": "^1.6",
|
"guzzlehttp/psr7": "^1.6",
|
||||||
"http-interop/http-factory-guzzle": "^1.0",
|
"http-interop/http-factory-guzzle": "^1.0",
|
||||||
"intervention/image": "^2.4",
|
"intervention/image": "^2.4",
|
||||||
|
|
89
composer.lock
generated
89
composer.lock
generated
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "6f92268190e2189e19ce34681370d6f3",
|
"content-hash": "38f18f0b967be3ce9096df807dea1a17",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "aws/aws-sdk-php",
|
"name": "aws/aws-sdk-php",
|
||||||
|
@ -90,6 +90,52 @@
|
||||||
],
|
],
|
||||||
"time": "2020-04-08T18:27:07+00:00"
|
"time": "2020-04-08T18:27:07+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "erusev/parsedown",
|
||||||
|
"version": "1.7.4",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/erusev/parsedown.git",
|
||||||
|
"reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/erusev/parsedown/zipball/cb17b6477dfff935958ba01325f2e8a2bfa6dab3",
|
||||||
|
"reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"ext-mbstring": "*",
|
||||||
|
"php": ">=5.3.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "^4.8.35"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-0": {
|
||||||
|
"Parsedown": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Emanuil Rusev",
|
||||||
|
"email": "hello@erusev.com",
|
||||||
|
"homepage": "http://erusev.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Parser for Markdown.",
|
||||||
|
"homepage": "http://parsedown.org",
|
||||||
|
"keywords": [
|
||||||
|
"markdown",
|
||||||
|
"parser"
|
||||||
|
],
|
||||||
|
"time": "2019-12-30T22:54:17+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "firebase/php-jwt",
|
"name": "firebase/php-jwt",
|
||||||
"version": "v5.2.0",
|
"version": "v5.2.0",
|
||||||
|
@ -3019,34 +3065,35 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ocramius/package-versions",
|
"name": "ocramius/package-versions",
|
||||||
"version": "1.4.2",
|
"version": "1.8.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Ocramius/PackageVersions.git",
|
"url": "https://github.com/Ocramius/PackageVersions.git",
|
||||||
"reference": "44af6f3a2e2e04f2af46bcb302ad9600cba41c7d"
|
"reference": "421679846270a5772534828013a93be709fb13df"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/Ocramius/PackageVersions/zipball/44af6f3a2e2e04f2af46bcb302ad9600cba41c7d",
|
"url": "https://api.github.com/repos/Ocramius/PackageVersions/zipball/421679846270a5772534828013a93be709fb13df",
|
||||||
"reference": "44af6f3a2e2e04f2af46bcb302ad9600cba41c7d",
|
"reference": "421679846270a5772534828013a93be709fb13df",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"composer-plugin-api": "^1.0.0",
|
"composer-plugin-api": "^1.1.0 || ^2.0",
|
||||||
"php": "^7.1.0"
|
"php": "^7.4.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"composer/composer": "^1.6.3",
|
"composer/composer": "^1.9.3 || ^2.0@dev",
|
||||||
"doctrine/coding-standard": "^5.0.1",
|
"doctrine/coding-standard": "^7.0.2",
|
||||||
"ext-zip": "*",
|
"ext-zip": "^1.15.0",
|
||||||
"infection/infection": "^0.7.1",
|
"infection/infection": "^0.15.3",
|
||||||
"phpunit/phpunit": "^7.5.17"
|
"phpunit/phpunit": "^9.0.1",
|
||||||
|
"vimeo/psalm": "^3.9.3"
|
||||||
},
|
},
|
||||||
"type": "composer-plugin",
|
"type": "composer-plugin",
|
||||||
"extra": {
|
"extra": {
|
||||||
"class": "PackageVersions\\Installer",
|
"class": "PackageVersions\\Installer",
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "2.0.x-dev"
|
"dev-master": "1.99.x-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -3065,7 +3112,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)",
|
"description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)",
|
||||||
"time": "2019-11-15T16:17:10+00:00"
|
"time": "2020-04-06T17:43:35+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpstan/phpdoc-parser",
|
"name": "phpstan/phpdoc-parser",
|
||||||
|
@ -3374,20 +3421,20 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/service-contracts",
|
"name": "symfony/service-contracts",
|
||||||
"version": "v1.1.8",
|
"version": "v2.0.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/service-contracts.git",
|
"url": "https://github.com/symfony/service-contracts.git",
|
||||||
"reference": "ffc7f5692092df31515df2a5ecf3b7302b3ddacf"
|
"reference": "144c5e51266b281231e947b51223ba14acf1a749"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/ffc7f5692092df31515df2a5ecf3b7302b3ddacf",
|
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/144c5e51266b281231e947b51223ba14acf1a749",
|
||||||
"reference": "ffc7f5692092df31515df2a5ecf3b7302b3ddacf",
|
"reference": "144c5e51266b281231e947b51223ba14acf1a749",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1.3",
|
"php": "^7.2.5",
|
||||||
"psr/container": "^1.0"
|
"psr/container": "^1.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
|
@ -3396,7 +3443,7 @@
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.1-dev"
|
"dev-master": "2.0-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -3428,7 +3475,7 @@
|
||||||
"interoperability",
|
"interoperability",
|
||||||
"standards"
|
"standards"
|
||||||
],
|
],
|
||||||
"time": "2019-10-14T12:27:06+00:00"
|
"time": "2019-11-18T17:27:11+00:00"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
|
|
|
@ -28,6 +28,10 @@ location /logs {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location CHANGELOG.MD {
|
||||||
|
return 403;
|
||||||
|
}
|
||||||
|
|
||||||
index index.html index.htm index.php;
|
index index.html index.htm index.php;
|
||||||
|
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|
|
@ -156,4 +156,6 @@ return [
|
||||||
'no_tags' => 'No tags added',
|
'no_tags' => 'No tags added',
|
||||||
'auto_tagging' => 'Auto upload tagging',
|
'auto_tagging' => 'Auto upload tagging',
|
||||||
'zip_ext_not_loaded' => 'The required "zip" extension is not loaded',
|
'zip_ext_not_loaded' => 'The required "zip" extension is not loaded',
|
||||||
|
'changelog' => 'Changelog',
|
||||||
|
'show_changelog' => 'Show changelog',
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'lang' => 'Italian',
|
'lang' => 'Italian',
|
||||||
'yes' => 'Sì',
|
'yes' => 'Sì',
|
||||||
|
@ -158,4 +159,6 @@ return [
|
||||||
'mail.recover_text' => 'Ciao %s,<br>è stata richiesta una reimpostazione della password per il tuo account. Per completare la procedura clicca sul seguente link:<br><br><a href="%s">%s</a><br><br>Se non sei stato tu a richiedere la reimpostazione della password, ignora semplicemente questa e-mail.',
|
'mail.recover_text' => 'Ciao %s,<br>è stata richiesta una reimpostazione della password per il tuo account. Per completare la procedura clicca sul seguente link:<br><br><a href="%s">%s</a><br><br>Se non sei stato tu a richiedere la reimpostazione della password, ignora semplicemente questa e-mail.',
|
||||||
'mail.activate_text' => 'Ciao %s!<br>grazie per aver creato il tuo account su %s (<a href="%s">%s</a>), fai clic sul seguente link per attivarlo:<br><br><a href="%s">%s</a>',
|
'mail.activate_text' => 'Ciao %s!<br>grazie per aver creato il tuo account su %s (<a href="%s">%s</a>), fai clic sul seguente link per attivarlo:<br><br><a href="%s">%s</a>',
|
||||||
'zip_ext_not_loaded' => 'L\'estensione "zip" richiesta non è caricata',
|
'zip_ext_not_loaded' => 'L\'estensione "zip" richiesta non è caricata',
|
||||||
|
'changelog' => 'Changelog',
|
||||||
|
'show_changelog' => 'Mostra changelog'
|
||||||
];
|
];
|
||||||
|
|
17
resources/templates/dashboard/changelog.twig
Normal file
17
resources/templates/dashboard/changelog.twig
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{% extends 'base.twig' %}
|
||||||
|
|
||||||
|
{% block title %}{{ lang('changelog') }}{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{% include 'comp/navbar.twig' %}
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
|
<div class="card shadow-sm mt-3">
|
||||||
|
<div class="card-header">{{ lang('changelog') }}</div>
|
||||||
|
<div class="card-body">
|
||||||
|
{{ content | raw }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
|
@ -162,6 +162,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="card-footer text-center">
|
||||||
|
<a href="{{ route('system.changelog') }}">{{ lang('show_changelog') }}</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 mt-3">
|
<div class="col-md-4 mt-3">
|
||||||
|
|
Loading…
Reference in a new issue