Skip to content
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

[Update] Apply new ui for dashboard #147

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b3481a1
update login
vitran12 May 28, 2024
f86bab1
update code listing and new project
vitran12 May 29, 2024
b437e89
update api, document and overview
vitran12 May 29, 2024
3fa809e
update setting
vitran12 May 30, 2024
c5f4f9f
update code settings
vitran12 May 30, 2024
b6dc808
update code responsive
vitran12 May 30, 2024
92766ef
update fix sign up reload
vitran12 May 31, 2024
348c5c6
update code
vitran12 May 31, 2024
d401f65
update code
vitran12 May 31, 2024
ad7d6b7
update code header
vitran12 Jun 1, 2024
5009d4f
update code package
vitran12 Jun 1, 2024
ae86903
update theme & clearn
vitran12 Jun 2, 2024
7a20f96
clearn import
vitran12 Jun 2, 2024
d7028f4
clearn code
vitran12 Jun 3, 2024
1ac50c6
update ui libabry and version
vitran12 Jun 20, 2024
1933a7c
fix code review by code rabbit
vitran12 Jun 20, 2024
4098f3b
Merge branch 'main' into alice/new-ui
vitran12 Jun 20, 2024
ce28330
clear code admin.css && tab list
vitran12 Jun 21, 2024
3d9a424
update logo login, edit tab list overflow, footer logo
vitran12 Jun 24, 2024
759a29d
clearn code setting && edit miss text sign up
vitran12 Jun 24, 2024
cf38969
update popover create new project
vitran12 Jun 24, 2024
49f0e41
change and remove button component old
vitran12 Jun 24, 2024
14e428d
Merge branch 'main' into alice/new-ui
vitran12 Jun 25, 2024
d0a0e9d
Update package-lock.json
hackerwins Jun 25, 2024
3953d04
Add yorkie-ui
hackerwins Jun 25, 2024
5a7c01f
fix new follow icon library
vitran12 Jul 14, 2024
a662b85
change function arrow to class
vitran12 Jul 14, 2024
2c230be
Merge branch 'main' into alice/new-ui
vitran12 Jul 14, 2024
1ee6ebc
update packagejsonlock
vitran12 Jul 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42,751 changes: 30,881 additions & 11,870 deletions package-lock.json

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"@types/eslint": "^8.56.10",
"@types/jest": "^24.9.1",
"@types/node": "^12.20.47",
"@types/react": "^16.14.24",
"@types/react-dom": "^16.9.14",
"@types/node": "^20.12.12",
"@types/react-redux": "^7.1.23",
"classnames": "^2.3.2",
"date-fns": "^3.6.0",
Expand All @@ -24,16 +23,18 @@
"prettier": "^2.6.2",
"prism-react-renderer": "^1.3.5",
"rc-slider": "^10.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react": "^18.3.1",
vitran12 marked this conversation as resolved.
Show resolved Hide resolved
"react-dom": "^18.3.1",
"react-hook-form": "^7.33.1",
"react-json-view": "chacha912/react-json-view#master",
"react-redux": "^7.2.6",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.0",
"sass": "^1.55.0",
"typescript": "~4.1.5",
"yorkie-js-sdk": "^0.4.20"
"t": "^0.5.1",
"typescript": "^5.4.5",
"yorkie-js-sdk": "^0.4.20",
"yorkie-ui": "^0.5.7"
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -132,6 +133,8 @@
"@bufbuild/buf": "^1.28.1",
"@bufbuild/protoc-gen-es": "^1.6.0",
"@connectrpc/protoc-gen-connect-es": "^1.2.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.4",
"eslint-plugin-spellcheck": "^0.0.19",
"postcss": "^8.4.12"
Expand Down
28 changes: 13 additions & 15 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ import { TestPage, ButtonView, PopoverView, DropdownView, InputView, BreadcrumbV
function App() {
const { theme } = useAppSelector(selectPreferences);
useEffect(() => {
document.body.classList.toggle('darkmode', theme.darkMode);
document.documentElement.setAttribute('data-theme', theme.darkMode ? 'dark' : 'light');
}, [theme.darkMode]);

return (
<Router basename={process.env.PUBLIC_URL}>
<Routes>
<Route path="/" element={<Navigate to="/login" replace />} />
<Route element={<PublicRoute />} >
<Route element={<PublicRoute />}>
<Route path="/login" element={<LoginPage />} />
<Route path="/signup" element={<SignupPage />} />
</Route>
Expand All @@ -63,19 +63,17 @@ function App() {
<Route path="/settings" element={<SettingsPage />} />
</Route>
<Route path="/community" element={<CommunityPage />} />
{
process.env.NODE_ENV === 'development' && (
<Route path="/test" element={<TestPage />}>
<Route path="/test" element={<Navigate to="./button" />} />
<Route path="/test/button" element={<ButtonView />} />
<Route path="/test/popover" element={<PopoverView />} />
<Route path="/test/dropdown" element={<DropdownView />} />
<Route path="/test/input" element={<InputView />} />
<Route path="/test/breadcrumb" element={<BreadcrumbView />} />
<Route path="/test/modal" element={<ModalView />} />
</Route>
)
}
{process.env.NODE_ENV === 'development' && (
<Route path="/test" element={<TestPage />}>
<Route path="/test" element={<Navigate to="./button" />} />
<Route path="/test/button" element={<ButtonView />} />
<Route path="/test/popover" element={<PopoverView />} />
<Route path="/test/dropdown" element={<DropdownView />} />
<Route path="/test/input" element={<InputView />} />
<Route path="/test/breadcrumb" element={<BreadcrumbView />} />
<Route path="/test/modal" element={<ModalView />} />
</Route>
)}
<Route path="*" element={<NotFoundPage />} />
</Routes>
</Router>
Expand Down
Loading
Loading