muin_frontend's People
Forkers
2kyung19muin_frontend's Issues
feature : tab navigation
- tab 1 : qr checkin
- tab 2 : store
- tab 3 : manage (only manager)
feature : web layout
- sign in
- sign up
- home
- stock CRUD
- payment history
feature : tOTP
- QR용 tOTP 생성
feature : get geolocation
- user location
feature : QR code
- 입장을 위한 QR code 생성
feature : login
QR.tsx 동작 방식 질문
your code : https://github.com/mu-in/muin_FrontEnd/blob/main/components/QR.tsx
import React, { ReactElement, useState, useEffect } from 'react';
import QRCode from 'react-native-qrcode-svg';
import RNTotp from 'react-native-totp';
function QR(): ReactElement {
const [token, setToken] = useState('-');
useEffect(() => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const generate = setInterval(() => {
RNTotp.generateOTP(
{
base32String: 'a225f3b3-6ba2-4da1-b14a-1bb691cabf79', //<--------- HERE
digits: 8,
period: 5,
},
(code) => {
setToken(code);
}
);
}, 5000);
}, [token]);
return <QRCode value={token} />;
}
export default QR;
base32String
: 고정된 값인가? 어떤 값을 넣은 것인가? 저런 타입의 String을 base32 String이라 하는가?digits
: 무엇인가?period
: 5sec의 유효기간인가?
feature : app layout
- home -> auth manager
- store -> store info
- manage -> manage home -> manage stock / transaction history
feature : QR
feature : react navigation
- app navigation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.