-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
wd-159: use js packages folder approach
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export { ApiPath } from './api-path.enum.js' | ||
export { AppConfig } from './app-config.enum.js' | ||
export { ContentType } from './content-type.enum.js' | ||
export { CustomExceptionName } from './custom-exception-name.enum.js' | ||
export { ErrorMessage } from './error-message.enum.js' | ||
export { KeyboardKey } from './keyboard-key.enum.js' | ||
export { NotificationMessage } from './notification-message.enum.js' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
let ErrorMessage = /** @type {const} */ ({ | ||
NETWORK_ERROR: `Network Error`, | ||
}) | ||
|
||
export { ErrorMessage } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export { addSelectOptions } from './add-select-options/add-select-options.helper.js' | ||
export { checkIsBeforeElement } from './check-is-before-element/check-is-before-element.helper.js' | ||
export { checkIsOneOf } from './check-is-one-of/check-is-one-of.helper.js' | ||
export { createElement } from './create-element/create-element.helper.js' | ||
export { createSelectOptions } from './create-select-options/create-select-options.helper.js' | ||
export { fillSelectOptions } from './fill-select-options/fill-select-options.helper.js' | ||
export { getCustomAttributeName } from './get-custom-attribute-name/get-custom-attribute-name.helper.js' | ||
export { getFormattedDate } from './get-formatted-date/get-formatted-date.helper.js' | ||
export { getRandomNumber } from './get-random-number/get-random-number.helper.js' | ||
export { getServerApiUrl } from './get-server-api-url/get-server-api-url.helper.js' | ||
export { getStringWitCheck } from './get-string-with-check/get-string-with-check.helper.js' | ||
export { initDebounce } from './init-debounce/init-debounce.helper.js' | ||
export { setAsyncTimeout } from './set-async-timeout/set-async-timeout.helper.js' | ||
export { subscribeFocusTrap } from './subscribe-focus-trap/subscribe-focus-trap.helper.js' | ||
export { getFormValues } from 'form-payload' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Http } from './http.package.js' | ||
|
||
let http = new Http() | ||
|
||
export { http } | ||
export { Http } from './http.package.js' | ||
export { HttpMethod } from './libs/enums/enums.js' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Storage } from './storage.package.js' | ||
|
||
let storage = new Storage({ | ||
storage: localStorage, | ||
}) | ||
|
||
export { storage } | ||
export { Storage } from './storage.package.js' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { WhatisloveMath } from './whatislove-math.package.js' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { TimelineApiPath } from './timeline-api-path.enum.js' | ||
export { TimelineSkillType } from './timeline-skill-type.enum.js' | ||
export { TimelineType } from './timeline-type.enum.js' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
let TimelineSkillType = /** @type {const} */ ({ | ||
HARD_SKILL: `hardSkill`, | ||
SOFT_SKILL: `softSkill`, | ||
}) | ||
|
||
export { TimelineSkillType } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { type TimelineType, type TimelineSkillType } from '../enums/enums.js' | ||
|
||
type TimelineFilter = { | ||
skillTypes: Record< | ||
(typeof TimelineSkillType)[keyof typeof TimelineSkillType], | ||
boolean | ||
> | ||
types: Record<(typeof TimelineType)[keyof typeof TimelineType], boolean> | ||
} | ||
|
||
export { type TimelineFilter } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { AppConfig } from '~/libs/enums/enums.js' | ||
import { getServerApiUrl } from '~/libs/helpers/helpers.js' | ||
import { http } from '~/libs/packages/http/http.js' | ||
|
||
import { TimelineApi } from './timeline-api.js' | ||
|
||
/** @typedef {import('./libs/types/types').Timeline} Timeline */ | ||
/** @typedef {import('./libs/types/types').TimelineCreatePayload} TimelineCreatePayload */ | ||
/** @typedef {import('./libs/types/types').TimelineFilter} TimelineFilter */ | ||
|
||
let timelineApi = new TimelineApi({ | ||
baseUrl: getServerApiUrl({ | ||
host: AppConfig.SERVER_HOST, | ||
port: AppConfig.SERVER_PORT, | ||
}), | ||
filesApiPath: AppConfig.FILES_API_PATH, | ||
http, | ||
}) | ||
|
||
export { timelineApi } | ||
export { TimelineSkillType, TimelineType } from './libs/enums/enums.js' | ||
export { TimelineApi } from './timeline-api.js' |