@principal-ade/dynamic-file-tree 0.1.73 → 0.1.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs
CHANGED
|
@@ -3104,14 +3104,33 @@ var RepositoryTreeCore = ({
|
|
|
3104
3104
|
size: 16
|
|
3105
3105
|
});
|
|
3106
3106
|
const nameColor = data.type === "directory" ? theme.colors.textSecondary : theme.colors.text;
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3107
|
+
let rightContent = undefined;
|
|
3108
|
+
if (data.type === "directory" && data.repositoryCount !== undefined) {
|
|
3109
|
+
rightContent = /* @__PURE__ */ React15.createElement("span", {
|
|
3110
|
+
style: {
|
|
3111
|
+
marginLeft: "8px",
|
|
3112
|
+
fontSize: "12px",
|
|
3113
|
+
color: theme.colors.textMuted,
|
|
3114
|
+
fontWeight: 500
|
|
3115
|
+
}
|
|
3116
|
+
}, data.repositoryCount);
|
|
3117
|
+
} else if (data.type === "repository" && data.entry?.github?.owner) {
|
|
3118
|
+
const { owner, name } = data.entry.github;
|
|
3119
|
+
const avatarUrl = `https://github.com/${owner}.png?size=32`;
|
|
3120
|
+
const repoFullName = `${owner}/${name}`;
|
|
3121
|
+
rightContent = /* @__PURE__ */ React15.createElement("img", {
|
|
3122
|
+
src: avatarUrl,
|
|
3123
|
+
alt: owner,
|
|
3124
|
+
title: repoFullName,
|
|
3125
|
+
style: {
|
|
3126
|
+
width: 16,
|
|
3127
|
+
height: 16,
|
|
3128
|
+
borderRadius: "50%",
|
|
3129
|
+
marginLeft: "8px",
|
|
3130
|
+
cursor: "help"
|
|
3131
|
+
}
|
|
3132
|
+
});
|
|
3133
|
+
}
|
|
3115
3134
|
return /* @__PURE__ */ React15.createElement(TreeNode, {
|
|
3116
3135
|
...props,
|
|
3117
3136
|
theme,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepositoryTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/RepositoryTree/RepositoryTreeCore.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EAAsB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA+IvE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"RepositoryTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/RepositoryTree/RepositoryTreeCore.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EAAsB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA+IvE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuI5D,CAAC"}
|
package/package.json
CHANGED