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) => {
return (
<div class={classNames(displayClass, "github-source")}>
<h3>Исходники заметки</h3>
<h3>Инструменты</h3>
<ul>
<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>
</li>
<li>
<a href={`${options?.repoLink}/blame/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`} class="external">
Blame
<a href={`${options?.repoLink}/commits/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`}
className="external">
🕒 История изменений
</a>
</li>
<li>
<a href={`${options?.repoLink}/commits/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`} class="external">
История изменений
</a>
<svg
<svg
class="external-icon"
viewBox= "0 0 512 512"
viewBox="0 0 512 512"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
x="0px"
@ -49,11 +46,17 @@ export default ((opts?: Partial<GithubSourceOptions>) => {
fill="currentColor"
xmlSpace="preserve"
>
<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"
<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"
/>
</svg>
</li>
<li>
<a href={`${options?.repoLink}/blame/${options?.branch}/${fileData.filePath!.replace(/^content\//, "")}`}
className="external">
🧑💻 Авторы
</a>
</li>
</ul>
</div>
)