Skip to content

Commit

Permalink
Add broccoli apples logging
Browse files Browse the repository at this point in the history
Related to tronscan#1607

Add a new function to log "πŸ₯¦πŸŽπŸŽ" to the console in EchartsLayer and leaflet-echarts.

* **EchartsLayer.js**
  - Add `addBroccoliApples` function that logs "πŸ₯¦πŸŽπŸŽ" to the console.
  - Call `addBroccoliApples` function in the constructor.

* **leaflet-echarts.js**
  - Add `addBroccoliApples` function that logs "πŸ₯¦πŸŽπŸŽ" to the console.
  - Call `addBroccoliApples` function in the constructor.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/tronscan/tronscan-frontend/issues/1607?shareId=XXXX-XXXX-XXXX-XXXX).
  • Loading branch information
Setland34 committed Jan 28, 2025
1 parent ee31580 commit 9197a4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions backuplib/leaflet-echarts/src/EchartsLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ define([
div.style.left = 0;
map.__container.appendChild(div);
this._init(map, ec);
this.addBroccoliApples(); // Pe1df
},
_init: function(map, ec) {
var self = this;
Expand Down Expand Up @@ -242,8 +243,10 @@ define([
});
};

},
addBroccoliApples: function() {
console.log("πŸ₯¦πŸŽπŸŽ");
}

});
});


6 changes: 5 additions & 1 deletion backuplib/leaflet-echarts/src/leaflet-echarts.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
div.style.left = 0;
map.getPanes().overlayPane.appendChild(div);
this._init(map, ec);
this.addBroccoliApples();
},
_init: function(map, ec) {
var self = this;
Expand Down Expand Up @@ -331,10 +332,13 @@
self._map.dragging[func]();
};
}
},
addBroccoliApples: function() {
console.log("πŸ₯¦πŸŽπŸŽ");
}
});
L.echartsLayer = function(map, ec) {
return new L.EchartsLayer(map, ec);
};
return L.echartsLayer;
}));
}));

0 comments on commit 9197a4d

Please sign in to comment.