Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/v4/registry/directory.json
Original file line number Diff line number Diff line change
Expand Up @@ -1557,8 +1557,8 @@
},
{
"name": "@soralabs",
"homepage": "https://ui.soralabs.io.vn",
"url": "https://ui.soralabs.io.vn/r/{name}.json",
"homepage": "https://ui.soralabs.studio",
"url": "https://ui.soralabs.studio/r/{name}.json",
"description": "Motion-first React primitives and animated UI components for shadcn/ui. Copy, customize, and ship fluid interfaces.",
"logo": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='currentColor'><g transform='translate(100 100) scale(0.8292) translate(-100 -100)'><path d='M 150.245 -0.676 L 150.658 49.581 L 49.237 49.477 L 49.714 -0.758 L 150.245 -0.676 Z M 49.342 150.419 L 49.237 49.477 L -1.04 49.794 L -1.304 150.337 L 49.342 150.419 Z M 150.763 150.523 L 150.658 49.581 L 201.304 49.663 L 201.04 150.206 L 150.763 150.523 Z M 150.763 150.523 L 49.342 150.419 L 49.755 200.676 L 150.286 200.758 L 150.763 150.523 Z'/></g></svg>"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/shadcn/src/registry/github-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const coordinators = new WeakMap<object, Map<string, GitHubSourceAuthState>>()
// A command can make several top-level registry calls (preflight, catalog,
// tree resolution), each with its own sourceCache. The notice dedupes
// process-wide per credential mode so it prints once, not once per phase.
const notifiedSources = new Set<string>()
const notifiedModes = new Set<GitHubAuthMode>()

export function resetGitHubAuthNotices() {
notifiedSources.clear()
notifiedModes.clear()
}

export function getGitHubAuthState(anchor: object, source: GitHubSource) {
Expand Down Expand Up @@ -68,7 +68,7 @@ export function selectGitHubAuthMode(
async function decideAndNotify() {
const mode: GitHubAuthMode = getEnvGitHubToken() ? "token" : "gh"

if (notifiedSources.has(mode)) {
if (notifiedModes.has(mode)) {
return mode
}

Expand All @@ -82,7 +82,7 @@ async function decideAndNotify() {
// surrounding spinner output.
logAboveSpinner(`${green("✔")} ${gray(notice)}`)
}
notifiedSources.add(mode)
notifiedModes.add(mode)

return mode
}
Expand Down
8 changes: 8 additions & 0 deletions packages/shadcn/src/utils/spinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ export function spinner(
})
activeSpinners.add(instance)

// Every ora terminal method (succeed, fail, info, warn, stopAndPersist)
// funnels through stop, so wrapping it unregisters finished instances.
const stop = instance.stop.bind(instance)
instance.stop = () => {
activeSpinners.delete(instance)
return stop()
}

return instance
}

Expand Down
Loading