Skip to content

Commit

Permalink
Merge pull request #59 from slidr-app/update-deps-0224
Browse files Browse the repository at this point in the history
Update deps 0224
  • Loading branch information
codyzu authored Feb 12, 2024
2 parents eb38f7a + f136f56 commit 217a493
Show file tree
Hide file tree
Showing 56 changed files with 4,941 additions and 5,652 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm run prepush
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,12 @@ pnpm run test:e2e
Snapshots are platform dependent. To update the snapshots with docker (required when developing with mac):

```sh
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.39.0-jammy /bin/bash
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:jammy /bin/bash
# host is now at 192.168.5.2 or host.docker.internal
npm install -g pnpm
apt update
apt install default-jre
# I don't think this is needed with the pnpm.override in the package.json
# remove @vite-pwa/assets-generator from package.json
# or apt install default-jre libvips libvips-dev build-essential
pnpm install
Expand Down
4 changes: 2 additions & 2 deletions functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {getFirestore} from 'firebase-admin/firestore';
import {type PresentationData} from './presentation';

initializeApp();
const db = getFirestore();
const database = getFirestore();

// Start writing functions
// https://firebase.google.com/docs/functions/typescript
Expand Down Expand Up @@ -49,7 +49,7 @@ export const renderForBot = onRequest(async (request, response) => {
0,
);

const presentationSnapshot = await db
const presentationSnapshot = await database
.collection('presentations')
.doc(presentationId)
.get();
Expand Down
4 changes: 2 additions & 2 deletions functions/src/presentation.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type Doc = {
export type Document = {
id: string;
};

Expand Down Expand Up @@ -44,7 +44,7 @@ export type PresentationData = PresentationCreate & {
// TODO: use this in function metadata
thumbIndex?: number;
};
export type PresentationDoc = Doc & {
export type PresentationDocument = Document & {
data: PresentationData;
};

Expand Down
102 changes: 53 additions & 49 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "tsc && vite build",
"lint": "xo",
"preview": "vite preview",
"prepare": "husky install",
"prepare": "husky",
"prepush": "concurrently -n lint,build,test -c bgGreen.bold,bgYellow.bold,bgCyan.bold \"pnpm run lint\" \"pnpm run build:all\" \"pnpm run test:all\"",
"build:functions": "pnpm --dir functions build",
"build:all": "pwa-assets-generator && pnpm run build && pnpm run build:functions",
Expand All @@ -31,68 +31,72 @@
"test:e2e:start": "FIRESTORE_EMULATOR_HOST=\"127.0.0.1:8081\" playwright test"
},
"dependencies": {
"@unocss/reset": "^0.53.3",
"clsx": "^1.2.1",
"firebase": "^10.1.0",
"@unocss/reset": "^0.58.5",
"clsx": "^2.1.0",
"firebase": "^10.8.0",
"pdfjs-dist": "3.6.172",
"react": "^18.2.0",
"react-canvas-confetti": "^1.4.0",
"react-canvas-confetti": "^2.0.5",
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3",
"react-markdown": "^8.0.7",
"react-markdown": "^9.0.1",
"react-pdf": "^7.0.1",
"react-qr-code": "^2.0.11",
"react-router-dom": "^6.14.2",
"react-qr-code": "^2.0.12",
"react-router-dom": "^6.22.0",
"react-swipeable": "^7.0.1",
"remark-gfm": "^3.0.1",
"use-debounce": "^9.0.4"
"remark-gfm": "^4.0.0",
"use-debounce": "^10.0.0"
},
"devDependencies": {
"@iconify-json/fluent-emoji-flat": "^1.1.11",
"@iconify-json/line-md": "^1.1.25",
"@iconify-json/tabler": "^1.1.77",
"@playwright/test": "^1.39.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@iconify-json/fluent-emoji-flat": "^1.1.16",
"@iconify-json/line-md": "^1.1.36",
"@iconify-json/tabler": "^1.1.105",
"@playwright/test": "^1.41.2",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/nanoid-dictionary": "^4.2.3",
"@types/node": "^20.8.9",
"@types/react": "^18.2.16",
"@types/react-dom": "^18.2.7",
"@types/testing-library__jest-dom": "^5.14.9",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@unocss/preset-icons": "^0.53.3",
"@unocss/preset-typography": "^0.53.3",
"@unocss/preset-uno": "^0.53.3",
"@unocss/preset-web-fonts": "^0.53.3",
"@unocss/transformer-directives": "^0.53.3",
"@unocss/transformer-variant-group": "^0.53.3",
"@vite-pwa/assets-generator": "^0.0.3",
"@vitejs/plugin-react": "^4.0.3",
"@vitest/coverage-v8": "^0.33.0",
"@vitest/ui": "^0.33.0",
"concurrently": "^8.2.0",
"eslint": "^8.41.0",
"@types/node": "^20.11.17",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@unocss/preset-icons": "^0.58.5",
"@unocss/preset-typography": "^0.58.5",
"@unocss/preset-uno": "^0.58.5",
"@unocss/preset-web-fonts": "^0.58.5",
"@unocss/transformer-directives": "^0.58.5",
"@unocss/transformer-variant-group": "^0.58.5",
"@vite-pwa/assets-generator": "^0.2.4",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.2.2",
"@vitest/ui": "^1.2.2",
"concurrently": "^8.2.2",
"eslint": "^8.56.0",
"eslint-config-xo-react": "^0.27.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.1",
"firebase-admin": "^11.10.1",
"firebase-tools": "^12.4.5",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"nanoid": "^4.0.2",
"eslint-plugin-react-refresh": "^0.4.5",
"firebase-admin": "^12.0.0",
"firebase-tools": "^13.2.1",
"husky": "^9.0.10",
"jsdom": "^24.0.0",
"nanoid": "^5.0.5",
"nanoid-dictionary": "^4.3.0",
"nyc": "^15.1.0",
"typescript": "^5.0.2",
"unocss": "^0.53.3",
"typescript": "^5.3.3",
"unocss": "^0.58.5",
"v8-to-istanbul": "^9.2.0",
"vite": "^4.4.7",
"vite-plugin-pwa": "^0.16.4",
"vitest": "^0.33.0",
"vite": "^5.1.1",
"vite-plugin-pwa": "^0.18.1",
"vitest": "^1.2.2",
"workbox-window": "^7.0.0",
"xo": "^0.54.2"
"xo": "^0.57.0"
},
"packageManager": "pnpm@8.15.1+sha256.245fe901f8e7fa8782d7f17d32b6a83995e2ae03984cb5b62b8949bfdc27c7b5"
"packageManager": "pnpm@8.15.1+sha256.245fe901f8e7fa8782d7f17d32b6a83995e2ae03984cb5b62b8949bfdc27c7b5",
"pnpm": {
"overrides": {
"sharp": "0.33.2"
}
}
}
Loading

0 comments on commit 217a493

Please sign in to comment.