GithubHelp home page GithubHelp logo

manuel-rw / grocy-scanner Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 2.0 1.33 MB

Your Grocy companion to scan and add products to your stock with a single click.

License: GNU General Public License v3.0

Dockerfile 0.98% C# 61.97% HTML 31.20% CSS 5.85%
barcode blazor csharp groceries grocy

grocy-scanner's Introduction

Metrics

grocy-scanner's People

Contributors

goodoldjack12 avatar manuel-rw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

grocy-scanner's Issues

Enhancement Request: Mobile Camera Integration and UI Bug on Mobile Devices

First love the app it's so clean and exactly what I've been looking for!

I was wondering if there are any plans to integrate functionality that would allow using the website on an ios phone and being able to use the camera? Also do you plan on adding a mode/button to add straight to a shopping list?

Additionally, I've encountered a minor issue on mobile where clicking the fullscreen or minimize buttons in the bottom right corner results in an "error has occurred" message.

Thank you!




FullScreen trace error in question:

warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
      Unhandled exception rendering component: window.document.documentElement.requestFullscreen is not a function. (In 'window.document.documentElement.requestFullscreen()', 'window.document.documentElement.requestFullscreen' is undefined)
      openFullScreen@http://192.168.1.XX:7575/scanner:86:54
      openFullScreen@[native code]
      @http://192.168.1.XX:7575/_framework/blazor.server.js:1:3511
      Promise@[native code]
      beginInvokeJSFromDotNet@http://192.168.1.XX:7575/_framework/blazor.server.js:1:3491
      @http://192.168.1.XX:7575/_framework/blazor.server.js:1:75071
      asyncFunctionResume@[native code]
      _processIncomingData@http://192.168.1.XX:7575/_framework/blazor.server.js:1:72709
      @http://192.168.1.XX:7575/_framework/blazor.server.js:1:51325
      Microsoft.JSInterop.JSException: window.document.documentElement.requestFullscreen is not a function. (In 'window.document.documentElement.requestFullscreen()', 'window.document.documentElement.requestFullscreen' is undefined)
      openFullScreen@http://192.168.1.XX:7575/scanner:86:54
      openFullScreen@[native code]
      @http://192.168.1.XX:7575/_framework/blazor.server.js:1:3511
      Promise@[native code]
      beginInvokeJSFromDotNet@http://192.168.1.XX:7575/_framework/blazor.server.js:1:3491
      @http://192.168.1.XX:7575/_framework/blazor.server.js:1:75071
      asyncFunctionResume@[native code]
      _processIncomingData@http://192.168.1.XX:7575/_framework/blazor.server.js:1:72709
      @http://192.168.1.XX:7575/_framework/blazor.server.js:1:51325
         at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
         at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
         at GrocyScanner.Service.Shared.Components.FullScreenToggle.OnClickFullScreen() in /src/GrocyScanner.Service/Shared/Components/FullScreenToggle.razor:line 13
         at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
         at MudBlazor.MudBaseButton.OnClickHandler(MouseEventArgs ev)
         at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
         at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
      Unhandled exception in circuit '1fJiEYrVwZOnz9CXHczx-5vOjc1E8TRXi4xPv4j18ps'.
      Microsoft.JSInterop.JSException: window.document.documentElement.requestFullscreen is not a function. (In 'window.document.documentElement.requestFullscreen()', 'window.document.documentElement.requestFullscreen' is undefined)
      openFullScreen@http://192.168.1.XX:7575/scanner:86:54
      openFullScreen@[native code]
      @http://192.168.1.XX:7575/_framework/blazor.server.js:1:3511
      Promise@[native code]
      beginInvokeJSFromDotNet@http://192.168.1.XX:7575/_framework/blazor.server.js:1:3491
      @http://192.168.1.XX:7575/_framework/blazor.server.js:1:75071
      asyncFunctionResume@[native code]
      _processIncomingData@http://192.168.1.XX:7575/_framework/blazor.server.js:1:72709
      @http://192.168.1.XX:7575/_framework/blazor.server.js:1:51325
         at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
         at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
         at GrocyScanner.Service.Shared.Components.FullScreenToggle.OnClickFullScreen() in /src/GrocyScanner.Service/Shared/Components/FullScreenToggle.razor:line 13
         at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
         at MudBlazor.MudBaseButton.OnClickHandler(MouseEventArgs ev)
         at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
         at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

Date Picker gets cut off on displays with short height (landscape display)

I use grocy on a raspberry pi with a touchscreen. Works great, but the touchscreen is basically tablet sized and the date picker gets cut off:

afbeelding

I did some testing and it looks like that this happens when the height of the display is lower than 750.
I'm not familiar with Mudblazor so I haven't been able to find a quick fix. I intend to look into it later, but I'm raising an issue in case you have an easy solution.

Perhaps it would be better to detect a landscape-type display and provide a horizontal version of the entire purchase dialog box. That will avoid issues with scrolling and such, too.

Great app, by the way!

[Feature] Pull products from OpenFoodFacts

Hey. I just noticed your project on Reddit post in r/grocy. I'm sorry if i didn't do proper research but it would be awesome if you could pull products whom barcode was scanned through your app from OpenFoodFacts. It probably is the biggest database of all the products from around the world.

PS: Discussion section would be also nice so i wouldn't need to open issue uselessly to just know from where are the products pulled.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.