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,25 +23,22 @@ 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> </a>
</li> <svg
<li>
<a href={`${options?.repoLink}/commits/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`} class="external">
История изменений
</a>
<svg
class="external-icon" class="external-icon"
viewBox= "0 0 512 512" viewBox="0 0 512 512"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink" xmlnsXlink="http://www.w3.org/1999/xlink"
x="0px" x="0px"
@ -49,11 +46,17 @@ export default ((opts?: Partial<GithubSourceOptions>) => {
fill="currentColor" fill="currentColor"
xmlSpace="preserve" xmlSpace="preserve"
> >
<path <path
d= "M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z" d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"
/> />
</svg> </svg>
</li> </li>
<li>
<a href={`${options?.repoLink}/blame/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`}
className="external">
🧑💻 Авторы
</a>
</li>
</ul> </ul>
</div> </div>
) )