-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[refactor] upgrade to WebCell v3, CellRouter v3 & BootCell v2
[optimize] upgrade Upstream packages
- Loading branch information
Showing
19 changed files
with
444 additions
and
434 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/.cache | ||
/.parcel-cache | ||
/dist | ||
/node_modules | ||
package-lock.json | ||
|
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,8 @@ | ||
{ | ||
"extends": "@parcel/config-default", | ||
"transformers": { | ||
"*.{ts,tsx}": [ | ||
"@parcel/transformer-typescript-tsc" | ||
] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,46 @@ | ||
{ | ||
"name": "@jscig/official", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"private": true, | ||
"description": "Official Web site of JavaScript Chinese Interest Group", | ||
"homepage": "https://jscig.github.io/", | ||
"repository": "https://github.com/JSCIG/jscig.github.io", | ||
"license": "UNLICENSED", | ||
"author": "JSCIG", | ||
"main": "source/index.html", | ||
"scripts": { | ||
"prepare": "husky install", | ||
"build": "rm -rf dist && npm run pack-dist && npm run pack-sw", | ||
"pack-dist": "parcel build source/index.html --public-url .", | ||
"clean": "rm -rf .parcel-cache/ dist/", | ||
"build": "npm run pack-dist && npm run pack-sw", | ||
"pack-dist": "npm run clean && parcel build source/index.html --public-url .", | ||
"pack-sw": "rm -f dist/sw.js.map && workbox generateSW", | ||
"start": "parcel source/index.html --open", | ||
"start": "npm run clean && parcel source/index.html --open", | ||
"test": "lint-staged" | ||
}, | ||
"dependencies": { | ||
"boot-cell": "^1.9.5", | ||
"boot-cell": "^2.0.0-beta.5", | ||
"browser-unhandled-rejection": "^1.0.2", | ||
"cell-router": "^2.0.4", | ||
"classnames": "^2.3.1", | ||
"koajax": "^0.7.0", | ||
"mobx": "^5.15.7", | ||
"mobx-web-cell": "^0.3.5", | ||
"web-cell": "^2.3.0", | ||
"web-utility": "^2.6.2" | ||
"cell-router": "^3.0.0-rc.5", | ||
"classnames": "^2.5.1", | ||
"dom-renderer": "^2.0.6", | ||
"koajax": "^0.9.6", | ||
"mobx": "^6.12.0", | ||
"web-cell": "^3.0.0-rc.7", | ||
"web-utility": "^4.1.3" | ||
}, | ||
"devDependencies": { | ||
"@types/classnames": "^2.3.1", | ||
"@types/node": "^14.17.9", | ||
"autoprefixer": "^9.8.6", | ||
"husky": "^7.0.1", | ||
"less": "^4.1.1", | ||
"lint-staged": "^11.1.2", | ||
"parcel-bundler": "^1.12.5", | ||
"postcss-modules": "^3.2.2", | ||
"prettier": "^2.3.2", | ||
"typescript": "^4.3.5", | ||
"workbox-cli": "^6.2.2" | ||
"@parcel/config-default": "~2.11.0", | ||
"@parcel/packager-raw-url": "~2.11.0", | ||
"@parcel/transformer-less": "2.11.0", | ||
"@parcel/transformer-typescript-tsc": "~2.11.0", | ||
"@parcel/transformer-webmanifest": "~2.11.0", | ||
"@types/node": "^18.19.8", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^15.2.0", | ||
"parcel": "~2.11.0", | ||
"postcss": "^8.2.1", | ||
"postcss-modules": "^4.3.0", | ||
"prettier": "^3.2.4", | ||
"typescript": "~5.3.3", | ||
"workbox-cli": "^7.0.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
declare module '*.less' { | ||
declare module '*.module.css' { | ||
const map: Record<string, string>; | ||
export default map; | ||
export = map; | ||
} | ||
declare module '*.module.less' { | ||
const map: Record<string, string>; | ||
export = map; | ||
} | ||
|
||
declare module 'browser-unhandled-rejection' { | ||
export function auto(): any; | ||
} |
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 |
---|---|---|
|
@@ -14,14 +14,15 @@ | |
<script src="https://polyfill.kaiyuanshe.cn/feature/PWAManifest.js"></script> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/bootstrap@4.6.2/dist/css/bootstrap.min.css" | ||
href="https://unpkg.com/bootstrap@5.3.2/dist/css/bootstrap.min.css" | ||
/> | ||
<link rel="stylesheet" href="index.less" /> | ||
<script src="https://polyfill.kaiyuanshe.cn/feature/ECMAScript.js"></script> | ||
<script src="https://polyfill.kaiyuanshe.cn/feature/Regenerator.js"></script> | ||
<script src="https://unpkg.com/@webcomponents/[email protected]/custom-elements-es5-adapter.js"></script> | ||
<script src="https://unpkg.com/@webcomponents/[email protected]/webcomponents-bundle.js"></script> | ||
<script src="https://polyfill.kaiyuanshe.cn/feature/WebComponents.js"></script> | ||
<script src="https://polyfill.kaiyuanshe.cn/feature/ElementInternals.js"></script> | ||
|
||
<script src="index.tsx" async></script> | ||
<script type="module" src="index.tsx" async></script> | ||
</head> | ||
<body></body> | ||
</html> |
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,3 @@ | ||
.scrollbar-none::-webkit-scrollbar { | ||
display: none; | ||
} |
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,11 +1,8 @@ | ||
import { History } from 'cell-router/source'; | ||
|
||
import { ProposalModel } from './Proposal'; | ||
import { MemberModel } from './Member'; | ||
|
||
export * from './Proposal'; | ||
export * from './Member'; | ||
|
||
export const history = new History(); | ||
export const proposal = new ProposalModel(); | ||
export const member = new MemberModel(); |
Oops, something went wrong.