generated from EasyWebApp/WebCell-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 6
[refactor] replace React Bootstrap with MUI to optimize UX #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
45b9da3
[add] darkmode
Soecka 2ced605
[enhancement] Partner carousel
Soecka 3e19e16
[add] masonry layout of member list
Soecka 59668c7
[remove] useless image
Soecka 51832c5
[fix] li nested in li
Soecka 7910bf4
[polish] git, member, project card style
Soecka 4c7529d
[fix] ESM error of Babel configuration
TechQuery File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,10 +1,47 @@ | ||
{ | ||
"extends": ["next/core-web-vitals", "prettier"], | ||
"plugins": ["simple-import-sort"], | ||
"env": { "browser": true, "node": true, "es2020": true }, | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"prettier", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"warnOnUnsupportedTypeScriptVersion": false, | ||
"ecmaFeatures": { "jsx": true }, | ||
"project": "./tsconfig.json" | ||
}, | ||
"settings": { "react": { "version": "detect" } }, | ||
"plugins": ["simple-import-sort", "@cspell", "@typescript-eslint", "react"], | ||
"rules": { | ||
"react/jsx-no-target-blank": "warn", | ||
"@next/next/no-sync-scripts": "warn", | ||
"arrow-body-style": ["error", "as-needed"], | ||
"simple-import-sort/exports": "error", | ||
"simple-import-sort/imports": "error" | ||
"simple-import-sort/imports": "error", | ||
"react/jsx-curly-brace-presence": ["error", { "props": "never", "children": "never" }], | ||
"react/jsx-no-target-blank": "warn", | ||
"react/react-in-jsx-scope": "off", | ||
"react/jsx-sort-props": [ | ||
"error", | ||
{ | ||
"reservedFirst": true, | ||
"shorthandLast": true, | ||
"callbacksLast": true, | ||
"noSortAlphabetically": true | ||
} | ||
], | ||
"react/self-closing-comp": ["error", { "component": true, "html": true }], | ||
"@typescript-eslint/no-empty-object-type": "off", | ||
"@cspell/spellchecker": [ | ||
"warn", | ||
{ | ||
"cspell": { | ||
"language": "en", | ||
"dictionaries": ["typescript", "node", "html", "css", "bash", "npm"] | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,17 +1,12 @@ | ||
import { GitRepository } from 'mobx-github'; | ||
import { FC } from 'react'; | ||
import { Col, Row } from 'react-bootstrap'; | ||
|
||
import { GitCard } from './Card'; | ||
|
||
export const GitListLayout: FC<{ defaultData: GitRepository[] }> = ({ | ||
defaultData, | ||
}) => ( | ||
<Row as="ul" className="list-unstyled g-4" xs={1} md={2} xl={3}> | ||
export const GitListLayout: FC<{ defaultData: GitRepository[] }> = ({ defaultData }) => ( | ||
<ul className="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3"> | ||
{defaultData.map(item => ( | ||
<Col as="li" key={item.id}> | ||
<GitCard className="h-100 shadow-sm" {...item} /> | ||
</Col> | ||
<GitCard key={item.id} className="h-full" {...item} /> | ||
))} | ||
</Row> | ||
</ul> | ||
); |
This file contains hidden or 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,21 @@ | ||
import { FC, HTMLAttributes, PropsWithRef } from 'react'; | ||
|
||
export type IconProps = PropsWithRef< | ||
HTMLAttributes<HTMLSpanElement> & { | ||
name: string; | ||
variant?: 'outlined' | 'rounded' | 'sharp'; | ||
} | ||
>; | ||
|
||
export const SymbolIcon: FC<IconProps> = ({ className, name, variant = 'outlined', ...props }) => ( | ||
<span | ||
aria-hidden="false" | ||
aria-label={`${name} icon`} | ||
className={`material-symbols-${variant} ${className}`} | ||
{...props} | ||
> | ||
{name} | ||
</span> | ||
); | ||
|
||
SymbolIcon.displayName = 'SymbolIcon'; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.