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

proxmoxでmemberページが表示できるようにする #231

Merged
merged 16 commits into from
Apr 2, 2024

Conversation

nose221834
Copy link
Collaborator

@nose221834 nose221834 commented Feb 12, 2024

対応Issue

resolve #230

概要

proxmoxでmemberページが表示できるようにした

実装内容

  • nodeのアップデート
  • next,reactのアップデート
  • typescriptのアップデート
  • Dockerfileの編集
  • DBの編集
  • Nextのアップデートによるエラーの解消

画面スクリーンショット等

テスト項目

  • きちんと動作しているか

備考

いまいまいがslackで言ってたことを実装しないとまたメンバーページが見れなくなるので、そこ早急に実装して欲しいです。
あと、アップデートして死ぬほどwarning出てるからこれも解消お願いします。

Copy link
Collaborator

@takumi0616 takumi0616 left a comment

Choose a reason for hiding this comment

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

回答よろしくお願いします!
僕じゃ全然わかんないとこあったので、つっきーにも見てもらおうと思います!
僕の見た限りではApproveです!

@@ -17,10 +17,10 @@
"highlight.js": "^11.6.0",
"highlightjs": "^9.16.2",
"marked": "^4.1.1",
"next": "12.0.3",
"react": "17.0.2",
"next": "^13.5.6",
Copy link
Collaborator

Choose a reason for hiding this comment

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

ここってv14に変更することもできますか?
(やってほしいわけではなくて教えて欲しいことです!)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

できる!
ただ、14に変えるともっと色々変えなきゃいけないところ増えると思うからとりあえず13にしたよ
もし14にあげたいなら、今のwaningを直す前に14にしちゃってもいいかもね

Comment on lines +18 to +43
<Link href='/records'legacyBehavior>
<a>Record</a>
</Link>
</li>
<li>
<Link href='/curriculums'>
<Link href='/curriculums' legacyBehavior>
<a>Curriculum</a>
</Link>
</li>
<li>
<Link href='/projects'>
<Link href='/projects' legacyBehavior>
<a>Project</a>
</Link>
</li>
<li>
<Link href='/users'>
<Link href='/users' legacyBehavior>
<a>Member</a>
</Link>
</li>
<li>
<Link href='/skills'>
<Link href='/skills' legacyBehavior>
<a>Skills</a>
</Link>
</li>
<li>
<Link href='/categories'>
<Link href='/categories' legacyBehavior>
Copy link
Collaborator

Choose a reason for hiding this comment

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

フロント部分も直していただきありがとうございます!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

とりあえずエラーが出ないようにしただけだから、また直して欲しい
Linkの中でaタグを使うとエラーがでるんだけど、legacyBehaviorを書けば許された
legacyBehaviorを消してaタグも消すか、これにするかだね

Copy link
Collaborator

Choose a reason for hiding this comment

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

aタグをpタグに直してしまえばlegacyBehaviorは必要なくなると思います!
aタグならaタグ、LinkコンポーネントならLinkコンポーネント単体で使ったほうが良いと思います!

@@ -1 +1 @@
eXqxkmurqSMGQLTcA4rpLtPwuuD+MCPVm2PYdaHdhPOT4tdXQSbdOJtX7HVe/6iyHGpQN22aZOLH8OkoTBPPhIBUMc8TD642OceiYDIq0YhtgvCw/MG+o5ncsioyLFw9FEMuohTRpS1ryrovuJtvXAciO58iz7J86lAB8CUzhVrlOJXMDRAX4YFS0+sh3f9xQZho7t2Y0g4k09leaCjWeKdD3QeMlYf0PdmigOre7hQoHhUw3viRjCqm9p4L/75WLL07MQVppS7lF0QLY/dh8L6L76H7aWw1dsUyNMsXIgQoEEEAiKJq9OPJTpSqC0Rdar+d/gROGw5NuSYtPUApiTygbpj3l0uJxzSPpsmrAKJihkxv8TWl2UHVdQW7b3kUFLFnIud8ccRa9UXOOQIG/iO/tiiwcXeSXpD2--naOrfFmuyFZmSsQM--AqntabeEV/PNcpBu/XLXXg==
f8ko3J21oiEzt+rXqJbVgEJ5XVCMDljL/dqszMhBp0Sg5eVv+OV8nlMldfhGk3FYw2QFhV1gy0rziJ+NQwrBqOQpfveibMbKjwLYDJK5D9lTG3tHifLZoYVbhG4tp6pV8T2o6IxH75bcIKGj8krtpkL+Ijpz4xNUAmslvz/tEXUxtydvrGM+Z/GXqhoNZiVBjwpNWsahleeRvdG8OqnqrzbPxrCKJRoJmNRs537HEZlhwtn8xsUYQ1DBg9Syg3SA0HsC39ouAoKamc2g4k0fHSneSgVuZmFNeh7XwGSMNKpwxZCv4EXF79Lk8/7xDBrdONZ+AEQted7/CdGEV5fvoTu7wc9MHWbleUTClb1cnlbzGMpaKL2bmvOyy3xkIDMVykpT/YJkc+P5p/aNdAvD2ez4eopExX1Bioq2--wdAQtBxw3dn/BJo2--1Cr/bd3OcCoyXUJJ6WN3Ug==
Copy link
Collaborator

@takumi0616 takumi0616 Feb 12, 2024

Choose a reason for hiding this comment

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

mastaer.keyってなんの文字列なんですか?
credentials.yml.encってどんなこと書いてるファイルなんですか?
(教えていただけるとありがたいです🙇🏻‍♂️)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

railsの公開鍵みたいなものだと思ってる。
railsの本番環境はこれとmaster.key(これはsettingsの中にある、こっとが秘密鍵)が必要で、どっちもないといけない。
master.keyは前に変えたんだけどこっちは変え忘れてたから、今回のPRで変更しとした。

Comment on lines -71 to +90
<DataTable
columns={props.columns}
data={filteredItems}
pagination
highlightOnHover
pointerOnHover
onRowClicked={(row) => {
if (row.curriculum) router.push(`/${props.route}/${row.curriculum.id}`);
else router.push(`/${props.route}/${row.id}`);
}}
customStyles={CUSTOM_STYLES}
/>
{loader ? (
<div>Loading</div>
) : (
<DataTable
columns={props.columns}
data={filteredItems}
pagination
highlightOnHover
pointerOnHover
onRowClicked={(row) => {
if (row.curriculum) router.push(`/${props.route}/${row.curriculum.id}`);
else router.push(`/${props.route}/${row.id}`);
}}
customStyles={CUSTOM_STYLES}
/>
)}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

https://stackoverflow.com/questions/75068071/react-data-table-component-pagination-error-hydration-failed-because-the-in
これと同じエラーが起きてこう書いたけど、無駄なstateな気がしてる

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

https://github.com/Selman-S/React-Data-Table-Component
このライブラリ、2年前から更新ないやん
リファクタ案件かも~

@takumi0616 takumi0616 merged commit 0ee50cf into develop Apr 2, 2024
@takumi0616 takumi0616 deleted the feat/nose/230/update-versions branch April 2, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node,react,nextのバージョンを上げる
4 participants