updated _GithubSource.tsx
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Struchkov Mark 2024-09-05 02:36:35 +03:00
parent eea2bb1465
commit 6c56d46980
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -23,21 +23,18 @@ export default ((opts?: Partial<GithubSourceOptions>) => {
}: QuartzComponentProps) => { }: QuartzComponentProps) => {
return ( return (
<div class={classNames(displayClass, "github-source")}> <div class={classNames(displayClass, "github-source")}>
<h3>Исходники заметки</h3> <h3>Инструменты</h3>
<ul> <ul>
<li> <li>
<a href={`${options?.repoLink}/blob/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`} className="external"> <a href={`${options?.repoLink}/blob/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`}
Редактировать className="external">
Редактировать
</a> </a>
</li> </li>
<li> <li>
<a href={`${options?.repoLink}/blame/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`} class="external"> <a href={`${options?.repoLink}/commits/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`}
Blame className="external">
</a> 🕒 История изменений
</li>
<li>
<a href={`${options?.repoLink}/commits/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`} class="external">
История изменений
</a> </a>
<svg <svg
class="external-icon" class="external-icon"
@ -54,6 +51,12 @@ export default ((opts?: Partial<GithubSourceOptions>) => {
/> />
</svg> </svg>
</li> </li>
<li>
<a href={`${options?.repoLink}/blame/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`}
className="external">
🧑💻 Авторы
</a>
</li>
</ul> </ul>
</div> </div>
) )