Refactor: create src/lib to reflect actual sharing of that code

This commit is contained in:
Paul Frazee 2022-11-22 12:02:31 -06:00
parent e858bb52de
commit c2a39d7c1f
21 changed files with 33 additions and 21 deletions

View file

@ -10,7 +10,7 @@ import * as Post from '../../third-party/api/src/client/types/app/bsky/feed/post
import {AtUri} from '../../third-party/uri'
import {APP_BSKY_GRAPH} from '../../third-party/api'
import {RootStoreModel} from '../models/root-store'
import {extractEntities} from '../../view/lib/strings'
import {extractEntities} from '../../lib/strings'
export function doPolyfill() {
AtpApi.xrpc.fetch = fetchHandler

View file

@ -4,7 +4,7 @@ import * as GetAuthorFeed from '../../third-party/api/src/client/types/app/bsky/
import {AtUri} from '../../third-party/uri'
import {RootStoreModel} from './root-store'
import * as apilib from '../lib/api'
import {cleanError} from '../../view/lib/strings'
import {cleanError} from '../../lib/strings'
export class FeedItemMyStateModel {
repost?: string

View file

@ -4,7 +4,7 @@ import {RootStoreModel} from './root-store'
import {Declaration} from './_common'
import {hasProp} from '../lib/type-guards'
import {APP_BSKY_GRAPH} from '../../third-party/api'
import {cleanError} from '../../view/lib/strings'
import {cleanError} from '../../lib/strings'
const UNGROUPABLE_REASONS = ['trend', 'assertion']

View file

@ -2,7 +2,7 @@ import {makeAutoObservable} from 'mobx'
import * as Post from '../../third-party/api/src/client/types/app/bsky/feed/post'
import {AtUri} from '../../third-party/uri'
import {RootStoreModel} from './root-store'
import {cleanError} from '../../view/lib/strings'
import {cleanError} from '../../lib/strings'
export type PostEntities = Post.Record['entities']
export type PostReply = Post.Record['reply']