Skip to content
Open
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ cp sample.env .env

docker-comppose up -d

npm run dev
bun run dev
# or
yarn dev
```
Expand Down
Empty file modified back/start_server.sh
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions front/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next
First, run the development server:

```bash
bun run dev
# or
npm run dev
# or
yarn dev
Expand Down
Binary file added front/bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"start": "next start",
"lint": "next lint",
"gApi": "openapi --input http://127.0.0.1:5002/openapi.json --output ./src/openapi --client axios",
"gLocApi": "openapi --input http://127.0.0.1:8000/openapi.json --output ./src/openapi --client axios",
"js-watch": "webpack --config webpack.dev.js --watch",
"js": "webpack --config webpack.prod.js",
"css": "tailwindcss -i ./src/app/styles/globals.css -o ./build/static/css/styles.css --minify",
Expand Down Expand Up @@ -45,6 +46,7 @@
"autoprefixer": "^10.4.14",
"jsdom": "^22.1.0",
"postcss": "^8.4.24",
"url": "^0.11.3",
"vitest": "^0.33.0"
}
}
38 changes: 19 additions & 19 deletions front/src/openapi/core/OpenAPI.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ApiRequestOptions } from "./ApiRequestOptions";
import type { ApiRequestOptions } from './ApiRequestOptions';

type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
type Headers = Record<string, string>;

export type OpenAPIConfig = {
BASE: string;
VERSION: string;
WITH_CREDENTIALS: boolean;
CREDENTIALS: "include" | "omit" | "same-origin";
TOKEN?: string | Resolver<string>;
USERNAME?: string | Resolver<string>;
PASSWORD?: string | Resolver<string>;
HEADERS?: Headers | Resolver<Headers>;
ENCODE_PATH?: (path: string) => string;
BASE: string;
VERSION: string;
WITH_CREDENTIALS: boolean;
CREDENTIALS: 'include' | 'omit' | 'same-origin';
TOKEN?: string | Resolver<string>;
USERNAME?: string | Resolver<string>;
PASSWORD?: string | Resolver<string>;
HEADERS?: Headers | Resolver<Headers>;
ENCODE_PATH?: (path: string) => string;
};

export const OpenAPI: OpenAPIConfig = {
BASE: process.env.BACKEND_URL ?? "",
VERSION: "1.0.23",
WITH_CREDENTIALS: false,
CREDENTIALS: "include",
TOKEN: undefined,
USERNAME: undefined,
PASSWORD: undefined,
HEADERS: undefined,
ENCODE_PATH: undefined,
BASE: '',
VERSION: '1.3.22',
WITH_CREDENTIALS: false,
CREDENTIALS: 'include',
TOKEN: undefined,
USERNAME: undefined,
PASSWORD: undefined,
HEADERS: undefined,
ENCODE_PATH: undefined,
};
3 changes: 2 additions & 1 deletion front/src/openapi/models/CandidateAnswerOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
/* eslint-disable */

export type CandidateAnswerOut = {
status: string;
status: string;
};

2 changes: 1 addition & 1 deletion front/src/openapi/models/CaseOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type CaseOut = {
description: string;
slugName: string;
subTitle: string;
projectLink?: string;
projectLink: (string | null);
role: string;
stacksNames: Array<string>;
screenshotsUrls: Array<string>;
Expand Down
2 changes: 1 addition & 1 deletion front/src/openapi/models/IsAuthenticated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
export type IsAuthenticated = {
username: string;
email: string;
image_url?: string;
image_url?: (string | null);
git_hub_id: string;
};

3 changes: 0 additions & 3 deletions front/src/openapi/models/Languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
/* tslint:disable */
/* eslint-disable */

/**
* An enumeration.
*/
export enum Languages {
EN = 'en',
DE = 'de',
Expand Down
2 changes: 1 addition & 1 deletion front/src/openapi/models/QuestionOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
import type { Question } from './Question';

export type QuestionOut = {
question?: Question;
question: (Question | null);
};

127 changes: 64 additions & 63 deletions front/src/openapi/services/CandidateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,69 +12,70 @@ import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class CandidateService {
/**
* Is Authenticated
* @param requestBody
* @returns IsAuthenticatedOut Successful Response
* @throws ApiError
*/
public static isAuthenticated(
requestBody: IsAuthenticated
): CancelablePromise<IsAuthenticatedOut> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/candidate/is_authenticated',
body: requestBody,
mediaType: 'application/json',
errors: {
422: `Validation Error`,
},
});
}

/**
* Set Answer
* @param requestBody
* @returns CandidateAnswerOut Successful Response
* @throws ApiError
*/
public static setAnswer(
requestBody: CandidateAnswer
): CancelablePromise<CandidateAnswerOut> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/candidate/set_answer',
body: requestBody,
mediaType: 'application/json',
errors: {
422: `Validation Error`,
},
});
}
/**
* Is Authenticated
* @param requestBody
* @returns IsAuthenticatedOut Successful Response
* @throws ApiError
*/
public static isAuthenticated(
requestBody: IsAuthenticated,
): CancelablePromise<IsAuthenticatedOut> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/candidate/is_authenticated',
body: requestBody,
mediaType: 'application/json',
errors: {
422: `Validation Error`,
},
});
}

/**
* Set Answer
* @param requestBody
* @returns CandidateAnswerOut Successful Response
* @throws ApiError
*/
public static setAnswer(
requestBody: CandidateAnswer,
): CancelablePromise<CandidateAnswerOut> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/candidate/set_answer',
body: requestBody,
mediaType: 'application/json',
errors: {
422: `Validation Error`,
},
});
}

/**
* Application Form
* @param formData
* @param candidateUuid
* @returns CandidateAnswerOut Successful Response
* @throws ApiError
*/
public static applicationForm(
formData: Body_application_form,
candidateUuid?: string,
): CancelablePromise<CandidateAnswerOut> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/candidate/application_form',
query: {
'candidate_uuid': candidateUuid,
},
formData: formData,
mediaType: 'multipart/form-data',
errors: {
422: `Validation Error`,
},
});
}

/**
* Application Form
* @param formData
* @param candidateUuid
* @returns CandidateAnswerOut Successful Response
* @throws ApiError
* do not change it after generate gApi (NOT COMMIT)
*/
public static applicationForm(
candidateUuid: string,
formData: FormData
): CancelablePromise<CandidateAnswerOut> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/candidate/application_form',
query: {
candidate_uuid: candidateUuid,
},
body: formData,
mediaType: 'multipart/form-data',
errors: {
422: `Validation Error`,
},
});
}
Comment on lines -55 to -79

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please return the commit

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok) thanks, I will return the commits

}
51 changes: 26 additions & 25 deletions front/src/openapi/services/ClientService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,30 @@ import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class ClientService {
/**
* Contact Form
* @param formData
* @param candidateUuid
* @returns CandidateAnswerOut Successful Response
* @throws ApiError
* do not change it after generation gApi (NOT COMMIT)
*/
public static contactForm(
candidateUuid: string,
formData: FormData
): CancelablePromise<CandidateAnswerOut> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/client/contact_form',
query: {
candidate_uuid: candidateUuid,
},
body: formData,
mediaType: 'multipart/form-data',
errors: {
422: `Validation Error`,
},
});
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please return the commit

/**
* Contact Form
* @param formData
* @param candidateUuid
* @returns CandidateAnswerOut Successful Response
* @throws ApiError
*/
public static contactForm(
formData: Body_contact_form,
candidateUuid?: string,
): CancelablePromise<CandidateAnswerOut> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/client/contact_form',
query: {
'candidate_uuid': candidateUuid,
},
formData: formData,
mediaType: 'multipart/form-data',
errors: {
422: `Validation Error`,
},
});
}

}
Loading