revert shitty layout, use cdn for vendors (new ones coming soon)

This commit is contained in:
Will Freeman
2026-01-16 23:42:14 -07:00
parent 67eae25a1a
commit 73269f45b0
39 changed files with 294 additions and 375 deletions
+10
View File
@@ -1,3 +1,4 @@
import type { LprVendor } from "@/types";
import axios from "axios";
export interface Chapter {
@@ -32,5 +33,14 @@ export const cmsService = {
console.error("Error fetching chapters:", error);
throw new Error("Failed to fetch chapters");
}
},
async getLprVendors(): Promise<LprVendor[]> {
try {
const response = await cmsApiService.get("/items/lprVendors");
return response.data.data as LprVendor[];
} catch (error) {
console.error("Error fetching LPR vendors:", error);
throw new Error("Failed to fetch LPR vendors");
}
}
};
+7
View File
@@ -0,0 +1,7 @@
import { lprBaseTags } from "@/constants";
export function createDeflockProfileUrl(obj: Record<string, string>): string {
const tags = { ...lprBaseTags, ...obj };
const payload = btoa(JSON.stringify(tags));
return `deflockapp://profiles/add?p=${payload}`;
}