Update GitHub links to Gitea.
This commit is contained in:
parent
4bddf6c9f7
commit
0c56e3f368
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue