Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: quarkusio/code.quarkus.io
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1ae5722497d5495f063f20d2986e4fe605b445fa
Choose a base ref
..
head repository: quarkusio/code.quarkus.io
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e9bfc327603476c740fab8bedcd16595b144db74
Choose a head ref
6 changes: 4 additions & 2 deletions src/main/frontend/src/code-quarkus/code-quarkus.tsx
Original file line number Diff line number Diff line change
@@ -80,11 +80,13 @@ export function CodeQuarkus(props: LaunchFlowProps) {
const generate = () => {
setRun({ status: Status.RUNNING });

analytics && analytics.event('App', 'Generate', props.config.quarkusVersion);
analytics && project.extensions.forEach(e => analytics.event('Extension', 'Used', e));


generateProject(project).then((result) => {
setRun((prev) => ({ ...prev, result, status: Status.DOWNLOADED }));
analytics && analytics.event('App', 'Generate', props.config.quarkusVersion);
analytics && analytics.event('Extension', 'Combination', project.extensions.sort().join(","));
analytics && project.extensions.forEach(e => analytics.event('Extension', 'Used', e));
}).catch(error => {
setRun((prev) => ({ ...prev, status: Status.ERROR, error }));
});
2 changes: 1 addition & 1 deletion src/main/frontend/src/code-quarkus/form.tsx
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ export function CodeQuarkusForm(props: CodeQuarkusFormProps) {
props.onSave();
}
};
useHotkeys('alt+enter', save);
useHotkeys('alt+enter', save, [isMetadataValid]);
const keyName = window.navigator.userAgent.toLowerCase().indexOf('mac') > -1 ? '⌥' : 'alt';
return (
<div className="code-quarkus-form">
Original file line number Diff line number Diff line change
@@ -179,8 +179,8 @@ export const ExtensionsPicker = (props: ExtensionsPickerProps) => {


useHotkeys('esc', () => setKeyBoardActived(-1));
useHotkeys('up', () => setKeyBoardActived(Math.max(0, keyboardActived - 1)), [keyboardActived]);
useHotkeys('down', () => setKeyBoardActived(Math.min(result.length - 1, keyboardActived + 1)), [result, keyboardActived]);
useHotkeys('up', () => setKeyBoardActived((prev) => Math.max(0, prev - 1)));
useHotkeys('down', () => setKeyBoardActived((prev) => Math.min(result.length - 1, prev + 1)), [result]);
useHotkeys('space', (event) => {
if (keyboardActived >= 0) {
event.preventDefault();