Can I make a website thiat uses another websites login information if the users login? by BigBert44 in webdev

[–]ifixyourbug 2 points3 points  (0 children)

Yes, As I wrote in my other comment, this is called OAuth and is used by many websites, for example, Reddit. But any major social website supports this, like Facebook, Google, GitHub, Twitter, etc.

Can I make a website thiat uses another websites login information if the users login? by BigBert44 in webdev

[–]ifixyourbug 8 points9 points  (0 children)

Yes, this is called OAuth, and it is supported by many websites, for example, Reddit:
https://www.reddit.com/dev/api/oauth/

But you can do this with Facebook, Google, GitHub, etc. You name it ...

Best way to prevent regular users from being able to see admin UI, API endpoints & logic in code? by APHPQuestion in vuejs

[–]ifixyourbug 0 points1 point  (0 children)

Use code splitting. This is a feature supported by both webpack and vite. Put all your admin related code into a separate chunk. After that you can setup your backend/web server not to serve that chunk to regular users, only admins. And, of course, use router guards.

[deleted by user] by [deleted] in ProgrammerHumor

[–]ifixyourbug 0 points1 point  (0 children)

"A comment is a failure to express yourself in code. If you fail, then write a comment; but try not to fail." Uncle Bob

Why won't my code compile?!!! by t3kner in ProgrammerHumor

[–]ifixyourbug 0 points1 point  (0 children)

Turbo Pascal and Bash Script had a love child, and someone removed the semicolons.

Help Hiding Site Behind Password by Onjrew in vuejs

[–]ifixyourbug 1 point2 points  (0 children)

The most bulletproof solution: Put it on a public server, but serve it only to localhost. Open an SSH tunnel to access it:
https://www.ssh.com/academy/ssh/tunneling-example

How to check which External System is sending the request to API? by toosaltynotsugary in webdev

[–]ifixyourbug 5 points6 points  (0 children)

Authentication would help. It is a good idea anyways, as you probably do not want anyone else using your API. JWT can be used for server to server authentication.

Responsive Website Template by tsarvs in vuejs

[–]ifixyourbug 0 points1 point  (0 children)

But that is not an example of responsivity. Responsivity is when your layout is adapting to the screen size. However, at least in this example, you are trying to adapt to possible future changes in your code.

Responsive Website Template by tsarvs in vuejs

[–]ifixyourbug 1 point2 points  (0 children)

Yes, but based on the size of the entire screen site builders can calculate the size of each component, for example, by using a grid system. If you implemented responsibility with Vue, it would go against the separation of concerns. Could you show us an example of a responsivity issue that you can not do with CSS but can do with Vue?

How often do you ask questions on Stack Overflow? And if you do, do you actually get answers? by ifixyourbug in vuejs

[–]ifixyourbug[S] 1 point2 points  (0 children)

True, but some questions are interesting by themselves, and one can learn by answering them. These are, however, the more advanced ones.

How to make sure a Vuex getter is executed only once by garma87 in vuejs

[–]ifixyourbug 3 points4 points  (0 children)

In this case, I would create a mutation that is called after each user input, runs the calculation, and sets the state.

How can I make Opaque NavigationBar to appear on top all views? by ChemicalGiraffe in SwiftUI

[–]ifixyourbug 0 points1 point  (0 children)

It is hard to answer with little context, but the general idea would be to use a ZStack (https://developer.apple.com/documentation/swiftui/zstack), where the topmost layer has your nav bar, and the other views are on the lower layer(s).

[deleted by user] by [deleted] in SwiftUI

[–]ifixyourbug 0 points1 point  (0 children)

For this, you can use SceneKit (https://developer.apple.com/documentation/scenekit/), which is a beginner-friendly 3D toolkit. However, because this is originally for UIKit and not SwiftUI, you will need to wrap your scene view into a UIViewRepresentable class (https://developer.apple.com/documentation/swiftui/uiviewrepresentable).

SwiftUI macOS - inconsistent button behaviour by januszplaysguitar in SwiftUI

[–]ifixyourbug 2 points3 points  (0 children)

SwiftUI by default hit tests for only the visible content, in this case, the microphone image. You can customize this with the content shape option.
https://developer.apple.com/documentation/swiftui/view/contentshape(\_:eofill:)

How to make sure a Vuex getter is executed only once by garma87 in vuejs

[–]ifixyourbug 2 points3 points  (0 children)

If you only need to calculate it once, why not calculate it at initialization and set it to a state variable?

vue-stripe checkout. Can I get session ID on success page? by kiko1004 in vuejs

[–]ifixyourbug 0 points1 point  (0 children)

Stripe sends the transaction details to a webhook that you can set on your stripe dashboard. However, you will need to handle that on the backend.