website: fix older version download not working #1985

This commit is contained in:
Kingkor Roy Tirtho 2024-10-13 10:44:05 +06:00
parent 9cd839cfd9
commit 6e1cd96903
6 changed files with 4179 additions and 6417 deletions

View File

@ -8,21 +8,21 @@ If you're seeing this, you've probably already done this step. Congrats!
```bash
# create a new project in the current directory
npm create svelte@latest
pnpm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
pnpm create svelte@latest my-app
```
## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
Once you've created a project and installed dependencies with `pnpm install` (or `pnpm install` or `yarn`), start a development server:
```bash
npm run dev
pnpm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
pnpm run dev -- --open
```
## Building
@ -30,9 +30,9 @@ npm run dev -- --open
To create a production version of your app:
```bash
npm run build
pnpm run build
```
You can preview the production build with `npm run preview`.
You can preview the production build with `pnpm run preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.

6391
website/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -14,38 +14,38 @@
"format": "prettier --write ."
},
"devDependencies": {
"@playwright/test": "^1.28.1",
"@playwright/test": "^1.41.2",
"@skeletonlabs/skeleton": "2.8.0",
"@skeletonlabs/tw-plugin": "0.3.1",
"@sveltejs/adapter-cloudflare": "^4.1.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@sveltejs/kit": "^2.5.0",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@tailwindcss/typography": "0.5.10",
"@types/eslint": "8.56.0",
"@types/node": "^20.11.16",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"autoprefixer": "10.4.17",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"mdsvex": "^0.11.0",
"postcss": "8.4.35",
"prettier": "^3.1.1",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"svelte": "^4.2.10",
"svelte-check": "^3.6.3",
"tailwindcss": "3.4.1",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^5.0.3",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vite": "^5.1.0",
"vite-plugin-tailwind-purgecss": "0.2.0"
},
"dependencies": {
"@floating-ui/dom": "1.6.1",
"@fortawesome/free-brands-svg-icons": "^6.5.1",
"@octokit/openapi-types": "^19.1.0",
"@octokit/rest": "^20.0.2",
"@octokit/openapi-types": "^22.2.0",
"@octokit/rest": "^21.0.2",
"date-fns": "^3.3.1",
"highlight.js": "11.9.0",
"lucide-svelte": "^0.323.0",

4153
website/pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -102,7 +102,7 @@
</h5>
<div class="flex flex-wrap gap-4">
{#each assets as asset}
<a href={release.assets_url}>
<a href={asset.browser_download_url}>
<button class="btn variant-glass-primary rounded p-0 flex flex-col gap-2">
<span class="bg-primary-500 rounded-t p-3 w-full">
<Fa class="inline" icon={getIcon(asset.browser_download_url)} />

View File

@ -1,14 +1,14 @@
import type { PageLoad } from './$types';
import { Octokit } from '@octokit/rest';
import type { PageLoad } from "./$types";
import { Octokit } from "@octokit/rest";
const github = new Octokit();
export const load: PageLoad = async () => {
const { data: releases } = await github.repos.listReleases({
owner: 'KRTirtho',
repo: 'spotube'
owner: "KRTirtho",
repo: "spotube",
});
return {
releases
releases,
};
};