-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathToSic.Imageflow.Dnn.dnn
More file actions
418 lines (381 loc) · 24.5 KB
/
ToSic.Imageflow.Dnn.dnn
File metadata and controls
418 lines (381 loc) · 24.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
<?xml version="1.0" encoding="utf-8"?>
<dotnetnuke type="Package" version="6.0">
<packages>
<package name="ToSic.Imageflow.Dnn" type="Library" version="01.12.01">
<friendlyName>Imageflow</friendlyName>
<description>
<![CDATA[<p>Imazen Imageflow - optimal images at incredible speeds - image resizer http module for high-performance image manipulation.</p>]]>
</description>
<iconFile>~/Resources/Libraries/ToSic/Imageflow/icon.png</iconFile>
<owner>
<name>2sic + Imazen</name>
<organization>2sic internet solutions GmbH, Switzerland</organization>
<url>http://2sxc.org/</url>
<email>info@2sxc.org</email>
</owner>
<license src="License.txt" />
<releaseNotes src="ReleaseNotes.txt" />
<azureCompatible>True</azureCompatible>
<dependencies>
<dependency type="CoreVersion">09.11.00</dependency>
</dependencies>
<components>
<!-- "Assembly" component should be in front of "Config", or new/updated auto-generated assembly binding redirects in web.config are lost. -->
<component type="Assembly">
<assemblies>
<basePath>bin</basePath>
<assembly>
<name>ToSic.Imageflow.Dnn.dll</name>
</assembly>
<!-- transitive dependencies -->
<assembly>
<name>Microsoft.Bcl.AsyncInterfaces.dll</name>
<!-- v8.0.0.0 - updated to version in DNN 10 upgrade.zip -->
<version>8.0.23.53103</version>
</assembly>
<assembly>
<name>System.Buffers.dll</name>
<!-- v4.0.4.0 -->
<version>4.600.24.56208</version>
</assembly>
<assembly>
<name>System.Memory.dll</name>
<!-- v4.0.1.2 -->
<version>4.6.31308.01</version>
</assembly>
<assembly>
<name>System.Numerics.Vectors.dll</name>
<!-- v4.1.4.0 - same as in DNN 9 upgrade.zip -->
<version>4.6.26515.06</version>
</assembly>
<assembly>
<name>System.Runtime.CompilerServices.Unsafe.dll</name>
<!-- v6.0.0.0 -->
<version>6.0.21.52210</version>
</assembly>
<assembly>
<name>System.Text.Encodings.Web.dll</name>
<!-- v6.0.0.1 -->
<version>6.0.3624.51421</version>
</assembly>
<assembly>
<name>System.Text.Json.dll</name>
<!-- v6.0.0.11 -->
<version>6.0.3624.51421</version>
</assembly>
<assembly>
<name>System.Threading.Tasks.Extensions.dll</name>
<!-- v4.2.0.1 - same as in DNN 9,10 upgrade.zip -->
<version>4.6.28619.01</version>
</assembly>
<assembly>
<name>System.ValueTuple.dll</name>
<!-- v4.0.3.0 - same as in DNN 10 upgrade.zip -->
<version>4.6.26515.06</version>
</assembly>
</assemblies>
</component>
<component type="Config">
<!-- more on this here https://www.dnnsoftware.com/wiki/manifest-xml-merge -->
<config>
<configFile>web.config</configFile>
<install>
<configuration>
<nodes>
<!-- register the WebP Mime Type - seems complicated, but copied from DNNs registration of svg https://github.com/dnnsoftware/Dnn.Platform/blob/c35fdc7fb75db0438f3b872ce4e279e3ea73e7c2/Dnn.AdminExperience/Library/Dnn.PersonaBar.UI/Dnn.PersonaBar.UI.dnn#L68-L97 -->
<node path="/configuration/system.webServer" targetpath="/configuration/system.webServer/staticContent" action="update" collision="ignore">
<staticContent>
<remove fileExtension=".webp" />
<mimeMap fileExtension=".webp" mimeType="image/webp" />
</staticContent>
</node>
<node path="/configuration/system.webServer/staticContent/remove[@fileExtension='.webp']" action="remove" />
<node path="/configuration/system.webServer/staticContent" action="add" key="remove" collision="overwrite">
<remove fileExtension=".webp" />
</node>
<node path="/configuration/system.webServer/staticContent/mimeMap[@fileExtension='.webp']" action="remove" />
<node path="/configuration/system.webServer/staticContent" action="add" key="mimeMap" collision="overwrite">
<mimeMap fileExtension=".webp" mimeType="image/webp" />
</node>
<!-- Remove the ImageResizer http-modules in old/new versions as needed -->
<node path="/configuration/system.web/httpModules/remove[@name='ImageResizingModule']" action="remove" />
<node path="/configuration/system.web/httpModules/add[@name='ImageResizingModule']" action="insertafter" key="add" collision="overwrite">
<remove name="ImageResizingModule"/>
</node>
<node path="/configuration/system.webServer/modules/remove[@name='ImageResizingModule']" action="remove" />
<node path="/configuration/system.webServer/modules/add[@name='ImageResizingModule']" action="insertafter" key="add" collision="overwrite">
<remove name="ImageResizingModule"/>
</node>
<!-- Register the Imageflow http-modules in old/new versions as needed -->
<node path="/configuration/system.web/httpModules" action="update" key="name" collision="overwrite">
<add name="ImageflowModule" type="ToSic.Imageflow.Dnn.ImageflowModule, ToSic.Imageflow.Dnn"/>
</node>
<node path="/configuration/system.webServer/modules" action="update" key="name" collision="overwrite">
<add name="ImageflowModule" type="ToSic.Imageflow.Dnn.ImageflowModule, ToSic.Imageflow.Dnn"/>
</node>
<!-- register netstandard2.0 (more: http://stackoverflow.com/questions/16675171/what-does-the-web-config-compilation-assemblies-element-do/19942274#19942274) -->
<node path="/configuration/system.web/compilation/assemblies" action="update" key="assembly" collision="ignore">
<add assembly="netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" />
</node>
<!-- 01 - Imageflow add codeBase and update bindingRedirects for bin\Imageflow\Microsoft.Extensions.Configuration.Abstractions.dll, version 2.2.0.0 -->
<!-- remove older bindingRedirects -->
<!--<node path="/configuration/runtime/ab:assemblyBinding/ab:dependentAssembly[
ab:assemblyIdentity/@name='Microsoft.Extensions.Configuration.Abstractions'
and ab:codeBase/@href='bin\Imageflow\Microsoft.Extensions.Configuration.Abstractions.dll'
and not(ab:bindingRedirect)
]"
action="remove"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab" />-->
<!-- 2sxc module: if dependentAssembly has bindingRedirect for @newVersion='2.1.1.0', add codeBase and adjust bindingRedirect -->
<!--<node path="/configuration/runtime/ab:assemblyBinding"
action="update"
targetpath="ab:dependentAssembly[
ab:assemblyIdentity/@name='Microsoft.Extensions.Configuration.Abstractions'
and ab:bindingRedirect[@oldVersion='0.0.0.0-32767.32767.32767.32767' and @newVersion='2.1.1.0']
]"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.Extensions.Configuration.Abstractions" publicKeyToken="adb9793829ddae60" />
<bindingRedirect oldVersion="0.0.0.0-2.1.1.0" newVersion="2.1.1.0" />
<bindingRedirect oldVersion="2.2.0.0-32767.32767.32767.32767" newVersion="2.2.0.0" />
<codeBase version="2.2.0.0" href="bin\Imageflow\Microsoft.Extensions.Configuration.Abstractions.dll" />
</dependentAssembly>
</node>-->
<!-- standalone ImageFlow: if dependentAssembly is missing, just add codeBase -->
<node path="/configuration/runtime/ab:assemblyBinding[not(ab:dependentAssembly/ab:assemblyIdentity/@name='Microsoft.Extensions.Configuration.Abstractions')]"
action="add"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.Extensions.Configuration.Abstractions" publicKeyToken="adb9793829ddae60" />
<codeBase version="2.2.0.0" href="bin\Imageflow\Microsoft.Extensions.Configuration.Abstractions.dll" />
</dependentAssembly>
</node>
<!-- 02 - Imageflow add codeBase and update bindingRedirects for bin\Imageflow\Microsoft.Extensions.DependencyInjection.Abstractions.dll, version 2.2.0.0 -->
<node path="/configuration/runtime/ab:assemblyBinding[not(ab:dependentAssembly/ab:assemblyIdentity/@name='Microsoft.Extensions.DependencyInjection.Abstractions')]"
action="add"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.Extensions.DependencyInjection.Abstractions" publicKeyToken="adb9793829ddae60" />
<codeBase version="2.2.0.0" href="bin\Imageflow\Microsoft.Extensions.DependencyInjection.Abstractions.dll" />
</dependentAssembly>
</node>
<!-- 03 - Imageflow add codeBase and update bindingRedirects for bin\Imageflow\Microsoft.Extensions.DependencyInjection.dll, version 2.2.0.0 -->
<node path="/configuration/runtime/ab:assemblyBinding[not(ab:dependentAssembly/ab:assemblyIdentity[@name='Microsoft.Extensions.DependencyInjection'])]"
action="add"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.Extensions.DependencyInjection" publicKeyToken="adb9793829ddae60" />
<codeBase version="2.2.0.0" href="bin\Imageflow\Microsoft.Extensions.DependencyInjection.dll" />
</dependentAssembly>
</node>
<!-- 04 - Imageflow add codeBase and update bindingRedirects for bin\Imageflow\Microsoft.Extensions.FileProviders.Abstractions.dll, version 2.2.0.0 -->
<!-- if dependentAssembly has bindingRedirect for @newVersion='2.1.1.0', add codeBase and adjust bindingRedirect -->
<!--<node path="/configuration/runtime/ab:assemblyBinding"
action="update"
targetpath="ab:dependentAssembly[
ab:assemblyIdentity/@name='Microsoft.Extensions.FileProviders.Abstractions'
and ab:bindingRedirect[@oldVersion='0.0.0.0-32767.32767.32767.32767' and @newVersion='2.1.1.0']
]"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.Extensions.FileProviders.Abstractions" publicKeyToken="adb9793829ddae60" />
<bindingRedirect oldVersion="0.0.0.0-2.1.1.0" newVersion="2.1.1.0" />
<bindingRedirect oldVersion="2.2.0.0-32767.32767.32767.32767" newVersion="2.2.0.0" />
<codeBase version="2.2.0.0" href="bin\Imageflow\Microsoft.Extensions.FileProviders.Abstractions.dll" />
</dependentAssembly>
</node>-->
<!-- standalone ImageFlow: if dependentAssembly is missing, just add codeBase -->
<node path="/configuration/runtime/ab:assemblyBinding[not(ab:dependentAssembly/ab:assemblyIdentity/@name='Microsoft.Extensions.FileProviders.Abstractions')]"
action="add"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.Extensions.FileProviders.Abstractions" publicKeyToken="adb9793829ddae60" />
<codeBase version="2.2.0.0" href="bin\Imageflow\Microsoft.Extensions.FileProviders.Abstractions.dll" />
</dependentAssembly>
</node>
<!-- 05 - Imageflow add codeBase and update bindingRedirects for bin\Imageflow\Microsoft.Extensions.Hosting.Abstractions.dll, version 2.2.0.0 -->
<!-- if dependentAssembly has bindingRedirect for @newVersion='2.1.1.0', add codeBase and adjust bindingRedirect -->
<!--<node path="/configuration/runtime/ab:assemblyBinding"
action="update"
targetpath="ab:dependentAssembly[
ab:assemblyIdentity/@name='Microsoft.Extensions.Hosting.Abstractions'
and ab:bindingRedirect[@oldVersion='0.0.0.0-32767.32767.32767.32767' and @newVersion='2.1.1.0']
]"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.Extensions.Hosting.Abstractions" publicKeyToken="adb9793829ddae60" />
<bindingRedirect oldVersion="0.0.0.0-2.1.1.0" newVersion="2.1.1.0" />
<bindingRedirect oldVersion="2.2.0.0-32767.32767.32767.32767" newVersion="2.2.0.0" />
<codeBase version="2.2.0.0" href="bin\Imageflow\Microsoft.Extensions.Hosting.Abstractions.dll" />
</dependentAssembly>
</node>-->
<!-- standalone ImageFlow: if dependentAssembly is missing, just add codeBase -->
<node path="/configuration/runtime/ab:assemblyBinding[not(ab:dependentAssembly/ab:assemblyIdentity/@name='Microsoft.Extensions.Hosting.Abstractions')]"
action="add"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.Extensions.Hosting.Abstractions" publicKeyToken="adb9793829ddae60" />
<codeBase version="2.2.0.0" href="bin\Imageflow\Microsoft.Extensions.Hosting.Abstractions.dll" />
</dependentAssembly>
</node>
<!-- 06 - Imageflow add codeBase and update bindingRedirects for bin\Imageflow\Microsoft.Extensions.Logging.Abstractions.dll, version 2.2.0.0 -->
<!-- 2sxc module: if dependentAssembly has bindingRedirect for @newVersion='2.1.1.0', add codeBase and adjust bindingRedirect -->
<!--<node path="/configuration/runtime/ab:assemblyBinding"
action="update"
targetpath="ab:dependentAssembly[
ab:assemblyIdentity/@name='Microsoft.Extensions.Logging.Abstractions'
and ab:bindingRedirect[@oldVersion='0.0.0.0-32767.32767.32767.32767' and @newVersion='2.1.1.0']
]"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.Extensions.Logging.Abstractions" publicKeyToken="adb9793829ddae60" />
<bindingRedirect oldVersion="0.0.0.0-2.1.1.0" newVersion="2.1.1.0" />
<bindingRedirect oldVersion="2.2.0.0-32767.32767.32767.32767" newVersion="2.2.0.0" />
<codeBase version="2.2.0.0" href="bin\Imageflow\Microsoft.Extensions.Logging.Abstractions.dll" />
</dependentAssembly>
</node>-->
<!-- standalone ImageFlow: if dependentAssembly is missing, just add codeBase -->
<node path="/configuration/runtime/ab:assemblyBinding[not(ab:dependentAssembly/ab:assemblyIdentity/@name='Microsoft.Extensions.Logging.Abstractions')]"
action="add"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.Extensions.Logging.Abstractions" publicKeyToken="adb9793829ddae60" />
<codeBase version="2.2.0.0" href="bin\Imageflow\Microsoft.Extensions.Logging.Abstractions.dll" />
</dependentAssembly>
</node>
<!-- 07 - Imageflow add codeBase and update bindingRedirects for bin\Imageflow\Microsoft.Extensions.Primitives.dll, version 2.2.0.0 -->
<!-- 2sxc module: if dependentAssembly has bindingRedirect for @newVersion='2.1.1.0', add codeBase and adjust bindingRedirect -->
<!--<node path="/configuration/runtime/ab:assemblyBinding"
action="update"
targetpath="ab:dependentAssembly[
ab:assemblyIdentity/@name='Microsoft.Extensions.Primitives'
and ab:bindingRedirect[@oldVersion='0.0.0.0-32767.32767.32767.32767' and @newVersion='2.1.1.0']
]"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.Extensions.Primitives" publicKeyToken="adb9793829ddae60" />
<bindingRedirect oldVersion="0.0.0.0-2.1.1.0" newVersion="2.1.1.0" />
<bindingRedirect oldVersion="2.2.0.0-32767.32767.32767.32767" newVersion="2.2.0.0" />
<codeBase version="2.2.0.0" href="bin\Imageflow\Microsoft.Extensions.Primitives.dll" />
</dependentAssembly>
</node>-->
<!-- standalone ImageFlow: if dependentAssembly is missing, just add codeBase -->
<node path="/configuration/runtime/ab:assemblyBinding[not(ab:dependentAssembly/ab:assemblyIdentity/@name='Microsoft.Extensions.Primitives')]"
action="add"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.Extensions.Primitives" publicKeyToken="adb9793829ddae60" />
<codeBase version="2.2.0.0" href="bin\Imageflow\Microsoft.Extensions.Primitives.dll" />
</dependentAssembly>
</node>
<!-- 08 - Imageflow add codeBase and update bindingRedirects for bin\Imageflow\Microsoft.IO.RecyclableMemoryStream.dll, version 3.0.1.0 -->
<!-- remove older bindingRedirects -->
<node path="/configuration/runtime/ab:assemblyBinding/ab:dependentAssembly[
ab:assemblyIdentity/@name='Microsoft.IO.RecyclableMemoryStream'
and ab:codeBase/@href='bin\Imageflow\Microsoft.IO.RecyclableMemoryStream.dll'
and not(ab:bindingRedirect)
]"
action="remove"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab" />
<!-- standalone ImageFlow: if dependentAssembly is missing, just add codeBase -->
<node path="/configuration/runtime/ab:assemblyBinding[not(ab:dependentAssembly/ab:assemblyIdentity/@name='Microsoft.IO.RecyclableMemoryStream')]"
action="add"
collision="overwrite"
nameSpace="urn:schemas-microsoft-com:asm.v1"
nameSpacePrefix="ab">
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Microsoft.IO.RecyclableMemoryStream" publicKeyToken="31bf3856ad364e35" />
<codeBase version="3.0.1.0" href="bin\Imageflow\Microsoft.IO.RecyclableMemoryStream.dll" />
</dependentAssembly>
</node>
</nodes>
</configuration>
</install>
<uninstall>
<configuration>
<nodes>
<node path="/configuration/system.web/httpModules/add[@name='ImageflowModule']" action="remove" />
<node path="/configuration/system.webServer/modules/add[@name='ImageflowModule']" action="remove" />
</nodes>
</configuration>
</uninstall>
</config>
</component>
<component type="ResourceFile">
<resourceFiles>
<basePath></basePath>
<resourceFile>
<name>ToSic.Imageflow.Dnn.zip</name>
</resourceFile>
</resourceFiles>
</component>
<!-- This is simplified "module" component in "library" package, just enough to support UpgradeModule -->
<component type="Module">
<desktopModule>
<moduleName>Imageflow</moduleName>
<businessControllerClass>ToSic.Imageflow.Dnn.BusinessController</businessControllerClass>
<isAdmin>true</isAdmin>
<isPremium>true</isPremium>
<supportedFeatures>
<supportedFeature type="Upgradeable" />
</supportedFeatures>
</desktopModule>
<eventMessage>
<processorType>
DotNetNuke.Entities.Modules.EventMessageProcessor,
DotNetNuke
</processorType>
<processorCommand>UpgradeModule</processorCommand>
<attributes>
<businessControllerClass>ToSic.Imageflow.Dnn.BusinessController</businessControllerClass>
<desktopModuleID>[DESKTOPMODULEID]</desktopModuleID>
<upgradeVersionsList>01.00.00</upgradeVersionsList>
</attributes>
</eventMessage>
</component>
<component type="File">
<files>
<basePath>Resources\Libraries\ToSic\Imageflow</basePath>
<file>
<name>icon.png</name>
</file>
<file>
<name>License.txt</name>
</file>
<file>
<name>ReleaseNotes.txt</name>
</file>
</files>
</component>
</components>
</package>
</packages>
</dotnetnuke>