Skip to content

Commit

Permalink
feat: bump authup dependencies & adjusted code base
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Nov 12, 2024
1 parent e0dcfed commit 90f7131
Show file tree
Hide file tree
Showing 51 changed files with 317 additions and 514 deletions.
459 changes: 122 additions & 337 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/client-ui/components/layout/header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- view the LICENSE file that was distributed with this source code.
-->
<script lang="ts">
import { useStore } from '@authup/client-web-kit';
import { injectStore } from '@authup/client-web-kit';
import { VCGravatar } from '@vuecs/gravatar';
import { VCNavItems } from '@vuecs/navigation';
import { BCollapse } from 'bootstrap-vue-next';
Expand All @@ -21,7 +21,7 @@ export default defineNuxtComponent({
VCNavItems,
},
setup() {
const store = useStore();
const store = injectStore();
const { loggedIn, user, realmManagementName } = storeToRefs(store);

const displayNav = ref(false);
Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/components/layout/sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- view the LICENSE file that was distributed with this source code.
-->
<script lang="ts">
import { useStore } from '@authup/client-web-kit';
import { injectStore } from '@authup/client-web-kit';
import { injectCoreHTTPClient } from '@privateaim/client-vue';
import { VCCountdown } from '@vuecs/countdown';
import { VCNavItems } from '@vuecs/navigation';
Expand All @@ -17,7 +17,7 @@ export default defineNuxtComponent({
components: { VCCountdown, VCNavItems },
setup() {
const api = injectCoreHTTPClient();
const store = useStore();
const store = injectStore();

const { loggedIn, accessTokenExpireDate: tokenExpireDate, realmManagement } = storeToRefs(store);

Expand Down
13 changes: 0 additions & 13 deletions packages/client-ui/middleware/layout.global.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/client-ui/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineNuxtConfig({
'bootstrap-vue-next/dist/bootstrap-vue-next.css',
'@vuecs/pagination/dist/index.css',
'@vuecs/navigation/dist/index.css',
'@authup/client-web-kit/index.css',
'@authup/client-web-kit/dist/index.css',
'@/../client-vue/dist/index.css',
'@fortawesome/fontawesome-free/css/all.css',
'bootstrap/dist/css/bootstrap.css',
Expand Down
6 changes: 3 additions & 3 deletions packages/client-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
},
"devDependencies": {
"@authup/kit": "^1.0.0-beta.23",
"@authup/client-web-kit": "^1.0.0-beta.22",
"@authup/client-web-nuxt": "^1.0.0-beta.22",
"@authup/core-http-kit": "^1.0.0-beta.22",
"@authup/client-web-kit": "^1.0.0-beta.23",
"@authup/client-web-nuxt": "^1.0.0-beta.23",
"@authup/core-http-kit": "^1.0.0-beta.23",
"@authup/core-kit": "^1.0.0-beta.23",
"@ilingo/vuelidate": "^5.0.3",
"@fortawesome/fontawesome-free": "^6.6.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/identity-providers/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<script lang="ts">

import { injectHTTPClient, useStore } from '@authup/client-web-kit';
import { injectHTTPClient, injectStore } from '@authup/client-web-kit';
import type { IdentityProvider } from '@authup/core-kit';
import { PermissionName, isRealmResourceWritable } from '@authup/core-kit';
import { storeToRefs } from 'pinia';
Expand Down Expand Up @@ -42,7 +42,7 @@ export default defineComponent({

const toast = useToast();
const route = useRoute();
const store = useStore();
const store = injectStore();

const entity: Ref<IdentityProvider> = ref(null) as any;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->

<script lang="ts">
import { AIdentityProviderOAuth2Form, useStore } from '@authup/client-web-kit';
import { AIdentityProviderOAuth2Form, injectStore } from '@authup/client-web-kit';
import type { IdentityProvider } from '@authup/core-kit';
import { IdentityProviderProtocol, PermissionName } from '@authup/core-kit';
import { VCFormSelect } from '@vuecs/form-controls';
Expand Down Expand Up @@ -47,7 +47,7 @@ export default defineNuxtComponent({
{ id: IdentityProviderProtocol.LDAP, value: 'LDAP' },
];

const store = useStore();
const store = injectStore();
const { realmManagementId } = storeToRefs(store);

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { BTable } from 'bootstrap-vue-next';
import type { IdentityProvider } from '@authup/core-kit';
import { PermissionName, isRealmResourceWritable } from '@authup/core-kit';
import {
AEntityDelete, AIdentityProviders, APagination, ASearch, ATitle, usePermissionCheck, useStore,
AEntityDelete, AIdentityProviders, APagination, ASearch, ATitle, usePermissionCheck, injectStore,

Check failure on line 14 in packages/client-ui/pages/admin/identity-providers/index/index.vue

View workflow job for this annotation

GitHub Actions / lint

Member 'injectStore' of the import declaration should be sorted alphabetically
} from '@authup/client-web-kit';
import { storeToRefs } from 'pinia';
import type { BuildInput } from 'rapiq';
Expand All @@ -33,7 +33,7 @@ export default defineNuxtComponent({
emit('deleted', e);
};

const store = useStore();
const store = injectStore();
const { realm, realmManagementId } = storeToRefs(store);

const query : BuildInput<IdentityProvider> = {
Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/nodes/index/add.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- view the LICENSE file that was distributed with this source code.
-->
<script lang="ts">
import { useStore } from '@authup/client-web-kit';
import { injectStore } from '@authup/client-web-kit';
import type { Node } from '@privateaim/core-kit';
import { PermissionName } from '@privateaim/kit';
import { storeToRefs } from 'pinia';
Expand All @@ -26,7 +26,7 @@ export default defineNuxtComponent({
],
});

const store = useStore();
const store = injectStore();
const { realmManagementId, realmManagementName } = storeToRefs(store);

const handleCreated = async (e: Node) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/nodes/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- view the LICENSE file that was distributed with this source code.
-->
<script lang="ts">
import { usePermissionCheck, useStore } from '@authup/client-web-kit';
import { usePermissionCheck, injectStore } from '@authup/client-web-kit';

Check failure on line 8 in packages/client-ui/pages/admin/nodes/index/index.vue

View workflow job for this annotation

GitHub Actions / lint

Member 'injectStore' of the import declaration should be sorted alphabetically
import { PermissionName } from '@privateaim/kit';
import { VCTimeago } from '@vuecs/timeago';
import type { Node } from '@privateaim/core-kit';
Expand Down Expand Up @@ -55,7 +55,7 @@ export default defineNuxtComponent({
},
];

const store = useStore();
const store = injectStore();
const { realmManagementId } = storeToRefs(store);

const canEdit = usePermissionCheck({ name: PermissionName.NODE_UPDATE });
Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/permissions/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->

<script lang="ts">
import { injectHTTPClient, useStore } from '@authup/client-web-kit';
import { injectHTTPClient, injectStore } from '@authup/client-web-kit';
import type { Permission } from '@authup/core-kit';
import { PermissionName, isRealmResourceWritable } from '@authup/core-kit';
import { storeToRefs } from 'pinia';
Expand Down Expand Up @@ -49,7 +49,7 @@ export default defineComponent({

const toast = useToast();
const route = useRoute();
const store = useStore();
const store = injectStore();

const entity : Ref<Permission> = ref(null) as any;

Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/permissions/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { VCTimeago } from '@vuecs/timeago';
import { BTable } from 'bootstrap-vue-next';
import {
AEntityDelete, APagination, APermissions, ASearch, ATitle, usePermissionCheck, useStore,
AEntityDelete, APagination, APermissions, ASearch, ATitle, usePermissionCheck, injectStore,

Check failure on line 12 in packages/client-ui/pages/admin/permissions/index/index.vue

View workflow job for this annotation

GitHub Actions / lint

Member 'injectStore' of the import declaration should be sorted alphabetically
} from '@authup/client-web-kit';
import type { Permission } from '@authup/core-kit';
import { PermissionName, isRealmResourceWritable } from '@authup/core-kit';
Expand All @@ -33,7 +33,7 @@ export default defineNuxtComponent({
emit('deleted', e);
};

const store = useStore();
const store = injectStore();
const { realm, realmManagementId } = storeToRefs(store);

const query : BuildInput<Permission> = {
Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/realms/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->

<script lang="ts">
import { injectHTTPClient, useStore } from '@authup/client-web-kit';
import { injectHTTPClient, injectStore } from '@authup/client-web-kit';
import type { Realm } from '@authup/core-kit';
import { PermissionName, isRealmResourceWritable } from '@authup/core-kit';
import { storeToRefs } from 'pinia';
Expand Down Expand Up @@ -41,7 +41,7 @@ export default defineComponent({

const toast = useToast();
const route = useRoute();
const store = useStore();
const store = injectStore();

const entity: Ref<Realm> = ref(null) as any;

Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/realms/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { BTable } from 'bootstrap-vue-next';
import type { Realm } from '@authup/core-kit';
import { PermissionName, isRealmResourceWritable } from '@authup/core-kit';
import {
AEntityDelete, APagination, ARealms, ASearch, ATitle, usePermissionCheck, useStore,
AEntityDelete, APagination, ARealms, ASearch, ATitle, usePermissionCheck, injectStore,

Check failure on line 14 in packages/client-ui/pages/admin/realms/index/index.vue

View workflow job for this annotation

GitHub Actions / lint

Member 'injectStore' of the import declaration should be sorted alphabetically
} from '@authup/client-web-kit';
import { storeToRefs } from 'pinia';
import { defineNuxtComponent } from '#imports';
Expand All @@ -28,7 +28,7 @@ export default defineNuxtComponent({
},
emits: ['deleted'],
setup(props, { emit }) {
const store = useStore();
const store = injectStore();
const {
realm,
realmManagementId,
Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/robots/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->

<script lang="ts">
import { injectHTTPClient, useStore } from '@authup/client-web-kit';
import { injectHTTPClient, injectStore } from '@authup/client-web-kit';
import type { Robot } from '@authup/core-kit';
import { PermissionName, isRealmResourceWritable } from '@authup/core-kit';
import { storeToRefs } from 'pinia';
Expand Down Expand Up @@ -49,7 +49,7 @@ export default defineComponent({

const toast = useToast();
const route = useRoute();
const store = useStore();
const store = injectStore();

const entity: Ref<Robot> = ref(null) as any;

Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/robots/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { BTable } from 'bootstrap-vue-next';
import type { Robot } from '@authup/core-kit';
import { PermissionName, isRealmResourceWritable } from '@authup/core-kit';
import {
AEntityDelete, APagination, ARobots, ASearch, ATitle, usePermissionCheck, useStore,
AEntityDelete, APagination, ARobots, ASearch, ATitle, usePermissionCheck, injectStore,

Check failure on line 13 in packages/client-ui/pages/admin/robots/index/index.vue

View workflow job for this annotation

GitHub Actions / lint

Member 'injectStore' of the import declaration should be sorted alphabetically
} from '@authup/client-web-kit';
import { storeToRefs } from 'pinia';
import type { BuildInput } from 'rapiq';
Expand All @@ -31,7 +31,7 @@ export default defineNuxtComponent({
emit('deleted', e);
};

const store = useStore();
const store = injectStore();
const { realm, realmManagementId } = storeToRefs(store);

const query : BuildInput<Robot> = {
Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/roles/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<script lang="ts">

import { injectHTTPClient, useStore } from '@authup/client-web-kit';
import { injectHTTPClient, injectStore } from '@authup/client-web-kit';
import type { Role } from '@authup/core-kit';
import { PermissionName, isRealmResourceWritable } from '@authup/core-kit';
import { storeToRefs } from 'pinia';
Expand Down Expand Up @@ -50,7 +50,7 @@ export default defineComponent({

const toast = useToast();
const route = useRoute();
const store = useStore();
const store = injectStore();

const entity : Ref<Role> = ref(null) as any;

Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/roles/index/add.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->

<script lang="ts">
import { ARoleForm, useStore } from '@authup/client-web-kit';
import { ARoleForm, injectStore } from '@authup/client-web-kit';
import type { Role } from '@authup/core-kit';
import { PermissionName } from '@authup/core-kit';
import { storeToRefs } from 'pinia';
Expand Down Expand Up @@ -36,7 +36,7 @@ export default defineNuxtComponent({
emit('failed', e);
};

const store = useStore();
const store = injectStore();
const { realmManagementId } = storeToRefs(store);

return {
Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/roles/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { BTable } from 'bootstrap-vue-next';
import type { Role } from '@authup/core-kit';
import { PermissionName, isRealmResourceWritable } from '@authup/core-kit';
import {
AEntityDelete, APagination, ARoles, ASearch, ATitle, usePermissionCheck, useStore,
AEntityDelete, APagination, ARoles, ASearch, ATitle, usePermissionCheck, injectStore,

Check failure on line 13 in packages/client-ui/pages/admin/roles/index/index.vue

View workflow job for this annotation

GitHub Actions / lint

Member 'injectStore' of the import declaration should be sorted alphabetically
} from '@authup/client-web-kit';
import { storeToRefs } from 'pinia';
import type { BuildInput } from 'rapiq';
Expand All @@ -31,7 +31,7 @@ export default defineNuxtComponent({
emit('deleted', e);
};

const store = useStore();
const store = injectStore();
const { realm, realmManagementId } = storeToRefs(store);

const query : BuildInput<Role> = {
Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/users/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->

<script lang="ts">
import { injectHTTPClient, useStore } from '@authup/client-web-kit';
import { injectHTTPClient, injectStore } from '@authup/client-web-kit';
import type { User } from '@authup/core-kit';
import { PermissionName, isRealmResourceWritable } from '@authup/core-kit';
import { storeToRefs } from 'pinia';
Expand Down Expand Up @@ -49,7 +49,7 @@ export default defineComponent({

const toast = useToast();
const route = useRoute();
const store = useStore();
const store = injectStore();

const entity : Ref<User> = ref(null) as any;

Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/users/index/add.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->

<script lang="ts">
import { AUserForm, useStore } from '@authup/client-web-kit';
import { AUserForm, injectStore } from '@authup/client-web-kit';
import type { User } from '@authup/core-kit';
import { PermissionName } from '@authup/core-kit';
import { storeToRefs } from 'pinia';
Expand Down Expand Up @@ -36,7 +36,7 @@ export default defineNuxtComponent({
emit('failed', e);
};

const store = useStore();
const store = injectStore();
const { realmManagementId } = storeToRefs(store);

return {
Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/admin/users/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
PermissionName, isRealmResourceWritable,
} from '@authup/core-kit';
import {
AEntityDelete, AUsers, usePermissionCheck, useStore,
AEntityDelete, AUsers, usePermissionCheck, injectStore,

Check failure on line 15 in packages/client-ui/pages/admin/users/index/index.vue

View workflow job for this annotation

GitHub Actions / lint

Member 'injectStore' of the import declaration should be sorted alphabetically
} from '@authup/client-web-kit';
import { storeToRefs } from 'pinia';
import type { BuildInput } from 'rapiq';
Expand All @@ -29,7 +29,7 @@ export default defineNuxtComponent({
emit('deleted', e);
};

const store = useStore();
const store = injectStore();
const { realm, realmManagementId } = storeToRefs(store);

const query : BuildInput<User> = {
Expand Down
4 changes: 2 additions & 2 deletions packages/client-ui/pages/analyses/index/add.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- view the LICENSE file that was distributed with this source code.
-->
<script lang="ts">
import { useStore } from '@authup/client-web-kit';
import { injectStore } from '@authup/client-web-kit';
import type { Analysis } from '@privateaim/core-kit';
import { storeToRefs } from 'pinia';
import { ref } from 'vue';
Expand All @@ -19,7 +19,7 @@ export default defineNuxtComponent({
setup(_props, { emit }) {
const projectId = ref<string | null>(null);

const store = useStore();
const store = injectStore();
const { realmId } = storeToRefs(store);

const route = useRoute();
Expand Down
Loading

0 comments on commit 90f7131

Please sign in to comment.