-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Style : Sort the files that can be modulated
- #8
- Loading branch information
carboxaminoo
committed
Mar 7, 2024
1 parent
d307ff9
commit 8ee3941
Showing
10 changed files
with
113 additions
and
488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<script> | ||
export let styleVariant = "outlined"; | ||
let className = ""; | ||
export { className as class }; | ||
export let style; | ||
const variantsClassName = "style-variant-" + styleVariant; | ||
export let name = "Do something"; | ||
export let type = ""; | ||
export let result_id; | ||
async function reRequest() { | ||
const token = sessionStorage.getItem('auth_token'); | ||
try { | ||
const response = await fetch(`http://175.45.194.59:5050/api/v1/mz-request/${result_id}/mz-result`, { | ||
method: 'POST', | ||
headers: { | ||
'Token': token, | ||
}, | ||
}); | ||
if (response.ok) { | ||
alert('재생성 요청했습니다.'); | ||
} | ||
else{ | ||
const errorResponse = await response.json(); | ||
console.error('Failed to save rating:', errorResponse); | ||
alert(`재요철 실패: ${errorResponse.message}`); | ||
} | ||
} catch (error) { | ||
console.error('Error saving rating:', error); | ||
alert('재요청 중 에러가 발생했습니다.'); | ||
} | ||
} | ||
</script> | ||
|
||
<button | ||
type = {type} | ||
on:click={reRequest} | ||
style="{'background: var(--neutral-10, #486284);border-radius: 50px; border-style: solid; border-color: var(--neutral-10, #486284); border-width: 1px; padding: 12px 20px 12px 20px; display: flex; flex-direction: row; gap: 10px; align-items: center; justify-content: center; position: relative; overflow: hidden;' + style}" | ||
> | ||
<div | ||
style=" | ||
color: var(--neutral-0, #ffffff); | ||
text-align: left; | ||
font-family: var(--body-small-font-family, 'DmSans-Regular', sans-serif); | ||
font-size: var(--body-small-font-size, 24px); | ||
line-height: var(--body-small-line-height, 24px); | ||
font-weight: var(--body-small-font-weight, 400); | ||
position: relative; | ||
" | ||
> | ||
{name} | ||
</div> | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.