GithubHelp home page GithubHelp logo

health-paps's Introduction

gesg## HELATH PAPS API ๐Ÿ“Œ ์ƒํƒœ๊ด€๋ฆฌ

hp.store.getState(); // data: ๋ฐ์ดํ„ฐ ์ •๋ณด, view: ํŽ˜์ด์ง€ ์ •๋ณด

๐Ÿ“Œ state ๊ฐ’ ์กฐํšŒ data๋ฅผ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ์กฐํšŒ

hp.getState('isLogin'); // true

view๋ฅผ ์กฐํšŒํ•˜๊ณ  ์‹ถ์œผ๋ฉด 2๋ฒˆ์งธ argument์— view๋ฅผ ์ž…๋ ฅ

hp.getState('showAlertOptions', 'view'); // true

๐Ÿ“Œ state ๊ฐ’ ๋ณ€๊ฒฝ

hp.setState('isLogin', false); // false

๐Ÿ“Œ alert

hp.alert('message', Options?);
โžก๏ธ Options
type?: 'alert' | 'confirmAlert'
title?: string
confirm?: string
cancel?: string
color?: 'error' | 'info' | 'success' | 'warning'
callbackFunc?: Function

๐Ÿ“Œ loading

hp.showLoading('message', Options?);
hp.hideLoading(); == hp.showLoading('hide');
โžก๏ธ Options
color?: 'inherit' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning'
disableShrink?: boolean
size?: number | string
thickness?: number

๐Ÿ“Œ page ํŽ˜์ด์ง€ ์ด๋™

hp.showPage(type: 'next' | 'prev);

ํ˜‘์—…

hp = Helth Paps

main color = #66bb6a


๋…ผ์˜

๐Ÿ“Œ ์Šคํƒ€์ผ ํŒŒ์ผ์€ ์–ด๋–ป๊ฒŒ ๊ด€๋ฆฌํ•  ์ง€ ๋‚˜์ค‘์— ์–˜๊ธฐ (/index.tsx)

๐Ÿ“Œ ํ•™์ƒ ๊ฒฐ๊ณผ ์ž…๋ ฅ์ฐฝ ๋„ˆ๋ฌด ์ž‘์Œ UI ์ˆ˜์ • ํ•„์š”ํ• ๋“ฏ (Form/index.tsx)

๐Ÿ“Œ footer๊ฐ€ ํ•„์š”ํ•œ๊ฐ€... ๊ฐค๋Ÿญ์‹œ๋Š” ๋ชจ๋ฅด๊ฒ ๋Š”๋ฐ ์•„์ดํฐ ์‚ฌํŒŒ๋ฆฌ ๊ธฐ์ค€์œผ๋กœ ๋’ค๋กœ๊ฐ€๊ธฐ๋“  ์•ž์œผ๋กœ๊ฐ€๊ธฐ๋“  ๋‹ค ๊ตฌํ˜„๋˜์–ด์žˆ์Œ

๐Ÿ“Œ ๋ฉ”๋‰ด ์•„์ด์ฝ˜ ๋กœ๊ณ  ์ƒ๊ธฐ๋ฉด ์•„๋ž˜๊บผ๋ž‘ ๋ฐ”๊ฟ”์„œ ํด๋ฆญ ์‹œ ํ™ˆ์œผ๋กœ ์ด๋™ ๋ฐ ์ง€๊ธˆ์ฒ˜๋Ÿผ ๋ƒ…๋‘๊ณ  ๋“œ๋กญ๋‹ค์šด์œผ๋กœ ํ•˜๋˜๊ฐ€

--> ํ˜„์žฌ๋Š” ๋กœ๊ณ  ๋ˆ„๋ฅด๋ฉด ํ™ˆ์œผ๋กœ ๊ฐ€๊ฒŒ ์„ค์ •ํ•ด๋†ˆ. ๋‹จ, ์ž…๋ ฅ ํŽ˜์ด์ง€ ๊ฐ™์€ ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž๊ฐ€ ์ž…๋ ฅํ•œ ๊ฐ’์ด ์žˆ๋‹ค๋ผ๊ณ  ํ•˜๋ฉด, ์•Œ๋ฆผ์ฐฝ ๋„์›Œ์„œ '์ด๋™ํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?' ํ•ด์•ผ๋ ๋“ฏ

health-paps's People

Contributors

cshoon95 avatar kimbigmin avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.