-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from bento-platform/refact/upgrade-and-clean-up
refact: upgrade dependencies, memoize, and clean up
- Loading branch information
Showing
9 changed files
with
847 additions
and
620 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,10 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Bento build action | ||
uses: bento-platform/[email protected].0 | ||
uses: bento-platform/[email protected].1 | ||
with: | ||
registry: ghcr.io | ||
registry-username: ${{ github.actor }} | ||
|
Large diffs are not rendered by default.
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
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
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 |
---|---|---|
@@ -1,74 +1,5 @@ | ||
export const chartTypes = { | ||
BAR: 'bar', | ||
PIE: 'pie', | ||
}; | ||
|
||
// Bento-web colours | ||
export const COLORS = [ | ||
'#3366CC', | ||
'#DC3912', | ||
'#FF9900', | ||
'#109618', | ||
'#990099', | ||
'#3B3EAC', | ||
'#0099C6', | ||
'#DD4477', | ||
'#66AA00', | ||
'#B82E2E', | ||
'#316395', | ||
'#994499', | ||
'#22AA99', | ||
'#AAAA11', | ||
'#6633CC', | ||
'#E67300', | ||
'#8B0707', | ||
'#329262', | ||
'#5574A6', | ||
'#3B3EAC', | ||
]; | ||
|
||
// colorbrewer2.org | ||
// export const COLORS = [ | ||
// "#313695", | ||
// "#a50026", | ||
// "#d73027", | ||
// "#f46d43", | ||
// "#fdae61", | ||
// "#abd9e9", | ||
// "#74add1", | ||
// "#4575b4", | ||
// ] | ||
|
||
export const BAR_CHART_FILL = '#4575b4'; | ||
export const CHART_MISSING_FILL = '#bbbbbb'; | ||
|
||
export const COUNTS_FILL = '#75787a'; | ||
|
||
export const LOCALSTORAGE_CHARTS_KEY = 'charts'; | ||
|
||
export const CHART_HEIGHT = 300; | ||
|
||
export const TOOL_TIP_STYLE = { | ||
backgroundColor: 'rgba(255, 255, 255, 0.9)', | ||
padding: '5px', | ||
border: '1px solid grey', | ||
boxShadow: '0px 0px 2px rgba(0, 0, 0, 0.9)', | ||
borderRadius: '2px', | ||
textAlign: 'left', | ||
}; | ||
|
||
export const LABEL_STYLE = { | ||
fontWeight: 'bold', | ||
fontSize: '12px', | ||
padding: '0', | ||
margin: '0', | ||
}; | ||
|
||
export const COUNT_STYLE = { | ||
fontWeight: 'normal', | ||
fontSize: '11px', | ||
padding: '0', | ||
margin: '0', | ||
}; | ||
|
||
export const OTHER_THRESHOLD = 0.01; // |