投稿時間:2022-02-14 05:22:37 RSSフィード2022-02-14 05:00 分まとめ(23件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
Azure Azureタグが付けられた新着投稿 - Qiita Next.js で Azure Storage に Blob をアップロードする https://qiita.com/kurab/items/6d8ae61efc2f64be9043 今回はフラットに保存するので、ユニークなファイル名とするためにuuidを利用した。 2022-02-14 04:25:32
海外TECH Ars Technica Tantalizing first trailer for Jordan Peele’s Nope leaves us eager for more https://arstechnica.com/?p=1833829 fingertips 2022-02-13 19:42:54
海外TECH MakeUseOf 5 Ways to Restore Your Productivity After a Vacation https://www.makeuseof.com/ways-to-restore-productivity-after-vacation/ vacationjust 2022-02-13 19:30:12
海外TECH MakeUseOf How to Fix Windows 10 Freezing Up https://www.makeuseof.com/windows-10-fix-freezes/ enjoyment 2022-02-13 19:16:12
海外TECH MakeUseOf How to Store Your COVID Vaccination Records and Test Results on Your iPhone https://www.makeuseof.com/how-to-store-covd-vaccination-records-test-results-iphone/ wallet 2022-02-13 19:00:34
海外TECH DEV Community Remix: Finishing the tutorial https://dev.to/link2twenty/remix-finishing-the-tutorial-1lhl Remix Finishing the tutorialYesterday I started a new series to follow my journey into learning Remix we got about halfway through the blog tutorial which meant we had routes and could load posts dynamically from the file system Today we re going to work through the rest of the tutorial Making an admin sectionThe tutorial barrels on having us use many things we ve already learnt to create a new route and populate it with data CSS and stylesI was quite surprised that this section very quickly moved on to how to link CSS files to your front end not that isn t something we need but rather I d have thought it would be something introduced much earlier The process is similar to how you would create a CSS file for a single page app You create a styles directory though the name isn t important inside the app directory Within the newly created styles directory you make a CSS file we ll call ours admin css To import our CSS file we use another magic function just like the loader function from last time import adminStyles from styles admin css export const links gt return rel stylesheet href adminStyles As you can see we import our CSS and then return it inside an array from our links function Because I knew the loader function took props I decided to console log out any props that the link function may have been getting Sadly all I got was undefined but no harm in looking As an aside whilst I love CSS I know CSS in JS solutions and SASS LESS are widely used and I prefer them myself The tutorial doesn t go into how to use these things but a quick google showed me it was indeed possible Nesting routes with an outletThe tutorial advices us to Hang with them at the start of this section as we have to unlearn a pattern that was asserted earlier on We have been lead to believe that in the routes folder we can make a file like url tsx and if you go to url our react code will load We have also learnt that we can make a directory called url with a file inside it called index tsx to achieve the same end Both of these statements are true however we were also taught that url tsx would supersede url index tsx but this is not entirely true Whilst it is true that out of the box url tsx would be displayed we can use Outlet imported from remix to display url index tsx or in fact anything inside the url directory as a nested component This can be a little confusing at first but is helpful for navs let s make a silly example our nav file called sites tsx import Outlet Link from remix export default function Site return lt gt lt nav style display flex gap rem justifyContent center gt lt Link to sites dev gt Dev to lt Link gt lt Link to sites twitter gt Twitter lt Link gt lt Link to sites facebook gt Facebook lt Link gt lt nav gt lt Outlet gt lt gt our individual files called sites dev tsx sites twitter tsx and sites facebook tsx export default function Dev return lt h style textAlign center gt I love Dev to lt h gt export default function Twitter return lt h style textAlign center gt I like twitter lt h gt export default function Facebook return lt h style textAlign center gt I tolerate facebook lt h gt As you can see the content of the page changes to match the sub page as does the URL but the nav from site tsx is shown first allowing us to have multiple pages with differing content surrounded by a single wrapper ActionsActions it seems are a way to send data back to the server akin to a post request In fact as we ll soon learn it is just that A post request Form ElementTo start with we need a form element not too dissimilar to PHP development rather than a standard form element though this is one imported from remix we wrap our inputs and submit button with the imported lt Form gt which we can give a method The example method we re given with this tutorial is POST so that s what we ll use When we fill out the form we get an error this is because we haven t got our magic function set up yet Surprisingly at least to me our site doesn t try and post anything when we press submit we just get an error in the console Error Route routes admin new does not have an action but you are trying to submit to it Another magic functionThis is our third and final magic function for this tutorial we ve had loader links and now action Just like the loader function from last time action receives a request object a context something and a params object We can get our form data from the request and then get each string based on the name of the input We can do our error handling inside the action function and if there is an error return an object of errors If the action functions returns successfully you can redirect the user back to the admin section or even to the post they ve just created Error and Loading hooksThe two hooks we re going to use are useActionData for the errors and useTransition for the loading state useActionDataAs you may have guess though there s nothing harm if this is news to you useActionData is not a hook solely for error handling It is however a hook for looking at what is returned from our action function If you recall earlier I said we can return an object of errors In the tutorial the way that works is if any of the form data is blank it will return an object halting the request the object will contain a key for any field that is blank with the value true For instance title true markdown true The above object is what useActionData will return Meaning we can conditionally render warnings based on what the object contains useTransitionThe useTransition function returns an object with keys state submission location type state is a stringsubmission is undefined or is an objectlocation is undefined or is an objecttype is a stringIn the tutorial we use submission which is undefined when nothing is happening to conditionally change the text inside our button to give some feedback to the user The endWell that s the end of the tutorial we ve made a system that can dynamically read markdown in order to populate its navigation and also a way to send data from a form back to the server in order to write new markdown files What would you like to see next I have a couple of options that I think are possible from here I can either take what we have so far and make it look nicer maybe with styled components and maybe even hook it up to a database rather than using the file system Or I can make something completely different but trying to use the patterns we ve learnt so far Either way the next project won t be a tutorial follow along it will be me coding and sharing what I ve learnt along the way I think I ll keep all the code on github too unlike this project that I kept local If you d like to connect with me outside of Dev here are my twitter and linkedin come say hi 2022-02-13 19:22:54
医療系 医療介護 CBnews 22年度改定から医師事務作業補助体制加算を再考する-先が見えない時代の戦略的病院経営(164) https://www.cbnews.jp/news/entry/20220210192310 事務作業 2022-02-14 05:00:00
ニュース BBC News - Home Canada bridge protesters cleared by police after a week of disruption https://www.bbc.co.uk/news/world-us-canada-60368408?at_medium=RSS&at_campaign=KARANGA clear 2022-02-13 19:12:32
ニュース BBC News - Home West Ham snatch late draw at Leicester to boost Champions League hopes https://www.bbc.co.uk/sport/football/60276495?at_medium=RSS&at_campaign=KARANGA victory 2022-02-13 19:08:51
ニュース BBC News - Home Celtic wear down spirited Raith to cruise into last eight of Scottish Cup https://www.bbc.co.uk/sport/football/60276512?at_medium=RSS&at_campaign=KARANGA Celtic wear down spirited Raith to cruise into last eight of Scottish CupManager Ange Postecoglou says Celtic lacked urgency as his side cruise to a win over Raith Rovers and into the Scottish Cup quarter finals 2022-02-13 19:34:12
ビジネス ダイヤモンド・オンライン - 新着記事 優秀なのに仕事で埋もれる人の「書き方」、周りがドン引く残念なクセ - 最強の文章術 https://diamond.jp/articles/-/294141 経営コンサルタント 2022-02-14 04:55:00
ビジネス ダイヤモンド・オンライン - 新着記事 トヨタ「創業家支配」の知られざる真実、世界No.1自動車メーカーを蝕む病巣の正体 - 絶頂トヨタの死角 https://diamond.jp/articles/-/295829 トヨタ「創業家支配」の知られざる真実、世界No自動車メーカーを蝕む病巣の正体絶頂トヨタの死角トヨタ自動車が絶頂期を迎えている。 2022-02-14 04:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 【福岡・大分・佐賀・長崎・熊本】31信金信組「勝ち残り」ランキング!全国8位に食い込んだ福岡の信金は? - 銀行信金信組勝ち残りランキング https://diamond.jp/articles/-/292503 信用組合 2022-02-14 04:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 米国株「2030年代」まで上昇基調!?長期波動が示す株高が期待できる理由 - 政策・マーケットラボ https://diamond.jp/articles/-/296042 2022-02-14 04:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 銀行の自発性を失わせた金融庁の「過剰管理」の罪 - 橋本卓典の銀行革命 https://diamond.jp/articles/-/295677 橋本卓典 2022-02-14 04:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 年収が低い会社ランキング2021【従業員100人未満・トップ5】5位は中高年向け通販を展開する企業 - ニッポンなんでもランキング! https://diamond.jp/articles/-/295986 上場企業 2022-02-14 04:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 年収が低い会社ランキング2021【従業員100人未満・完全版】 - ニッポンなんでもランキング! https://diamond.jp/articles/-/295970 上場企業 2022-02-14 04:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 仕事ができない人は、メールもチャットも一文が長過ぎる - 今週の週刊ダイヤモンド ここが見どころ https://diamond.jp/articles/-/295865 見どころ 2022-02-14 04:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 『電波少年』の土屋Pが断言!報連相からイノベーションは生まれない - 有料記事限定公開 https://diamond.jp/articles/-/295667 土屋敏男 2022-02-14 04:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 東京23区「初の転出超過」が、歴史的変化とは言えない理由 - News&Analysis https://diamond.jp/articles/-/295969 newsampampanalysis 2022-02-14 04:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 カフェオーナーが危惧する「コーヒー2050年問題」の脅威、生産量が半分に? - News&Analysis https://diamond.jp/articles/-/294451 カフェオーナーが危惧する「コーヒー年問題」の脅威、生産量が半分にNewsampampAnalysisコーヒー生産をめぐる状況は、今後ますます悪化していくことが懸念されている。 2022-02-14 04:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 新型レクサスNX、未来が現実に!すべてを刷新したミドルクロスオーバー【試乗記】 - CAR and DRIVER 注目カー・ファイル https://diamond.jp/articles/-/295923 新型レクサスNX、未来が現実にすべてを刷新したミドルクロスオーバー【試乗記】CARandDRIVER注目カー・ファイル次世代レクサスの先駆けとなる新型NXは、ラインアップが充実。 2022-02-14 04:05:00
ビジネス 東洋経済オンライン 誰もが納得、コロナ禍の「電車内迷惑行為1位」は? マナーは「改善された」という声は多いが… | 通勤電車 | 東洋経済オンライン https://toyokeizai.net/articles/-/510289?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2022-02-14 04:30:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)