Skip to content

Commit

Permalink
feat: update packages, polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
honeymaro committed May 17, 2023
1 parent 4f36f63 commit a087dbe
Show file tree
Hide file tree
Showing 9 changed files with 1,523 additions and 1,486 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
<script>
window.global = window;
</script>
<script type="module" src="/src/polyfills/polyfills.js"></script>
<script type="module" src="/src/ga.js"></script>
</head>
<body data-simplebar data-simplebar-auto-hide="false">
Expand Down
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,16 @@
"dependencies": {
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
"@rollup/plugin-inject": "^5.0.3",
"@tippyjs/react": "^4.2.6",
"@xpla/wallet-controller": "^0.3.9",
"@xpla/wallet-provider": "^0.3.9",
"@xpla/xpla.js": "^0.2.3",
"@xpla/wallet-controller": "^0.4.1",
"@xpla/wallet-provider": "^0.4.1",
"@xpla/xpla.js": "^0.3.1",
"axios": "^1.1.3",
"buffer": "^6.0.3",
"decimal.js": "^10.2.1",
"emotion-reset": "^3.0.1",
"jotai": "^1.10.0",
"jotai": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-grid-system": "^8.1.6",
Expand All @@ -45,19 +44,18 @@
"resize-observer-polyfill": "^1.5.1",
"simplebar": "^6.2.1",
"tippy.js": "^6.3.7",
"vite-plugin-svgr": "^2.4.0"
"vite-plugin-svgr": "^3.2.0"
},
"devDependencies": {
"@emotion/babel-plugin": "^11.10.2",
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
"@types/node": "^18.8.1",
"@types/node": "^20.1.1",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@types/react-modal": "^3.13.1",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"@vitejs/plugin-basic-ssl": "^1.0.1",
"@vitejs/plugin-react": "^3.1.0",
"@vitejs/plugin-react": "^4.0.0",
"eslint": "^8.24.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
Expand All @@ -69,9 +67,10 @@
"husky": "^8.0.2",
"lint-staged": "^13.0.4",
"prettier": "^2.7.1",
"typescript": "^4.6.4",
"typescript": "^5.0.4",
"vite": "^4.1.4",
"vite-compatible-readable-stream": "^3.6.1",
"vite-tsconfig-paths": "^3.5.1"
"vite-plugin-node-polyfills": "^0.8.2",
"vite-tsconfig-paths": "^4.2.0"
}
}
3 changes: 0 additions & 3 deletions src/polyfills/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions src/polyfills/polyfills.js

This file was deleted.

32 changes: 0 additions & 32 deletions src/polyfills/process-es6-LICENSE.txt

This file was deleted.

256 changes: 0 additions & 256 deletions src/polyfills/process-es6.js

This file was deleted.

9 changes: 6 additions & 3 deletions src/stores/disclaimer.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { atomWithStorage } from "jotai/utils";
import { atom } from "jotai";

const lastSeen = atomWithStorage<string | undefined>("disclaimer", undefined);
const lastSeen = atomWithStorage<string | undefined>(
"disclaimer",
localStorage.getItem("disclaimer") ?? undefined, // https://github.com/pmndrs/jotai/discussions/1737
);

const disclaimerLastSeenAtom = atom<Date | undefined, Date>(
const disclaimerLastSeenAtom = atom<Date, [Date], void>(
(get) => {
const l = get(lastSeen);
return l ? new Date(l) : undefined;
return l ? new Date(l) : new Date(0);
},
(_get, set, update) => set(lastSeen, update.toString()),
);
Expand Down
Loading

0 comments on commit a087dbe

Please sign in to comment.