madflow

madflow

Member Since 11 years ago

pro.volution GmbH, Cologne, Germany

Experience Points
32
follower
Lessons Completed
18
follow
Lessons Completed
686
stars
Best Reply Awards
76
repos

70 contributions in the last year

Pinned
⚡ Markdown file support for the NetBeans IDE
⚡ Just another another (another) url slug creation plugin for jQuery.
⚡ Hubot script package for quick access to the Tageskarte of the second Metzger on the Venloer Straße
⚡ Read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way
⚡ Cheesecake is a project/directory skeleton generator thingy for PHP. It is inspired by https://github.com/audreyr/cookiecutter.
⚡ Frictionless image uploading for the rest of us
Activity
Dec
2
5 days ago
Activity icon
fork

madflow forked OpenAPITools/openapi-generator

⚡ OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
madflow Apache License 2.0 Updated
fork time in 4 days ago
Dec
1
6 days ago
started
started time in 5 days ago
Nov
28
1 week ago
started
started time in 1 week ago
Nov
14
3 weeks ago
started
started time in 3 weeks ago
Oct
29
1 month ago
Oct
28
1 month ago
Activity icon
created branch

madflow in madflow/imgdmp create branch bump-node-version

createdAt 1 month ago
Activity icon
delete

madflow in madflow/imgdmp delete branch update-deps

deleted time in 1 month ago
Activity icon
delete

madflow in madflow/imgdmp delete branch github-actions

deleted time in 1 month ago
Activity icon
created branch

madflow in madflow/imgdmp create branch github-actions

createdAt 1 month ago
push

madflow push madflow/imgdmp

madflow
madflow

Merge pull request #16 from madflow/update-deps

bump deps

commit sha: 3c361f33039041ddb83bf2f3fb98d617fdb174dc

push time in 1 month ago
Activity icon
created branch

madflow in madflow/imgdmp create branch update-deps

createdAt 1 month ago
Oct
17
1 month ago
started
started time in 1 month ago
Oct
12
1 month ago
Oct
4
2 months ago
Activity icon
issue

madflow issue comment formio/react

madflow
madflow

[BUG] Form does not change language when options change

Environment

Please provide as many details as you can:

  • Hosting type
    • [] Form.io
    • Local deployment
      • Version: Latest
  • Formio.js version: Latest
  • Frontend framework: React
  • Browser: Firefox latest
  • Browser version: latest

Steps to Reproduce

  1. Use React and Formio with i18next.
  2. Configure everything something like this:
  const options = {
    i18n: {
      [i18n.language]: i18n.getResourceBundle(i18n.language, 'translation'),
    },
    language: i18n.language,
    hooks: {},
  };

// https://help.form.io/developers/form-renderer#form-renderer-options
  return (
    <>
      <Form
        src={url}
        onSubmitDone={onSubmitDone}
        formReady={onFormReady}
        options={options}
      />
      {isReady ? null : <LoadingSpinner animation="border" />}
    </>
  );
  1. Change the language

Expected behavior

  • Language changes in the form

Kapture 2021-09-27 at 17 53 35

Observed behavior

  • Language does not change

Kapture 2021-09-27 at 17 56 29

This can be hack-fixed by amending Form.jsx , https://github.com/formio/react/blob/e9d61b0dc7ec45be966fd57b92c41e9b9f8483ab/src/components/Form.jsx#L62

  useEffect(() => {
    const { src } = props;
    if (src) {
      createWebformInstance(src).then(() => {
        if (formio) {
          formio.src = src;
        }
      });
      initializeFormio();
    }
  }, [props.src, props.options]);
Sep
29
2 months ago
Activity icon
issue

madflow issue comment formio/formio.js

madflow
madflow

[BUG] Mounting a form.io form breaks i18next instance and the whole website

Environment

Please provide as many details as you can:

  • Hosting type
    • Form.io
    • Local deployment
      • Version:
  • Formio.js version: 4.13.5
  • Frontend framework: React
  • Browser: Chrome/Firefox
  • Browser version: 93/91

Steps to Reproduce

https://codesandbox.io/s/sharp-chandrasekhar-199or

  1. Open the codesandbox
  2. Translating works on the homepage
  3. Navigate to /form using the link

Expected behavior

I am able to use react-i18next with a backend (in this case http-backend) and plugins of my choice alongside with form.io.

Observed behavior

Upon mounting the form.io form, it replaces the existing i18n instance resulting in React's Suspense system freezing the whole site. I have tried giving the form component an existing i18next instance but it seems that it forces a reinitialization anyway which seems to break the site.

If it is the reinitialization that is causing the problem, would it be possible for form.io not to run reinit on the i18next instance if it's given one during mount? Could i18next.loadResources be used to bring in the form translations?

(react-)i18next setup is straight from the library's documentation.

I can't seem to get this working, any help would be greatly appreciated!

madflow
madflow

@shancial There is an undocumented hack, which I have found in some of the issues here:

  const { t, i18n } = useTranslation();
 <Form options={{i18next: i18n.createInstance()}} 

This should get rid of the suspense loading problem - could introduce other side effects.

Sep
27
2 months ago
Activity icon
issue

madflow issue formio/react

madflow
madflow

[BUG] Form does not change language when options change

Environment

Please provide as many details as you can:

  • Hosting type
    • [] Form.io
    • Local deployment
      • Version: Latest
  • Formio.js version: Latest
  • Frontend framework: React
  • Browser: Firefox latest
  • Browser version: latest

Steps to Reproduce

  1. Use React and Formio with i18next.
  2. Configure everything something like this:
  const options = {
    i18n: {
      [i18n.language]: i18n.getResourceBundle(i18n.language, 'translation'),
    },
    language: i18n.language,
    hooks: {},
  };

// https://help.form.io/developers/form-renderer#form-renderer-options
  return (
    <>
      <Form
        src={url}
        onSubmitDone={onSubmitDone}
        formReady={onFormReady}
        options={options}
      />
      {isReady ? null : <LoadingSpinner animation="border" />}
    </>
  );
  1. Change the language

Expected behavior

  • Language changes in the form

Kapture 2021-09-27 at 17 53 35

Observed behavior

  • Language does not change

Kapture 2021-09-27 at 17 56 29

This can be hack-fixed by amending Form.jsx , https://github.com/formio/react/blob/e9d61b0dc7ec45be966fd57b92c41e9b9f8483ab/src/components/Form.jsx#L62

  useEffect(() => {
    const { src } = props;
    if (src) {
      createWebformInstance(src).then(() => {
        if (formio) {
          formio.src = src;
        }
      });
      initializeFormio();
    }
  }, [props.src, props.options]);
Sep
21
2 months ago
push

madflow push priotas/angular-fa

madflow
madflow

Bump ws from 5.2.2 to 5.2.3

Bumps ws from 5.2.2 to 5.2.3.


updated-dependencies:

  • dependency-name: ws dependency-type: indirect ...

Signed-off-by: dependabot[bot] [email protected]

madflow
madflow

Merge pull request #33 from priotas/dependabot/npm_and_yarn/ws-5.2.3

Bump ws from 5.2.2 to 5.2.3

commit sha: 1b2b9fe2719df6558040b5a3689087a039f12e84

push time in 2 months ago
Previous