IT |
ITmedia 総合記事一覧 |
[ITmedia News] ファッションECでクレカ情報9000件漏えいか、個人情報も最大5万件が対象に 三京商会「情報保有はしていない」 |
https://www.itmedia.co.jp/news/articles/2302/20/news133.html
|
itmedia |
2023-02-20 18:30:00 |
TECH |
Techable(テッカブル) |
管理職・リーダーに「自信」は必要か?「確信」で動ける管理職・リーダーになるためには |
https://techable.jp/archives/197540
|
部下 |
2023-02-20 09:30:38 |
TECH |
Techable(テッカブル) |
国内マンガアプリ第1位!「LINEマンガ」アプリが累計ダウンロード数4,000万を突破 |
https://techable.jp/archives/196702
|
首位 |
2023-02-20 09:00:31 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
【FDUA】第一回 金融データ活用チャレンジをやってみている #2 |
https://qiita.com/isanakamishiro2/items/d8125606cc0d625f63d0
|
金融 |
2023-02-20 18:48:40 |
Linux |
Ubuntuタグが付けられた新着投稿 - Qiita |
自宅サーバー構築譚:dhcpサーバ冗長化・Ubuntu 22.04 |
https://qiita.com/katz_engineer/items/dfc77db6d48f0e2d3cd8
|
ubuntu |
2023-02-20 18:12:37 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
CPUアーキテクチャ違いで永遠にECSのタスクを起動できなかった問題 |
https://qiita.com/masaozi3/items/801e07979696051ae93b
|
docker |
2023-02-20 18:49:05 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
serverless Frameworkでフル権限を付与しても権限エラーで怒られた時の対処法 |
https://qiita.com/leafeon00000/items/063832c246ac4e04971c
|
access |
2023-02-20 18:10:09 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
CPUアーキテクチャ違いで永遠にECSのタスクを起動できなかった問題 |
https://qiita.com/masaozi3/items/801e07979696051ae93b
|
docker |
2023-02-20 18:49:05 |
海外TECH |
DEV Community |
7 Tools and Frameworks for Faster Development in React |
https://dev.to/devland/7-tools-and-frameworks-for-faster-development-in-react-5b18
|
Tools and Frameworks for Faster Development in ReactReact is a versatile and flexible development library that can be used to create everything from massive Single Page Applications to compact plug ins However starting a React project from scratch can be a daunting task filled with endless tinkering and configuration So you ll need to have the best tools in your toolkit to turbocharge your React development In this article I ll reveal game changing tools and frameworks that will make your React development faster easier and more efficient than ever before So get ready to say goodbye to the discomfort of tinkering and hello to a more efficient workflow GatsbyContent rich sites like blogs and online stores need to serve large amounts of complex content efficiently An old tool like create react app is not suitable for this kind of website because it delivers everything as a single large bundle of JavaScript that a browser must download before anything displays The most suitable solution to that problem is to use Gatsby a popular React based open source static site generator Gatsby allows developers to build websites that are fast secure and easy to maintain It generates static HTML CSS and JavaScript files that can be served directly from a content delivery network CDN or a web server making it an excellent choice for building websites with high traffic volumes Gatsby has many plugins that can load and transform data efficiently from static local data GraphQL sources and third party content management systems such as WordPress NextJsNext js is a tool for generating React applications and server code The API endpoints and the client pages use default routing conventions making them simpler to build and deploy than they would be if you manage them yourself You can find full details about Next js on the website The next time you are looking to manage server and client code at the same time consider NextJS WebpackThe next on this list is not a framework but a JavaScript open source module bundler Webpack is often used in React applications to bundle the application code and related assets into a single file that can be served to the browser In addition to bundling the application Webpack can also be used to enable hot module replacement HMR in a React project which allows you to see changes to your code in real time without having to refresh the page This can be very useful during development as it can speed up the feedback loop StorybookStorybook is a tool for displaying libraries of components in various states You could describe it as a gallery for components but that s probably selling it short In reality Storybook is a tool for component development It can be associated with React to build a collection of components that can be viewed in isolation and tested independently PreactReact applications can be large It s pretty easy to create a simple React application that is transpired into bundles of JavaScript code that are several hundred kilobytes in size If you want React features but don t want to pay the price of a React size JavaScript bundle consider using Preact Preact is not React It is based on the same API as React and shares many of its features such as components state management and a virtual DOM However it differs from React in a few key ways For example Preact uses a more aggressive approach to optimization relying on techniques like memoization and lazy evaluation to minimize the amount of work that needs to be done to update the DOM nwbnwb short for neutrino web is a toolkit to create complete React applications or single React components It can also create components for use within Preact and InfernoJS projects It provides a simple command line interface for creating and building React applications and comes with built in support for popular tools and frameworks like Webpack Babel and Jest Using nwb you can easily set up a new React project with just a few commands and you can quickly build test and deploy your application without having to manage complex configurations or dependencies yourself RazzleWhen starting to build an application determining the significant architectural decisions may not always be straightforward These decisions can include creating an SPA choosing a deployment platform selecting a framework and making changes later on can be a challenging task Razzle solves all these constraints Razzle is a tool for building Universal applications applications that can execute their JavaScript on the server Or the client Or both Razzle uses a plugin architecture that allows you to change your mind about how you build your application It will even let you change your mind about building your code in React Preact or some other framework entirely like Elm or Vue SummaryThis article provides a valuable resource for React developers who want to improve their development process and create more efficient and performant projects The tools and frameworks mentioned in this article can significantly speed up your React project development process and allow you to focus on creating unique features and improving user experience However as with any article there may be additional insights or perspectives that could enrich the discussion Therefore I encourage you to add comments to the article By sharing your own experiences and insights you can help the community of React developers to learn from each other and to build even better projects So take action and leave a comment on the article sharing your thoughts and feedback on the tools and frameworks discussed THANK YOU FOR READING I hope you found this little article helpful Please share it with your friends and colleagues Sharing is caring Connect with me on Twitter or LinkedIn to read more about JavaScript React Node js and more… Want to work together Contact me on Upwork |
2023-02-20 09:54:17 |
海外TECH |
DEV Community |
Learn how to install SolidJS with Flowbite and Tailwind CSS |
https://dev.to/themesberg/learn-how-to-install-solidjs-with-flowbite-and-tailwind-css-26c2
|
Learn how to install SolidJS with Flowbite and Tailwind CSSSolidJS is a popular and open source declarative JavaScript library that empowers reactive UI interfaces for the web that ensures a performant benchmark leverages the flexibility of JSX and also provides support for TypeScript Astro and Vite The SolidJS library is used by many web developers and smaller companies and it was even spotted being used in OpenAI s ChatGPT interface used for artificial intelligence UI UX interactivity By following the steps from this guide you will learn how to create a new project using SolidJS install and set up Tailwind CSS to leverage the utility classes and finally install and integrate the free and open source UI components from Flowbite RequirementsBefore getting started make sure that you have Node js installed on your local machine to be able to install both SolidJS Tailwind CSS and Flowbite Create a new projectExecute the following command in your terminal to create a new SolidJS project using Vite Templates npx degit solidjs templates js my applicationcd my applicationThis command will create a boilerplate project that sets up a basic project structure and dependency files Install the project dependencies using NPM npm installExecute the following command to create a local development server npm run devThe newly created SolidJS project will now be accessible via the browser on http localhost Create a production build by running the following command in your terminal or deployment pipeline npm run buildYou now have a working SolidJS project configuration installed and can now proceed with installing Tailwind CSS and Flowbite to build web UI interfaces even faster Install Tailwind CSSTailwind CSS is the most popular utility first CSS framework leveraging PostCSS and utility classes inside your templates to speed up UI development Install Tailwind CSS using NPM and executing the following command in your terminal npm install save dev tailwindcss postcss autoprefixerCreate a new tailwind config js and postcss config js configuration files by running the following command npx tailwindcss init pSet up SolidJS s default template paths inside the tailwind config js file to let Tailwind CSS know where to look for the utility classes module exports content src js jsx ts tsx theme extend plugins Import the default Tailwind CSS directives inside the src index css default CSS file from SolidJS tailwind base tailwind components tailwind utilities Restart your local development server by running npm run dev and you can now use the utility first classes inside your SolidJS project by testing it out in your App jsx file function App return lt div class styles App gt lt header class styles header gt lt img src logo class styles logo alt logo gt lt p gt Edit lt code gt src App jsx lt code gt and save to reload lt p gt lt a class text xl text blue href target blank rel noopener noreferrer gt Learn Solid Tailwind CSS and Flowbite lt a gt lt header gt lt div gt export default App You now have both SolidJS and Tailwind CSS succesfully installed and configured in your local project and we can now proceed by setting up the UI components from Flowbite Install FlowbiteFlowbite is a popular and open source UI component library built on top of the classes from Tailwind CSS and it can help you kickstart building websites and applications by leveraging interactive UI components such as navbars modals dropdowns datepickers and more Require and install Flowbite using NPM by executing the following command in your terminal npm install flowbiteRequire the Flowbite plugin and configure the template paths inside tailwind config js module exports content src js jsx ts tsx node modules flowbite js configure the Flowbite JS source template paths theme extend plugins require flowbite plugin require Flowbite s plugin for Tailwind CSS Import the Flowbite package to enable UI components interactivity inside your App jsx file import flowbite Now that you have installed Flowbite you can start using the UI components from the documentation inside your SolidJS project Flowbite componentsAll of the interactive and non interactive components from Flowbite can now be used so let s first start by adding the Modal component inside your App jsx file import logo from logo svg import styles from App module css import flowbite function App return lt div class styles App gt lt header class styles header gt lt img src logo class styles logo alt logo gt lt p gt Edit lt code gt src App jsx lt code gt and save to reload lt p gt lt a class text xl text blue href target blank rel noopener noreferrer gt Learn Solid Tailwind CSS and Flowbite lt a gt lt button data modal target defaultModal data modal toggle defaultModal class block mt text white bg blue hover bg blue focus ring focus outline none focus ring blue font medium rounded lg text sm px py text center dark bg blue dark hover bg blue dark focus ring blue type button gt Toggle Flowbite modal lt button gt lt div id defaultModal tabindex aria hidden true class fixed top left right z hidden w full p overflow x hidden overflow y auto text base text left md inset h modal md h full gt lt div class relative w full h full max w xl md h auto gt lt div class relative bg white rounded lg shadow dark bg gray gt lt div class flex items start justify between p border b rounded t dark border gray gt lt h class text xl font semibold text gray dark text white gt Terms of Service lt h gt lt button type button class text gray bg transparent hover bg gray hover text gray rounded lg text sm p ml auto inline flex items center dark hover bg gray dark hover text white data modal hide defaultModal gt lt svg aria hidden true class w h fill currentColor viewBox xmlns gt lt path fill rule evenodd d M a L l a L l a L l a L a z clip rule evenodd gt lt path gt lt svg gt lt span class sr only gt Close modal lt span gt lt button gt lt div gt lt div class p space y gt lt p class text base leading relaxed text gray dark text gray gt With less than a month to go before the European Union enacts new consumer privacy laws for its citizens companies around the world are updating their terms of service agreements to comply lt p gt lt p class text base leading relaxed text gray dark text gray gt The European Union s General Data Protection Regulation G D P R goes into effect on May and is meant to ensure a common set of data rights in the European Union It requires organizations to notify users as soon as possible of high risk data breaches that could personally affect them lt p gt lt div gt lt div class flex items center p space x border t border gray rounded b dark border gray gt lt button data modal hide defaultModal type button class text white bg blue hover bg blue focus ring focus outline none focus ring blue font medium rounded lg text sm px py text center dark bg blue dark hover bg blue dark focus ring blue gt I accept lt button gt lt button data modal hide defaultModal type button class text gray bg white hover bg gray focus ring focus outline none focus ring blue rounded lg border border gray text sm font medium px py hover text gray focus z dark bg gray dark text gray dark border gray dark hover text white dark hover bg gray dark focus ring gray gt Decline lt button gt lt div gt lt div gt lt div gt lt div gt lt header gt lt div gt export default App This example adds a button which when clicked it will open a modal component with a title description and close button Let s now show a tooltip indicator when hovering over the button to provide extra information lt button data tooltip target tooltip default data modal target defaultModal data modal toggle defaultModal class block mt text white bg blue hover bg blue focus ring focus outline none focus ring blue font medium rounded lg text sm px py text center dark bg blue dark hover bg blue dark focus ring blue type button gt Toggle Flowbite modal lt button gt lt div id tooltip default role tooltip class absolute z invisible inline block px py text sm font medium text white transition opacity duration bg gray rounded lg shadow sm opacity tooltip dark bg gray gt Toggle modal component lt div class tooltip arrow data popper arrow gt lt div gt lt div gt Finally let s add an accordion component inside the modal lt div id accordion collapse data accordion collapse gt lt h id accordion collapse heading gt lt button type button class flex items center justify between w full p font medium text left text gray border border b border gray rounded t xl focus ring focus ring gray dark focus ring gray dark border gray dark text gray hover bg gray dark hover bg gray data accordion target accordion collapse body aria expanded true aria controls accordion collapse body gt lt span gt What is Flowbite lt span gt lt svg data accordion icon class w h rotate shrink fill currentColor viewBox xmlns gt lt path fill rule evenodd d M a L l a l a l a z clip rule evenodd gt lt path gt lt svg gt lt button gt lt h gt lt div id accordion collapse body class hidden aria labelledby accordion collapse heading gt lt div class p font light border border b border gray dark border gray dark bg gray gt lt p class mb text gray dark text gray gt Flowbite is an open source library of interactive components built on top of Tailwind CSS including buttons dropdowns modals navbars and more lt p gt lt p class text gray dark text gray gt Check out this guide to learn how to lt a href docs getting started introduction class text blue dark text blue hover underline gt get started lt a gt and start developing websites even faster with components on top of Tailwind CSS lt p gt lt div gt lt div gt lt h id accordion collapse heading gt lt button type button class flex items center justify between w full p font medium text left text gray border border b border gray focus ring focus ring gray dark focus ring gray dark border gray dark text gray hover bg gray dark hover bg gray data accordion target accordion collapse body aria expanded false aria controls accordion collapse body gt lt span gt Is there a Figma file available lt span gt lt svg data accordion icon class w h shrink fill currentColor viewBox xmlns gt lt path fill rule evenodd d M a L l a l a l a z clip rule evenodd gt lt path gt lt svg gt lt button gt lt h gt lt div id accordion collapse body class hidden aria labelledby accordion collapse heading gt lt div class p font light border border b border gray dark border gray gt lt p class mb text gray dark text gray gt Flowbite is first conceptualized and designed using the Figma software so everything you see in the library has a design equivalent in our Figma file lt p gt lt p class text gray dark text gray gt Check out the lt a href class text blue dark text blue hover underline gt Figma design system lt a gt based on the utility classes from Tailwind CSS and components from Flowbite lt p gt lt div gt lt div gt lt h id accordion collapse heading gt lt button type button class flex items center justify between w full p font medium text left text gray border border gray focus ring focus ring gray dark focus ring gray dark border gray dark text gray hover bg gray dark hover bg gray data accordion target accordion collapse body aria expanded false aria controls accordion collapse body gt lt span gt What are the differences between Flowbite and Tailwind UI lt span gt lt svg data accordion icon class w h shrink fill currentColor viewBox xmlns gt lt path fill rule evenodd d M a L l a l a l a z clip rule evenodd gt lt path gt lt svg gt lt button gt lt h gt lt div id accordion collapse body class hidden aria labelledby accordion collapse heading gt lt div class p font light border border t border gray dark border gray gt lt p class mb text gray dark text gray gt The main difference is that the core components from Flowbite are open source under the MIT license whereas Tailwind UI is a paid product Another difference is that Flowbite relies on smaller and standalone components whereas Tailwind UI offers sections of pages lt p gt lt p class mb text gray dark text gray gt However we actually recommend using both Flowbite Flowbite Pro and even Tailwind UI as there is no technical reason stopping you from using the best of two worlds lt p gt lt p class mb text gray dark text gray gt Learn more about these technologies lt p gt lt ul class pl text gray list disc dark text gray gt lt li gt lt a href class text blue dark text blue hover underline gt Flowbite Pro lt a gt lt li gt lt li gt lt a href rel nofollow class text blue dark text blue hover underline gt Tailwind UI lt a gt lt li gt lt ul gt lt div gt lt div gt lt div gt These examples should give you a pretty good idea how you can leverage the UI components from Flowbite together with Tailwind CSS and SolidJS to build performant and reactive web applications SolidJS starter projectThe open source community from Flowbite created a SolidJS starter project that follows the steps from this guide that you can use to quickly start using these three technologies for your next project |
2023-02-20 09:23:10 |
海外TECH |
DEV Community |
How to create a Drag and Drop interface using Vanilla JS |
https://dev.to/devrohit0/how-to-create-a-drag-and-drop-interface-using-vanilla-js-9bi
|
How to create a Drag and Drop interface using Vanilla JSHi I m back after a long break with a new post on how to create a Drag and Drop interface using Vanilla JS GitHub RepoLet s have look what we are going to create in this tutorialDrag and drop functionality is a great way to enhance the user experience of a web application With drag and drop users can easily move elements around a page reorder lists and perform other interactive actions In this tutorial we ll cover how to create a simple drag and drop interface with vanilla JavaScript We ll be using TailwindCSS for styling you may use pure CSS or any other CSS framework So let s write the HTML for our project in index htmlHTML lt html gt lt head gt lt title gt Drag and Drop Example lt title gt lt head gt lt body gt lt ul id list gt lt li id item draggable true gt Item lt li gt lt li id item draggable true gt Item lt li gt lt li id item draggable true gt Item lt li gt lt li id item draggable true gt Item lt li gt lt li id item draggable true gt Item lt li gt lt ul gt lt div id target gt lt div gt lt body gt lt html gt Now add the Tailwind CDN in lt head gt and add classes to it lt DOCTYPE html gt lt html gt lt head gt lt title gt Drag and Drop Example lt title gt lt Load Tailwind CSS gt lt link rel stylesheet href gt lt style gt Add custom styles here lt style gt lt head gt lt body class bg gray gt lt div class max w md mx auto mt gt lt Drag and drop list gt lt div class p bg white rounded lg shadow lg gt lt ul id list class list none p m bg gray border border gray min h gt lt li id item draggable true class bg white border border gray p mb cursor move gt Item lt li gt lt li id item draggable true class bg white border border gray p mb cursor move gt Item lt li gt lt li id item draggable true class bg white border border gray p mb cursor move gt Item lt li gt lt li id item draggable true class bg white border border gray p mb cursor move gt Item lt li gt lt li id item draggable true class bg white border border gray p mb cursor move gt Item lt li gt lt ul gt lt div gt lt Drop target gt lt div id target class mt p bg white rounded lg shadow lg border dashed border border gray min h gt lt p class text center text gray gt Drop items here lt p gt lt div gt lt div gt lt script src index js gt lt script gt lt body gt lt html gt Now create index js and add this to index htmlJavaScript Now write some JS for our drag and drop interface const listItems document querySelectorAll list li const target document querySelector target for const listItem of listItems listItem addEventListener dragstart dragStart target addEventListener dragover dragOver target addEventListener drop drop function dragStart event event dataTransfer setData text plain event target id function dragOver event event preventDefault target classList add border gray function drop event event preventDefault const itemId event dataTransfer getData text plain const item document getElementById itemId target appendChild item target classList remove border gray Code Explanation First it selects all the list items on the page and the target element using document querySelectorAll and document querySelector This is done using CSS selectors list li selects all the li elements inside the element with the ID list and target selects the element with the ID target Next it adds a dragstart event listener to each list item using a for of loop This event listener is triggered when the user starts dragging an item The dragStart function is called when the event is triggered It sets the data that is being dragged by calling event dataTransfer setData text plain event target id The first argument specifies the data type text plain in this case and the second argument is the ID of the element being dragged The code then adds a dragover event listener to the target element This event listener is triggered when the user drags an item over the target element The dragOver function is called when the event is triggered It calls event preventDefault to allow the drop event to be triggered It also adds a CSS class to the target element to indicate that it can be dropped onto Finally the code adds a drop event listener to the target element This event listener is triggered when the user drops an item onto the target element The drop function is called when the event is triggered It calls event preventDefault to prevent the default behavior which is to navigate to a new page It then gets the ID of the element being dragged by calling event dataTransfer getData text plain It retrieves the element by its ID using document getElementById itemId and appends it to the target element using target appendChild item Finally it removes the CSS class that was added to the target element in the dragOver function Finally the Drag and Drop Interface is ready I hope you loved this Let s connect GithubTwitterLinkedIn |
2023-02-20 09:10:56 |
医療系 |
医療介護 CBnews |
重度脊髄損傷者対応の療護施設、委託基準を策定-国交省、受け入れ病院を公募へ |
https://www.cbnews.jp/news/entry/20230220175003
|
受け入れ |
2023-02-20 18:05:00 |
金融 |
RSS FILE - 日本証券業協会 |
外国投信の運用成績一覧表 |
https://www.jsda.or.jp/shiryoshitsu/toukei/foreign/index.html
|
運用 |
2023-02-20 10:30:00 |
金融 |
金融庁ホームページ |
入札公告等を更新しました。 |
https://www.fsa.go.jp/choutatu/choutatu_j/nyusatu_menu.html
|
公告 |
2023-02-20 10:00:00 |
ニュース |
BBC News - Home |
Nicola Bulley: Missing woman's partner says family in 'agony' after body found |
https://www.bbc.co.uk/news/uk-64701028?at_medium=RSS&at_campaign=KARANGA
|
identification |
2023-02-20 09:46:26 |
ニュース |
BBC News - Home |
New Zealand v England: Joe Root says first-Test innings gave him 'kick up the backside' |
https://www.bbc.co.uk/sport/cricket/64689600?at_medium=RSS&at_campaign=KARANGA
|
New Zealand v England Joe Root says first Test innings gave him x kick up the backside x Joe Root says his second innings half century in England s first Test defeat of New Zealand has given him a kick up the backside |
2023-02-20 09:01:43 |
ニュース |
Newsweek |
中国がロシアに殺傷兵器を支援する?「それは世界戦争の始まりだ」 |
https://www.newsweekjapan.jp/stories/world/2023/02/post-100909.php
|
中国がロシアに殺傷兵器を支援する「それは世界戦争の始まりだ」ニューヨーク・タイムズのコラムニストで外交ジャーナリストのトーマス・フリードマンは月日、ロシアとウクライナの戦争は、中国がロシアに武器支援をして「本物の世界戦争」に火を付ける可能性があると指摘した。 |
2023-02-20 18:30:10 |
マーケティング |
MarkeZine |
大広グループ、中国越境EC支援サービス「Direct to China」を提供開始 |
http://markezine.jp/article/detail/41249
|
提供開始 |
2023-02-20 18:15:00 |
IT |
週刊アスキー |
びっくりドンキー「マーボバーグ」の進化版?「チーズダッカルビ風バーグ」はマーボが辛くなかった人にうれしい強辛 |
https://weekly.ascii.jp/elem/000/004/125/4125693/
|
期間限定 |
2023-02-20 18:40:00 |
IT |
週刊アスキー |
オークションサービス「モバオク」、「東京メトロ 鉄道部品オンラインオークション」を開催 |
https://weekly.ascii.jp/elem/000/004/125/4125677/
|
東京メトロ |
2023-02-20 18:30:00 |
コメント
コメントを投稿