Skip to content

Commit

Permalink
Merge branch 'release/5.0.0-beta.3' into v5
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Feb 9, 2024
2 parents ca30d39 + d5c5cd4 commit cd65351
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 14 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Retour Changelog

## 5.0.0-beta.3 - 2024.02.09
### Added
* Added a custom Field icon

### Fixed
* Added the unused `static` to the Tailwind CSS `blocklist` to avoid a name collision with a Craft CSS class ([#1412](https://github.com/nystudio107/craft-seomatic/issues/1412))

## 5.0.0-beta.2 - 2024.02.05
### Added
* Add `phpstan` and `ecs` code linting
Expand Down
3 changes: 3 additions & 0 deletions buildchain/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ export default {
'../src/templates/**/*.{twig,html}',
'./src/vue/**/*.{vue,html}',
],
blocklist: [
'static',
],
theme: {},
plugins: [],
};
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-retour",
"description": "Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website",
"type": "craft-plugin",
"version": "5.0.0-beta.1",
"version": "5.0.0-beta.3",
"keywords": [
"craftcms",
"craft-plugin",
Expand All @@ -27,7 +27,7 @@
},
"require": {
"php": "^8.0.2",
"craftcms/cms": "^5.0.0-alpha.1",
"craftcms/cms": "^5.0.0-beta.1",
"nystudio107/craft-plugin-vite": "^5.0.0-beta.1",
"league/csv": "^8.2 || ^9.0",
"jean85/pretty-package-versions": "^1.5 || ^2.0"
Expand All @@ -40,7 +40,8 @@
"scripts": {
"phpstan": "phpstan --ansi --memory-limit=1G",
"check-cs": "ecs check --ansi",
"fix-cs": "ecs check --fix --ansi"
"fix-cs": "ecs check --fix --ansi",
"test": "codecept run unit --coverage-xml"
},
"config": {
"allow-plugins": {
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
includes:
- vendor/craftcms/phpstan/phpstan.neon
- %currentWorkingDirectory%/vendor/craftcms/phpstan/phpstan.neon

parameters:
level: 5
Expand Down
12 changes: 9 additions & 3 deletions src/fields/ShortLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace nystudio107\retour\fields;

use Craft;
use craft\base\Element;
use craft\base\ElementInterface;
use craft\base\Field;
use craft\base\PreviewableFieldInterface;
Expand All @@ -29,11 +28,10 @@
*/
class ShortLink extends Field implements PreviewableFieldInterface
{
protected static bool $allowShortLinkUpdates = true;
public string $redirectSrcMatch = 'pathonly';
public int $redirectHttpCode = 301;

protected static bool $allowShortLinkUpdates = true;

// Static Methods
// =========================================================================

Expand All @@ -45,6 +43,14 @@ public static function displayName(): string
return Craft::t('retour', 'Short Link');
}

/**
* @inheritdoc
*/
public static function icon(): string
{
return '@nystudio107/retour/icon-mask.svg';
}

/**
* Prevent element updates from updating the short link redirects.
*/
Expand Down
1 change: 1 addition & 0 deletions src/web/assets/dist/assets/retour-0lLzocvu.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added src/web/assets/dist/assets/retour-0lLzocvu.css.gz
Binary file not shown.
2 changes: 0 additions & 2 deletions src/web/assets/dist/assets/retour-GsbkZ0RI.js

This file was deleted.

1 change: 0 additions & 1 deletion src/web/assets/dist/assets/retour-GsbkZ0RI.js.map

This file was deleted.

1 change: 0 additions & 1 deletion src/web/assets/dist/assets/retour-axBeLE34.css

This file was deleted.

Binary file removed src/web/assets/dist/assets/retour-axBeLE34.css.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions src/web/assets/dist/assets/retour-mao8V0mm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/web/assets/dist/assets/retour-mao8V0mm.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/web/assets/dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
},
"src/js/Retour.js": {
"css": [
"assets/retour-axBeLE34.css"
"assets/retour-0lLzocvu.css"
],
"file": "assets/retour-GsbkZ0RI.js",
"file": "assets/retour-mao8V0mm.js",
"isEntry": true,
"src": "src/js/Retour.js"
},
Expand Down
Binary file modified src/web/assets/dist/manifest.json.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion src/web/assets/dist/stats.html

Large diffs are not rendered by default.

0 comments on commit cd65351

Please sign in to comment.