mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 23:12:23 +00:00
feat(utils): include problemId in getPath function
This commit is contained in:
parent
c5cf52168b
commit
b339e407cf
@ -3,9 +3,12 @@ import { clsx, type ClassValue } from "clsx";
|
|||||||
import { EditorLanguageConfig } from "@prisma/client";
|
import { EditorLanguageConfig } from "@prisma/client";
|
||||||
|
|
||||||
export function cn(...inputs: ClassValue[]) {
|
export function cn(...inputs: ClassValue[]) {
|
||||||
return twMerge(clsx(inputs))
|
return twMerge(clsx(inputs));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getPath(editorLanguageConfig: EditorLanguageConfig) {
|
export function getPath(
|
||||||
return `file:///${editorLanguageConfig.fileName}${editorLanguageConfig.fileExtension}`;
|
problemId: string,
|
||||||
|
editorLanguageConfig: EditorLanguageConfig
|
||||||
|
) {
|
||||||
|
return `file:///${problemId}/${editorLanguageConfig.fileName}${editorLanguageConfig.fileExtension}`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user