From 32ccc9f1cc1b7f71e0d391e55ba3878eb03d42db Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Fri, 1 Nov 2024 17:06:58 +0900 Subject: [PATCH 1/2] chore: upgrade @iconify/json and @iconify/utils to use new icons --- package.json | 4 ++-- pnpm-lock.yaml | 29 +++++++---------------------- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 88aeb6d0cc..65995ec06a 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,8 @@ "@emoji-mart/data": "^1.1.2", "@fnando/sparkline": "^0.3.10", "@iconify-emoji/twemoji": "^1.0.2", - "@iconify/json": "^2.2.170", - "@iconify/utils": "^2.1.22", + "@iconify/json": "^2.2.266", + "@iconify/utils": "^2.1.33", "@nuxt/devtools": "^1.5.2", "@nuxt/test-utils": "^3.14.3", "@nuxtjs/color-mode": "^3.4.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a09c93d96b..9d5b2ccdf0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,11 +41,11 @@ importers: specifier: ^1.0.2 version: 1.0.2 '@iconify/json': - specifier: ^2.2.170 - version: 2.2.170 + specifier: ^2.2.266 + version: 2.2.266 '@iconify/utils': - specifier: ^2.1.22 - version: 2.1.32 + specifier: ^2.1.33 + version: 2.1.33 '@nuxt/devtools': specifier: ^1.5.2 version: 1.5.2(rollup@2.79.1)(vite@5.4.5(@types/node@20.8.6)(terser@5.22.0))(vue@3.5.4(typescript@5.6.2))(webpack-sources@3.2.3) @@ -1731,15 +1731,12 @@ packages: '@iconify-emoji/twemoji@1.0.2': resolution: {integrity: sha512-C4W6ov4BkDXiVU3GzyqyVo8SBbU21KivXnZERgAnrYZEKjuiI3JwPDnu9oVJPsUkNI/Q4SM8iVnXjGW6kxt9DQ==} - '@iconify/json@2.2.170': - resolution: {integrity: sha512-KJQ+LPj5KOpBrTknm0vpb2A6+T12ZyIFInubW3kT/58eZRKtiDv5D87QWVXczL5/uyDr2rkRu8rAfOrGr/UFhA==} + '@iconify/json@2.2.266': + resolution: {integrity: sha512-lv+lmPjhDh5/sCaom8AX39USmneRMcQRT/SKoDsxizOjVKycZ8PRk7kNKi776YkKzuksb0Xv5Tfi/Mrr3YLQgQ==} '@iconify/types@2.0.0': resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} - '@iconify/utils@2.1.32': - resolution: {integrity: sha512-LeifFZPPKu28O3AEDpYJNdEbvS4/ojAPyIW+pF/vUpJTYnbTiXUHkCh0bwgFRzKvdpb8H4Fbfd/742++MF4fPQ==} - '@iconify/utils@2.1.33': resolution: {integrity: sha512-jP9h6v/g0BIZx0p7XGJJVtkVnydtbgTgt9mVNcGDYwaa7UhdHdI9dvoq+gKj9sijMSJKxUPEG2JyjsgXjxL7Kw==} @@ -9549,25 +9546,13 @@ snapshots: '@iconify-emoji/twemoji@1.0.2': {} - '@iconify/json@2.2.170': + '@iconify/json@2.2.266': dependencies: '@iconify/types': 2.0.0 pathe: 1.1.2 '@iconify/types@2.0.0': {} - '@iconify/utils@2.1.32': - dependencies: - '@antfu/install-pkg': 0.4.1 - '@antfu/utils': 0.7.10 - '@iconify/types': 2.0.0 - debug: 4.3.6 - kolorist: 1.8.0 - local-pkg: 0.5.0 - mlly: 1.7.1 - transitivePeerDependencies: - - supports-color - '@iconify/utils@2.1.33': dependencies: '@antfu/install-pkg': 0.4.1 From b24b53c20c25000bfbc59d51d37da8cc78c17132 Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Tue, 29 Oct 2024 19:25:32 +0900 Subject: [PATCH 2/2] feat: add new setting to select line height options --- components/settings/SettingsLineHeight.vue | 54 +++++++++++++++++++ components/status/StatusBody.vue | 8 ++- components/status/StatusPreviewStackBlitz.vue | 5 +- composables/settings/definition.ts | 6 ++- constants/index.ts | 1 + locales/en.json | 7 ++- pages/settings/interface/index.vue | 1 + styles/global.css | 12 ++++- 8 files changed, 87 insertions(+), 7 deletions(-) create mode 100644 components/settings/SettingsLineHeight.vue diff --git a/components/settings/SettingsLineHeight.vue b/components/settings/SettingsLineHeight.vue new file mode 100644 index 0000000000..e1ac8c1c4f --- /dev/null +++ b/components/settings/SettingsLineHeight.vue @@ -0,0 +1,54 @@ + + + diff --git a/components/status/StatusBody.vue b/components/status/StatusBody.vue index 0075d4cda0..c7043d27a4 100644 --- a/components/status/StatusBody.vue +++ b/components/status/StatusBody.vue @@ -26,13 +26,17 @@ const vnode = computed(() => { inReplyToStatus: newer, }) }) + +const userSettings = useUserSettings() +const lineHeight = userSettings.value.lineHeight