Rename to href+ (#1).
This commit is contained in:
parent
d174246bca
commit
85d5ffc469
|
@ -1,6 +1,5 @@
|
|||
# Blink
|
||||
# href+
|
||||
|
||||
> https://blink.bauke.xyz
|
||||
> https://href.plus
|
||||
|
||||
* If you can think up a better name, see [#1](https://github.com/Bauke/blink/issues/1).
|
||||
* If you find a release that has a link which just shows the domain and not a proper name, please post it in [#5](https://github.com/Bauke/blink/issues/5). Thank you!
|
||||
* If you find a release that has a link which just shows the domain and not a proper name, please post it in [#5](https://github.com/Bauke/href-plus/issues/5). Thank you!
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "blink",
|
||||
"name": "href-plus",
|
||||
"version": "0.1.0",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"author": "Bauke <me@bauke.xyz>",
|
||||
|
@ -7,7 +7,7 @@
|
|||
"start": "vite",
|
||||
"test": "xo && stylelint 'source/**/*.scss' && tsc",
|
||||
"deploy": "vite build --emptyOutDir && pnpm deploy:netlify",
|
||||
"deploy:netlify": "netlify deploy --prod -d 'public' -s 'blink.bauke.xyz'"
|
||||
"deploy:netlify": "netlify deploy --prod -d 'public' -s 'href.plus'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource/inter": "^4.5.1",
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Blink</title>
|
||||
<title>href+</title>
|
||||
<link rel="stylesheet" href="./scss/modern-normalize.scss">
|
||||
<link rel="stylesheet" href="./scss/style.scss">
|
||||
</head>
|
||||
|
|
|
@ -4,9 +4,9 @@ import ExternalAnchor from './external-anchor.js';
|
|||
|
||||
export default class SharedFooter extends Component {
|
||||
render() {
|
||||
const githubUrl = 'https://github.com/Bauke/blink';
|
||||
const versionText = `v${blinkVersion}/${blinkCommitHash}`;
|
||||
const versionUrl = `${githubUrl}/tree/${blinkCommitHash}`;
|
||||
const githubUrl = 'https://github.com/Bauke/href-plus';
|
||||
const versionText = `v${hrefPlusVersion}/${hrefPlusCommitHash}`;
|
||||
const versionUrl = `${githubUrl}/tree/${hrefPlusCommitHash}`;
|
||||
|
||||
return html`
|
||||
<footer class="shared-footer">
|
||||
|
|
|
@ -6,7 +6,7 @@ import SharedFooter from '../components/shared-footer.js';
|
|||
|
||||
export default class HomePage extends Component {
|
||||
render() {
|
||||
document.title = 'Blink';
|
||||
document.title = 'href+';
|
||||
|
||||
const links = {
|
||||
contribute: html`
|
||||
|
@ -32,7 +32,7 @@ export default class HomePage extends Component {
|
|||
return html`
|
||||
<div class="home-page">
|
||||
<header>
|
||||
<h1>Blink</h1>
|
||||
<h1>href+</h1>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
|
@ -42,7 +42,7 @@ export default class HomePage extends Component {
|
|||
<h2>What is this all about?</h2>
|
||||
|
||||
<p>
|
||||
Blink is a website that hopes to make sharing links to music
|
||||
href+ is a website that hopes to make sharing links to music
|
||||
easier. By using the data from the ${links.musicbrainz} (an open
|
||||
encyclopedia for music metadata) we can provide an easy way to
|
||||
share a single link to all the platforms a song or album is
|
||||
|
|
|
@ -3,7 +3,7 @@ export {};
|
|||
|
||||
declare global {
|
||||
// These are created in `vite.config.ts` and inserted by Vite at build time.
|
||||
const blinkCommitHash: string;
|
||||
const blinkVersion: string;
|
||||
const blinkUserAgent: string;
|
||||
const hrefPlusCommitHash: string;
|
||||
const hrefPlusVersion: string;
|
||||
const hrefPlusUserAgent: string;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ export default class Release {
|
|||
const apiResponse = await window.fetch(this.apiUrl(mbid), {
|
||||
headers: {
|
||||
accept: 'application/json',
|
||||
'user-agent': blinkUserAgent,
|
||||
'user-agent': hrefPlusUserAgent,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ export default async function searchReleases(
|
|||
const response = await window.fetch(url, {
|
||||
headers: {
|
||||
accept: 'application/json',
|
||||
'user-agent': blinkUserAgent,
|
||||
'user-agent': hrefPlusUserAgent,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ function gitRevParse(): string {
|
|||
return JSON.stringify(revParse.stdout.trim());
|
||||
}
|
||||
|
||||
const blinkVersion = process.env.npm_package_version ?? '<unknown version>';
|
||||
const hrefPlusVersion = process.env.npm_package_version ?? '<unknown version>';
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
|
@ -31,9 +31,9 @@ export default defineConfig({
|
|||
sourcemap: true,
|
||||
},
|
||||
define: {
|
||||
blinkVersion: JSON.stringify(blinkVersion),
|
||||
blinkCommitHash: gitRevParse(),
|
||||
blinkUserAgent: `"Blink/${blinkVersion} (https://github.com/Bauke/blink)"`,
|
||||
hrefPlusVersion: JSON.stringify(hrefPlusVersion),
|
||||
hrefPlusCommitHash: gitRevParse(),
|
||||
hrefPlusUserAgent: `"href-plus/${hrefPlusVersion} (https://github.com/Bauke/href-plus)"`,
|
||||
},
|
||||
publicDir: path.join(sourceDir, 'assets'),
|
||||
root: sourceDir,
|
||||
|
|
Loading…
Reference in New Issue