Files
pezkuwi-apps/packages/apps-config/src/extensions/index.ts
T

25 lines
868 B
TypeScript

// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Browser, Extension, Known } from './types.js';
import { PezkuwiJs } from './pezkuwi-js.js';
// The list of known extensions including the links to tem on the store. This is
// used when no extensions are actually available, promoting the user to install
// one or more (Any known extension can and should be added here)
export const knownExtensions: Record<string, Known> = {
'pezkuwi-js': PezkuwiJs
};
export const availableExtensions = Object
.values(knownExtensions)
.reduce((available: Record<Browser, Extension[]>, { all, desc, name }) => {
Object.entries(all).forEach(([browser, link]): void => {
available[browser as Browser].push({ desc, link, name });
});
return available;
}, { chrome: [], firefox: [] });