Open k70suK3-k06a7ash1 opened 2 weeks ago
チャット欄フォーカス QuestionIconでショートカット一覧を表示
refをChatInput内で定義しているため、liftupするか、ref合成の必要ありそう?
綺麗ではないけどText Areaに個別にEffect追加
こんな感じでModal作成しました
@wadabee @statefb こちらお手隙でご確認いただけますと幸いですmm
Lint修正
@wadabee レビューありがとうございます!! 修正します!
sample code
var ua = window.navigator.userAgent.toLowerCase();
if(ua.indexOf("windows nt") !== -1) {
console.log("「Microsoft Windows」をお使いですね!");
} else if(ua.indexOf("android") !== -1) {
console.log("「Android」をお使いですね!");
} else if(ua.indexOf("iphone") !== -1 || ua.indexOf("ipad") !== -1) {
console.log("「iOS」をお使いですね!");
} else if(ua.indexOf("mac os x") !== -1) {
console.log("「macOS」をお使いですね!");
} else {
console.log("何をお使いなのですか?");
}
Premise : macOS
userAgent | userAgentData | |
---|---|---|
Safari | macOS | disabled api |
Chrome | getOS => Android | NotWindows as macOS |
window.navigator?.userAgentData
?.getHighEntropyValues(['platformVersion'])
?.then((ua) => {
if (navigator.userAgentData.platform === 'Windows') {
const majorPlatformVersion = parseInt(
ua.platformVersion.split('.')[0]
);
if (majorPlatformVersion >= 13) {
console.log('Windows 11 or later');
} else if (majorPlatformVersion > 0) {
console.log('Windows 10');
} else {
console.log('Before Windows 10');
}
} else {
console.log('Not running on Windows');
}
});
See : https://learn.microsoft.com/ja-jp/microsoft-edge/web-platform/how-to-detect-win11
import Bowser from 'bowser';
...
const browser = Bowser.getParser(window.navigator.userAgent);
const os = browser.getOSName();
build-in
@statefb @wadabee こちら修正とWindows端末での検証まで完了しました!
ありがとうございます! @wadabee LGTMでしたらマージお願いします!
Issue #, if available:
370
368
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.