repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
webilix/regex-library
src/test/json-date.test.ts
<filename>src/test/json-date.test.ts<gh_stars>0 import { rxJsonDate } from '../regex'; import { testFind, testReplace, testVerify } from './_'; const valid: string[] = ['2000-01-01T00:00:00.000Z']; const invalid: string[] = ['2000-01-01 00:00:00', '2000-01-01T00:00:00.000', '2000-01-01T00:00:00Z']; testVerify('JSON D...
webilix/regex-library
src/method.ts
export const get = (pattern: string, fullLine: boolean = true, flags?: string): RegExp => fullLine ? new RegExp(`^${pattern}$`, flags) : new RegExp(pattern, flags); export const verify = (pattern: string, text: string, flags?: string): boolean => get(pattern, true, flags).test(text); export const find = (pattern:...
webilix/regex-library
src/lib/domain.ts
import { find, get, replace, verify } from '../method'; import { rxDomain } from '../regex'; export const DOMAIN = { get: (fullLine: boolean = true, flags?: string): RegExp => get(rxDomain, fullLine, flags), verify: (text: string): boolean => verify(rxDomain, text), find: (text: string): string[] => find...
webilix/regex-library
dist/test/json-date.test.d.ts
<reponame>webilix/regex-library export {}; //# sourceMappingURL=json-date.test.d.ts.map
webilix/regex-library
dist/index.d.ts
export declare const RegX: { DATE: { get: (fullLine?: boolean, flags?: string | undefined) => RegExp; verify: (text: string) => boolean; find: (text: string) => string[]; replace: (text: string, replaceWith?: string) => string; }; DOMAIN: { get: (fullLine?: boolean, f...
webilix/regex-library
src/regex.ts
<reponame>webilix/regex-library export const rxDate: string = `[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])`; export const rxTime: string = `([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]`; export const rxJsonDate: string = rxDate + `T` + rxTime + `.[0-9][0-9][0-9]Z`; export const rxEmail: string = `(([^<>()[\\]\...
webilix/regex-library
dist/method.d.ts
<filename>dist/method.d.ts export declare const get: (pattern: string, fullLine?: boolean, flags?: string | undefined) => RegExp; export declare const verify: (pattern: string, text: string, flags?: string | undefined) => boolean; export declare const find: (pattern: string, text: string, flags?: string | undefined) =>...
webilix/regex-library
src/test/url.test.ts
import { rxUrl } from '../regex'; import { testFind, testReplace, testVerify } from './_'; const valid: string[] = [ 'http://domain.com', 'https://domain.co.com', 'http://www.dd.com/', 'https://d.co/', 'https://d.c.co/', ]; const invalid: string[] = ['http//domain.com', 'http:domain.com', 'domain.c...
webilix/regex-library
dist/test/domain.test.d.ts
<filename>dist/test/domain.test.d.ts export {}; //# sourceMappingURL=domain.test.d.ts.map
webilix/regex-library
dist/lib/username.d.ts
export declare const USERNAME: { get: (length?: number, useDash?: boolean, useDot?: boolean, fullLine?: boolean, flags?: string | undefined) => RegExp; verify: (text: string, length?: number, useDash?: boolean, useDot?: boolean) => boolean; }; //# sourceMappingURL=username.d.ts.map
webilix/regex-library
dist/test/username.test.d.ts
<reponame>webilix/regex-library<filename>dist/test/username.test.d.ts export {}; //# sourceMappingURL=username.test.d.ts.map
webilix/regex-library
src/test/time.test.ts
<filename>src/test/time.test.ts<gh_stars>0 import { rxTime } from '../regex'; import { testFind, testReplace, testVerify } from './_'; const valid: string[] = ['00:00:00', '23:59:59']; const invalid: string[] = ['24:00:00', '00:60:60', '00:00:60', '00:0:00', '00:00:0']; testVerify('TIME', rxTime, valid, invalid); tes...
webilix/regex-library
src/test/date.test.ts
import { rxDate } from '../regex'; import { testFind, testReplace, testVerify } from './_'; const valid: string[] = ['1800-01-01', '1900-01-01', '2000-01-01', '2100-01-01', '0000-01-01', '9999-12-31']; const invalid: string[] = ['2000-00-01', '2000-13-01', '2000-1-01', '2000-01-00', '2000-01-32', '2000-01-1']; testVe...
webilix/regex-library
src/test/username.test.ts
import { rxUsername } from '../regex'; import { testVerify } from './_'; const valid: string[] = ['username', 'user1.-name']; const invalid: string[] = ['ur', 'username1', '.username', 'username.', 'username-']; testVerify('USERNAME', rxUsername(), valid, invalid); testVerify('USERNAME', rxUsername(5, false, false), ...
webilix/regex-library
dist/test/time.test.d.ts
export {}; //# sourceMappingURL=time.test.d.ts.map
webilix/regex-library
src/lib/numeric.ts
import { find, get, replace, verify } from '../method'; import { rxNumeric } from '../regex'; export const NUMERIC = { get: (minLength?: number, maxLength?: number, fullLine: boolean = true, flags?: string): RegExp => get(rxNumeric(minLength, maxLength), fullLine, flags), verify: (text: string, minLen...
webilix/regex-library
dist/test/password.test.d.ts
export {}; //# sourceMappingURL=password.test.d.ts.map
webilix/regex-library
src/test/ip4.test.ts
import { rxIP4 } from '../regex'; import { testFind, testReplace, testVerify } from './_'; const valid: string[] = ['127.0.0.1', '0.0.0.0', '255.255.255.255']; const invalid: string[] = ['a.0.0.0', '0.a.0.0', '0.0.a.0', '0.0.0.a', '0.256.0.0', '0.0.256.0']; testVerify('IP4', rxIP4, valid, invalid); testFind('IP4', rx...
webilix/regex-library
src/test/numeric.test.ts
import { rxNumeric } from '../regex'; import { testFind, testReplace, testVerify } from './_'; const valid: string[] = ['100', '010', '20000000']; const invalid: string[] = ['S', 'S100', '100S', '+100', '-100', '100.00']; testVerify('NUMERIC', rxNumeric(), valid, invalid); testVerify('NUMERIC', rxNumeric(4), ['4444',...
webilix/regex-library
dist/test/email.test.d.ts
<filename>dist/test/email.test.d.ts<gh_stars>0 export {}; //# sourceMappingURL=email.test.d.ts.map
webilix/regex-library
src/test/mobile.test.ts
<filename>src/test/mobile.test.ts import { rxMobile } from '../regex'; import { testFind, testReplace, testVerify } from './_'; const valid: string[] = ['09123456789', '0912 345 6789', '0912-345-6789']; const invalid: string[] = ['0912345678', '9123456789', '+989123456789']; testVerify('MOBILE', rxMobile, valid, inva...
webilix/regex-library
dist/test/numeric.test.d.ts
<reponame>webilix/regex-library export {}; //# sourceMappingURL=numeric.test.d.ts.map
webilix/regex-library
dist/lib/time.d.ts
export declare const TIME: { get: (fullLine?: boolean, flags?: string | undefined) => RegExp; verify: (text: string) => boolean; find: (text: string) => string[]; replace: (text: string, replaceWith?: string) => string; }; //# sourceMappingURL=time.d.ts.map
webilix/regex-library
dist/test/url.test.d.ts
<gh_stars>0 export {}; //# sourceMappingURL=url.test.d.ts.map
webilix/regex-library
src/test/password.test.ts
<reponame>webilix/regex-library import { rxPassword } from '../regex'; import { testVerify } from './_'; const valid: string[] = ['AAAaaa111']; const invalid: string[] = ['Aa1', 'AAAAAAAA', 'aaaaaaaa', '11111111']; testVerify('PASSWORD', rxPassword(), valid, invalid); testVerify('PASSWORD', rxPassword(4), ['Aa1.'], i...
webilix/regex-library
src/lib/date.ts
import { find, get, replace, verify } from '../method'; import { rxDate } from '../regex'; export const DATE = { get: (fullLine: boolean = true, flags?: string): RegExp => get(rxDate, fullLine, flags), verify: (text: string): boolean => verify(rxDate, text), find: (text: string): string[] => find(rxDate,...
webilix/regex-library
dist/regex.d.ts
<reponame>webilix/regex-library export declare const rxDate: string; export declare const rxTime: string; export declare const rxJsonDate: string; export declare const rxEmail: string; export declare const rxMobile: string; export declare const rxNumeric: (minLength?: number | undefined, maxLength?: number | undefined)...
webilix/regex-library
src/test/domain.test.ts
import { rxDomain } from '../regex'; import { testFind, testReplace, testVerify } from './_'; const valid: string[] = ['domain.com', 'domain.co.com', 'www.dd.com', 'd.com', 'd.co']; const invalid: string[] = ['d.c', 'www.']; testVerify('DOMAIN', rxDomain, valid, invalid); testFind('DOMAIN', rxDomain, valid, invalid);...
webilix/regex-library
src/index.ts
import { DATE } from './lib/date'; import { DOMAIN } from './lib/domain'; import { EMAIL } from './lib/email'; import { IP4 } from './lib/ip4'; import { JSON_DATE } from './lib/json-date'; import { MOBILE } from './lib/mobile'; import { NUMERIC } from './lib/numeric'; import { PASSWORD } from './lib/password'; import {...
webilix/regex-library
dist/lib/numeric.d.ts
<reponame>webilix/regex-library<filename>dist/lib/numeric.d.ts export declare const NUMERIC: { get: (minLength?: number | undefined, maxLength?: number | undefined, fullLine?: boolean, flags?: string | undefined) => RegExp; verify: (text: string, minLength?: number | undefined, maxLength?: number | undefined) =...
webilix/regex-library
dist/test/_.d.ts
export declare const testVerify: (title: string, pattern: string, valid: string[], invalid: string[]) => void; export declare const testFind: (title: string, pattern: string, valid: string[], invalid: string[]) => void; export declare const testReplace: (title: string, pattern: string, valid: string[], invalid: string[...
deokgoo/project-2021_mandala_plan
src/pages/main/hooks/type.ts
export enum viewTypeEnum { 'mobile', 'web', };
deokgoo/project-2021_mandala_plan
src/redux/mandala/hooks/use-mandala-unit-update.ts
<filename>src/redux/mandala/hooks/use-mandala-unit-update.ts import { useDispatch } from 'react-redux'; import { updateCoreUnit, updateCoreSideUnit, updateUnit } from '../actions'; import { mandalaStatusType, mandalaUnitType } from '../reducer/type'; const useMandalaUnitUpdate = ({isCore, dreamNum=null, unitNum=null}:...
deokgoo/project-2021_mandala_plan
src/components/mandala-web-dream/index.tsx
import MandalaWebDream from './mandala-web-dream'; export default MandalaWebDream
deokgoo/project-2021_mandala_plan
src/pages/main-web/hooks/use-main-web.ts
import { useState } from 'react'; import { mandalaStatusType } from '../../../redux/mandala/reducer/type'; const useMainWeb = () => { const [select, setSelect] = useState<mandalaStatusType>({ isCore: true }); const updateSelect = (payload: mandalaStatusType) => { // updateSelect setSelect(payload); ...
deokgoo/project-2021_mandala_plan
src/components/mandala-web/mandala-web.tsx
import React from 'react'; import styles from './mandala-web.module.scss'; import useMandalaSelector from './hooks/use-mandala-web'; import MandalaWebDream from '../mandala-web-dream'; const MandalaWeb = () => { const {mandalaData} = useMandalaSelector(); const renderDreamContainer = () => { return [ <Ma...
deokgoo/project-2021_mandala_plan
src/components/mandala-web/hooks/use-mandala-web.ts
import { stateType } from '../../../redux/mandala/reducer/type'; import { useSelector } from 'react-redux'; import { globalReducerType } from '../../../redux/type'; const useMandalaWeb = () => { const mandalaData: stateType = useSelector((state: globalReducerType) => state.mandalaReducer); return { mandalaData...
deokgoo/project-2021_mandala_plan
src/components/mandala-web-unit/type.ts
<reponame>deokgoo/project-2021_mandala_plan import { mandalaStatusType, mandalaUnitType } from '../../redux/mandala/reducer/type'; export interface propsType { unitState: mandalaStatusType; unitData: mandalaUnitType; }
deokgoo/project-2021_mandala_plan
src/redux/mandala/hooks/use-mandala-local.ts
import { useDispatch, useStore } from 'react-redux'; import { updateMandalaData } from '../actions'; const useMandalaLocal = () => { const store = useStore(); const dispatch = useDispatch(); const storeData = () => { localStorage.setItem('mandala', JSON.stringify(store.getState())); } const loadData = ...
deokgoo/project-2021_mandala_plan
src/redux/store.ts
import { createStore, applyMiddleware, compose } from 'redux'; import middleware from './middleware'; import globalReducer from './reducer'; const composeEnhancers = typeof window === 'object' && (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}) : com...
deokgoo/project-2021_mandala_plan
src/pages/main-web/main-web.tsx
import React from 'react'; import Header from '../../components/header'; import MandalaWeb from '../../components/mandala-web'; import styles from './main-web.module.scss'; import SettingWeb from '../../components/setting-web'; const MainWeb = () => { return ( <> <Header /> <div className={styles.con...
deokgoo/project-2021_mandala_plan
src/router/index.tsx
import React from 'react'; import { BrowserRouter, Switch, Route, } from 'react-router-dom'; import Main from '../pages/main'; const Router = () => { return ( <BrowserRouter> <Switch> <Route exact={true} path="/" component={Main}/> </Switch> </BrowserRouter> ); } export default R...
deokgoo/project-2021_mandala_plan
src/pages/main/hooks/index.ts
<filename>src/pages/main/hooks/index.ts import UseMain from './use-main'; export default UseMain;
deokgoo/project-2021_mandala_plan
src/redux/mandala/actions/type.ts
export const UPDATE_CORE_UNIT = 'UPDATE_CORE_UNIT'; export const UPDATE_CORE_SIDE_UNIT = 'UPDATE_CORE_SIDE_UNIT'; export const UPDATE_UNIT = 'UPDATE_UNIT'; export const UPDATE_CURRENT_UNIT = 'UPDATE_CURRENT_UNIT'; export const UPDATE_MANDALA_DATA = 'UPDATE_MANDALA_DATA';
deokgoo/project-2021_mandala_plan
src/pages/main/hooks/use-main.test.ts
import { unmountComponentAtNode } from 'react-dom'; import { renderHook } from '@testing-library/react-hooks'; import useMain from './use-main'; import { act } from 'react-dom/test-utils'; import { viewTypeEnum } from './type'; let container: null | HTMLElement = null; beforeEach(() => { container = document.create...
deokgoo/project-2021_mandala_plan
src/components/UI/molecules/minimap/minimap.tsx
<gh_stars>0 import React from 'react'; import styles from './minimap.module.scss' const Minimap = (props: any) => { return ( <div className={styles.minimap}> minimap </div> ); }; export default Minimap;
deokgoo/project-2021_mandala_plan
src/redux/mandala/reducer/type.ts
<reponame>deokgoo/project-2021_mandala_plan export type unitNumType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; export type mandalaUnitType = { title: string, description: string }; export type mandalaDreamType = { core: mandalaUnitType; side: dreamType }; export type dreamType = [ mandalaUnitType, mandalaUnitType, manda...
deokgoo/project-2021_mandala_plan
src/components/setting-web/hooks/index.ts
<gh_stars>0 import useSettingWeb from './use-setting-web'; export default useSettingWeb;
deokgoo/project-2021_mandala_plan
src/components/UI/organisms/mobile-main/index.tsx
<reponame>deokgoo/project-2021_mandala_plan import mobileMain from "./mobile-main"; export default mobileMain;
deokgoo/project-2021_mandala_plan
src/components/UI/molecules/minimap/index.tsx
import Minimap from './minimap'; export default Minimap;
deokgoo/project-2021_mandala_plan
src/components/mandala-web-unit/index.tsx
<gh_stars>0 import MandalaWebUnit from './mandala-web-unit'; export default MandalaWebUnit;
deokgoo/project-2021_mandala_plan
src/components/UI/molecules/mandala-mobile/index.tsx
<reponame>deokgoo/project-2021_mandala_plan<filename>src/components/UI/molecules/mandala-mobile/index.tsx import MandalaMobile from './mandala-mobile'; export default MandalaMobile;
deokgoo/project-2021_mandala_plan
src/redux/mandala/hooks/type.ts
<reponame>deokgoo/project-2021_mandala_plan<gh_stars>0 import { MutableRefObject } from 'react'; export interface refsType { titleRef: MutableRefObject<HTMLInputElement|null>; descriptionRef: MutableRefObject<HTMLInputElement|null>; }
deokgoo/project-2021_mandala_plan
src/components/setting-web/setting-web.tsx
<filename>src/components/setting-web/setting-web.tsx<gh_stars>0 import React, { FormEvent } from 'react'; import styles from './setting-web.module.scss'; import useSettingWeb from './hooks'; import useMandalaUnitUpdate from '../../redux/mandala/hooks/use-mandala-unit-update'; import useMandalaCurrentUnit from '../../re...
deokgoo/project-2021_mandala_plan
src/pages/main-mobile/main-mobile.tsx
import React from 'react'; import Header from '../../components/header'; import MobileMain from '../../components/UI/organisms/mobile-main'; const MainMobile = () => { return ( <> <Header /> <MobileMain /> </> ); }; export default MainMobile;
deokgoo/project-2021_mandala_plan
src/components/mandala-web/index.tsx
<reponame>deokgoo/project-2021_mandala_plan import MandalaWeb from './mandala-web'; export default MandalaWeb;
deokgoo/project-2021_mandala_plan
src/components/mandala-web/hooks/use-mandala-web.test.ts
import useMandalaWeb from './use-mandala-web'; import { renderHook } from '@testing-library/react-hooks'; const mandalaState = { dreamCore: { core: {title: 'testCore', description: 'test...'}, side: [ {title: 'testSide1', description: 'testSide1 test...'}, {title: 'testSide2', description: 'testS...
deokgoo/project-2021_mandala_plan
src/components/header/header.tsx
import React, { memo } from 'react'; import styles from './header.module.scss'; const Header = memo(() => { return ( <header className={styles.header}> <div className={styles.title}>plan your dream</div> <div className={styles.login}>login</div> </header> ); }); export default Header;
deokgoo/project-2021_mandala_plan
src/redux/mandala/hooks/use-mandala-dream-selector.ts
<reponame>deokgoo/project-2021_mandala_plan<gh_stars>0 import { useStore } from 'react-redux'; import { useEffect, useState } from 'react'; import { dreamType, mandalaDreamType, mandalaStatusType, mandalaUnitType, stateType as mandalaStoreState } from '../reducer/type'; const useMandalaDreamSelector = ({isCo...
deokgoo/project-2021_mandala_plan
src/pages/main-web/hooks/index.ts
import useMainWeb from './use-main-web'; export default useMainWeb;
deokgoo/project-2021_mandala_plan
src/pages/main/main.tsx
import React from 'react'; import UseMain from './hooks'; import MainWeb from '../main-web'; import MainMobile from '../main-mobile'; import { viewTypeEnum } from './hooks/type'; const Main = () => { const { windowViewType } = UseMain(); return (windowViewType===viewTypeEnum.web ? <MainWeb /> : <MainMobile /> ) } ...
deokgoo/project-2021_mandala_plan
src/pages/main-mobile/index.tsx
import MainMobile from './main-mobile'; export default MainMobile;
deokgoo/project-2021_mandala_plan
src/components/setting-web/index.tsx
import SettingWeb from './setting-web'; export default SettingWeb;
deokgoo/project-2021_mandala_plan
src/redux/mandala/hooks/use-mandala-unit-selector.ts
import { useStore } from 'react-redux'; import { useEffect, useState } from 'react'; import { mandalaStatusType, mandalaUnitType, stateType as mandalaStoreState } from '../reducer/type'; const useMandalaUnitSelector = ({isCore, dreamNum, unitNum}: mandalaStatusType) => { const store = useStore(); const [initialDat...
deokgoo/project-2021_mandala_plan
src/components/mandala-web-dream/mandala-web-dream.tsx
<gh_stars>0 import React from 'react'; import styles from './mandala-web-dream.module.scss'; import MandalaWebUnit from '../mandala-web-unit'; import { propsType } from './type'; const MandalaWebDream = ({dreamData, dreamStatus}: propsType) => { const renderUnitContainer = () => { return [ <MandalaWebUnit ...
deokgoo/project-2021_mandala_plan
src/redux/reducer.ts
<gh_stars>0 import { combineReducers } from 'redux'; import mandalaReducer from './mandala/reducer'; export default combineReducers({ mandalaReducer });
deokgoo/project-2021_mandala_plan
src/components/mandala-web/hooks/index.ts
<filename>src/components/mandala-web/hooks/index.ts import useMandalaWeb from './use-mandala-web'; export default useMandalaWeb;
deokgoo/project-2021_mandala_plan
src/components/UI/molecules/mandala-mobile/mandala-mobile.tsx
import React from 'react'; import MandalaUnitMobile from '../mandala-unit-mobile'; import Arrow from '../arrow'; import styles from './mandala-mobile.module.scss'; const MandalaMobile = (props: any) => { const renderMandalaMobile = () => { let renderResult = []; for(let i = 0; i < 9; i++) { renderResul...
deokgoo/project-2021_mandala_plan
src/components/templates/mobile-template/index.tsx
<filename>src/components/templates/mobile-template/index.tsx import MobileTemplate from './mobile-template'; export default MobileTemplate;
deokgoo/project-2021_mandala_plan
src/pages/main-web/index.tsx
import MainWeb from './main-web'; export default MainWeb;
deokgoo/project-2021_mandala_plan
src/redux/mandala/reducer/index.ts
<reponame>deokgoo/project-2021_mandala_plan<filename>src/redux/mandala/reducer/index.ts<gh_stars>0 import { UPDATE_CORE_SIDE_UNIT, UPDATE_CORE_UNIT, UPDATE_CURRENT_UNIT, UPDATE_MANDALA_DATA, UPDATE_UNIT, } from '../actions/type'; import { AnyAction } from 'redux'; import initialState from './initialState'; im...
deokgoo/project-2021_mandala_plan
src/components/setting-web/hooks/use-setting-web.ts
import { useRef } from 'react'; const useSettingWeb = () => { const refs = { titleRef: useRef<HTMLInputElement>(null), descriptionRef: useRef<HTMLInputElement>(null), themeRef: useRef<HTMLInputElement>(null), } return { refs, } } export default useSettingWeb;
deokgoo/project-2021_mandala_plan
src/pages/main/hooks/use-main.ts
import { useEffect, useState } from 'react'; import { viewTypeEnum } from './type'; const getWindowDimensions = () => { const {innerWidth: width, innerHeight: height} = window; return { width, height }; } const useMain = () => { const mobileWidth = 690; const [windowViewType, setWindowViewType] = us...
deokgoo/project-2021_mandala_plan
src/components/UI/molecules/mandala-form/mandala-form.tsx
<gh_stars>0 import React from 'react'; import styles from './mandala-form.module.scss'; const MandalaForm = (props: any) => { return ( <div className={styles.container}> <div className={styles.titleInputContainer}> <input className={styles.titleInput} type="text" /> </div> <div classNa...
deokgoo/project-2021_mandala_plan
src/redux/mandala/actions/index.ts
import { UPDATE_CORE_UNIT, UPDATE_CORE_SIDE_UNIT, UPDATE_UNIT, UPDATE_CURRENT_UNIT, UPDATE_MANDALA_DATA, } from './type'; import { mandalaStatusType } from '../reducer/type'; export const updateCoreUnit = (title: string, description: string) => ({ type: UPDATE_CORE_UNIT, payload: { title, description...
deokgoo/project-2021_mandala_plan
src/components/UI/molecules/mandala-unit-mobile/index.tsx
import MandalaUnitMobile from './mandala-unit-mobile'; export default MandalaUnitMobile;
deokgoo/project-2021_mandala_plan
src/components/UI/molecules/mandala-unit-mobile/mandala-unit-mobile.tsx
import React from 'react'; import style from './mandala-unit-mobile.module.scss'; const MandalaUnitMobile = (props: any) => { return ( <div className={style.container}> text </div> ); }; export default MandalaUnitMobile;
deokgoo/project-2021_mandala_plan
src/components/UI/organisms/mobile-main/mobile-main.tsx
import React from 'react'; import Minimap from '../../molecules/minimap'; import MandalaMobile from '../../molecules/mandala-mobile'; import MandalaForm from '../../molecules/mandala-form'; const MobileMain = (props: any) => { return ( <main> <Minimap /> <MandalaMobile /> <MandalaForm /> </...
deokgoo/project-2021_mandala_plan
src/components/templates/mobile-template/mobile-template.tsx
import React from 'react'; import Header from '../../header'; import MobileMain from '../../UI/organisms/mobile-main'; const MobileTemplate = (props: any) => { return ( <> <Header /> <MobileMain /> </> ); }; export default MobileTemplate;
deokgoo/project-2021_mandala_plan
src/redux/type.ts
import { stateType as mandalaStateType } from './mandala/reducer/type'; export interface globalReducerType { mandalaReducer: mandalaStateType }
deokgoo/project-2021_mandala_plan
src/components/UI/molecules/arrow/arrow.tsx
import React from 'react'; import styles from './arrow.module.scss'; const Arrow = (props: any) => { return ( <> <div className={styles.container}> <img src="" alt="arrow"/> </div> </> ); }; export default Arrow;
deokgoo/project-2021_mandala_plan
src/redux/mandala/hooks/use-mandala-current-unit.ts
<filename>src/redux/mandala/hooks/use-mandala-current-unit.ts import { useDispatch, useSelector } from 'react-redux'; import { mandalaStatusType, themesType } from '../reducer/type'; import { updateCurrentUnit } from '../actions'; import { useCallback, useEffect, useState } from 'react'; import { globalReducerType } fr...
deokgoo/project-2021_mandala_plan
src/components/UI/molecules/mandala-form/index.tsx
import MandalaForm from './mandala-form'; export default MandalaForm;
deokgoo/project-2021_mandala_plan
src/components/header/header.test.tsx
<reponame>deokgoo/project-2021_mandala_plan import { render, unmountComponentAtNode } from 'react-dom'; import { act } from 'react-dom/test-utils'; import Header from './header'; let container: null | HTMLElement = null; beforeEach(() => { // setup a DOM element as a render target container = document.createEleme...
deokgoo/project-2021_mandala_plan
src/components/mandala-web-unit/mandala-web-unit.tsx
import React from 'react'; import styles from './mandala-web-unit.module.scss'; import useMandalaCurrentUnit from '../../redux/mandala/hooks/use-mandala-current-unit'; import { propsType } from './type'; const MandalaWebUnit = ({unitState, unitData}: propsType) => { const { updateCurrentState } = useMandalaCurrentUn...
deokgoo/project-2021_mandala_plan
src/components/mandala-web-dream/type.ts
import { mandalaStatusType, unitType } from '../../redux/mandala/reducer/type'; export interface propsType { dreamData: unitType; dreamStatus: mandalaStatusType; }
deokgoo/project-2021_mandala_plan
src/redux/mandala/reducer/initialState.ts
<filename>src/redux/mandala/reducer/initialState.ts import { stateType } from './type'; import styles from './style.module.scss'; const initialState: stateType = { dreamCore: { core: {title: 'coreTitle', description: 'coreDescription'}, side: [ {title: '', description: ''}, {title: '', descriptio...
forrl/typescript-error-reporter-action
src/index.ts
import Module from 'module' import * as path from 'path' import * as fs from 'fs' import { getInput, setFailed } from '@actions/core' import { reporter } from './reporter' import type { CompilerOptions, Diagnostic, ParsedCommandLine } from "typescript" type TS = typeof import('typescript') async function main() { t...
forrl/typescript-error-reporter-action
src/reporter.ts
<reponame>forrl/typescript-error-reporter-action import type { Diagnostic } from 'typescript' import { issueCommand } from '@actions/core/lib/command' type TS = typeof import('typescript') export const reporter = (ts:TS) => (diagnostic:Diagnostic) => { switch (diagnostic.category) { case ts.DiagnosticCategory.Er...
jbwyme/action-destinations
packages/destination-actions/src/destinations/braze/index.ts
<reponame>jbwyme/action-destinations import type { DestinationDefinition } from '@segment/actions-core' import type { Settings } from './generated-types' import { defaultValues } from '@segment/actions-core' import updateUserProfile from './updateUserProfile' import trackEvent from './trackEvent' import trackPurchase f...
jbwyme/action-destinations
packages/destination-actions/src/destinations/amplitude/__tests__/user-agent.test.ts
<reponame>jbwyme/action-destinations<filename>packages/destination-actions/src/destinations/amplitude/__tests__/user-agent.test.ts import { parseUserAgentProperties } from '../user-agent' describe('amplitude - custom user agent parsing', () => { it('should parse custom user agent', () => { //This is borrowed fro...
jbwyme/action-destinations
packages/browser-destinations/src/destinations/fullstory/event/index.ts
import type { BrowserActionDefinition } from '../../../lib/browser-destinations' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' import * as FullStory from '@fullstory/browser' const action: BrowserActionDefinition<Settings, typeof FullStory, Payload> = { title: 'E...
jbwyme/action-destinations
packages/browser-destinations/src/destinations/intercom/initialize.ts
<gh_stars>0 /* eslint-disable @typescript-eslint/ban-ts-comment */ import { loadScript } from '../../runtime/load-script' import { resolveWhen } from '../../runtime/resolve-when' import { Settings } from './generated-types' import { InitializeOptions } from '../../lib/browser-destinations' async function load(appId: s...
jbwyme/action-destinations
packages/browser-destinations/src/destinations/intercom/index.ts
<reponame>jbwyme/action-destinations import type { Settings } from './generated-types' import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' import { browserDestination } from '../../runtime/shim' import { initialize } from './initialize' import show from './show' export const destination:...
jbwyme/action-destinations
packages/destination-actions/src/destinations/customerio/trackEvent/index.ts
import type { ActionDefinition } from '@segment/actions-core' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' const action: ActionDefinition<Settings, Payload> = { title: 'Track Event', description: 'Track an event for a known person.', defaultSubscription: 'ty...
jbwyme/action-destinations
packages/destination-actions/src/destinations/google-enhanced-conversions/postConversion/generated-types.ts
<reponame>jbwyme/action-destinations<gh_stars>0 // Generated file. DO NOT MODIFY IT BY HAND. export interface Payload { /** * The Google Ads conversion label. You can find this value from your Google Ads event snippet. The provided event snippet should have, for example, `send_to: AW-123456789/AbC-D_efG-h12_34-56...
jbwyme/action-destinations
packages/destination-actions/src/destinations/amplitude/event-schema.ts
import { InputField } from '@segment/actions-core' /** * The common fields defined by Amplitude's events api * @see {@link https://developers.amplitude.com/docs/http-api-v2#keys-for-the-event-argument} */ export const eventSchema: Record<string, InputField> = { user_id: { label: 'User ID', type: 'string',...
jbwyme/action-destinations
packages/core/src/__tests__/schema-validation.test.ts
import { validateSchema } from '../schema-validation' import { fieldsToJsonSchema } from '../destination-kit/fields-to-jsonschema' const schema = fieldsToJsonSchema({ a: { label: 'a', type: 'string' }, b: { label: 'b', type: 'object' }, c: { label: 'c', type: 'object', properties:...
jbwyme/action-destinations
packages/destination-actions/src/destinations/amplitude/groupIdentifyUser/generated-types.ts
<gh_stars>0 // Generated file. DO NOT MODIFY IT BY HAND. export interface Payload { /** * A UUID (unique user ID) specified by you. **Note:** If you send a request with a user ID that is not in the Amplitude system yet, then the user tied to that ID will not be marked new until their first event. Required unless ...
jbwyme/action-destinations
packages/cli/src/lib/web-bundles.ts
import execa from 'execa' export function webBundles(): string[] { const command = 'ls packages/browser-destinations/dist/web/' const files = execa.commandSync(command).stdout return files.split('\n') }