Skip to content

Commit

Permalink
Merge pull request #43 from vividroyjeong/feature/frontend-dev
Browse files Browse the repository at this point in the history
Feature/frontend dev
  • Loading branch information
vividroyjeong authored Dec 12, 2024
2 parents 0ab4c2a + 9ae9fd6 commit 400464a
Show file tree
Hide file tree
Showing 27 changed files with 25 additions and 910 deletions.
1 change: 0 additions & 1 deletion frontend/src/env.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
declare global {
// eslint-disable-next-line no-unused-vars
interface Window {
config: any
}
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/services/vdyp-api/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* tslint:disable */
/* eslint-disable */
export * from './apis/get-help-api'
export * from './apis/get-root-api'
export * from './apis/run-dcsvprojection-api'
export * from './apis/run-hcsvprojection-api'
export * from './apis/run-scsvprojection-api'
58 changes: 8 additions & 50 deletions frontend/src/services/vdyp-api/apis/get-help-api.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
/* tslint:disable */
/* eslint-disable */
import globalAxios from 'axios'
import type { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios'
import { Configuration } from '../configuration'
// Some imports not used depending on template conditions
// @ts-ignore
import { BASE_PATH, BaseAPI, RequiredError } from '../base'
import { BASE_PATH, BaseAPI } from '../base'
import type { RequestArgs } from '../base'
import type { ParameterDetailsMessage } from '../models'
/**
* GetHelpApi - axios parameter creator
* @export
*/
import { env } from '@/env'

export const GetHelpApiAxiosParamCreator = function (
configuration?: Configuration,
) {
return {
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
helpGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/v8/help`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com')
const localVarUrlObj = new URL(localVarPath, env.VITE_API_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
Expand All @@ -45,7 +33,7 @@ export const GetHelpApiAxiosParamCreator = function (
query.set(key, options.params[key])
}
localVarUrlObj.search = new URLSearchParams(query).toString()
let headersFromBaseOptions =
const headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = {
...localVarHeaderParameter,
Expand All @@ -62,24 +50,15 @@ export const GetHelpApiAxiosParamCreator = function (
}
}

/**
* GetHelpApi - functional programming interface
* @export
*/
export const GetHelpApiFp = function (configuration?: Configuration) {
return {
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async helpGet(
options?: AxiosRequestConfig,
): Promise<
(
axios?: AxiosInstance,
basePath?: string,
) => Promise<AxiosResponse<ParameterDetailsMessage[] /* edited */>>
) => Promise<AxiosResponse<ParameterDetailsMessage[]>>
> {
const localVarAxiosArgs =
await GetHelpApiAxiosParamCreator(configuration).helpGet(options)
Expand All @@ -97,47 +76,26 @@ export const GetHelpApiFp = function (configuration?: Configuration) {
}
}

/**
* GetHelpApi - factory interface
* @export
*/
export const GetHelpApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance,
) {
return {
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async helpGet(
options?: AxiosRequestConfig,
): Promise<AxiosResponse<ParameterDetailsMessage[] /* edited */>> {
): Promise<AxiosResponse<ParameterDetailsMessage[]>> {
return GetHelpApiFp(configuration)
.helpGet(options)
.then((request) => request(axios, basePath))
},
}
}

/**
* GetHelpApi - object-oriented interface
* @export
* @class GetHelpApi
* @extends {BaseAPI}
*/
export class GetHelpApi extends BaseAPI {
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof GetHelpApi
*/
public async helpGet(
options?: AxiosRequestConfig,
): Promise<AxiosResponse<ParameterDetailsMessage[] /* edited */>> {
): Promise<AxiosResponse<ParameterDetailsMessage[]>> {
return GetHelpApiFp(this.configuration)
.helpGet(options)
.then((request) => request(this.axios, this.basePath))
Expand Down
57 changes: 7 additions & 50 deletions frontend/src/services/vdyp-api/apis/get-root-api.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,18 @@
/* tslint:disable */
/* eslint-disable */
import globalAxios from 'axios'
import type { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios'
import { Configuration } from '../configuration'
// Some imports not used depending on template conditions
// @ts-ignore
import { BASE_PATH, BaseAPI, RequiredError } from '../base'
import { BASE_PATH, BaseAPI } from '../base'
import type { RequestArgs } from '../base'
import type { RootResource } from '../models'
import { env } from '@/env'

/**
* GetRootApi - axios parameter creator
* @export
*/
export const GetRootApiAxiosParamCreator = function (
configuration?: Configuration,
) {
return {
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
rootGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/v8`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com')
const localVarUrlObj = new URL(localVarPath, env.VITE_API_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
Expand All @@ -46,7 +33,7 @@ export const GetRootApiAxiosParamCreator = function (
query.set(key, options.params[key])
}
localVarUrlObj.search = new URLSearchParams(query).toString()
let headersFromBaseOptions =
const headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = {
...localVarHeaderParameter,
Expand All @@ -63,24 +50,15 @@ export const GetRootApiAxiosParamCreator = function (
}
}

/**
* GetRootApi - functional programming interface
* @export
*/
export const GetRootApiFp = function (configuration?: Configuration) {
return {
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async rootGet(
options?: AxiosRequestConfig,
): Promise<
(
axios?: AxiosInstance,
basePath?: string,
) => Promise<AxiosResponse<RootResource>> /* edited */
) => Promise<AxiosResponse<RootResource>>
> {
const localVarAxiosArgs =
await GetRootApiAxiosParamCreator(configuration).rootGet(options)
Expand All @@ -98,47 +76,26 @@ export const GetRootApiFp = function (configuration?: Configuration) {
}
}

/**
* GetRootApi - factory interface
* @export
*/
export const GetRootApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance,
) {
return {
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async rootGet(
options?: AxiosRequestConfig,
): Promise<AxiosResponse<RootResource>> /* edited */ {
): Promise<AxiosResponse<RootResource>> {
return GetRootApiFp(configuration)
.rootGet(options)
.then((request) => request(axios, basePath))
},
}
}

/**
* GetRootApi - object-oriented interface
* @export
* @class GetRootApi
* @extends {BaseAPI}
*/
export class GetRootApi extends BaseAPI {
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof GetRootApi
*/
public async rootGet(
options?: AxiosRequestConfig,
): Promise<AxiosResponse<RootResource>> /* edited */ {
): Promise<AxiosResponse<RootResource>> {
return GetRootApiFp(this.configuration)
.rootGet(options)
.then((request) => request(this.axios, this.basePath))
Expand Down
Loading

0 comments on commit 400464a

Please sign in to comment.