Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paribaker committed Aug 3, 2023
1 parent 5f50bd5 commit 30a5c6d
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "yarn run start:nc --clear",
"start:nc": "source .env npx expo start",
"start:prod": "source .env npx expo start --no-dev --minify",
"start:android": "source .env npx expo start --android",
"start:ios": "source .env npx expo start --ios",
"start:web": "source .env npx expo start --web",
"start:nc": "source .env && npx expo start",
"start:prod": "source .env && npx expo start --no-dev --minify",
"start:android": "source .env && npx expo start --android",
"start:ios": "source .env && npx expo start --ios",
"start:web": "source .env && npx expo start --web",
"prebuild": "npx expo prebuild",
"run:android": "source .env npx expo run:android --clear",
"run:android": "source .env && npx expo run:android --clear",
"run:android:release": "npx expo run:android --variant release",
"run:ios": "source .env npx expo run:ios --clear",
"run:ios": "source .env && npx expo run:ios --clear",
"run:ios:release": "npx expo run:ios --configuration Release",
"pub:web": "npx expo export:web && cd web-build && vercel --prod && cd ..",
"format": "prettier --check ./src",
Expand All @@ -35,7 +35,7 @@
"@tanstack/react-query": "^4.24.4",
"@thinknimble/tn-forms": "^3.1.3",
"@thinknimble/tn-forms-react": "^1.0.3",
"@thinknimble/tn-models-fp": "2.5.3",
"@thinknimble/tn-models-fp": "^2.13.0",
"axios": "^1.3.2",
"date-fns": "^2.29.3",
"expo": "^48.0.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3272,7 +3272,7 @@

"@thinknimble/tn-models-fp@2.5.3":
version "2.5.3"
resolved "https://registry.yarnpkg.com/@thinknimble/tn-models-fp/-/tn-models-fp-2.5.3.tgz#a95aa0346e3166ef26b2e26210138f6e93c95625"
resolved "https://registry.yarnpkg.com/@thinknimble/tn-models-fp/-/ac-2.5.3.tgz#a95aa0346e3166ef26b2e26210138f6e93c95625"
integrity sha512-KkaJFGck4XGx9XOEqU7V7JPgG/ciZJ7T5EAyA51Ee29JnMBbiXdkusAEuBIsd/tZpg02Hh5CuajFS9Q2we/Rzg==
dependencies:
"@thinknimble/tn-utils" "^2.0.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Only used on development. Add your backend URL to which you want to proxy your requests. Check proxy config in vite.config.js for more information

VITE_DEV_BACKEND_URL="http://localhost:8080"
VITE_DEV_BACKEND_URL="http://localhost:8000"
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% if cookiecutter.use_graphql == 'n' -%}
"@tanstack/react-query": "^4.24.2",
"axios": "^1.2.6",
"@thinknimble/tn-models-fp": "^2.11.4",
"@thinknimble/tn-models-fp": "^2.13.0",
{% else -%}
"@apollo/client": "^3.4.17",
"graphql": "^16.0.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { z } from 'zod'
import {readonly} from '@thinkimble/tn-models-fp'


export const baseModelShape = {
id: readonly(z.string().uuid().optional()),
id: z.string().uuid(),
datetimeCreated: readonly(z.string().datetime().optional()),
lastEdited: readonly(z.string().datetime().optional()),
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ export const userShape = {
email: z.string().email(),
firstName: z.string(),
lastName: z.string(),
token: readonly(z.string().nullable().optional()),
token: readonly(z.string().nullable()),
}
export type UserShape = GetInferredFromRaw<typeof userShape>

export const userCreateShape = {
...userShape,
email: userShape.email,
firstName: userShape.firstName,
lastName:userShape.lastName,
password: z.string(),
}

export const forgotPasswordShape = {
email: z.string().email(),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@thinknimble/tn-forms": "^2.0.9",
"@thinknimble/tn-models": "1.2.1",
"@thinknimble/tn-utils": "1.6.0",
"@thinknimble/tn-models-fp": "^2.12.1",
"@thinknimble/tn-models-fp": "^2.13.0",
"autoprefixer": "^10.0.2",
"axios": "^1.4.0",
"core-js": "^3.6.5",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { z } from 'zod'
import {readonly} from '@thinknimble/tn-models-fp'


export const baseModelShape = {
id: readonly(z.string().uuid().optional()),
id: z.string().uuid(),
datetimeCreated: readonly(z.string().datetime().optional()),
lastEdited: readonly(z.string().datetime().optional()),
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ export const userShape = {
email: z.string().email(),
firstName: z.string(),
lastName: z.string(),
token: readonly(z.string().nullable().optional()),
token: readonly(z.string().nullable()),
}

export const userCreateShape = {
...userShape,
email: userShape.email,
firstName: userShape.firstName,
lastName:userShape.lastName,
password: z.string(),
}

Expand Down

0 comments on commit 30a5c6d

Please sign in to comment.