Skip to content

Commit

Permalink
release v1.3.1 (#638)
Browse files Browse the repository at this point in the history
* [FE] 제좜 μ»΄ν¬λ„ŒνŠΈ UI μˆ˜μ •ν•œλ‹€. (#632)

[FE] 제좜 μ»΄ν¬λ„ŒνŠΈ UI μˆ˜μ •

* [FE] νƒ€μž…μŠ€ν¬λ¦½νŠΈ μ˜΅μ…˜μ„ ν”„λ‘œμ νŠΈμ— 맞게 μˆ˜μ •ν•œλ‹€. (#635)

* feat: tsconfig μ˜΅μ…˜ λ³€κ²½

* feat: λˆ„λ½λœ μ˜΅μ…˜ μΆ”κ°€

* [FE] μž‘λ™μ΄ μ—†μ–΄μ„œ μ›Ήμ†ŒμΌ“ 연결이 μ’…λ£Œλ˜μ—ˆμ„λ•Œ, μž¬μ—°κ²°μ„ ν•  수 μžˆλ„λ‘ ν•œλ‹€. (#637)

feat: reconnect_delayλ₯Ό 1초둜 μ„€μ •ν•œλ‹€.
  • Loading branch information
onschan authored and cndqjacndqja committed Oct 20, 2022
1 parent 3fb989d commit 4c526fb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 22 deletions.
2 changes: 1 addition & 1 deletion frontend/frontend-security
7 changes: 4 additions & 3 deletions frontend/src/components/host/Submissions/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { useMemo } from 'react';
import { useNavigate } from 'react-router-dom';

import Button from '@/components/common/Button';

import emptyFolder from '@/assets/emptyFolder.png';

import styles from './styles';

const columns = ['제좜자', '업무', '제좜일자'];
Expand Down Expand Up @@ -40,6 +39,8 @@ const Submissions: React.FC<SubmissionsProps> = ({ submissions, isFullSize = fal
navigate('spaceRecord');
};

const reversedSubmissions = useMemo(() => [...submissions].reverse(), [submissions]);

return (
<div css={styles.layout({ isFullSize })}>
<div css={styles.header}>
Expand All @@ -62,7 +63,7 @@ const Submissions: React.FC<SubmissionsProps> = ({ submissions, isFullSize = fal
</thead>

<tbody>
{submissions.map(({ submissionId, author, jobName, createdAt }) => (
{reversedSubmissions.map(({ submissionId, author, jobName, createdAt }) => (
<tr key={submissionId}>
<td>{author}</td>
<td>{jobName}</td>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/host/Submissions/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ const layout = ({ isFullSize }: { isFullSize: boolean }) => css`
border-radius: 8px;
font-size: 16px;
box-shadow: 2px 2px 2px 2px ${theme.colors.shadow10};
height: 360px;
padding-bottom: 24px;
${isFullSize &&
css`
margin-top: 5rem;
height: 520px;
height: calc(50vh + 10em);
`}
@media screen and (min-width: 1024px) {
Expand Down Expand Up @@ -62,7 +62,7 @@ const table = ({ isFullSize }: { isFullSize: boolean }) => css`
display: flex;
flex-direction: column;
justify-content: start;
height: 100%;
width: 100%;
overflow-y: ${isFullSize ? 'scroll' : 'hidden'};
height: ${isFullSize ? '50vh' : '12.5em'};
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/pages/user/TaskList/useTaskList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ const useTaskList = () => {
useEffect(() => {
stomp.current = Stomp.client(`${process.env.REACT_APP_WS_URL}/ws-connect`);

stomp.current.reconnect_delay = 1000;

stomp.current.connect({}, () => {
stomp.current.subscribe(`/topic/jobs/${jobId}`, (data: any) => {
setSectionsData(JSON.parse(data.body));
Expand Down
19 changes: 4 additions & 15 deletions frontend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
{
"compilerOptions": {
"target": "es2016",
"composite": true,
"composite": false,
"jsx": "react-jsx",
"jsxImportSource": "@emotion/react",
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"allowJs": true,
"noEmit": true,
"isolatedModules": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"strictNullChecks": true,
"noImplicitThis": true,
"useUnknownInCatchVariables": true,
"exactOptionalPropertyTypes": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"allowUnreachableCode": false,
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"types": ["cypress", "node"]
}
},
"include": ["src", "cypress"],
"exclude": ["**/*.cy.ts"]
"include": ["src"]
}

0 comments on commit 4c526fb

Please sign in to comment.