Skip to content

Commit 57e29e6

Browse files
committed
[optimize] upgrade Upstream packages
1 parent cce3e96 commit 57e29e6

File tree

4 files changed

+34
-38
lines changed

4 files changed

+34
-38
lines changed

.lintstagedrc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"*.{html,md,css,less,json,yml,js,ts,tsx}": [
3-
"prettier --write"
4-
]
2+
"*.{html,md,css,less,json,yml,js,ts,tsx}": "prettier --write"
53
}

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@
1616
"test": "lint-staged"
1717
},
1818
"dependencies": {
19-
"boot-cell": "^1.1.1",
20-
"bootstrap-icons": "^1.0.0",
19+
"boot-cell": "^1.4.0",
20+
"bootstrap-icons": "^1.1.0",
2121
"browser-unhandled-rejection": "^1.0.2",
2222
"cell-router": "^2.0.1",
2323
"classnames": "^2.2.6",
24-
"koajax": "^0.6.2",
24+
"koajax": "^0.6.4",
2525
"mobx": "^5.15.7",
2626
"mobx-web-cell": "^0.3.2",
2727
"web-cell": "^2.2.0",
28-
"web-utility": "^1.8.0"
28+
"web-utility": "^2.0.0"
2929
},
3030
"devDependencies": {
31-
"@types/classnames": "^2.2.10",
31+
"@types/classnames": "^2.2.11",
3232
"autoprefixer": "^9.8.6",
3333
"husky": "^4.3.0",
3434
"less": "^3.12.2",
35-
"lint-staged": "^10.4.0",
35+
"lint-staged": "^10.5.2",
3636
"parcel": "^1.12.4",
3737
"postcss-modules": "^3.2.2",
38-
"prettier": "^2.1.2",
39-
"typescript": "^4.0.3",
38+
"prettier": "^2.2.1",
39+
"typescript": "^4.1.2",
4040
"workbox-cli": "^4.3.1"
4141
}
4242
}

source/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
<script src="https://cdn.jsdelivr.net/npm/[email protected]/pwacompat.min.js"></script>
1515
<link
1616
rel="stylesheet"
17-
href="https://cdn.jsdelivr.net/npm/[email protected].2/dist/css/bootstrap.min.css"
17+
href="https://cdn.jsdelivr.net/npm/[email protected].3/dist/css/bootstrap.min.css"
1818
/>
1919
<script
2020
crossorigin
21-
src="https://polyfill.app/api/polyfill?features=es.string.match-all,es.array.flat,es.object.from-entries"
21+
src="https://polyfill.app/api/polyfill?features=es.string.match-all,es.array.flat,es.object.from-entries,regenerator-runtime"
2222
></script>
23-
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.4.4/custom-elements-es5-adapter.js"></script>
24-
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.4.4/webcomponents-bundle.min.js"></script>
23+
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.5.0/custom-elements-es5-adapter.js"></script>
24+
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.5.0/webcomponents-bundle.min.js"></script>
2525

2626
<script src="index.tsx" async></script>
2727
</head>

source/page/Main.tsx

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Jumbotron } from 'boot-cell/source/Content/Jumbotron';
44
import { Button } from 'boot-cell/source/Form/Button';
55
import { Image } from 'boot-cell/source/Media/Image';
66
import { SpinnerBox } from 'boot-cell/source/Prompt/Spinner';
7-
import { Card } from 'boot-cell/source/Content/Card';
7+
import { Card, CardHeader } from 'boot-cell/source/Content/Card';
88
import { Badge } from 'boot-cell/source/Reminder/Badge';
99

1010
import companies from '../data/members-china.json';
@@ -15,7 +15,7 @@ const thisYear = new Date().getFullYear();
1515
@observer
1616
@component({
1717
tagName: 'main-page',
18-
renderTarget: 'children'
18+
renderTarget: 'children',
1919
})
2020
export class MainPage extends mixin() {
2121
connectedCallback() {
@@ -32,7 +32,7 @@ export class MainPage extends mixin() {
3232
name,
3333
company,
3434
location,
35-
bio
35+
bio,
3636
}: Member) => {
3737
return (
3838
<div className="col-12 col-sm-6 col-md-3 my-3">
@@ -68,7 +68,7 @@ export class MainPage extends mixin() {
6868
tags,
6969
edition,
7070
authors,
71-
champions
71+
champions,
7272
}: Proposal) => {
7373
const standard = tags[0].split('-')[1];
7474

@@ -85,29 +85,27 @@ export class MainPage extends mixin() {
8585
name
8686
)
8787
}
88-
header={
89-
<div className="d-flex justify-content-around">
88+
>
89+
<CardHeader className="d-flex justify-content-around">
90+
<Badge
91+
color="primary"
92+
target="_blank"
93+
href={`https://tc39.es/ecma${standard}/`}
94+
>
95+
ECMA-{standard}
96+
</Badge>
97+
{standard === '262' && edition <= thisYear ? (
9098
<Badge
91-
color="primary"
99+
color="success"
92100
target="_blank"
93-
href={`https://tc39.es/ecma${standard}/`}
101+
href={`https://www.ecma-international.org/ecma-262/${
102+
edition - 2009
103+
}.0/`}
94104
>
95-
ECMA-{standard}
105+
ES {edition}
96106
</Badge>
97-
{standard === '262' && edition <= thisYear ? (
98-
<Badge
99-
color="success"
100-
target="_blank"
101-
href={`https://www.ecma-international.org/ecma-262/${
102-
edition - 2009
103-
}.0/`}
104-
>
105-
ES {edition}
106-
</Badge>
107-
) : null}
108-
</div>
109-
}
110-
>
107+
) : null}
108+
</CardHeader>
111109
{(authors || champions) && (
112110
<dl>
113111
{authors && (

0 commit comments

Comments
 (0)