use sfm for embeds

This commit is contained in:
dakkar 2024-10-10 13:04:51 +01:00
parent faa7b26344
commit abb93f1d79
5 changed files with 8 additions and 15 deletions

View File

@ -12,17 +12,17 @@
}, },
"dependencies": { "dependencies": {
"@discordapp/twemoji": "15.1.0", "@discordapp/twemoji": "15.1.0",
"@phosphor-icons/web": "^2.0.3",
"@rollup/plugin-json": "6.1.0", "@rollup/plugin-json": "6.1.0",
"@rollup/plugin-replace": "5.0.7", "@rollup/plugin-replace": "5.0.7",
"@rollup/pluginutils": "5.1.2", "@rollup/pluginutils": "5.1.2",
"@phosphor-icons/web": "^2.0.3", "@transfem-org/sfm-js": "0.24.5",
"@twemoji/parser": "15.1.1", "@twemoji/parser": "15.1.1",
"@vitejs/plugin-vue": "5.1.4", "@vitejs/plugin-vue": "5.1.4",
"@vue/compiler-sfc": "3.5.10", "@vue/compiler-sfc": "3.5.10",
"astring": "1.9.0", "astring": "1.9.0",
"buraha": "0.0.1", "buraha": "0.0.1",
"estree-walker": "3.0.3", "estree-walker": "3.0.3",
"mfm-js": "0.24.0",
"misskey-js": "workspace:*", "misskey-js": "workspace:*",
"frontend-shared": "workspace:*", "frontend-shared": "workspace:*",
"punycode": "2.3.1", "punycode": "2.3.1",

View File

@ -4,7 +4,7 @@
*/ */
import { VNode, h, SetupContext, provide } from 'vue'; import { VNode, h, SetupContext, provide } from 'vue';
import * as mfm from 'mfm-js'; import * as mfm from '@transfem-org/sfm-js';
import * as Misskey from 'misskey-js'; import * as Misskey from 'misskey-js';
import EmUrl from '@/components/EmUrl.vue'; import EmUrl from '@/components/EmUrl.vue';
import EmTime from '@/components/EmTime.vue'; import EmTime from '@/components/EmTime.vue';

View File

@ -106,7 +106,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup> <script lang="ts" setup>
import { computed, inject, ref, shallowRef } from 'vue'; import { computed, inject, ref, shallowRef } from 'vue';
import * as mfm from 'mfm-js'; import * as mfm from '@transfem-org/sfm-js';
import * as Misskey from 'misskey-js'; import * as Misskey from 'misskey-js';
import I18n from '@/components/I18n.vue'; import I18n from '@/components/I18n.vue';
import EmNoteSub from '@/components/EmNoteSub.vue'; import EmNoteSub from '@/components/EmNoteSub.vue';

View File

@ -127,7 +127,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup> <script lang="ts" setup>
import { computed, inject, ref } from 'vue'; import { computed, inject, ref } from 'vue';
import * as mfm from 'mfm-js'; import * as mfm from '@transfem-org/sfm-js';
import * as Misskey from 'misskey-js'; import * as Misskey from 'misskey-js';
import I18n from '@/components/I18n.vue'; import I18n from '@/components/I18n.vue';
import EmMediaList from '@/components/EmMediaList.vue'; import EmMediaList from '@/components/EmMediaList.vue';

View File

@ -1078,6 +1078,9 @@ importers:
'@rollup/pluginutils': '@rollup/pluginutils':
specifier: 5.1.2 specifier: 5.1.2
version: 5.1.2(rollup@4.22.5) version: 5.1.2(rollup@4.22.5)
'@transfem-org/sfm-js':
specifier: 0.24.5
version: 0.24.5
'@twemoji/parser': '@twemoji/parser':
specifier: 15.1.1 specifier: 15.1.1
version: 15.1.1 version: 15.1.1
@ -1102,9 +1105,6 @@ importers:
json5: json5:
specifier: 2.2.3 specifier: 2.2.3
version: 2.2.3 version: 2.2.3
mfm-js:
specifier: 0.24.0
version: 0.24.0
misskey-js: misskey-js:
specifier: workspace:* specifier: workspace:*
version: link:../misskey-js version: link:../misskey-js
@ -8523,9 +8523,6 @@ packages:
resolution: {integrity: sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==} resolution: {integrity: sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==}
engines: {node: '>= 0.6'} engines: {node: '>= 0.6'}
mfm-js@0.24.0:
resolution: {integrity: sha512-6m8N0ElH9/4CA1izhVqmxTfLj5Z9RspdqM/lMew4xU/UTgm4Pf//VpDunpasxbRFjeJSVW+zoVwL4ZPfPtfiQg==}
microformats-parser@2.0.2: microformats-parser@2.0.2:
resolution: {integrity: sha512-tUf9DmN4Jq/tGyp1YH2V6D/Cud+9Uc0WhjjUFirqVeHTRkkfLDacv6BQFT7h7HFsD0Z8wja5eKkRgzZU8bv0Fw==} resolution: {integrity: sha512-tUf9DmN4Jq/tGyp1YH2V6D/Cud+9Uc0WhjjUFirqVeHTRkkfLDacv6BQFT7h7HFsD0Z8wja5eKkRgzZU8bv0Fw==}
engines: {node: '>=18'} engines: {node: '>=18'}
@ -20679,10 +20676,6 @@ snapshots:
methods@1.1.2: {} methods@1.1.2: {}
mfm-js@0.24.0:
dependencies:
'@twemoji/parser': 15.0.0
microformats-parser@2.0.2: microformats-parser@2.0.2:
dependencies: dependencies:
parse5: 7.1.2 parse5: 7.1.2