Skip to content

Commit

Permalink
chore: update dependencies (#53)
Browse files Browse the repository at this point in the history
- updates dependencies
- yarn lint

Linting failed before and still fails, I created an issue
#54
I successfully tested the example.
  • Loading branch information
eliobischof authored Jul 24, 2024
1 parent 45af63f commit ab4bbd9
Show file tree
Hide file tree
Showing 19 changed files with 671 additions and 591 deletions.
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import pluginVue from 'eslint-plugin-vue'

export default [
// add more generic rulesets here, such as:
// js.configs.recommended,
...pluginVue.configs['flat/recommended'],
// ...pluginVue.configs['flat/vue2-recommended'], // Use this if you are using Vue.js 2.x.
{
rules: {
// override/add rules settings here, such as:
// 'vue/no-unused-vars': 'error'
}
}
]
141 changes: 0 additions & 141 deletions lib/package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"vue-oidc-client": "^1.0.0-alpha.5"
},
"devDependencies": {
"typescript": "^5.3.3"
"typescript": "^5.5.4"
}
}
8 changes: 4 additions & 4 deletions lib/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ serialize-javascript@^4.0.0:
dependencies:
randombytes "^2.1.0"

typescript@^5.3.3:
version "5.4.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611"
integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==
typescript@^5.5.4:
version "5.5.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.4.tgz#d9852d6c82bad2d2eda4fd74a5762a8f5909e9ba"
integrity sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==

vue-oidc-client@^1.0.0-alpha.5:
version "1.0.0-alpha.5"
Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,32 @@
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"lint": "eslint --fix",
"format": "prettier --write src/"
},
"dependencies": {
"@zitadel/vue": "^1.0.4",
"vue": "^3.4.26",
"vue-router": "^4.3.2"
"vue": "^3.4.33",
"vue-router": "^4.4.0"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.10.2",
"@rushstack/eslint-patch": "^1.10.3",
"@tsconfig/node18": "^18.2.4",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.12.7",
"@vitejs/plugin-vue": "^5.0.4",
"@types/jsdom": "^21.1.7",
"@types/node": "^20.14.11",
"@vitejs/plugin-vue": "^5.0.5",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/tsconfig": "^0.5.0",
"eslint": "^9.1.1",
"eslint-plugin-cypress": "^3.0.2",
"eslint-plugin-vue": "^9.25.0",
"jsdom": "^24.0.0",
"npm-run-all2": "^6.1.2",
"prettier": "^3.2.5",
"start-server-and-test": "^2.0.3",
"typescript": "~5.4.5",
"vite": "^5.2.10",
"vue-tsc": "^2.0.15"
"@vue/tsconfig": "^0.5.1",
"eslint": "^9.7.0",
"eslint-plugin-cypress": "^3.3.0",
"eslint-plugin-vue": "^9.27.0",
"jsdom": "^24.1.1",
"npm-run-all2": "^6.2.2",
"prettier": "^3.3.3",
"start-server-and-test": "^2.0.4",
"typescript": "~5.5.4",
"vite": "^5.3.4",
"vue-tsc": "^2.0.28"
}
}
33 changes: 27 additions & 6 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,38 @@ import HelloWorld from './components/HelloWorld.vue'

<template>
<header>
<img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />
<img
alt="Vue logo"
class="logo"
src="@/assets/logo.svg"
width="125"
height="125"
>

<div class="wrapper">
<HelloWorld msg="You did it!" />

<nav>
<RouterLink to="/">Home</RouterLink>
<RouterLink to="/about">About</RouterLink>
<RouterLink to="/login">Login</RouterLink>
<RouterLink to="/admin" v-if="$zitadel.hasRole('admin')">Admin</RouterLink>
<a href="#" @click.prevent="$zitadel.oidcAuth.signOut" v-if="$zitadel.oidcAuth.isAuthenticated">Signout</a>
<RouterLink to="/">
Home
</RouterLink>
<RouterLink to="/about">
About
</RouterLink>
<RouterLink to="/login">
Login
</RouterLink>
<RouterLink
v-if="$zitadel.hasRole('admin')"
to="/admin"
>
Admin
</RouterLink>
<a
v-if="$zitadel.oidcAuth.isAuthenticated"
href="#"
@click.prevent="$zitadel.oidcAuth.signOut"
>Signout</a>
</nav>
</div>
</header>
Expand Down
Loading

0 comments on commit ab4bbd9

Please sign in to comment.