File tree 4 files changed +7
-4
lines changed
4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ node_modules/
2
2
dist /
3
3
build /
4
4
app /services /* .json
5
+ integrations /
5
6
.idea /
6
7
7
8
junitresults.xml
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export default class TemplateItem extends React.Component {
69
69
< div className = "step-template" >
70
70
< div className = "row clearfix" >
71
71
< div className = "column two-thirds" >
72
- < img className = "logo" loading = "lazy" src = { this . state . template . Logo } />
72
+ < img className = "logo" src = { "data:image/gif;base64," + this . state . template . Logo } />
73
73
< h2 className = "name" > { this . state . template . Name } </ h2 >
74
74
< p className = "who-when faint no-top-margin" >
75
75
< i > { this . state . template . ActionType } </ i > exported { moment ( this . state . template . ExportedAt ) . calendar ( ) } by
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export default class TemplateList extends React.Component {
27
27
let friendlySlug = SlugMaker . make ( item . Name ) ;
28
28
return (
29
29
< li className = { "item-summary " + ( item . ScriptClass || "" ) } key = { index + "." + item . Name } >
30
- < img loading = "lazy" src = { item . Logo } />
30
+ < img src = { "data:image/gif;base64," + item . Logo } />
31
31
< h4 key = { index + "." + item . Name + ".0" } >
32
32
< Link to = { `/step-templates/${ item . Id } /${ friendlySlug } ` } > { item . Name } </ Link >
33
33
</ h4 >
Original file line number Diff line number Diff line change @@ -300,8 +300,10 @@ function provideMissingData() {
300
300
301
301
template . Category = humanize ( categoryId ) ;
302
302
303
- // Note: this deprecates base64 encoded images in the template files - they will be ignored
304
- template . Logo = "https://i.octopus.com/library/step-templates/" + categoryId + ".png" ;
303
+ if ( ! template . Logo ) {
304
+ var logo = fs . readFileSync ( "./step-templates/logos/" + categoryId + ".png" ) ;
305
+ template . Logo = Buffer . from ( logo ) . toString ( "base64" ) ;
306
+ }
305
307
306
308
file . contents = Buffer . from ( JSON . stringify ( template ) ) ;
307
309
You can’t perform that action at this time.
0 commit comments