Skip to content

Commit

Permalink
fix: build errors introduced by last 2 PRs & inconsistent names (#257)
Browse files Browse the repository at this point in the history
* fix: build errors introduced by last 2 PRs

* [release] v1.3.0
  • Loading branch information
tyn1998 authored Jan 18, 2022
1 parent a99c708 commit b5111ac
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hypertrons-crx",
"version": "1.1.0",
"name": "hypercrx",
"version": "1.3.0",
"private": true,
"description": "Hypertrons Chromium Extension",
"license": "Apache",
Expand All @@ -13,6 +13,7 @@
"prettier": "prettier --write '**/*.{js,jsx,css,html}'"
},
"dependencies": {
"@antv/g6": "^4.5.3",
"@antv/graphin": "^2.0.6",
"@antv/graphin-components": "^2.0.7",
"@fluentui/react": "^7.121.1",
Expand Down
4 changes: 2 additions & 2 deletions publish/update_information.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"chrome": {
"latest_version":"1.0.1",
"latest_version":"1.3.0",
"url":"https://chrome.google.com/webstore/detail/hypertrons-crx/jkgfcnkgfapbckbpgobmgiphpknkiljm"
},
"edge": {
"latest_version":"1.0.1",
"url":"https://microsoftedge.microsoft.com/addons/detail/hypertronscrx/lfdjlbagcbpjpdhlllcgglplcccnigip"
},
"develop": {
"latest_version":"1.0.1",
"latest_version":"1.3.0",
"url":"https://github.com/hypertrons/hypertrons-crx/releases"
}
}
2 changes: 1 addition & 1 deletion src/pages/Content/ContributorsActivityEvolution.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const ContributorsActivityEvolution: React.FC<ContributorsActivityEvolutionProps
<div style={{ margin: '10px 0 20px 20px' }}>
<Stack className="hypertrons-crx-border">
<Stack.Item align="center">
<DynamicBar theme={githubTheme} width={700} height={600} barNumber={20} digitNumber={2} duration={20} dateLabelSize={30} dataUrl={`${API_TARGET}/dynamicbar_activities_v2/latest/${currentRepo}.csv`}/>
<DynamicBar theme={githubTheme as 'light' | 'dark'} width={700} height={600} barNumber={20} digitNumber={2} duration={20} dateLabelSize={30} dataUrl={`${API_TARGET}/dynamicbar_activities_v2/latest/${currentRepo}.csv`}/>
</Stack.Item>
</Stack>
</div>
Expand Down
13 changes: 8 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var options = {
},
{
test: /\.css$/,
use: ['style-loader','css-loader'],
use: ['style-loader', 'css-loader'],
sideEffects: true,
},
],
Expand All @@ -85,7 +85,7 @@ var options = {
alias: alias,
extensions: fileExtensions
.map((extension) => '.' + extension)
.concat(['.jsx', '.js', '.ts','.tsx', '.css']),
.concat(['.jsx', '.js', '.ts', '.tsx', '.css']),
},
plugins: [
new webpack.ProgressPlugin(),
Expand All @@ -109,7 +109,7 @@ var options = {
description: process.env.npm_package_description,
version: process.env.npm_package_version,
...JSON.parse(content.toString()),
content_security_policy:content_security_policy
content_security_policy: content_security_policy,
})
);
},
Expand Down Expand Up @@ -161,9 +161,12 @@ var options = {
keyFile: 'build.pem',
contentPath: 'build',
outputPath: 'release',
name: 'hypertrons-crx'
})
name: 'hypercrx',
}),
],
node: {
fs: 'empty',
},
};

if (ENV.NODE_ENV === 'development') {
Expand Down

0 comments on commit b5111ac

Please sign in to comment.