This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
createJsonQuery, | |
createQuery, | |
unknownContract, | |
} from '@farfetched/core'; | |
import { allSettled, fork } from 'effector'; | |
import { http, HttpResponse } from 'msw'; | |
import { setupServer } from 'msw/node'; | |
import { describe, expect, it } from 'vitest'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nx from '@nx/eslint-plugin'; | |
import { FlatCompat } from '@eslint/eslintrc'; | |
import js from '@eslint/js'; | |
import * as tseslint from 'typescript-eslint'; | |
import * as reactHooks from 'eslint-plugin-react-hooks'; | |
import path from 'path'; | |
const __dirname = path.resolve(); | |
// Setup compatibility layer for legacy eslint plugins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// shared/lib/farfetched/to-effect.ts | |
import { Mutation, Query } from '@farfetched/core'; | |
import { attach, createStore, sample } from 'effector'; | |
import { nanoid } from 'nanoid'; | |
import { DeferredPromise, makeDeferredPromise } from '../../promise'; | |
const paramsKeySymbol = Symbol.for('operationEffectKey'); | |
const setParamsId = (params: Record<string, unknown>) => { | |
const id = nanoid(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// shared/lib/notifications/core.ts ////////////////////////////////////////////// | |
import { | |
NotificationData, | |
NotificationsStore, | |
cleanNotifications, | |
cleanNotificationsQueue, | |
hideNotification, | |
showNotification, | |
updateNotification, | |
updateNotificationsState, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
DefaultError, | |
QueryClient, | |
QueryKey, | |
QueryObserver, | |
QueryObserverResult, | |
UseBaseQueryOptions, | |
UseQueryOptions, | |
notifyManager, | |
} from '@tanstack/react-query'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/next-redux-wrapper/.DS_Store b/node_modules/next-redux-wrapper/.DS_Store | |
new file mode 100644 | |
index 0000000..5008ddf | |
Binary files /dev/null and b/node_modules/next-redux-wrapper/.DS_Store differ | |
diff --git a/node_modules/next-redux-wrapper/es6/index.d.ts b/node_modules/next-redux-wrapper/es6/index.d.ts | |
index 66c1548..181cf6d 100644 | |
--- a/node_modules/next-redux-wrapper/es6/index.d.ts | |
+++ b/node_modules/next-redux-wrapper/es6/index.d.ts | |
@@ -1,6 +1,6 @@ | |
/// <reference types="node" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// shared/lib/notification/core.ts | |
import { | |
cleanNotifications, | |
cleanNotificationsQueue, | |
hideNotification, | |
showNotification, | |
updateNotification, | |
updateNotificationsState, | |
NotificationsStore, | |
NotificationData, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
ComponentType, | |
ForwardRefExoticComponent, | |
PropsWithoutRef, | |
RefAttributes, | |
createContext, | |
forwardRef, | |
useContext | |
} from 'react'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
SERIALIZED_INTERNAL_PROPERTIES_KEY, | |
type SerializedEntity, | |
} from '@mswjs/data/lib/db/Database'; | |
import { | |
DATABASE_INSTANCE, | |
ENTITY_TYPE, | |
PRIMARY_KEY, | |
type Entity, | |
type FactoryAPI, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// shared/api/contracts.ts | |
export type CompanyDetailed = { | |
id: string; | |
name: string; | |
type: 'outcome' | 'income'; | |
notes: string; | |
isLiked: boolean; | |
}; | |
// shared/api/api-company/thunks.ts |
NewerOlder