Skip to content

Commit abd3e9a

Browse files
authored
remove lib and eslint-config and fetch from npm instead (#1214)
* chore: remove lib and eslint-config and fetch from npm instead * chore: remove lib ci * chore: update package.json * chore: update package.json * fix: fix tsconfig
1 parent 57b1170 commit abd3e9a

File tree

346 files changed

+2519
-18908
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

346 files changed

+2519
-18908
lines changed

.github/workflows/cicd-tasks.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
branches:
66
- '*'
77
paths:
8-
- 'lib/**'
98
- 'tasks/**'
109
- 'api-services/**'
1110
- 'pnpm*.yaml'
@@ -17,7 +16,6 @@ on:
1716
- 'v*'
1817
pull_request:
1918
paths:
20-
- 'lib/**'
2119
- 'tasks/**'
2220
- 'api-services/**'
2321
- 'pnpm*.yaml'

.github/workflows/publish.yaml

-95
This file was deleted.

.github/workflows/storybook-lib.yaml

-76
This file was deleted.

.vscode/settings.json

-3
This file was deleted.

Dockerfile.tasks

-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ WORKDIR /web
1111
COPY package.json .
1212
COPY pnpm-lock.yaml .
1313
COPY pnpm-workspace.yaml .
14-
COPY lib/package.json ./lib/
1514
COPY tasks/package.json ./tasks/
1615
COPY api-services/package.json ./api-services/
1716

1817
# install dependencies
1918
RUN CI=1 pnpm install
2019

2120
# build tasks app
22-
COPY lib ./lib/
2321
COPY tasks ./tasks/
2422
COPY api-services ./api-services/
2523
RUN pnpm --filter $WS run build

README.md

-16
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ The official helpwave web frontends.
1010
This repository is split up into multiple subprojects using [pnpm](https://pnpm.io) workspaces.
1111
- helpwave tasks (see [tasks](/tasks))
1212
- landing page of helpwave (see [landing-page](/landing-page))
13-
- library of helpwave (see [lib](/lib))
1413

1514
## Getting Started
1615

@@ -32,19 +31,6 @@ pnpm run dev
3231

3332
After that you should be able to open the project in the browser [`http://localhost:3000`](http://localhost:3000).
3433

35-
## Storybook
36-
37-
The components of our [library](lib) can be looked at in the storybook, where the different
38-
parameters of the component can be set individually.
39-
40-
This allows you to see which components already exist and how to use them.
41-
The current version can be seen here https://components.helpwave.de.
42-
43-
```shell
44-
cd lib
45-
pnpm run storybook
46-
```
47-
4834
## Testing
4935
This project is tested with [BrowserStack](https://www.browserstack.com).
5036

@@ -55,8 +41,6 @@ Our projects use linting with `eslint` to create a uniform code style. The linte
5541
pnpm run --filter "@helpwave/*" lint
5642
```
5743

58-
It's configuration and further explanation can be found in the [eslint-config](eslint-config/README.md).
59-
6044
## Scripts
6145
The list of all our scripts can be found [here](documentation/scripts.md).
6246

api-services/mutations/properties/property_mutations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
2-
import { noop } from '@helpwave/common/util/noop'
2+
import { noop } from '@helpwave/hightide/util/noop'
33
import {
44
CreatePropertyRequest,
55
GetPropertiesRequest,

api-services/mutations/properties/property_value_mutations.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { noop } from '@helpwave/common/util/noop'
1+
import { noop } from '@helpwave/hightide/util/noop'
22
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
33
import {
44
AttachPropertyValueRequest,
@@ -9,7 +9,7 @@ import {
99
import {
1010
Date as ProtoDate
1111
} from '@helpwave/proto-ts/services/property_svc/v1/types_pb'
12-
import { ArrayUtil } from '@helpwave/common/util/array'
12+
import { ArrayUtil } from '@helpwave/hightide/util/array'
1313
import { APIServices } from '../../services'
1414
import { getAuthenticatedGrpcMetadata } from '../../authentication/grpc_metadata'
1515
import { QueryKeys } from '../query_keys'

api-services/mutations/tasks/patient_mutations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
UnassignBedRequest,
1313
UpdatePatientRequest
1414
} from '@helpwave/proto-ts/services/tasks_svc/v1/patient_svc_pb'
15-
import { noop } from '@helpwave/common/util/noop'
15+
import { noop } from '@helpwave/hightide/util/noop'
1616
import { APIServices } from '../../services'
1717
import { getAuthenticatedGrpcMetadata } from '../../authentication/grpc_metadata'
1818
import type {

api-services/mutations/tasks/room_mutations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
GetRoomRequest,
77
UpdateRoomRequest
88
} from '@helpwave/proto-ts/services/tasks_svc/v1/room_svc_pb'
9-
import { noop } from '@helpwave/common/util/noop'
9+
import { noop } from '@helpwave/hightide/util/noop'
1010
import type { RoomDTO, RoomMinimalDTO, RoomOverviewDTO } from '../../types/tasks/room'
1111
import { APIServices } from '../../services'
1212
import { getAuthenticatedGrpcMetadata } from '../../authentication/grpc_metadata'

api-services/mutations/tasks/task_mutations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
2-
import { noop } from '@helpwave/common/util/noop'
2+
import { noop } from '@helpwave/hightide/util/noop'
33
import {
44
AssignTaskRequest,
55
CreateSubtaskRequest,

api-services/mutations/tasks/task_template_mutations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
2-
import { noop } from '@helpwave/common/util/noop'
2+
import { noop } from '@helpwave/hightide/util/noop'
33
import {
44
CreateTaskTemplateRequest,
55
CreateTaskTemplateSubTaskRequest,

api-services/mutations/tasks/ward_mutations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
GetWardRequest,
88
UpdateWardRequest
99
} from '@helpwave/proto-ts/services/tasks_svc/v1/ward_svc_pb'
10-
import { noop } from '@helpwave/common/util/noop'
10+
import { noop } from '@helpwave/hightide/util/noop'
1111
import { APIServices } from '../../services'
1212
import { getAuthenticatedGrpcMetadata } from '../../authentication/grpc_metadata'
1313
import type { WardDetailDTO, WardMinimalDTO, WardOverviewDTO } from '../../types/tasks/wards'

api-services/mutations/users/organization_mutations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
RevokeInvitationRequest,
1919
UpdateOrganizationRequest
2020
} from '@helpwave/proto-ts/services/user_svc/v1/organization_svc_pb'
21-
import { noop } from '@helpwave/common/util/noop'
21+
import { noop } from '@helpwave/hightide/util/noop'
2222
import { QueryKeys } from '../query_keys'
2323
import { APIServices } from '../../services'
2424
import { getAuthenticatedGrpcMetadata, grpcWrapper } from '../../authentication/grpc_metadata'

api-services/offline/properties/property_value_service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
} from '@helpwave/proto-ts/services/property_svc/v1/property_value_svc_pb'
1010
import { Date as ProtoDate } from '@helpwave/proto-ts/services/property_svc/v1/types_pb'
1111
import type { Metadata } from 'grpc-web'
12-
import { ArrayUtil } from '@helpwave/common/util/array'
13-
import { builder } from '@helpwave/common/util/builder'
12+
import { ArrayUtil } from '@helpwave/hightide/util/array'
13+
import { builder } from '@helpwave/hightide/util/builder'
1414
import { OfflineValueStore } from '../value_store'
1515
import { GRPCConverter } from '../../util/util'
1616
import type { AttachedProperty, PropertyValue } from '../../types/properties/attached_property'

api-services/offline/value_store.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { range } from '@helpwave/common/util/array'
1+
import { range } from '@helpwave/hightide/util/array'
22
import type { Property } from '../types/properties/property'
33
import { emptyProperty } from '../types/properties/property'
44
import type { AttachedProperty } from '../types/properties/attached_property'

api-services/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"type": "module",
99
"dependencies": {
10-
"@helpwave/common": "workspace:*",
10+
"@helpwave/hightide": "^0.0.8",
1111
"@helpwave/proto-ts": "0.64.0-89e2023.0",
1212
"@tanstack/react-query": "^4.36.1",
1313
"@tanstack/react-query-devtools": "^4.36.1",
@@ -23,7 +23,7 @@
2323
"zod": "3.24.1"
2424
},
2525
"devDependencies": {
26-
"@helpwave/eslint-config": "workspace:*",
26+
"@helpwave/eslint-config": "0.0.9",
2727
"@types/js-cookie": "3.0.6",
2828
"@types/node": "20.17.10",
2929
"@types/react": "18.3.17",

customer/api/dataclasses/customer_product.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Product, ProductPlan } from '@/api/dataclasses/product'
22
import { ProductHelpers } from '@/api/dataclasses/product'
3-
import type { Translation } from '@helpwave/common/hooks/useTranslation'
3+
import type { Translation } from '@helpwave/hightide/hooks/useTranslation'
44

55
export type CustomerProductStatus =
66
'trialing'

customer/api/dataclasses/invoice.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Translation } from '@helpwave/common/hooks/useTranslation'
1+
import type { Translation } from '@helpwave/hightide/hooks/useTranslation'
22

33
export type InvoiceStatus = 'paid' | 'pending' | 'overdue'
44

customer/api/dataclasses/product.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Translation } from '@helpwave/common/hooks/useTranslation'
1+
import type { Translation } from '@helpwave/hightide/hooks/useTranslation'
22

33
export type ProductPlanType = 'once' | 'recurring' | 'lifetime' | 'trial';
44

customer/api/dataclasses/user_seat.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Translation } from '@helpwave/common/hooks/useTranslation'
1+
import type { Translation } from '@helpwave/hightide/hooks/useTranslation'
22

33
export const userRoles = ['admin' , 'user'] as const
44

customer/components/ContractList.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { Languages } from '@helpwave/common/hooks/useLanguage'
2-
import type { PropsForTranslation } from '@helpwave/common/hooks/useTranslation'
3-
import { useTranslation } from '@helpwave/common/hooks/useTranslation'
1+
import type { Languages } from '@helpwave/hightide/hooks/useLanguage'
2+
import type { PropsForTranslation } from '@helpwave/hightide/hooks/useTranslation'
3+
import { useTranslation } from '@helpwave/hightide/hooks/useTranslation'
44
import { useContractsForProductsQuery } from '@/api/mutations/contract_mutations'
5-
import { LoadingAndErrorComponent } from '@helpwave/common/components/LoadingAndErrorComponent'
5+
import { LoadingAndErrorComponent } from '@helpwave/hightide/components/LoadingAndErrorComponent'
66
import Link from 'next/link'
77
import { ExternalLink } from 'lucide-react'
88

0 commit comments

Comments
 (0)