azu
azu
- textstat viewer: https://textstat-viewer.netlify.com/ - 2018-12-14のtextstatのjson: https://textstat-viewer.netlify.com/?gist=9968da03403eb7983897aec77e478550
https://github.com/asciidwango/js-primer/issues/554#issuecomment-435597889 この辺が実装できたらこれ閉じるかなー
[chore: fix typo by hasebe · Pull Request #1158 · asciidwango/js-primer](https://github.com/asciidwango/js-primer/pull/1158) この修正はTeXの方に反映しないといけないので、こういうのを今後はだれ/どうやって/いつまで管理するかというIssueです。 https://github.com/asciidwango/js-primer/blob/17957b024e4e8e833314d1a12f0e79115536aa9c/TeX/chap32.tex#L2241
TeXにも反映が必要なMarkdown向けのPRに対して特定のラベル(`Need to Sync Publish1`みたいな?)とかをつけてそれで管理するとかもあり(楽ではある)
とりあえず、反映したほうがいいものは [label:"Type: Need to Publish"](https://github.com/asciidwango/js-primer/issues?q=label%3A%22Type%3A+Need+to+Publish%22+)をつけました
@lacolaco これどうするのがいいかなー 意味は伝わるのでいい案がなければそのままでいい気はするけど
これは一旦このままで。案が思いついたら直す
index.jsは読み込まれてるけど、globalなfetchUserInfoはないみたいな状態なんだな。 sandpackでは動かなくて、codesandboxでは動くみたいなやつか https://codesandbox.io/s/4wbbrn?file=/index.html&from-sandpack=true ```js function fetchUserInfo(userId) { fetch(`https://api.github.com/users/${encodeURIComponent(userId)}`) .then(response => { console.log(response.status); // エラーレスポンスが返されたことを検知する if (!response.ok) { console.error("エラーレスポンス", response); } else { return response.json().then(userInfo => { console.log(userInfo); }); } }).catch(error...
externalResourcesを使うことで、ここに指定したリソースは、`` にinjectされる形になって、 `` で指定したのと大体同じ挙動になりそう。(HTMLに書かれてる ``はentryポイントをずらすことで何もしない形にしてる。このentryはvanillaだと何もしない。parcelとか指定するとindex.htmlをentryにしてbundleするみたいな意味合いになる) https://sandpack.codesandbox.io/docs/getting-started/custom-content#static-external-resources ``` ``` 欠点としては、externalResourcesはHTTPなリソースしか指定できないので、デプロイされるまで、 sandpack上は古いものが見えてしまうとう問題がある感じ。 Codesandbox上は index.htmlとindex.js で普通に動くのでちゃんとしてる… (todoappでcssをworkaroundしてるやつはexternalResourcesを使った方が綺麗なので、移行しておこ)