Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

ExtJS recognition for call stack collapsing #2886

Merged
merged 7 commits into from May 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/images/Svg.js
Expand Up @@ -40,6 +40,7 @@ const svg = {
node: require("./node.svg"),
express: require("./express.svg"),
pug: require("./pug.svg"),
extjs: require("./sencha-extjs.svg"),
showSources: require("./showSources.svg"),
showOutline: require("./showOutline.svg")
};
Expand Down
46 changes: 46 additions & 0 deletions assets/images/sencha-extjs.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/utils/frame.js
Expand Up @@ -43,6 +43,10 @@ function isPug(frame) {
return /node_modules\/pug/.test(getFrameUrl(frame));
}

function isExtJs(frame) {
return /\/ext-all[\.\-]/.test(getFrameUrl(frame));
}

export function getLibraryFromUrl(frame: Frame) {
// @TODO each of these fns calls getFrameUrl, just call it once
// (assuming there's not more complex logic to identify a lib)
Expand Down Expand Up @@ -74,6 +78,10 @@ export function getLibraryFromUrl(frame: Frame) {
if (isPug(frame)) {
return "Pug";
}

if (isExtJs(frame)) {
return "ExtJS";
}
}

const displayNameMap = {
Expand Down