Skip to content

Commit d265c02

Browse files
author
Restop-4512
committed
[UPDATE] additional work
1 parent 66b822a commit d265c02

File tree

1,243 files changed

+107539
-3577
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,243 files changed

+107539
-3577
lines changed

.bra.toml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
[run]
22
init_cmds = [
3-
["make","GO_BUILD_DEV=1", "build-go"],
4-
["make", "gen-jsonnet"],
5-
["./bin/grafana", "server", "-profile", "-profile-addr=127.0.0.1", "-profile-port=6000", "-profile-block-rate=1", "-profile-mutex-rate=5", "-packaging=dev", "cfg:app_mode=development"]
3+
["./bin/grafana", "server", "-packaging=dev", "cfg:app_mode=development","--log-level=none"]
64
]
75
watch_all = true
86
follow_symlinks = true
97
watch_dirs = [
10-
"$WORKDIR/apps",
11-
"$WORKDIR/pkg",
12-
"$WORKDIR/public/views",
13-
"$WORKDIR/conf",
14-
"$WORKDIR/devenv/dev-dashboards",
8+
159
]
16-
watch_exts = [".go", ".ini", ".toml", ".template.html"]
10+
watch_exts = []
1711
ignore_files = [".*_gen.go"]
1812
build_delay = 1500
1913
cmds = [
20-
["make", "GO_BUILD_DEV=1", "build-go-fast"],
21-
["make", "gen-jsonnet"],
22-
["./bin/grafana", "server", "-profile", "-profile-addr=127.0.0.1", "-profile-port=6000", "-profile-block-rate=1", "-profile-mutex-rate=5", "-packaging=dev", "cfg:app_mode=development"]
14+
["./bin/grafana", "server", "-packaging=dev", "cfg:app_mode=development","--log-level=none"]
2315
]

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ run: ## Build and run web server on filesystem changes. See /.bra.toml for confi
257257

258258
.PHONY: run-go
259259
run-go: ## Build and run web server immediately.
260-
$(GO) run -race $(if $(GO_BUILD_TAGS),-build-tags=$(GO_BUILD_TAGS)) \
261-
./pkg/cmd/grafana -- server -profile -profile-addr=127.0.0.1 -profile-port=6000 -packaging=dev cfg:app_mode=development
260+
$(GO) run $(if $(GO_BUILD_TAGS),-build-tags=$(GO_BUILD_TAGS)) \
261+
./pkg/cmd/grafana -- server -packaging=dev cfg:app_mode=development --log-level=none
262262

263263
.PHONY: run-frontend
264264
run-frontend: deps-js ## Fetch js dependencies and watch frontend for rebuild

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"start": "NODE_ENV=dev nx exec -- webpack --config scripts/webpack/webpack.dev.js --watch",
4848
"start:liveReload": "yarn start -- --env liveReload=1",
4949
"start:noTsCheck": "yarn start -- --env noTsCheck=1",
50-
"start:noLint": "yarn start -- --env noTsCheck=1 --env noLint=1",
50+
"start:noLint": "yarn start -- --env noLint=1",
51+
"start2": "yarn start -- --env liveReload=1 --env noLint=1",
5152
"stats": "webpack --mode production --config scripts/webpack/webpack.prod.js --profile --json > compilation-stats.json",
5253
"storybook": "yarn workspace @grafana/ui storybook --ci",
5354
"storybook:build": "yarn workspace @grafana/ui storybook:build",
@@ -316,6 +317,7 @@
316317
"@visx/shape": "3.12.0",
317318
"@visx/tooltip": "3.12.0",
318319
"@welldone-software/why-did-you-render": "8.0.3",
320+
"@windmillcode/grafana-ui": "workspace:*",
319321
"ansicolor": "2.0.3",
320322
"baron": "3.0.3",
321323
"brace": "0.11.1",

packages/grafana-ui/src/components/ClipboardButton/ClipboardButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as React from 'react';
44

55
import { GrafanaTheme2 } from '@grafana/data';
66

7-
import { t } from '../../../src/utils/i18n';
7+
import { t } from '../../utils/i18n';
88
import { useStyles2 } from '../../themes';
99
import { Button, ButtonProps } from '../Button';
1010
import { Icon } from '../Icon/Icon';

packages/grafana-ui/src/components/ContextMenu/WithContextMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState } from 'react';
22
import * as React from 'react';
33

4-
import { ContextMenu } from '../ContextMenu/ContextMenu';
4+
import { ContextMenu } from './ContextMenu';
55

66
export interface WithContextMenuProps {
77
/** Menu item trigger that accepts openMenu prop */

packages/grafana-ui/src/components/DataSourceSettings/AlertingSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DataSourceJsonData, DataSourcePluginOptionsEditorProps } from '@grafana/data';
22

3-
import { InlineSwitch } from '../../components/Switch/Switch';
3+
import { InlineSwitch } from '../Switch/Switch';
44
import { t, Trans } from '../../utils/i18n';
55
import { InlineField } from '../Forms/InlineField';
66

packages/grafana-ui/src/components/DataSourceSettings/BasicAuthSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22

3-
import { InlineField } from '../../components/Forms/InlineField';
3+
import { InlineField } from '../Forms/InlineField';
44
import { t } from '../../utils/i18n';
55
import { FormField } from '../FormField/FormField';
66
import { SecretFormField } from '../SecretFormField/SecretFormField';

packages/grafana-ui/src/components/DataSourceSettings/SecureSocksProxySettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DataSourceJsonData, DataSourcePluginOptionsEditorProps } from '@grafana/data';
22

3-
import { InlineSwitch } from '../../components/Switch/Switch';
3+
import { InlineSwitch } from '../Switch/Switch';
44
import { t, Trans } from '../../utils/i18n';
55
import { InlineField } from '../Forms/InlineField';
66

packages/grafana-ui/src/components/DateTimePickers/DateTimePicker/DateTimePicker.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ import {
1919
AppEvents,
2020
} from '@grafana/data';
2121
import { Components } from '@grafana/e2e-selectors';
22-
22+
import { t, Trans } from '../../../utils/i18n';
2323
import { useStyles2, useTheme2 } from '../../../themes';
24-
import { t } from '../../../utils/i18n';
2524
import { Button } from '../../Button/Button';
2625
import { InlineField } from '../../Forms/InlineField';
2726
import { Icon } from '../../Icon/Icon';
@@ -101,7 +100,6 @@ export const DateTimePicker = ({
101100
minuteStep,
102101
manualInputIsEnabled,
103102
});
104-
return <h1>Dummy</h1>
105103
const [isOpen, setOpen] = useState(false);
106104

107105
const ref = useRef<HTMLDivElement>(null);
@@ -437,10 +435,10 @@ const DateTimeCalendar = React.forwardRef<HTMLDivElement, DateTimeCalendarProps>
437435
</div>
438436
<Stack>
439437
<Button type="button" onClick={handleApply}>
440-
<p >Apply</p>
438+
<Trans i18nKey="grafana-ui.date-time-picker.apply">Apply</Trans>
441439
</Button>
442440
<Button variant="secondary" type="button" onClick={onClose}>
443-
<p >Cancel</p>
441+
<Trans i18nKey="grafana-ui.date-time-picker.cancel">Cancel</Trans>
444442
</Button>
445443
</Stack>
446444
</div>

packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/TimeRangeLabel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { memo } from 'react';
33

44
import { GrafanaTheme2 } from '@grafana/data';
55

6-
import { useStyles2 } from '../../../../src/themes';
6+
import { useStyles2 } from '../../../themes';
77
import { TimePickerButtonLabel, TimeRangePickerProps } from '../TimeRangePicker';
88
import { isValidTimeRange } from '../utils';
99

0 commit comments

Comments
 (0)