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

Master #455

Merged
merged 12 commits into from
Sep 6, 2024
8 changes: 1 addition & 7 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ jobs:
id: target_branch
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
- uses: haya14busa/action-cond@v1
id: deploy_branch
with:
cond: ${{ steps.target_branch.outputs.branch == 'master' }}
if_true: 'build'
if_false: dist/${{ steps.target_branch.outputs.branch }}
- name: Execute build.sh
run: |
sh ./scripts/build.sh
Expand All @@ -47,4 +41,4 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
directory: ./build
branch: ${{ steps.deploy_branch.outputs.value }}
branch: dist/${{ steps.target_branch.outputs.branch }}
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

이 Repository 는 [EntryJS](https://github.com/entrylabs/entryjs)에서 사용되는 팝업등의 다양한 기능들을 위해 만들어 졌습니다.

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9329aa0f9b664532a8a599d2af0f501d)](https://www.codacy.com/project/entrylabs/entry-tool/dashboard?utm_source=github.com&utm_medium=referral&utm_content=entrylabs/entry-tool&utm_campaign=Badge_Grade_Dashboard)
[![Build Status](https://travis-ci.org/entrylabs/entry-tool.svg?branch=master)](https://travis-ci.org/entrylabs/entry-tool)

:tada:

## 설치
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@entrylabs/tool",
"version": "2.0.4",
"version": "2.0.5",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/entrylabs/entry-tool.git"
"url": "git+https://github.com/entrylabs/entry-tool.git"
},
"engines": {
"node": ">=8.9.x",
Expand Down
24 changes: 15 additions & 9 deletions src/components/widget/BillBoard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ const BillBoard = (props) => {
...data,
};
if (data.type) {
newTableData.type = getBillBoardType(data.type)
newTableData.type = data.type;
// newTableData.type = getBillBoardType(data.type);
}
if (data.types) {
Object.keys(data.types).forEach((key) => {
newTableData.types[key] = getBillBoardType(data.types[key]);
newTableData.types[key] = data.types[key];
// newTableData.types[key] = getBillBoardType(data.types[key]);
});
}

Expand All @@ -81,9 +83,7 @@ const BillBoard = (props) => {
<div className={isIframe ? theme.center_chart : theme.center}>
<div className={theme.modal}>
<div className={theme.head}>
<div className={theme.text}>
{title}
</div>
<div className={theme.text}>{title}</div>
<div
className={theme.close}
id="chart_btn"
Expand All @@ -93,8 +93,14 @@ const BillBoard = (props) => {
/>
</div>
<div className={theme.body}>
<div className={cn(theme.content, theme.billboard)} style={{ minHeight: '300px' }}>
<div className={theme.description} dangerouslySetInnerHTML={ {__html: description} } />
<div
className={cn(theme.content, theme.billboard)}
style={{ minHeight: '300px' }}
>
<div
className={theme.description}
dangerouslySetInnerHTML={{ __html: description }}
/>
<div className={theme.graph_box} ref={chartRef} />
</div>
</div>
Expand Down Expand Up @@ -130,6 +136,6 @@ const BillBoard = (props) => {
</div>
</div>
);
}
};

export default pure(BillBoard);
export default pure(BillBoard);
2 changes: 1 addition & 1 deletion src/components/widget/Chart/Bar.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useRef } from 'react';
import bb, { bar } from 'billboard.js';
import bb from 'billboard.js';
import Theme from '@utils/Theme';
import '@assets/entry/scss/widget/insight.css';
import { GRAPH_COLOR } from '@constants/dataAnalytics';
Expand Down
4 changes: 2 additions & 2 deletions src/components/widget/Chart/ScatterGrid.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useRef, useEffect } from 'react';
import { corr } from '@utils/dataAnalytics';
import bb, { scatter } from 'billboard.js';
import bb from 'billboard.js';
import '@assets/entry/scss/widget/insight.css';
import Theme from '@utils/Theme';
import _unzip from 'lodash/unzip';
Expand All @@ -17,7 +17,7 @@ const ScatterChart = ({ columns, id = 'scatter_matrix', size, zoomIn, opacity })
columns[1][0] += 'x';
}
bb.generate({
data: { columns, type: scatter(), xs: { [columns[0][0]]: columns[1][0] } },
data: { columns, type: 'scatter', xs: { [columns[0][0]]: columns[1][0] } },
bindto: chartRef.current,
axis: {
x: { tick: { text: { show: false }, count: 4, padding: 0 } },
Expand Down
Loading