Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies #183

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,397 changes: 3,538 additions & 2,859 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="root" class="main-view"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand Down
1 change: 1 addition & 0 deletions public/public
1 change: 0 additions & 1 deletion public/public/img/icons/unicons/text-fields.svg

This file was deleted.

9 changes: 8 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function App() {
return (
<div className={styles.container}>
<Header></Header>
<section className={styles.section}>
<section className={styles.firstSection}>
<div className={styles.hero}>
<h1>Welcome to the Grafana Agent Configuration Generator</h1>
<p>
Expand Down Expand Up @@ -161,6 +161,13 @@ const getStyles = (theme: GrafanaTheme2) => {
display: flex;
justify-content: center;
`,
firstSection: css`
width: 100%;
padding-top: 20px;
display: flex;
justify-content: center;
margin-top: 81px;
`,
content: css`
width: 80vw;
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion src/components/ComponentEditor/inputs/TypedInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const InputTypes: Record<Type, { icon: IconName; name: string }> = {
name: "Environment Variable",
},
literal: {
icon: "text-fields" as IconName,
icon: "pen" as IconName,
name: "Literal",
},
reference: {
Expand Down
8 changes: 2 additions & 6 deletions src/components/ConfigEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ const ConfigEditor = () => {
0,
function() {
setCurrentComponent(null);
// need a timeout to prevent the drawer from immediately closing as this happens during the mousedown event
setTimeout(() => setDrawerOpen(true), 1);
setDrawerOpen(true);
},
"",
);
Expand All @@ -229,8 +228,7 @@ const ConfigEditor = () => {
component,
node,
});
// need a timeout to prevent the drawer from immediately closing as this happens during the mousedown event
setTimeout(() => setDrawerOpen(true), 1);
setDrawerOpen(true);
},
"",
);
Expand Down Expand Up @@ -339,14 +337,12 @@ const ConfigEditor = () => {
</div>
{isDrawerOpen && (
<Drawer
scrollableContent={true}
onClose={() => setDrawerOpen(false)}
title={
currentComponent != null
? `Edit Component [${currentComponent.component.name}]`
: "Add Component"
}
closeOnMaskClick={false}
subtitle={
currentComponent != null ? (
<HorizontalGroup>
Expand Down
5 changes: 4 additions & 1 deletion src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,15 @@ const getStyles = (theme: GrafanaTheme2) => {
display: flex;
justify-content: center;
gap: 20px;
height: 60px;
height: 81px;
position: fixed;
width: 100vw;
padding: 10px 40px;
border: 1px solid ${theme.colors.border.weak};
border-radius: 2px;
color: ${theme.colors.text.primary};
z-index: 1060;
background-color: ${theme.colors.background.primary};
`,
headerText: css`
margin-bottom: 0;
Expand Down
Loading