1
Fork 0

Update GitHub links to Gitea.

This commit is contained in:
Bauke 2022-09-29 16:53:00 +02:00
parent 4bddf6c9f7
commit 0c56e3f368
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
3 changed files with 4 additions and 16 deletions

View File

@ -20,14 +20,14 @@ export default class SharedFooter extends Component<Props> {
? undefined
: html`<a href="/settings">Settings</a>${' '}`;
const githubUrl = 'https://github.com/Bauke/href-plus';
const giteaUrl = 'https://git.bauke.xyz/Bauke/href-plus';
const versionText = `v${hrefPlusVersion}/${hrefPlusCommitHash}`;
const versionUrl = `${githubUrl}/tree/${hrefPlusCommitHash}`;
const versionUrl = `${giteaUrl}/src/commit/${hrefPlusCommitHash}`;
return html`
<footer class="shared-footer">
${homeLink}${settingsLink}
<${ExternalAnchor} text="GitHub" url=${githubUrl} />
<${ExternalAnchor} text="Gitea" url=${giteaUrl} />
${' '}
<${ExternalAnchor} text=${versionText} url=${versionUrl} />
</footer>

View File

@ -47,13 +47,6 @@ export default class SettingsPage extends Component<Props, State> {
(theme) => html`<option value=${theme.cssClass}>${theme.name}</option>`,
);
const moreThemesLink = html`
<${ExternalAnchor}
text="more themes issue"
url="https://github.com/Bauke/href-plus/issues/17"
/>
`;
return html`
<div class="settings-page">
<header>
@ -66,11 +59,6 @@ export default class SettingsPage extends Component<Props, State> {
<select value=${selectedTheme} onChange=${this.onThemeChange}>
${themeOptions}
</select>
<p>
If your favorite theme isn't in the list here, please make a request
for it in the ${moreThemesLink}!
</p>
</section>
<section class="setting">

View File

@ -33,7 +33,7 @@ export default defineConfig({
define: {
hrefPlusVersion: JSON.stringify(hrefPlusVersion),
hrefPlusCommitHash: gitRevParse(),
hrefPlusUserAgent: `"href-plus/${hrefPlusVersion} (https://github.com/Bauke/href-plus)"`,
hrefPlusUserAgent: `"href-plus/${hrefPlusVersion} (https://git.bauke.xyz/Bauke/href-plus)"`,
},
publicDir: path.join(sourceDir, 'assets'),
root: sourceDir,