Skip to content

Commit

Permalink
Merge pull request #10984 from qmonmert/vueprettier
Browse files Browse the repository at this point in the history
Vue: apply prettier-plugin-organize-imports
  • Loading branch information
murdos authored Sep 26, 2024
2 parents faec05b + f433a3a commit 7e1045b
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { key } from 'piqure';
import { provide } from '@/injections';
import type { AuthRepository } from '@/auth/domain/AuthRepository';
import { KeycloakAuthRepository } from '@/auth/infrastructure/secondary/KeycloakAuthRepository';
import { KeycloakHttp } from '@/auth/infrastructure/secondary/KeycloakHttp';
import { provide } from '@/injections';
import { key } from 'piqure';

export const AUTH_REPOSITORY = key<AuthRepository>('AuthRepository');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Keycloak from 'keycloak-js';
import type { AuthenticatedUser } from '@/auth/domain/AuthenticatedUser';
import Keycloak from 'keycloak-js';

export class KeycloakHttp {
private initialized: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { RouteRecordRaw } from 'vue-router';
import HomepageVue from '@/home/infrastructure/primary/HomepageVue.vue';
import type { RouteRecordRaw } from 'vue-router';

export const homeRoutes = (): RouteRecordRaw[] => [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import { piqureWrapper } from 'piqure';

const { provide, inject } = piqureWrapper(window, 'piqure');

export { provide, inject };
export { inject, provide };
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createRouter, createWebHistory } from 'vue-router';
import { homeRoutes } from '@/home/application/HomeRouter';
import { createRouter, createWebHistory } from 'vue-router';

export const routes = [...homeRoutes()];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, it, expect } from 'vitest';
import { AUTH_REPOSITORY, provideForAuth } from '@/auth/application/AuthProvider';
import { KeycloakAuthRepository } from '@/auth/infrastructure/secondary/KeycloakAuthRepository';
import { inject } from '@/injections';
import { describe, expect, it } from 'vitest';
import { stubKeycloakHttp } from '../infrastructure/secondary/KeycloakHttpStub';

describe('AuthProvider', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, it, expect, beforeEach } from 'vitest';
import { KeycloakAuthRepository } from '@/auth/infrastructure/secondary/KeycloakAuthRepository';
import { beforeEach, describe, expect, it } from 'vitest';
import type { KeycloakHttpStub } from './KeycloakHttpStub';
import { stubKeycloakHttp, fakeAuthenticatedUser } from './KeycloakHttpStub';
import { fakeAuthenticatedUser, stubKeycloakHttp } from './KeycloakHttpStub';

describe('KeycloakAuthRepository', () => {
let keycloakHttpStub: KeycloakHttpStub;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, it, expect } from 'vitest';
import { KeycloakHttp } from '@/auth/infrastructure/secondary/KeycloakHttp';
import { stubKeycloak } from './KeycloakStub';
import { describe, expect, it } from 'vitest';
import { fakeAuthenticatedUser } from './KeycloakHttpStub';
import { stubKeycloak } from './KeycloakStub';

const createKeycloakHttp = () => {
const keycloakStub = stubKeycloak();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sinon from 'sinon';
import type { SinonStub } from 'sinon';
import type { KeycloakHttp } from '@/auth/infrastructure/secondary/KeycloakHttp';
import type { AuthenticatedUser } from '@/auth/domain/AuthenticatedUser';
import type { KeycloakHttp } from '@/auth/infrastructure/secondary/KeycloakHttp';
import type { SinonStub } from 'sinon';
import sinon from 'sinon';

export interface KeycloakHttpStub extends KeycloakHttp {
currentUser: SinonStub;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Keycloak from 'keycloak-js';
import type { SinonStub } from 'sinon';
import sinon from 'sinon';
import type{ SinonStub } from 'sinon';

export interface KeycloakStub extends Keycloak {
init: SinonStub;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import HomepageVue from '@/home/infrastructure/primary/HomepageVue.vue';
import { routes } from '@/router';
import { mount, VueWrapper } from '@vue/test-utils';
import { beforeEach, describe, expect, it } from 'vitest';
import { createRouter, createWebHistory, type Router } from 'vue-router';
import { routes } from '@/router';
import HomepageVue from '@/home/infrastructure/primary/HomepageVue.vue';

let router: Router;
beforeEach(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, it, expect } from 'vitest';
import type { AxiosResponse } from 'axios';
import { AxiosHttp } from '@/shared/http/infrastructure/secondary/AxiosHttp';
import type { AxiosResponse } from 'axios';
import { describe, expect, it } from 'vitest';
import { dataAxiosResponse, stubAxiosInstance } from './AxiosStub';

interface Payload {
Expand Down

0 comments on commit 7e1045b

Please sign in to comment.