- Standardized the use of quotes and spacing in various files. - Removed unnecessary line breaks and trailing spaces in components. - Improved the structure of computed properties and methods for better clarity. - Enhanced the consistency of prop definitions and emit events in Vue components. - Updated the GraphQL composable to streamline error handling and data processing. - Refactored network configuration files for better organization and readability. - Cleaned up model files by removing redundant lines and ensuring consistent formatting. - Adjusted router configuration for improved readability. - Enhanced utility functions for better maintainability and clarity.
29 lines
813 B
TypeScript
29 lines
813 B
TypeScript
import type { AppVersion } from "@/model/AppVersion";
|
|
|
|
export const appVersions: AppVersion[] = [
|
|
{
|
|
tag: "1.1.0",
|
|
ipfsHash: "bafybeiaffdxrxoex3qh7kirnkkufnvpafb4gmkt7mjxufnnpbrq6tmqoha",
|
|
releaseDate: "2025-11-06",
|
|
description: "Explorer and versioning features added",
|
|
},
|
|
{
|
|
tag: "1.0.0",
|
|
ipfsHash: "bafybeiagfqnxnb5zdrks6dicfm7kxjdtzzzzm2ouluxgdseg2hrrotayzi",
|
|
releaseDate: "2023-01-28",
|
|
description: "Initial release",
|
|
},
|
|
];
|
|
|
|
export function getLatestVersion(): AppVersion | null {
|
|
return appVersions.length > 0 ? appVersions[0] : null;
|
|
}
|
|
|
|
export function getVersionByTag(tag: string): AppVersion | null {
|
|
return appVersions.find((v) => v.tag === tag) || null;
|
|
}
|
|
|
|
export function getIpfsUrl(ipfsHash: string): string {
|
|
return `https://${ipfsHash}.ipfs.dweb.link`;
|
|
}
|