Compare commits
No commits in common. "9cd91dc7885b159769db04066eeef1e60a4f64be" and "2a4f6f2c485f0bbedda4fe8a17ed3535ab6639f4" have entirely different histories.
9cd91dc788
...
2a4f6f2c48
27
README.md
27
README.md
|
@ -3,30 +3,3 @@
|
|||
> https://href.plus
|
||||
|
||||
* 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!
|
||||
|
||||
## Building
|
||||
|
||||
*Requires a recent version of [Node](https://nodejs.org) and [pnpm](https://pnpm.io).* In the command-line:
|
||||
|
||||
```sh
|
||||
# Clone the repository.
|
||||
git clone https://github.com/Bauke/href-plus.git
|
||||
|
||||
# Move into it.
|
||||
cd href-plus
|
||||
|
||||
# Install the dependencies.
|
||||
pnpm install
|
||||
|
||||
# Start a local development server.
|
||||
pnpm start -- --open
|
||||
|
||||
# Build for production.
|
||||
pnpm vite build --emptyOutDir
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the [GPL-3.0-or-later](LICENSE) license.
|
||||
|
||||
Icons in [`source/assets/icons`](source/assets/icons) belong to their respective owners.
|
||||
|
|
29
package.json
29
package.json
|
@ -10,21 +10,21 @@
|
|||
"deploy:netlify": "netlify deploy --prod -d 'public' -s 'href.plus'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource/inter": "^4.5.12",
|
||||
"htm": "^3.1.1",
|
||||
"@fontsource/inter": "^4.5.2",
|
||||
"htm": "^3.1.0",
|
||||
"modern-normalize": "^1.1.0",
|
||||
"preact": "^10.11.0",
|
||||
"preact-router": "^4.1.0"
|
||||
"preact": "^10.6.5",
|
||||
"preact-router": "^3.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.7.23",
|
||||
"postcss": "^8.4.16",
|
||||
"sass": "^1.55.0",
|
||||
"stylelint": "^14.13.0",
|
||||
"stylelint-config-standard-scss": "^5.0.0",
|
||||
"typescript": "^4.8.4",
|
||||
"vite": "^3.1.4",
|
||||
"xo": "^0.52.3"
|
||||
"@types/node": "^17.0.14",
|
||||
"postcss": "^8.4.6",
|
||||
"sass": "^1.49.7",
|
||||
"stylelint": "^14.3.0",
|
||||
"stylelint-config-standard-scss": "^3.0.0",
|
||||
"typescript": "^4.5.5",
|
||||
"vite": "^2.7.13",
|
||||
"xo": "^0.47.0"
|
||||
},
|
||||
"stylelint": {
|
||||
"extends": [
|
||||
|
@ -36,11 +36,6 @@
|
|||
},
|
||||
"xo": {
|
||||
"prettier": true,
|
||||
"rules": {
|
||||
"@typescript-eslint/consistent-type-definitions": "off",
|
||||
"@typescript-eslint/consistent-type-imports": "off",
|
||||
"n/file-extension-in-import": "off"
|
||||
},
|
||||
"space": true
|
||||
}
|
||||
}
|
||||
|
|
1615
pnpm-lock.yaml
1615
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -63,7 +63,3 @@
|
|||
margin-right: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.release-date {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
|
|
@ -66,11 +66,6 @@ export default class ReleasePage extends Component<Props, State> {
|
|||
if (loading === 'finished' && release !== undefined) {
|
||||
document.title = release.display();
|
||||
|
||||
const date =
|
||||
release.date === undefined
|
||||
? undefined
|
||||
: html`<span class="release-date">${release.date}</span>`;
|
||||
|
||||
const image =
|
||||
release.image === undefined
|
||||
? undefined
|
||||
|
@ -122,7 +117,6 @@ export default class ReleasePage extends Component<Props, State> {
|
|||
<header class="release-header">
|
||||
${image}
|
||||
<h1>${release.artist}<br />${release.title}</h1>
|
||||
${date}
|
||||
</header>
|
||||
|
||||
<main class="release-main">
|
||||
|
|
|
@ -9,7 +9,6 @@ type ApiReleaseData = {
|
|||
'cover-art-archive': {
|
||||
front: boolean;
|
||||
};
|
||||
date: string | undefined;
|
||||
id: string;
|
||||
relations: Array<{
|
||||
ended: boolean;
|
||||
|
@ -24,7 +23,6 @@ type ApiReleaseData = {
|
|||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
interface IRelease {
|
||||
artist: string;
|
||||
date: string | undefined;
|
||||
image: string | undefined;
|
||||
links: RelationLink[];
|
||||
title: string;
|
||||
|
@ -79,7 +77,6 @@ export default class Release {
|
|||
|
||||
return new Release({
|
||||
artist,
|
||||
date: data.date,
|
||||
image,
|
||||
links,
|
||||
title: data.title,
|
||||
|
|
|
@ -13,7 +13,7 @@ function gitRevParse(): string {
|
|||
const revParse = childProcess.spawnSync(
|
||||
'git',
|
||||
['rev-parse', '--short', '--verify', 'main'],
|
||||
{encoding: 'utf8'},
|
||||
{encoding: 'utf-8'},
|
||||
);
|
||||
|
||||
if (revParse.error) {
|
||||
|
|
Loading…
Reference in New Issue