From 057e92afb818f3c77a8a2ae202cc0e864cf65afe Mon Sep 17 00:00:00 2001 From: Andrey Nekrasov Date: Fri, 19 Mar 2021 12:39:18 +0300 Subject: [PATCH] [Old Settings] Warn the user on Windows < 1903 that next version won't be supported (#10313) --- src/settings-web/src/components/GeneralSettings.tsx | 6 ++++++ src/settings/settings-html/dist/bundle.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/settings-web/src/components/GeneralSettings.tsx b/src/settings-web/src/components/GeneralSettings.tsx index ad4e50a2ec..a334c013ac 100644 --- a/src/settings-web/src/components/GeneralSettings.tsx +++ b/src/settings-web/src/components/GeneralSettings.tsx @@ -58,6 +58,9 @@ export class GeneralSettings extends React.Component { return ( Available PowerToys + { + + } { Object.keys(power_toys_enabled).map( (key) => { let enabled_value=power_toys_enabled[key]; @@ -259,6 +262,9 @@ export class GeneralSettings extends React.Component { About PowerToys (Preview) + { + + } {"use strict";var e={418:e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,l=r(e),u=1;u{var o=n(294),r=n(418),i=n(840);function a(e,t,n,o,r,i,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,r,i,a,s],u=0;(e=Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw e.framesToPop=1,e}}function s(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;othis.eventPool.length&&this.eventPool.push(e)}function he(e){e.eventPool=[],e.getPooled=de,e.release=pe}r(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=le)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=le)},persist:function(){this.isPersistent=le},isPersistent:ue,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ue,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function n(){return o.apply(this,arguments)}var o=this;t.prototype=o.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},o.Interface,e),n.extend=o.extend,he(n),n},he(ce);var fe=ce.extend({data:null}),me=ce.extend({data:null}),ge=[9,13,27,32],ve=q&&"CompositionEvent"in window,ye=null;q&&"documentMode"in document&&(ye=document.documentMode);var be=q&&"TextEvent"in window&&!ye,_e=q&&(!ve||ye&&8=ye),ke=String.fromCharCode(32),xe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ce=!1;function we(e,t){switch(e){case"keyup":return-1!==ge.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Se(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ee=!1,Te={eventTypes:xe,extractEvents:function(e,t,n,o){var r=void 0,i=void 0;if(ve)e:{switch(e){case"compositionstart":r=xe.compositionStart;break e;case"compositionend":r=xe.compositionEnd;break e;case"compositionupdate":r=xe.compositionUpdate;break e}r=void 0}else Ee?we(e,n)&&(r=xe.compositionEnd):"keydown"===e&&229===n.keyCode&&(r=xe.compositionStart);return r?(_e&&"ko"!==n.locale&&(Ee||r!==xe.compositionStart?r===xe.compositionEnd&&Ee&&(i=se()):(ie="value"in(re=o)?re.value:re.textContent,Ee=!0)),r=fe.getPooled(r,t,n,o),(i||null!==(i=Se(n)))&&(r.data=i),G(r),i=r):i=null,(e=be?function(e,t){switch(e){case"compositionend":return Se(t);case"keypress":return 32!==t.which?null:(Ce=!0,ke);case"textInput":return(e=t.data)===ke&&Ce?null:e;default:return null}}(e,n):function(e,t){if(Ee)return"compositionend"===e||!ve&&we(e,t)?(e=se(),ae=ie=re=null,Ee=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1