feat: Finalize VitePress site structure and styling

This commit is contained in:
tycon
2025-10-11 23:05:08 +08:00
parent 86777756b4
commit bca5292f1f
4460 changed files with 1059060 additions and 9046 deletions

View File

@@ -0,0 +1,4 @@
export declare function getAppIdAndApiKey(searchClient: any): {
appId: string;
apiKey: string;
};

View File

@@ -0,0 +1,14 @@
// typed as any, since it accepts the _real_ js clients, not the interface we otherwise expect
export function getAppIdAndApiKey(searchClient) {
var transporter = searchClient.transporter || {};
var headers = transporter.headers || transporter.baseHeaders || {};
var queryParameters = transporter.queryParameters || transporter.baseQueryParameters || {};
var APP_ID = 'x-algolia-application-id';
var API_KEY = 'x-algolia-api-key';
var appId = headers[APP_ID] || queryParameters[APP_ID];
var apiKey = headers[API_KEY] || queryParameters[API_KEY];
return {
appId: appId,
apiKey: apiKey
};
}

View File

@@ -0,0 +1 @@
export * from './getAppIdAndApiKey';

View File

@@ -0,0 +1 @@
export * from './getAppIdAndApiKey';