Pages Notes

[plugin:vite-plugin-vue-inspector] Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).

https://media.404founders.com/martinfeineis/profile.json

Certainly! The part of the code `= () => {}` is an arrow function expression in JavaScript. It's a concise way to write function expressions in JavaScript and is particularly useful for inline functions and callbacks. Here's a breakdown of the syntax:
  • =: This is the assignment operator, which is used to assign the function expression to a variable.
  • (): These parentheses are used to define the parameters of the function. Since there are no parameters in this case, the parentheses are empty.
  • =>: This is the arrow token that defines the function as an arrow function.
  • {}: These curly braces contain the body of the function. Since there's nothing inside the braces in this example, the function doesn't perform any actions or return any values.

So, = () => {} means you are assigning an arrow function that takes no parameters and has an empty body to a variable. If this function were to be used, you would likely add parameters within the parentheses and code within the curly braces to perform the desired actions.

Arrow functions have a few differences from traditional function expressions:

  • They do not have their own this context, instead, they inherit this from the parent scope at the time they are defined.
  • They cannot be used as constructors and will throw an error if used with the new keyword.
  • They do not have a prototype property.
  • They cannot use the yield keyword within their body, hence they cannot be used as generator functions.

Would you like to see an example of how an arrow function is used in a more complete code context?

https://dev.to/taikio/implementing-openid-connect-oidc-authentication-with-nuxt-3-2fa4

https://blogs.sap.com/2021/08/23/keyclock-as-an-openid-connect-oidc-provider./ curl http://optiplex:8080/realms/castlePenguin/.well-known/openid-configuration | jq Adapter Settings from keycloak

{
  "realm": "castlePenguin",
  "auth-server-url": "http://optiplex:8080/",
  "ssl-required": "external",
  "resource": "optiplex-nuxt",
  "credentials": {
    "secret": "PMtNy69PWWLfkpiuQ15OWmgG4kiac2c4"
  },
  "confidential-port": 0
}

https://blog.devgenius.io/security-in-vuejs-3-0-with-authentication-and-authorization-by-keycloak-part-1-ae884889fa0d https://github.com/LearnVueCo/tutorial-code/blob/main/apps/nuxt/components/SiteHeader.vue https://blogs.sap.com/2021/08/23/keyclock-as-an-openid-connect-oidc-provider./ http://optiplex:8080/realms/castlePenguin/.well-known/openid-configurationdd http://optiplex:8080/realms/master/protocol/openid-connect/auth?client_id=security-admin-console&redirect_uri=http%3A%2F%2Foptiplex%3A8080%2Fadmin%2Fmaster%2Fconsole%2F%23%2FcastlePenguin%2Frealm-settings&state=0f160765-bfa2-4de6-874c-b8f43e40ec17&response_mode=fragment&response_type=code&scope=openid&nonce=7c078d2c-6209-4f52-881f-3e4e7eca383f&code_challenge=ZjfaRyvyQvzsiZkTflIJf9QBWL0BYGo_7xSe3plq1d4&code_challenge_method=S256 http://optiplex:3000/ https://www.npmjs.com/package/oidc-provider https://stackoverflow.com/questions/51922428/including-npm-packages-in-vue-js-app#51922969 https://stackoverflow.com/questions/9023672/how-do-i-resolve-cannot-find-module-error-using-node-js