From 732615b5f8dbbf24f5d8561f4ad28630834729fc Mon Sep 17 00:00:00 2001 From: Maurice Renck Date: Fri, 1 Dec 2023 13:04:48 +0100 Subject: [PATCH] breaking: kirby 4 release --- .gitignore | 1 + components/fields.php | 4 +- composer.json | 12 +- composer.lock | 731 +++++++++++------- content/home/default.en.txt | 4 + content/note/default.en.txt | 2 + index.css | 2 +- index.js | 2 +- internal/api.php | 87 ++- src/components/Pexels.vue | 180 ++--- vendor/composer/ClassLoader.php | 41 +- vendor/composer/InstalledVersions.php | 17 +- vendor/composer/autoload_classmap.php | 83 +- vendor/composer/autoload_files.php | 1 - vendor/composer/autoload_psr4.php | 1 + vendor/composer/autoload_real.php | 27 +- vendor/composer/autoload_static.php | 89 ++- vendor/composer/installed.php | 86 +-- vendor/composer/platform_check.php | 4 +- vendor/guzzlehttp/guzzle/src/Client.php | 40 +- .../guzzlehttp/guzzle/src/ClientInterface.php | 2 +- .../guzzle/src/Cookie/CookieJar.php | 57 +- .../guzzle/src/Cookie/CookieJarInterface.php | 5 +- .../guzzle/src/Cookie/SessionCookieJar.php | 2 +- .../guzzle/src/Cookie/SetCookie.php | 84 +- .../guzzle/src/Handler/CurlFactory.php | 97 ++- .../guzzle/src/Handler/CurlMultiHandler.php | 12 +- .../guzzle/src/Handler/EasyHandle.php | 2 +- .../guzzle/src/Handler/HeaderProcessor.php | 4 +- .../guzzle/src/Handler/MockHandler.php | 3 +- .../guzzle/src/Handler/StreamHandler.php | 66 +- vendor/guzzlehttp/guzzle/src/HandlerStack.php | 16 +- .../guzzle/src/MessageFormatter.php | 17 +- .../guzzle/src/MessageFormatterInterface.php | 2 +- vendor/guzzlehttp/guzzle/src/Middleware.php | 20 +- .../guzzle/src/PrepareBodyMiddleware.php | 1 + .../guzzle/src/RedirectMiddleware.php | 12 +- .../guzzlehttp/guzzle/src/RequestOptions.php | 16 +- .../guzzlehttp/guzzle/src/RetryMiddleware.php | 9 +- .../guzzlehttp/guzzle/src/TransferStats.php | 4 +- vendor/guzzlehttp/guzzle/src/Utils.php | 37 +- vendor/guzzlehttp/guzzle/src/functions.php | 8 +- .../guzzle/src/functions_include.php | 2 +- vendor/guzzlehttp/promises/Makefile | 13 - .../promises/src/AggregateException.php | 4 +- .../promises/src/CancellationException.php | 2 + vendor/guzzlehttp/promises/src/Coroutine.php | 39 +- vendor/guzzlehttp/promises/src/Create.php | 21 +- vendor/guzzlehttp/promises/src/Each.php | 26 +- .../guzzlehttp/promises/src/EachPromise.php | 51 +- .../promises/src/FulfilledPromise.php | 29 +- vendor/guzzlehttp/promises/src/Is.php | 18 +- vendor/guzzlehttp/promises/src/Promise.php | 51 +- .../promises/src/PromiseInterface.php | 34 +- .../promises/src/PromisorInterface.php | 6 +- .../promises/src/RejectedPromise.php | 30 +- .../promises/src/RejectionException.php | 15 +- vendor/guzzlehttp/promises/src/TaskQueue.php | 16 +- .../promises/src/TaskQueueInterface.php | 10 +- vendor/guzzlehttp/promises/src/Utils.php | 69 +- vendor/guzzlehttp/promises/src/functions.php | 363 --------- .../promises/src/functions_include.php | 6 - vendor/guzzlehttp/psr7/src/AppendStream.php | 15 +- vendor/guzzlehttp/psr7/src/BufferStream.php | 2 - vendor/guzzlehttp/psr7/src/FnStream.php | 9 +- vendor/guzzlehttp/psr7/src/Header.php | 4 +- vendor/guzzlehttp/psr7/src/HttpFactory.php | 8 +- vendor/guzzlehttp/psr7/src/InflateStream.php | 6 +- vendor/guzzlehttp/psr7/src/LazyOpenStream.php | 10 +- vendor/guzzlehttp/psr7/src/Message.php | 29 +- vendor/guzzlehttp/psr7/src/MessageTrait.php | 21 +- vendor/guzzlehttp/psr7/src/MimeType.php | 34 +- .../guzzlehttp/psr7/src/MultipartStream.php | 10 +- vendor/guzzlehttp/psr7/src/PumpStream.php | 6 +- vendor/guzzlehttp/psr7/src/Query.php | 4 +- vendor/guzzlehttp/psr7/src/Request.php | 6 +- vendor/guzzlehttp/psr7/src/Response.php | 1 + vendor/guzzlehttp/psr7/src/Rfc7230.php | 2 +- vendor/guzzlehttp/psr7/src/ServerRequest.php | 14 +- vendor/guzzlehttp/psr7/src/Stream.php | 11 +- .../psr7/src/StreamDecoratorTrait.php | 5 +- vendor/guzzlehttp/psr7/src/StreamWrapper.php | 60 +- vendor/guzzlehttp/psr7/src/Uri.php | 57 +- vendor/guzzlehttp/psr7/src/UriNormalizer.php | 10 +- vendor/guzzlehttp/psr7/src/UriResolver.php | 18 +- vendor/guzzlehttp/psr7/src/Utils.php | 10 +- .../psr/http-message/src/MessageInterface.php | 22 +- .../psr/http-message/src/RequestInterface.php | 15 +- .../http-message/src/ResponseInterface.php | 6 +- .../src/ServerRequestInterface.php | 24 +- .../psr/http-message/src/StreamInterface.php | 30 +- .../src/UploadedFileInterface.php | 12 +- vendor/psr/http-message/src/UriInterface.php | 33 +- .../accounting/Model/AccountingAccount.php | 2 +- .../src/accounting/Model/BankDetails.php | 38 +- .../src/accounting/Model/PaymentChoice.php | 2 +- .../src/accounting/Model/PaymentTerm.php | 2 +- .../src/accounting/Model/VatRate.php | 10 +- .../accounting/Serializer/JsonSerializer.php | 15 +- .../core-library/src/adoria/Model/Result.php | 4 +- .../src/adoria/Provider/ApiProvider.php | 4 +- .../billing/Helper/BillableDetailHelper.php | 8 +- .../src/billing/Helper/BillableHelper.php | 20 +- .../src/billing/Helper/TaxableHelper.php | 8 +- .../src/billing/Model/Billable.php | 21 +- .../src/billing/Model/BillableDetail.php | 8 +- .../src/billing/Model/BillableInterface.php | 7 + .../src/billing/Model/DeliveryNote.php | 2 +- .../src/billing/Model/PurchaseBill.php | 2 +- .../src/billing/Model/PurchaseOrder.php | 2 +- .../src/billing/Model/Quotation.php | 6 +- .../src/billing/Model/SalesBill.php | 2 +- .../src/billing/Model/Taxable.php | 4 +- .../src/billing/Serializer/JsonSerializer.php | 27 +- .../src/core/Exception/AbstractException.php | 5 +- .../core-library/src/core/Helper/OSHelper.php | 9 +- .../core-library/src/core/Model/Cpu.php | 3 +- .../core-library/src/core/Model/Memory.php | 3 +- .../src/curl/Api/RequestInterface.php | 4 +- .../src/curl/Exception/AbstractException.php | 6 +- .../src/curl/Helper/CurlHelper.php | 10 +- .../src/curl/Request/AbstractRequest.php | 34 +- .../src/curl/Response/Response.php | 12 +- .../Connector/AbstractDatabaseConnector.php | 6 +- .../MicrosoftAccessDatabaseConnector.php | 2 +- .../MicrosoftSQLServerDatabaseConnector.php | 2 +- .../OracleMySQLDatabaseConnector.php | 2 +- .../src/dropdown/Model/DropdownItem.php | 6 +- .../dropdown/Serializer/JsonSerializer.php | 3 +- .../src/ftp/Client/AbstractClient.php | 2 +- .../core-library/src/ftp/Client/FtpClient.php | 90 +-- .../src/ftp/Client/FtpsClient.php | 2 +- .../src/ftp/Client/SftpClient.php | 16 +- .../src/image/Factory/ImageFactory.php | 2 +- .../src/image/Helper/ImageHelper.php | 2 +- .../core-library/src/image/Model/Image.php | 8 +- .../core-library/src/logger/NullLogger.php | 2 +- .../src/logger/TerminalLogger.php | 2 +- .../src/maths/Helper/IntegerHelper.php | 62 ++ .../src/maths/Helper/PascalTriangleHelper.php | 88 +++ .../src/maths/Helper/Rot13Helper.php | 1 + .../src/ocrlad/Geometry/Angle.php | 4 +- .../src/ocrlad/Model/Document.php | 4 +- .../core-library/src/ocrlad/Model/Page.php | 2 +- .../src/ocrlad/Provider/OcrProvider.php | 1 + .../src/ocrlad/Serializer/DerDeserializer.php | 4 +- .../Arrays}/ArrayWordsTrait.php | 6 +- .../src/planning/Helper/TimeSlotFunctor.php | 2 +- .../src/planning/Helper/TimeSlotHelper.php | 8 +- .../src/provider/AbstractProvider.php | 18 +- .../src/provider/Exception/ApiException.php | 6 +- .../src/security/TokenGenerator.php | 9 +- .../serializer/Helper/CsvSerializerHelper.php | 4 +- .../Helper/JsonSerializerHelper.php | 4 +- .../Helper/XmlDeserializerHelper.php | 2 +- .../serializer/Helper/XmlSerializerHelper.php | 6 +- .../src/serializer/SerializerKeys.php | 65 +- .../Helper/AlphabeticalTreeNodeHelper.php | 2 +- .../src/symfony/Assets/AbstractAlert.php | 2 +- .../src/symfony/Assets/AbstractBadge.php | 2 +- .../src/symfony/Assets/AbstractButton.php | 2 +- .../src/symfony/Assets/AbstractIcon.php | 2 +- .../src/symfony/Assets/AbstractLabel.php | 2 +- .../symfony/Assets/AbstractNavigationNode.php | 40 +- .../symfony/Assets/AbstractNotification.php | 6 +- .../symfony/Assets/AbstractProgressBar.php | 2 +- .../src/symfony/Assets/AbstractToast.php | 6 +- .../src/symfony/Assets/FullCalendarEvent.php | 34 +- .../symfony/Assets/Navigation/DividerNode.php | 2 +- .../symfony/Assets/Navigation/HeaderNode.php | 2 +- .../Assets/NavigationNodeInterface.php | 2 +- .../AmberColorProvider.php | 5 +- .../BlackColorProvider.php | 5 +- .../BlueColorProvider.php | 5 +- .../BlueGreyColorProvider.php | 5 +- .../BrownColorProvider.php | 5 +- .../CyanColorProvider.php | 5 +- .../DeepOrangeColorProvider.php | 5 +- .../DeepPurpleColorProvider.php | 5 +- .../GreenColorProvider.php | 5 +- .../GreyColorProvider.php | 5 +- .../IndigoColorProvider.php | 5 +- .../LightBlueColorProvider.php | 5 +- .../LightGreenColorProvider.php | 5 +- .../LimeColorProvider.php | 5 +- .../OrangeColorProvider.php | 5 +- .../PinkColorProvider.php | 5 +- .../PurpleColorProvider.php | 5 +- .../RedColorProvider.php | 5 +- .../TealColorProvider.php | 5 +- .../WhiteColorProvider.php | 5 +- .../YellowColorProvider.php | 5 +- .../src/symfony/Factory/ColorFactory.php | 3 +- .../symfony/Factory/NotificationFactory.php | 10 +- .../src/symfony/Factory/ToastFactory.php | 10 +- .../src/symfony/Manager/AbstractManager.php | 16 +- .../src/symfony/Manager/ColorManager.php | 12 +- .../symfony/Manager/ColorManagerInterface.php | 22 + .../src/symfony/Manager/ColorManagerTrait.php | 10 +- .../src/symfony/Manager/JavascriptManager.php | 72 ++ .../Manager/JavascriptManagerInterface.php | 28 + .../Manager/JavascriptManagerTrait.php | 48 ++ .../src/symfony/Manager/ManagerInterface.php | 16 +- .../src/symfony/Manager/QuoteManager.php | 14 +- .../symfony/Manager/QuoteManagerInterface.php | 22 + .../src/symfony/Manager/QuoteManagerTrait.php | 10 +- .../src/symfony/Manager/StylesheetManager.php | 72 ++ .../Manager/StylesheetManagerInterface.php | 28 + .../Manager/StylesheetManagerTrait.php | 48 ++ .../core-library/src/symfony/Model/Quote.php | 4 +- .../src/symfony/Model/RepositoryDetail.php | 128 +++ .../Model/RepositoryDetailInterface.php | 84 ++ .../symfony/Model/RepositoryDetailTrait.php | 48 ++ .../src/symfony/Model/RepositoryEvent.php | 202 +++++ .../Model/RepositoryEventInterface.php | 217 ++++++ .../symfony/Model/RepositoryEventTrait.php | 48 ++ .../src/symfony/Model/RepositoryReport.php | 133 +--- .../Model/RepositoryReportInterface.php | 47 +- .../symfony/Model/RepositoryReportTrait.php | 48 ++ .../src/symfony/Model/RequestDetail.php | 118 +++ .../symfony/Model/RequestDetailInterface.php | 166 ++++ .../src/symfony/Model/RequestDetailTrait.php | 48 ++ .../Provider/AbstractColorProvider.php | 3 +- .../Provider/AbstractQuoteProvider.php | 2 +- .../Provider/JavascriptProviderInterface.php | 49 ++ .../Provider/JavascriptProviderTrait.php | 48 ++ .../Provider/Quote/YamlQuoteProvider.php | 2 +- .../Provider/StylesheetProviderInterface.php | 49 ++ .../Provider/StylesheetProviderTrait.php | 48 ++ .../Theme/UserInfoThemeProviderInterface.php | 4 +- .../symfony/Provider/ThemeProviderTrait.php | 48 ++ .../Response/DefaultJsonResponseData.php | 7 +- .../Response/SimpleJsonResponseData.php | 11 +- .../src/symfony/Serializer/JsonSerializer.php | 135 +++- .../src/symfony/Serializer/SerializerKeys.php | 105 +++ .../src/symfony/Service/PhantomJSService.php | 4 +- .../symfony/Service/TokenGeneratorService.php | 2 +- .../TokenGeneratorServiceInterface.php | 31 + .../Service/TokenGeneratorServiceTrait.php | 10 +- .../symfony/Service/UploadedFileService.php | 15 +- .../Service/UploadedFileServiceInterface.php | 73 ++ .../Theme/DefaultApplicationThemeProvider.php | 14 +- .../DefaultHookDropdownThemeProvider.php | 2 +- .../Theme/DefaultNavigationThemeProvider.php | 2 +- ...aultNotificationsDropdownThemeProvider.php | 2 +- .../DefaultTasksDropdownThemeProvider.php | 2 +- .../Theme/DefaultUserInfoThemeProvider.php | 4 +- .../src/system/Helper/SystemHelper.php | 382 +++++++++ .../core-library/src/system/Model/Cpu.php | 237 ++++++ .../src/system/Model/CpuInterface.php | 79 ++ .../src/system/Model/CpuTrait.php | 48 ++ .../src/system/Model/HardDisk.php | 167 ++++ .../src/system/Model/HardDiskInterface.php | 72 ++ .../src/system/Model/HardDiskTrait.php | 48 ++ .../core-library/src/system/Model/Memory.php | 114 +++ .../src/system/Model/MemoryInterface.php | 80 ++ .../src/system/Model/MemoryTrait.php | 48 ++ .../core-library/src/system/Model/Network.php | 112 +++ .../src/system/Model/NetworkCard.php | 190 +++++ .../src/system/Model/NetworkCardInterface.php | 72 ++ .../src/system/Model/NetworkCardTrait.php | 48 ++ .../src/system/Model/NetworkInterface.php | 44 ++ .../src/system/Model/NetworkTrait.php | 48 ++ .../src/system/Model/OperatingSystem.php | 92 +++ .../system/Model/OperatingSystemInterface.php | 52 ++ .../src/system/Model/OperatingSystemTrait.php | 48 ++ .../src/system/Model/Processor.php | 121 +++ .../src/system/Model/ProcessorInterface.php | 87 +++ .../src/system/Model/ProcessorTrait.php | 48 ++ .../src/system/Model/PropertyInterface.php | 119 +++ .../src/system/Serializer/JsonSerializer.php | 139 ++++ .../src/system/Serializer/SerializerKeys.php | 175 +++++ .../core-library/src/system/System.php | 172 +++++ .../Booleans/BooleanOnPostDeleteTrait.php | 48 ++ .../Booleans/BooleanOnPostDisableTrait.php | 48 ++ .../Booleans/BooleanOnPostEditTrait.php | 48 ++ .../Booleans/BooleanOnPostEnableTrait.php | 48 ++ .../traits/Booleans/BooleanOnPostNewTrait.php | 48 ++ .../Booleans/BooleanOnPostShowTrait.php | 48 ++ .../Booleans/BooleanOnPreDeleteTrait.php | 48 ++ .../Booleans/BooleanOnPreDisableTrait.php | 48 ++ .../traits/Booleans/BooleanOnPreEditTrait.php | 48 ++ .../Booleans/BooleanOnPreEnableTrait.php | 48 ++ .../traits/Booleans/BooleanOnPreNewTrait.php | 48 ++ .../traits/Booleans/BooleanOnPreShowTrait.php | 48 ++ .../DateTimes/DateTimeDeadlineTrait.php | 50 ++ .../src/traits/Floats/FloatMaxTrait.php | 10 +- .../src/traits/Floats/FloatMaximumTrait.php | 10 +- .../src/traits/Floats/FloatMinTrait.php | 10 +- .../src/traits/Floats/FloatMinimumTrait.php | 10 +- .../src/traits/Floats/FloatScoreTrait.php | 10 +- .../src/traits/Floats/FloatTotalTrait.php | 48 ++ .../traits/Integers/IntegerStatusTrait.php | 48 ++ .../src/traits/Integers/IntegerYearTrait.php | 48 ++ .../src/traits/Strings/ArrayRolesTrait.php | 10 +- .../src/traits/Strings/StringEntityTrait.php | 48 ++ .../src/traits/Strings/StringImageTrait.php | 48 ++ .../src/traits/Strings/StringMethodTrait.php | 48 ++ .../src/traits/Strings/StringRequestTrait.php | 48 ++ .../src/traits/Strings/StringRouteTrait.php | 48 ++ .../traits/Strings/StringUserAgentTrait.php | 48 ++ .../src/traits/Strings/StringVersionTrait.php | 48 ++ .../Exception/ArrayArgumentException.php | 6 +- .../Exception/BooleanArgumentException.php | 6 +- .../types/Exception/DateArgumentException.php | 6 +- .../Exception/DoubleArgumentException.php | 6 +- .../Exception/FloatArgumentException.php | 6 +- .../Exception/IntegerArgumentException.php | 6 +- .../Exception/NumberArgumentException.php | 6 +- .../Exception/ObjectArgumentException.php | 6 +- .../Exception/ResourceArgumentException.php | 6 +- .../Exception/StringArgumentException.php | 6 +- .../Exception/TimestampArgumentException.php | 6 +- .../src/types/Factory/DateIntervalFactory.php | 94 +++ .../src/types/Factory/DateTimeFactory.php | 70 ++ .../src/types/Helper/ArrayHelper.php | 142 +++- .../src/types/Helper/BooleanHelper.php | 5 +- .../src/types/Helper/DateTimeHelper.php | 247 +++--- .../src/types/Helper/DateTimeMethod.php | 408 ++++++++++ .../src/types/Helper/DateTimeZoneHelper.php | 2 +- .../src/types/Helper/DoubleHelper.php | 6 +- .../src/types/Helper/FloatHelper.php | 7 +- .../src/types/Helper/IntegerHelper.php | 6 +- .../src/types/Helper/NumberHelper.php | 5 +- .../src/types/Helper/ObjectHelper.php | 6 +- .../src/types/Helper/ResourceHelper.php | 5 +- .../src/types/Helper/StringHelper.php | 11 +- .../src/types/Helper/TimestampHelper.php | 5 +- .../core-library/src/types/TypeHelper.php | 4 +- .../src/validator/AbstractValidator.php | 4 +- .../src/validator/Rule/AbstractRule.php | 2 +- .../src/validator/RuleSet/AbstractRuleSet.php | 8 +- .../src/validator/Status/AbstractStatus.php | 11 +- .../vehicle/Model/RegistrationCertificate.php | 188 ++--- .../src/vehicle/Model/VehicleBrand.php | 2 +- .../src/vehicle/Serializer/JsonSerializer.php | 6 +- .../webeweb/core-library/util/workspace.php | 68 +- .../src/Provider/AbstractProvider.php | 4 +- 338 files changed, 9381 insertions(+), 2536 deletions(-) delete mode 100644 vendor/guzzlehttp/promises/Makefile delete mode 100644 vendor/guzzlehttp/promises/src/functions.php delete mode 100644 vendor/guzzlehttp/promises/src/functions_include.php create mode 100644 vendor/webeweb/core-library/src/maths/Helper/IntegerHelper.php create mode 100644 vendor/webeweb/core-library/src/maths/Helper/PascalTriangleHelper.php rename vendor/webeweb/core-library/src/ocrlad/{Model/Attribute => Traits/Arrays}/ArrayWordsTrait.php (91%) create mode 100644 vendor/webeweb/core-library/src/symfony/Manager/ColorManagerInterface.php create mode 100644 vendor/webeweb/core-library/src/symfony/Manager/JavascriptManager.php create mode 100644 vendor/webeweb/core-library/src/symfony/Manager/JavascriptManagerInterface.php create mode 100644 vendor/webeweb/core-library/src/symfony/Manager/JavascriptManagerTrait.php create mode 100644 vendor/webeweb/core-library/src/symfony/Manager/QuoteManagerInterface.php create mode 100644 vendor/webeweb/core-library/src/symfony/Manager/StylesheetManager.php create mode 100644 vendor/webeweb/core-library/src/symfony/Manager/StylesheetManagerInterface.php create mode 100644 vendor/webeweb/core-library/src/symfony/Manager/StylesheetManagerTrait.php create mode 100644 vendor/webeweb/core-library/src/symfony/Model/RepositoryDetail.php create mode 100644 vendor/webeweb/core-library/src/symfony/Model/RepositoryDetailInterface.php create mode 100644 vendor/webeweb/core-library/src/symfony/Model/RepositoryDetailTrait.php create mode 100644 vendor/webeweb/core-library/src/symfony/Model/RepositoryEvent.php create mode 100644 vendor/webeweb/core-library/src/symfony/Model/RepositoryEventInterface.php create mode 100644 vendor/webeweb/core-library/src/symfony/Model/RepositoryEventTrait.php create mode 100644 vendor/webeweb/core-library/src/symfony/Model/RepositoryReportTrait.php create mode 100644 vendor/webeweb/core-library/src/symfony/Model/RequestDetail.php create mode 100644 vendor/webeweb/core-library/src/symfony/Model/RequestDetailInterface.php create mode 100644 vendor/webeweb/core-library/src/symfony/Model/RequestDetailTrait.php create mode 100644 vendor/webeweb/core-library/src/symfony/Provider/JavascriptProviderInterface.php create mode 100644 vendor/webeweb/core-library/src/symfony/Provider/JavascriptProviderTrait.php create mode 100644 vendor/webeweb/core-library/src/symfony/Provider/StylesheetProviderInterface.php create mode 100644 vendor/webeweb/core-library/src/symfony/Provider/StylesheetProviderTrait.php create mode 100644 vendor/webeweb/core-library/src/symfony/Provider/ThemeProviderTrait.php create mode 100644 vendor/webeweb/core-library/src/symfony/Serializer/SerializerKeys.php create mode 100644 vendor/webeweb/core-library/src/symfony/Service/TokenGeneratorServiceInterface.php create mode 100644 vendor/webeweb/core-library/src/symfony/Service/UploadedFileServiceInterface.php create mode 100644 vendor/webeweb/core-library/src/system/Helper/SystemHelper.php create mode 100644 vendor/webeweb/core-library/src/system/Model/Cpu.php create mode 100644 vendor/webeweb/core-library/src/system/Model/CpuInterface.php create mode 100644 vendor/webeweb/core-library/src/system/Model/CpuTrait.php create mode 100644 vendor/webeweb/core-library/src/system/Model/HardDisk.php create mode 100644 vendor/webeweb/core-library/src/system/Model/HardDiskInterface.php create mode 100644 vendor/webeweb/core-library/src/system/Model/HardDiskTrait.php create mode 100644 vendor/webeweb/core-library/src/system/Model/Memory.php create mode 100644 vendor/webeweb/core-library/src/system/Model/MemoryInterface.php create mode 100644 vendor/webeweb/core-library/src/system/Model/MemoryTrait.php create mode 100644 vendor/webeweb/core-library/src/system/Model/Network.php create mode 100644 vendor/webeweb/core-library/src/system/Model/NetworkCard.php create mode 100644 vendor/webeweb/core-library/src/system/Model/NetworkCardInterface.php create mode 100644 vendor/webeweb/core-library/src/system/Model/NetworkCardTrait.php create mode 100644 vendor/webeweb/core-library/src/system/Model/NetworkInterface.php create mode 100644 vendor/webeweb/core-library/src/system/Model/NetworkTrait.php create mode 100644 vendor/webeweb/core-library/src/system/Model/OperatingSystem.php create mode 100644 vendor/webeweb/core-library/src/system/Model/OperatingSystemInterface.php create mode 100644 vendor/webeweb/core-library/src/system/Model/OperatingSystemTrait.php create mode 100644 vendor/webeweb/core-library/src/system/Model/Processor.php create mode 100644 vendor/webeweb/core-library/src/system/Model/ProcessorInterface.php create mode 100644 vendor/webeweb/core-library/src/system/Model/ProcessorTrait.php create mode 100644 vendor/webeweb/core-library/src/system/Model/PropertyInterface.php create mode 100644 vendor/webeweb/core-library/src/system/Serializer/JsonSerializer.php create mode 100644 vendor/webeweb/core-library/src/system/Serializer/SerializerKeys.php create mode 100644 vendor/webeweb/core-library/src/system/System.php create mode 100644 vendor/webeweb/core-library/src/traits/Booleans/BooleanOnPostDeleteTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Booleans/BooleanOnPostDisableTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Booleans/BooleanOnPostEditTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Booleans/BooleanOnPostEnableTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Booleans/BooleanOnPostNewTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Booleans/BooleanOnPostShowTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Booleans/BooleanOnPreDeleteTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Booleans/BooleanOnPreDisableTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Booleans/BooleanOnPreEditTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Booleans/BooleanOnPreEnableTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Booleans/BooleanOnPreNewTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Booleans/BooleanOnPreShowTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/DateTimes/DateTimeDeadlineTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Floats/FloatTotalTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Integers/IntegerStatusTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Integers/IntegerYearTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Strings/StringEntityTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Strings/StringImageTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Strings/StringMethodTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Strings/StringRequestTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Strings/StringRouteTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Strings/StringUserAgentTrait.php create mode 100644 vendor/webeweb/core-library/src/traits/Strings/StringVersionTrait.php create mode 100644 vendor/webeweb/core-library/src/types/Factory/DateIntervalFactory.php create mode 100644 vendor/webeweb/core-library/src/types/Factory/DateTimeFactory.php create mode 100644 vendor/webeweb/core-library/src/types/Helper/DateTimeMethod.php diff --git a/.gitignore b/.gitignore index c865a0a..c39c79d 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ /kirby /.sqlite /site/config/config.pexels.test.php +/site/cache diff --git a/components/fields.php b/components/fields.php index 77be9b5..abbfa1e 100644 --- a/components/fields.php +++ b/components/fields.php @@ -5,8 +5,8 @@ return [ 'pexels' => [ 'props' => [ - 'apiKey' => function () { - return option('mauricerenck.PexelsImageField.apiKey', ''); + 'downloadSize' => function () { + return option('mauricerenck.PexelsImageField.downloadSize', 'large'); }, ] ] diff --git a/composer.json b/composer.json index f7c927a..6dc7787 100644 --- a/composer.json +++ b/composer.json @@ -20,11 +20,11 @@ }, "require": { "getkirby/composer-installer": "^1.1", - "php": ">=7.3.0", + "php": ">=8.2.0", "webeweb/pexels-library": "^2.9" }, "require-dev": { - "getkirby/cms": "^3.8", + "getkirby/cms": "^4", "phpunit/phpunit": "9.5" }, "replace": {}, @@ -38,6 +38,10 @@ "scripts": { "test": "vendor/bin/phpunit --testdox tests", "build-test-package": "git archive HEAD -o plugin.zip --worktree-attributes", - "build-composer": "composer install --no-dev --optimize-autoloader" + "build-composer": "composer install --no-dev --optimize-autoloader", + "build-release": [ + "composer install --no-dev --optimize-autoloader", + "npm run build" + ] } -} \ No newline at end of file +} diff --git a/composer.lock b/composer.lock index 2e3c361..b018e82 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a1459026e3c5d663b94a2710b290a372", + "content-hash": "2f05d8ea0f4b0913782f767dbe3bf21f", "packages": [ { "name": "doctrine/collections", - "version": "1.7.0", + "version": "1.8.0", "source": { "type": "git", "url": "https://github.com/doctrine/collections.git", - "reference": "07d15c8a766e664ec271ae84e5dfc597aeeb03b1" + "reference": "2b44dd4cbca8b5744327de78bafef5945c7e7b5e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/collections/zipball/07d15c8a766e664ec271ae84e5dfc597aeeb03b1", - "reference": "07d15c8a766e664ec271ae84e5dfc597aeeb03b1", + "url": "https://api.github.com/repos/doctrine/collections/zipball/2b44dd4cbca8b5744327de78bafef5945c7e7b5e", + "reference": "2b44dd4cbca8b5744327de78bafef5945c7e7b5e", "shasum": "" }, "require": { @@ -25,7 +25,7 @@ "php": "^7.1.3 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^9.0", + "doctrine/coding-standard": "^9.0 || ^10.0", "phpstan/phpstan": "^1.4.8", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5", "vimeo/psalm": "^4.22" @@ -72,31 +72,35 @@ ], "support": { "issues": "https://github.com/doctrine/collections/issues", - "source": "https://github.com/doctrine/collections/tree/1.7.0" + "source": "https://github.com/doctrine/collections/tree/1.8.0" }, - "time": "2022-08-18T05:44:45+00:00" + "time": "2022-09-01T20:12:10+00:00" }, { "name": "doctrine/deprecations", - "version": "v1.0.0", + "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/doctrine/deprecations.git", - "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de" + "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", - "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931", + "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931", "shasum": "" }, "require": { - "php": "^7.1|^8.0" + "php": "^7.1 || ^8.0" }, "require-dev": { "doctrine/coding-standard": "^9", - "phpunit/phpunit": "^7.5|^8.5|^9.5", - "psr/log": "^1|^2|^3" + "phpstan/phpstan": "1.4.10 || 1.10.15", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "psalm/plugin-phpunit": "0.18.4", + "psr/log": "^1 || ^2 || ^3", + "vimeo/psalm": "4.30.0 || 5.12.0" }, "suggest": { "psr/log": "Allows logging deprecations via PSR-3 logger implementation" @@ -115,9 +119,9 @@ "homepage": "https://www.doctrine-project.org/", "support": { "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/v1.0.0" + "source": "https://github.com/doctrine/deprecations/tree/1.1.2" }, - "time": "2022-05-02T15:47:09+00:00" + "time": "2023-09-27T20:04:15+00:00" }, { "name": "getkirby/composer-installer", @@ -168,22 +172,22 @@ }, { "name": "guzzlehttp/guzzle", - "version": "7.4.5", + "version": "7.8.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82" + "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82", - "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1110f66a6530a40fe7aea0378fe608ee2b2248f9", + "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^1.5", - "guzzlehttp/psr7": "^1.9 || ^2.4", + "guzzlehttp/promises": "^1.5.3 || ^2.0.1", + "guzzlehttp/psr7": "^1.9.1 || ^2.5.1", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", "symfony/deprecation-contracts": "^2.2 || ^3.0" @@ -192,10 +196,11 @@ "psr/http-client-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", + "bamarni/composer-bin-plugin": "^1.8.1", "ext-curl": "*", - "php-http/client-integration-tests": "^3.0", - "phpunit/phpunit": "^8.5.5 || ^9.3.5", + "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.29 || ^9.5.23", "psr/log": "^1.1 || ^2.0 || ^3.0" }, "suggest": { @@ -205,8 +210,9 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "7.4-dev" + "bamarni-bin": { + "bin-links": true, + "forward-command": false } }, "autoload": { @@ -272,7 +278,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.4.5" + "source": "https://github.com/guzzle/guzzle/tree/7.8.0" }, "funding": [ { @@ -288,38 +294,37 @@ "type": "tidelift" } ], - "time": "2022-06-20T22:16:13+00:00" + "time": "2023-08-27T10:20:53+00:00" }, { "name": "guzzlehttp/promises", - "version": "1.5.1", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da" + "reference": "111166291a0f8130081195ac4556a5587d7f1b5d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da", - "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "url": "https://api.github.com/repos/guzzle/promises/zipball/111166291a0f8130081195ac4556a5587d7f1b5d", + "reference": "111166291a0f8130081195ac4556a5587d7f1b5d", "shasum": "" }, "require": { - "php": ">=5.5" + "php": "^7.2.5 || ^8.0" }, "require-dev": { - "symfony/phpunit-bridge": "^4.4 || ^5.1" + "bamarni/composer-bin-plugin": "^1.8.1", + "phpunit/phpunit": "^8.5.29 || ^9.5.23" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "1.5-dev" + "bamarni-bin": { + "bin-links": true, + "forward-command": false } }, "autoload": { - "files": [ - "src/functions_include.php" - ], "psr-4": { "GuzzleHttp\\Promise\\": "src/" } @@ -356,7 +361,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/1.5.1" + "source": "https://github.com/guzzle/promises/tree/2.0.1" }, "funding": [ { @@ -372,26 +377,26 @@ "type": "tidelift" } ], - "time": "2021-10-22T20:56:57+00:00" + "time": "2023-08-03T15:11:55+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.4.0", + "version": "2.6.1", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "13388f00956b1503577598873fffb5ae994b5737" + "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/13388f00956b1503577598873fffb5ae994b5737", - "reference": "13388f00956b1503577598873fffb5ae994b5737", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/be45764272e8873c72dbe3d2edcfdfcc3bc9f727", + "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0", "psr/http-factory": "^1.0", - "psr/http-message": "^1.0", + "psr/http-message": "^1.1 || ^2.0", "ralouphie/getallheaders": "^3.0" }, "provide": { @@ -399,17 +404,18 @@ "psr/http-message-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", + "bamarni/composer-bin-plugin": "^1.8.1", "http-interop/http-factory-tests": "^0.9", - "phpunit/phpunit": "^8.5.8 || ^9.3.10" + "phpunit/phpunit": "^8.5.29 || ^9.5.23" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "2.4-dev" + "bamarni-bin": { + "bin-links": true, + "forward-command": false } }, "autoload": { @@ -471,7 +477,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.4.0" + "source": "https://github.com/guzzle/psr7/tree/2.6.1" }, "funding": [ { @@ -487,25 +493,25 @@ "type": "tidelift" } ], - "time": "2022-06-20T21:43:11+00:00" + "time": "2023-08-27T10:13:57+00:00" }, { "name": "psr/http-client", - "version": "1.0.1", + "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/php-fig/http-client.git", - "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", - "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", "shasum": "" }, "require": { "php": "^7.0 || ^8.0", - "psr/http-message": "^1.0" + "psr/http-message": "^1.0 || ^2.0" }, "type": "library", "extra": { @@ -525,7 +531,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for HTTP clients", @@ -537,27 +543,27 @@ "psr-18" ], "support": { - "source": "https://github.com/php-fig/http-client/tree/master" + "source": "https://github.com/php-fig/http-client" }, - "time": "2020-06-29T06:28:15+00:00" + "time": "2023-09-23T14:17:50+00:00" }, { "name": "psr/http-factory", - "version": "1.0.1", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/php-fig/http-factory.git", - "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be" + "reference": "e616d01114759c4c489f93b099585439f795fe35" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be", - "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", + "reference": "e616d01114759c4c489f93b099585439f795fe35", "shasum": "" }, "require": { "php": ">=7.0.0", - "psr/http-message": "^1.0" + "psr/http-message": "^1.0 || ^2.0" }, "type": "library", "extra": { @@ -577,7 +583,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interfaces for PSR-7 HTTP message factories", @@ -592,31 +598,31 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-factory/tree/master" + "source": "https://github.com/php-fig/http-factory/tree/1.0.2" }, - "time": "2019-04-30T12:38:16+00:00" + "time": "2023-04-10T20:10:41+00:00" }, { "name": "psr/http-message", - "version": "1.0.1", + "version": "2.0", "source": { "type": "git", "url": "https://github.com/php-fig/http-message.git", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -631,7 +637,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for HTTP messages", @@ -645,9 +651,9 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-message/tree/master" + "source": "https://github.com/php-fig/http-message/tree/2.0" }, - "time": "2016-08-06T14:39:51+00:00" + "time": "2023-04-04T09:54:51+00:00" }, { "name": "psr/log", @@ -745,25 +751,25 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v2.5.2", + "version": "v3.4.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", - "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf", + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.4-dev" }, "thanks": { "name": "symfony/contracts", @@ -792,7 +798,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.4.0" }, "funding": [ { @@ -808,20 +814,20 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2023-05-23T14:45:45+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.26.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4" + "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", - "reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", + "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", "shasum": "" }, "require": { @@ -836,7 +842,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -874,7 +880,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.28.0" }, "funding": [ { @@ -890,35 +896,32 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2023-01-26T09:26:14+00:00" }, { "name": "symfony/yaml", - "version": "v5.4.11", + "version": "v6.4.0", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "05d4ea560f3402c6c116afd99fdc66e60eda227e" + "reference": "4f9237a1bb42455d609e6687d2613dde5b41a587" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/05d4ea560f3402c6c116afd99fdc66e60eda227e", - "reference": "05d4ea560f3402c6c116afd99fdc66e60eda227e", + "url": "https://api.github.com/repos/symfony/yaml/zipball/4f9237a1bb42455d609e6687d2613dde5b41a587", + "reference": "4f9237a1bb42455d609e6687d2613dde5b41a587", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-ctype": "^1.8" }, "conflict": { - "symfony/console": "<5.3" + "symfony/console": "<5.4" }, "require-dev": { - "symfony/console": "^5.3|^6.0" - }, - "suggest": { - "symfony/console": "For validating YAML files using the lint command" + "symfony/console": "^5.4|^6.0|^7.0" }, "bin": [ "Resources/bin/yaml-lint" @@ -949,7 +952,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v5.4.11" + "source": "https://github.com/symfony/yaml/tree/v6.4.0" }, "funding": [ { @@ -965,20 +968,20 @@ "type": "tidelift" } ], - "time": "2022-06-27T16:58:25+00:00" + "time": "2023-11-06T11:00:25+00:00" }, { "name": "webeweb/core-library", - "version": "v8.52.0", + "version": "v8.80.0", "source": { "type": "git", "url": "https://github.com/webeweb/core-library.git", - "reference": "9d0603d85bbc5cdaf95d69dddfae40b55caa428b" + "reference": "88223004c48cf7c45df3b5dd6f995d5bd9ed7188" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webeweb/core-library/zipball/9d0603d85bbc5cdaf95d69dddfae40b55caa428b", - "reference": "9d0603d85bbc5cdaf95d69dddfae40b55caa428b", + "url": "https://api.github.com/repos/webeweb/core-library/zipball/88223004c48cf7c45df3b5dd6f995d5bd9ed7188", + "reference": "88223004c48cf7c45df3b5dd6f995d5bd9ed7188", "shasum": "" }, "require": { @@ -992,11 +995,15 @@ "ext-json": "*", "ext-mbstring": "*", "ext-pdo": "*", + "ext-posix": "*", "ext-zip": "*", "php": "^7.1|^8.0", - "psr/log": "^1.0", + "psr/log": "^1.0|^2.0|^3.0", "symfony/yaml": "^3.0|^4.0|^5.0|^6.0" }, + "conflict": { + "webeweb/core-bundle": "<3.20" + }, "require-dev": { "guzzlehttp/guzzle": "^6.0|^7.0", "phpunit/phpunit": "^7.0|^9.0" @@ -1019,6 +1026,7 @@ "WBW\\Library\\Logger\\": "src/logger/", "WBW\\Library\\OcrLad\\": "src/ocrlad/", "WBW\\Library\\Sorter\\": "src/sorter/", + "WBW\\Library\\System\\": "src/system/", "WBW\\Library\\Traits\\": "src/traits/", "WBW\\Library\\Billing\\": "src/billing/", "WBW\\Library\\SkiData\\": "src/skidata/", @@ -1064,6 +1072,8 @@ "security", "skidata", "sorter", + "symfony", + "system", "traits", "types", "validator", @@ -1072,22 +1082,22 @@ ], "support": { "issues": "https://github.com/webeweb/core-library/issues", - "source": "https://github.com/webeweb/core-library/tree/v8.52.0" + "source": "https://github.com/webeweb/core-library/tree/v8.80.0" }, - "time": "2022-08-16T15:02:18+00:00" + "time": "2023-10-30T09:17:09+00:00" }, { "name": "webeweb/pexels-library", - "version": "v2.9.0", + "version": "v2.11.0", "source": { "type": "git", "url": "https://github.com/webeweb/pexels-library.git", - "reference": "901f1ca56f6e22d50a72535ce64ad80ab316593b" + "reference": "12fc6589071d97a84a70cd4dfbe1f1290d913f63" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webeweb/pexels-library/zipball/901f1ca56f6e22d50a72535ce64ad80ab316593b", - "reference": "901f1ca56f6e22d50a72535ce64ad80ab316593b", + "url": "https://api.github.com/repos/webeweb/pexels-library/zipball/12fc6589071d97a84a70cd4dfbe1f1290d913f63", + "reference": "12fc6589071d97a84a70cd4dfbe1f1290d913f63", "shasum": "" }, "require": { @@ -1133,30 +1143,93 @@ ], "support": { "issues": "https://github.com/webeweb/pexels-library/issues", - "source": "https://github.com/webeweb/pexels-library/tree/v2.9.0" + "source": "https://github.com/webeweb/pexels-library/tree/v2.11.0" }, - "time": "2022-09-29T07:10:13+00:00" + "time": "2023-01-02T11:00:45+00:00" } ], "packages-dev": [ + { + "name": "christian-riesen/base32", + "version": "1.6.0", + "source": { + "type": "git", + "url": "https://github.com/ChristianRiesen/base32.git", + "reference": "2e82dab3baa008e24a505649b0d583c31d31e894" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ChristianRiesen/base32/zipball/2e82dab3baa008e24a505649b0d583c31d31e894", + "reference": "2e82dab3baa008e24a505649b0d583c31d31e894", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.17", + "phpstan/phpstan": "^0.12", + "phpunit/phpunit": "^8.5.13 || ^9.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Base32\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Riesen", + "email": "chris.riesen@gmail.com", + "homepage": "http://christianriesen.com", + "role": "Developer" + } + ], + "description": "Base32 encoder/decoder according to RFC 4648", + "homepage": "https://github.com/ChristianRiesen/base32", + "keywords": [ + "base32", + "decode", + "encode", + "rfc4648" + ], + "support": { + "issues": "https://github.com/ChristianRiesen/base32/issues", + "source": "https://github.com/ChristianRiesen/base32/tree/1.6.0" + }, + "time": "2021-02-26T10:19:33+00:00" + }, { "name": "claviska/simpleimage", - "version": "3.7.0", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/claviska/SimpleImage.git", - "reference": "abd15ced313c7b8041d7d73d8d2398b4f2510cf1" + "reference": "969de5e61810ef91f6f83c475b192c4841367dfa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/claviska/SimpleImage/zipball/abd15ced313c7b8041d7d73d8d2398b4f2510cf1", - "reference": "abd15ced313c7b8041d7d73d8d2398b4f2510cf1", + "url": "https://api.github.com/repos/claviska/SimpleImage/zipball/969de5e61810ef91f6f83c475b192c4841367dfa", + "reference": "969de5e61810ef91f6f83c475b192c4841367dfa", "shasum": "" }, "require": { "ext-gd": "*", - "league/color-extractor": "0.3.*", - "php": ">=5.6.0" + "league/color-extractor": "0.4.*", + "php": ">=8.0" + }, + "require-dev": { + "laravel/pint": "^1.5", + "phpstan/phpstan": "^1.10" }, "type": "library", "autoload": { @@ -1178,7 +1251,7 @@ "description": "A PHP class that makes working with images as simple as possible.", "support": { "issues": "https://github.com/claviska/SimpleImage/issues", - "source": "https://github.com/claviska/SimpleImage/tree/3.7.0" + "source": "https://github.com/claviska/SimpleImage/tree/4.0.6" }, "funding": [ { @@ -1186,20 +1259,20 @@ "type": "github" } ], - "time": "2022-07-05T13:18:44+00:00" + "time": "2023-07-27T16:48:12+00:00" }, { "name": "composer/semver", - "version": "3.3.2", + "version": "3.4.0", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" + "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", - "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", + "url": "https://api.github.com/repos/composer/semver/zipball/35e8d0af4486141bc745f23a29cc2091eb624a32", + "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32", "shasum": "" }, "require": { @@ -1249,9 +1322,9 @@ "versioning" ], "support": { - "irc": "irc://irc.freenode.org/composer", + "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.3.2" + "source": "https://github.com/composer/semver/tree/3.4.0" }, "funding": [ { @@ -1267,34 +1340,34 @@ "type": "tidelift" } ], - "time": "2022-04-01T19:23:25+00:00" + "time": "2023-08-31T09:50:34+00:00" }, { "name": "doctrine/instantiator", - "version": "1.4.1", + "version": "1.5.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", "shasum": "" }, "require": { "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^9", + "doctrine/coding-standard": "^9 || ^11", "ext-pdo": "*", "ext-phar": "*", "phpbench/phpbench": "^0.16 || ^1", "phpstan/phpstan": "^1.4", "phpstan/phpstan-phpunit": "^1", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.22" + "vimeo/psalm": "^4.30 || ^5.4" }, "type": "library", "autoload": { @@ -1321,7 +1394,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.4.1" + "source": "https://github.com/doctrine/instantiator/tree/1.5.0" }, "funding": [ { @@ -1337,20 +1410,20 @@ "type": "tidelift" } ], - "time": "2022-03-03T08:28:38+00:00" + "time": "2022-12-30T00:15:36+00:00" }, { "name": "filp/whoops", - "version": "2.14.5", + "version": "2.15.4", "source": { "type": "git", "url": "https://github.com/filp/whoops.git", - "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc" + "reference": "a139776fa3f5985a50b509f2a02ff0f709d2a546" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", - "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", + "url": "https://api.github.com/repos/filp/whoops/zipball/a139776fa3f5985a50b509f2a02ff0f709d2a546", + "reference": "a139776fa3f5985a50b509f2a02ff0f709d2a546", "shasum": "" }, "require": { @@ -1400,7 +1473,7 @@ ], "support": { "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.14.5" + "source": "https://github.com/filp/whoops/tree/2.15.4" }, "funding": [ { @@ -1408,25 +1481,26 @@ "type": "github" } ], - "time": "2022-01-07T12:00:00+00:00" + "time": "2023-11-03T12:00:00+00:00" }, { "name": "getkirby/cms", - "version": "3.8.2", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/getkirby/kirby.git", - "reference": "f16b0b41db19ab5dbcf22e27f4aa2c35cb2c490c" + "reference": "b7b9862a240e789cebff5af04f4d9ff10f73d7e0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/getkirby/kirby/zipball/f16b0b41db19ab5dbcf22e27f4aa2c35cb2c490c", - "reference": "f16b0b41db19ab5dbcf22e27f4aa2c35cb2c490c", + "url": "https://api.github.com/repos/getkirby/kirby/zipball/b7b9862a240e789cebff5af04f4d9ff10f73d7e0", + "reference": "b7b9862a240e789cebff5af04f4d9ff10f73d7e0", "shasum": "" }, "require": { - "claviska/simpleimage": "3.7.0", - "composer/semver": "3.3.2", + "christian-riesen/base32": "1.6.0", + "claviska/simpleimage": "4.0.6", + "composer/semver": "3.4.0", "ext-ctype": "*", "ext-curl": "*", "ext-dom": "*", @@ -1438,14 +1512,15 @@ "ext-mbstring": "*", "ext-openssl": "*", "ext-simplexml": "*", - "filp/whoops": "2.14.5", + "filp/whoops": "2.15.4", "getkirby/composer-installer": "^1.2.1", - "laminas/laminas-escaper": "2.12.0", + "laminas/laminas-escaper": "2.13.0", "michelf/php-smartypants": "1.8.1", - "php": ">=8.0.0 <8.2.0", - "phpmailer/phpmailer": "6.6.5", - "symfony/polyfill-intl-idn": "1.26.0", - "symfony/polyfill-mbstring": "1.26.0" + "php": "~8.1.0 || ~8.2.0 || ~8.3.0", + "phpmailer/phpmailer": "6.9.1", + "symfony/polyfill-intl-idn": "1.28.0", + "symfony/polyfill-mbstring": "1.28.0", + "symfony/yaml": "6.4.0" }, "replace": { "symfony/polyfill-php72": "*" @@ -1457,6 +1532,7 @@ "ext-fileinfo": "Improved mime type detection for files", "ext-intl": "Improved i18n number formatting", "ext-memcached": "Support for the Memcached cache driver", + "ext-sodium": "Support for the crypto class and more robust session handling", "ext-zip": "Support for ZIP archive file functions", "ext-zlib": "Sanitization and validation for svgz files" }, @@ -1489,7 +1565,7 @@ "homepage": "https://getkirby.com" } ], - "description": "The Kirby 3 core", + "description": "The Kirby core", "homepage": "https://getkirby.com", "keywords": [ "cms", @@ -1508,37 +1584,37 @@ "type": "custom" } ], - "time": "2022-11-15T12:18:18+00:00" + "time": "2023-11-30T14:39:55+00:00" }, { "name": "laminas/laminas-escaper", - "version": "2.12.0", + "version": "2.13.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-escaper.git", - "reference": "ee7a4c37bf3d0e8c03635d5bddb5bb3184ead490" + "reference": "af459883f4018d0f8a0c69c7a209daef3bf973ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-escaper/zipball/ee7a4c37bf3d0e8c03635d5bddb5bb3184ead490", - "reference": "ee7a4c37bf3d0e8c03635d5bddb5bb3184ead490", + "url": "https://api.github.com/repos/laminas/laminas-escaper/zipball/af459883f4018d0f8a0c69c7a209daef3bf973ba", + "reference": "af459883f4018d0f8a0c69c7a209daef3bf973ba", "shasum": "" }, "require": { "ext-ctype": "*", "ext-mbstring": "*", - "php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0" + "php": "~8.1.0 || ~8.2.0 || ~8.3.0" }, "conflict": { "zendframework/zend-escaper": "*" }, "require-dev": { - "infection/infection": "^0.26.6", - "laminas/laminas-coding-standard": "~2.4.0", + "infection/infection": "^0.27.0", + "laminas/laminas-coding-standard": "~2.5.0", "maglnet/composer-require-checker": "^3.8.0", - "phpunit/phpunit": "^9.5.18", - "psalm/plugin-phpunit": "^0.17.0", - "vimeo/psalm": "^4.22.0" + "phpunit/phpunit": "^9.6.7", + "psalm/plugin-phpunit": "^0.18.4", + "vimeo/psalm": "^5.9" }, "type": "library", "autoload": { @@ -1570,37 +1646,40 @@ "type": "community_bridge" } ], - "time": "2022-10-10T10:11:09+00:00" + "time": "2023-10-10T08:35:13+00:00" }, { "name": "league/color-extractor", - "version": "0.3.2", + "version": "0.4.0", "source": { "type": "git", "url": "https://github.com/thephpleague/color-extractor.git", - "reference": "837086ec60f50c84c611c613963e4ad2e2aec806" + "reference": "21fcac6249c5ef7d00eb83e128743ee6678fe505" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/color-extractor/zipball/837086ec60f50c84c611c613963e4ad2e2aec806", - "reference": "837086ec60f50c84c611c613963e4ad2e2aec806", + "url": "https://api.github.com/repos/thephpleague/color-extractor/zipball/21fcac6249c5ef7d00eb83e128743ee6678fe505", + "reference": "21fcac6249c5ef7d00eb83e128743ee6678fe505", "shasum": "" }, "require": { "ext-gd": "*", - "php": ">=5.4.0" + "php": "^7.3 || ^8.0" }, "replace": { "matthecat/colorextractor": "*" }, "require-dev": { "friendsofphp/php-cs-fixer": "~2", - "phpunit/phpunit": "~5" + "phpunit/phpunit": "^9.5" + }, + "suggest": { + "ext-curl": "To download images from remote URLs if allow_url_fopen is disabled for security reasons" }, "type": "library", "autoload": { "psr-4": { - "": "src" + "League\\ColorExtractor\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1626,9 +1705,9 @@ ], "support": { "issues": "https://github.com/thephpleague/color-extractor/issues", - "source": "https://github.com/thephpleague/color-extractor/tree/master" + "source": "https://github.com/thephpleague/color-extractor/tree/0.4.0" }, - "time": "2016-12-15T09:30:02+00:00" + "time": "2022-09-24T15:57:16+00:00" }, { "name": "michelf/php-smartypants", @@ -1686,16 +1765,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.11.0", + "version": "1.11.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", - "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", "shasum": "" }, "require": { @@ -1733,7 +1812,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" }, "funding": [ { @@ -1741,20 +1820,20 @@ "type": "tidelift" } ], - "time": "2022-03-03T13:19:32+00:00" + "time": "2023-03-08T13:26:56+00:00" }, { "name": "nikic/php-parser", - "version": "v4.14.0", + "version": "v4.17.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1" + "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/34bea19b6e03d8153165d8f30bba4c3be86184c1", - "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", + "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", "shasum": "" }, "require": { @@ -1795,9 +1874,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.14.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1" }, - "time": "2022-05-31T20:59:12+00:00" + "time": "2023-08-13T19:53:39+00:00" }, { "name": "phar-io/manifest", @@ -2022,25 +2101,33 @@ }, { "name": "phpdocumentor/type-resolver", - "version": "1.6.1", + "version": "1.7.3", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "77a32518733312af16a44300404e945338981de3" + "reference": "3219c6ee25c9ea71e3d9bbaf39c67c9ebd499419" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", - "reference": "77a32518733312af16a44300404e945338981de3", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/3219c6ee25c9ea71e3d9bbaf39c67c9ebd499419", + "reference": "3219c6ee25c9ea71e3d9bbaf39c67c9ebd499419", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.0" + "doctrine/deprecations": "^1.0", + "php": "^7.4 || ^8.0", + "phpdocumentor/reflection-common": "^2.0", + "phpstan/phpdoc-parser": "^1.13" }, "require-dev": { "ext-tokenizer": "*", - "psalm/phar": "^4.8" + "phpbench/phpbench": "^1.2", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^9.5", + "rector/rector": "^0.13.9", + "vimeo/psalm": "^4.25" }, "type": "library", "extra": { @@ -2066,22 +2153,22 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.7.3" }, - "time": "2022-03-15T21:29:03+00:00" + "time": "2023-08-12T11:01:26+00:00" }, { "name": "phpmailer/phpmailer", - "version": "v6.6.5", + "version": "v6.9.1", "source": { "type": "git", "url": "https://github.com/PHPMailer/PHPMailer.git", - "reference": "8b6386d7417526d1ea4da9edb70b8352f7543627" + "reference": "039de174cd9c17a8389754d3b877a2ed22743e18" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/8b6386d7417526d1ea4da9edb70b8352f7543627", - "reference": "8b6386d7417526d1ea4da9edb70b8352f7543627", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/039de174cd9c17a8389754d3b877a2ed22743e18", + "reference": "039de174cd9c17a8389754d3b877a2ed22743e18", "shasum": "" }, "require": { @@ -2091,17 +2178,20 @@ "php": ">=5.5.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", - "doctrine/annotations": "^1.2", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "doctrine/annotations": "^1.2.6 || ^1.13.3", "php-parallel-lint/php-console-highlighter": "^1.0.0", "php-parallel-lint/php-parallel-lint": "^1.3.2", "phpcompatibility/php-compatibility": "^9.3.5", "roave/security-advisories": "dev-latest", - "squizlabs/php_codesniffer": "^3.6.2", - "yoast/phpunit-polyfills": "^1.0.0" + "squizlabs/php_codesniffer": "^3.7.2", + "yoast/phpunit-polyfills": "^1.0.4" }, "suggest": { + "decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication", "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", + "ext-openssl": "Needed for secure SMTP sending and DKIM signing", + "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication", "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", "league/oauth2-google": "Needed for Google XOAUTH2 authentication", "psr/log": "For optional PSR-3 debug logging", @@ -2138,7 +2228,7 @@ "description": "PHPMailer is a full-featured email creation and transfer class for PHP", "support": { "issues": "https://github.com/PHPMailer/PHPMailer/issues", - "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.6.5" + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.9.1" }, "funding": [ { @@ -2146,31 +2236,32 @@ "type": "github" } ], - "time": "2022-10-07T12:23:10+00:00" + "time": "2023-11-25T22:23:28+00:00" }, { "name": "phpspec/prophecy", - "version": "v1.15.0", + "version": "v1.17.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" + "reference": "15873c65b207b07765dbc3c95d20fdf4a320cbe2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/15873c65b207b07765dbc3c95d20fdf4a320cbe2", + "reference": "15873c65b207b07765dbc3c95d20fdf4a320cbe2", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.2", - "php": "^7.2 || ~8.0, <8.2", + "doctrine/instantiator": "^1.2 || ^2.0", + "php": "^7.2 || 8.0.* || 8.1.* || 8.2.*", "phpdocumentor/reflection-docblock": "^5.2", "sebastian/comparator": "^3.0 || ^4.0", "sebastian/recursion-context": "^3.0 || ^4.0" }, "require-dev": { "phpspec/phpspec": "^6.0 || ^7.0", + "phpstan/phpstan": "^1.9", "phpunit/phpunit": "^8.0 || ^9.0" }, "type": "library", @@ -2211,29 +2302,76 @@ ], "support": { "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" + "source": "https://github.com/phpspec/prophecy/tree/v1.17.0" }, - "time": "2021-12-08T12:19:24+00:00" + "time": "2023-02-02T15:41:36+00:00" + }, + { + "name": "phpstan/phpdoc-parser", + "version": "1.24.4", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpdoc-parser.git", + "reference": "6bd0c26f3786cd9b7c359675cb789e35a8e07496" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/6bd0c26f3786cd9b7c359675cb789e35a8e07496", + "reference": "6bd0c26f3786cd9b7c359675cb789e35a8e07496", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/annotations": "^2.0", + "nikic/php-parser": "^4.15", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^1.5", + "phpstan/phpstan-phpunit": "^1.1", + "phpstan/phpstan-strict-rules": "^1.0", + "phpunit/phpunit": "^9.5", + "symfony/process": "^5.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPStan\\PhpDocParser\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPDoc parser with support for nullable, intersection and generic types", + "support": { + "issues": "https://github.com/phpstan/phpdoc-parser/issues", + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.24.4" + }, + "time": "2023-11-26T18:29:22+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.16", + "version": "9.2.29", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2593003befdcc10db5e213f9f28814f5aa8ac073" + "reference": "6a3a87ac2bbe33b25042753df8195ba4aa534c76" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2593003befdcc10db5e213f9f28814f5aa8ac073", - "reference": "2593003befdcc10db5e213f9f28814f5aa8ac073", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/6a3a87ac2bbe33b25042753df8195ba4aa534c76", + "reference": "6a3a87ac2bbe33b25042753df8195ba4aa534c76", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.14", + "nikic/php-parser": "^4.15", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -2248,8 +2386,8 @@ "phpunit/phpunit": "^9.3" }, "suggest": { - "ext-pcov": "*", - "ext-xdebug": "*" + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "type": "library", "extra": { @@ -2282,7 +2420,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.16" + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.29" }, "funding": [ { @@ -2290,7 +2429,7 @@ "type": "github" } ], - "time": "2022-08-20T05:26:47+00:00" + "time": "2023-09-19T04:57:46+00:00" }, { "name": "phpunit/php-file-iterator", @@ -2805,16 +2944,16 @@ }, { "name": "sebastian/comparator", - "version": "4.0.6", + "version": "4.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "55f4261989e546dc112258c7a75935a81a7ce382" + "reference": "fa0f136dd2334583309d32b62544682ee972b51a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382", - "reference": "55f4261989e546dc112258c7a75935a81a7ce382", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a", "shasum": "" }, "require": { @@ -2867,7 +3006,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6" + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" }, "funding": [ { @@ -2875,7 +3014,7 @@ "type": "github" } ], - "time": "2020-10-26T15:49:45+00:00" + "time": "2022-09-14T12:41:17+00:00" }, { "name": "sebastian/complexity", @@ -2936,16 +3075,16 @@ }, { "name": "sebastian/diff", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131", + "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131", "shasum": "" }, "require": { @@ -2990,7 +3129,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5" }, "funding": [ { @@ -2998,20 +3137,20 @@ "type": "github" } ], - "time": "2020-10-26T13:10:38+00:00" + "time": "2023-05-07T05:35:17+00:00" }, { "name": "sebastian/environment", - "version": "5.1.4", + "version": "5.1.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", - "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", "shasum": "" }, "require": { @@ -3053,7 +3192,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" }, "funding": [ { @@ -3061,20 +3200,20 @@ "type": "github" } ], - "time": "2022-04-03T09:37:03+00:00" + "time": "2023-02-03T06:03:51+00:00" }, { "name": "sebastian/exporter", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9" + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9", - "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", "shasum": "" }, "require": { @@ -3130,7 +3269,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" }, "funding": [ { @@ -3138,20 +3277,20 @@ "type": "github" } ], - "time": "2021-11-11T14:18:36+00:00" + "time": "2022-09-14T06:03:37+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.5", + "version": "5.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + "reference": "bde739e7565280bda77be70044ac1047bc007e34" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bde739e7565280bda77be70044ac1047bc007e34", + "reference": "bde739e7565280bda77be70044ac1047bc007e34", "shasum": "" }, "require": { @@ -3194,7 +3333,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.6" }, "funding": [ { @@ -3202,7 +3341,7 @@ "type": "github" } ], - "time": "2022-02-14T08:28:10+00:00" + "time": "2023-08-02T09:26:13+00:00" }, { "name": "sebastian/lines-of-code", @@ -3375,16 +3514,16 @@ }, { "name": "sebastian/recursion-context", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", "shasum": "" }, "require": { @@ -3423,10 +3562,10 @@ } ], "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" }, "funding": [ { @@ -3434,7 +3573,7 @@ "type": "github" } ], - "time": "2020-10-26T13:17:30+00:00" + "time": "2023-02-03T06:07:39+00:00" }, { "name": "sebastian/resource-operations", @@ -3602,16 +3741,16 @@ }, { "name": "symfony/polyfill-intl-idn", - "version": "v1.26.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-idn.git", - "reference": "59a8d271f00dd0e4c2e518104cc7963f655a1aa8" + "reference": "ecaafce9f77234a6a449d29e49267ba10499116d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/59a8d271f00dd0e4c2e518104cc7963f655a1aa8", - "reference": "59a8d271f00dd0e4c2e518104cc7963f655a1aa8", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/ecaafce9f77234a6a449d29e49267ba10499116d", + "reference": "ecaafce9f77234a6a449d29e49267ba10499116d", "shasum": "" }, "require": { @@ -3625,7 +3764,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3669,7 +3808,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.28.0" }, "funding": [ { @@ -3685,20 +3824,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2023-01-26T09:30:37+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.27.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" + "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", - "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92", + "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92", "shasum": "" }, "require": { @@ -3710,7 +3849,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.27-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3753,7 +3892,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.27.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.28.0" }, "funding": [ { @@ -3769,20 +3908,20 @@ "type": "tidelift" } ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2023-01-26T09:26:14+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.26.0", + "version": "v1.28.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e" + "reference": "42292d99c55abe617799667f454222c54c60e229" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", - "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/42292d99c55abe617799667f454222c54c60e229", + "reference": "42292d99c55abe617799667f454222c54c60e229", "shasum": "" }, "require": { @@ -3797,7 +3936,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.26-dev" + "dev-main": "1.28-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3836,7 +3975,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.28.0" }, "funding": [ { @@ -3852,20 +3991,20 @@ "type": "tidelift" } ], - "time": "2022-05-24T11:49:31+00:00" + "time": "2023-07-28T09:04:16+00:00" }, { "name": "theseer/tokenizer", - "version": "1.2.1", + "version": "1.2.2", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b2ad5003ca10d4ee50a12da31de12a5774ba6b96", + "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96", "shasum": "" }, "require": { @@ -3894,7 +4033,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + "source": "https://github.com/theseer/tokenizer/tree/1.2.2" }, "funding": [ { @@ -3902,7 +4041,7 @@ "type": "github" } ], - "time": "2021-07-28T10:34:58+00:00" + "time": "2023-11-20T00:12:19+00:00" }, { "name": "webmozart/assert", @@ -3969,7 +4108,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=7.3.0" + "php": ">=8.2.0" }, "platform-dev": [], "plugin-api-version": "2.3.0" diff --git a/content/home/default.en.txt b/content/home/default.en.txt index 1791fc5..f416d05 100644 --- a/content/home/default.en.txt +++ b/content/home/default.en.txt @@ -1 +1,5 @@ Title: Home + +---- + +Uuid: UPRf124PgiSQzhSn \ No newline at end of file diff --git a/content/note/default.en.txt b/content/note/default.en.txt index 8c46617..3928400 100644 --- a/content/note/default.en.txt +++ b/content/note/default.en.txt @@ -1,3 +1,5 @@ Title: NOTE ---- + +Uuid: JnfoiyL3MDLInreN \ No newline at end of file diff --git a/index.css b/index.css index df26d5c..f45fcac 100644 --- a/index.css +++ b/index.css @@ -1 +1 @@ -.k-pexels-field .k-image{cursor:pointer}.k-pexels-field .loader{text-align:center}.k-pexels-field .k-loader{padding:50px;margin:25px;background:lightgray;border-radius:7px;display:inline-block}.k-pexels-field .imagegrid{margin-top:25px;margin-bottom:25px}.k-pexels-field .prev-next{margin-top:15px;text-align:center} +.k-pexels-field .loader{display:flex;justify-content:center}.k-pexels-field .loader div{margin-top:var(--spacing-4);width:100px;height:100px;background-color:var(--color-gray-300);border-radius:var(--rounded);display:flex;place-items:center;justify-content:center}.k-pexels-field .imagegrid{margin:var(--spacing-4) 0}.k-pexels-field .prev-next{margin-top:15px;text-align:center} diff --git a/index.js b/index.js index 099e375..af46f6c 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -(()=>{(function(){"use strict";var c=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"k-pexels-field"},[t("k-field",{attrs:{label:e.label}},[t("k-input",{attrs:{theme:"field",icon:"search",type:"text",name:"textfield",value:e.value},on:{input:e.onInput,keyup:e.onSubmit}})],1),t("div",[e.loading?t("div",{staticClass:"loader"},[t("k-loader")],1):e._e(),!e.loading&&e.photos.length>0?t("div",{staticClass:"imagegrid"},[t("k-grid",e._l(this.photos,function(a){return t("k-column",{key:a.id,attrs:{width:"1/6"}},[t("div",{staticClass:"k-items k-cards-items",attrs:{"data-layout":"cards","data-size":"auto"}},[t("article",{staticClass:"k-item k-cards-item",attrs:{"data-has-figure":"true","data-has-info":"true","data-has-options":"true",tabindex:"-1","data-id":"note/pexels-photo.jpg"},on:{click:[function(o){return e.onSelect(a.id,a.large,a.photographer,a.photographerUrl,a.downloadUrl)},function(o){return e.$refs.dialog.open()}]}},[t("div",{staticClass:"k-item-figure",staticStyle:{background:"var(--color-gray-800) var(--bg-pattern)"}},[t("span",{staticClass:"k-image k-item-image",attrs:{"data-ratio":"3/2","data-cover":"true"}},[t("span",{staticStyle:{"padding-bottom":"66.67%"}},[t("img",{attrs:{alt:"pexels photo",src:a.small}})])])]),t("header",{staticClass:"k-item-content"},[t("h3",{staticClass:"k-item-title"},[t("span",[e._v(" "+e._s(a.photographer)+" ")])]),t("p",{staticClass:"k-item-info"},[e._v(e._s(a.width)+" \xD7 "+e._s(a.height))])])])])])}),1),t("div",{staticClass:"prev-next"},[t("button",{staticClass:"k-link k-button",on:{click:e.showPrev}},[t("k-icon",{attrs:{type:"angle-left"}})],1),t("span",[e._v(e._s(e.pexelPage)+" of "+e._s(e.pages))]),t("button",{staticClass:"k-link k-button",on:{click:e.showNext}},[t("k-icon",{attrs:{type:"angle-right"}})],1)])],1):e._e()]),t("div",[t("k-dialog",{ref:"dialog",attrs:{submitButton:"Download",theme:"positive",icon:"download",size:"large"},on:{submit:e.downloadImage}},[e._v(" A photo by "),t("strong",[e._v(e._s(e.selectedPhoto.photographer))]),t("k-image",{attrs:{src:e.selectedPhoto.photo}}),this.downloading?t("k-info-field",{attrs:{text:"Downloading file"}}):e._e(),this.downloaded?t("k-info-field",{attrs:{theme:"positive",text:"Downloaded file, refresh page to see it"}}):e._e()],1)],1)],1)},u=[],y="";function f(e,i,t,a,o,d,h,w){var s=typeof e=="function"?e.options:e;i&&(s.render=i,s.staticRenderFns=t,s._compiled=!0),a&&(s.functional=!0),d&&(s._scopeId="data-v-"+d);var r;if(h?(r=function(n){n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!n&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(n=__VUE_SSR_CONTEXT__),o&&o.call(this,n),n&&n._registeredComponents&&n._registeredComponents.add(h)},s._ssrRegister=r):o&&(r=w?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),r)if(s.functional){s._injectStyles=r;var P=s.render;s.render=function(C,g){return r.call(g),P(C,g)}}else{var p=s.beforeCreate;s.beforeCreate=p?[].concat(p,r):[r]}return{exports:e,options:s}}const _={props:{label:String,value:String,apiKey:String},data:function(){return{photos:[],selectedPhoto:{id:"",photo:"",photographer:"",photographerUrl:"",downloadUrl:""},keyword:"",pexelPage:1,remaining:0,totalResults:0,loading:!1,timer:null,downloading:!1,downloaded:!1}},computed:{pageId(){return this.$store.getters["content/id"]()},pages(){return Math.round(this.totalResults/this.photos.length,10)}},methods:{onInput(e){this.keyword=e},onSubmit(e){this.timer!==null&&clearTimeout(this.timer),!(this.keyword.length<3)&&(this.timer=setTimeout(()=>{this.search(this.keyword)},250))},onSelect(e,i,t,a,o){this.selectedPhoto={id:e,photo:i,photographer:t,photographerUrl:a,downloadUrl:o}},showNext(){this.pexelPage*this.perPage>this.remaining||(this.pexelPage++,this.search(this.keyword))},showPrev(){this.pexelPage!==1&&(this.pexelPage--,this.search(this.keyword))},search(e){this.loading=!0,this.$api.get(`pexels/search/${e}/${this.pexelPage}`).then(i=>{this.photos=i.photos,this.page=i.page,this.perPage=i.perPage,this.remaining=i.remaining,this.totalResults=i.totalResults,this.loading=!1})},downloadImage(e){this.downloading=!0,this.downloaded=!1,this.$api.post("pexels/download",{downloadUrl:this.selectedPhoto.downloadUrl,pageId:this.pageId.split("?")[0],imageId:this.selectedPhoto.id,photographer:this.selectedPhoto.photographer,photographerUrl:this.selectedPhoto.photographerUrl}).then(()=>{this.downloading=!1,this.downloaded=!0,setTimeout(()=>{this.$refs.dialog.close(),this.downloaded=!1},2e3)})}}},l={};var m=f(_,c,u,!1,v,null,null,null);function v(e){for(let i in l)this[i]=l[i]}var k=function(){return m.exports}();panel.plugin("mauricerenck/PexelsImageField",{fields:{pexels:k}})})();})(); +(function(){"use strict";const x="";function g(a,e,t,r,s,l,d,m){var i=typeof a=="function"?a.options:a;e&&(i.render=e,i.staticRenderFns=t,i._compiled=!0),r&&(i.functional=!0),l&&(i._scopeId="data-v-"+l);var o;if(d?(o=function(n){n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!n&&typeof __VUE_SSR_CONTEXT__<"u"&&(n=__VUE_SSR_CONTEXT__),s&&s.call(this,n),n&&n._registeredComponents&&n._registeredComponents.add(d)},i._ssrRegister=o):s&&(o=m?function(){s.call(this,(i.functional?this.parent:this).$root.$options.shadowRoot)}:s),o)if(i.functional){i._injectStyles=o;var v=i.render;i.render=function(k,p){return o.call(p),v(k,p)}}else{var h=i.beforeCreate;i.beforeCreate=h?[].concat(h,o):[o]}return{exports:a,options:i}}const c={props:{label:String,value:String,downloadSize:String},data:function(){return{items:[],selectedPhoto:{id:"",photo:"",photographer:"",photographerUrl:"",downloadUrl:""},keyword:"",pexelPage:1,perPage:1,remaining:0,totalResults:0,loading:!1,downloaded:!1}},computed:{pageId(){return this.$store.getters["content/id"]()},pages(){return Math.round(this.totalResults/this.perPage,10)}},methods:{onInput(a){this.keyword=a},onSubmit(a){this.timer!==null&&clearTimeout(this.timer),!(this.keyword.length<3)&&(this.timer=setTimeout(()=>{this.search(this.keyword)},250))},showNext(){this.pexelPage*this.perPage>this.remaining||(this.pexelPage++,this.search(this.keyword))},showPrev(){this.pexelPage!==1&&(this.pexelPage--,this.search(this.keyword))},search(a){this.loading=!0,this.$api.get(`pexels/search/${a}/${this.pexelPage}/${this.downloadSize}`).then(e=>{this.page=e.page,this.perPage=e.perPage,this.remaining=e.remaining,this.totalResults=e.totalResults,this.loading=!1,this.items=e.photos.map(t=>({id:t.id,downloadUrl:t.downloadUrl,link:t.downloadUrl,photographer:t.photographer,photographerUrl:t.photographerUrl,text:`${t.photographer}
${t.width} × ${t.height}`,options:[{icon:"open",text:"View",link:t.downloadUrl,target:"_blank"},{icon:"download",text:"Download",click:()=>{this.downloadImage(t.id)}}],image:{src:t.small,width:t.width}}))})},downloadImage(a){this.downloaded=!1;const e=this.items.find(r=>r.id===a),t=e.text;e.text="Downloading…",panel.api.post("pexels/download",{imageId:a,pageId:this.pageId.split("?")[0],downloadUrl:e.downloadUrl,photographer:e.photographer,photographerUrl:e.photographerUrl}).then(()=>{this.downloaded=!1,panel.view.reload(),window.panel.notification.success("Image downloaded"),e.text=t}).catch(()=>{this.downloaded=!1,window.panel.notification.error("Image download failed"),e.text=t})}}};var u=function(){var e=this,t=e._self._c;return t("div",{staticClass:"k-pexels-field"},[t("k-field",{attrs:{label:e.label}},[t("k-input",{attrs:{theme:"field",icon:"search",type:"text",name:"textfield",value:e.value},on:{input:e.onInput,keyup:e.onSubmit}})],1),t("div",[e.loading?t("div",{staticClass:"loader"},[t("div",[t("k-icon",{attrs:{type:"loader"}})],1)]):t("div",{staticClass:"imagegrid"},[t("k-collection",{attrs:{layout:"cards",items:e.items}}),e.pages>0?t("div",{staticClass:"prev-next"},[t("button",{staticClass:"k-link k-button",on:{click:e.showPrev}},[t("k-icon",{attrs:{type:"angle-left"}})],1),t("span",[e._v(e._s(e.pexelPage)+" of "+e._s(e.pages))]),t("button",{staticClass:"k-link k-button",on:{click:e.showNext}},[t("k-icon",{attrs:{type:"angle-right"}})],1)]):e._e()],1)])],1)},f=[],_=g(c,u,f,!1,null,null,null,null);const w=_.exports;panel.plugin("mauricerenck/PexelsImageField",{fields:{pexels:w}})})(); diff --git a/internal/api.php b/internal/api.php index 884307a..489735c 100644 --- a/internal/api.php +++ b/internal/api.php @@ -3,14 +3,14 @@ namespace mauricerenck\PexelsImageField; use WBW\Library\Pexels\Model\Photo; -use WBW\Library\Pexels\Model\Source; use WBW\Library\Pexels\Provider\ApiProvider; use WBW\Library\Pexels\Request\SearchPhotosRequest; -use WBW\Library\Pexels\Request\GetPhotoRequest; use Kirby\Toolkit\V; -use File; -use \Response; +use Kirby\Filesystem\F; +use Kirby\Http\Response; +use Kirby\Http\Remote; use \Exception; +use Kirby\Cms\File; return [ 'routes' => [ @@ -31,37 +31,39 @@ return new Response('Page Not Found', 'text/plain', 404); } - $urlParts = explode('/', $formData['downloadUrl']); + $cleanedDownloadUrl = explode('?', $formData['downloadUrl'])[0]; + $urlParts = explode('/', $cleanedDownloadUrl); $filename = array_pop($urlParts); try { - $ch = curl_init($formData['downloadUrl']); - $fp = fopen($page->contentFileDirectory() . '/' . $filename, 'wb'); - curl_setopt($ch, CURLOPT_FILE, $fp); - curl_setopt($ch, CURLOPT_HEADER, 0); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); - curl_exec($ch); - curl_close($ch); + $imageFile = Remote::get($formData['downloadUrl']); + + $temporaryFilename = $page->root() . '/temp_' . $filename; + F::write($temporaryFilename, $imageFile->content()); + + $file = File::create([ + 'source' => $temporaryFilename, + 'parent' => $page, + 'filename' => $filename, + 'template' => 'pexelsimage', + 'blueprint' => ['pexelsimage'], + 'content' => [ + 'photographer' => $formData['photographer'], + 'photographerUrl' => $formData['photographerUrl'], + ] + ], true); + + return new Response(json_encode($file), 'application/json'); } catch (Exception $e) { return new Response($e, 'text/plain', 500); } - try { - $file = $page->file($filename); - $file->update([ - 'photographer' => $formData['photographer'], - 'photographerUrl' => $formData['photographerUrl'], - ]); - } catch (Exception $e) { - return new Response($e, 'text/plain', 500); - } - - return new Response(json_encode('ok'), 'application/json'); + return new Response(json_encode('unknown error'), 'application/json', 500); }, ], [ - 'pattern' => 'pexels/search/(:any)/(:any)', - 'action' => function (string $query, string $page) { + 'pattern' => 'pexels/search/(:any)/(:any)/(:any)', + 'action' => function (string $query, string $page, string $downloadSize) { // Create the API provider. $provider = new ApiProvider(option('mauricerenck.PexelsImageField.apiKey', '')); @@ -100,6 +102,33 @@ $src = $current->getSrc(); + switch($downloadSize) { + case 'large': + $downloadUrl = $src->getLarge(); + break; + case 'medium': + $downloadUrl = $src->getMedium(); + break; + case 'small': + $downloadUrl = $src->getSmall(); + break; + case 'portrait': + $downloadUrl = $src->getPortrait(); + break; + case 'landscape': + $downloadUrl = $src->getLandscape(); + break; + case 'tiny': + $downloadUrl = $src->getTiny(); + break; + case 'original': + $downloadUrl = $src->getOriginal(); + break; + default: + $downloadUrl = $src->getLarge(); + break; + } + $photos[] = [ // 'src' => $current->getUrl(), 'id' => $current->getId(), @@ -107,7 +136,7 @@ 'large' => $src->getLarge(), 'photographer' => $current->getPhotographer(), 'photographerUrl' => $current->getPhotographerUrl(), - 'downloadUrl' => $src->getOriginal(), + 'downloadUrl' => $downloadUrl, 'width' => $current->getWidth(), 'height' => $current->getHeight(), ]; @@ -122,13 +151,13 @@ // $src->getLarge2x(); // $src->getLarge(); // $src->getMedium(); - $src->getSmall(); + // $src->getSmall(); // $src->getPortrait(); // $src->getLandscape(); // $src->getTiny(); } - return \json_encode([ + $data = json_encode([ 'page' => $response->getPage(), 'perPage' => $response->getPerPage(), 'remaining' => $response->getRemaining(), @@ -137,6 +166,8 @@ 'next' => $response->getPrevPage(), 'prev' => $response->getNextPage() ]); + + return new Response($data, 'application/json'); } ], ] diff --git a/src/components/Pexels.vue b/src/components/Pexels.vue index f106cd3..16e6005 100644 --- a/src/components/Pexels.vue +++ b/src/components/Pexels.vue @@ -13,73 +13,19 @@
-
-
- - -
-
-
- - - pexels photo - - -
-
-

- - {{ photo.photographer }} - -

-

{{ photo.width }} × {{ photo.height }}

-
-
-
-
-
- -
+
+
+
+
+ + +
{{ pexelPage }} of {{ pages }}
- -
- - A photo by {{ selectedPhoto.photographer }} - - - - - -
@@ -88,20 +34,19 @@ export default { props: { label: String, value: String, - apiKey: String, + downloadSize: String, }, data: function () { return { - photos: [], + items: [], selectedPhoto: { id: '', photo: '', photographer: '', photographerUrl: '', downloadUrl: '' }, keyword: '', pexelPage: 1, + perPage: 1, remaining: 0, totalResults: 0, loading: false, - timer: null, - downloading: false, downloaded: false, } }, @@ -110,7 +55,7 @@ export default { return this.$store.getters['content/id']() }, pages() { - return Math.round(this.totalResults / this.photos.length, 10) + return Math.round(this.totalResults / this.perPage, 10) }, }, methods: { @@ -132,16 +77,6 @@ export default { }, 250) }, - onSelect(id, photo, photographer, photographerUrl, downloadUrl) { - this.selectedPhoto = { - id: id, - photo: photo, - photographer: photographer, - photographerUrl: photographerUrl, - downloadUrl: downloadUrl, - } - }, - showNext() { if (this.pexelPage * this.perPage > this.remaining) { return @@ -162,34 +97,70 @@ export default { search(query) { this.loading = true - this.$api.get(`pexels/search/${query}/${this.pexelPage}`).then((result) => { - this.photos = result.photos + this.$api.get(`pexels/search/${query}/${this.pexelPage}/${this.downloadSize}`).then((result) => { this.page = result.page this.perPage = result.perPage this.remaining = result.remaining this.totalResults = result.totalResults this.loading = false + + this.items = result.photos.map((photo) => { + return { + id: photo.id, + downloadUrl: photo.downloadUrl, + link: photo.downloadUrl, + photographer: photo.photographer, + photographerUrl: photo.photographerUrl, + text: `${photo.photographer}
${photo.width} × ${photo.height}`, + options: [ + { + icon: 'open', + text: 'View', + link: photo.downloadUrl, + target: '_blank', + }, + { + icon: 'download', + text: 'Download', + click: () => { + this.downloadImage(photo.id) + }, + }, + ], + image: { + src: photo.small, + width: photo.width, + }, + } + }) }) }, downloadImage(id) { - this.downloading = true this.downloaded = false - this.$api + + const selectedPhoto = this.items.find((item) => item.id === id) + const currentText = selectedPhoto.text + selectedPhoto.text = 'Downloading…' + + panel.api .post('pexels/download', { - downloadUrl: this.selectedPhoto.downloadUrl, + imageId: id, pageId: this.pageId.split('?')[0], - imageId: this.selectedPhoto.id, - photographer: this.selectedPhoto.photographer, - photographerUrl: this.selectedPhoto.photographerUrl, + downloadUrl: selectedPhoto.downloadUrl, + photographer: selectedPhoto.photographer, + photographerUrl: selectedPhoto.photographerUrl, }) .then(() => { - this.downloading = false - this.downloaded = true - setTimeout(() => { - this.$refs.dialog.close() - this.downloaded = false - }, 2000) + this.downloaded = false + panel.view.reload() + window.panel.notification.success('Image downloaded'); + selectedPhoto.text = currentText + }) + .catch(() => { + this.downloaded = false + window.panel.notification.error('Image download failed'); + selectedPhoto.text = currentText }) }, }, @@ -198,25 +169,24 @@ export default {