投稿時間:2022-02-13 01:14:26 RSSフィード2022-02-13 01:00 分まとめ(17件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
js JavaScriptタグが付けられた新着投稿 - Qiita はじめての ArcGIS API for JavaScript https://qiita.com/yoshikawaa/items/106518dd1c89efe41804 複数のLayerを使用する表示するLayerを切り替える都道府県と市区町村のように包含関係にあたる地理データを扱う場合、ズームの拡大率によって表示をする地理情報を切り替えたくなると思います。 2022-02-13 00:29:51
AWS AWSタグが付けられた新着投稿 - Qiita AWS Protonを理解する② テンプレート構成 https://qiita.com/drummers-high/items/97cff39fad5ae78d42de CFnで利用するパラメータを別ファイルに外出し出来るのは、AWSProtonの大きな特徴ですね。 2022-02-13 00:06:35
Docker dockerタグが付けられた新着投稿 - Qiita docker https://qiita.com/ryoooooo/items/d655ef14683b0ea72b8f dockerapachehttpdindexhtmlファイル作成docker実行フォルダviindexhtmlindexhtmllthtmlgtltheadgtltheadgtltbodygtHelloDockerltbodygtlthtmlgtdockerDesktopを起動コンテナの起動※dockerrunコマンドで、pullcreatestartをまとめて実行するdocker実行フォルダdockerrunditnamemyapacheapppvPWDusrlocalapachehtdocshttpddockerrunバックグラウンドで動かすオプションnameコンテナ名p自分のpcポートコンテナのポートvPWDusrlocalapachehtdocsdockerimage名dockerpsCONTAINERIDIMAGECOMMANDCREATEDSTATUSPORTSNAMESffaededfhttpdhttpdforegroundminutesagoUpminutesgttcpmyapacheappdocker実行フォルダのindexhtml表示httplocalhostdockerコンテナの停止docker実行フォルダdockerstopmyapacheappまたはdockerstopffaededfdockerコンテナの確認docker実行フォルダdockerpsaCONTAINERIDIMAGECOMMANDCREATEDSTATUSPORTSNAMESffaededfhttpdhttpdforegroundminutesagoExitedsecondsagomyapacheappdockerコンテナの削除※コンテナを停止後、削除するdocker実行フォルダdockerrmmyapacheappまたはdockerrmffaededfdockerimageの確認dockerimagelsREPOSITORYTAGIMAGEIDCREATEDSIZEhttpdbbbdaysagoMBdockerimageの削除dockerimagermhttpdUntaggedhttpdUntaggedhttpdshaccaadcceddcabdfbfecbaDeletedshabbbbbfdbcabafcdebededDeletedshaddecadbcffdbccacbcaafbdbcbcaDeletedshaedabcdcecafddaebaabfdbDeletedshaeaebcbbeafdfaaddebeeafeddaeeeDeletedshaaeaacdacdeadedbbaDeletedshafbabebfcfbcfcfebfeeccecebfcbfbaefコンテナの独立性vオプションを付けず、マウントしない。 2022-02-13 00:05:11
Git Gitタグが付けられた新着投稿 - Qiita 見やすいPRのためにcommitを整理しよう https://qiita.com/kit_tko/items/3bde0ab83a6ab372bf71 自分が切ったブランチで開発中に誰かのPRがマージされたときチーム開発をしていると自分のPRをみてもらうまえに別のブランチがマージされる事があります。 2022-02-13 00:17:34
海外TECH MakeUseOf How to Turn Off 2-Step Verification on Your Google Account on Android https://www.makeuseof.com/turn-off-2-factor-authentication-google-android/ How to Turn Off Step Verification on Your Google Account on AndroidIf you don t want to use factor authentication on your Google account you can disable it Here s how to do it on Android 2022-02-12 15:30:12
海外TECH MakeUseOf How to Get Python and JavaScript to Communicate Using JSON https://www.makeuseof.com/tag/python-javascript-communicate-json/ python 2022-02-12 15:16:23
海外TECH MakeUseOf Type on Your iPhone or iPad Using Your Mac Keyboard https://www.makeuseof.com/tag/type-iphone-ipad-using-mac-keyboard/ apple 2022-02-12 15:16:23
海外TECH DEV Community Make Reusable and Animated Drop-down with Vue, Tailwind and Laravel https://dev.to/moose_said/make-reusable-and-animated-drop-down-with-vue-tailwind-and-laravel-4fp3 Make Reusable and Animated Drop down with Vue Tailwind and Laravel Hello everyone There is no doubt that reusable components is one of the main keys that makes developers life easier Not only it makes the code elegant and sexy ️ but also it can be used in multiple projects and with just few tweaks and Voilà You have another version of your component effortlessly In this article I m going to help you creating Vue JS drop down component with composition API styled Tailwind CSS and imported in Laravel project Our component is going to be reusable dynamic and animated as well Take a peak on what we will be creating I m sure you can style it better than this I just wanted to show you variety of options Another peak on the code lt Dropdown title Users Dropdown gt lt Dropdowncontent gt foreach users as user lt Dropdownitems item user gt name href users user gt id gt lt Dropdownitems gt endforeach lt Dropdowncontent gt lt Dropdown gt Before we start please raise your hand if you have any questions ‍ ️You keep mentioning reusable what does it mean A reusable component is a component that can be used in various parts of an application For example once we build our drop down today you can use it in you web app as many times as you want without having to duplicates your code ‍ ️Why do you talk too much Sorry lets get to it Table of Content Prerequisites Allow Tailwind to read Vue files Create a general Dropdown vue component Create component parts Slice Dropdown vue Provide Inject Pass the data from Blade to Vue Adding animation and styles Extracting UsersDropdown blade component Prerequisites I m expecting that you have very basic knowledge of Vue composition API Tailwind CSS and Laravel If you don t just come along for the ride and follow each step carefully I will build the reusable component from scratch continuing on using the same REPO that we created in the previous article If you would like to code along without my repo just make sure to install Laravel Tailwind and Vue Js Also create a database with users table or whatever and connect to it as we will be looping over the table Instructions on how to do so is in PART Make sure you re running the command npm run watch all the time Allow Tailwind to read Vue files Head to tailwind config js and within the content array be specific about your Vue files path module exports content resources blade php resources js resources vue resources js components vue resources js vue theme extend plugins Insure npm run watch is running in the terminal Create a general Dropdown vue component Head to resources js components and create new file called Dropdown vue Within this file just build a normal drop down component without looping over any data in database just a toggle with showUsers function and some tailwind Dropdown vue lt template gt lt div v click outside onClickOutside click showUsers gt lt toggler gt lt button class flex max h w full overflow auto py pl pr text sm font semibold lg inline flex lg w gt Users lt button gt lt Content Container gt lt div v show usersToggle class mt w full rounded lg bg blue py gt lt Drop down Items gt lt a href class block text sm my mx gt Random user name lt a gt lt div gt lt div gt lt template gt lt script gt import vClickOutside from click outside vue import ref from vue export default name Dropdown directives clickOutside vClickOutside directive setup const usersToggle ref false const showUsers gt usersToggle value usersToggle value const onClickOutside event gt usersToggle value false return usersToggle showUsers onClickOutside lt script gt Import your component in resources js app js require bootstrap import createApp from vue import Dropdown from components Dropdown import vClickOutside from click outside vue createApp components Dropdown use vClickOutside mount app Just a reminder that the vClickOutside is an npm package we used in the previous tutorial to close the drop down when we click anywhere on the screen With nothing else if you run the command php artisan serve in your Laravel s main directory you will see a functional ugly drop down But don t worry we will make it prettier later Create component parts Now we re going to slice our component as we need parts One for the toggler one for the content container and one for the drop down items But first we must create and import them Head to resources js components and create the other two files Dropdowncontent vue and Dropdownitems vue Just make them contain lt template gt and lt script gt tags and leave them empty for now Import them in resources js app js like we did with the first one resources js app js import createApp from vue import Dropdown from components Dropdown import Dropdowncontent from components Dropdowncontent import Dropdownitems from components Dropdownitems import vClickOutside from click outside vue createApp components Dropdown Dropdowncontent Dropdownitems use vClickOutside mount app Slice Dropdown vue Head to resources js components Dropdown vue and copy the div the contains the link and leave in it s place lt slot gt tag and wrap the botton with lt slot name toggler gt lt slot gt tags Head to resources js components Dropdowncontent vue and paste the div in the template Then copy the link inside the div from Dropdowncontent vue to Dropdownitems vue and leave in it s place lt slot gt tag as well Your components should look like this Dropdown vue lt template gt lt div v click outside onClickOutside click showUsers gt lt toggler gt lt slot name toggler gt lt button class flex max h w full overflow auto py pl pr text sm font semibold lg inline flex lg w gt Users lt button gt lt slot gt lt Content Container gt lt slot gt lt div gt lt template gt Dropdowncontent vue lt template gt lt div v show usersToggle class mt w full rounded xl bg blue py gt lt slot gt lt div gt lt template gt lt script gt export default name Dropdowncontent lt script gt Dropdownitems vue lt template gt lt a href class block text sm my mx gt A user name lt a gt lt template gt lt script gt export default name Dropdownitems lt script gt Head to welcome blade php and let s break it down in the body welcome blade php lt DOCTYPE html gt lt html lang en gt lt head gt lt title gt dropdown lt title gt lt link href asset css app css rel stylesheet gt lt script src asset js app js defer gt lt script gt lt head gt lt body gt lt main class max w xl mx auto mt lg mt space y id app gt lt div class max w xl mx auto mt text center gt lt div class space y lg space y lg space x mt gt lt div class relative lg inline flex items center bg blue rounded xl gt lt Dropdown gt lt Dropdowncontent gt lt Dropdownitems gt lt Dropdownitems gt lt Dropdowncontent gt lt Dropdown gt lt div gt lt div gt lt div gt lt main gt lt body gt lt html gt Now if you check it on browser you will see the same thing but the toggler won t work You might be wondering about how the heck are we going to pass usersToggle value from Dropdown vue to Dropdowncontent vue and really it s pretty simply we re going to use Vue s provide inject Provide Inject Head to Dropdown vue and import provide from vue use it in the setup Dropdown vue lt script gt import vClickOutside from click outside vue import provide ref from vue export default name Dropdown directives clickOutside vClickOutside directive setup const usersToggle ref false const showUsers gt usersToggle value usersToggle value const onClickOutside event gt usersToggle value false provide usersToggle usersToggle return usersToggle showUsers onClickOutside lt script gt Head to Dropdowncontent vue and import inject use it and return the value Dropdowncontent vue lt script gt import inject from vue export default name Dropdowncontent setup const usersToggle inject usersToggle return usersToggle lt script gt And just like that our drop down is working again Pass the data from Blade to Vue To make this component more reusable and dynamic let s head to Dropdown vue and instead of hard coding the word Users leave instead title and accept title as a prop in the script Dropdown vue lt template gt lt div v click outside onClickOutside click showUsers gt lt toggler gt lt button class flex max h w full overflow auto py pl pr text sm font semibold lg inline flex lg w gt title lt button gt lt Content Container gt lt slot gt lt div gt lt template gt lt script gt import vClickOutside from click outside vue import provide ref from vue export default name Dropdown props title directives clickOutside vClickOutside directive setup const usersToggle ref false const showUsers gt usersToggle value usersToggle value const onClickOutside event gt usersToggle value false provide usersToggle usersToggle return usersToggle showUsers onClickOutside lt script gt Head to Dropdownitems vue and do the same Remove A user name and leave instead itemName and accept it as a prop Dropdownitems vue lt template gt lt a href class block text sm my mx gt item lt a gt lt template gt lt script gt export default name Dropdownitems props item lt script gt Head to welcome blade php and pass on the values welcome blade php lt Dropdown title Users Dropdown gt lt Dropdowncontent gt lt Dropdownitems item Testing Items href gt lt Dropdowncontent gt lt Dropdown gt Use foreach loop to loop over all users in database and echo out their names lt Dropdown title Users Dropdown gt lt Dropdowncontent gt foreach users as user lt Dropdownitems item user gt name href users user gt id gt lt Dropdownitems gt endforeach lt Dropdowncontent gt lt Dropdown gt And there you go This is a complete dynamic and reusable drop down component You can even add to classes by passing them from blade just like we did with title item name and href Adding animation and styles You can get SVG website and add it to the button in Dropdown vue I added a class conditionally for it to rotate when the usersToggle is true Also i made few changes to Tailwind CSS styles Dropdown vue lt template gt lt div class relative v click outside onClickOutside click showUsers gt lt slot name toggler gt lt button class text white bg gradient to r from purple to blue rounded xl flex max h w full overflow auto py pl pr text sm font semibold lg inline flex lg w gt title lt svg class absolute class usersToggle rotate transform transition duration ease in out rotate transform transition duration ease in out style right px width height viewBox gt lt g fill none fill rule evenodd gt lt path stroke stroke opacity stroke width d M vH Vz gt lt path gt lt path fill d M l z gt lt path gt lt g gt lt svg gt lt button gt lt slot gt lt slot gt lt div gt lt template gt I used Vue s lt transition gt tags combined with tailwind CSS classes to make a smooth effect for the drop down Dropdwoncontent vue lt template gt lt transition duration enter active class transform transition duration ease custom enter class translate y scale y opacity enter to class translate y scale y opacity leave active class transform transition duration ease custom leave class translate y scale y opacity leave to class translate y scale y opacity gt lt div v show usersToggle class absolute left right z mt w full rounded lg bg gradient to r from purple to blue py px text left text sm font semibold text white transition duration py gt lt slot gt lt div gt lt transition gt lt template gt Dropdownitems vue lt template gt lt a href class px py my rounded lg block hover bg gradient to bl focus bg gradient to bl focus ring focus ring blue dark focus ring blue gt lt slot gt item lt slot gt lt a gt lt template gt Extracting UsersDropdown blade component This is not necessary as the code still looks great but we can extract a blade component for it and Create new folder named components in resources views and create inside it a new file named users dropdown blade php Cut your drop down code and paste it inside leave in it s place lt x users dropdown gt That will leave us with only this code in our welcome blade php lt Only this gt lt x users dropdown gt Congratulations Now you have a Vue animated dynamic reusable and colorful drop down component inside a blade component with a very elegant code and cool Tailwind styles That s it for this tutorial and I hope you enjoyed reading it as I made huge effort due to the article being deleted and I had to rewrite it again If you liked it please leave a reaction and if you have any questions leave it below or send me a DM on TWITTER directly Have a great day and happy coding 2022-02-12 15:23:43
Apple AppleInsider - Frontpage News How to download an old macOS installer https://appleinsider.com/articles/21/12/03/how-to-download-an-old-macos-installer?utm_medium=rss How to download an old macOS installerThat old collection of macOS installer disk images you used to keep is probably worthless now and Apple makes it harder to find downloadable copies of anything before macOS Monterey Yet there are still good reasons to get old OSes and here s how to do it It doesn t seem that long since we were looking forward to the release of macOS Big Sur Apple really wants you to use macOS Monterey And if that means you having to buy a new Mac they ll find a way to cope with their angst Partly for this and partly out of wanting to make it obvious to newcomers which is the current version of macOS the company has long since hidden previous versions Read more 2022-02-12 15:29:00
海外TECH Engadget Zoom releases fix for Mac bug that keeps mics active after calls https://www.engadget.com/zoom-fix-mac-bug-mics-active-after-calls-150651464.html?src=rss Zoom releases fix for Mac bug that keeps mics active after callsZoom has rolled out an update for its Mac app to fix a bug that could potentially cause privacy issues for users As noticed by toMac a company representative has responded to a post on the Zoom community forums made by a user who noticed that their mic indicator was on even when they were not in a meeting ーthey simply had their Zoom client open at the time Upon accessing Control Center they discovered that Zoom was accessing their microphone nbsp The original poster wasn t the only one who aired their complaint on the forum and a lot of commenters said they had noticed the same thing In the company s response the representative said Zoom for Mac version solves an issue wherein quot the orange indicator light could continue to appear after having left a meeting call or webinar quot The rep is advising users to update their app to patch the bug and to switch on automatic updates to get future releases as soon as they re out nbsp Zoom has had some serious privacy issues in the past including telling users that their meetings were protected with end to end encryption since In reality it only started rolling out the feature in and the company had to settle with the FTC over its privacy practices In it also agreed to pay million to settle a lawsuit accusing the video chat giant of violating privacy and allowing trolls to drop into people s chats in a practice called quot zoombombing quot 2022-02-12 15:06:51
海外TECH Engadget All the ways to watch Super Bowl 2022 https://www.engadget.com/how-to-watch-super-bowl-2022-150039732.html?src=rss All the ways to watch Super Bowl Super Bowl will occur this Sunday between the Cincinnati Bengals and the Los Angeles Rams NFL s biggest event of the year is a television phenomenon that goes beyond just sports be it million dollar commercials the half time concert or just an excuse to chow down on chicken wings It used to be that the only way to watch was to either have a cable or satellite subscription or venture out to your local sports bar Fortunately you now have a plethora of viewing options including ways to stream Where and when Super Bowl will take place at SoFi Stadium in Inglewood California on February th The kick off time is set for pm ET pm PT It ll be televised on NBC as well as Telemundo in Spanish How to watch with cable or satellite TVObviously if you subscribe to either cable or satellite you ll have no problem watching the Super Bowl this Sunday on your TV This is good news if you d rather not bother with signing up for a service online or if you have a spotty internet connection How to stream the Super BowlCord cutters have plenty of ways to watch the big game this Sunday One of them is through a live TV streaming service as long as it carries NBC Thankfully a lot of them do YouTube TV month Hulu with Live TV month DirecTV Stream plus month Sling TV plus month and Fubo TV plus month all include NBC If you don t currently subscribe to any of these services and want to watch the game for free you can sign up to one for a seven day free trial period just to watch the game and then cancel afterward The exception is DirecTV Stream which doesn t offer free trials Alternatively you can also watch the game through Peacock s Premium month or Premium Plus tier month You can also catch it on the NBC Sports app and NBCSports com but only if you re already a subscriber through other means The aforementioned services and apps are available through your phone or streaming devices such as Roku Fire TV Apple TV or Google TV If you don t have pay TV or a streaming serviceWhat if you don t want to sign up for pay TV or a streaming service Your options are unfortunately quite limited You can either watch the game through the NFL Mobile app or the Yahoo Sports app Of course you could also use an indoor antenna with your TV to simply watch the free over the air broadcast International viewers can use NFL s international game pass streaming service which has a seven day free trial If you d rather not go through that however check out this guide from the NFL to see if your country has a local Super Bowl broadcast partner What about K In Fox made history by broadcasting the Super Bowl in K and HDR for the first time it was still shot in p and HDR but was upscaled to K in the broadcast However that is not an option this year A spokesperson for NBC said that “The game will not be in K It did not give an official reason why 2022-02-12 15:00:39
ニュース BBC News - Home Ukraine crisis: 'We don't have the option to leave' https://www.bbc.co.uk/news/uk-60361911?at_medium=RSS&at_campaign=KARANGA invasion 2022-02-12 15:40:12
ニュース BBC News - Home Ambassador Bridge: Police begin clearing Canada trucker blockade https://www.bbc.co.uk/news/world-us-canada-60361533?at_medium=RSS&at_campaign=KARANGA bridge 2022-02-12 15:44:50
ニュース BBC News - Home Decision on Valieva doping case due on Monday https://www.bbc.co.uk/sport/winter-olympics/60360077?at_medium=RSS&at_campaign=KARANGA kamila 2022-02-12 15:12:57
北海道 北海道新聞 米ロ首脳が12日に電話会談 ウクライナ情勢の緊張緩和が焦点 https://www.hokkaido-np.co.jp/article/645045/ 電話会談 2022-02-13 00:13:48
北海道 北海道新聞 小松原組、フリー進めず フィギュア・12日 https://www.hokkaido-np.co.jp/article/645080/ 小松原 2022-02-13 00:12:00
北海道 北海道新聞 ロコ3連勝 カーリング女子1次リーグ https://www.hokkaido-np.co.jp/article/645079/ 連続 2022-02-13 00:04:49

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

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

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