Path
This commit is contained in:
parent
2c9f8caff4
commit
9d6bd65583
1
exam/dist/assets/index-B1n77CT9.js
vendored
1
exam/dist/assets/index-B1n77CT9.js
vendored
File diff suppressed because one or more lines are too long
1
exam/dist/assets/index-DQG2A_qd.js
vendored
Normal file
1
exam/dist/assets/index-DQG2A_qd.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
exam/dist/index.html
vendored
2
exam/dist/index.html
vendored
@ -5,7 +5,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/phpCourse/exam/dist/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite + React + TS</title>
|
||||
<script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-B1n77CT9.js"></script>
|
||||
<script type="module" crossorigin src="/phpCourse/exam/dist/assets/index-DQG2A_qd.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/react-DXd9vB-a.js">
|
||||
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/mui-CxHUbSMi.js">
|
||||
<link rel="modulepreload" crossorigin href="/phpCourse/exam/dist/assets/tanstack-xmxrKlZO.js">
|
||||
|
||||
2
exam/dist/stats.html
vendored
2
exam/dist/stats.html
vendored
File diff suppressed because one or more lines are too long
@ -109,8 +109,8 @@ const UserImageDialog: FC<Props> = ({ user, open, onClose }) => {
|
||||
formState.image
|
||||
? URL.createObjectURL(formState.image)
|
||||
: formState.predefined
|
||||
? `storage/profilbilder/default/${formState.predefined}.svg`
|
||||
: `storage/${user.image}`
|
||||
? `/storage/profilbilder/default/${formState.predefined}.svg`
|
||||
: `/storage/${user.image}`
|
||||
}
|
||||
sx={{ width: '100px', height: '100px' }}
|
||||
>
|
||||
|
||||
@ -61,7 +61,7 @@ const Header: FC = () => {
|
||||
</IconButton>
|
||||
{user ? (
|
||||
<IconButton onClick={(event) => setAnchorUserMenu(event.currentTarget)} sx={{ p: 0 }}>
|
||||
<Avatar alt={user.username} src={`storage/${user.image}`}>
|
||||
<Avatar alt={user.username} src={`/storage/${user.image}`}>
|
||||
<Person />
|
||||
</Avatar>
|
||||
</IconButton>
|
||||
|
||||
@ -54,19 +54,19 @@ const Post: FC<Props> = ({ post, disableActions }) => {
|
||||
!disableActions && 'id' in post.user ? (
|
||||
post.user.id !== Api.getAuthenticatedUser()?.id ? (
|
||||
<MUILink component={Link} to="/profile/$id" params={{ id: post.user.id }}>
|
||||
<Avatar alt={post.user.username} src={`storage/${post.user.image}`}>
|
||||
<Avatar alt={post.user.username} src={`/storage/${post.user.image}`}>
|
||||
<Person />
|
||||
</Avatar>
|
||||
</MUILink>
|
||||
) : (
|
||||
<MUILink component={Link} to="/profile">
|
||||
<Avatar alt={post.user.username} src={`storage/${post.user.image}`}>
|
||||
<Avatar alt={post.user.username} src={`/storage/${post.user.image}`}>
|
||||
<Person />
|
||||
</Avatar>
|
||||
</MUILink>
|
||||
)
|
||||
) : (
|
||||
<Avatar alt={post.user.username} src={`storage/${post.user.image}`}>
|
||||
<Avatar alt={post.user.username} src={`/storage/${post.user.image}`}>
|
||||
<Person />
|
||||
</Avatar>
|
||||
)
|
||||
|
||||
@ -40,7 +40,7 @@ const Profile: FC<Props> = ({ user, posts, canEdit }) => {
|
||||
<Grid container spacing={2}>
|
||||
<Grid item sx={{ display: 'flex', flexGrow: 1, justifyContent: 'center' }}>
|
||||
<IconButton onClick={() => setImageOpen(true)}>
|
||||
<Avatar alt={user.username} src={`storage/${user.image}`} sx={{ width: '100px', height: '100px' }}>
|
||||
<Avatar alt={user.username} src={`/storage/${user.image}`} sx={{ width: '100px', height: '100px' }}>
|
||||
<Person sx={{ width: '60px', height: '60px' }} />
|
||||
</Avatar>
|
||||
</IconButton>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user