IT |
気になる、記になる… |
Anker、ハイレゾ音源対応DACチップを採用した「Anker USB-C & 3.5mm オーディオアダプタ」を発売 |
https://taisy0.com/2021/07/07/142770.html
|
anker |
2021-07-07 09:31:53 |
TECH |
Engadget Japanese |
手ぶら派ビジネスマンがスマホ以外に唯一持つならミニマリスト財布 |
https://japanese.engadget.com/roland-wallet-093057145.html
|
rolandalexabrasus |
2021-07-07 09:30:57 |
TECH |
Engadget Japanese |
3ヵ月480円でキッズコンテンツを使い放題。「Amazon Kids+」のキャンペーンが実施中 |
https://japanese.engadget.com/amazon-kidsplus-092759631.html
|
amazon |
2021-07-07 09:27:59 |
ROBOT |
ロボスタ |
Spotify 6月29日に開催したウェビナー「loveAudio June 2021〜音声広告の今〜」の録画を公開 |
https://robotstart.info/2021/07/07/spotify-loveaudio-june2021-recording.html
|
loveaudiojune |
2021-07-07 09:53:25 |
ROBOT |
ロボスタ |
テトラ・アビエーションと福島県南相馬市 空飛ぶクルマの開発や人材育成に向けて連携 新機種「Mk-5」のイメージ画像も公開 |
https://robotstart.info/2021/07/07/tetra-aviation-fukushima-evtol.html
|
evtol |
2021-07-07 09:22:08 |
IT |
ITmedia 総合記事一覧 |
[ITmedia エンタープライズ] エレコムのルーター製品に脆弱性 選択肢は利用停止と買い替えのみ |
https://www.itmedia.co.jp/enterprise/articles/2107/07/news094.html
|
itmedia |
2021-07-07 18:40:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia Mobile] 山陰地方で大雨 島根県出雲市の一部においてNTTドコモの通信障害が発生 |
https://www.itmedia.co.jp/mobile/articles/2107/07/news141.html
|
itmediamobile |
2021-07-07 18:15:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] Twitter、アカウントを検索から隠すなど4つの新機能を検討 |
https://www.itmedia.co.jp/news/articles/2107/07/news140.html
|
itmedianewstwitter |
2021-07-07 18:06:00 |
TECH |
Techable(テッカブル) |
LINEで医療相談・医薬品購入・服薬指導を提供するオンライン薬局「YOJO」 |
https://techable.jp/archives/157758
|
yojotechnologies |
2021-07-07 09:00:16 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
【Python】Altair でビッグデータを可視化する |
https://qiita.com/keisuke-ota/items/09a6d5007957c139ce2a
|
この学校には学生が人在籍し、普通、特進、理数のクラスが存在する。 |
2021-07-07 18:48:24 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Docker DesktopでWindows環境(+Python)を利用する |
https://qiita.com/ybsh2891/items/894ba00a738b768794ce
|
コンテナを起動設定ダイアログでRunを押すと、Pythonが入った状態のWindowsコンテナが起動する。 |
2021-07-07 18:39:04 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
iOS アプリ開発時、ダークモードに一切対応しない場合リジェクト対象となるか。 |
https://teratail.com/questions/348225?rss=all
|
iOSアプリ開発時、ダークモードに一切対応しない場合リジェクト対象となるか。 |
2021-07-07 18:54:50 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
matplotlibを使った複数要素の効率的なグラフ化のやり方 |
https://teratail.com/questions/348224?rss=all
|
matplotlibを使った複数要素の効率的なグラフ化のやり方ご覧いただきありがとうございます。 |
2021-07-07 18:54:46 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
データを出してと頼まれた時のSQLコードの書くスピードについて |
https://teratail.com/questions/348223?rss=all
|
データ |
2021-07-07 18:40:13 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Tilemap2Dの カーソルの位置が変。 |
https://teratail.com/questions/348222?rss=all
|
TilemapDのカーソルの位置が変。 |
2021-07-07 18:39:13 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Next.jsでStateを変更してもClassNameが変わらない |
https://teratail.com/questions/348221?rss=all
|
NextjsでStateを変更してもClassNameが変わらない前提・実現したいことNextjsを利用し、動画再生サイトを作成しています。 |
2021-07-07 18:33:31 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Arduino MsTimer2 任意のタイミングでスタートする方法 |
https://teratail.com/questions/348220?rss=all
|
ArduinoMsTimer任意のタイミングでスタートする方法前提・実現したいことMsTimerのスタートタイミングを、合図の後にすること。 |
2021-07-07 18:31:58 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Laravel8でキャメルケースのルートモデル結合ができない |
https://teratail.com/questions/348219?rss=all
|
Laravelでキャメルケースのルートモデル結合ができないルーティングで、ルートモデル結合ルートモデルバインディングがうまくいかなくて困っています。 |
2021-07-07 18:30:57 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Monaca Android盤 カスタムビルドデバッガーが動作しない |
https://teratail.com/questions/348218?rss=all
|
MonacaAndroid盤カスタムビルドデバッガーが動作しない前提・実現したいことmonacaでカスタムCordovaプラグインのquotHellownbspWorldquotを作成し、AndroidのカスタムビルドをQRコードでインストールしました。 |
2021-07-07 18:29:46 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
JavaScriptで文字列からURLパラメータを抽出したい |
https://teratail.com/questions/348217?rss=all
|
JavaScriptで文字列からURLパラメータを抽出したい前提・実現したいこと見ているページのURLを解析するのではなく、与えられた文字列からURLパラメータを抽出したいです。 |
2021-07-07 18:23:23 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
inline-blockのsvgとブロック要素のテキストの垂直位置を中央に揃えたい |
https://teratail.com/questions/348216?rss=all
|
inlineblockのsvgとブロック要素のテキストの垂直位置を中央に揃えたい前提・実現したいことデモ↑テキストとSVGを含んだブロック要素のaタグがあります。 |
2021-07-07 18:22:44 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Javascriptでmetaタグ内のlink要素の一部を書き換えたい |
https://teratail.com/questions/348215?rss=all
|
Javascriptでmetaタグ内のlink要素の一部を書き換えたいJavascriptを使ってページロード時にmetaタグ内のltlinkgtのソースを書き換えようとしています。 |
2021-07-07 18:14:54 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
本文が生成されてからfunctions.phpを実行したい |
https://teratail.com/questions/348214?rss=all
|
|
2021-07-07 18:03:26 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
typescriptで特定チェックボックスにチェックをつけたら他のチェックボックスにもチェックをつけたい |
https://teratail.com/questions/348213?rss=all
|
typescriptで特定チェックボックスにチェックをつけたら他のチェックボックスにもチェックをつけたい下記のようなチェックボックスがあります。 |
2021-07-07 18:00:28 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
データベースのトラブルシューティングについて |
https://qiita.com/itoshin1341/items/12e47631a6fa5b309888
|
①既存のマイグレーションファイルをロールバックする②マイグレーションファイルに記載されているカラムの設定を編集する③マイグレーションを実行して、データベースに適用するテーブルの再作成方法テーブル名を誤ってしまった場合などに、モデルに紐づくテーブルを作り直したいときがあります。 |
2021-07-07 18:33:56 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS EC2に新しくEBSを作成してアタッチする方法 |
https://qiita.com/xkato-fumifumi/items/b61e6ebe241707e169a9
|
AWSECに新しくEBSを作成してアタッチする方法デバイスの紐づけが複雑なので書き留めてみたまずは簡単にECを作成tmicrogtgtTeratermでログイン今アタッチされているデバイスはこれ左ペインからボリュームを選択ボリュームの作成を押下するスループット最適HDDを選択する一覧を確認するavailableなのでボリュームのアタッチをするECからストレージを確認するとアタッチされていることが確認できるコマンドからデバイスを確認するgtgtxvdfファイルにリンクされていることがわかるlsblkコマンドで利用可能なデバイスの一覧を表示するAmazonLinuxで使用されているデバイスの一覧を表示するまだHDDが表示されない。 |
2021-07-07 18:38:34 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS T系RDSのCredit Specificationはt2かt3かで決まる |
https://qiita.com/hachicomb/items/921e2ba0581d3a873337
|
AmazonECの場合、TのデフォルトはStandardMode、TのデフォルトはUnlimitedModeです。 |
2021-07-07 18:17:14 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
Docker DesktopでWindows環境(+Python)を利用する |
https://qiita.com/ybsh2891/items/894ba00a738b768794ce
|
コンテナを起動設定ダイアログでRunを押すと、Pythonが入った状態のWindowsコンテナが起動する。 |
2021-07-07 18:39:04 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
既存ユーザーへのUUIDの割り当てで恥をかいた話 |
https://qiita.com/k0kishima/items/5a3a6e64510086301442
|
改善案前章のSlackチャンネルにて、優秀なエンジニアの方が改善案を出してくれた。 |
2021-07-07 18:35:28 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
データベースのトラブルシューティングについて |
https://qiita.com/itoshin1341/items/12e47631a6fa5b309888
|
①既存のマイグレーションファイルをロールバックする②マイグレーションファイルに記載されているカラムの設定を編集する③マイグレーションを実行して、データベースに適用するテーブルの再作成方法テーブル名を誤ってしまった場合などに、モデルに紐づくテーブルを作り直したいときがあります。 |
2021-07-07 18:33:56 |
技術ブログ |
Developers.IO |
[Python]tabulateを使って様々な形式の表を作る |
https://dev.classmethod.jp/articles/python-tabulate/
|
latex |
2021-07-07 09:59:03 |
技術ブログ |
Developers.IO |
AWSで使わないリージョンへの対策まとめ |
https://dev.classmethod.jp/articles/how-to-restrice-access-to-unused-regions/
|
集積 |
2021-07-07 09:55:31 |
技術ブログ |
Developers.IO |
AWSサブネットの切り方を考えてみた |
https://dev.classmethod.jp/articles/vpc-subnet-design/
|
ohumanlaborisnohumanerror |
2021-07-07 09:46:44 |
技術ブログ |
Developers.IO |
いつどこで課金が発生してる?Amazon SageMakerの動きと料金体系をセットで考える |
https://dev.classmethod.jp/articles/sagemaker-pricing/
|
amazonsagemaker |
2021-07-07 09:45:12 |
技術ブログ |
Developers.IO |
バックオフィスとして入社して16年が経ちました |
https://dev.classmethod.jp/articles/backoffice_16year/
|
初心忘るべからず |
2021-07-07 09:36:39 |
技術ブログ |
Developers.IO |
EC2 インスタンスの Docker から SQL*Plus を使用して RDS for Oracle へ接続してみた |
https://dev.classmethod.jp/articles/connect-to-rdsfororacle-using-sqlplus-from-docker-on-ec2/
|
docker |
2021-07-07 09:33:48 |
技術ブログ |
Developers.IO |
AWS Elemental MediaLive のリザーブド料金の仕組みを整理してみる |
https://dev.classmethod.jp/articles/aws-elemental-medialive-reserved/
|
awselementalmedialive |
2021-07-07 09:03:07 |
技術ブログ |
Developers.IO |
[Amazon Connect]リアルタイムで音声認識&日本語翻訳&感情分析できるソリューションをやってみた |
https://dev.classmethod.jp/articles/amazon-connect-ai-analysis/
|
amazon |
2021-07-07 09:02:52 |
技術ブログ |
Developers.IO |
Fivetranのダッシュボード |
https://dev.classmethod.jp/articles/fivetran-dashboard/
|
fivetran |
2021-07-07 09:00:57 |
海外TECH |
DEV Community |
How to create a Slack-like chatbox with TalkJS Themes |
https://dev.to/talkjs/how-to-create-a-slack-like-chatbox-with-talkjs-themes-34bf
|
How to create a Slack like chatbox with TalkJS ThemesCreating a chat function in your app can be a long and difficult process thankfully the TalkJS chat API makes that easy we can even customise it to make it look in keeping with our app We ll explore how we can recreate a chat UI that looks similar to Slack Create a new themeHead over to the Theme Editor and create a new theme and name it something useful to you in this case we ll call it slack like Then we should apply this theme to a Role since different roles can have different themes You can learn a bit more about roles in the TalkJS Docs Editing LayoutWe need to make our chatbox expand to fill the space available Go to the Theme Editor select your theme and select Chatbox and we will just remove the value for maxWidth since we want it to fill the available area Chat HeaderThe Header is quite straightforward it s quite plain with a Title which can be user names or the chat subject along with an avatar if it s a single user In the theme editor select your theme to edit then open the component called ChatHeader Let s change some styles first head down to the lt style gt section and change the background color of the header class we ll add a bottom border in too header display flex align items center height rem background color fff border bottom px solid DDDC flex shrink Now adjust the title class which show s either the chat s subject user or users We ll make it slightly larger and make the text black title font weight bold text overflow ellipsis overflow hidden white space nowrap font size rem color You should end up with something like this Finally we want to only show the image if it s a singular user we re chatting to We can use a conditional for this At the top of the ChatHeader component you ll see a large comment which contains the available data for this component There you ll see a Conversation object with a property called isGroupChat Sounds perfect for what we want to achieve which is only to show an avatar if it s a singular chat not a group chat Scroll down to the markup and look for where we show the image in this case lt ConversationImage conversation conversation gt On the parent div we can add our condition lt div class image t if conversation isGroupChat is falsy gt lt ConversationImage conversation conversation gt lt div gt We ve used some t if attributes here these are a part of the TalkJS template language if the value is false then this whole element will not be included in the DOM Now if we have if the conversation is a group chat we won t show the image Chat MessagesCurrently chat messages are in message bubbles with avatars to the side We want our messages to display avatars to the left with the name and message next to it AvatarsWe re going to make the avatars rounded rectangles rather than circles ーfeel free to skip this step if you d like to keep them circular Open the Avatar component in the Theme Editor and make some changes We can go ahead and remove the border and then set a border radius to something to resemble a rounded rectangle maybe px is enough We ll also make the size slightly smaller too You ll end up with some CSS in that file that looks like this avatar overflow hidden background color fff background size cover background repeat no repeat background position center center box shadow px px rgba border radius px prevent the avatar from shrinking if the contents next to it is large flex shrink Align to the start top in this case but because we use align items center on the parent the message will be vertically centered unless it is taller than this Avatar align self flex start Avatar width is also used when sizing message bubbles be sure to update the width in UserMessage if needed width rem height rem You ll notice this Avatar also represents the avatar in our ChatHeader User MessageEach message is wrapped in it s own container and in there we have Avatar and MessageBody which we ll edit after this section This will form the new layout for each message row For each row we want a div with some classes on and we can use some of the data from each message to add an additional class if the data meets a condition in this instance we will add a class called previous same if the message sent before this one was also the same sender By using lt t set gt we can set a new variable based off of some values Here we use it so we don t have to type out the full object since we are going to be reusing the previousSenderId later too but we ll get to that lt t set t if previousMessage and previousMessage sender previousSenderId previousMessage sender id gt lt div class message container sender id previousSenderId then previous same gt lt div gt Then we can use these classes to set some styles for spacing between each row You can use whatever values you like for the margin values message container margin top rem message container previous same margin top rem Inside the container we will set the layout of the contents which is an avatar the sender s name the timestamp and the message body So let s break this section down in the message container we will have another div that we ll give a class and then some conditional classes too body type will attach some classes that we could use to style some messages differently e g file location or text You can find out all the variables and components at the top of the UserMessage file as a comment lt div class message row body type gt lt div gt Now let s get some content in this row We want to display an avatar but if that user has sent multiple messages we just want to show it once By setting t if we can conditionally show the avatar depending on the outcome of the passed data in this case if the current sender is not the same as the previous sender The variable we set earlier lt div class message row body type gt lt show the avatar but only if the previous message was by a different sender gt lt Avatar t if sender id previousSenderId photoUrl sender photoUrl gt lt div gt And some styles for that section could be message row display flex Align the avatar and the message centrally but if the message s height is greater than the avatar we will align it to the top See Avatar template for how this is achieved align items center We should show which user has sent this message too but again we don t want to show the name every time if they send messages So we can reuse our previousSenderId variable again here We ll also display what time that message was sent too lt div class message row body type gt lt show the avatar but only if the previous message was by a different sender gt lt Avatar t if sender id previousSenderId photoUrl sender photoUrl gt lt div class message gt lt div class message header t if sender id previousSenderId gt lt span class message author gt sender name lt span gt lt span class message timestamp gt lt TimeAgo timestamp timestamp gt lt span gt lt div gt lt div gt lt div gt And some styles for that could be message word wrap break word in case there are long links width color message header padding left rem message author font weight bold color margin right rem message timestamp font size em color EA A message row without a message isn t very useful let s add in the message body by using the built in MessageBody component we ll pass it the relevant properties too lt div class message row body type gt lt show the avatar but only if the previous message was by a different sender gt lt Avatar t if sender id previousSenderId photoUrl sender photoUrl gt lt div class message gt lt div class message header t if sender id previousSenderId gt lt span class message author gt sender name lt span gt lt span class message timestamp gt lt TimeAgo timestamp timestamp gt lt span gt lt div gt lt MessageBody body body timestamp timestamp floatTimestamp auto showStatus sender isMe isLongEmailMessage isLongEmailMessage gt lt div gt lt div gt Lets see how this looksHmm the second message we sent is out of alignment with the messages but that s because we aren t displaying an avatar here we can fix that by adding some padding on those messages that don t have avatars Let s use a conditional class on the message to fix that problem lt div class message sender id previousSenderId then has avatar spacer gt lt div gt And the CSS we just need to add some padding left which is the same width as our Avatar from earlier Avatar spacer is for when multiple messages are sent by the same user but only avatar is displayed so we need a space message has avatar spacer Avatar width see Avatar component padding left rem This looks aligned and much tidier Now we can adjust the spacing between messages since that s pretty large right now We can just reuse our previousSenderId variable again to fix this let s add a conditional class to the message container div lt div class message container sender id previousSenderId then previous same gt lt div gt Then we can set the margin to be smaller with this class message container margin top rem message container previous same margin top rem It s better but the gap is still large that s because each MessageBody has its own styles and theres some default padding on there Open up the MessageBody subcomponent and remove some of the things we probably don t need anymore like the time stamp since we have that on the UserMessage instead We ll also adjust the padding here since we don t have bubbles around each message anymore lt template gt lt span t if body type location class thumbnail gt lt Thumbnail location body location gt lt span gt lt span t else if body type file and body hasThumbnail class thumbnail gt lt Thumbnail file body file gt lt span gt lt t set t if body type file filetype body file type gt lt div class text gt lt span t if isLongEmailMessage gt lt small gt lt i gt lt Icon type email gt strings MESSAGE SENT VIA EMAIL lt i gt lt small gt lt br gt lt br gt lt span gt lt span t if body type location class message text gt lt a href body location target blank rel noopener gt body location lt a gt lt span gt lt span t if body type file class message text gt lt a class download link href body file url target blank rel noopener noreferrer gt lt Icon type download gt lt span gt body file formattedFilename lt span gt lt a gt lt span class filesize gt body file size filesize lt span gt lt span gt lt span t if body type text class message text gt body formattedText lt span gt lt div t if body type typing indicator class typing indicator gt lt TypingIndicator gt lt div gt lt div gt lt template gt lt style scoped gt text padding rem rem white space pre wrap text a color currentColor thumbnail height px max width px display block margin left rem background color eecee margin bottom rem download link word break break all text decoration none download link span text decoration underline filesize white space nowrap font size rem lt style gt Message FieldFinally let s set our input border color to be a bit darker we do that in the layout section under Message field Let s check it out now Looks pretty good Full code snippets for each file section are below if you would rather just copy paste into your own theme Code Snippets Avatar lt template gt lt div class avatar float float style background image url photoUrl gt lt div gt lt template gt lt style scoped gt avatar overflow hidden background color fff background size cover background repeat no repeat background position center center box shadow px px rgba border radius px prevent the avatar from shrinking if the contents next to it is large flex shrink Align to the start top in this case but because we use align items center on the parent the message will be vertically centered unless it is taller than this Avatar align self flex start Avatar width is also used when sizing message bubbles be sure to update the width in UserMessage if needed width rem height rem lt style gt ChatHeader lt template gt lt header class header gt lt SearchBox t if showSearchBox class search gt lt div t else class inner gt lt div class content gt lt div class image t if conversation isGroupChat is falsy gt lt ConversationImage conversation conversation gt lt div gt lt t set names conversation others map name join gt lt div t if conversation formattedSubject class info gt lt div class title gt conversation formattedSubject lt div gt lt div class subtitle gt names lt div gt lt div gt lt div t else class info gt lt div class title gt names lt div gt lt div gt lt div gt lt div class actions gt lt SearchButton t if showSearchButton class action button gt lt Icon type search gt lt SearchButton gt lt CloseButton t if showCloseButton class action button gt lt Icon type close gt lt CloseButton gt lt div gt lt div gt lt header gt lt template gt lt style scoped gt header display flex align items center height rem background color fff border bottom px solid DDDC flex shrink inner flex grow flex basis display flex align items center padding left rem padding right rem min width content flex grow display flex align items center min width image width px text align center flex shrink margin right rem info flex grow flex basis min width actions flex shrink margin left auto title font weight bold text overflow ellipsis overflow hidden white space nowrap font size rem color subtitle text overflow ellipsis overflow hidden white space nowrap actions display flex align items center action button removing the browser s default button styles background color transparent border none outline none color inherit cursor pointer display flex align items center justify content center color rgba transition s ease out Increase the tap size of the button box sizing content box padding rem margin rem width rem height rem action button action button margin left action button hover color rgba search background color transparent flex grow lt style gt UserMessage lt template gt lt set this to false to hide the avatars besides messages gt lt t set showAvatars true gt lt t set t if previousMessage and previousMessage sender previousSenderId previousMessage sender id gt lt div class message container sender id previousSenderId then previous same gt lt div class message row body type gt lt show the avatar but only if the previous message was by a different sender gt lt Avatar t if sender id previousSenderId photoUrl sender photoUrl gt lt div class message sender id previousSenderId then has avatar spacer body hasThumbnail then has thumbnail gt lt div class message header t if sender id previousSenderId gt lt span class message author gt sender name lt span gt lt span class message timestamp gt lt TimeAgo timestamp timestamp gt lt span gt lt div gt lt MessageBody body body timestamp timestamp floatTimestamp auto showStatus sender isMe isLongEmailMessage isLongEmailMessage gt lt div gt lt div gt lt div gt lt template gt lt style scoped gt message container margin top rem message container previous same margin top rem message row display flex Align the avatar and the message centrally but if the message s height is greater than the avatar we will align it to the top See Avatar template for how this is achieved align items center message white space normal word wrap break word width color Avatar spacer is for when multiple messages are sent by the same user but only avatar is displayed so we need a space message has avatar spacer Avatar width see Avatar component padding left rem message header padding left rem message author font weight bold color margin right rem message timestamp font size em color EA If there s a thumbnail show the author name in a bar above the thumbnail has thumbnail message author margin bottom rem typing indicator message width max content lt style gt MessageBody lt template gt lt span t if body type location class thumbnail gt lt Thumbnail location body location gt lt span gt lt span t else if body type file and body hasThumbnail class thumbnail gt lt Thumbnail file body file gt lt span gt lt t set t if body type file filetype body file type gt lt div class text gt lt span t if isLongEmailMessage gt lt small gt lt i gt lt Icon type email gt strings MESSAGE SENT VIA EMAIL lt i gt lt small gt lt br gt lt br gt lt span gt lt span t if body type location class message text gt lt a href body location target blank rel noopener gt body location lt a gt lt span gt lt span t if body type file class message text gt lt a class download link href body file url target blank rel noopener noreferrer gt lt Icon type download gt lt span gt body file formattedFilename lt span gt lt a gt lt span class filesize gt body file size filesize lt span gt lt span gt lt span t if body type text class message text gt body formattedText lt span gt lt div t if body type typing indicator class typing indicator gt lt TypingIndicator gt lt div gt lt div gt lt template gt lt style scoped gt text padding rem rem white space pre wrap text a color currentColor thumbnail height px max width px display block margin left rem background color eecee margin bottom rem download link word break break all text decoration none download link span text decoration underline filesize white space nowrap font size rem lt style gt |
2021-07-07 09:46:18 |
海外TECH |
DEV Community |
How to build a LinkedIn lookalike chat using TalkJS Chat API |
https://dev.to/talkjs/how-to-build-a-linkedin-lookalike-chat-using-talkjs-chat-api-1o0k
|
How to build a LinkedIn lookalike chat using TalkJS Chat APIRecently we have been looking at how we can use the Theme Editor present in the TalkJS Chat API to theme our chat We previously themed the chat to make it look more like WhatsApp and even Discord Today we are going to try our hands at making it look like the LinkedIn chat LinkedIn has had major UI overhauls in the recent past and we will try to implement the latest theme which is mostly white and black with a subtle hint of that famous LinkedIn blue Things to doLog in to your TalkJS dashboard and create a new theme We are going to name it LinkedIn Then head over to the Roles section and select the default role When you scroll down you can see the UI Theme section Select the LinkedIn theme that you created earlier in this section and save it Now the changes that you make on the Theme Editor can be viewed live just by refreshing your browser The default theme on the TalkJS chatbox looks like this Here is a brief summary of the changes that we need to make Change the header color to white and the header text to black Remove avatar from the header Remove the chat bubbles and their background colors Move the user avatar to the left side Add the user s name to the chat bubble Change the format of the time and move it next to the user s nameChange the message field background and highlight colorYou have to set up a very basic chatbox on your system to view these changes To do that follow our Getting Started guide After all of these changes have been made your chat should look like this As you can see it is almost identical to the LinkedIn chat Without further ado let s dive in to see where we made these changes and explain what they are ChatHeaderThe first section that we will look at is the ChatHeader Open up the stylesheet for the ChatHeader from the left menu and you will see a header class there Change the background color to FFF and the color to This will give the header the brand new look present in LinkedIn and the text inside it will be black Scroll down to the content class and add a padding left of rem This will move the name of the person towards the right hand side just like how it is on the LinkedIn chat AvatarNext we need to alter the avatar ever so slightly Find the avatar class on the stylesheet and change the width and height to rem and the align self property to center UserMessageThe majority of the changes are present in the UserMessage section of your TalkJS Editor We need to first edit the code to ensure that the user s name is displayed above the message For that change line to this lt div t if sender id previousSenderId and conversation others length gt This will ensure that for every conversation whose length is greater than and is not sent from the same user as the current user the user s name will be displayed We will also change the color of the user s name to black and increase its font size to This will be on line style font size px color gt Now in the LinkedIn chat we have the timestamp next to the user s name For that we will use the timestamp variable inside a tag and filter it using the available filters on line sender name lt span class time sent gt • timestamp date H m p lt span gt Next we need to remove the tick marks from the message as well as the time For that we need to remove the timestamp property and the showStatus property from line Once these changes are completed we will now scroll down to the style classes First up we have the message row class We need to change the margin bottom to rem and margin top to rem This will reduce the gap between each message To ensure that both the sender and receiver messages are on the same side we need to remove the flex direction row reverse property from the class message row by me After that edit the message class so that it looks like this message white space normal overflow hidden word wrap break word position relative display inline block max width calc rem rem rem color In the by me message class change the color to black If you noticed before we had added a new class to the timestamp next to the user s name This new class is called time sent and we will add the following styles to it time sent font size px color FFF font weight normal One last change we need to make is to change the padding right to padding left in the by me previous same class LayoutThe last section we need to edit is the layout Head over to the panel footer sub section and make the following changes backgroundColor FFAFBborderTopWidth pxborderTopColor EEEWe have a few changes to make in the message field sub section The changes are given below borderRadius pxborderColor DDDbackgroundColor FFFFFFcolor Lastly in the Highlights section change the background color to C and you should be all set With that you should have a chat that looks like this It is very close to the actual LinkedIn chat and thanks to the Theme Editor on TalkJS you can come up with many such themes with its easy to use interface and minimal coding requirement We can t wait to see what you guys come up with using the Theme Editor The possibilities are endless |
2021-07-07 09:44:26 |
海外TECH |
DEV Community |
Supabase June Release 2021 |
https://dev.to/supabase_io/supabase-june-release-2021-213f
|
Supabase June Release Supabase is gearing up for another Launch Week on July the th Until then here s a few new things to try This is also available as a blog post and a video demo Vercel integrationVercel just released their new integrations which means you can now deploy a Postgres database on Supabase directly from your Vercel account Check it out vercel com integrations supabase Discord logins are now availableBuilding a community There s almost no better tool than Discord we re even trialling it ourselves If you re building a community product Discord logins are the perfect option New GuidesWe spent the month building up a new Guides section in our Docs Here are a few highlights Postgres Full Text SearchEver wanted to build a Search Engine We just released a guide which shows you how to implement Full Text Search using Postgres OAuth GuidesWe released step by step guides to help you set up OAuth with Apple Bitbucket Facebook GitHub GitLab Google and Twitter Javascript PostgresDid you know that you can use Javascript inside your Postgres database Here s how with the plv extension Public Storage BucketsWant to share all your favourite memes Now it s even easier with Public Storage Buckets Simply mark a bucket as Public and the content will be accessible without a login Storage upsertsSupabase Storage now supports upsert Shoutout to ankitjena for this Pull Request Server restartsWhen things go wrong sometime the best thing you can do is reboot We released a restart button in the Dashboard the first of many debugging tools we ll be releasing over the next few months Policy editorWe added a new Table Policy Editor which makes Row Level Security even easier We even included a few templates to get you started Build in PublicWe run a weekly hour live stream where we build in public Build in Public Redwood PR GitHub Discussions Pricing Pages Postgres Policies Styling docsBuild in Public Svelte Quickstart new supabase js release monthly GitHub releaseBuild in Public Supabase StudioBuild in Public Supabase Studio API Docs Community dabit released a complete guide to Supabase on FreeCodeCamp Twitter Blog raddevon built a social network using Supabase and Vue Twitter YouTube JonoYeong built live with Supabase SvelteKit Twitter TwitchIf you want to keep up to date make sure you subscribe to our YouTube channel or follow us on Twitter External contributions PostgRESTPrimarily for Prisma users we patched PostgREST openapi mode to ignore anon privileges for the OpenAPI output Credit to steve chavez We added better PostgREST logging to include timestamps for every errorCredit to steve chavez AuthWe fixed a XSS bug in the Auth Next js library GitHub Credit to inian and Ishan Patel a Supabase community member Coming NextLaunch Week Remember that time we did a Launch Week Well we re doing it again at the end of July Strap in because we re shipping one thing every day for a week Let s goooooo Get startedStart using Supabase today app supabase ioMake sure to star us on GitHubFollow us on TwitterSubscribe to our YouTube channelBecome a sponsor |
2021-07-07 09:31:12 |
海外TECH |
DEV Community |
Star-rating with simple animations (the saga continues) |
https://dev.to/link2twenty/star-rating-with-simple-animations-the-saga-continues-5cgj
|
Star rating with simple animations the saga continues I don t know if you ve all noticed but there have been a lot of star rating posts being published on Dev these past few days Including an entry from me The main problem with my entry was that while it was accessible it was a little boring Now I know star ratings need to be functional so I won t be doing anything crazy like using one giant star but I will be adding some simple animations The saga so farIf you want to read through the articles written so far check out inhuofficial lapstjup madsstoumann afif and siddharthshyniben If you d like to throw your own hat into the ring with a different way to achieve a star rating it doesn t even have to be with web tech feel free to write a post and let one of us know The codeI m not going to change my html if it ain t broke don t fix it So if you want to look at the html and the logic behind it you ll need to have a look at my last post Star rating using Unicode stars Andrew Bone・Jul ・ min read ay beginners webdev css The animationsI didn t want anything to excessive so I ll be adding a little shake and pulse animation when a new star is selected The shakeThe shake is a transform rotate which is in a keyframe this allows us to have a more complex animation star rating gt input checked label gt span star animation shake ms cubic bezier both transform rotateZ keyframes shake transform rotateZ deg transform rotateZ deg transform rotateZ deg transform rotateZ deg The pulseThe pulse is slightly more complex but only slightly We have to use a before and give it our star as its content this is so our pulse can match the shape After that we just scale our pseudo element and make it more transparent star rating gt input checked label gt span star before content pointer events none position absolute top right bottom left color currentColor webkit text stroke animation pulse ms cubic bezier forwards transform scale opacity keyframes pulse transform scale opacity transform scale opacity Prefers Reduced MotionThe aim is to keep this component accessible and part of that is supporting people that can t handle too much motion and thusly have the prefers reduced motion rule enabled in their browser It s pretty simple to add support for this For our shake we can just set the animation back to initial meaning it never plays and for our pulse we can hide the entire before element media prefers reduced motion star rating gt input checked label gt span star animation initial star rating gt input checked label gt span star before display none It really is that simple to implement prefers reduced motion and it can be so helpful for many people The resultWhere here it is the result As I said earlier the HTML and functionality haven t changed but now we have a little pizazz Signing offAs always if you have any questions or feedback please leave a comment and I ll take a look It d be great if you could have a look at the other posts on this topic too they re really good and everyone has a different take I do hope this sort of post is helpful would you be interested if this became a regular thing Maybe a monthly topic that had a few people posting their take Thank you so much for reading ️️️ |
2021-07-07 09:00:37 |
医療系 |
医療介護 CBnews |
認知症疾患医療センター、川崎市が2カ所増設へ-評価委員会の結果公表、「8月に指定予定」 |
https://www.cbnews.jp/news/entry/20210707182845
|
医療法人 |
2021-07-07 18:35:00 |
金融 |
RSS FILE - 日本証券業協会 |
債券貸借取引残高等状況 (旧債券貸借取引状況) |
https://www.jsda.or.jp/shiryoshitsu/toukei/taishaku/index.html
|
貸借 |
2021-07-07 10:29:00 |
海外ニュース |
Japan Times latest articles |
Japan eyes putting Tokyo under virus state of emergency |
https://www.japantimes.co.jp/news/2021/07/07/national/tokyo-quasi-emergency-coronavirus/
|
Japan eyes putting Tokyo under virus state of emergencyThe government was also eyeing extending the quasi emergency for Saitama Chiba and Kanagawa prefectures while lifting the measure for the remaining six prefectures currently under |
2021-07-07 18:46:26 |
海外ニュース |
Japan Times latest articles |
Tokyo Olympics spectator issue moves into the political arena |
https://www.japantimes.co.jp/news/2021/07/07/national/tokyo-olympics-spectators-politics/
|
Tokyo Olympics spectator issue moves into the political arenaWith signs emerging of a new wave of infections in the capital competing narratives are emerging about the safety of allowing fans at Olympic venues |
2021-07-07 18:45:33 |
ニュース |
BBC News - Home |
Covid: Heathrow to trial fast-tracking vaccinated arrivals |
https://www.bbc.co.uk/news/business-57743038
|
pilot |
2021-07-07 09:27:31 |
ニュース |
BBC News - Home |
Peter R de Vries: Dutch crime journalist wounded in Amsterdam shooting |
https://www.bbc.co.uk/news/world-europe-57743233
|
amsterdam |
2021-07-07 09:37:17 |
ニュース |
BBC News - Home |
Copa America: Aston Villa keeper Emiliano Martinez saves three penalties for Argentina |
https://www.bbc.co.uk/sport/av/football/57748675
|
Copa America Aston Villa keeper Emiliano Martinez saves three penalties for ArgentinaAston Villa keeper Emiliano Martinez saves three spot kicks in the penalty shootout to send Argentina to the final of the Copa America where they will meet Brazil |
2021-07-07 09:06:03 |
ニュース |
BBC News - Home |
Covid: Who has to self-isolate and what if I'm fully vaccinated? |
https://www.bbc.co.uk/news/explainers-54239922
|
august |
2021-07-07 09:01:24 |
LifeHuck |
ライフハッカー[日本版] |
理想が詰まった夢のアウトドアワゴン! 「LOUNGEWAGON」の機能を総復習 |
https://www.lifehacker.jp/2021/07/237760-machi-ya-loungewagon-end.html
|
loungewagon |
2021-07-07 19:00:00 |
GCP |
Google Cloud Platform Japan 公式ブログ |
新しい調査結果: 企業によるクラウド セキュリティへの信頼がこれまで以上に向上 |
https://cloud.google.com/blog/ja/products/identity-security/enterprises-trust-cloud-security/
|
クラウドセキュリティはかつてないほど信頼性が向上結果を詳しく調べると、クラウドセキュリティが最新の攻撃から企業を保護する役割を実際に果たしているかどうかについて見方が変化していることも明らかでした。 |
2021-07-07 11:00:00 |
北海道 |
北海道新聞 |
8日の予告先発 |
https://www.hokkaido-np.co.jp/article/564466/
|
予告先発 |
2021-07-07 18:19:00 |
北海道 |
北海道新聞 |
戦時中の機雷爆発忘れない コープさっぽろ組合員ら湧別の慰霊碑など巡る |
https://www.hokkaido-np.co.jp/article/564465/
|
組合員 |
2021-07-07 18:18:00 |
北海道 |
北海道新聞 |
「日本は核禁止条約参加を」 採択4年、被爆者が集会 |
https://www.hokkaido-np.co.jp/article/564464/
|
核兵器禁止条約 |
2021-07-07 18:17:00 |
北海道 |
北海道新聞 |
ゆきいちごお披露目 中標津・シンクリッチ初出荷へ 関係者向け試食会「産地目指したい」 |
https://www.hokkaido-np.co.jp/article/564461/
|
農業法人 |
2021-07-07 18:17:00 |
北海道 |
北海道新聞 |
テレ朝、大リーグ球宴を生中継 大谷、ダルビッシュ、菊池選出 |
https://www.hokkaido-np.co.jp/article/564458/
|
大リーグ |
2021-07-07 18:14:00 |
北海道 |
北海道新聞 |
五輪マラソン・競歩、暑熱対策で氷を提供 組織委方針 |
https://www.hokkaido-np.co.jp/article/564449/
|
東京五輪 |
2021-07-07 18:09:18 |
ビジネス |
東洋経済オンライン |
ウッドショック「住宅木材」爆騰の衝撃【動画】 中小工務店の資金繰りが逼迫、影響の長期化も | 建設・資材 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/439366?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
東洋経済オンライン |
2021-07-07 18:05:00 |
ニュース |
Newsweek |
大村博士発見のイベルメクチンは新型コロナの「奇跡の治療薬」? 海外で評価割れる |
https://www.newsweekjapan.jp/stories/world/2021/07/post-96658.php
|
大村博士発見のイベルメクチンは新型コロナの「奇跡の治療薬」海外で評価割れる新たなコロナ治療薬として、既存の抗寄生虫薬「イベルメクチン」が期待されている。 |
2021-07-07 18:20:57 |
技術ブログ |
Goodpatch Blog |
クライアントのビジネスに並走する、Goodpatchのデザインパートナー事業で募集中の職種を紹介します!|Blog|Goodpatch グッドパッチ |
https://goodpatch.com/blog/recruit-design-partner
|
bloggoodpatch |
2021-07-07 09:03:23 |
IT |
週刊アスキー |
PayPayピックアップの利用可能店舗にモンテローザ運営の1378店舗が加入 |
https://weekly.ascii.jp/elem/000/004/061/4061897/
|
paypay |
2021-07-07 18:40:00 |
IT |
週刊アスキー |
サンワサプライ、台車のハンドルに取り付けられる専用の収納バックを発売 |
https://weekly.ascii.jp/elem/000/004/061/4061881/
|
必要 |
2021-07-07 18:30:00 |
IT |
週刊アスキー |
最大85%オフ!スクエニの「夏!到来セール」がニンテンドーeショップ/PS Storeで開催 |
https://weekly.ascii.jp/elem/000/004/061/4061884/
|
playstationstore |
2021-07-07 18:30:00 |
IT |
週刊アスキー |
JAPANNEXT、50型のHDR対応4Kディスプレーを6万円以下で発売 |
https://weekly.ascii.jp/elem/000/004/061/4061893/
|
japan |
2021-07-07 18:30:00 |
IT |
週刊アスキー |
MMORPG『BLESS UNLEASHED PC』公式YouTubeチャンネルで「バーサーカー」のスキル&コンボ紹介動画を公開! |
https://weekly.ascii.jp/elem/000/004/061/4061892/
|
blessunleashedpc |
2021-07-07 18:25:00 |
GCP |
Cloud Blog JA |
新しい調査結果: 企業によるクラウド セキュリティへの信頼がこれまで以上に向上 |
https://cloud.google.com/blog/ja/products/identity-security/enterprises-trust-cloud-security/
|
クラウドセキュリティはかつてないほど信頼性が向上結果を詳しく調べると、クラウドセキュリティが最新の攻撃から企業を保護する役割を実際に果たしているかどうかについて見方が変化していることも明らかでした。 |
2021-07-07 11:00:00 |
コメント
コメントを投稿