Skip to content

Commit

Permalink
Merged main into next
Browse files Browse the repository at this point in the history
  • Loading branch information
notangelmario committed Jan 23, 2023
2 parents f172d19 + 390899c commit af48312
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 53 deletions.
35 changes: 35 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"commitConvention": "angular",
"contributors": [
{
"login": "rtsfred3",
"name": "Ryan Fredrickson",
"avatar_url": "https://avatars.githubusercontent.com/u/2818162?v=4",
"profile": "https://github.com/rtsfred3",
"contributions": [
"bug",
"doc"
]
},
{
"login": "toniengelhardt",
"name": "Toni Engelhardt",
"avatar_url": "https://avatars.githubusercontent.com/u/2703233?v=4",
"profile": "http://merklin.xyz",
"contributions": [
"ideas"
]
}
],
"contributorsPerLine": 7,
"skipCi": true,
"repoType": "github",
"repoHost": "https://github.com",
"projectName": "paquet",
"projectOwner": "notangelmario"
}
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/app_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ assignees: ''
<!-- Please check https://paquet.shop/docs/manifest -->

**App URL:** https://example.com\
**App Manifest URL:** https://example.com/manifest.json\
**App Manifest URL:** https://example.com/manifest.json (if the manifest is added using javascript, if you don't you can leave this empty)\
**App public repo(GitHub/GitLab if applicable):** https://github.com/torvalds/linux\
**App author:** Linus Torvalds\
**Features:** (desktop optimized, requires auth, open source, offline compatible, mobile optimized)
Expand Down
34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@

# [📦 Paquet](https://paquet.shop)

[![Discord](https://img.shields.io/discord/1031892991478071306?label=discord&logo=discord)](https://discord.com/invite/DXke9aSZh6)
[![Discord](https://img.shields.io/discord/1031892991478071306?label=discord&logo=discord&style=flat-square)](https://discord.gg/JAcTzvxFFJ)<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)

<!-- ALL-CONTRIBUTORS-BADGE:END -->

Welcome to your new web app shop!

👋 Submit a new app 👉 [here](https://github.com/notangelmario/paquet/issues/new?labels=new+app&template=app-request.md)

### About
### ☕ If you like Paquet, consider [buying me a coffee](https://buymeacoffee.com/notangelmario)!

---

## About

- ⚡ Optimized for speed
- 💄 An actual good looking web app shop
Expand Down Expand Up @@ -76,3 +83,26 @@ Developer documentation is available both on [GitHub](/docs/getting-started.md)
[Paquet](https://paquet.shop/docs/getting-started)

Developer documentation teaches you how you can add your own app to Paquet or build an app using Paquet's APIs

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rtsfred3"><img src="https://avatars.githubusercontent.com/u/2818162?v=4?s=100" width="100px;" alt="Ryan Fredrickson"/><br /><sub><b>Ryan Fredrickson</b></sub></a><br /><a href="https://github.com/notangelmario/paquet/issues?q=author%3Artsfred3" title="Bug reports">🐛</a> <a href="https://github.com/notangelmario/paquet/commits?author=rtsfred3" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://merklin.xyz"><img src="https://avatars.githubusercontent.com/u/2703233?v=4?s=100" width="100px;" alt="Toni Engelhardt"/><br /><sub><b>Toni Engelhardt</b></sub></a><br /><a href="#ideas-toniengelhardt" title="Ideas, Planning, & Feedback">🤔</a></td>
</tr>
</tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
10 changes: 9 additions & 1 deletion docs/manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

You can specify your app details on Paquet, using your `manifest.json` or `site.webmanifest` file.

> This file is usually crawled by Paquet.
Here is a `manifest.json` example:

```json
Expand Down Expand Up @@ -61,9 +63,15 @@ This is the name of the author. It is prefered to use the same
names across multiple apps published to Paquet to share
verification status

> This property is not used often, so when not present,
Paquet will look for an author in the web page.

### `description`

This is the description that will be shown on your app listing.
This is the description that will be shown on your app listing.

> Most apps do not have a `description` property, so Paquet
will look for one in the web page if not present.

### `categories`

Expand Down
82 changes: 42 additions & 40 deletions fresh.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,27 @@
import config from "./deno.json" assert { type: "json" };
import * as $0 from "./routes/_app.tsx";
import * as $1 from "./routes/_middleware.ts";
import * as $2 from "./routes/app/[id]/icon.ts";
import * as $3 from "./routes/app/[id]/index.tsx";
import * as $4 from "./routes/app/[id]/screenshot.ts";
import * as $5 from "./routes/app/error.tsx";
import * as $6 from "./routes/category/[id].tsx";
import * as $7 from "./routes/category/index.tsx";
import * as $8 from "./routes/docs/[doc].tsx";
import * as $9 from "./routes/docs/index.tsx";
import * as $10 from "./routes/env.js.ts";
import * as $11 from "./routes/gfm.css.ts";
import * as $12 from "./routes/home.tsx";
import * as $13 from "./routes/index.tsx";
import * as $14 from "./routes/login.tsx";
import * as $15 from "./routes/loved.tsx";
import * as $16 from "./routes/offline.tsx";
import * as $17 from "./routes/privacy.tsx";
import * as $18 from "./routes/search.tsx";
import * as $19 from "./routes/settings.tsx";
import * as $20 from "./routes/sitemap.xml.ts";
import * as $21 from "./routes/terms-and-conditions.tsx";
import * as $2 from "./routes/app/[id]/cover.ts";
import * as $3 from "./routes/app/[id]/icon.ts";
import * as $4 from "./routes/app/[id]/index.tsx";
import * as $5 from "./routes/app/[id]/screenshot.ts";
import * as $6 from "./routes/app/error.tsx";
import * as $7 from "./routes/category/[id].tsx";
import * as $8 from "./routes/category/index.tsx";
import * as $9 from "./routes/docs/[doc].tsx";
import * as $10 from "./routes/docs/index.tsx";
import * as $11 from "./routes/env.js.ts";
import * as $12 from "./routes/gfm.css.ts";
import * as $13 from "./routes/home.tsx";
import * as $14 from "./routes/index.tsx";
import * as $15 from "./routes/login.tsx";
import * as $16 from "./routes/loved.tsx";
import * as $17 from "./routes/offline.tsx";
import * as $18 from "./routes/privacy.tsx";
import * as $19 from "./routes/search.tsx";
import * as $20 from "./routes/settings.tsx";
import * as $21 from "./routes/sitemap.xml.ts";
import * as $22 from "./routes/terms-and-conditions.tsx";
import * as $$0 from "./islands/Dialog.tsx";
import * as $$1 from "./islands/InstallBanner.tsx";
import * as $$2 from "./islands/LoginButtons.tsx";
Expand All @@ -39,26 +40,27 @@ const manifest = {
routes: {
"./routes/_app.tsx": $0,
"./routes/_middleware.ts": $1,
"./routes/app/[id]/icon.ts": $2,
"./routes/app/[id]/index.tsx": $3,
"./routes/app/[id]/screenshot.ts": $4,
"./routes/app/error.tsx": $5,
"./routes/category/[id].tsx": $6,
"./routes/category/index.tsx": $7,
"./routes/docs/[doc].tsx": $8,
"./routes/docs/index.tsx": $9,
"./routes/env.js.ts": $10,
"./routes/gfm.css.ts": $11,
"./routes/home.tsx": $12,
"./routes/index.tsx": $13,
"./routes/login.tsx": $14,
"./routes/loved.tsx": $15,
"./routes/offline.tsx": $16,
"./routes/privacy.tsx": $17,
"./routes/search.tsx": $18,
"./routes/settings.tsx": $19,
"./routes/sitemap.xml.ts": $20,
"./routes/terms-and-conditions.tsx": $21,
"./routes/app/[id]/cover.ts": $2,
"./routes/app/[id]/icon.ts": $3,
"./routes/app/[id]/index.tsx": $4,
"./routes/app/[id]/screenshot.ts": $5,
"./routes/app/error.tsx": $6,
"./routes/category/[id].tsx": $7,
"./routes/category/index.tsx": $8,
"./routes/docs/[doc].tsx": $9,
"./routes/docs/index.tsx": $10,
"./routes/env.js.ts": $11,
"./routes/gfm.css.ts": $12,
"./routes/home.tsx": $13,
"./routes/index.tsx": $14,
"./routes/login.tsx": $15,
"./routes/loved.tsx": $16,
"./routes/offline.tsx": $17,
"./routes/privacy.tsx": $18,
"./routes/search.tsx": $19,
"./routes/settings.tsx": $20,
"./routes/sitemap.xml.ts": $21,
"./routes/terms-and-conditions.tsx": $22,
},
islands: {
"./islands/Dialog.tsx": $$0,
Expand Down
3 changes: 1 addition & 2 deletions routes/offline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Head } from "$fresh/runtime.ts";
import Header from "@/components/Header.tsx";
import Container from "@/components/Container.tsx";


export default function Offline() {
return (
<>
Expand All @@ -20,5 +19,5 @@ export default function Offline() {
</p>
</Container>
</>
)
);
}
18 changes: 11 additions & 7 deletions scripts/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,18 +299,22 @@ await Promise.all(apps.map(async (app) => {
}

if (!cover_url) {
cover_url = headParsed.querySelector("meta[property='og:image']")
?.getAttribute("content") || "";
cover_url =
headParsed.querySelector("meta[property='og:image']")
?.getAttribute("content") || "";

await clearAppFromStorage(app.id, "covers");

if (cover_url) {
const cover_blob = await fetch(new URL(cover_url, app.url).href, {
headers: {
"Accept":
"image/avif,image/webp,image/apng,image/*,*/*;q=0.8",
const cover_blob = await fetch(
new URL(cover_url, app.url).href,
{
headers: {
"Accept":
"image/avif,image/webp,image/apng,image/*,*/*;q=0.8",
},
},
}).then((res) => res.blob());
).then((res) => res.blob());

if (!cover_blob) {
console.warn("Could not fetch cover");
Expand Down

0 comments on commit af48312

Please sign in to comment.