投稿時間:2023-04-29 00:33:00 RSSフィード2023-04-29 00:00 分まとめ(34件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
TECH Techable(テッカブル) サイバー攻撃の脅威から企業を守る!被害拡大防止を実現するUTM「SS7000Ⅱ」シリーズ発売 https://techable.jp/archives/204842 中小企業 2023-04-28 14:30:04
python Pythonタグが付けられた新着投稿 - Qiita Atcoder Problems に参加してみた https://qiita.com/Qoo1000000/items/eefbcfb384e709c88deb atcoder 2023-04-28 23:29:50
python Pythonタグが付けられた新着投稿 - Qiita FastAPIにおけるClean Architectureの実装と依存関係の注入について https://qiita.com/rikuto125/items/a9b1fe47f8920106cc02 cleanarchitecture 2023-04-28 23:27:58
python Pythonタグが付けられた新着投稿 - Qiita Dockerコンテナ内でFastAPIアプリケーションの起動エラーの解決 https://qiita.com/rikuto125/items/9cce49ae1c01753a262d docker 2023-04-28 23:10:10
python Pythonタグが付けられた新着投稿 - Qiita 悪の組織(架空)と学ぶ 分類性能評価指標 https://qiita.com/maskot1977/items/709a2c0a5813dc8f621e 悪の組織 2023-04-28 23:03:41
js JavaScriptタグが付けられた新着投稿 - Qiita 【初学者】Typescriptの基礎文法を学んだのでまとめた https://qiita.com/kengo-sk8/items/8e5c77e89c8c133895e1 typescript 2023-04-28 23:01:32
AWS AWSタグが付けられた新着投稿 - Qiita CloudTrailで検知したSSM→EC2のアクセスログを読みやすい形にしてSNSで通知したい https://qiita.com/sannchan/items/1c280abe896c0c421026 cloudtrail 2023-04-28 23:47:50
AWS AWSタグが付けられた新着投稿 - Qiita Route53 https://qiita.com/FujiRyo/items/6317a941cd40d736810c routeroute 2023-04-28 23:42:00
AWS AWSタグが付けられた新着投稿 - Qiita [AWS Q&A 365][SES]AWSのよくある問題の毎日5選 #42 https://qiita.com/shinonome_taku/items/2dc560bbae5d58fa3295 aamazonses 2023-04-28 23:38:22
AWS AWSタグが付けられた新着投稿 - Qiita [AWS Q&A 365][SES]Daily Five Common Questions #42 https://qiita.com/shinonome_taku/items/35850d23237014c67c8b amazon 2023-04-28 23:37:18
Docker dockerタグが付けられた新着投稿 - Qiita Dockerを使用してWireguardサーバーをインストール https://qiita.com/kangyufei/items/709c29a4b5c1f263f079 dnsinternalsubnet 2023-04-28 23:11:01
Docker dockerタグが付けられた新着投稿 - Qiita Dockerコンテナ内でFastAPIアプリケーションの起動エラーの解決 https://qiita.com/rikuto125/items/9cce49ae1c01753a262d docker 2023-04-28 23:10:10
Git Gitタグが付けられた新着投稿 - Qiita 初学者の私がGitを理解するために、この順番で読めばよかったと思った記事の順番 https://qiita.com/muranakar/items/e3e8e8187d32120c7fdf 順番 2023-04-28 23:43:09
技術ブログ Developers.IO [アップデート] Direct Connect Gatewayのクォーターが更新されVGWを20個まで関連付けできるようになりました https://dev.classmethod.jp/articles/20230428-aws-direct-connect-quotas-update/ directconnectgateway 2023-04-28 14:23:53
技術ブログ Developers.IO 具体的経験と抽象的経験 https://dev.classmethod.jp/articles/concrete-and-abstract-experiences/ 取り組み 2023-04-28 14:12:07
海外TECH MakeUseOf How to Enable Dark Mode in Notepad on Windows 10 & 11 https://www.makeuseof.com/windows-notepad-dark-mode/ notepad 2023-04-28 14:15:16
海外TECH DEV Community Build a product gallery app easily with TailwindCSS and StorefrontUI https://dev.to/mayashavin/build-a-product-gallery-app-easily-with-tailwindcss-and-storefrontui-3j75 Build a product gallery app easily with TailwindCSS and StorefrontUIWorking with a component library to build your custom UI can be complicated especially when you want to integrate with other tools such as TailwindCSS In this post we will explore how to build a product gallery with Storefront UI a fast and beautiful component library for E commerce and TailwindCSS in a Nuxt application Table of ContentTable of ContentPrerequisitesStorefront UI as the robust E commerce Component LibraryInstalling Storefront UI with TailwindCSSBuilding a product gallery with grid view modeImplementing ProductCard componentUsing SfLink with NuxtResourcesSummary PrerequisitesIt would be best if you had your Nuxt application set up and ready to go by using the following command npx nuxi init storefrontui demoWhich storefrontui demo is the name of our code demo application You can change to any name per your preference Since Storefront UI is designed with TailwindCSS in mind you need to install the TailwindCSS module for Nuxt with the following command yarn add D nuxtjs tailwindcss storefront ui vueIn nuxt config ts we add the TailwindCSS module as follows export default defineNuxtConfig modules nuxtjs tailwindcss To prepare for our gallery demo we need to add some sample data for our gallery in listing json following the the Product declaration interface types Product type ts since we are working with TypeScript export interface Product title string description string images string quantity number price number ratings number currency code string sku string And with that we are ready for our tutorial Storefront UI as the robust E commerce Component LibraryStarting as a component library in Vue projects Storefront UI aims to deliver to developers a set of fast accessible and customizable components for E commerce exclusively From Storefront UI x to StorefrontUI x there have been significant improvements both in the developer experience DX and in the user experience UI of the library Compared to Storefront UI x Storefront UI x leans towards to more composable or building block approach where you can Use the base components to compose higher level blocks or Use the UI logic hooks or composables to create your custom UI components or andUse the Block examples as the reference for your higher level building blocks At the time of writing Storefront UI is at freshly released from the oven It also supports React Vue and soon Angular How about we start to use StorefrontUI in our application Let s check it out shall we Installing Storefront UI with TailwindCSSWe first install the Storefront UI package for Vue using the following command yarn add D storefront ui vueThen in tailwind config ts we will import the Storefront UI presets for Tailwind to have the SFUI utility classes detected as follows tailwind config tsimport type Config from tailwindcss import tailwindConfig from storefront ui vue tailwind config export default lt Config gt presets tailwindConfig content vue node modules storefront ui vue js mjs And we now can use components of StorefrontUI and start building our product gallery Building a product gallery with grid view modeFor our product gallery components ProductGallery vue we want it to display a list of products in a grid card view with the following base template lt template gt lt h class my text xl font extrabold text gray md text xl text center gt All products lt h gt lt ul class mx my flex flex wrap gap justify center gt lt li v for product in products key product sku gt lt gridView gt lt li gt lt ul gt lt template gt And in the lt script setup gt section we get the products from a composable useProducts as below lt script setup lang ts gt import useProducts from composables useProducts const products useProducts lt script gt Now let s create a composables useProducts ts file which will return a reactive list of products as our sample data import Product from types Product type import data from listing json export const useProducts products Ref lt Product gt gt const products reactive data as any as Product return products Note if you are fetching data from an external API and updating the entire products array s value or reference you should use ref instead of reactive So far so good Next we implement the ProductCard component for our gallery s grid view Implementing ProductCard componentSince ProductCard is a product s concise snapshot in a card view we will need to display the following essential details Product imageProduct s titleProduct ratings and how many votes it hasProduct s price with currency code Also it needs to offer users some actions including adding to the cart and making it a user s favorite So how should we implement it We can start from scratch with some help of the following base components from Storefront UI SfLink for displaying the product s page URL SfButton for the actionsSfIconShoppingCart and SfIconFavorite for the action icons SfRating to display the rating score graphically using stars and beautifully SfCounter to display the number of the voters according to the format lt voters gt like All these components come with the option to override their default template or a specific section of its template using a named slot pattern giving you the full capability to build your ProductCard on top of them Or with a less code approach we can head to Product Card Vertical Storefront UI page where the team has prepared the ready to use example code snippet for us to reuse Let s hit the Code tab and copy the code to your components ProductCard vue We now have the necessary code for our component implemented The snippet comes with hard coded data for product info so we still need to modify it to match our needs In the script section we will modify the code to make sure our component receives item as a prop type of Product manually calculates the totalRatings from item ratings array and map item images to productImage as the image link to the following import SfRating SfCounter SfLink SfButton SfIconShoppingCart SfIconFavorite from storefront ui vue import type Product from types Product type import type PropType from vue const props defineProps item type Object as PropType lt Product gt required true const totalRatings computed gt const rating prop item ratings reduce a b gt a b prop item ratings length return rating toFixed const productImage computed gt props item images And then in the template section we replace the second div element which contains all the static data to the following lt div class p border t border neutral flex id product card details gt lt SfLink href products item sku variant secondary class no underline gt item title lt SfLink gt lt div class flex items center pt gt lt SfRating size xs value totalRatings max gt lt SfLink href variant secondary class pl no underline gt lt SfCounter size xs gt item ratings length lt SfCounter gt lt SfLink gt lt div gt lt span class block pb font bold typography text lg gt item currency code item price lt span gt lt SfButton type button size sm class m w fit self end gt lt template prefix gt lt SfIconShoppingCart size sm gt lt template gt Add to cart lt SfButton gt lt div gt In which we map item title and products item sku as the label and the href of SfLink totalRatings as the value of SfRating item ratings length as the label for SfCounter and display the item s price according to our wished format We also to change the alt for the product image to item title instead of the default text Great product for accessibility as follows lt img src productImage alt item title class block object cover h auto rounded md aspect square height gt Lastly we place the wrapper div to article element for better HTML usage practice Our final template structure will look like below lt article class border border neutral rounded md hover shadow lg max w px h full flex flex col gt lt div class relative gt lt image amp favorite icons gt lt div gt lt div id product card details gt lt product information and add to card gt lt div gt lt article gt That s it We only need to use it in our ProductGallery vue component and our gallery component is complete lt ProductGallery vue gt lt template gt lt h class my text xl font extrabold text gray md text xl text center gt All products lt h gt lt ul class mx my flex flex wrap gap justify center gt lt li v for product in products key product sku gt lt ProductCard item product gt lt li gt lt ul gt lt template gt After we replace the NuxtWelcome will ProductGallery in app vue and run the project using yarn dev we will see our product gallery displayed in the browser as in the following screenshot Using SfLink with NuxtOne important note when using SfLink with Nuxt is that SfLink will render to an anchor element that is out of Nuxt context causing a full page loading reloading every time a user clicks on it Also it will not trigger any watcher on the router or route object using watch Hence to fix it you need to render SfLink as a NuxtLink component following the below steps Resolve the NuxtLink as a Vue component using resolveComponentimport resolveComponent from vue const NuxtLink resolveComponent NuxtLink In SfLink bind NuxtLink to tag prop lt SfLink href products item sku tag NuxtLink gt lt gt lt SfLink gt Now when clicking on the link the app will work as expected ResourcesYou can find the working code here SummaryIn this post we have explored how to use Storefront UI documentation to create a product gallery using Storefront UI TailwindCSS and Nuxt at minimum effort Indeed there is still work to do and we can continuously improve our app and component to work better such as adding a list view for our gallery using ProductCard Horizontal component snippet Building blocks are not a new concept in the component library Still with Storefront UI you can enjoy the benefits of customization and a ready to use essential component system as the base for your project If you have built any components for e Commerce using Storefront UI share them with me in the comment section If you d like to catch up with me sometimes follow me on Twitter Facebook Learn about Vue with my new book Learning Vue The early release is available now Like this post or find it helpful Share it 2023-04-28 14:37:11
海外TECH Engadget Microsoft's Xbox Wireless Headset is $15 off at Amazon https://www.engadget.com/microsofts-xbox-wireless-headset-is-15-off-at-amazon-143444240.html?src=rss Microsoft x s Xbox Wireless Headset is off at AmazonXbox gamers looking for a headset that both supports spatial audio and looks pretty sleek may be interested in checking out the Xbox Wireless Headset Although there are a number of other options on the market this model ties into the aesthetic of the Xbox Series X and previous Xboxes given the green and black color scheme Best of all the Xbox Wireless Headset is on sale right now It has dropped by to at Amazon The headset can connect directly to your Xbox Series X S or Xbox One without the need for a dongle It s compatible with Windows and devices There s the option to connect it to your phone and Xbox simultaneously so you can take a call without interrupting your gaming session Additionally there s Bluetooth and USB C support and you ll get up to hours of use on a single charge Microsoft says There s support for Windows Sonic Dolby Atmos and DTS Headphone X spatial audio protocols though you ll need a license to use Dolby Atmos beyond any free trial that s on offer Spatial audio can for instance help you figure out which direction enemies are approaching from You ll be able to use rotating earcup dials to adjust the volume and chat levels The headset uses dual beamforming microphone elements and voice isolation tech to optimize your in game voice chat There s an auto mute option that kicks in when you aren t talking as well as a manual mute button Moreover the headset has an adjustable headband with what Microsoft describes as a flexible and lightweight design Follow EngadgetDeals on Twitter and subscribe to the Engadget Deals newsletter for the latest tech deals and buying advice This article originally appeared on Engadget at 2023-04-28 14:34:44
海外科学 NYT > Science U.S. Wires Ukraine With Radiation Sensors to Detect Nuclear Blasts https://www.nytimes.com/2023/04/28/science/ukraine-nuclear-radiation-sensors.html attacker 2023-04-28 14:12:34
海外科学 NYT > Science Fruitarian Frogs May Be Doing Flowers a Favor https://www.nytimes.com/2023/04/28/science/frogs-pollination-fruits.html favorresearchers 2023-04-28 14:56:48
海外科学 NYT > Science Scientists Compare Genomes of 240 Mammals to Understand Human DNA https://www.nytimes.com/2023/04/27/science/human-dna-genomes.html decade 2023-04-28 14:25:28
海外科学 NYT > Science A More Climate-Resistant Coffee Rises in Africa https://www.nytimes.com/2023/04/28/climate/coffee-liberica-uganda.html drought 2023-04-28 14:37:47
海外科学 NYT > Science Beatrix Potter Is More Than the Creator of Peter Rabbit https://www.nytimes.com/2023/04/26/arts/design/beatrix-potter-peter-rabbit-science.html Beatrix Potter Is More Than the Creator of Peter RabbitAn exhibition in Nashville of Beatrix Potter s works explores her love of the world of science and the challenges facing women of the Victorian era 2023-04-28 14:23:29
海外TECH WIRED 17 Best Mattresses (2023): Memory Foam, Hybrid, Organic, Latex https://www.wired.com/gallery/best-mattresses/ mattresses 2023-04-28 14:26:23
金融 金融庁ホームページ 基幹インフラ制度に関する相談窓口を設置しました。 https://www.fsa.go.jp/receipt/infrastructure.html 窓口 2023-04-28 15:00:00
金融 金融庁ホームページ 職員を募集しています。(国際関連業務に従事する職員) https://www.fsa.go.jp/common/recruit/r5/soumu-03/soumu-03.html 関連 2023-04-28 15:00:00
金融 金融庁ホームページ トランジション・ファイナンスにかかるフォローアップガイダンス(案)について公表しました。 https://www.fsa.go.jp/news/r4/singi/20230428.html フォローアップ 2023-04-28 14:15:00
ニュース BBC News - Home Stranded Sudanese NHS doctor given seat on evacuation flight https://www.bbc.co.uk/news/uk-65423219?at_medium=RSS&at_campaign=KARANGA holders 2023-04-28 14:50:14
ニュース BBC News - Home Ukraine war: Ex-BBC journalist Bondarenko killed on front line https://www.bbc.co.uk/news/world-europe-65422400?at_medium=RSS&at_campaign=KARANGA invasion 2023-04-28 14:22:10
ニュース BBC News - Home Why would Boris Johnson need an £800,000 loan? https://www.bbc.co.uk/news/uk-politics-64392524?at_medium=RSS&at_campaign=KARANGA boris 2023-04-28 14:40:46
ニュース BBC News - Home Premier League predictions: Chris Sutton v rapper and Man City fan Blanco https://www.bbc.co.uk/sport/football/65402726?at_medium=RSS&at_campaign=KARANGA games 2023-04-28 14:05:27
ビジネス 不景気.com クックパッドの希望退職・解雇に73名が応募、想定1割少ない - 不景気com https://www.fukeiki.com/2023/04/cookpad-cut-73-job.html 希望退職 2023-04-28 14:33:06
サブカルネタ ラーブロ 麺庭つむぎ(大和市) http://ra-blog.net/modules/rssc/single_feed.php?fid=209864 南林間駅 2023-04-28 15:55:00
海外TECH reddit Charles Leclerc takes pole position for the 2023 Azerbaijan Grand Prix https://www.reddit.com/r/formula1/comments/131tplp/charles_leclerc_takes_pole_position_for_the_2023/ Charles Leclerc takes pole position for the Azerbaijan Grand Prix submitted by u overspeeed to r formula link comments 2023-04-28 14:29:15

コメント

このブログの人気の投稿

投稿時間: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件)