diff --git a/components/bsx/Create/RoyaltyForm.vue b/components/bsx/Create/RoyaltyForm.vue index 4a6cdb1044..18e7dbe102 100644 --- a/components/bsx/Create/RoyaltyForm.vue +++ b/components/bsx/Create/RoyaltyForm.vue @@ -32,7 +32,6 @@ import AuthMixin from '~/utils/mixins/authMixin' const components = { BasicSwitch: () => import('@/components/shared/form/BasicSwitch.vue'), - BasicSlider: () => import('@/components/shared/form/BasicSlider.vue'), BasicNumberInput: () => import('@/components/shared/form/BasicNumberInput.vue'), } diff --git a/components/collection/drop/DropContainer.vue b/components/collection/drop/DropContainer.vue index cf3b51be4d..db7fd31e31 100644 --- a/components/collection/drop/DropContainer.vue +++ b/components/collection/drop/DropContainer.vue @@ -6,7 +6,7 @@
- +
- +
diff --git a/components/collection/unlockable/UnlockableCollectionInfo.vue b/components/collection/unlockable/UnlockableCollectionInfo.vue index 62b8899b06..f9d837eef6 100644 --- a/components/collection/unlockable/UnlockableCollectionInfo.vue +++ b/components/collection/unlockable/UnlockableCollectionInfo.vue @@ -47,8 +47,10 @@ - - diff --git a/components/rmrk/Gallery/Item/Navigation.vue b/components/rmrk/Gallery/Item/Navigation.vue deleted file mode 100644 index dc6b039f65..0000000000 --- a/components/rmrk/Gallery/Item/Navigation.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - - - diff --git a/components/shared/chart/BoxPlot/Canvas.vue b/components/shared/chart/BoxPlot/Canvas.vue deleted file mode 100644 index f718e7efe9..0000000000 --- a/components/shared/chart/BoxPlot/Canvas.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - diff --git a/components/shared/chart/BoxPlot/Container.vue b/components/shared/chart/BoxPlot/Container.vue deleted file mode 100644 index 9830ce6247..0000000000 --- a/components/shared/chart/BoxPlot/Container.vue +++ /dev/null @@ -1,183 +0,0 @@ - - - - - diff --git a/components/shared/chart/BoxPlot/containerOptions.ts b/components/shared/chart/BoxPlot/containerOptions.ts deleted file mode 100644 index 31e307d589..0000000000 --- a/components/shared/chart/BoxPlot/containerOptions.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { getHSpread } from '@/utils/chart' - -function getAnnotation({ type = 'list', value }) { - const attributes = { - list: { - borderColor: '#E6007E', - content: 'IQR List', - position: 'start', - }, - buy: { - borderColor: '#00BB7F', - content: 'IQR Buy', - position: 'end', - }, - } - - if (!value) { - return { - borderWidth: 0, - } - } - - return { - type: 'line', - borderWidth: 0, - scaleID: 'y', - borderColor: attributes[type].borderColor, - label: { - content: () => `${attributes[type].content}: ${value.toFixed(2)}`, - position: attributes[type].position, - display: true, - }, - value: () => value, - } -} - -export default function ({ labels, unit, valueList, valueBuy }) { - const { iqr: iqrList } = getHSpread(valueList) - const { iqr: iqrBuy } = getHSpread(valueBuy) - const dataIqrList = getAnnotation({ type: 'list', value: iqrList }) - const dataIqrBuy = getAnnotation({ type: 'buy', value: iqrBuy }) - const annotations = labels.length === 1 ? [] : [dataIqrList, dataIqrBuy] - - return { - responsive: true, - scales: { - y: { - ticks: { - color: 'white', - callback: (value) => { - return `${value} ${unit}` - }, - }, - }, - }, - plugins: { - annotation: { annotations }, - tooltip: { - displayColors: false, - callbacks: { - title: (ctx) => { - return `${ctx[0].dataset.label} ${ctx[0].label}` - }, - label: (ctx) => { - const median = ctx.parsed.median.toFixed(2) - const q1 = ctx.parsed.q1.toFixed(2) - const q3 = ctx.parsed.q3.toFixed(2) - const iqr = (parseFloat(q3) - parseFloat(q1)).toFixed(2) - const min = ctx.parsed.min.toFixed(2) - const max = ctx.parsed.max.toFixed(2) - - const boxplotValues = [ - `Median: ${median}`, - `Q3: ${q3}`, - `Q1: ${q1}`, - `IQR: ${iqr}`, - `Min: ${min}`, - `Max: ${max}`, - ] - return boxplotValues - }, - }, - }, - }, - } -} diff --git a/components/shared/form/BasicSlider.vue b/components/shared/form/BasicSlider.vue deleted file mode 100644 index 788e1b5d9c..0000000000 --- a/components/shared/form/BasicSlider.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - diff --git a/components/shared/wrapper/NoCollection.vue b/components/shared/wrapper/NoCollection.vue deleted file mode 100644 index 4355833eb9..0000000000 --- a/components/shared/wrapper/NoCollection.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git a/libs/ui/src/components/NeoSlider/NeoSlider.vue b/libs/ui/src/components/NeoSlider/NeoSlider.vue new file mode 100644 index 0000000000..d5750ee9ea --- /dev/null +++ b/libs/ui/src/components/NeoSlider/NeoSlider.vue @@ -0,0 +1,22 @@ + + + diff --git a/libs/ui/src/index.ts b/libs/ui/src/index.ts index 1e1ca9816a..38a9dde175 100644 --- a/libs/ui/src/index.ts +++ b/libs/ui/src/index.ts @@ -29,6 +29,7 @@ export { default as NeoCarousel } from './components/NeoCarousel/NeoCarousel.vue export { default as NeoCarouselItem } from './components/NeoCarousel/NeoCarouselItem.vue' export { default as NeoLoading } from './components/NeoLoading/NeoLoading.vue' export { default as NeoMessage } from './components/NeoMessage/NeoMessage.vue' +export { default as NeoSlider } from './components/NeoSlider/NeoSlider.vue' export { default as NeoSwitch } from './components/NeoSwitch/NeoSwitch.vue' export { default as NeoSteps } from './components/NeoSteps/NeoSteps.vue' diff --git a/package.json b/package.json index 3dbb051efc..5a1bf10c17 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "@nuxtjs/sentry": "^7.3.0", "@nuxtjs/sitemap": "thisismydesign/sitemap-module#cd4dc22293b9b67e8ebb5b3c49840e67c108e312", "@oruga-ui/oruga": "^0.6.0", - "@paraspell/sdk": "^1.1.9", + "@paraspell/sdk": "^1.1.10", "@pinia/nuxt": "^0.4.11", "@polkadot/api": "^10.6.1", "@polkadot/api-base": "^10.6.1", @@ -90,7 +90,6 @@ "@polkadot/vue-identicon": "^3.3.1", "@ramp-network/ramp-instant-sdk": "^3.2.3", "@sentry/browser": "7.42.0", - "@sgratzl/chartjs-chart-boxplot": "^3.10.0", "apollo-boost": "^0.4.9", "axios": "^0.27.2", "buefy": "^0.9.23", @@ -116,7 +115,6 @@ "setimmediate": "^1.0.5", "slugify": "^1.6.6", "unzipit": "^1.4.3", - "v-emoji-picker": "^2.3.3", "vue": "2.7.14", "vue-apollo": "^3.1.0", "vue-audio-visual": "2.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8daadf482a..5ef2fc959a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -71,8 +71,8 @@ importers: specifier: ^0.6.0 version: 0.6.0(vue@2.7.14) '@paraspell/sdk': - specifier: ^1.1.9 - version: 1.1.9(@polkadot/api-base@10.6.1)(@polkadot/api@10.6.1)(@polkadot/apps-config@0.130.1)(@polkadot/types@10.6.1) + specifier: ^1.1.10 + version: 1.1.10(@polkadot/api-base@10.6.1)(@polkadot/api@10.6.1)(@polkadot/apps-config@0.130.1)(@polkadot/types@10.6.1) '@pinia/nuxt': specifier: ^0.4.11 version: 0.4.11(typescript@4.9.5)(vue@2.7.14) @@ -106,9 +106,6 @@ importers: '@sentry/browser': specifier: 7.42.0 version: 7.42.0 - '@sgratzl/chartjs-chart-boxplot': - specifier: ^3.10.0 - version: 3.10.0(chart.js@3.9.1) apollo-boost: specifier: ^0.4.9 version: 0.4.9(graphql@16.7.1) @@ -184,9 +181,6 @@ importers: unzipit: specifier: ^1.4.3 version: 1.4.3 - v-emoji-picker: - specifier: ^2.3.3 - version: 2.3.3(vue@2.7.14) vue: specifier: 2.7.14 version: 2.7.14 @@ -1211,7 +1205,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-create-class-features-plugin': 7.22.1(@babel/core@7.22.5) + '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 transitivePeerDependencies: - supports-color @@ -2042,8 +2036,8 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.22.5 - '@babel/helper-annotate-as-pure': 7.18.6 - '@babel/helper-create-class-features-plugin': 7.22.1(@babel/core@7.22.5) + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-create-class-features-plugin': 7.22.5(@babel/core@7.22.5) '@babel/helper-plugin-utils': 7.22.5 '@babel/plugin-syntax-typescript': 7.21.4(@babel/core@7.22.5) transitivePeerDependencies: @@ -5145,8 +5139,8 @@ packages: '@open-web3/orml-type-definitions': 2.0.1 dev: false - /@paraspell/sdk@1.1.9(@polkadot/api-base@10.6.1)(@polkadot/api@10.6.1)(@polkadot/apps-config@0.130.1)(@polkadot/types@10.6.1): - resolution: {integrity: sha512-Dbkm57YKxgErF8mY+YX+WkT13GiG2Z1G7k+zuSsTLgrtZ4VSLHVd0ZxIDwdPZvoHkVjuDaRmmhwfjVZzK21log==} + /@paraspell/sdk@1.1.10(@polkadot/api-base@10.6.1)(@polkadot/api@10.6.1)(@polkadot/apps-config@0.130.1)(@polkadot/types@10.6.1): + resolution: {integrity: sha512-qhvd041GrGUs2/XMMKFQa4XtoyYDBCF5GkN5LQcMeT1q5vo9hz+mjkgaJcU/scYtbyYKhokLTS/0vtSy9sHO+w==} peerDependencies: '@polkadot/api': ^10.6.1 '@polkadot/api-base': ^10.6.1 @@ -5486,7 +5480,7 @@ packages: '@polkadot/api-augment': 10.8.1 '@polkadot/api-base': 10.8.1 '@polkadot/api-derive': 10.8.1 - '@polkadot/keyring': 12.3.2(@polkadot/util@12.3.2) + '@polkadot/keyring': 12.3.2(@polkadot/util-crypto@12.3.2)(@polkadot/util@12.3.2) '@polkadot/rpc-augment': 10.8.1 '@polkadot/rpc-core': 10.8.1 '@polkadot/rpc-provider': 10.8.1 @@ -5513,7 +5507,7 @@ packages: '@polkadot/api-augment': 10.9.1 '@polkadot/api-base': 10.9.1 '@polkadot/api-derive': 10.9.1 - '@polkadot/keyring': 12.3.2(@polkadot/util@12.3.2) + '@polkadot/keyring': 12.3.2(@polkadot/util-crypto@12.3.2)(@polkadot/util@12.3.2) '@polkadot/rpc-augment': 10.9.1 '@polkadot/rpc-core': 10.9.1 '@polkadot/rpc-provider': 10.9.1 @@ -5693,11 +5687,12 @@ packages: tslib: 2.5.3 dev: false - /@polkadot/keyring@12.3.2(@polkadot/util@12.3.2): + /@polkadot/keyring@12.3.2(@polkadot/util-crypto@12.3.2)(@polkadot/util@12.3.2): resolution: {integrity: sha512-NTdtDeI0DP9l/45hXynNABeP5VB8piw5YR+CbUxK2e36xpJWVXwbcOepzslg5ghE9rs8UKJb30Z/HqTU4sBY0Q==} engines: {node: '>=16'} peerDependencies: '@polkadot/util': 12.3.2 + '@polkadot/util-crypto': 12.3.2 dependencies: '@polkadot/util': 12.3.2 '@polkadot/util-crypto': 12.3.2(@polkadot/util@12.3.2) @@ -6014,7 +6009,7 @@ packages: resolution: {integrity: sha512-4QzT2QzD+320+eT6b79sGAA85Tt3Bb8fQvse4r5Mom2iiBd2SO81vOhxSAOaIe4GUsw25VzFJmsbe7+OObItdg==} engines: {node: '>=16'} dependencies: - '@polkadot/keyring': 12.3.2(@polkadot/util@12.3.2) + '@polkadot/keyring': 12.3.2(@polkadot/util-crypto@12.3.2)(@polkadot/util@12.3.2) '@polkadot/types': 10.9.1 '@polkadot/types-support': 10.9.1 '@polkadot/util': 12.3.2 @@ -6371,7 +6366,7 @@ packages: resolution: {integrity: sha512-AG33i2ZGGfq7u+5rkAdGrXAQHHl844/Yv+junH5ZzX69xiCoWO1bH/yzDUNBdpki2GlACWvF9nLYh3F2tVF93w==} engines: {node: '>=16'} dependencies: - '@polkadot/keyring': 12.3.2(@polkadot/util@12.3.2) + '@polkadot/keyring': 12.3.2(@polkadot/util-crypto@12.3.2)(@polkadot/util@12.3.2) '@polkadot/types-augment': 10.9.1 '@polkadot/types-codec': 10.9.1 '@polkadot/types-create': 10.9.1 @@ -7913,19 +7908,6 @@ packages: - supports-color dev: true - /@sgratzl/boxplots@1.3.0: - resolution: {integrity: sha512-2BRWv+WOH58pwzSgP50buoXgxQic+4auz3BF0wiIUXS8D3QGkdBNgsNdQO1754Tm/0uEwly0R3WaCiGnoYWcmA==} - dev: false - - /@sgratzl/chartjs-chart-boxplot@3.10.0(chart.js@3.9.1): - resolution: {integrity: sha512-+XzmRr9unHzTAMrNVjQ1U6qKid2fEYpV6byC7WIKyU/nT3zB1g98RDuF+z8cFwBjZm/NdVw0uaQYdjHWwHiPbA==} - peerDependencies: - chart.js: ^3.9.1 - dependencies: - '@sgratzl/boxplots': 1.3.0 - chart.js: 3.9.1 - dev: false - /@sideway/address@4.1.4: resolution: {integrity: sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==} dependencies: @@ -23065,16 +23047,6 @@ packages: resolution: {integrity: sha512-AMqwWZaknLM77G+VPYNZLEruMGWGzyigPK3/Whg99B3S6vGHuqsyl5ZrOv1UUF3paGK1U6PM0cnayioaryg/fA==} dev: false - /v-emoji-picker@2.3.3(vue@2.7.14): - resolution: {integrity: sha512-GLuBowVCwKjGRVQ+DJvP6SVFhLIlyvQTBgwlrBuwPX7wt7xi+fdWxmFtyJDBEp/2/xI1aS6Y2lXvse9Cf2vIzA==} - peerDependencies: - vue: ^2.6.11 - dependencies: - vue: 2.7.14 - vue-class-component: 7.2.6(vue@2.7.14) - vue-property-decorator: 9.1.2(vue-class-component@7.2.6)(vue@2.7.14) - dev: false - /v8-to-istanbul@9.1.0: resolution: {integrity: sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==} engines: {node: '>=10.12.0'}