refactor: org name changed from bitsocialhq to bitsocialnet

This commit is contained in:
plebeius
2026-03-09 17:01:35 +08:00
parent 3b341922c4
commit 417482060d
150 changed files with 209 additions and 209 deletions
+2 -2
View File
@@ -23,12 +23,12 @@ const testState = vi.hoisted(() => ({
subplebbitSnapshot: undefined as unknown,
}));
vi.mock('@bitsocialhq/bitsocial-react-hooks', () => ({
vi.mock('@bitsocialnet/bitsocial-react-hooks', () => ({
useAccount: () => testState.account,
useAccountSubplebbits: () => ({ accountSubplebbits: testState.accountSubplebbits }),
}));
vi.mock('@bitsocialhq/bitsocial-react-hooks/dist/lib/utils', () => ({
vi.mock('@bitsocialnet/bitsocial-react-hooks/dist/lib/utils', () => ({
flattenCommentsPages: () => testState.flattenedReplies,
}));
@@ -18,7 +18,7 @@ const testState = vi.hoisted(() => ({
xhrResponses: new Map<string, { response?: ArrayBuffer; status: number; statusText: string }>(),
}));
vi.mock('@bitsocialhq/bitsocial-react-hooks/dist/lib/localforage-lru/index.js', () => ({
vi.mock('@bitsocialnet/bitsocial-react-hooks/dist/lib/localforage-lru/index.js', () => ({
default: {
createInstance: () => ({
getItem: testState.cacheGetItemMock,
@@ -19,14 +19,14 @@ const testState = vi.hoisted(() => ({
},
}));
vi.mock('@bitsocialhq/bitsocial-react-hooks', () => ({
vi.mock('@bitsocialnet/bitsocial-react-hooks', () => ({
useFeed: (options: Record<string, unknown> | undefined) => {
testState.preloadOptions = options;
return { feed: testState.preloadFeed };
},
}));
vi.mock('@bitsocialhq/bitsocial-react-hooks/dist/stores/feeds', () => ({
vi.mock('@bitsocialnet/bitsocial-react-hooks/dist/stores/feeds', () => ({
default: (selector: (state: { feedsOptions: Record<string, unknown>; loadedFeeds: Record<string, unknown> }) => unknown) =>
selector({
feedsOptions: testState.feedsOptions,
@@ -16,7 +16,7 @@ const testState = vi.hoisted(() => ({
publishCommentMock: vi.fn(),
}));
vi.mock('@bitsocialhq/bitsocial-react-hooks', () => ({
vi.mock('@bitsocialnet/bitsocial-react-hooks', () => ({
usePublishComment: (options: Record<string, any>) => {
testState.lastPublishOptions = options;
return {
@@ -17,7 +17,7 @@ const testState = vi.hoisted(() => ({
publishCommentMock: vi.fn(),
}));
vi.mock('@bitsocialhq/bitsocial-react-hooks', () => ({
vi.mock('@bitsocialnet/bitsocial-react-hooks', () => ({
usePublishComment: (options: Record<string, any>) => {
testState.lastPublishOptions = options;
return {
@@ -19,7 +19,7 @@ const testState = vi.hoisted(() => ({
subplebbitsStates: {} as Record<string, { clientUrls: string[]; subplebbitAddresses: string[] }>,
}));
vi.mock('@bitsocialhq/bitsocial-react-hooks', () => ({
vi.mock('@bitsocialnet/bitsocial-react-hooks', () => ({
useClientsStates: () => ({
states: testState.clientsStates,
}),