Coder Social home page Coder Social logo

Comments (5)

SENTINELITE avatar SENTINELITE commented on July 20, 2024

Hey, @TheSeg! 👋🏼

Hmm. Not getting this on my end, but this looks to be a good find!

The package is listed on the main_pi.html file. It should be on line 16: <script src="https://unpkg.com/json5@^2.0.0/dist/index.min.js"></script>

CleanShot 2022-09-28 at 11 47 46@2x

I happened to miss that there was an updated version of JSON5, can you switch that line to https://www.unpkg.com/browse/[email protected]/ & see if that resolves the issue?

After making the changes make sure to save the script, & restart the Stream Deck Software!

Let me know how that works out!

from streamdeck-shortcuts.

TheSeg avatar TheSeg commented on July 20, 2024

There's a number of problems with that HTML file, but since it's not in the repo, I can't do a PR.

First the triage. The Sentry script line isn't properly closed and missing the closing > after crossorigin. What actually fixed the issue was a less restrictive semantic version definition as ^2.0.0. I used ~2 as that should catch patches while still giving the level of support expected from a third-party. There's weirdness that unpkg has with redirects which may be a contributing factor.

<script 
    src="https://browser.sentry-cdn.com/7.13.0/bundle.min.js"
    integrity="sha384-r+KUPXXgkLQFWmyqriU1/6I8hKYt0wW+3XTsbVK75r6hlPjAg8TNYgEdyCuq+41e"
    crossorigin="anonymous">
</script>
<script
  src="https://unpkg.com/json5@~2/dist/index.min.js"
>
</script>

But the question I have: Why do you need the third party JSON5 library in the first place? As a test I did the standard JSON and things worked fine. I confess I haven't deep-dived with testing, but what's the point of introducing a third party library in the first place?

from streamdeck-shortcuts.

SENTINELITE avatar SENTINELITE commented on July 20, 2024

Hey, @TheSeg!

Thanks for the swift reply.

Some user's with larger libraries were getting issues, parsing the JSON with italics & whatnot. From some research, it seemed that JSON5 handled these seamlessly, & was an easy fix.

I could probably switch back to standard JSON, with better handling of edge cases, but plan on saving that, for the forthcoming rewrite, which will happen when I find some more time! 😅

I had no idea that we could pass in ~2! That's a neat little trick!!!

PR's are very much welcome, as I'm not great with JS/HMTL/CSS! The front end code is located in this repo.

from streamdeck-shortcuts.

TheSeg avatar TheSeg commented on July 20, 2024

Is there a reason these have to be separate repos?

Also, I'm unable to open this project properly in Xcode. There's no *.xcodeproj or similar.

from streamdeck-shortcuts.

SENTINELITE avatar SENTINELITE commented on July 20, 2024

Hey, @TheSeg!

I went ahead & shared the project file. Let me know if you're able to open it up now.

Also, can you check under the Signing area, & tell me what you're seeing under the Team id & Certificate sections? I was hesitant to share this file, as there's account information listed here. Should be scrubbed, but if not, please let me know! 😄

CleanShot 2022-09-29 at 16 06 36@2x

As for including the other repo in the Xcode project, I'll take a look into that this weekend.

Would you like to submit a PR for the JS, or shall I go ahead & push the changes? Would love to give you credit for the assistance.

I truly appreciate getting some outside feedback into the project, as this is all a learning experience for me. Many thanks!

from streamdeck-shortcuts.

Related Issues (20)

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.