-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dapp libs and versions (#406)
* Bump dapp versions * Update voting dApp to vite * Unify web-sdk version across workspace * Update wallet-common-helpers
- Loading branch information
Showing
27 changed files
with
151 additions
and
143 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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"name": "e_sealing", | ||
"packageManager": "[email protected]", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@concordium/react-components": "0.4.0-rc.5", | ||
"@concordium/web-sdk": "^7.0.3", | ||
"@concordium/react-components": "^0.4.0", | ||
"@concordium/web-sdk": "^7.1.0", | ||
"@thi.ng/leb128": "^2.1.18", | ||
"@types/sha256": "^0.2.0", | ||
"@walletconnect/types": "^2.1.4", | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@concordium/browser-wallet-api-helpers": "workspace:^", | ||
"@concordium/web-sdk": "^7.0.3", | ||
"@concordium/web-sdk": "^7.1.0", | ||
"cors": "^2.8.5", | ||
"express": "^4.18.1", | ||
"express-fileupload": "^1.4.0", | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@concordium/browser-wallet-api-helpers": "workspace:^", | ||
"@concordium/web-sdk": "^7.0.3", | ||
"@concordium/web-sdk": "^7.1.0", | ||
"react": "^18.1.0", | ||
"react-dom": "^18.1.0" | ||
}, | ||
|
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 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
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,9 +1,42 @@ | ||
server { | ||
listen 80; | ||
server_name frontend; | ||
location / { | ||
# This would be the directory where your React app's static files are stored at | ||
root /usr/share/nginx/html; | ||
try_files $uri /index.html; | ||
} | ||
} | ||
# Enable Gzip | ||
gzip on; | ||
gzip_http_version 1.0; | ||
gzip_comp_level 2; | ||
gzip_min_length 1100; | ||
gzip_buffers 4 8k; | ||
gzip_proxied any; | ||
gzip_types | ||
text/css | ||
text/javascript | ||
text/xml | ||
text/plain | ||
text/x-component | ||
application/javascript | ||
application/json | ||
application/xml | ||
application/wasm | ||
application/rss+xml | ||
font/truetype | ||
font/opentype | ||
application/vnd.ms-fontobject | ||
image/svg+xml | ||
image/jpeg; | ||
|
||
gzip_static on; | ||
|
||
gzip_proxied expired no-cache no-store private auth; | ||
gzip_disable "MSIE [1-6]\."; | ||
gzip_vary on; | ||
|
||
server { | ||
listen 80 default; | ||
server_name frontend; | ||
root /usr/share/nginx/html; | ||
|
||
# Set expires max on static file types | ||
location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|eot|mp4|ogg|ogv|webm|wasm)$ { | ||
expires max; | ||
root /usr/share/nginx/html; | ||
access_log off; | ||
} | ||
} |
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,13 +1,12 @@ | ||
{ | ||
"name": "voting", | ||
"license": "Apache-2.0", | ||
"version": "1.1.1", | ||
"version": "1.1.3", | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@concordium/browser-wallet-api-helpers": "beta", | ||
"@concordium/web-sdk": "^7.0.3", | ||
"@concordium/browser-wallet-api-helpers": "^3.0.0", | ||
"@concordium/web-sdk": "^7.1.0", | ||
"bootstrap": "^5.2.1", | ||
"cross-env": "^7.0.3", | ||
"moment": "^2.29.4", | ||
"react": "^18.2.0", | ||
"react-bootstrap": "^2.5.0", | ||
|
@@ -20,16 +19,17 @@ | |
"@types/node": "^18.7.23", | ||
"@types/react": "^18.0.9", | ||
"@types/react-dom": "^18.0.5", | ||
"esbuild": "^0.19.5", | ||
"esbuild-plugin-copy": "^1.6.0", | ||
"esbuild-plugin-svgr": "^1.0.1", | ||
"express": "^4.18.1", | ||
"@vitejs/plugin-react-swc": "^3.4.0", | ||
"ts-node": "^10.8.0", | ||
"typescript": "^5.2.2" | ||
"typescript": "^5.2.2", | ||
"vite": "^4.5.0", | ||
"vite-plugin-svgr": "^4.1.0", | ||
"vite-plugin-top-level-await": "^1.3.1", | ||
"vite-plugin-wasm": "^3.2.2" | ||
}, | ||
"scripts": { | ||
"build": "node --loader ts-node/esm ./esbuild.config.ts; cp ./public/static/img/* ./dist", | ||
"start": "node ./serve", | ||
"watch": "cross-env WATCH=1 yarn build" | ||
"build": "vite build", | ||
"start": "vite preview", | ||
"watch": "vite" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,21 @@ | ||
import { defineConfig } from 'vite'; | ||
import react from '@vitejs/plugin-react-swc'; | ||
import svgr from 'vite-plugin-svgr'; | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
import wasm from 'vite-plugin-wasm'; | ||
import topLevelAwait from 'vite-plugin-top-level-await'; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
react(), | ||
svgr(), | ||
wasm(), | ||
topLevelAwait(), // For legacy browser compatibility | ||
], | ||
resolve: { | ||
alias: { | ||
'@concordium/rust-bindings': '@concordium/rust-bindings/bundler', // Resolve bundler-specific wasm entrypoints. | ||
}, | ||
}, | ||
}); |
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,11 +1,11 @@ | ||
{ | ||
"name": "wccd", | ||
"packageManager": "[email protected]", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@concordium/react-components": "0.4.0-rc.5", | ||
"@concordium/web-sdk": "^7.0.3", | ||
"@concordium/react-components": "^0.4.0", | ||
"@concordium/web-sdk": "^7.1.0", | ||
"@thi.ng/leb128": "^2.1.18", | ||
"@walletconnect/types": "^2.1.4", | ||
"mathjs": "^11.4.0", | ||
|
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
Oops, something went wrong.