diff --git a/.gitignore b/.gitignore index 372f4e095..0d1abf8d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +composer.lock /bin /vendor /coverage diff --git a/README.md b/README.md index 7a68b777c..ea7d830f0 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Streams Platform -[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://packagist.org/packages/anomaly/streams-platform) +[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://packagist.org/packages/visiosoft/streams-platform) [![Build Status](https://scrutinizer-ci.com/g/anomalylabs/streams-platform/badges/build.png?b=master)](https://scrutinizer-ci.com/g/anomalylabs/streams-platform/build-status/master) [![Code Quality](http://img.shields.io/scrutinizer/g/anomalylabs/streams-platform.svg)](https://scrutinizer-ci.com/g/anomalylabs/streams-platform/) -[![Total Downloads](http://img.shields.io/packagist/dt/anomaly/streams.svg)](https://packagist.org/packages/anomaly/streams-platform) +[![Total Downloads](http://img.shields.io/packagist/dt/anomaly/streams.svg)](https://packagist.org/packages/visiosoft/streams-platform) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/a0a603f4bb094044b9cc681b5a55506a)](https://www.codacy.com/app/RyanThompson/streams-platform?utm_source=github.com&utm_medium=referral&utm_content=anomalylabs/streams-platform&utm_campaign=Badge_Grade) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/c07a737b-fd8f-43b1-a076-facbfb9ed2b0/small.png)](https://insight.sensiolabs.com/projects/c07a737b-fd8f-43b1-a076-facbfb9ed2b0) diff --git a/composer.json b/composer.json index 73c1628d2..6e055387d 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "anomaly/streams-platform", + "name": "visiosoft/streams-platform", "description": "A powerful, inclusive, modular PHP application engine built lovingly for Laravel.", "authors": [ { @@ -8,25 +8,27 @@ } ], "require": { - "laravel/framework": "5.8.*", - "laravel/scout": "7.1.*", + "laravel/framework": "^8.0", + "laravel/helpers": "^1.0", + "laravel/scout": "^8.2", "doctrine/dbal": "^2.6", - "intervention/image": "2.5.*", - "laravelcollective/html": "5.8.*", - "twig/twig": "~2.6.0", - "barryvdh/laravel-debugbar": "3.2.*", - "erusev/parsedown-extra": "0.7.1", - "linkorb/jsmin-php": "1.0.0", - "tubalmartin/cssmin": "4.0.*", - "robclancy/presenter": "1.3.*", - "nicmart/string-template": "0.1.*", - "symfony/yaml": "3.4.*", - "jenssegers/agent": "2.6.*", - "asm89/twig-cache-extension": "1.3.*", - "misd/linkify": "1.1.*", + "intervention/image": "^2.5.0", + "laravelcollective/html": "^6.1", + "twig/twig": "^2.10", + "barryvdh/laravel-debugbar": "^3.3", + "erusev/parsedown-extra": "^0.7.1", + "linkorb/jsmin-php": "^1.0.0", + "robclancy/presenter": "^1.3.0", + "nicmart/string-template": "^0.1.0", + "symfony/yaml": "^4", + "jenssegers/agent": "^2.6.0", + "barryvdh/laravel-httpcache": "^0.3", + "asm89/twig-cache-extension": "^1.3.0", + "vstelmakh/url-highlight": "^2.2", "ezyang/htmlpurifier": "~4.0", - "barryvdh/laravel-httpcache": "^0.3.0", - "fzaninotto/faker": "~1.4" + "tubalmartin/cssmin": "~4.0", + "fzaninotto/faker": "~1.4", + "scssphp/scssphp": "^1.11" }, "autoload": { "psr-4": { diff --git a/docs/en/01.prologue/02.change-log.md b/docs/en/01.prologue/02.change-log.md index 7290fa813..877946d17 100644 --- a/docs/en/01.prologue/02.change-log.md +++ b/docs/en/01.prologue/02.change-log.md @@ -28,24 +28,42 @@ Features that are deprecated will generally be removed in the next `minor` updat ## Releases -### Unreleased -#### Removed -- Removed `leafo/scssphp` dependency. -- Removed `natxet/CssMin` dependency. -- Removed `mrclay/jsmin-php` dependency. -- Removed `cartalyst/assetic` dependency. -- Removed `oyejorge/less.php` dependency. -- Removed `ptachoire/cssembed` dependency. -- Removed `coffeescript/coffeescript` dependency. -- Removed `teamtnt/laravel-scout-tntsearch-driver` dependency. - -#### Added -- Added the [console](/documentation/streams-platform/1.8/reference/helpers#console) helper function. -- Added the [decorate](/documentation/streams-platform/1.8/reference/helpers#decorate) helper function. -- Added the [undecorate](/documentation/streams-platform/1.8/reference/helpers#undecorate) helper function. - -#### Fixed -- Fixed issue with validation extender not passing along unique field types per extending validation rule. -- Fixed issue where responses without cookie support (media stream) would result in fatal errors. -- Fixed issue with installer where .env was not reloading properly since moving to Laravel 5.8. -- Fixed issue where responses without cookie support (media stream) would result in fatal errors. +### [1.9.8] - 2022-02-21 +### Fixed +- Fix PHP 8 issue when filling `*` fields. +- +### [1.9.7] - 2022-01-27 +### Fixed +- Fix PHP 8 issue where filling `*` fields was removing a field upon symbol removal. + +### [1.9.6] - 2022-01-25 +### Changed +- Replace spaces with `+` in image cache paths. + +### [1.9.5] - 2022-01-25 +### Fixed +- Fix issue where translation IDs were overriding main IDs. + +### [1.9.4] - 2022-01-23 +### Added +- Added `F j, Y` date format option. + +### [1.9.3] - 2022-01-17 +### Fixed +- Fix issue where `EloquentCriteria` was returning null. + +### [1.9.2] - 2021-03-22 +### Fixed +- Fixed migration class issues. + +### [1.9.1] - 2021-03-18 +### Fixed +- Fixed migration support for L8. + +### [1.9.0] - 2021-03-18 +### Added +- Added support for addons in vendor directory. +- Config `streams::addons.autoload` which defaults to `true`. + +### Changed +- Changed integrator to not throw such a fit if a suspected addon class does not exist. diff --git a/docs/en/01.prologue/03.upgrade-guide.md b/docs/en/01.prologue/03.upgrade-guide.md index 4e2db8057..d71872539 100644 --- a/docs/en/01.prologue/03.upgrade-guide.md +++ b/docs/en/01.prologue/03.upgrade-guide.md @@ -6,38 +6,12 @@ title: Upgrade Guide
-## Upgrading from 1.6 to 1.7 +## Upgrading from 1.8 to 1.9 -**Estimated Upgrade Time: 1 - 2 Minutes** +**Estimated Upgrade Time: 0 - 5 Minutes** > We attempt to document every possible breaking change. Since some of these breaking changes are in obscure parts of the framework only a portion of these changes may actually affect your application.{.notice} -### Update Search Configuration +### Configuration Warning -Update your configuration according to the following source files: - -- [https://github.com/pyrocms/pyrocms/blob/3.7/config/logging.php](https://github.com/pyrocms/pyrocms/blob/3.7/config/logging.php) -- [https://github.com/pyrocms/pyrocms/blob/3.7/config/debugbar.php](https://github.com/pyrocms/pyrocms/blob/3.7/config/debugbar.php) -- [https://github.com/pyrocms/pyrocms/blob/3.7/config/httpcache.php](https://github.com/pyrocms/pyrocms/blob/3.7/config/httpcache.php) - -### Disable Package Discovery for Laravel - -Disable package discovery by appending your `composer.json` file: https://github.com/pyrocms/pyrocms/blob/3.7/composer.json#L127-L131 - -### Run Migrations - -Migrate the core as well as all installed addons: - -```bash -php artisan migrate --path=vendor/anomaly/streams-platform/migrations/application -php artisan migrate --all-addons -``` - -### Clean Up - -It's a good idea to rebuild the system and freshen up caching and performance utilities: - -```bash -php artisan build -php artisan refresh -``` +Eager and deferred loading addons are typically overridden and may contain references to `core/` addons which have been deprecated. Please review the `/resources/streams/config/addons.php` file for said references and update the addon location, which is now within the vendor directory. diff --git a/docs/en/02.getting-started/02.introduction.md b/docs/en/02.getting-started/02.introduction.md index 57da02148..54988f08c 100644 --- a/docs/en/02.getting-started/02.introduction.md +++ b/docs/en/02.getting-started/02.introduction.md @@ -8,7 +8,7 @@ title: Introduction ## What is the Streams Platform? -The Streams Platform is a [Composer package](https://packagist.org/packages/anomaly/streams-platform) that serves as the foundation for PyroCMS. +The Streams Platform is a [Composer package](https://packagist.org/packages/visiosoft/streams-platform) that serves as the foundation for PyroCMS. Nearly every functionality in every addon for PyroCMS relies on the Streams Platform to do it's work. The Streams Platform is responsible for everything from [Table Builders](../ui/tables) to [Image](../core-principles/image) and [Asset](../core-principles/asset) pipelines to providing the actual addon layer itself. diff --git a/docs/en/02.getting-started/03.installation.md b/docs/en/02.getting-started/03.installation.md index 05a6c687c..49f7ef3cc 100644 --- a/docs/en/02.getting-started/03.installation.md +++ b/docs/en/02.getting-started/03.installation.md @@ -18,7 +18,7 @@ Before proceeding consider starting your project with a vanilla PyroCMS installa ### Download with Composer -First download the [package](https://packagist.org/packages/anomaly/streams-platform) by running `composer require anomaly/streams-platform`. +First download the [package](https://packagist.org/packages/visiosoft/streams-platform) by running `composer require visiosoft/streams-platform`. ### Register the service provider diff --git a/docs/en/02.getting-started/04.configuration.md b/docs/en/02.getting-started/04.configuration.md index fc15f3cf6..bb77e9d5e 100644 --- a/docs/en/02.getting-started/04.configuration.md +++ b/docs/en/02.getting-started/04.configuration.md @@ -8,7 +8,7 @@ title: Configuration ## Introduction -Streams configuration can be found in `vendor/anomaly/streams-platform/resources/config`. It is a good idea to look through the configuration files to get acquainted with what's available. +Streams configuration can be found in `vendor/visiosoft/streams-platform/resources/config`. It is a good idea to look through the configuration files to get acquainted with what's available. [Configuration Reference](../reference/configuration){.link} @@ -45,6 +45,6 @@ The [Settings](https://pyrocms.com/documentation/settings-module) and [Preferenc You can see what settings are bound to what configuration by reviewing the settings and preferences configuration found within the following files: ```bash -vendor/anomaly/streams-platform/resources/config/settings/settings.php -vendor/anomaly/streams-platform/resources/config/preferences/preferences.php +vendor/visiosoft/streams-platform/resources/config/settings/settings.php +vendor/visiosoft/streams-platform/resources/config/preferences/preferences.php ``` diff --git a/docs/en/03.reference/02.hints.md b/docs/en/03.reference/02.hints.md index 061dbe56a..7411c1257 100644 --- a/docs/en/03.reference/02.hints.md +++ b/docs/en/03.reference/02.hints.md @@ -65,7 +65,7 @@ The `storage::` path hint represents your application's storage directory `stora ### streams -The `streams::` path hint represents the `resources` directory for the Streams Platform `vendor/anomaly/streams-platform/resources/`. +The `streams::` path hint represents the `resources` directory for the Streams Platform `vendor/visiosoft/streams-platform/resources/`. ### module @@ -126,7 +126,7 @@ The `storage::` path hint represents your application's storage directory `stora ### streams -The `streams::` path hint represents the `resources` directory for the Streams Platform `vendor/anomaly/streams-platform/resources/`. +The `streams::` path hint represents the `resources` directory for the Streams Platform `vendor/visiosoft/streams-platform/resources/`. ## Config Hints @@ -147,7 +147,7 @@ Every addon has a config path hint for the addon's `config` directory `{addon_pa ### streams -The `streams::` path hint represents the `config` directory for the Streams Platform `vendor/anomaly/streams-platform/resources/config/`. +The `streams::` path hint represents the `config` directory for the Streams Platform `vendor/visiosoft/streams-platform/resources/config/`. ## Translator Hints @@ -176,7 +176,7 @@ The `theme::` path hint represents the `lang` directory for the `active` theme ` ### streams -The `streams::` path hint represents the `lang` directory for the Streams Platform `vendor/anomaly/streams-platform/resources/lang/`. +The `streams::` path hint represents the `lang` directory for the Streams Platform `vendor/visiosoft/streams-platform/resources/lang/`. ## View Hints @@ -205,7 +205,7 @@ The `theme::` path hint represents the `views` directory for the `active` theme ### streams -The `streams::` path hint represents the `views` directory for the Streams Platform `vendor/anomaly/streams-platform/resources/views/`. +The `streams::` path hint represents the `views` directory for the Streams Platform `vendor/visiosoft/streams-platform/resources/views/`. ### app diff --git a/docs/en/03.reference/11.configuration.md b/docs/en/03.reference/11.configuration.md index 99ccb191e..b2d117402 100644 --- a/docs/en/03.reference/11.configuration.md +++ b/docs/en/03.reference/11.configuration.md @@ -95,7 +95,7 @@ Specify addons by path to load first. The path should be relative to your projec ```php 'eager' => [ - //'core/anomaly/redirects-module' + //'vendor/anomaly/redirects-module' ], ``` @@ -109,7 +109,7 @@ Specify addons by path to load last. The path should be relative to your project ```php 'deferred' => [ - //'core/anomaly/pages-module' + //'vendor/anomaly/pages-module' ], ``` @@ -819,15 +819,15 @@ LOCKING_ENABLED=true Specify the default `admin` theme. ```php -'admin' => env('ADMIN_THEME', 'anomaly.theme.anomaly'), +'admin' => env('ADMIN_THEME', 'pyrocms.theme.accelerant'), ``` ```php -config(['streams::themes.admin' => 'anomaly.theme.anomaly'); +config(['streams::themes.admin' => 'pyrocms.theme.accelerant'); ``` ```bash -ADMIN_THEME=anomaly.theme.anomaly +ADMIN_THEME=pyrocms.theme.accelerant ``` ### Standard @@ -835,13 +835,13 @@ ADMIN_THEME=anomaly.theme.anomaly Specify the default `standard` (public facing) theme. ```php -'standard' => env('STANDARD_THEME', 'anomaly.theme.starter'), +'standard' => env('STANDARD_THEME', 'pyrocms.theme.starter'), ``` ```php -config(['streams::themes.standard' => 'anomaly.theme.starter'); +config(['streams::themes.standard' => 'pyrocms.theme.starter'); ``` ```bash -STANDARD_THEME=anomaly.theme.starter +STANDARD_THEME=pyrocms.theme.starter ``` diff --git a/docs/en/03.the-basics/08.contracts.md b/docs/en/03.the-basics/08.contracts.md index dab3f63db..5db165dec 100644 --- a/docs/en/03.the-basics/08.contracts.md +++ b/docs/en/03.the-basics/08.contracts.md @@ -12,7 +12,7 @@ Much of the Streams Platform and it's addons utilize the `interface` pattern. Th Contracts and implementations and resolving from the service container is used heavily within the Streams Platform in order to allow a very wide and low-level approach to extending core functionality. ```bash -/vendor/anomaly/streams-module/src/Entry/Contract/EntryInterface +/vendor/visiosoft/streams-module/src/Entry/Contract/EntryInterface ``` ### Loose Coupling diff --git a/docs/en/05.core-concepts/04.image.md b/docs/en/05.core-concepts/04.image.md index 89d736602..ba39f22a6 100644 --- a/docs/en/05.core-concepts/04.image.md +++ b/docs/en/05.core-concepts/04.image.md @@ -105,7 +105,7 @@ All paths are relative to your application's base path. * `asset`: public/app/{app_reference}/ * `storage`: storage/streams/{app_reference}/ * `download`: public/app/{app_reference}/assets/downloads/ -* `streams`: vendor/anomaly/streams-platform/resources/ +* `streams`: vendor/visiosoft/streams-platform/resources/ * `bower`: bin/bower_components/ * `theme`: {active_theme_path}/resources/ * `module`: {active_module_path}/resources/ diff --git a/docs/en/06.entries/06.observers.md b/docs/en/06.entries/06.observers.md index eb1ef8fd2..f7d747d55 100644 --- a/docs/en/06.entries/06.observers.md +++ b/docs/en/06.entries/06.observers.md @@ -83,11 +83,11 @@ public function creating(EntryInterface $entry) This event is fired just after the `entry` is created. ```php -public function creating(EntryInterface $entry) +public function created(EntryInterface $entry) { // Do stuff. - parent::creating($entry); + parent::created($entry); } ``` @@ -109,11 +109,11 @@ public function updating(EntryInterface $entry) This event is fired just after the `entry` is updated. ```php -public function updating(EntryInterface $entry) +public function updated(EntryInterface $entry) { // Do stuff. - parent::updating($entry); + parent::updated($entry); } ``` @@ -148,11 +148,11 @@ public function saving(EntryInterface $entry) This event is fired just after the `entry` is saved. ```php -public function saving(EntryInterface $entry) +public function saved(EntryInterface $entry) { // Do stuff. - parent::saving($entry); + parent::saved($entry); } ``` @@ -174,11 +174,11 @@ public function deleting(EntryInterface $entry) This event is fired just after the `entry` is deleted. ```php -public function deleting(EntryInterface $entry) +public function deleted(EntryInterface $entry) { // Do stuff. - parent::deleting($entry); + parent::deleted($entry); } ``` @@ -213,10 +213,10 @@ public function restoring(EntryInterface $entry) This event is fired just after the `entry` is restored. ```php -public function restoring(EntryInterface $entry) +public function restored(EntryInterface $entry) { // Do stuff. - parent::restoring($entry); + parent::restored($entry); } ``` diff --git a/docs/en/07.ui/01.forms/02.configuration/07.ajax.md b/docs/en/07.ui/01.forms/02.configuration/07.ajax.md index f954612a6..27caa8fee 100644 --- a/docs/en/07.ui/01.forms/02.configuration/07.ajax.md +++ b/docs/en/07.ui/01.forms/02.configuration/07.ajax.md @@ -20,6 +20,11 @@ You can also flag forms as ajax on the fly. $builder->setAjax(true); ``` +## Custom Data + +You can easily add custom data to the JSON response by adding `public function onJsonResponse(Collection $data){}` to your form builder. This will allow you to modify the array before it being set in the form response. + + Ajax forms are designed to be included in a modal by default but you can configure it to display using options or however you like. > **In Development:** The Ajax API is still being developed. While ajax forms are usable, more robust JSON response information is still missing.{.note} diff --git a/docs/en/12.front-end-development/03.assets.md b/docs/en/12.front-end-development/03.assets.md index 86d92c396..008dcd3ec 100644 --- a/docs/en/12.front-end-development/03.assets.md +++ b/docs/en/12.front-end-development/03.assets.md @@ -91,7 +91,7 @@ $asset->add("collection.css", "theme::example.scss", ["min", "live"]); - `less`: parses LESS into CSS - `styl`: parses STYL into CSS - `scss`: parses SCSS into CSS -- `parse`: parses content with Twig +- `parse`: parses content with Twig. Uses an alternate comment syntax `{* *}` to prevent clashes with CSS selectors. - `coffee`: compiles CoffeeScript into Javascript - `embed`: embeds image data in your stylesheets - `live`: refreshes content when LIVE_ASSETS is enabled diff --git a/docs/en/12.front-end-development/07.forms.md b/docs/en/12.front-end-development/07.forms.md index df12b6a15..69b1e669c 100644 --- a/docs/en/12.front-end-development/07.forms.md +++ b/docs/en/12.front-end-development/07.forms.md @@ -23,7 +23,7 @@ The `render` method will trigger display but it is optional as `__toString` will You may want to take more control and set the form to a variable and use it. ```twig -{% set form = form('books', 'reviews') %} +{% set form = form('books', 'reviews').get() %} {{ form.open|raw }} diff --git a/resources/config/addons.php b/resources/config/addons.php index fcae8de1d..f4bce797d 100644 --- a/resources/config/addons.php +++ b/resources/config/addons.php @@ -76,4 +76,16 @@ 'deferred' => [ //'core/anomaly/pages-module' ], + + /* + |-------------------------------------------------------------------------- + | Autoload Addons + |-------------------------------------------------------------------------- + | + | Disable autoloading on the fly to improve performance. + | Requires registering addons as local composer packages. + | + */ + + 'autoload' => env('STREAMS_ADDONS_AUTOLOAD', true), ]; diff --git a/resources/config/distribution.php b/resources/config/distribution.php index 08fec9249..2f89039f8 100644 --- a/resources/config/distribution.php +++ b/resources/config/distribution.php @@ -11,7 +11,7 @@ | */ - 'name' => 'Streams Platform', - 'description' => 'Streams is an abstracted modular platform for developing web applications.', + 'name' => 'PHP Classifieds Marketplace software', + 'description' => 'OpenClassify is modular and most advanced open source classified platform build with Laravel.Use it in real estate classifieds, auto, e-commerce and other ...', 'version' => 'v1.1', ]; diff --git a/resources/config/settings/sections.php b/resources/config/settings/sections.php index 3a47a0591..237afa272 100644 --- a/resources/config/settings/sections.php +++ b/resources/config/settings/sections.php @@ -50,6 +50,7 @@ 'mail_port', 'mail_username', 'mail_password', + 'mail_encrypt', ], ], 'cache' => [ diff --git a/resources/config/settings/settings.php b/resources/config/settings/settings.php index e8bc8b1d9..34bd1a5f9 100644 --- a/resources/config/settings/settings.php +++ b/resources/config/settings/settings.php @@ -60,6 +60,7 @@ 'required' => true, 'config' => [ 'options' => [ + 'F j, Y' => date('F j, Y'), // July 10, 2015 'j F, Y' => date('j F, Y'), // 10 July, 2015 'j M, y' => date('j M, y'), // 10 Jul, 15 'm/d/Y' => date('m/d/Y'), // 07/10/2015 @@ -265,6 +266,14 @@ 'type' => 'password', ], ], + 'mail_encrypt' => [ + 'env' => 'MAIL_ENCRYPTION', + 'bind' => 'mail.encryption', + 'type' => 'anomaly.field_type.text', + 'config' => [ + 'default_value' => 'ssl', + ], + ], 'http_cache' => [ 'env' => 'HTTP_CACHE', 'bind' => 'streams::httpcache.enabled', diff --git a/resources/config/themes.php b/resources/config/themes.php index 430b73ff8..7de1cb15c 100644 --- a/resources/config/themes.php +++ b/resources/config/themes.php @@ -11,6 +11,6 @@ | */ - 'admin' => env('ADMIN_THEME', 'anomaly.theme.anomaly'), - 'standard' => env('STANDARD_THEME', 'anomaly.theme.starter') + 'admin' => env('ADMIN_THEME', 'pyrocms.theme.accelerant'), + 'standard' => env('STANDARD_THEME', 'pyrocms.theme.starter') ]; diff --git a/resources/lang/de/locale.php b/resources/lang/de/locale.php index cc42a179e..a47398804 100644 --- a/resources/lang/de/locale.php +++ b/resources/lang/de/locale.php @@ -52,6 +52,9 @@ 'cn' => [ 'name' => 'Chinesisch' ], + 'tr' => [ + 'name' => 'Türkisch' + ], 'tw' => [ 'name' => 'Twi' ], diff --git a/resources/lang/en/setting.php b/resources/lang/en/setting.php index bc18d8669..f280065b1 100644 --- a/resources/lang/en/setting.php +++ b/resources/lang/en/setting.php @@ -59,6 +59,7 @@ ], 'maintenance' => [ 'label' => 'Maintenance Mode', + 'warning' => 'Only admin users will be able to access the site.', 'instructions' => 'Use this option to the disable the public-facing part of the system.
This is useful when you want to take the site down for maintenance or development.', ], 'debug' => [ @@ -134,6 +135,10 @@ 'label' => 'SMTP Password', 'instructions' => 'Specify the SMTP password to use.', ], + 'mail_encrypt' => [ + 'label' => 'SMTP Encryption', + 'instructions' => 'Specify the SMTP encryption to use.', + ], 'http_cache' => [ 'label' => 'HTTP Cache', 'instructions' => 'Do you want to enable HTTP cache?', diff --git a/resources/lang/tr/entry.php b/resources/lang/tr/entry.php index 043f7b9cb..82741e5d5 100644 --- a/resources/lang/tr/entry.php +++ b/resources/lang/tr/entry.php @@ -3,8 +3,8 @@ return [ 'id' => 'ID', 'name' => 'Giriş', - 'created_at' => 'Oluşturuldu', - 'created_by' => 'Tarafından oluşturuldu', - 'updated_at' => 'Yüklendi', - 'updated_by' => 'Tarafından yüklendi', + 'created_at' => 'Kayıt tarihi', + 'created_by' => 'Oluşturan kullanıcı', + 'updated_at' => 'Güncelleme tarihi', + 'updated_by' => 'Güncelletyen kullanıcı', ]; diff --git a/resources/lang/tr/message.php b/resources/lang/tr/message.php index f6a2a2b5c..906b6492c 100644 --- a/resources/lang/tr/message.php +++ b/resources/lang/tr/message.php @@ -10,8 +10,8 @@ 'access_denied' => 'Erişim reddedildi.', 'no_fields_available' => 'Alan yok', 'delete_restrict' => 'Silinemiyor: ad sınırlı olduğundan adı. Önce ilgili ": ilişki" yi silin.', - 'delete_success' => ': count satır (lar) başarıyla silindi.', - 'reorder_success' => ': count satır (lar) başarıyla yeniden sıralandı.', + 'delete_success' => ':count satır (lar) başarıyla silindi.', + 'reorder_success' => ':count satır (lar) başarıyla yeniden sıralandı.', 'csrf_token_mismatch' => 'Güvenlik simgenizin süresi doldu. Lütfen formu tekrar gönderin.', 'form_expired' => 'Formun süresi doldu. Lütfen tekrar deneyin.', 'create_success' => ':name başarıyla oluşturuldu.', diff --git a/resources/lang/tr/setting.php b/resources/lang/tr/setting.php index b80a6c1f5..9a72bb5a4 100644 --- a/resources/lang/tr/setting.php +++ b/resources/lang/tr/setting.php @@ -134,6 +134,10 @@ 'label' => 'SMTP Şifresi', 'instructions' => 'Kullanılacak SMTP şifresini belirtin.', ], + 'mail_encrypt' => [ + 'label' => 'SMTP Şifreleme', + 'instructions' => 'Kullanılacak SMTP şifreleme yöntemini belirtin.', + ], 'http_cache' => [ 'label' => 'HTTP Önbelleği', 'instructions' => 'HTTP önbelleğini etkinleştirmek istiyor musunuz?', diff --git a/resources/stubs/addons/resources/views/partials/metadata.twig b/resources/stubs/addons/resources/views/partials/metadata.twig index 97fdf2816..1a398c843 100644 --- a/resources/stubs/addons/resources/views/partials/metadata.twig +++ b/resources/stubs/addons/resources/views/partials/metadata.twig @@ -4,7 +4,7 @@ Any other head element should come *after* these tags. #} - + @@ -15,7 +15,6 @@ - {{ template.includes.render('meta')|raw }} diff --git a/resources/stubs/entity/factory.stub b/resources/stubs/entity/factory.stub index 831d90e0f..0149faf14 100644 --- a/resources/stubs/entity/factory.stub +++ b/resources/stubs/entity/factory.stub @@ -1,10 +1,23 @@ -define( - {model}::class, - function (Faker\Generator $faker) { - return [ - //'title' => $faker->words(2), - ]; +
{{ trans("streams::message.no_fields_available") }}
{% else %} - {% if not form.sections.empty() %} + {% if not form.sections.isEmpty() %} {% for section in form.sections %} {% if section.view %} {% include section.view %} diff --git a/resources/views/form/partials/layout.twig b/resources/views/form/partials/layout.twig index c2dd64bc8..3eb76a693 100644 --- a/resources/views/form/partials/layout.twig +++ b/resources/views/form/partials/layout.twig @@ -1,4 +1,4 @@ -{% if form.fields.empty %} +{% if form.fields.isEmpty() %}
@@ -8,7 +8,7 @@ {% else %} - {% if not form.sections.empty() %} + {% if not form.sections.isEmpty() %} {% for section in form.sections %} {% if section.view %} diff --git a/resources/views/form/partials/translations.twig b/resources/views/form/partials/translations.twig index 2ac708d54..04660e658 100644 --- a/resources/views/form/partials/translations.twig +++ b/resources/views/form/partials/translations.twig @@ -4,7 +4,7 @@