Skip to content

Commit

Permalink
fix: move to gravity-ui org (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marginy605 authored Oct 3, 2022
1 parent c77c7fa commit 6748e5f
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: yandex-cloud/ui-release-action@main
with:
github-token: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }}
npm-token: ${{ secrets.YC_UI_BOT_NPM_TOKEN }}
node-version: 14
- uses: gravity-ui/release-action@v1
with:
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
node-version: 14
2 changes: 1 addition & 1 deletion .storybook/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const CloudTheme = create({
inputTextColor: 'black',
inputBorderRadius: 4,

brandUrl: 'https://github.com/yandex-cloud/dashkit',
brandUrl: 'https://github.com/gravity-ui/dashkit',
brandTitle: `<div style="font-size: 18px; color: #027bf3; font-weight: 600; margin-top: -6px; margin-bottom: 2px;">DashKit</div>
<div style="font-size: 14px;color: #7d7d7d;font-weight: 400;">Dashkit Component</div>`,
});
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A dashboard grid rendering library.
## Installation

```bash
npm i @yandex-cloud/dashkit @gravity-ui/uikit @gravity-ui/i18n
npm i @gravity-ui/dashkit @gravity-ui/uikit @gravity-ui/i18n
```

## Description
Expand Down Expand Up @@ -60,15 +60,15 @@ Before using `DashKit` as a react component, it must be configured.
Used for setting the language of DashKit provided ui elements. Currently the languages supported are: ru, en.

```js
import {setLang} from '@yandex-cloud/dashkit';
import {setLang} from '@gravity-ui/dashkit';

setLang('en');
```

**From version 3.0.0 the language must be set separately for each DashKit and Gravity-ui instances**

```js
import {setLang} from '@yandex-cloud/dashkit';
import {setLang} from '@gravity-ui/dashkit';
import {configure as uiKitConfigure, Lang as UILang} from '@gravity-ui/uikit';

setLang('en');
Expand All @@ -80,7 +80,7 @@ Before using `DashKit` as a react component, it must be configured.
Used for global DashKit settings (such as margins between widgets, default widget sizes and widget overlay menu)

```js
import {DashKit} from '@yandex-cloud/dashkit';
import {DashKit} from '@gravity-ui/dashkit';

DashKit.setSettings({
gridLayout: {margin: [8, 8]},
Expand All @@ -94,9 +94,9 @@ Before using `DashKit` as a react component, it must be configured.
Registering and configuring plugins

```js
import {DashKit} from '@yandex-cloud/dashkit';
import pluginTitle from '@yandex-cloud/dashkit/build/esm/plugins/Title/Title';
import pluginText from '@yandex-cloud/dashkit/build/esm/plugins/Text/Text';
import {DashKit} from '@gravity-ui/dashkit';
import pluginTitle from '@gravity-ui/dashkit/build/esm/plugins/Title/Title';
import pluginText from '@gravity-ui/dashkit/build/esm/plugins/Text/Text';

DashKit.registerPlugins(
pluginTitle,
Expand Down Expand Up @@ -135,7 +135,7 @@ export interface Config {
Config example:

```ts
import {DashKitProps} from '@yandex-cloud/dashkit';
import {DashKitProps} from '@gravity-ui/dashkit';

const config: DashKitProps['config'] = {
salt: '0.46703554571365613',
Expand Down Expand Up @@ -250,7 +250,7 @@ const newConfig = DashKit.setItem({
Delete an item from the config:

```ts
import {DashKitProps} from '@yandex-cloud/dashkit';
import {DashKitProps} from '@gravity-ui/dashkit';

const oldItemsStateAndParams: DashKitProps['itemsStateAndParams'] = {};

Expand All @@ -267,7 +267,7 @@ const {config: newConfig, itemsStateAndParams} = DashKit.removeItem({
type Params = Record<string, string | string[]>;
```

`DashKit` generates parameters according to the default parameters for widgets, links, and aliases. These parameters are required for the [ChartKit](https://github.com/yandex-cloud/chartkit) library.
`DashKit` generates parameters according to the default parameters for widgets, links, and aliases. These parameters are required for the [ChartKit](https://github.com/gravity-ui/chartkit) library.

Generation order:

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@yandex-cloud/dashkit",
"name": "@gravity-ui/dashkit",
"version": "3.0.0",
"description": "Library for rendering dashboard grid layout",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/yandex-cloud/dashkit"
"url": "https://github.com/gravity-ui/dashkit"
},
"files": [
"build"
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/Text/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import i18n from '../../i18n';
import {PluginWidgetProps, Plugin} from '../../typings';
import './Text.scss';

// стили для markdown нужно подключать отдельно
// можно подключить из https://github.com/yandex-cloud/yfm-transform
// need to set markdown styles separately
// for instance can use yfm-transform

const b = block('dashkit-plugin-text');

Expand Down

0 comments on commit 6748e5f

Please sign in to comment.