投稿時間:2021-05-29 06:23:36 RSSフィード2021-05-29 06:00 分まとめ(27件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
TECH Engadget Japanese アップルM1チップに「修正できない脆弱性」みつかる。ただし悪用は困難 https://japanese.engadget.com/apple-m1-vulnerability-205058800.html 発見 2021-05-28 20:50:58
TECH Engadget Japanese 2015年5月29日、WQHDのQuantum IPS液晶を採用した「isai vivid LGV32」が発売されました:今日は何の日? https://japanese.engadget.com/today-203004068.html isaivividlgv 2021-05-28 20:30:04
AWS AWS Partner Network (APN) Blog Implementing Multi-Factor Authentication in React Using Auth0 and AWS Amplify https://aws.amazon.com/blogs/apn/implementing-multi-factor-authentication-in-react-using-auth0-and-aws-amplify/ Implementing Multi Factor Authentication in React Using Auth and AWS AmplifyAWS Amplify is a set of tools and services that can be used together or on their own to help frontend web and mobile developers build scalable full stack applications With Amplify you can configure app backends and connect your app in minutes deploy static web apps in a few clicks and easily manage app content outside the AWS Management Console Learn how to add multi factor authentication to a React Single Page Application SPA using Auth and AWS Amplify 2021-05-28 20:33:18
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 文字と数字が混ざった文から数字を抜き出したい https://teratail.com/questions/340945?rss=all excthemeaaaewabcd 2021-05-29 05:31:39
Ruby Railsタグが付けられた新着投稿 - Qiita Rails API + React + devise_token_authでログイン機能を実装する https://qiita.com/kazama1209/items/caa387bb857194759dc5 dockercomposerunapirailsnewforcenodepsdmysqlapiGemfileが更新されたので再ビルド。 2021-05-29 05:01:20
技術ブログ Developers.IO Control Towerを廃止して東京リージョンで再有効化してみた – 廃止編 https://dev.classmethod.jp/articles/decommission-control-tower/ awscontroltower 2021-05-28 20:56:46
海外TECH Ars Technica CDC loosened mask guidance to encourage vaccination—it failed spectacularly https://arstechnica.com/?p=1768580 approval 2021-05-28 20:07:43
海外TECH DEV Community How to create a multilingual project in Laravel 8 (i18n) https://dev.to/jeromew90/how-to-create-a-multilingual-project-in-laravel-internationalization-i18n-11ol How to create a multilingual project in Laravel in This tutorial explains how to create a language system and be able to change the language in the menu with the corresponding translations I will try to be clear and concise SetupFirst you need to create a controller App Http Controllers to record the language in session and be able to retrieve it with the middleware we will create just after namespace App Http Controllers use App use Illuminate Http RedirectResponse class LocalizationController extends Controller param locale return RedirectResponse public function index locale App setLocale locale session gt put locale locale return redirect gt back Now you must create a middleware App Http Middleware to retrieve the language that was recorded in session namespace App Http Middleware use App use Closure class Localization Handle an incoming request param Illuminate Http Request request param Closure next return mixed public function handle request Closure next if session gt has locale App setLocale session gt get locale return next request After that you must save the middleware in app http Kernel php The application s route middleware groups var array protected middlewareGroups web gt App Http Middleware Localization class Finaly create a route to change the language use App Http Controllers LocalizationController Route get lang locale App Http Controllers LocalizationController class index Create the dropdownFirst you must create a flag folder in public images and store flags images inside Secondly in your menu insert this code to be able to switch from one language to another php locale session gt get locale endphp lt li class nav item dropdown gt lt a id navbarDropdown class nav link dropdown toggle href role button data toggle dropdown aria haspopup true aria expanded false v pre gt switch locale case en lt img src asset images flag en png width px gt English break case fr lt img src asset images flag fr png width px gt Français break default lt img src asset images flag en png width px gt English endswitch lt span class caret gt lt span gt lt a gt lt div class dropdown menu dropdown menu right aria labelledby navbarDropdown gt lt a class dropdown item href lang en gt lt img src asset images flag en png width px gt English lt a gt lt a class dropdown item href lang fr gt lt img src asset images flag fr png width px gt Français lt a gt lt div gt lt li gt Let s try itTo test that everything works insert this code on your homepage or any other page lt h gt lang Bonjour lt h gt Then to finish in the resources lang folder you have to create a folder for each language you want for example fr and en and for each folder do the following to take into account the text of the homepage to translate lt php EN folderreturn Bonjour gt Hello Here we go now if you click on the english flag in your menu the Bonjour text will change to Hello Notice that if you need there is another way to make translations using json Bonjour Hello ResourcesIf you re looking for a lot a flags I have a repository with flags of countries and unions all over the worldWith name France png or ISO alpha codes fr pngAvailable sizes × × × × × ×Icon formats PNGIf you want more informations about localization you can refer in official Laravel documentation 2021-05-28 20:27:15
海外TECH DEV Community Ruby Money & BigDecimal https://dev.to/delbetu/ruby-money-bigdecimal-1chb Ruby Money amp BigDecimal The problemIn my current job we faced calculation errors when operating with float for Money After some investigation we found this articleOur first approach was to find every usage of money attributes and parse them with BigDecimal This solution has some drawbacks First we would need to replace it in many places Second it doesn t prevent future developers to use float In order to overcome those issues I wanted to enforce a validation over every money attribute Then if a future execution accidentally does money attr float we could detect that error and report it After thinking for a moment I thought that would be preferable to do a conversion float gt BigDecimal rather than raising an error So I d like to write Ruby code to say hey if someone tries to assign a float to a money attribute then convert it to BigDecimal The SolutionIn order to do that I came up with this solution module BigDecimalCheck def self included klass klass extend ClassMethods end module ClassMethods def enforce big decimal attrs attrs each do attr define method attr do value try to convert argument to BigDecimal instance variable set attr BigDecimal value to s end end end endendclass Rate attr accessor money include BigDecimalCheck enforce big decimal moneyendWith that code in place a consumer code would work like thisr Rate newr money worksr money worksr money worksr money worksr money no numeric Argument Error How this solution work self included it is a hook that Ruby modules provide It is called when the module is included and receives the class that included it klass extend ClassMethod Let s say that klass Foo then this would be the same as doing class Foo extend ClassMethod Now I m able to call methods in ClassMethod form hereendwhich will inject methods from ClassMethod into Foo object at class scope enforce big decimal def enforce big decimal attrs attrs each do attr define method attr do value try to convert argument to BigDecimal instance variable set attr BigDecimal value to s end end endIf I call enforce big decimal unit price total priceIt will define two methods def unit price value parsed value BigDecimal value to s raise error if cannot parse instance variable set unit price parsed value enddef total price value parsed value BigDecimal value to s raise error if cannot parse instance variable set total price parsed value end ConslusionI ve shown an example of how to generalize the solution of a problem by using ruby meta programming techniques I hope it can help you solve similar problems Feel free to ask questions or suggest improvements Thanks for reading 2021-05-28 20:26:54
海外TECH DEV Community Referrers on the web https://dev.to/jordanfinners/referrers-on-the-web-n2b Referrers on the web Contents Intro Referrer Policy Linking Bonus Server header Summary Intro Continuing on from my previous blog about website security week we re going to talk about a Referrers on the web Referrers on the web allow sites you are visiting to see what site you have come from as the Referer header it is actually mispelled in the HTTP Specification contains a absolute or partial url of the site you ve come from if you have followed a link This is commonly used for tracking and analytics but it can also be used to steal information for example that contained in the URL of a reset password page or where a token is part of the URL which is why it comes under security headers Referrer Policy This header indicates how much information can be shared in the Referer header on requests made across your site Recommended setting Referrer Policy no referrerYou can read about it more on Modzilla It can also be set in HTML as a meta tag lt meta name referrer content origin gt but also on individual links Linking Links aka lt a gt tags can include a more specific referrer policy than your site wide one you set using the previous header This can be controlled using the referrerpolicy attribute for example lt a href referrerpolicy origin gt This can also be used on lt a gt lt area gt lt img gt lt iframe gt lt script gt or lt link gt elements Or alternatively using the rel attribute to remove any referrer this would be my recommended pattern lt a href rel noreferrer gt This can also be used on lt a gt lt area gt or lt link gt elements Bonus Server header As this is a fairly short and sweet blog I thought I would include a bonus header The Server header this is usually used to indicate what is serving up your website Often a form of advertising about the technology you are using This can often include the version of the tools used to serve your website You should avoid this and including any default information in this header as it could lead to vulnerabilities being found in that version of the tool I would recommend removing the header if possible or overriding it with your own value as then no information is leaked Summary In summary setting a few additional headers when serving up your site can in this case also the privacy of your users and reduce any leakage of information to third parties It reduces the amount of attack surface there is for attackers and prevent common attacks on websites Set those headers now Happy Building 2021-05-28 20:25:16
海外TECH DEV Community Minimizing Webpack bundle size https://dev.to/useanvil/minimizing-webpack-bundle-size-38gg Minimizing Webpack bundle size The dreaded loading spinnerThe two key metrics in determining whether users will stay on your site is the time it takes to load the page and the time it takes to interact with it The first is First Contentful Paint and the second is Time to Interactive You can find these metrics for your own site by going to your developer tools and generating a report under the Lighthouse tab on Chrome Lighthouse metrics for a random web appBy minimizing the size of the bundle we reduce the time it takes for browsers to download the JavaScript for our site improving user experience With every additional second of wait time the user is more likely to close the tab Consider all of the users that visit your site everyday and that can be thousands of seconds wasted The chance of losing a potential user is even higher when you have a complex web app making it even more important to ensure the bundle size stays low Understanding the situationLet s start by getting an understanding of all the code amp dependencies that need to be sent to the browser along with the memory size of each Adding webpack bundle analyzer to your webpack configuration is the perfect starting point Install yarn add D webpack bundle analyzer ornpm install save dev webpack bundle analyzerUsage import WebpackBundleAnalyzer from webpack bundle analyzer webpackConfig plugins new WebpackBundleAnalyzer BundleAnalyzerPlugin After compiling your bundle your browser should open up a visualization of all the content and its memory sizes Visualization of the bundle Tree shakingWebpack works by building a dependency graph of every module imported into our web app traversing through files containing the code we need and bundling them together into a single file As our app grows in complexity with more routes components and dependencies so does our bundle When our bundle size exceeds several MBs performance issues will arise It s time to consider tree shaking as a solution Tree shaking is a practice of eliminating dead code or code that we ve imported but do not utilize Dead code can vary from React components helper functions duplicate code or svg files Let s go through ways of reducing the amount of dead code we have with help from some Webpack plugins babel plugin importThe babel plugin import plugin for babel loader enables Webpack to only include the code we need when traversing through dependencies during compilation instead of including the entire module This is especially useful for heavy packages like antd and lodash More often than not web apps only need select UI components and helper functions so let s just import what s needed Install yarn add D babel plugin import ornpm install save dev babel plugin importUsage webpackConfig module rules test js jsx include path resolve dirname src client use loader babel loader options plugins modularly import the JS and styles that we use from antd import libraryName antd style true antd modularly import the JS that we use from ant design icons import libraryName ant design icons libraryDirectory es icons antd icons We instantiated two instances of babel plugin import one for the antd package and the other for the ant design package Whenever Webpack encounters import statements from those packages it is now selective in terms of what part of the package to include in the bundle import Dropdown from antd transforms tovar dropdown require antd lib dropdown babel plugin lodashSimilar to babel plugin import the babel plugin lodash plugin cherry picks the code we need to import from lodash The parsed size of the entire lodash package is KB so we definitely don t want everything Install yarn add D babel plugin lodash ornpm install save dev babel plugin lodashUsage webpackConfig module rules test js jsx include path resolve dirname src client use loader babel loader options plugins modularly import the JS that we use from lodash lodash presets babel env targets node If you re already using babel plugin import for lodash this may be unnecessary but it s always nice to have alternatives import from lodash const objSize size a b c transforms toimport size from lodash size const objSize size a b c context replacement pluginLooking at the visual of bundle js the locale data in the moment package already makes up KB In the case that no locale functionality is used we should remove that portion of the package from the bundle Webpack s ContextReplacementPlugin is the best way to do this KB totalimport webpack from webpack only include files matching en in the moment locale contextwebpackConfig plugins push new webpack ContextReplacementPlugin moment locale en A quick look at the bundle analyzer visualization shows that this simple plugin already shaves KB off our bundle size A very quick win KB total moment timezone data webpack pluginIf you re using moment timezone in your app you ll find moment timezone data webpack plugin extremely useful Moment timezone includes a comprehensive json file of all timezones for a wide date range which results in a package size of KB As with locales it s highly likely we don t need this large data set so let s get rid of it This plugin helps us do that by customizing the data we want to include and stripping out the rest Install yarn add D moment timezone data webpack plugin ornpm install save dev moment timezone data webpack pluginUsage import MomentTimezoneDataPlugin from moment timezone data webpack plugin only include timezone data starting from year to in AmericawebpackConfig plugins push new MomentTimezoneDataPlugin startYear endYear matchZones America A before and after analysis shows the package size shrinking to KB from KB Code splittingA major feature of Webpack is code splitting which is partitioning your code into separate bundles to be loaded on demand or in parallel There are a couple ways code splitting can be done through Webpack one of which is having multiple entry points and another is having dynamic imports We ll be focusing on dynamic imports PolyfillsA fitting use case for code splitting is polyfills since they re only neccessary depending on the browser We don t know in advance whether a polyfill would be required until the client fetches the bundle and thus we introduce dynamic imports In cases where a dependency is used for something that is already supported by some browsers it may be a good idea to drop the dependency use the native function supported by most browsers and polyfill the function for browsers that don t support it One example is getting the timezone import moment from moment timezone moment tz guess works the same asIntl DateTimeFormat resolvedOptions timeZoneIf we get Intl DateTimeFormat resolvedOptions timeZone polyfilled on the older browsers we can completely drop moment timezone as a dependency reducing our bundle size by an extra KB Let s start by adding the polyfill as a dependency yarn add date time format timezone ornpm install date time format timezoneWe should only import it if the browser does not support it if Intl DateTimeFormat resolvedOptions timeZone import webpackChunkName “polyfill timezone date time format timezone then module gt module default As Webpack traverses through the code during compilation it ll detect any dynamic imports and separate the code into its own chunk We ve accomplished two things reducing the size of the main bundle and only sending the polyfill chunk when necessary Frontend routesFor complex web apps that can be divided into sections route based code splitting is a clear solution For example a website may have an e commerce section and an about the company section Many users who visit the site only interact with the e commerce pages so loading the other sections of the web app is unnecessary Let s reduce our bundle size by splitting our main bundle into many bundles to be loaded on demand If you re using React good news because route based code splitting is pretty intuitive in this framework Like with the example shown earlier dynamic imports is used to partition the app into separate bundles import React Suspense lazy from react import BrowserRouter Route Switch from react router dom import LoadingScreen from components LoadingScreen const App props gt lt BrowserRouter gt lt Suspense fallback lt LoadingScreen gt gt lt Switch gt lt Route exact path component lazy gt import routes landing gt lt Route path shop component lazy gt import routes shop gt lt Route path about component lazy gt import routes about gt lt Switch gt lt Suspense gt lt BrowserRouter gt Once we have this code in place Webpack will take care of the bundle splitting Removing duplicate dependenciesDuplicate dependencies arise when dependencies with overlapping version ranges exist This generally happens due to the deterministic nature of yarn add and npm install As more dependencies are added the more likely duplicate packages are installed This leads to an unnecessarily bloated size of your web app and bundle Fortunately there are tools for this If you re using yarn version or greater you can skip this as yarn has taken care of it automatically These tools work by moving dependencies with overlapping version ranges further up the dependency tree enabling them to be shared by multiple dependent packages and removing any redundancies If you re using yarn x yarn global add yarn deduplicateyarn deduplicate yarn lockOr if you use NPM npm dedupe Upgrading and removing dependenciesLook at the bundle visual again and check if the large dependencies support tree shaking and whether there is a similar but smaller package that does everything you need Upgrading dependencies frequently is recommended as package size usually slims down over time and as tree shaking is introduced Lastly production modeMake sure Webpack is in production mode on release Webpack applies a number of optimizations to your bundle including minification with TerserWebpackPlugin if you re using Webpack v or above If not you ll have to install and add it manually Other optimizations include omitting development only code and using optimized assets SummaryWe ve covered the importance of bundle size analyzing the composition of a bundle tree shaking code splitting dependency deduplication and various Webpack plugins to make our lives easier We also looked into dynamic imports and loading code on demand With these practices introduced into your webpack config js file you can worry less about those dreaded loading spinners We ve applied these practices to our code at Anvil and believe sharing our experience helps everyone in creating awesome products If you re developing something cool with PDFs or paperwork automation let us know at developers useanvil com We d love to hear from you 2021-05-28 20:24:34
海外TECH DEV Community Projects to become a Fronted Master https://dev.to/line/projects-to-become-a-fronted-master-151o Projects to become a Fronted MasterFront end web development is the practice of converting data to a graphical interface through the use of HTML CSS and JavaScript so that users can view and interact with that data A person who does this is called a front end developer Being a frontend developer you do one of the most important tasks for your company To become a expert in it it takes a lot of tasks and efforts Here are some projects that you can do to master frontend development Design and code your own portfolio website It is the only place where you can show your skills personality amp your work This needs to be different If you don t know anything about designing a website make sure to take help from Dribbble they are amazing thousands of designers around the world are posting their design there you can take inspirations from there and put your effort in coding the websites Make a beautiful open source projectTake Hard designs from Dribbble as a project and try your best to copy it by coding it This could make your GitHub profile a lot more strong as well as can make your skills better Subscribe to Newsletter Get Amazing Content which is not available here Make a todo list appTry to make an todo list for yourself Open Source it and make sure to add all the features that you want from an todo list app and Walla you have your own app which is different from others Make different projects with Angular AND VueJSOne of the best JavaScript libraries try to make make and app with VueJS and Also try to make an app from Angular Make A BlogMake a using HTML CSS and JavaScript END 2021-05-28 20:24:02
海外TECH DEV Community Top React component libraries (2021) https://dev.to/retool/top-react-component-libraries-2021-na9 Top React component libraries Because of React s ubiquity k stars on GitHub developers have a near endless supply of UI libraries with custom components to draw upon to build applications But not all React component libraries are created equal Some are best for general purposes others were created specifically for web development and many are tailored for niche use cases like enterprise product production We ll review React component libraries in this post considering several factors like popularity use cases documentation resources support etc Table of contentsMaterial UIAnt Design AntD React BootstrapGrommetRebassBlueprintSemantic UI ReactRetoolHonorable mentionsFluent React UIOnsen UIEvergreen Material UIGitHub StarsWeekly NPM DownloadsStack Overflow QuestionsOriginkM May kGoogleDeveloped by Google in Material UI is a general purpose customizable component library to build React applications The folks at Google designed Material UI as an adaptable system of guidelines components and tools to make app building beautiful yet straightforward Material UI componentsThe Material UI component library offers a wide range of options from app bars to time pickers Google also provides guidelines for usage design principles dos and don t and best practices for each type of component This makes it easy for developers to build well designed apps regardless of intuition for design Material UI themes and themingMaterial UI offers several free and paid themes to get started with Paid themes start at for a standard license and increase to up to for an extended license The key difference between standard and extended licenses is the ability to charge end users Both are limited to the usage of the theme for a “single application Most themes offer a robust set of features documentation and support For those who want complete control over design elements Material UI allows for custom theming to “systematically customize Material Design to better reflect your product s brand Material Design is beneficial for applying consistent design across your app and making global design changes with minimal effort Material UI documentation and supportMaterial UI is well documented and supported Documentation covers everything from installation to components to styling and guides for implementing utilities like server side rendering and localization For support there s plenty of free options like the Material UI community Stack Overflow and GitHub Material points technical questions to Stack Overflow where more than k questions have been posted GitHub is used exclusively as a bugs and feature requests tracker On the paid side Material UI suggests purchasing a Tidelift subscription which offers “flexibility of open source and the confidence of commercial grade software At the rate of hr or per day “Custom work can be requested for help modifying Material UI to meet specific requirements Apps and websites built on Material UIWe ve grabbed a few screenshots from the Material UI website below See the full showcase of public apps using Material UI here Ant Design AntD GitHub StarsWeekly NPM DownloadsStack Overflow QuestionsOriginkk May kAnt FinancialAnt Design also referred to as AntD brands itself as the The world s second most popular React UI although it s unclear who they view as the most popular AntD differentiates itself from other React component libraries as a design system for enterprise level products AntD has also developed a design philosophy based on four values Natural Certain Meaningful Growing Notable companies that have bought into AntD s design philosophy include Ant Financial Alibaba Tencent and Baidu Ant Design was created by Ant Financial and was launched in ーmore in this Show HN thread Ant Design componentsAntD offers a set of more than components that serve as building blocks for enterprise applications They also recommend using other React third party libraries for components that fall outside of the Ant Design specification such as the React Hooks Library or React JSON View Ant Design themingAnt Design doesn t offer the same pre built theme options compared to a library like Bootstrap or Material At the time of this writing Themeforest offers themes at prices ranging from to That s a pretty stark difference from Material themes on Themeforest which has more than themes built with Material Design And Bootstrap has an order of magnitude more than Material with more than k themes listed on Themeforest AntD offers Ant Design Pro an out of box UI solution for enterprise applications Ant Design Pro comes equipped with templates components and a corresponding design kit In addition to Ant Design Pro AntD packages designs for data visualization mobile and graphic solutions so developers can start with a package based on a particular enterprise use case Ant Design documentation and supportWhile AntD does have documentation it doesn t offer the depth of documentation that a framework like Material UI has AntD s component documentation is easy to understand and includes examples and API properties for each component AntD components also include internationalization support for dozens of languages and uses Less js for styling components While it doesn t appear that Ant Design offers any paid support options they have an engaged community and many resources for self learning AntD uses GitHub Issues for bug tracking AntD also facilitates community discussions via GitHub Stack Overflow and Segmentfault Examples of apps and websites built on Ant Design React BootstrapGitHub StarsWeekly NPM DownloadsStack Overflow QuestionsOriginkk May kTwitterInitially named Twitter Blueprint the Bootstrap framework was built by Mark Otto and Jacob Thornton at Twitter Bootstrap predates React by a couple of years Bootstrap s initial release was August and React s was on May Bootstrap started as an open source CSS framework centered around helping developers build responsive mobile first front end websites and applications React Bootstrap is a bit different but very similar to the original Bootstrap framework React Bootstrap replaces the Bootstrap JavaScript and each component has been built from scratch as a proper React component without unneeded dependencies like jQuery React Bootstrap componentsReact Bootstrap s component library skews toward web development With less than components React Bootstrap also doesn t provide the breadth of component coverage that a Material UI or AntD offers Less can be more especially for those familiar with Bootstrap and know it can accommodate their use case React Bootstrap themes and themingDue to the widespread use of Bootstrap for web development there are thousands of free and paid Bootstrap available Generally custom Bootstrap themes work with React Bootstrap as long as Bootstrap defined classes and variants are used React Bootstrap documentation and supportWhile React Bootstrap doesn t offer any official support there is a massive active community and plenty of resources supporting Bootstrap The React Bootstrap website suggests starting with support in one of three places Stack Overflow to ask specific detailed questionsReactiflux Dischord to discuss via chatGitHub Issues to report bugs Apps and websites built on Bootstrap GrommetGitHub StarsWeekly NPM DownloadsStack Overflow QuestionsOriginkk May Hewlett Packard EnterpriseGrommet was developed by HPE and offers a more vibrant and not so Google y look and feel compared to alternatives like Material UI or AntD From their marketing site copy Grommet positions itself as “a React based framework that provides accessibility modularity responsiveness and theming in a tidy package Reading between the lines Grommet is lighter weight and from the looks of their website design it also has bolder component designs Grommet componentsGrommet provides a bold and robust set of components to use They categorize components into the following categories Layouts ーa system for layout of an app with components like headers footers grids cards sidebars and more Type ーcomponents for headings markdown paragraph and text Color ーset color schemes for branding accents status and neutral colors Controls ーcomponents that let users interact with an app like menus buttons navbars etc Input ーcomponents where users input things like text check boxes file uploads etc Visualizations ーcomponents for more rich visualizations like calendars charts avatars etc Media ーcomponents for video images and carousels Utilities ーcatch all for components that improve user experiences like keyboard shortcuts responsive elements infinite scroll etc Grommet themes and themingWhile there are not a lot of pre packaged Grommet themes available Grommet does provide two useful tools for customizing a theme Grommet theme designer ーan interactive demo admin panel to create custom Grommet themes by adjusting elements in the admin panel itself Grommet designer ーan interactive canvas that lets you build and save experiences with grommet components Grommet documentation and supportGrommet doesn t offer any hands on support They do have an active Slack community and like other frameworks bugs are submitted via GitHub Issues In addition to that Grommet provides resources including a template pattern library component library on Storybook and a codesandbox for each component RebassGitHub StarsWeekly NPM DownloadsStack Overflow QuestionsOriginkk May Brent JacksonRebass was created by Brent Jackson who is currently a front end developer at Gatsby React primitive UI components are at the core of the Rebass library which are coupled with a Styled System The Rebass Styled System is compatible with CSS in JS libraries and reduces the need to write custom CSS into an application using style objects instead of embedded CSS strings As a result developers can build faster and add a theme and design elements on top of Rebass primitives Rebass is also very lightweight with a footprint of about KB Rebass componentsRebass comes with a foundational set of primitive components that can be “extended to build a component library with a consistent API and styles defined in a design theme Foundational include primitives for app structure responsive boxes and flexbox layouts text heading text link button images cards and forms The Forms component includes many interactive sub components like inputs textarea sliders switches and checkboxes In addition to primitives Rebass offers documentation on recipes for common use cases like grids navbar and image cards Rebass themes and themingWhile Rebass doesn t have a library or rd party ecosystem of pre built themes it does offer a lot of theming flexibility and customization Themes are applied in Rebass using a ThemeProvider component Rebass follows Theme Specification for defining theme objects and design tokens for use with UI components Rebass is compatible with Theme UI and Styled System which both work with Rebass with no additional configuration required Rebass documentation and supportRebass provides thorough documentation centered around getting developers quickly up to speed on how Rebass works As the concepts of primitive components theming and design systems are understood developers using Rebass can fully customize and extend the library There is no paid support or official Rebass communities listed in their documentation BlueprintGitHub StarsWeekly NPM DownloadsStack Overflow QuestionsOrigink May PalantirBlueprint is an open source React UI kit developed at Palantir It differentiates from other React frameworks as being “optimized for building complex data dense interfaces for desktop applications Not a huge surprise given Blueprint s origins out of Palantir Blueprint componentsIn addition to its core component package Blueprint separates component libraries based on use cases and significant dependencies Core components ーprovide the essential components for any app built on Blueprint This includes components from buttons to form controls to tooltips and trees Datetime components ーoffer a complete set of components for building apps with date and time dependencies These are components like a DatePicker DateRangeInput DateInput etc Select components ーa package of components for selecting items from a list such as Select MultiSelect Omnibar QueryList etc Table component ーrobust table component the features cell and header rendering virtualized viewport rendering editable headers and cells and more Timezone component ーa TimezonePicker for handling and selecting Timezones Icon components ーa package of over vector UI icons which can easily be modified by color size and effects Blueprint themes and themingBlueprint not the framework to use if you re looking for a variety of themes to start from However Blueprint does offer light and dark mode themes out of the box and design elements like classes color schemes and typography are customizable Blueprint documentation and supportWhile Blueprint provides detailed documentation it lacks community and support options The Blueprint GitHub repo appears to be the most active place for reporting issues and getting support from contributors There are also a few hundred Blueprint questions on Stack Overflow Semantic UI ReactGitHub StarsWeekly NPM DownloadsStack Overflow QuestionsOriginkk May kJack LukicSimilar to Bootstrap React Semantic UI React is the React flavor of the Semantic web framework Also like Bootstrap React Semantic UI React is jQuery free to make it fully React compatible Because of its origins in aiding with responsive HTML friendly web design Semantic for React is better suited for web development vs application building Semantic UI React componentsSemantic UI React has a respectable library of over components Semantic UI acts as a layer on top of the React components and offers Semantic themes as CSS stylesheets Components grouped in the following categories Elements ーincludes foundational components like buttons dividers lists images and headers More specialized components like image reveal and rails for content that protrudes borders are also included in the Elements grouping Collections ーcomponents like breadcrumbs forms grids menus and tables are included in the Collections category Views ーvisual components like cards advertisements comments feeds etc are included in the Views category Note that many of these components e g advertisements are unique to Semantic UI Modules ーincludes modular components like modals popups progress bars and more Behaviors ーvisibility which provides a set of callbacks for when content appears is the sole component in the Behaviors category Add ons ーadditional components like radio buttons toggles and sliders are included in this category Semantic UI React themes and themingWhen using Semantic UI React it s important to note that it does not have custom theming options and fully relies on the theming of Semantic UI Semantic UI theming and design is based around Fredrick Brooks s concept of “progressive truthfulness Progressive truthfulness is perhaps a better way to build models of physical objects…Start with a model that is fully detailed but only resembles what is wanted Then one adjusts one attribute after another bringing the result ever closer to the mental vision of the new creation or to the real properties of a real world object Frederick Brooks The Design of Design Essays from a Computer ScientistThe idea is to remove complication and analysis paralysis from web development Rather than building from a blank slate developers can specify how components should differ from the default theme using CSS variables and let Semantic UI handle the rest In addition to theming Semantic UI React provides layout examples for using grids responsive design sticky nav webpage construction etc These layouts offer a useful starting point vs starting from a blank slate Semantic UI React documentation and supportSemantic UI React provides thorough documentation Most documentation of components includes code to try the component codesandbox and live examples Within the Buttons component alone there are different button variations from a static button to floating groups of buttons ーall come with code to copy paste RetoolDisclaimer there is bias at play in this overview Retool is a platform for building internal applications It comes with a complete set of powerful components out of the box Because Retool is a platform and not just a component library you can compose applications with drag and drop componentsconnect to any data source or API to work with all of your data sources seamlessly in one appcustomize how your app works by writing JavaScript anywhere inside of RetoolRetool also lets you deploy applications as a cloud hosted solution or on prem and comes with enterprise requirements for security reliability and permissioning built in Retool componentsOut of the box Retool comes with components to build internal applications We also offer custom components if you need to load other interfaces into your applications dynamically Retool components are grouped in the following categories Commonly used ーas the name implies these are core components like buttons tables text dropdowns etc Inputs ーcomponents that allow for user input and interactions These include components like a checkbox date range picker rich text editor slider etc Data ーthese are components that aggregate data like a calendar JSON explorer and query builder Charts ーbuild interactive charts in your Retool apps while also providing the full flexibility and customizability of the Plotly js charting library for more advanced use cases Display ーvisual components that provide users with context such as a progress bar alerts timers and video viewers Retool themes and themingStyle editors ーStyle editors are available across all Retool plans and allow you to customize your Retool components within the Retool UI by editing the style properties e g color border radius of any component Themes ーThemes are available on the Retool Pro and Enterprise plans and allow you to apply style customizations across any of your applications Custom CSS ーWhen inspector styles and themes don t cover your needs you can leverage CSS directly in Retool Custom CSS styles can be applied across all applications within your org settings Templates ーWe also offer ready made templates as a quick starting point for building internal tools from real world use cases Retool documentation and supportCompared to React components libraries Retool offers far more extensive support and support If answers can t be found in Retool documentation customers can turn to the following support channels Community forum ーRetool s Discourse forum is the best place to get tactical product help Power users Slack ーIf you re a Retool Power User you can request access to our sort of exclusive Slack group for our most engaged developers Reschool ーa learning course for getting started with Retool from scratch that includes basic SQL and JavaScript training Intercom ーuse the Intercom chat within the Retool platform to for live supportEmail ーsend an email support retool comEnterprise support ーRetool customers on enterprise plans get access to a dedicated support representative Honorable mentions Fluent React UIGitHub StarsWeekly NPM DownloadsStack Overflow QuestionsOrigink May kMicrosoftFluent React UI is Microsoft s design system adapted for React It s built on top of the Fluent UI design language component specifications and utilities Fluent is the UI framework used in the latest versions of Microsoft applications like Powerpoint Word Outlook etc Components ーMicrosoft uses the name “Controls instead of components Either way Fluent React UI offers a wide range of controls components that are built with the React framework Theming ーFluent React UI comes with a theme designer component styling guide and a theming deep dive guide Documentation and resources ーMicrosoft and Fluent contributors maintain a Fluent React UI wiki for advanced usage building and contributing to Fluent UI React They also offer a frontend bootcamp learning course which includes exercises with Fluent UI React Onsen UIGitHub StarsWeekly NPM DownloadsStack Overflow QuestionsOrigin React k original k May MonacaOriginally based on AngularJS with support for jQuery Onsen UI offers an adapted framework for React Onsen was developed by Monaca Software which specializes in mobile app development and is based out of Japan Based on the mobile first origin the Onsen UI framework is well suited for building mobile apps Components ーOnsen UI comes with more than components designed for mobile experiences Theming ーOnsen UI provides a Theme Roller to customize themes for mobile platforms and styling which can be downloaded and applied Documentation and resources ーDocumentation for Onsen provides a getting started guide for React Onsen UI also showcases several samples to demo and a “playground to test your code and interactively learn the Onsen framework There s also a community forum to tap into help from others using Onsen EvergreenGitHub StarsWeekly NPM DownloadsStack Overflow QuestionsOriginkk May SegmentEvergreen is a React UI Framework developed by Segment It centers around a design system that was created for building “ambitious products on the web Components ーEvergreen offers components built on top of a React UI Primitive Evergreen also provides “patterns which are common reusable combinations of components Theming ーEvergreen ships with two themes A default theme that reflects Segment s current brand and a classic theme from the first version of Evergreen While there is no theme builder with Evergreen it offers an extensible theming architecture to customize the look and feel of the components as needed Documentation and resources ーIn addition to documentation Segment has created an Evergreen Figma library available on Figma Community 2021-05-28 20:19:16
海外TECH DEV Community A Complete Guide To Deploy GitHub Project on Amazon EC2 Using GitHub Actions and AWS CodeDeploy https://dev.to/ankushbehera/a-complete-guide-to-deploy-github-project-on-amazon-ec2-using-github-actions-and-aws-codedeploy-3f0b A Complete Guide To Deploy GitHub Project on Amazon EC Using GitHub Actions and AWS CodeDeploy Auto Deploy in Amazon EC on Git Commit A complete guide to configure CodeDeploy and GitHub CI CD Action PrerequisiteCreate a GitHub account Create AWS Account Table Of ContentsCreate IAM Role for EC and CodeDeployCreate EC InstanceLaunch EC InstanceInstall CodeDeploy Agent on EC InstanceCodeDeploy Service ConfigurationGitHub ProjectGitHub Action NoteSelect a particular region of AWS Services which CodeDeploy Agent and GitHub will use Create IAM Role For EC and CodeDeploy Create a role for EC Instance Select AWS Service as trusted entity and EC as usecase click on Next Permissions On the Permissions page select AmazonECRoleforAWSCodeDeploy Policy and Click on Next TagsIgnore the tags and click Next Review Provide the role name as EC Role on the review page Open the EC Role and go to Trust Relationships then Edit Trust Relationship and paste below policy Version Statement Effect Allow Principal Service ec amazonaws com Action sts AssumeRole Now we will create a role for CodeDeploy Select AWS Service as trusted entity and EC as usecase click on Next Permissions On the Permissions page select the below policy and Click on Next Tags AmazonECFullAccess AWSCodeDeployFullAccess AdministratorAccess AWSCodeDeployRoleTags can be ignored click on Next Review Provide the role name as CodeDeploy Role on the review page Once CodeDeploy Role created Open the CodeDeploy Role and go to Trust Relationships then Edit Trust Relationship and use below policy Version Statement Effect Allow Principal Service codedeploy amazonaws com Action sts AssumeRole Create EC InstanceTo create an EC instance Go to EC Dashboard on AWS Management Console and click on Launch Instance On the AIM page You can select any Volume Type based on your requirement This article will choose Free Tier Amazon Linux AMI HVM SSD Volume Type and bit x Volume and click on select Select t micro in Choose Instance Typ page and proceed to Configure Instance page To establish the connection between EC instance and codeDeploy Select EC Role which we created before On the Tag page add a tag called development The tag will require creating a codeDeploy service In Configure Security Group page Add Rule called All traffic select source called anywhere This rule will enable you to connect the Instance from anywhere NOTE This is not advisable in the Production environment Select the review page then Launch the Instance Wait for a few minutes to start the EC Instance If you want to access the Instance ssh from your local system create a new Key Pair and download the key Launch EC Instance Once Instance is up and running Right click on instance id and click on connect On the next page Take a note of the Public IP Address and connect using the default User name Install CodeDeploy Agent on EC Instance TO Deploy the git repo by using CodeDeploy Service codeDeploy agent must install in the EC instance Use the below commands to install codedeploy agent sudo yum updatesudo yum install y rubysudo yum install wgetwget bucket name is the Amazon S bucket containing the CodeDeploy Resource Kit files for your region region identifier is the identifier for your region list of bucket names and region identifiersFor example wget chmod x installsudo install autosudo service codedeploy agent start CodeDeploy Service Configuration AWS CodeDeploy Service will automate the GitHub application deployment to EC Create an Application name called Git Application with compute platform EC On premises GitHub Action will use the application name Once Application Created Create a Deployment Group and name development gropup Get the Role ARN from CodeDeploy Role which we created before and put in the service role GitHub Action will use the deployment Group name Choose In place Deployment type Select Amazon Ec Instances environment configuration and Tag key development to create AWS EC instance Select a schedule manager to install the CodeDeploy agent Set OneAtATime deployment setting and Create Deployment Group without a load balancer Once Deployment Group created test the deployment by creating a Deployment with any name Select Revision Type My application is stored in GitHub and select Connect to GitHub by providing the GitHub token Once connected to GitHub Provide the repository name and last Commit ID Select Overwrite the content and Create Deployment Wait for a few minutes If Deployment status is unsuccessful verify the deployment logs from ec instance var log aws codedeploy agent codedeploy agent log Recreate the deployment and fix this first Once it s successful you can access the application from a web browser or postman curl location request GET http ec public ip student Get ec public ip from EC Instance GitHub ProjectFork the spring boot demo repository This project is a spring boot project which uses MongoDB For project deployment we will use docker compose which includes MongoDB The appspec yml file used by codeDeploy to manage the deployment The setup sh will install docker and docker compose The run sh is used for docker compose up version os linuxfiles source destination home ec user spring boot mongo hooks AfterInstall location setup sh timeout runas root ApplicationStart location run sh timeout runas root GitHub Action First create an IAM user with full AWSCodeDeployFullAccess policy and generate an access key and secret access for the user to configure GitHub Action Before configuring Action set the environment in the GitHub repository GitHub repository changes will trigger GitHub Action which has two CI CD job The continuous integration job will compile the code and run the JUnit Test cases The continuous deployment job will call AWS CodeDeploy Service application Git Applicationdeployment group development gropupPaste below YAML in action configuration and commit name CI CD Pipelineon push branches main jobs continuous integration runs on ubuntu latest steps Step uses actions checkout v Step name Set up JDK uses actions setup java v with java version distribution adopt Step name Build Application and Run unit Test run mvn B test file student service pom xml continuous deployment runs on ubuntu latest needs continuous integration if github ref refs heads main steps Step name Configure AWS credentials uses aws actions configure aws credentials v with aws access key id secrets AWS ACCESS KEY ID aws secret access key secrets AWS SECRET ACCESS KEY aws region secrets AWS REGION Step name Create CodeDeploy Deployment id deploy run aws deploy create deployment application name Git Application deployment group name development gropup deployment config name CodeDeployDefault OneAtATime github location repository github repository commitId github sha Now make a change to your repository Your changes should automatically deploy to your EC server Access the application from a web browser or postman curl location request GET http ec public ip student Get ec public ip from EC Instance 2021-05-28 20:08:59
海外TECH DEV Community console.assert has a point https://dev.to/adam_cyclones/console-assert-has-a-point-12i console assert has a pointYou know about assert It s that strange thing we don t talk about in JavaScript historically assert is a non standard feature which checks if a condition is true and if not it throws Modern browsers and node module assert actually contain console assert which I guess is a nice way of unwrapping an error in an if statement ‍ ️ I m sure gonna try it Now those of you who unit test and I hope that s everyone not always true you understand the concept perhaps console assert could offer a way to write tests without a framework Perhaps but lets think about tests as they stand In JavaScript tests require much tooling to exercise code they are kept in isolation and this means we can make suites nice It s not broken don t fix it right Not exactly it s important to know what or friends in the Rust community are doing In Rust tests are wrote in the same file as the source this makes testing feel not like an aside task but a core part of the work Could it be that we could use the same way of working adopt inline testing But Adam that s dumb We would ship tests with our code Wait wait hang on your neglecting the fact that our source is hardly ever shipped as is we could be compiling and cutting out our tests we could be using native assertion and some tool to just snip around this and cut it out of a deployment Not such a heavy tooling approach Imagine tests with the same source maps Cool idea Huh 2021-05-28 20:03:30
Apple AppleInsider - Frontpage News Redesigned AirPods coming in 2021, revamped AirPods Pro in 2022 https://appleinsider.com/articles/21/05/28/redesigned-airpods-coming-in-2021-revamped-airpods-pro-in-2022?utm_medium=rss Redesigned AirPods coming in revamped AirPods Pro in A new report claims that Apple is working on refreshing its entire AirPods line with new models coming soon for AirPods AirPods Pro arriving in and maybe even new colors for AirPods Max Apple s current AirPods ProAccording to Bloomberg Apple is preparing a new version of its entry level AirPods and they are intended to go on sale before the end of Unspecified sources echo previous reports that the new design will feature a revised case and shorter stem resembling the current AirPods Pro Read more 2021-05-28 20:28:58
Cisco Cisco Blog Cisco Secure Firewall insertion using Cisco cAPIC in Azure https://blogs.cisco.com/security/cisco-secure-firewall-insertion-using-cisco-capic-in-azure Cisco Secure Firewall insertion using Cisco cAPIC in AzureCisco cAPIC runs on Azure and provides automated policy and visibility of workloads Secure Firewall Threat Defense integrates with the cloud ACI environment using a service graph providing threat protection 2021-05-28 20:22:21
海外科学 NYT > Science Reading Dan Frank, Book Editor and ‘Champion of the Unexampled’ https://www.nytimes.com/2021/05/28/science/science-books-dan-frank-pantheon.html Reading Dan Frank Book Editor and Champion of the Unexampled Alan Lightman Janna Levin and others recall the editor who shaped their work and a literary genre Plus more reading recommendations in the Friday edition of the Science Times newsletter 2021-05-28 20:54:14
ニュース BBC News - Home Chelsea will face 'completely different Man City beast' to the side they beat twice https://www.bbc.co.uk/sport/football/57289428 Chelsea will face x completely different Man City beast x to the side they beat twiceManchester City will be a completely different beast to the side beaten twice this season by Chelsea when they meet in the Champions League final says Jermaine Jenas 2021-05-28 20:33:03
ビジネス ダイヤモンド・オンライン - 新着記事 タワマン「武蔵小杉事件」の真相、“本当の災害リスク”を専門家・住民の証言で解明 - タワマン 全内幕 https://diamond.jp/articles/-/271684 武蔵小杉 2021-05-29 05:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 タワマン「値上がり度」ランキング【関西圏トップ100】、含み益大のお宝物件はどこだ! - タワマン 全内幕 https://diamond.jp/articles/-/271683 値上がり 2021-05-29 05:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 改革派の元校長が保護者・教育委員会との修羅場を乗り切った「黄金ワード5選」 - 有料記事限定公開 https://diamond.jp/articles/-/271714 働き方改革 2021-05-29 05:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 教師になるなら大阪市が狙い目な理由、転職駆使の「成り上がりルート」と落とし穴 - 教師 出世・カネ・絶望 https://diamond.jp/articles/-/271713 民間企業 2021-05-29 05:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 パナソニック「割増退職金4000万円」の壮絶リストラ、年齢別加算金リスト判明【スクープ完全版】[見逃し配信] - 見逃し配信 https://diamond.jp/articles/-/272451 パナソニック「割増退職金万円」の壮絶リストラ、年齢別加算金リスト判明【スクープ完全版】見逃し配信見逃し配信人員整理をタブー視してきたパナソニックが、バブル入社組を標的にした本気のリストラに着手する。 2021-05-29 05:05:00
北海道 北海道新聞 WHO、追加調査備え要点を精査 コロナウイルス起源解明巡り https://www.hokkaido-np.co.jp/article/549341/ 世界保健機関 2021-05-29 05:12:00
北海道 北海道新聞 緊急事態延長 局面打開へ抜本対策を https://www.hokkaido-np.co.jp/article/549294/ 局面打開 2021-05-29 05:05:00
ビジネス 東洋経済オンライン スズキが直面「インドとミャンマー」という難関 積年の課題「インド一本足」から脱却できるか | 経営 | 東洋経済オンライン https://toyokeizai.net/articles/-/430792?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2021-05-29 05:30:00

コメント

このブログの人気の投稿

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