Skip to content

Commit f65c917

Browse files
author
Andrew Welch
committed
Merge branch 'release/1.6.46' into v1
2 parents 31d0f1f + f6b80fa commit f65c917

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ImageOptimize Changelog
22

3+
## 1.6.46 - 2022.06.29
4+
### Fixed
5+
* Fixed an issue that could throw an exception when double-clicking on an asset, due to an incorrect asset bundle path
6+
37
## 1.6.45 - 2022.06.28
48
### Changed
59
* If there's no transform requested, and we're not using some external service for image transforms, return `null` so other plugins have a crack at it

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nystudio107/craft-imageoptimize",
33
"description": "Automatically create & optimize responsive image transforms, using either native Craft transforms or a service like imgix, with zero template changes.",
44
"type": "craft-plugin",
5-
"version": "1.6.45",
5+
"version": "1.6.46",
66
"keywords": [
77
"craft",
88
"cms",

src/templates/_components/fields/OptimizedImages_input.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#}
1515

1616
{% do view.registerAssetBundle("nystudio107\\imageoptimize\\assetbundles\\imageoptimize\\ImageOptimizeAsset") %}
17-
{% set baseAssetsUrl = view.getAssetManager().getPublishedUrl('@nystudio107/imageoptimize/assetbundles/imageoptimize/dist', true) %}
17+
{% set baseAssetsUrl = view.getAssetManager().getPublishedUrl('@nystudio107/imageoptimize/web/assets/dist', true) %}
1818

1919
{% set tagOptions = {
2020
'depends': [

src/templates/welcome.twig

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% set docsUrl = "https://github.com/nystudio107/craft-imageoptimize/blob/v1/README.md" %}
88

99
{% do view.registerAssetBundle("nystudio107\\imageoptimize\\assetbundles\\imageoptimize\\ImageOptimizeAsset") %}
10-
{% set baseAssetsUrl = view.getAssetManager().getPublishedUrl('@nystudio107/imageoptimize/assetbundles/imageoptimize/dist', true) %}
10+
{% set baseAssetsUrl = view.getAssetManager().getPublishedUrl('@nystudio107/nystudio107/imageoptimize/web/assets/dist', true) %}
1111

1212
{% set crumbs = [
1313
{ label: "ImageOptimize", url: url('image-optimize') },
@@ -18,17 +18,24 @@
1818
<div id="cp-nav-content" class="readable" style="text-align:center; margin:0 auto; padding: 5% 10%;">
1919
<confetti-party>
2020
</confetti-party>
21-
<img src="{{ baseAssetsUrl ~ '/img/ImageOptimize-icon.svg' }}" width="30%" height="auto" />
21+
<img src="{{ baseAssetsUrl ~ '/img/ImageOptimize-icon.svg' }}" width="30%" height="auto"/>
2222
<h2>Thanks for using ImageOptimize!</h2>
23-
<p>ImageOptimize allows you to automatically create & optimize responsive image transforms from your Craft CMS assets.</p>
24-
<p>It works equally well with native Craft image transforms, and image services like <a href="https://imgix.com" target="_blank" rel="noopener">imgix</a>, with zero template changes.</p>
23+
<p>ImageOptimize allows you to automatically create & optimize responsive image transforms from your Craft CMS
24+
assets.</p>
25+
<p>It works equally well with native Craft image transforms, and image services like <a href="https://imgix.com"
26+
target="_blank"
27+
rel="noopener">imgix</a>,
28+
with zero template changes.</p>
2529

26-
<p>We hope you love it! For more information, please <a href="{{ docsUrl }}" target="_blank" rel="noopener">see the documentation</a>.</p>
30+
<p>We hope you love it! For more information, please <a href="{{ docsUrl }}" target="_blank" rel="noopener">see
31+
the documentation</a>.</p>
2732
<p>
2833
&nbsp;
2934
</p>
3035
<p>
31-
<a href="{{ linkGetStarted }}"><button class="btn submit">Get Started</button></a>
36+
<a href="{{ linkGetStarted }}">
37+
<button class="btn submit">Get Started</button>
38+
</a>
3239
</p>
3340
</div>
3441
<div style="text-align:center; margin:0 auto; padding: 0;">

0 commit comments

Comments
 (0)