@industry-theme/github-panels 0.1.28 → 0.1.30
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WelcomePanel.d.ts","sourceRoot":"","sources":["../../src/panels/WelcomePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAWrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC5D,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC3C,qBAAqB,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC/C,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAwMD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"WelcomePanel.d.ts","sourceRoot":"","sources":["../../src/panels/WelcomePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAWrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC5D,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC3C,qBAAqB,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC/C,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAwMD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwPpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -3055,7 +3055,7 @@ const WelcomePanel = ({
|
|
|
3055
3055
|
window.location.href = `/${parsed.owner}/${parsed.repo}`;
|
|
3056
3056
|
}
|
|
3057
3057
|
}, [repoInput, onNavigate]);
|
|
3058
|
-
|
|
3058
|
+
useCallback((project) => {
|
|
3059
3059
|
if (onNavigate) {
|
|
3060
3060
|
onNavigate(project.owner, project.repo);
|
|
3061
3061
|
} else {
|
|
@@ -3082,6 +3082,54 @@ const WelcomePanel = ({
|
|
|
3082
3082
|
overflowY: "auto"
|
|
3083
3083
|
},
|
|
3084
3084
|
children: [
|
|
3085
|
+
featuredOrganizations.length > 0 && /* @__PURE__ */ jsxs(
|
|
3086
|
+
"div",
|
|
3087
|
+
{
|
|
3088
|
+
style: {
|
|
3089
|
+
padding: "48px 32px",
|
|
3090
|
+
display: "flex",
|
|
3091
|
+
flexDirection: "column",
|
|
3092
|
+
alignItems: "center",
|
|
3093
|
+
gap: "16px",
|
|
3094
|
+
borderBottom: `1px solid ${theme.colors.border}`
|
|
3095
|
+
},
|
|
3096
|
+
children: [
|
|
3097
|
+
/* @__PURE__ */ jsx(
|
|
3098
|
+
"h2",
|
|
3099
|
+
{
|
|
3100
|
+
style: {
|
|
3101
|
+
margin: 0,
|
|
3102
|
+
fontSize: `${theme.fontSizes[6] || 32}px`,
|
|
3103
|
+
fontWeight: theme.fontWeights.semibold,
|
|
3104
|
+
color: theme.colors.textSecondary,
|
|
3105
|
+
textAlign: "center"
|
|
3106
|
+
},
|
|
3107
|
+
children: "Explore software like never before"
|
|
3108
|
+
}
|
|
3109
|
+
),
|
|
3110
|
+
/* @__PURE__ */ jsx(
|
|
3111
|
+
"div",
|
|
3112
|
+
{
|
|
3113
|
+
style: {
|
|
3114
|
+
display: "flex",
|
|
3115
|
+
gap: "16px",
|
|
3116
|
+
flexWrap: "wrap",
|
|
3117
|
+
justifyContent: "center"
|
|
3118
|
+
},
|
|
3119
|
+
children: featuredOrganizations.map((org) => /* @__PURE__ */ jsx(
|
|
3120
|
+
OrganizationCard,
|
|
3121
|
+
{
|
|
3122
|
+
org,
|
|
3123
|
+
theme,
|
|
3124
|
+
onClick: () => handleOrganizationClick(org)
|
|
3125
|
+
},
|
|
3126
|
+
org.login
|
|
3127
|
+
))
|
|
3128
|
+
}
|
|
3129
|
+
)
|
|
3130
|
+
]
|
|
3131
|
+
}
|
|
3132
|
+
),
|
|
3085
3133
|
/* @__PURE__ */ jsxs(
|
|
3086
3134
|
"div",
|
|
3087
3135
|
{
|
|
@@ -3099,11 +3147,11 @@ const WelcomePanel = ({
|
|
|
3099
3147
|
{
|
|
3100
3148
|
style: {
|
|
3101
3149
|
margin: "0 0 32px",
|
|
3102
|
-
fontSize: `${theme.fontSizes[
|
|
3150
|
+
fontSize: `${theme.fontSizes[3]}px`,
|
|
3103
3151
|
fontWeight: theme.fontWeights.bold,
|
|
3104
3152
|
color: theme.colors.text
|
|
3105
3153
|
},
|
|
3106
|
-
children: "Explore
|
|
3154
|
+
children: "Explore your Projects"
|
|
3107
3155
|
}
|
|
3108
3156
|
),
|
|
3109
3157
|
/* @__PURE__ */ jsxs(
|
|
@@ -3258,96 +3306,6 @@ const WelcomePanel = ({
|
|
|
3258
3306
|
}
|
|
3259
3307
|
)
|
|
3260
3308
|
}
|
|
3261
|
-
),
|
|
3262
|
-
featuredOrganizations.length > 0 && /* @__PURE__ */ jsxs(
|
|
3263
|
-
"div",
|
|
3264
|
-
{
|
|
3265
|
-
style: {
|
|
3266
|
-
padding: "0 32px 48px",
|
|
3267
|
-
display: "flex",
|
|
3268
|
-
flexDirection: "column",
|
|
3269
|
-
alignItems: "center",
|
|
3270
|
-
gap: "16px"
|
|
3271
|
-
},
|
|
3272
|
-
children: [
|
|
3273
|
-
/* @__PURE__ */ jsx(
|
|
3274
|
-
"h2",
|
|
3275
|
-
{
|
|
3276
|
-
style: {
|
|
3277
|
-
margin: 0,
|
|
3278
|
-
fontSize: `${theme.fontSizes[3]}px`,
|
|
3279
|
-
fontWeight: theme.fontWeights.semibold,
|
|
3280
|
-
color: theme.colors.textSecondary
|
|
3281
|
-
},
|
|
3282
|
-
children: "Explore Our Projects"
|
|
3283
|
-
}
|
|
3284
|
-
),
|
|
3285
|
-
/* @__PURE__ */ jsx(
|
|
3286
|
-
"div",
|
|
3287
|
-
{
|
|
3288
|
-
style: {
|
|
3289
|
-
display: "flex",
|
|
3290
|
-
gap: "16px",
|
|
3291
|
-
flexWrap: "wrap",
|
|
3292
|
-
justifyContent: "center"
|
|
3293
|
-
},
|
|
3294
|
-
children: featuredOrganizations.map((org) => /* @__PURE__ */ jsx(
|
|
3295
|
-
OrganizationCard,
|
|
3296
|
-
{
|
|
3297
|
-
org,
|
|
3298
|
-
theme,
|
|
3299
|
-
onClick: () => handleOrganizationClick(org)
|
|
3300
|
-
},
|
|
3301
|
-
org.login
|
|
3302
|
-
))
|
|
3303
|
-
}
|
|
3304
|
-
)
|
|
3305
|
-
]
|
|
3306
|
-
}
|
|
3307
|
-
),
|
|
3308
|
-
highlightedProjects.length > 0 && /* @__PURE__ */ jsx(
|
|
3309
|
-
"div",
|
|
3310
|
-
{
|
|
3311
|
-
style: {
|
|
3312
|
-
padding: "24px 32px 48px",
|
|
3313
|
-
display: "flex",
|
|
3314
|
-
justifyContent: "center"
|
|
3315
|
-
},
|
|
3316
|
-
children: /* @__PURE__ */ jsxs(
|
|
3317
|
-
"p",
|
|
3318
|
-
{
|
|
3319
|
-
style: {
|
|
3320
|
-
margin: 0,
|
|
3321
|
-
fontSize: `${theme.fontSizes[1]}px`,
|
|
3322
|
-
color: theme.colors.textSecondary
|
|
3323
|
-
},
|
|
3324
|
-
children: [
|
|
3325
|
-
"Check out our forks of popular repos:",
|
|
3326
|
-
" ",
|
|
3327
|
-
highlightedProjects.map((project, index) => /* @__PURE__ */ jsxs(React2.Fragment, { children: [
|
|
3328
|
-
index > 0 && (index === highlightedProjects.length - 1 ? " or " : ", "),
|
|
3329
|
-
/* @__PURE__ */ jsx(
|
|
3330
|
-
"button",
|
|
3331
|
-
{
|
|
3332
|
-
onClick: () => handleProjectClick(project),
|
|
3333
|
-
style: {
|
|
3334
|
-
background: "none",
|
|
3335
|
-
border: "none",
|
|
3336
|
-
color: theme.colors.primary,
|
|
3337
|
-
cursor: "pointer",
|
|
3338
|
-
padding: 0,
|
|
3339
|
-
fontSize: "inherit",
|
|
3340
|
-
fontWeight: theme.fontWeights.medium,
|
|
3341
|
-
textDecoration: "underline"
|
|
3342
|
-
},
|
|
3343
|
-
children: project.label || `${project.owner}/${project.repo}`
|
|
3344
|
-
}
|
|
3345
|
-
)
|
|
3346
|
-
] }, `${project.owner}/${project.repo}`))
|
|
3347
|
-
]
|
|
3348
|
-
}
|
|
3349
|
-
)
|
|
3350
|
-
}
|
|
3351
3309
|
)
|
|
3352
3310
|
]
|
|
3353
3311
|
}
|