Add description field to extension manifest
This commit is contained in:
parent
fc77fccc55
commit
82cb084744
3 changed files with 58 additions and 7 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
type VALID_EXT_TYPES = "serviceWorker" | "theme" | "page";
|
type VALID_EXT_TYPES = "serviceWorker" | "theme" | "page";
|
||||||
export interface ExtensionMetadata {
|
export interface ExtensionMetadata {
|
||||||
title: string;
|
title: string;
|
||||||
// TODO: Add description to the manifest
|
description?: string;
|
||||||
// description: string;
|
|
||||||
|
|
||||||
// Versions should follow semantic versioning
|
// Versions should follow semantic versioning
|
||||||
version: string;
|
version: string;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"dev.wearr.adblock": {
|
"dev.wearr.adblock": {
|
||||||
"title": "Adblocker",
|
"title": "Alu Adblocker",
|
||||||
|
"description": "Alu Adblocker is the best adblocker for web proxy services. It blocks up to 97% of all trackers and ads.",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"image": "/marketplace/adblock/adblock.png",
|
"image": "/marketplace/adblock/adblock.png",
|
||||||
"script": "/marketplace/adblock/index.js",
|
"script": "/marketplace/adblock/index.js",
|
||||||
|
|
@ -10,6 +11,52 @@
|
||||||
},
|
},
|
||||||
"dev.wearr.oled-theme": {
|
"dev.wearr.oled-theme": {
|
||||||
"title": "OLED Theme",
|
"title": "OLED Theme",
|
||||||
|
"description": "A beautiful OLED theme for Alu.",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"image": "/marketplace/oled-theme/theme.png",
|
||||||
|
"script": "/marketplace/oled-theme/theme.css",
|
||||||
|
"type": "theme",
|
||||||
|
"themeName": "oled"
|
||||||
|
},
|
||||||
|
"dev.wearr.oled-theme2": {
|
||||||
|
"title": "OLED Theme",
|
||||||
|
"description": "A beautiful OLED theme for Alu.",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"image": "/marketplace/oled-theme/theme.png",
|
||||||
|
"script": "/marketplace/oled-theme/theme.css",
|
||||||
|
"type": "theme",
|
||||||
|
"themeName": "oled"
|
||||||
|
},
|
||||||
|
"dev.wearr.oled-theme3": {
|
||||||
|
"title": "OLED Theme",
|
||||||
|
"description": "A beautiful OLED theme for Alu.",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"image": "/marketplace/oled-theme/theme.png",
|
||||||
|
"script": "/marketplace/oled-theme/theme.css",
|
||||||
|
"type": "theme",
|
||||||
|
"themeName": "oled"
|
||||||
|
},
|
||||||
|
"dev.wearr.oled-theme4": {
|
||||||
|
"title": "OLED Theme",
|
||||||
|
"description": "A beautiful OLED theme for Alu.",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"image": "/marketplace/oled-theme/theme.png",
|
||||||
|
"script": "/marketplace/oled-theme/theme.css",
|
||||||
|
"type": "theme",
|
||||||
|
"themeName": "oled"
|
||||||
|
},
|
||||||
|
"dev.wearr.oled-theme5": {
|
||||||
|
"title": "OLED Theme",
|
||||||
|
"description": "A beautiful OLED theme for Alu.",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"image": "/marketplace/oled-theme/theme.png",
|
||||||
|
"script": "/marketplace/oled-theme/theme.css",
|
||||||
|
"type": "theme",
|
||||||
|
"themeName": "oled"
|
||||||
|
},
|
||||||
|
"dev.wearr.oled-theme6": {
|
||||||
|
"title": "OLED Theme",
|
||||||
|
"description": "A beautiful OLED theme for Alu.",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"image": "/marketplace/oled-theme/theme.png",
|
"image": "/marketplace/oled-theme/theme.png",
|
||||||
"script": "/marketplace/oled-theme/theme.css",
|
"script": "/marketplace/oled-theme/theme.css",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ export const getStaticPaths = () => {
|
||||||
|
|
||||||
type MarketplaceItem = {
|
type MarketplaceItem = {
|
||||||
title: string;
|
title: string;
|
||||||
|
description: string;
|
||||||
version: string;
|
version: string;
|
||||||
image: string;
|
image: string;
|
||||||
script: string;
|
script: string;
|
||||||
|
|
@ -33,6 +34,7 @@ type MarketplaceItem = {
|
||||||
<div class="marketplace-item" data-slug={slug}>
|
<div class="marketplace-item" data-slug={slug}>
|
||||||
<img class="marketplace-item-image" src={item.image} alt={`${item.title} Logo`} />
|
<img class="marketplace-item-image" src={item.image} alt={`${item.title} Logo`} />
|
||||||
<div class="marketplace-item-title">{item.title}</div>
|
<div class="marketplace-item-title">{item.title}</div>
|
||||||
|
<div class="marketplace-item-desc">{item.description}</div>
|
||||||
<button class="marketplace-btn btn-install" data-slug={slug} data-title={item.title}>
|
<button class="marketplace-btn btn-install" data-slug={slug} data-title={item.title}>
|
||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -58,9 +60,8 @@ type MarketplaceItem = {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
display: grid;
|
display: grid;
|
||||||
display: flex;
|
grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
|
||||||
flex-direction: row;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
|
|
@ -69,12 +70,16 @@ type MarketplaceItem = {
|
||||||
border: 3px solid var(--accent-color);
|
border: 3px solid var(--accent-color);
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
width: 180px;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.marketplace-item-image {
|
.marketplace-item-image {
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
}
|
}
|
||||||
|
.marketplace-item-desc {
|
||||||
|
width: 80%;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
.marketplace-btn {
|
.marketplace-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: var(--accent-color);
|
background-color: var(--accent-color);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue