From 94e50479a45ff7e30e0d61f7b2c9f373a14d0168 Mon Sep 17 00:00:00 2001 From: Nikita Tashchilin Date: Mon, 5 Feb 2024 20:33:41 -0500 Subject: [PATCH] feat: add reactions support --- package.json | 2 +- pnpm-lock.yaml | 206 ++++-------------- .../vue/update-explorer/Explorer.vue | 19 +- 3 files changed, 43 insertions(+), 184 deletions(-) diff --git a/package.json b/package.json index af13641..5819761 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@types/react": "^18.2.18", "@types/react-dom": "^18.2.7", "astro": "^2.9.7", - "grammy": "^1.17.2", + "grammy": "^1.20.3", "grammy-vue": "^0.0.4", "json-editor-vue": "^0.10.6", "react": "^18.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 50d8e76..44b46d0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,11 +23,11 @@ dependencies: specifier: ^2.9.7 version: 2.9.7(@types/node@14.18.33) grammy: - specifier: ^1.17.2 - version: 1.17.2 + specifier: ^1.20.3 + version: 1.20.3 grammy-vue: specifier: ^0.0.4 - version: 0.0.4(grammy@1.17.2)(vue@3.3.4) + version: 0.0.4(grammy@1.20.3)(vue@3.3.4) json-editor-vue: specifier: ^0.10.6 version: 0.10.6(vanilla-jsoneditor@0.17.8)(vue@3.3.4) @@ -1127,9 +1127,9 @@ packages: dev: false optional: true - /@grammyjs/types@3.1.2: + /@grammyjs/types@3.4.6: resolution: - { integrity: sha512-AsSkTUfZCfSEIacUBOQ94qLbZZy3UofkschWv4uBJKEHjuEfGnjeZZgiwhDfTDjmpmW+MbcasvS+FEfD2jiSLw== } + { integrity: sha512-J7xb4JFmdTG2JXDirytp9KuUBKhzT8cAeB3tg2dyWy0VzF/Pdi1t8YaBmNsGeL6VvdvAXHtBTfzrc3jBTD2Kuw== } dev: false /@jridgewell/gen-mapping@0.1.1: @@ -2182,14 +2182,6 @@ packages: streamsearch: 1.1.0 dev: false - /camel-case@4.1.2: - resolution: - { integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw== } - dependencies: - pascal-case: 3.1.2 - tslib: 2.5.0 - dev: false - /camelcase-css@2.0.1: resolution: { integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA== } @@ -2207,15 +2199,6 @@ packages: { integrity: sha512-iaIZ8gVrWfemh5DG3T9/YqarVZoYf0r188IjaGwx68j4Pf0SGY6CQkmJUIE+NZHkkecQGohzXmBGEwWDr9aM3Q== } dev: false - /capital-case@1.0.4: - resolution: - { integrity: sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A== } - dependencies: - no-case: 3.0.4 - tslib: 2.5.0 - upper-case-first: 2.0.2 - dev: false - /ccount@2.0.1: resolution: { integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg== } @@ -2246,24 +2229,6 @@ packages: engines: { node: ^12.17.0 || ^14.13 || >=16.0.0 } dev: false - /change-case@4.1.2: - resolution: - { integrity: sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A== } - dependencies: - camel-case: 4.1.2 - capital-case: 1.0.4 - constant-case: 3.0.4 - dot-case: 3.0.4 - header-case: 2.0.4 - no-case: 3.0.4 - param-case: 3.0.4 - pascal-case: 3.1.2 - path-case: 3.0.4 - sentence-case: 3.0.4 - snake-case: 3.0.4 - tslib: 2.5.0 - dev: false - /character-entities-html4@2.1.0: resolution: { integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA== } @@ -2402,15 +2367,6 @@ packages: { integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ== } dev: true - /constant-case@3.0.4: - resolution: - { integrity: sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ== } - dependencies: - no-case: 3.0.4 - tslib: 2.5.0 - upper-case: 2.0.2 - dev: false - /content-type@1.0.5: resolution: { integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== } @@ -2549,14 +2505,6 @@ packages: { integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA== } dev: false - /dot-case@3.0.4: - resolution: - { integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w== } - dependencies: - no-case: 3.0.4 - tslib: 2.5.0 - dev: false - /dset@3.1.2: resolution: { integrity: sha512-g/M9sqy3oHe477Ar4voQxWtaPIFw1jTdKZuomOjhCcBx9nHUNn0pu6NopuFFrTh/TRZIKEj+76vLWFu9BNKk+Q== } @@ -3009,6 +2957,7 @@ packages: /fast-json-stable-stringify@2.1.0: resolution: { integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== } + requiresBuild: true dev: true optional: true @@ -3204,26 +3153,26 @@ packages: resolution: { integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== } - /grammy-vue@0.0.4(grammy@1.17.2)(vue@3.3.4): + /grammy-vue@0.0.4(grammy@1.20.3)(vue@3.3.4): resolution: { integrity: sha512-PgSrAzFbZJxPx1569+6pfLjpaDj6ZXLAORdaR9c5y5dDuwK24GHZxYlFiifkBzMWUfOv1hgEfK6iPdhk3SAZjg== } peerDependencies: grammy: ^1.14.1 vue: ^3.2.47 dependencies: - grammy: 1.17.2 + grammy: 1.20.3 vue: 3.3.4 dev: false - /grammy@1.17.2: + /grammy@1.20.3: resolution: - { integrity: sha512-5TuAzqxupkVcKXB5Jfl8F9GMXgGh/h/RcoOJThlQSJz2MMT2+2o+W/7C8ZULzrZ4TEB9TIIliPR6UW0J+1fT4w== } + { integrity: sha512-eHvS0iOD6aos7NbwL1dhFE6JDiMGm/Qz2TKgetRg/SZ5BIVoUSVSU/mn8L01r1Q7i+ywG9uePzy5xpK5CkOrUA== } engines: { node: ^12.20.0 || >=14.13.1 } dependencies: - "@grammyjs/types": 3.1.2 + "@grammyjs/types": 3.4.6 abort-controller: 3.0.0 debug: 4.3.4 - node-fetch: 2.6.11 + node-fetch: 2.7.0 transitivePeerDependencies: - encoding - supports-color @@ -3347,14 +3296,6 @@ packages: space-separated-tokens: 2.0.2 dev: false - /header-case@2.0.4: - resolution: - { integrity: sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q== } - dependencies: - capital-case: 1.0.4 - tslib: 2.5.0 - dev: false - /html-escaper@3.0.3: resolution: { integrity: sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ== } @@ -3558,8 +3499,10 @@ packages: lodash-es: 4.17.21 vanilla-jsoneditor: 0.17.8 vue: 3.3.4 - vue-demi: 0.14.5(vue@3.3.4) - vue-global-config: 0.4.0(vue@3.3.4) + vue-demi: 0.14.7(vue@3.3.4) + vue-global-config: 0.6.0(vue@3.3.4) + transitivePeerDependencies: + - element-plus dev: false /json-schema-to-ts@1.6.4: @@ -3573,6 +3516,7 @@ packages: /json-schema-traverse@0.4.1: resolution: { integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== } + requiresBuild: true dev: true optional: true @@ -3690,13 +3634,6 @@ packages: js-tokens: 4.0.0 dev: false - /lower-case@2.0.2: - resolution: - { integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg== } - dependencies: - tslib: 2.5.0 - dev: false - /lru-cache@5.1.1: resolution: { integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== } @@ -4301,14 +4238,6 @@ packages: "@types/nlcst": 1.0.0 dev: false - /no-case@3.0.4: - resolution: - { integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg== } - dependencies: - lower-case: 2.0.2 - tslib: 2.5.0 - dev: false - /node-fetch@2.6.11: resolution: { integrity: sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w== } @@ -4320,6 +4249,7 @@ packages: optional: true dependencies: whatwg-url: 5.0.0 + dev: true /node-fetch@2.6.9: resolution: @@ -4334,6 +4264,19 @@ packages: whatwg-url: 5.0.0 dev: true + /node-fetch@2.7.0: + resolution: + { integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== } + engines: { node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + dependencies: + whatwg-url: 5.0.0 + dev: false + /node-gyp-build@4.6.0: resolution: { integrity: sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ== } @@ -4489,14 +4432,6 @@ packages: engines: { node: ">=6" } dev: false - /param-case@3.0.4: - resolution: - { integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A== } - dependencies: - dot-case: 3.0.4 - tslib: 2.5.0 - dev: false - /parse-latin@5.0.1: resolution: { integrity: sha512-b/K8ExXaWC9t34kKeDV8kGXBkXZ1HCSAZRYE7HR14eA1GlXX5L8iWhs8USJNhQU9q5ci413jCKF0gOyovvyRBg== } @@ -4517,27 +4452,11 @@ packages: { integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== } dev: false - /pascal-case@3.1.2: - resolution: - { integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g== } - dependencies: - no-case: 3.0.4 - tslib: 2.5.0 - dev: false - /path-browserify@1.0.1: resolution: { integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== } dev: true - /path-case@3.0.4: - resolution: - { integrity: sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg== } - dependencies: - dot-case: 3.0.4 - tslib: 2.5.0 - dev: false - /path-exists@4.0.0: resolution: { integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== } @@ -5154,15 +5073,6 @@ packages: dependencies: lru-cache: 6.0.0 - /sentence-case@3.0.4: - resolution: - { integrity: sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg== } - dependencies: - no-case: 3.0.4 - tslib: 2.5.0 - upper-case-first: 2.0.2 - dev: false - /server-destroy@1.0.1: resolution: { integrity: sha512-rb+9B5YBIEzYcD6x2VKidaa+cqYBJQKnU4oe4E3ANwRRN56yk/ua1YCJT1n21NTS8w6CcOclAKNP3PhdCXKYtQ== } @@ -5212,14 +5122,6 @@ packages: { integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== } dev: false - /snake-case@3.0.4: - resolution: - { integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg== } - dependencies: - dot-case: 3.0.4 - tslib: 2.5.0 - dev: false - /source-map-js@1.0.2: resolution: { integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== } @@ -5694,20 +5596,6 @@ packages: picocolors: 1.0.0 dev: false - /upper-case-first@2.0.2: - resolution: - { integrity: sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg== } - dependencies: - tslib: 2.5.0 - dev: false - - /upper-case@2.0.2: - resolution: - { integrity: sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg== } - dependencies: - tslib: 2.5.0 - dev: false - /uri-js@4.4.1: resolution: { integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== } @@ -5911,9 +5799,9 @@ packages: { integrity: sha512-eOpPHogvorZRobNqJGhapa0JdwaxpjVvyBp0QIUMRMSf8ZAlqOdEquKuRmw9Qwu0qXtJIWqFtMkmvJjUZmMjVA== } dev: false - /vue-demi@0.13.11(vue@3.3.4): + /vue-demi@0.14.7(vue@3.3.4): resolution: - { integrity: sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A== } + { integrity: sha512-EOG8KXDQNwkJILkx/gPcoL/7vH+hORoBaKgGe+6W7VFMvCYJfmF2dGbvgDroVnI8LU7/kTu8mbjRZGBU1z9NTA== } engines: { node: ">=12" } hasBin: true requiresBuild: true @@ -5927,36 +5815,22 @@ packages: vue: 3.3.4 dev: false - /vue-demi@0.14.5(vue@3.3.4): + /vue-global-config@0.6.0(vue@3.3.4): resolution: - { integrity: sha512-o9NUVpl/YlsGJ7t+xuqJKx8EBGf1quRhCiT6D/J0pfwmk9zUwYkC7yrF4SZCe6fETvSM3UNL2edcbYrSyc4QHA== } - engines: { node: ">=12" } - hasBin: true + { integrity: sha512-T9++CQPBWhZbRzD3NAWzcCpA0WFszLZHpTast6K5ME+yRa+d6MHkt7RpKgzGmuiTPo6cUCuc3hltjUqH81mUuw== } requiresBuild: true - peerDependencies: - "@vue/composition-api": ^1.0.0-rc.1 - vue: ^3.0.0-0 || ^2.6.0 - peerDependenciesMeta: - "@vue/composition-api": - optional: true - dependencies: - vue: 3.3.4 - dev: false - - /vue-global-config@0.4.0(vue@3.3.4): - resolution: - { integrity: sha512-UoFouTLUYGuHEEJFRgl29dzD0dDYtAEPRMDe8S0e08aB8vgfuD0ybW5WdPRTfTRChceHCn4eMQH2jFFVyi3Djw== } peerDependencies: "@vue/composition-api": ">=1" + element-plus: ">=2" vue: 2||3 peerDependenciesMeta: "@vue/composition-api": optional: true + element-plus: + optional: true dependencies: - change-case: 4.1.2 - lodash-es: 4.17.21 vue: 3.3.4 - vue-demi: 0.13.11(vue@3.3.4) + vue-demi: 0.14.7(vue@3.3.4) dev: false /vue@3.3.4: @@ -6102,4 +5976,4 @@ packages: settings: autoInstallPeers: true - excludeLinksFromLockfile: false + excludeLinksFromLockfile: false \ No newline at end of file diff --git a/src/components/vue/update-explorer/Explorer.vue b/src/components/vue/update-explorer/Explorer.vue index d6c244e..42f1154 100644 --- a/src/components/vue/update-explorer/Explorer.vue +++ b/src/components/vue/update-explorer/Explorer.vue @@ -1,6 +1,6 @@