This commit is contained in:
Its4Nik 2024-05-22 00:44:22 +02:00
commit 9a354dced2
5 changed files with 53 additions and 9 deletions

View File

@ -1,5 +1,42 @@
## [1.11.1](https://github.com/msgbyte/tianji/compare/v1.11.0...v1.11.1) (2024-05-21)
### Bug Fixes
* fix display problem in docker panel ([e3d0555](https://github.com/msgbyte/tianji/commit/e3d0555c454cf7e49a9301a28f65cf863fc50573))
### Others
* add survey add state ([3ecd7aa](https://github.com/msgbyte/tianji/commit/3ecd7aa171f7be0b8c7dfdeff7d140294d8819bc))
## [1.11.0](https://github.com/msgbyte/tianji/compare/v1.10.0...v1.11.0) (2024-05-20)
### Features
* add reporter send docker info ([1dfa24d](https://github.com/msgbyte/tianji/commit/1dfa24df1b52544bee134cc6dcc94f744026bc03))
* add server docker expend view ([c6433f3](https://github.com/msgbyte/tianji/commit/c6433f310b821b4e8b3cb55df1e9ccadda7d97f4))
### Document
* new homepage ([a20396a](https://github.com/msgbyte/tianji/commit/a20396ad97cec9a54461411e8e79af9fc6571c6b))
* update website style ([8e96c06](https://github.com/msgbyte/tianji/commit/8e96c06d94b71c74235769eb5ff691c951cc2064))
* uprade docs website to v3.3.2 ([eacf7fc](https://github.com/msgbyte/tianji/commit/eacf7fc56f2f23b301470eca51747d52fe1d78e4))
### Others
* add loading state for common list ([00d40c8](https://github.com/msgbyte/tianji/commit/00d40c8410c0c7c94438518344cd7c946cc64879))
* change datatable expend icon and add transition ([74bd9ef](https://github.com/msgbyte/tianji/commit/74bd9ef3d96c1f2940c0717b61466edc7d0b44ca))
* move dependency place ([dec6a8b](https://github.com/msgbyte/tianji/commit/dec6a8b7c59deac561e68abed46334e7a072f8c5))
* update survey icon ([0ea7515](https://github.com/msgbyte/tianji/commit/0ea7515ad21e8d4e3fd798bf3e1341f0caf56821))
* upgrade tianji-client-sdk version ([9a0a1ea](https://github.com/msgbyte/tianji/commit/9a0a1eacb693dd816ee68db2e217f8f6e48528c6))
* upgrade trpc version to 10.45.2 ([7c94caf](https://github.com/msgbyte/tianji/commit/7c94caf0ed777f9558bbdc84c26eba32d60105a1))
## [1.10.0](https://github.com/msgbyte/tianji/compare/v1.9.4...v1.10.0) (2024-05-15) ## [1.10.0](https://github.com/msgbyte/tianji/compare/v1.9.4...v1.10.0) (2024-05-15)

View File

@ -34,8 +34,9 @@ It's good to specialize in one thing, if we are experts in related abilities we
- [x] website - [x] website
- [ ] team collaboration - [ ] team collaboration
- [ ] utm track - [ ] utm track
- [ ] waitlist - [x] waitlist
- [ ] survey - [x] survey
- [ ] survey page
- [ ] lighthouse report - [ ] lighthouse report
- [ ] hooks - [ ] hooks
- [ ] links - [ ] links

View File

@ -1,7 +1,7 @@
{ {
"name": "tianji", "name": "tianji",
"private": true, "private": true,
"version": "1.10.0", "version": "1.11.1",
"scripts": { "scripts": {
"dev": "concurrently --kill-others npm:dev:server npm:dev:web", "dev": "concurrently --kill-others npm:dev:server npm:dev:web",
"dev:web": "cd src/client && pnpm dev", "dev:web": "cd src/client && pnpm dev",

View File

@ -54,16 +54,20 @@ export const ServerRowExpendView: React.FC<{ row: ServerStatusInfo }> =
cell: (props) => cell: (props) =>
props props
.getValue() .getValue()
.map((item, i) => ( .map((item, i) =>
item.IP ? (
<div <div
key={i} key={i}
>{`${item.IP}:${item.PublicPort} -> ${item.PrivatePort} / ${item.Type}`}</div> >{`${item.IP}:${item.PublicPort} -> ${item.PrivatePort} / ${item.Type}`}</div>
)), ) : (
<div key={i}>{`${item.PrivatePort} / ${item.Type}`}</div>
)
),
}), }),
columnHelper.accessor('cpuPercent', { columnHelper.accessor('cpuPercent', {
header: 'CPU(%)', header: 'CPU(%)',
size: 90, size: 90,
cell: (props) => `${props.getValue() * 100}%`, cell: (props) => `${Number(props.getValue().toFixed(2))}%`,
}), }),
columnHelper.display({ columnHelper.display({
header: t('Memory'), header: t('Memory'),

View File

@ -8,6 +8,7 @@ import { useEvent } from '@/hooks/useEvent';
import { LayoutV2 } from '@/pages/LayoutV2'; import { LayoutV2 } from '@/pages/LayoutV2';
import { useCurrentWorkspaceId } from '@/store/user'; import { useCurrentWorkspaceId } from '@/store/user';
import { routeAuthBeforeLoad } from '@/utils/route'; import { routeAuthBeforeLoad } from '@/utils/route';
import { cn } from '@/utils/style';
import { Trans, useTranslation } from '@i18next-toolkit/react'; import { Trans, useTranslation } from '@i18next-toolkit/react';
import { import {
createFileRoute, createFileRoute,
@ -71,6 +72,7 @@ function PageComponent() {
title={t('Survey')} title={t('Survey')}
actions={ actions={
<Button <Button
className={cn(pathname === '/survey/add' && '!bg-muted')}
variant="outline" variant="outline"
Icon={LuPlus} Icon={LuPlus}
onClick={handleClickAdd} onClick={handleClickAdd}