1
Fork 0

Rename to href+ (#1).

This commit is contained in:
Bauke 2022-01-06 21:12:20 +01:00
parent d174246bca
commit 85d5ffc469
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
9 changed files with 21 additions and 22 deletions

View File

@ -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/href-plus/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/blink/issues/5). Thank you!

View File

@ -1,5 +1,5 @@
{ {
"name": "blink", "name": "href-plus",
"version": "0.1.0", "version": "0.1.0",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"author": "Bauke <me@bauke.xyz>", "author": "Bauke <me@bauke.xyz>",
@ -7,7 +7,7 @@
"start": "vite", "start": "vite",
"test": "xo && stylelint 'source/**/*.scss' && tsc", "test": "xo && stylelint 'source/**/*.scss' && tsc",
"deploy": "vite build --emptyOutDir && pnpm deploy:netlify", "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": { "dependencies": {
"@fontsource/inter": "^4.5.1", "@fontsource/inter": "^4.5.1",

View File

@ -5,7 +5,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <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/modern-normalize.scss">
<link rel="stylesheet" href="./scss/style.scss"> <link rel="stylesheet" href="./scss/style.scss">
</head> </head>

View File

@ -4,9 +4,9 @@ import ExternalAnchor from './external-anchor.js';
export default class SharedFooter extends Component { export default class SharedFooter extends Component {
render() { render() {
const githubUrl = 'https://github.com/Bauke/blink'; const githubUrl = 'https://github.com/Bauke/href-plus';
const versionText = `v${blinkVersion}/${blinkCommitHash}`; const versionText = `v${hrefPlusVersion}/${hrefPlusCommitHash}`;
const versionUrl = `${githubUrl}/tree/${blinkCommitHash}`; const versionUrl = `${githubUrl}/tree/${hrefPlusCommitHash}`;
return html` return html`
<footer class="shared-footer"> <footer class="shared-footer">

View File

@ -6,7 +6,7 @@ import SharedFooter from '../components/shared-footer.js';
export default class HomePage extends Component { export default class HomePage extends Component {
render() { render() {
document.title = 'Blink'; document.title = 'href+';
const links = { const links = {
contribute: html` contribute: html`
@ -32,7 +32,7 @@ export default class HomePage extends Component {
return html` return html`
<div class="home-page"> <div class="home-page">
<header> <header>
<h1>Blink</h1> <h1>href+</h1>
</header> </header>
<main> <main>
@ -42,7 +42,7 @@ export default class HomePage extends Component {
<h2>What is this all about?</h2> <h2>What is this all about?</h2>
<p> <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 easier. By using the data from the ${links.musicbrainz} (an open
encyclopedia for music metadata) we can provide an easy way to encyclopedia for music metadata) we can provide an easy way to
share a single link to all the platforms a song or album is share a single link to all the platforms a song or album is

View File

@ -3,7 +3,7 @@ export {};
declare global { declare global {
// These are created in `vite.config.ts` and inserted by Vite at build time. // These are created in `vite.config.ts` and inserted by Vite at build time.
const blinkCommitHash: string; const hrefPlusCommitHash: string;
const blinkVersion: string; const hrefPlusVersion: string;
const blinkUserAgent: string; const hrefPlusUserAgent: string;
} }

View File

@ -32,7 +32,7 @@ export default class Release {
const apiResponse = await window.fetch(this.apiUrl(mbid), { const apiResponse = await window.fetch(this.apiUrl(mbid), {
headers: { headers: {
accept: 'application/json', accept: 'application/json',
'user-agent': blinkUserAgent, 'user-agent': hrefPlusUserAgent,
}, },
}); });

View File

@ -25,7 +25,7 @@ export default async function searchReleases(
const response = await window.fetch(url, { const response = await window.fetch(url, {
headers: { headers: {
accept: 'application/json', accept: 'application/json',
'user-agent': blinkUserAgent, 'user-agent': hrefPlusUserAgent,
}, },
}); });

View File

@ -23,7 +23,7 @@ function gitRevParse(): string {
return JSON.stringify(revParse.stdout.trim()); 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({ export default defineConfig({
build: { build: {
@ -31,9 +31,9 @@ export default defineConfig({
sourcemap: true, sourcemap: true,
}, },
define: { define: {
blinkVersion: JSON.stringify(blinkVersion), hrefPlusVersion: JSON.stringify(hrefPlusVersion),
blinkCommitHash: gitRevParse(), hrefPlusCommitHash: gitRevParse(),
blinkUserAgent: `"Blink/${blinkVersion} (https://github.com/Bauke/blink)"`, hrefPlusUserAgent: `"href-plus/${hrefPlusVersion} (https://github.com/Bauke/href-plus)"`,
}, },
publicDir: path.join(sourceDir, 'assets'), publicDir: path.join(sourceDir, 'assets'),
root: sourceDir, root: sourceDir,