Better HN
topnewbestaskshowjobs
Log inSign up

iendeavor

47 karma · joined Jul 11, 2020 (6y ago) · 26 submissions

Coder
Submissions

1.

Show HN: TypeScript exhaustiveness checking in Angular control flow(github.com ↗)

1 points · by iendeavor · 2y ago · discuss

2.

Show HN: Load env var at runtime, support JSON validation and HTML interpolation(github.com ↗)

3 points · by iendeavor · 2y ago · discuss

3.

gRPC Devtools v1.7.1 – sticky scroll JSON viewer for better developer experience [video](youtube.com ↗)

2 points · by iendeavor · 2y ago · discuss

4.

Pinia-plugin-persistedstate-2: Full-featured plugin to persist your Pinia state(github.com ↗)

3 points · by iendeavor · 4y ago · discuss

5.

Show HN: Yup-schema-faker: fake data generator for yup(github.com ↗)

1 points · by iendeavor · 5y ago · discuss

6.

Show HN: Vuex-light – state management library for Vue 3(github.com ↗)

4 points · by iendeavor · 5y ago · discuss

comment 6y ago · link · parent

To simulate Chrome devtools' `select an element in the page to inspect it ` feature.

A key feature of this extension is that we can inspect margin during website development.

8.

Show HN: Inspect-Element – A Chrome Extension(github.com ↗)

4 points · by iendeavor · 6y ago · 1 comment

9.

Show HN: Vue-route-props – Automatically bind Vue-router query to VM(github.com ↗)

2 points · by iendeavor · 6y ago · discuss

comment 6y ago · link · parent

Sorry about that I forgot to add `Show HN:` in the title, and post another one again.

Detto (AKA Pokemon ditto) is a library which has following features:

- Not just a deep clone, you could wrap anything in any paticular nested object. - You could watch change.

See usage: https://github.com/iendeavor/detto#usage

Real world example: https://github.com/iendeavor/form-validation.js

11.

Show HN: Detto – Sync two objects data structure by Proxy feature(iendeavor.nctu.me ↗)

3 points · by iendeavor · 6y ago · 1 comment

comment 6y ago · link · parent

Detto has following features:

- Not just a deep clone, you could wrap anything in any paticular nested object. - You could watch change.

See usage: https://github.com/iendeavor/detto#usage

Real world example: https://github.com/iendeavor/form-validation.js

comment 6y ago · link · parent

With detto (AKA [ditto](https://bulbapedia.bulbagarden.net/wiki/Ditto_(Pok%C3%A9mon)...), you can simulate (clone) data structure, store any values into it, and watch it.

14.

Detto: Simulate data structure by Proxy feature(github.com ↗)

1 points · by iendeavor · 6y ago · 2 comments

15.

Show HN: Object-visualizer – Chrome-console-like JSON object visualizer in DOM(github.com ↗)

45 points · by iendeavor · 6y ago · 13 comments

comment 6y ago · link · parent

Sorry about that I'm not familiar with React ecosystem, so it's hard to me to understand the Formik now.

But I've seen that it seems to provide APIs on components to deal with validations.

If we just want to validate with route query (which passed from another page and maybe wrong), or validate fields after change page/count, we always need to fill it into form component and then validate it.

Hope this post help you well .

comment 6y ago · link · parent

Thanks for reply,

> What problem is this resolving

A lot of validation framework doesn't pass `path` (key is not enough in complex situations) to rules to achieve cross-field validation.

> ... these days it is incredibly straightforward.

I've also read HTML5 standard validation APIs, the APIs is not easy to deal with (at least for me). for example, again, do cross-field validation.

> ... polyfill for IE.

Sorry about this, form-validation.js is based on modern javascript feature: Proxy (In order to simulate the data-structure of the form you passed in), There is no possible to provide polyfill for Promise

Hope this helps you well, I'll add some intro to READMD.md when I am free.

comment 6y ago · link · parent

Thanks for reply, I've fix it in the rule.js.

19.

Show HN: Form-validation.js – JavaScript form validation library(github.com ↗)

29 points · by iendeavor · 6y ago · 15 comments