diff --git a/pkg/views/package.json b/pkg/views/package.json index 8a00dc9..50e6356 100644 --- a/pkg/views/package.json +++ b/pkg/views/package.json @@ -16,6 +16,8 @@ "@fontsource/roboto": "^5.0.8", "@mdi/font": "^7.4.47", "@unocss/reset": "^0.58.5", + "dompurify": "^3.0.9", + "marked": "^12.0.0", "pinia": "^2.1.7", "universal-cookie": "^7.1.0", "unocss": "^0.58.5", @@ -26,7 +28,9 @@ "devDependencies": { "@rushstack/eslint-patch": "^1.3.3", "@tsconfig/node20": "^20.1.2", + "@types/dompurify": "^3.0.5", "@types/node": "^20.11.10", + "@unocss/preset-typography": "^0.58.5", "@vitejs/plugin-vue": "^5.0.3", "@vitejs/plugin-vue-jsx": "^3.1.0", "@vue/eslint-config-prettier": "^8.0.0", diff --git a/pkg/views/src/components/posts/PostItem.vue b/pkg/views/src/components/posts/PostItem.vue index 844105f..d4ec9c5 100644 --- a/pkg/views/src/components/posts/PostItem.vue +++ b/pkg/views/src/components/posts/PostItem.vue @@ -13,7 +13,7 @@
{{ props.item?.author.nick }}
- {{ props.item?.content }} +
@@ -21,11 +21,24 @@ + + \ No newline at end of file diff --git a/pkg/views/src/components/posts/PostList.vue b/pkg/views/src/components/posts/PostList.vue index 4cb9771..1559965 100644 --- a/pkg/views/src/components/posts/PostList.vue +++ b/pkg/views/src/components/posts/PostList.vue @@ -5,7 +5,7 @@ -