-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4aa9956
commit 5772840
Showing
11 changed files
with
129 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Publish to GitHub Packages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Change this to your default branch if it's not 'main' | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' # Change this to the Node.js version you're using | ||
registry-url: 'https://npm.pkg.github.com' | ||
scope: '@databendcloud' # Change this to your GitHub organization or username | ||
|
||
- name: yarn Install dependencies | ||
run: yarn | ||
|
||
|
||
- name: Build dist | ||
run: npm run build | ||
|
||
- name: Build Docs | ||
run: npm run docs:build | ||
|
||
- name: Publish | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.DATABEND_CLOUD_NPM_TOKEN }} | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.DATABEND_CLOUD_NPM_TOKEN }} | ||
publish_dir: ./docs-dist # Change this to the directory you want to deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,22 @@ | ||
# databend-profile-ui | ||
|
||
[![NPM version](https://img.shields.io/npm/v/databend-profile-ui.svg?style=flat)](https://npmjs.org/package/databend-profile-ui) | ||
[![NPM downloads](http://img.shields.io/npm/dm/databend-profile-ui.svg?style=flat)](https://npmjs.org/package/databend-profile-ui) | ||
|
||
A react library developed with dumi | ||
|
||
## Usage | ||
|
||
TODO | ||
|
||
## Options | ||
|
||
TODO | ||
|
||
## Development | ||
## Install | ||
|
||
```bash | ||
# install dependencies | ||
$ yarn install | ||
|
||
# develop library by docs demo | ||
$ yarn start | ||
|
||
# build library source code | ||
$ yarn run build | ||
|
||
# build library source code in watch mode | ||
$ yarn run build:watch | ||
yarn add databend-profile-ui | ||
``` | ||
|
||
# build docs | ||
$ yarn run docs:build | ||
## Usage | ||
|
||
# Locally preview the production build. | ||
$ yarn run docs:preview | ||
### styles | ||
|
||
# check your project for potential problems | ||
$ yarn run doctor | ||
```typescript | ||
//App.tsx: | ||
import 'databend-profile-ui/dist/assets/css/profile.less'; | ||
``` | ||
|
||
## LICENSE | ||
### import | ||
|
||
MIT | ||
```typescript | ||
import { QueryProfile } from 'databend-profile-ui'; | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
--- | ||
hero: | ||
title: library | ||
description: A react library developed with dumi | ||
title: databend-profile-ui | ||
description: profiles for databend | ||
actions: | ||
- text: Hello | ||
link: / | ||
- text: World | ||
link: / | ||
features: | ||
- title: Hello | ||
emoji: 💎 | ||
description: Put hello description here | ||
- title: World | ||
emoji: 🌈 | ||
description: Put world description here | ||
- title: '!' | ||
emoji: 🚀 | ||
description: Put ! description here | ||
- text: Start | ||
link: /components/query-profile | ||
--- | ||
|
||
databend-profile-ui | ||
## Install | ||
|
||
```bash | ||
yarn add databend-profile-ui | ||
``` | ||
|
||
## Usage | ||
|
||
### styles | ||
|
||
```typescript | ||
//App.tsx: | ||
import 'databend-profile-ui/dist/assets/css/profile.less'; | ||
``` | ||
|
||
### import | ||
|
||
```typescript | ||
import { QueryProfile } from 'databend-profile-ui'; | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters