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
|
? undefined
|
||||||
: html`<a href="/settings">Settings</a>${' '}`;
|
: 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 versionText = `v${hrefPlusVersion}/${hrefPlusCommitHash}`;
|
||||||
const versionUrl = `${githubUrl}/tree/${hrefPlusCommitHash}`;
|
const versionUrl = `${giteaUrl}/src/commit/${hrefPlusCommitHash}`;
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<footer class="shared-footer">
|
<footer class="shared-footer">
|
||||||
${homeLink}${settingsLink}
|
${homeLink}${settingsLink}
|
||||||
<${ExternalAnchor} text="GitHub" url=${githubUrl} />
|
<${ExternalAnchor} text="Gitea" url=${giteaUrl} />
|
||||||
${' '}
|
${' '}
|
||||||
<${ExternalAnchor} text=${versionText} url=${versionUrl} />
|
<${ExternalAnchor} text=${versionText} url=${versionUrl} />
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -47,13 +47,6 @@ export default class SettingsPage extends Component<Props, State> {
|
||||||
(theme) => html`<option value=${theme.cssClass}>${theme.name}</option>`,
|
(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`
|
return html`
|
||||||
<div class="settings-page">
|
<div class="settings-page">
|
||||||
<header>
|
<header>
|
||||||
|
@ -66,11 +59,6 @@ export default class SettingsPage extends Component<Props, State> {
|
||||||
<select value=${selectedTheme} onChange=${this.onThemeChange}>
|
<select value=${selectedTheme} onChange=${this.onThemeChange}>
|
||||||
${themeOptions}
|
${themeOptions}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<p>
|
|
||||||
If your favorite theme isn't in the list here, please make a request
|
|
||||||
for it in the ${moreThemesLink}!
|
|
||||||
</p>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="setting">
|
<section class="setting">
|
||||||
|
|
|
@ -33,7 +33,7 @@ export default defineConfig({
|
||||||
define: {
|
define: {
|
||||||
hrefPlusVersion: JSON.stringify(hrefPlusVersion),
|
hrefPlusVersion: JSON.stringify(hrefPlusVersion),
|
||||||
hrefPlusCommitHash: gitRevParse(),
|
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'),
|
publicDir: path.join(sourceDir, 'assets'),
|
||||||
root: sourceDir,
|
root: sourceDir,
|
||||||
|
|
Loading…
Reference in New Issue