-
Notifications
You must be signed in to change notification settings - Fork 21
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 #611 from CDCgov/integration
4.23.2 Release
- Loading branch information
Showing
188 changed files
with
9,642 additions
and
10,543 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { defineConfig } from 'vite' | ||
|
||
import react from '@vitejs/plugin-react' | ||
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js' | ||
import svgr from 'vite-plugin-svgr' // Svg Support | ||
import dsv from '@rollup/plugin-dsv' // CSV Support | ||
import dns from 'dns' // nodeJS | ||
|
||
// Force load dev server on `localhost` vs 127.0.0.1 | ||
dns.setDefaultResultOrder('verbatim') | ||
|
||
// DEV NOTE: Modifications made to this file will not be hot-loaded through HMR for component. | ||
// - Active dev servers ('lerna run start') must be restarted in order to view the changed settings. | ||
const generateViteConfig = (componentName, configOptions = {}, reactOptions = {}) => { | ||
let configOptionsDefault = { | ||
server: { port: 8080 }, | ||
build: { | ||
commonjsOptions: { | ||
include: [/@cdc\/core/, /node_modules/], | ||
}, | ||
sourcemap: false, | ||
lib: { | ||
entry: `src/${componentName}.jsx`, | ||
formats: ['es'], | ||
fileName: (format) => `${componentName.toLowerCase()}.js`, | ||
}, | ||
rollupOptions: { | ||
external: [ 'react', 'reactDOM' ], | ||
output: { | ||
chunkFileNames: `${componentName.toLowerCase()}-[hash].[format].js`, | ||
globals: { | ||
react: 'React', | ||
reactDOM: 'ReactDOM' | ||
}, | ||
}, | ||
}, | ||
}, | ||
plugins: [ | ||
react(reactOptions), | ||
svgr({ | ||
exportAsDefault: true | ||
}), | ||
cssInjectedByJsPlugin(), | ||
dsv() | ||
], | ||
...configOptions | ||
} | ||
|
||
return defineConfig({ | ||
...configOptionsDefault, | ||
...configOptions | ||
}) | ||
} | ||
|
||
export default generateViteConfig |
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,7 +1,6 @@ | ||
{ | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json", | ||
"useWorkspaces": true, | ||
"npmClient": "yarn", | ||
"version": "independent" | ||
} |
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,34 @@ | ||
[ | ||
{ | ||
"Category": "One", | ||
"Values": 888 | ||
}, | ||
{ | ||
"Category": "Two", | ||
"Values": 400 | ||
}, | ||
{ | ||
"Category": "Three", | ||
"Values": -100 | ||
}, | ||
{ | ||
"Category": "Four", | ||
"Values": 500 | ||
}, | ||
{ | ||
"Category": "Five", | ||
"Values": 700 | ||
}, | ||
{ | ||
"Category": "Six", | ||
"Values": -1000 | ||
}, | ||
{ | ||
"Category": "Seven", | ||
"Values": 300 | ||
}, | ||
{ | ||
"Category": "Eight", | ||
"Values": -500 | ||
} | ||
] |
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,36 @@ | ||
{ | ||
"type": "chart", | ||
"title": "Example Bar Chart", | ||
"theme": "theme-blue", | ||
"fontSize": "medium", | ||
"height": 300, | ||
"padding": { "left": 5, "right": 5 }, | ||
"yAxis": { "size": "76", "gridLines": false, "label": "Y Axis Example Label" }, | ||
"barThickness": "0.6", | ||
"xAxis": { "size": "59", "tickRotation": 0, "dataKey": "Date", "label": "X Axis Example Label" }, | ||
"table": { "label": "Data Type by Date", "expanded": true }, | ||
"legend": { "behavior": "isolate", "position": "right", "label": "Type of Data" }, | ||
"palette": "qualitative-bold", | ||
"labels": false, | ||
"dataFormat": { "suffix": " units" }, | ||
"confidenceKeys": {}, | ||
"data": [ | ||
{ "Date": "1/15/2016", "Data 1": "90", "Data 2": "1323.5", "Data 3": "1000", "Data 4": "95", "Data 5": "120", "Data 6": "310" }, | ||
{ "Date": "2/15/2016", "Data 1": "NA", "Data 2": "90.3", "Data 3": "240", "Data 4": "60", "Data 5": "160", "Data 6": "200" }, | ||
{ "Date": "3/15/2016", "Data 1": "50", "Data 2": "booo", "Data 3": "290", "Data 4": "100", "Data 5": "200", "Data 6": "250" }, | ||
{ "Date": "4/15/2016", "Data 1": "", "Data 2": "160", "Data 3": "230", "Data 4": "180", "Data 5": "160", "Data 6": "220" }, | ||
{ "Date": "5/15/2016", "Data 1": "", "Data 2": "350", "Data 3": "300", "Data 4": "150", "Data 5": "130", "Data 6": "100" }, | ||
{ "Date": "6/15/2016", "Data 1": "90", "Data 2": "220", "Data 3": "320", "Data 4": "100", "Data 5": "220", "Data 6": "300" } | ||
], | ||
"visualizationType": "Bar", | ||
"series": [ | ||
{ "dataKey": "Data 1", "type": "Bar" }, | ||
{ "dataKey": "Data 2", "type": "Bar" }, | ||
{ "dataKey": "Data 3", "type": "Bar" }, | ||
{ "dataKey": "Data 4", "type": "Bar" }, | ||
{ "dataKey": "Data 5", "type": "Bar" }, | ||
{ "dataKey": "Data 6", "type": "Bar" } | ||
], | ||
"description": "This example shows a bar chart created in the visualization editor in WCMS", | ||
"dataCutoff": "0" | ||
} |
Oops, something went wrong.