Skip to content

Commit

Permalink
Merge pull request #2 from Netix-AI-RnD/master
Browse files Browse the repository at this point in the history
fix: camera capture on Safari browser
  • Loading branch information
andz-bb authored Aug 2, 2023
2 parents fdabd20 + bf5c79a commit 77bf7d6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Release

# Fix for broken build: https://github.com/softprops/action-gh-release/issues/236
permissions:
contents: write

on:
push:
branches:
Expand Down
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@

Take pictures in Budibase! This component allows you to snap a photo directly into an Attachment field in a Budibase DB data source. It's a form field component and it saves the captured image files directly to the attachment column you configure.

## Known issues

- doesn't currently work in Safari or Firefox. Chromium browsers only supported for now.

## Todos

- add camera selection
- add more options (timer, resolution, format, etc.)
- allow photo deletion from field
- wider browser support
- allow photo deletion from the field
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "camera",
"version": "0.7.0",
"version": "0.7.3",
"description": "Take pictures in Budibase 📸",
"license": "MIT",
"svelte": "index.js",
Expand All @@ -11,6 +11,7 @@
},
"dependencies": {
"@crownframework/svelte-error-boundary": "^1.0.3",
"image-capture": "^0.4.0",
"svelte": "^3.49.0"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/Component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { getContext, onDestroy } from "svelte";
import Captures from "./Captures.svelte";
import Loading from "./Loading.svelte";
import { ImageCapture } from "image-capture";
export let field;
export let label;
Expand Down
1 change: 1 addition & 0 deletions src/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module "image-capture";
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,11 @@ icss-utils@^5.0.0:
resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae"
integrity sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==

image-capture@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/image-capture/-/image-capture-0.4.0.tgz#67b96608d0b58ecb1337ee335e4492733f6c11ee"
integrity sha512-6RWTfqC4ij0AldG+6sQ51XSHTSbwfqMSjVl1GtwNBzbW4UrcfGZeB1Kn749BccvtLb04g5+jSTf1D7q3qHcxpA==

import-cwd@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/import-cwd/-/import-cwd-3.0.0.tgz#20845547718015126ea9b3676b7592fb8bd4cf92"
Expand Down

0 comments on commit 77bf7d6

Please sign in to comment.