File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 "@monkeytype/schemas" : " workspace:*" ,
3232 "@monkeytype/util" : " workspace:*" ,
3333 "@sentry/browser" : " 10.44.0" ,
34- "@sentry/vite-plugin" : " 3.3.1 " ,
34+ "@sentry/vite-plugin" : " 5.2.0 " ,
3535 "@solid-devtools/overlay" : " 0.33.5" ,
3636 "@solid-primitives/refs" : " 1.1.2" ,
3737 "@solid-primitives/transition-group" : " 1.1.2" ,
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ export function apply(): void {
4646 filter : filterCSS ,
4747 width : `calc(100% + ${ filters . blur . value * 4 } rem)` ,
4848 height : `calc(100% + ${ filters . blur . value * 4 } rem)` ,
49- left : `-${ filters . blur . value * 2 } rem` ,
50- top : `-${ filters . blur . value * 2 } rem` ,
49+ // left: `-${filters.blur.value * 2}rem`,
50+ // top: `-${filters.blur.value * 2}rem`,
5151 position : "absolute" ,
5252 } ;
5353 qs ( ".customBackground img" ) ?. setStyle ( css ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { getActivePage } from "../../states/core";
66import { hotkeys , quickRestartHotkeyMap } from "../../states/hotkeys" ;
77import { createHotkey } from "./utils" ;
88import { getConfig } from "../../config/store" ;
9- import { isLongTest } from "../../states/test" ;
9+ import { isLongTest , wordsHaveNewline , wordsHaveTab } from "../../states/test" ;
1010
1111function quickRestart ( e : KeyboardEvent ) : void {
1212 if ( isAnyPopupVisible ( ) ) {
@@ -37,5 +37,10 @@ createHotkey(
3737createHotkey (
3838 ( ) => quickRestartHotkeyMap [ getConfig . quickRestart ] ,
3939 quickRestart ,
40- ( ) => ( { enabled : isLongTest ( ) } ) ,
40+ ( ) => ( {
41+ enabled :
42+ isLongTest ( ) &&
43+ ! ( wordsHaveTab ( ) && getConfig . quickRestart === "tab" ) &&
44+ ! ( wordsHaveNewline ( ) && getConfig . quickRestart === "enter" ) ,
45+ } ) ,
4146) ;
Original file line number Diff line number Diff line change @@ -28,14 +28,26 @@ createEffect(() => {
2828
2929function updateHotkeys ( ) : Hotkeys {
3030 const isOnTestPage = getActivePage ( ) === "test" ;
31+
32+ const quickRestartIsTab = getConfig . quickRestart === "tab" ;
33+ const quickRestartIsEnter = getConfig . quickRestart === "enter" ;
34+ // const quickRestartIsEsc = getConfig.quickRestart === "esc";
35+
36+ const commandlineIsTab = getConfig . quickRestart === "esc" ;
37+ // const commandlineIsEsc = getConfig.quickRestart !== "esc";
38+
3139 return {
3240 quickRestart : shiftHotkey (
3341 quickRestartHotkeyMap [ getConfig . quickRestart ] ,
34- isOnTestPage && ( wordsHaveTab ( ) || isLongTest ( ) ) ,
42+ isOnTestPage &&
43+ ( ( wordsHaveTab ( ) && quickRestartIsTab ) ||
44+ ( ( wordsHaveNewline ( ) || getConfig . funbox . includes ( "58008" ) ) &&
45+ quickRestartIsEnter ) ||
46+ isLongTest ( ) ) ,
3547 ) ,
3648 commandline : shiftHotkey (
37- getConfig . quickRestart === "esc" ? "Tab" : "Escape" ,
38- isOnTestPage && wordsHaveNewline ( ) ,
49+ commandlineIsTab ? "Tab" : "Escape" ,
50+ isOnTestPage && wordsHaveTab ( ) && commandlineIsTab ,
3951 ) ,
4052 } ;
4153}
Original file line number Diff line number Diff line change 44 UserConfig ,
55 BuildEnvironmentOptions ,
66 PluginOption ,
7- Plugin ,
87 CSSOptions ,
98} from "vite" ;
109import path from "node:path" ;
@@ -181,15 +180,15 @@ function getPlugins({
181180 } ,
182181 } ) ,
183182 useSentry
184- ? ( sentryVitePlugin ( {
183+ ? sentryVitePlugin ( {
185184 authToken : env [ "SENTRY_AUTH_TOKEN" ] ,
186185 org : "monkeytype" ,
187186 project : "frontend" ,
188187 release : {
189188 name : clientVersion ,
190189 } ,
191190 applicationKey : "monkeytype-frontend" ,
192- } ) as Plugin )
191+ } )
193192 : null ,
194193 injectPreload ( ) ,
195194 minifyJson ( ) ,
You can’t perform that action at this time.
0 commit comments