Skip to content

Commit

Permalink
Move libs/table and libs/pagination into app/ (#1971)
Browse files Browse the repository at this point in the history
move libs/table and libs/pagination into app/
  • Loading branch information
david-crespo authored Feb 23, 2024
1 parent cb109cb commit 4bfd227
Show file tree
Hide file tree
Showing 34 changed files with 8 additions and 15 deletions.
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
'',
'^@oxide/(.*)$',
'',
'^~/(.*)$',
'^app/(.*)$',
'',
'^[./]',
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import { act, renderHook } from '@testing-library/react'
import { describe, expect, it } from 'vitest'

import { usePagination } from '../use-pagination'
import { usePagination } from './use-pagination'

describe('usePagination', () => {
it('starts with empty state', () => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/layouts/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
import { useRef } from 'react'
import { Outlet } from 'react-router-dom'

import { Pagination } from '@oxide/pagination'
import { SkipLinkTarget } from '@oxide/ui'
import { classed } from '@oxide/util'

import { Pagination } from '~/components/Pagination'
import { PageActionsTarget } from 'app/components/PageActions'
import { useScrollRestoration } from 'app/hooks/use-scroll-restoration'

Expand Down
4 changes: 3 additions & 1 deletion libs/table/QueryTable.tsx → app/table/QueryTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ import {
type Result,
type ResultItem,
} from '@oxide/api'
import { Pagination, usePagination } from '@oxide/pagination'
import { EmptyMessage, TableEmptyBox } from '@oxide/ui'
import { invariant, isOneOf } from '@oxide/util'

import { Pagination } from '~/components/Pagination'
import { usePagination } from '~/hooks/use-pagination'

import { DefaultCell } from './cells'
import { getActionsCol, getMultiSelectCol, getSelectCol, type MakeActions } from './columns'
import { Table } from './Table'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 0 additions & 10 deletions libs/pagination/index.ts

This file was deleted.

4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"noEmit": true,
"outDir": "dist",
"paths": {
"~/*": ["app/*"],
"app/*": ["app/*"],
"@oxide/gen/*": ["libs/api/__generated__/*"],
"@oxide/api": ["libs/api/index.ts"],
"@oxide/api-mocks": ["libs/api-mocks/index.ts"],
"@oxide/ui": ["libs/ui/index.ts"],
"@oxide/util": ["libs/util/index.ts"],
"@oxide/table": ["libs/table/index.ts"],
"@oxide/pagination": ["libs/pagination/index.ts"]
"@oxide/table": ["app/table/index.ts"]
},
"resolveJsonModule": true,
"rootDir": ".",
Expand Down

0 comments on commit 4bfd227

Please sign in to comment.