Skip to content

Commit

Permalink
[optimize] update Upstream packages
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Feb 5, 2024
1 parent 7b298d2 commit 8bdbb93
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 79 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
"*.{html,md,css,less,js,ts,tsx,json}": "prettier --write"
},
"dependencies": {
"boot-cell": "^2.0.0-beta.10",
"boot-cell": "^2.0.0-beta.11",
"browser-unhandled-rejection": "^1.0.2",
"cell-router": "^3.0.0-rc.5",
"classnames": "^2.5.1",
"dom-renderer": "^2.0.6",
"html-to-image": "^1.11.11",
"koajax": "^0.9.6",
"lodash.groupby": "^4.6.0",
"marked": "^11.2.0",
"marked": "^12.0.0",
"mobx": "^6.12.0",
"mobx-i18n": "^0.5.0",
"web-cell": "^3.0.0-rc.8",
Expand All @@ -53,17 +53,17 @@
"@parcel/transformer-typescript-tsc": "~2.11.0",
"@parcel/transformer-webmanifest": "~2.11.0",
"@types/lodash.groupby": "^4.6.9",
"@types/node": "^18.19.10",
"@types/node": "^18.19.14",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.0.7",
"lint-staged": "^15.2.0",
"husky": "^9.0.10",
"lint-staged": "^15.2.2",
"parcel": "~2.11.0",
"postcss": "^8.4.33",
"postcss-modules": "^4.3.1",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"typescript": "~5.3.3",
"workbox-cli": "^7.0.0"
},
Expand Down
70 changes: 38 additions & 32 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 0 additions & 30 deletions source/component/Carousel.tsx

This file was deleted.

Binary file added source/page/2018-Code4City/image/logo/eleme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/page/2018-Code4City/image/logo/firefox.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 14 additions & 10 deletions source/page/2018-Code4City/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
import { FC } from 'web-cell';
import { Image, Button } from 'boot-cell';
import { CarouselCaption, CarouselItem } from '../../component/Carousel';
import { PageProps } from 'cell-router';
import {
Image,
Button,
Carousel,
CarouselCaption,
CarouselItem
} from 'boot-cell';

import { GuestCard } from './GuestCard';
import * as style from './index.module.less';
import BG_mountain from './image/BG-mountain.png';
import BG_points from './image/BG-points.png';
import { review, awards, vips, sponsors } from './data';

export const Code4City: FC = () => (
<>
export const Code4City: FC<PageProps> = props => (
<main {...props}>
<div
className="text-light"
style={{ backgroundImage: `url(${BG_mountain})` }}
Expand Down Expand Up @@ -45,7 +51,7 @@ export const Code4City: FC = () => (
</div>

<div className="col-xs-12 col-md-6">
<CarouselView interval={3}>
<Carousel interval={3000}>
{review.map(({ imageURL, title }) => (
<CarouselItem key={imageURL}>
<Image
Expand All @@ -57,7 +63,7 @@ export const Code4City: FC = () => (
</CarouselCaption>
</CarouselItem>
))}
</CarouselView>
</Carousel>
</div>
<div className="d-md-flex w-100 align-items-start my-5">
<h4
Expand Down Expand Up @@ -161,9 +167,7 @@ export const Code4City: FC = () => (
style={{ backgroundImage: `url(${BG_points})` }}
>
<section className="p-5">
<h4 className={`${style['line-left']} text-white"`}>
合作单位
</h4>
<h4 className="text-white">合作单位</h4>
<div className="row">
{sponsors.map(({ title, list }) => (
<div className="col-md-2 col-sm-6 col-xs-6">
Expand Down Expand Up @@ -195,5 +199,5 @@ export const Code4City: FC = () => (
</ul>
</div>
</div>
</>
</main>
);
3 changes: 2 additions & 1 deletion source/page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { CommunityPage } from './Community';
import { ActivityPage } from './Activity';
import { Page2017 } from './2017';
import { Page2018 } from './2018';
import { Code4City } from './2018-Code4City';

const { Route } = createRouter();

Expand All @@ -15,7 +16,7 @@ export const PageRouter = () => (
<Route path="" component={HomePage} />
<Route path="community" component={CommunityPage} />
<Route path="2017/" component={Page2017} />
{/* { paths: ['2018/Code4City'], component: Code4City }, */}
<Route path="2018/Code4City/" component={Code4City} />
<Route path="2018/" component={Page2018} />
{/* { paths: ['2019'], component: Page2019 },
{ paths: ['2019/invitation'], component: InvitationCard },
Expand Down

1 comment on commit 8bdbb93

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for web-conf ready!

✅ Preview
https://web-conf-qz01ky4rk-techquery.vercel.app

Built with commit 8bdbb93.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.