diff --git a/apps/twisted/src/features/repo/RepoFiles.vue b/apps/twisted/src/features/repo/RepoFiles.vue
index 9ded590..1af6f5c 100644
--- a/apps/twisted/src/features/repo/RepoFiles.vue
+++ b/apps/twisted/src/features/repo/RepoFiles.vue
@@ -36,10 +36,7 @@
{{ formatSize(blobQuery.data.value.size) }}
-
+
{{ blobQuery.data.value.content }}
@@ -67,229 +64,229 @@
diff --git a/apps/twisted/src/features/repo/RepoIssues.vue b/apps/twisted/src/features/repo/RepoIssues.vue
index 6c5f61a..2cf9c07 100644
--- a/apps/twisted/src/features/repo/RepoIssues.vue
+++ b/apps/twisted/src/features/repo/RepoIssues.vue
@@ -55,150 +55,150 @@
diff --git a/apps/twisted/src/lib/html.ts b/apps/twisted/src/lib/html.ts
index 2e2e2ac..0588565 100644
--- a/apps/twisted/src/lib/html.ts
+++ b/apps/twisted/src/lib/html.ts
@@ -1,9 +1,6 @@
import DOMPurify from "dompurify";
-const SANITIZE_CONFIG = {
- USE_PROFILES: { html: true },
- ADD_ATTR: ["class", "style"],
-};
+const SANITIZE_CONFIG = { USE_PROFILES: { html: true }, ADD_ATTR: ["class", "style"] };
export function sanitizeRichHtml(html: string): string {
return stripHtmlComments(DOMPurify.sanitize(html, SANITIZE_CONFIG));
diff --git a/apps/twisted/src/services/project-api/queries.ts b/apps/twisted/src/services/project-api/queries.ts
index 3298044..382850f 100644
--- a/apps/twisted/src/services/project-api/queries.ts
+++ b/apps/twisted/src/services/project-api/queries.ts
@@ -68,7 +68,10 @@ export type ProjectSearchResults = {
function stripHighlight(html?: string): string | undefined {
if (!html) return undefined;
- const text = html.replace(/<[^>]+>/g, " ").replace(/\s+/g, " ").trim();
+ const text = html
+ .replace(/<[^>]+>/g, " ")
+ .replace(/\s+/g, " ")
+ .trim();
return text || undefined;
}
@@ -157,13 +160,7 @@ export function useProjectSearch(
const repos = response.results.filter((result) => result.record_type === "repo").map(toRepoSummary);
const profiles = response.results.filter((result) => result.record_type === "profile").map(toUserSummary);
- return {
- query: response.query,
- mode: response.mode,
- total: response.total,
- repos,
- profiles,
- };
+ return { query: response.query, mode: response.mode, total: response.total, repos, profiles };
},
enabled,
staleTime: 2 * MIN,
@@ -171,16 +168,11 @@ export function useProjectSearch(
});
}
-export function useIndexedProfileSummary(
- did: MaybeRef,
- options: { enabled?: MaybeRef } = {},
-) {
+export function useIndexedProfileSummary(did: MaybeRef, options: { enabled?: MaybeRef } = {}) {
const normalizedDid = computed(() => toValue(did).trim());
const enabled = computed(
() =>
- hasTwisterApi &&
- normalizedDid.value.length > 0 &&
- (options.enabled === undefined || !!toValue(options.enabled)),
+ hasTwisterApi && normalizedDid.value.length > 0 && (options.enabled === undefined || !!toValue(options.enabled)),
);
return useQuery({
diff --git a/apps/twisted/src/views/HomePage.vue b/apps/twisted/src/views/HomePage.vue
index 5589a2f..10b526d 100644
--- a/apps/twisted/src/views/HomePage.vue
+++ b/apps/twisted/src/views/HomePage.vue
@@ -27,35 +27,35 @@
diff --git a/apps/twisted/src/vite-env.d.ts b/apps/twisted/src/vite-env.d.ts
index ed63eda..e0b3aa5 100644
--- a/apps/twisted/src/vite-env.d.ts
+++ b/apps/twisted/src/vite-env.d.ts
@@ -16,11 +16,7 @@ declare module "markdown-it" {
use(plugin: (...args: any[]) => unknown, ...params: any[]): MarkdownIt;
};
- type MarkdownItOptions = {
- html?: boolean;
- linkify?: boolean;
- typographer?: boolean;
- };
+ type MarkdownItOptions = { html?: boolean; linkify?: boolean; typographer?: boolean };
const markdownit: (options?: MarkdownItOptions) => MarkdownIt;
export default markdownit;