Skip to content

Commit

Permalink
[migrate] upgrade components & pages of 2018 Code4City & 2019 confere…
Browse files Browse the repository at this point in the history
…nces

[optimize] update Upstream packages
  • Loading branch information
TechQuery committed Jan 31, 2024
1 parent 3ee252a commit 7b298d2
Show file tree
Hide file tree
Showing 19 changed files with 549 additions and 534 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package-lock.json
yarn.lock
dist/
.parcel-cache/
.husky/
.idea/
.vscode/
.DS_Store
4 changes: 0 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh

. "$(dirname "$0")/_/husky.sh"

npm test
4 changes: 0 additions & 4 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh

. "$(dirname "$0")/_/husky.sh"

npm run build
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "https://github.com/FreeCodeCamp-Chengdu/Web-Conf/issues"
},
"scripts": {
"prepare": "husky install",
"prepare": "husky",
"test": "lint-staged",
"clean": "rm -rf dist/ .parcel-cache/",
"start": "npm run clean && parcel source/index.html --open",
Expand All @@ -32,15 +32,15 @@
"*.{html,md,css,less,js,ts,tsx,json}": "prettier --write"
},
"dependencies": {
"boot-cell": "^2.0.0-beta.9",
"boot-cell": "^2.0.0-beta.10",
"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.1.1",
"marked": "^11.2.0",
"mobx": "^6.12.0",
"mobx-i18n": "^0.5.0",
"web-cell": "^3.0.0-rc.8",
Expand All @@ -53,12 +53,12 @@
"@parcel/transformer-typescript-tsc": "~2.11.0",
"@parcel/transformer-webmanifest": "~2.11.0",
"@types/lodash.groupby": "^4.6.9",
"@types/node": "^18.19.8",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"@types/node": "^18.19.10",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^8.0.3",
"husky": "^9.0.7",
"lint-staged": "^15.2.0",
"parcel": "~2.11.0",
"postcss": "^8.4.33",
Expand Down
120 changes: 60 additions & 60 deletions pnpm-lock.yaml

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

30 changes: 30 additions & 0 deletions source/component/Carousel.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { FC, WebCellProps } from 'web-cell';

export interface CarouselItemProps extends WebCellProps<HTMLDivElement> {
interval?: number;
}

export const CarouselItem: FC<CarouselItemProps> = ({
className = '',
interval,
children,
...props
}) => (
<div
className={`carousel-item ${className}`}
{...props}
data-bs-interval={interval}
>
{children}
</div>
);

export const CarouselCaption: FC<WebCellProps<HTMLDivElement>> = ({
className = '',
children,
...props
}) => (
<div className={`carousel-caption ${className}`} {...props}>
{children}
</div>
);
Loading

1 comment on commit 7b298d2

@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-g305o192j-techquery.vercel.app

Built with commit 7b298d2.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.