-
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.
fix: verification results view (#480)
- Loading branch information
1 parent
f71d038
commit efcf6ae
Showing
5 changed files
with
88 additions
and
46 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,37 @@ | ||
import type { Feedback } from './types'; | ||
|
||
export function toggleDarkMode() { | ||
document.body.classList.toggle('dark'); | ||
} | ||
|
||
/** | ||
* @param feedback - The feedback message to display | ||
* @param message - The additional message to display in show more | ||
* @returns A feedback object | ||
* @example | ||
* positiveFeedback('Feedback message', 'Additional message'); | ||
* // returns { type: 'success', feedback: 'Feedback message', message: 'Additional message' } | ||
**/ | ||
export function positiveFeedback(feedback: string, message?: string): Feedback { | ||
return { | ||
type: 'success', | ||
feedback, | ||
message | ||
}; | ||
} | ||
|
||
/** | ||
* @param feedback - The feedback message to display | ||
* @param message - The additional message to display in show more | ||
* @returns A feedback object | ||
* @example | ||
* negativeFeedback('Feedback message', 'Additional message'); | ||
* // returns { type: 'error', feedback: 'Feedback message', message: 'Additional message' } | ||
**/ | ||
export function negativeFeedback(feedback: string, message?: string): Feedback { | ||
return { | ||
type: 'error', | ||
feedback, | ||
message | ||
}; | ||
} |
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 |
---|---|---|
|
@@ -64,11 +64,11 @@ | |
/> --> | ||
<script | ||
type="module" | ||
src="https://cdn.jsdelivr.net/npm/@didroom/[email protected].1/dist/didroom-components/didroom-components.esm.js" | ||
src="https://cdn.jsdelivr.net/npm/@didroom/[email protected].2/dist/didroom-components/didroom-components.esm.js" | ||
></script> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/@didroom/[email protected].1/dist/didroom-components/didroom-components.css" | ||
href="https://cdn.jsdelivr.net/npm/@didroom/[email protected].2/dist/didroom-components/didroom-components.css" | ||
/> | ||
</svelte:head> | ||
<svelte:window | ||
|
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