Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: dependency updates #239

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions components/account/home/FloatingNotification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ const { stop, start, isPending } = useTimeoutFn(

function dismiss() {
emit('dismiss');
get(isPending) && stop();
if (get(isPending)) {
stop();
}
}

watch(visible, (show) => {
if (isDefined(get(timeout)) && show) {
get(isPending) && stop();
if (get(isPending)) {
stop();
}
start();
}
});
Expand Down
2 changes: 1 addition & 1 deletion components/account/signup/SignupAddress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const rules = {
required,
validateCode: helpers.withMessage(
'Enter a valid postal code. Only alphabets, numbers, space and -',
helpers.regex(/^[\d\sA-Za-z-]+$/),
helpers.regex(/^[\d\sa-z-]+$/i),
),
},
country: { required },
Expand Down
3 changes: 2 additions & 1 deletion components/common/ButtonLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ function getColor(active: boolean, exact: boolean) {
if (
(get(highlightActive) && active)
|| (get(highlightExactActive) && exact)
)
) {
return 'primary';
}

return undefined;
}
Expand Down
4 changes: 2 additions & 2 deletions components/common/status/BaseDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ defineProps<{
title: string;
}>();

const statuses = ['success', 'error', 'neutral'] as const;
const _statuses = ['success', 'error', 'neutral'] as const;

type Status = (typeof statuses)[number];
type Status = (typeof _statuses)[number];

const css = useCssModule();
</script>
Expand Down
2 changes: 1 addition & 1 deletion composables/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function useMarkdownContent() {
logger.error(error);

// fallback to local if remote fails
return await queryPrefixForJob(LOCAL_CONTENT_PREFIX, path);
return queryPrefixForJob(LOCAL_CONTENT_PREFIX, path);
}
};

Expand Down
3 changes: 2 additions & 1 deletion composables/plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ export function usePlanParams() {
isNaN(selectedPlan)
|| !isFinite(selectedPlan)
|| !availablePlans.includes(selectedPlan)
)
) {
return -1;
}

return selectedPlan;
});
Expand Down
2 changes: 1 addition & 1 deletion middleware/authenticated.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { storeToRefs } from 'pinia';
import { useMainStore } from '~/store';

export default defineNuxtRouteMiddleware(() => {
export default defineNuxtRouteMiddleware(async () => {
const { account } = storeToRefs(useMainStore());

if (isDefined(account))
Expand Down
2 changes: 1 addition & 1 deletion middleware/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { storeToRefs } from 'pinia';
import { get } from '@vueuse/core';
import { useMainStore } from '~/store';

export default defineNuxtRouteMiddleware(() => {
export default defineNuxtRouteMiddleware(async () => {
const { authenticated } = storeToRefs(useMainStore());
if (!get(authenticated))
return navigateTo('/login');
Expand Down
2 changes: 1 addition & 1 deletion middleware/maintenance.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default defineNuxtRouteMiddleware(() => {
export default defineNuxtRouteMiddleware(async () => {
const config = useRuntimeConfig();
if (config.public.maintenance)
return navigateTo('/maintenance');
Expand Down
2 changes: 1 addition & 1 deletion middleware/subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { storeToRefs } from 'pinia';
import { get } from '@vueuse/core';
import { useMainStore } from '~/store';

export default defineNuxtRouteMiddleware(() => {
export default defineNuxtRouteMiddleware(async () => {
const { account } = storeToRefs(useMainStore());

if (!isDefined(account))
Expand Down
2 changes: 1 addition & 1 deletion middleware/unverified.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { get } from '@vueuse/core';
import { storeToRefs } from 'pinia';
import { useMainStore } from '~/store';

export default defineNuxtRouteMiddleware(() => {
export default defineNuxtRouteMiddleware(async () => {
const { account } = storeToRefs(useMainStore());

if (!isDefined(account))
Expand Down
13 changes: 8 additions & 5 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ export default defineNuxtConfig({
},
},

compatibilityDate: '2024-08-13',

components: [{ path: '~/components', pathPrefix: false }],

content: {
api: {
baseURL: '/md/_content',
Expand All @@ -110,6 +113,7 @@ export default defineNuxtConfig({
},
},
},

css: [],

devtools: {
Expand Down Expand Up @@ -153,10 +157,10 @@ export default defineNuxtConfig({
},

robots: {
rules: {
Disallow: nonIndexed,
UserAgent: '*',
},
groups: [{
disallow: nonIndexed,
userAgent: '*',
}],
},

routeRules: {
Expand Down Expand Up @@ -192,6 +196,5 @@ export default defineNuxtConfig({
sitemap: {
exclude: nonIndexed,
},

ssr: true,
});
82 changes: 41 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rotki.com",
"version": "1.22.0",
"private": true,
"packageManager": "pnpm@9.5.0",
"packageManager": "pnpm@9.7.0",
"type": "module",
"scripts": {
"dev": "nuxi dev",
Expand All @@ -25,73 +25,73 @@
"release": "bumpp -r --no-push"
},
"optionalDependencies": {
"cypress": "13.13.1"
"cypress": "13.13.2"
},
"dependencies": {
"@metamask/detect-provider": "2.0.0",
"@nuxtjs/robots": "3.0.0",
"@nuxtjs/robots": "4.0.2",
"@nuxtjs/tailwindcss": "6.11.4",
"@pinia/nuxt": "0.5.1",
"@pinia/nuxt": "0.5.3",
"@vuelidate/core": "2.0.3",
"@vuelidate/validators": "2.0.4",
"@vueuse/core": "10.11.0",
"@vueuse/math": "10.11.0",
"@vueuse/nuxt": "10.11.0",
"@vueuse/shared": "10.11.0",
"braintree-web": "3.103.0",
"ethers": "6.13.1",
"pinia": "2.1.7",
"qrcode": "1.5.3",
"swiper": "11.1.5",
"vue": "3.4.26",
"vue-router": "4.4.0",
"@vueuse/core": "10.11.1",
"@vueuse/math": "10.11.1",
"@vueuse/nuxt": "10.11.1",
"@vueuse/shared": "10.11.1",
"braintree-web": "3.106.0",
"ethers": "6.13.2",
"pinia": "2.2.1",
"qrcode": "1.5.4",
"swiper": "11.1.9",
"vue": "3.4.37",
"vue-router": "4.4.3",
"zod": "3.23.8"
},
"devDependencies": {
"@commitlint/cli": "19.3.0",
"@commitlint/cli": "19.4.0",
"@commitlint/config-conventional": "19.2.2",
"@fontsource/roboto": "5.0.13",
"@fontsource/roboto": "5.0.14",
"@nuxt/content": "2.12.1",
"@nuxt/devtools": "1.2.0",
"@nuxt/test-utils": "3.13.1",
"@nuxtjs/i18n": "8.3.1",
"@nuxtjs/sitemap": "5.1.5",
"@rotki/eslint-config": "2.9.1",
"@nuxt/devtools": "1.3.9",
"@nuxt/test-utils": "3.14.1",
"@nuxtjs/i18n": "8.3.3",
"@nuxtjs/sitemap": "5.3.5",
"@rotki/eslint-config": "3.0.0",
"@rotki/eslint-plugin": "0.4.0",
"@rotki/ui-library": "1.0.0-beta.10",
"@rotki/ui-library": "1.1.2",
"@types/braintree-web": "3.96.12",
"@types/paypal-checkout-components": "4.0.8",
"@types/qrcode": "1.5.5",
"@vitest/coverage-v8": "1.6.0",
"@vitest/coverage-v8": "2.0.5",
"@vue/test-utils": "2.4.6",
"autoprefixer": "10.4.19",
"bumpp": "9.4.1",
"eslint": "8.57.0",
"autoprefixer": "10.4.20",
"bumpp": "9.5.1",
"eslint": "9.9.0",
"eslint-plugin-nuxt": "4.0.0",
"happy-dom": "14.12.3",
"husky": "9.1.1",
"lint-staged": "15.2.7",
"msw": "2.3.2",
"nuxt": "3.11.2",
"postcss": "8.4.39",
"husky": "9.1.4",
"lint-staged": "15.2.9",
"msw": "2.3.5",
"nuxt": "3.12.4",
"postcss": "8.4.41",
"postcss-html": "1.7.0",
"postcss-import": "16.1.0",
"postcss-url": "10.1.3",
"rollup": "4.19.0",
"rollup": "4.20.0",
"sass": "1.77.8",
"sass-loader": "14.2.1",
"stylelint": "16.7.0",
"sass-loader": "16.0.0",
"stylelint": "16.8.1",
"stylelint-config-recommended-vue": "1.5.0",
"stylelint-config-standard": "36.0.1",
"stylelint-config-standard-scss": "13.1.0",
"stylelint-order": "6.0.4",
"stylelint-scss": "6.4.1",
"tailwindcss": "3.4.6",
"typescript": "5.5.3",
"vite": "5.3.4",
"vitest": "1.6.0",
"stylelint-scss": "6.5.0",
"tailwindcss": "3.4.9",
"typescript": "5.5.4",
"vite": "5.4.0",
"vitest": "2.0.5",
"vitest-environment-nuxt": "1.0.0",
"vue-tsc": "2.0.28",
"vue-tsc": "2.0.29",
"webpack": "5.93.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/redirect.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default defineNuxtPlugin(() => {
addRouteMiddleware((to) => {
addRouteMiddleware(async (to) => {
if (to.path.startsWith('/products/detail')) {
return navigateTo(
{ name: 'products' },
Expand Down
2 changes: 1 addition & 1 deletion plugins/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export default defineNuxtPlugin(async () => {
if (sessionId) {
const { getAccount } = useMainStore();

return await getAccount();
return getAccount();
}
});
Loading
Loading