firts commit
31
.gitignore
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
*.local
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.vscode/*
|
||||||
|
.cursor/*
|
||||||
|
!.vscode/extensions.json
|
||||||
|
.idea
|
||||||
|
.DS_Store
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
|
|
||||||
|
# lock 파일 업데이트 방지
|
||||||
|
pnpm-lock.yaml
|
||||||
|
package-lock.json
|
||||||
|
yarn.lock
|
||||||
|
tsconfig.node.tsbuildinfo
|
||||||
73
README.md
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
# Getting Started with Create React App
|
||||||
|
|
||||||
|
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
||||||
|
|
||||||
|
## Available Scripts
|
||||||
|
|
||||||
|
In the project directory, you can run:
|
||||||
|
|
||||||
|
### `npm start`
|
||||||
|
|
||||||
|
Runs the app in the development mode.\
|
||||||
|
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
|
||||||
|
|
||||||
|
The page will reload when you make changes.\
|
||||||
|
You may also see any lint errors in the console.
|
||||||
|
|
||||||
|
### `npm test`
|
||||||
|
|
||||||
|
Launches the test runner in the interactive watch mode.\
|
||||||
|
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
||||||
|
|
||||||
|
### `npm run build`
|
||||||
|
|
||||||
|
Builds the app for production to the `build` folder.\
|
||||||
|
It correctly bundles React in production mode and optimizes the build for the best performance.
|
||||||
|
|
||||||
|
The build is minified and the filenames include the hashes.\
|
||||||
|
Your app is ready to be deployed!
|
||||||
|
|
||||||
|
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
||||||
|
|
||||||
|
### `npm run eject`
|
||||||
|
|
||||||
|
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
|
||||||
|
|
||||||
|
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
||||||
|
|
||||||
|
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
|
||||||
|
|
||||||
|
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
|
||||||
|
|
||||||
|
## Learn More
|
||||||
|
|
||||||
|
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
||||||
|
|
||||||
|
To learn React, check out the [React documentation](https://reactjs.org/).
|
||||||
|
|
||||||
|
### Code Splitting
|
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
|
||||||
|
|
||||||
|
### Analyzing the Bundle Size
|
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
|
||||||
|
|
||||||
|
### Making a Progressive Web App
|
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
|
||||||
|
|
||||||
|
### Advanced Configuration
|
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
|
||||||
|
|
||||||
|
### Deployment
|
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
|
||||||
|
|
||||||
|
### `npm run build` fails to minify
|
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||||
|
|
||||||
|
|
||||||
|
# 2022-07-19 hwkim start
|
||||||
59
package.json
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
{
|
||||||
|
"name": "start-areact-app",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@testing-library/jest-dom": "^5.16.1",
|
||||||
|
"@testing-library/react": "^12.1.2",
|
||||||
|
"@testing-library/user-event": "^13.5.0",
|
||||||
|
"axios": "^0.27.2",
|
||||||
|
"chart.js": "^3.9.1",
|
||||||
|
"chartjs-plugin-zoom": "^1.2.1",
|
||||||
|
"cors": "^2.8.5",
|
||||||
|
"echarts": "^5.4.0",
|
||||||
|
"echarts-for-react": "^3.0.2",
|
||||||
|
"express": "^4.18.1",
|
||||||
|
"immutability-helper": "^3.1.1",
|
||||||
|
"mssql": "^7.3.5",
|
||||||
|
"react": "^17.0.2",
|
||||||
|
"react-beautiful-dnd": "^13.1.0",
|
||||||
|
"react-chartjs-2": "^4.3.1",
|
||||||
|
"react-device-detect": "^2.2.2",
|
||||||
|
"react-dnd": "^16.0.1",
|
||||||
|
"react-dnd-html5-backend": "^16.0.1",
|
||||||
|
"react-dom": "^17.0.2",
|
||||||
|
"react-router-dom": "^5.3.3",
|
||||||
|
"react-scripts": "^5.0.1",
|
||||||
|
"react-slide-toggle": "^0.3.5",
|
||||||
|
"react-spinners": "^0.13.4",
|
||||||
|
"react-wordcloud": "^1.2.7",
|
||||||
|
"recoil": "^0.7.4",
|
||||||
|
"recoil-persist": "^4.2.0",
|
||||||
|
"redux": "^4.1.2",
|
||||||
|
"web-vitals": "^2.1.4"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"start": "react-scripts start",
|
||||||
|
"build": "react-scripts build",
|
||||||
|
"test": "react-scripts test",
|
||||||
|
"eject": "react-scripts eject"
|
||||||
|
},
|
||||||
|
"eslintConfig": {
|
||||||
|
"extends": [
|
||||||
|
"react-app",
|
||||||
|
"react-app/jest"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"browserslist": {
|
||||||
|
"production": [
|
||||||
|
">0.2%",
|
||||||
|
"not dead",
|
||||||
|
"not op_mini all"
|
||||||
|
],
|
||||||
|
"development": [
|
||||||
|
"last 1 chrome version",
|
||||||
|
"last 1 firefox version",
|
||||||
|
"last 1 safari version"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
public/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
public/favicon_kart.png
Normal file
|
After Width: | Height: | Size: 381 B |
19
public/index.html
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="icon" href="%PUBLIC_URL%/favicon_kart.png" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<meta name="theme-color" content="#1CAE81" />
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="KRI Analysis Report Tool"
|
||||||
|
/>
|
||||||
|
<link rel="apple-touch-icon" href="%PUBLIC_URL%/favicon_kart.png" />
|
||||||
|
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||||
|
<title>KART</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="root" class="container"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
15
public/manifest.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"short_name": "KART",
|
||||||
|
"name": "KRI Analysis Report Tool",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "favicon_kart.png",
|
||||||
|
"sizes": "64x64 32x32 24x24 16x16",
|
||||||
|
"type": "image/x-icon"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"start_url": ".",
|
||||||
|
"display": "standalone",
|
||||||
|
"theme_color": "#1CAE81",
|
||||||
|
"background_color": "#ffffff"
|
||||||
|
}
|
||||||
3
public/robots.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# https://www.robotstxt.org/robotstxt.html
|
||||||
|
User-agent: *
|
||||||
|
Disallow:
|
||||||
9
server/config/db.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
var mssql = require('mssql');
|
||||||
|
const db = mssql.createPool({
|
||||||
|
host : '10.10.11.7:20022',
|
||||||
|
user : 'kri',
|
||||||
|
password : 'kri#51304',
|
||||||
|
database : 'kon_db'
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = db;
|
||||||
23
server/server.js
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
const express = require('express');
|
||||||
|
const app = express();
|
||||||
|
const PORT = process.env.PORT || 4000;
|
||||||
|
const db = require('./config/db');
|
||||||
|
|
||||||
|
app.listen(PORT, () => {
|
||||||
|
console.log(`Server On : http://localhost:${PORT}/`);
|
||||||
|
})
|
||||||
|
|
||||||
|
//const express = require('express');
|
||||||
|
//const path = require('path');
|
||||||
|
//const app = express();
|
||||||
|
//
|
||||||
|
//const http = require('http').createServer(app);
|
||||||
|
//http.listen(8080, function () {
|
||||||
|
// console.log('listening on 8080')
|
||||||
|
//});
|
||||||
|
//
|
||||||
|
//app.use(express.static( path.join(__dirname, 'public')))
|
||||||
|
//
|
||||||
|
//app.get('/',function(request, response){
|
||||||
|
// response.sendFile( path.join(__dirname, 'public/main.html'))
|
||||||
|
//})
|
||||||
47
src/App.js
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
import React, {useEffect} from 'react';
|
||||||
|
import { Switch, Route, useLocation } from 'react-router-dom';
|
||||||
|
import { useSetRecoilState } from 'recoil';
|
||||||
|
import { pageState } from './states/Token';
|
||||||
|
|
||||||
|
import {AuthRoute} from './components/AuthRoute'
|
||||||
|
import Main from './views/Main';
|
||||||
|
import Current from './views/Report/Current';
|
||||||
|
import Quota from './views/Report/Quota';
|
||||||
|
import Tabulation from './views/Report/Tabulation';
|
||||||
|
import Crosstab from './views/Report/Crosstab';
|
||||||
|
import Derived from './views/Management/Derived';
|
||||||
|
import Exim from './views/Management/Exim';
|
||||||
|
import Login from './views/Login';
|
||||||
|
import Logout from './views/Logout';
|
||||||
|
import External from './views/External';
|
||||||
|
import { PageLoading } from './components/Loading';
|
||||||
|
|
||||||
|
import './resources/css/style.css';
|
||||||
|
import { Suspense } from 'react';
|
||||||
|
|
||||||
|
function App(props) {
|
||||||
|
const location = useLocation();
|
||||||
|
const setIsLoading = useSetRecoilState(pageState);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setIsLoading(true);
|
||||||
|
}, [location]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Switch>
|
||||||
|
<AuthRoute exact path="/" component={Main} useSkey={false} />
|
||||||
|
<AuthRoute path="/Report/Current" component={Current} useSkey={true} />
|
||||||
|
<AuthRoute path="/Report/Quota" component={Quota} useSkey={true} />
|
||||||
|
<AuthRoute path="/Report/Tabulation" component={Tabulation} useSkey={true} />
|
||||||
|
<AuthRoute path="/Report/Crosstab" component={Crosstab} useSkey={true} />
|
||||||
|
<AuthRoute path="/Management/Derived" component={Derived} useSkey={true} />
|
||||||
|
<AuthRoute path="/Management/Exim" component={Exim} useSkey={true} />
|
||||||
|
<Route exact path="/Login" component={Login} />
|
||||||
|
<Route exact path="/Logout" component={Logout} />
|
||||||
|
<Route exact path="/External/:urlkey" component={External} />
|
||||||
|
<Route component={Login} />
|
||||||
|
</Switch>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default App;
|
||||||
50
src/components/AuthRoute.js
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
import React, { useEffect, useState } from 'react';
|
||||||
|
import {Redirect, Route, useHistory, } from 'react-router-dom';
|
||||||
|
import { useRecoilValue } from 'recoil';
|
||||||
|
import { tokenState, ptokenState } from '../states/Token';
|
||||||
|
import {SetOption,SyncAxios,URL_KART_NS} from '../modules/Axios';
|
||||||
|
|
||||||
|
|
||||||
|
export const AuthRoute = (props) => {
|
||||||
|
const history = useHistory();
|
||||||
|
const [isAuth, setIsAuth] = useState(null);
|
||||||
|
const token = useRecoilValue(tokenState);
|
||||||
|
const pToken = useRecoilValue(ptokenState);
|
||||||
|
|
||||||
|
useEffect(() =>{
|
||||||
|
const url = URL_KART_NS + '/encrypt/authentication';
|
||||||
|
const method = 'GET';
|
||||||
|
const headers = {'Accept':'application/json', 'Content-Type': 'application/json;charset=UTP-8', "token":token.token};
|
||||||
|
const body = {};
|
||||||
|
|
||||||
|
const options = SetOption(false, url, method, headers, body);
|
||||||
|
SyncAxios(options).then(response => {
|
||||||
|
if(response.status === 200){
|
||||||
|
setIsAuth(true);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
setIsAuth(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
if(isAuth === null) return null;
|
||||||
|
if(isAuth === false){
|
||||||
|
return <Redirect to={"/Logout"}/>;
|
||||||
|
}
|
||||||
|
if(props.useSkey && (pToken.skey === null || pToken.skey === '')){
|
||||||
|
history.push("/Logout");
|
||||||
|
return <Redirect to={"/"}/>
|
||||||
|
}
|
||||||
|
else if(props.path === "/" || pToken.onlyPage === 0){
|
||||||
|
return <Route exact path={props.path} component={props.component}/>
|
||||||
|
}
|
||||||
|
else if(pToken.onlyPage === 1){
|
||||||
|
if(pToken.path.toLowerCase() === props.path.toLowerCase()){
|
||||||
|
return <Route exact path={props.path} component={props.component}/>
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
history.goBack();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
130
src/components/Bookmark.js
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
import React, { useEffect, useState } from 'react';
|
||||||
|
import { useRecoilValue } from 'recoil';
|
||||||
|
import { tokenState, ptokenState } from '../states/Token';
|
||||||
|
import { bookmarkFormat } from '../states/Format';
|
||||||
|
import {SetOption,SyncAxios, URL_KART_NS} from '../modules/Axios';
|
||||||
|
import Slider from 'react-slick';
|
||||||
|
import Img from '../components/Img';
|
||||||
|
import 'slick-carousel/slick/slick.css';
|
||||||
|
import 'slick-carousel/slick/slick-theme.css';
|
||||||
|
|
||||||
|
const NextArrow = (props) => {
|
||||||
|
const { className, style } = props;
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className={className}
|
||||||
|
style={{ ...style, display: "none"}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const PrevArrow = (props) => {
|
||||||
|
const { className, style } = props;
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className={className}
|
||||||
|
style={{ ...style, display: "none"}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const BookmarkList = (props) => {
|
||||||
|
const sliderRef = React.createRef();
|
||||||
|
const token = useRecoilValue(tokenState);
|
||||||
|
const pToken = useRecoilValue(ptokenState);
|
||||||
|
const [dataList, setdataList] = useState([]);
|
||||||
|
|
||||||
|
let settings = {
|
||||||
|
className:"slick_width",
|
||||||
|
infinite: false,
|
||||||
|
speed: 500,
|
||||||
|
initialSlide: 0,
|
||||||
|
slidesToScroll: 2,
|
||||||
|
variableWidth: true,
|
||||||
|
prevArrow:<PrevArrow/>,
|
||||||
|
nextArrow:<NextArrow/>
|
||||||
|
};
|
||||||
|
|
||||||
|
const setBookMarkList = () => {
|
||||||
|
const url = URL_KART_NS + '/project/bookmark/'+ props.page.toUpperCase();
|
||||||
|
const method = 'GET';
|
||||||
|
const headers = {'Accept':'application/json', 'Content-Type': 'application/json;charset=UTP-8', "token":token.token, "skey":pToken.skey};
|
||||||
|
const body = {};
|
||||||
|
const options = SetOption(true, url, method, headers, body);
|
||||||
|
SyncAxios(options).then(response => {
|
||||||
|
let responseData = [];
|
||||||
|
if(response.data.length > 0){
|
||||||
|
for(let i = 0; i < response.data.length; i++){
|
||||||
|
responseData.push({
|
||||||
|
'id': response.data[i].BOOKMARK_ID,
|
||||||
|
'title': response.data[i].BOOKMARK_TITLE,
|
||||||
|
'json' : response.data[i].BOOKMARK_JSON,
|
||||||
|
'info' : response.data[i].BOOKMARK_INFO,
|
||||||
|
'ismine' : response.data[i].IS_MINE,
|
||||||
|
'isopen' : response.data[i].IS_OPEN
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
settings["slidesToShow"] = response.data.length;
|
||||||
|
setdataList(responseData);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if(props.isMobile && dataList.length > 0){
|
||||||
|
props.setSelectedBookMark(dataList[0]);
|
||||||
|
}
|
||||||
|
},[pToken.skey,dataList])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setBookMarkList();
|
||||||
|
},[pToken.skey])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if(props.isViewBookMark){
|
||||||
|
setBookMarkList();
|
||||||
|
}
|
||||||
|
},[props.isViewBookMark])
|
||||||
|
|
||||||
|
return (
|
||||||
|
props.isMobile==false?
|
||||||
|
<div className="tab_menu pc">
|
||||||
|
<div className='tab_arrows tab_arrows_lt'>
|
||||||
|
{
|
||||||
|
dataList.length < 9 ? null :
|
||||||
|
<a onClick={(e)=>{sliderRef.current.slickPrev()}} >
|
||||||
|
<Img src="arrow_l"/>
|
||||||
|
</a>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
<Slider ref={sliderRef} {...settings} >
|
||||||
|
<div><a style={{cursor:"pointer"}} onClick={(e) => {props.setSelectedBookMark(JSON.parse(JSON.stringify(bookmarkFormat)))}} className={props.selectedBookMark.id === '' ? "active" : ""}>New</a></div>
|
||||||
|
{
|
||||||
|
dataList.map((data, i) => (
|
||||||
|
<div key={"pc_" + data.id} title={data.title} ismine={data.ismine} isopen={data.isopen} onClick={(e) => {props.setSelectedBookMark(data)}} ><a style={{cursor:"pointer"}} className={data.id === props.selectedBookMark.id?'active':''}>{data.title}</a></div>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
|
</Slider>
|
||||||
|
<div className='tab_arrows tab_arrows_gt'>
|
||||||
|
{
|
||||||
|
dataList.length < 9 ? null :
|
||||||
|
<a onClick={(e)=>{sliderRef.current.slickNext()}} >
|
||||||
|
<Img src="arrow_r"/>
|
||||||
|
</a>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
:
|
||||||
|
<div className="tab_menu mob">
|
||||||
|
<ul className={"slider"}>
|
||||||
|
{
|
||||||
|
dataList.map((data, i) => (
|
||||||
|
<li key={"mob_" + data.id} title={data.title} ismine={data.ismine} isopen={data.isopen} onClick={(e) => {props.setSelectedBookMark(data)}} ><a style={{cursor:"pointer"}} className={data.id === props.selectedBookMark.id?'active':''}>{data.title}</a></li>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
151
src/components/BookmarkArea.js
Normal file
@@ -0,0 +1,151 @@
|
|||||||
|
import React, { useEffect, useState } from 'react';
|
||||||
|
import { useRecoilValue } from 'recoil';
|
||||||
|
import { tokenState, ptokenState } from '../states/Token';
|
||||||
|
import { bookmarkFormat,bookmarkJsonFormat } from '../states/Format';
|
||||||
|
import {SetOption,SyncAxios,URL_KART_NS} from '../modules/Axios';
|
||||||
|
import Img from './Img';
|
||||||
|
|
||||||
|
export const BookMarkArea = (props) => {
|
||||||
|
const token = useRecoilValue(tokenState);
|
||||||
|
const pToken = useRecoilValue(ptokenState);
|
||||||
|
const [titleValue, setTitleValue] = useState(props.selectedBookMark.title);
|
||||||
|
const [isChecked, setIsChecked] = useState(false);
|
||||||
|
const [infoValue, setInfoValue] = useState(props.selectedBookMark.info);
|
||||||
|
|
||||||
|
const changeTitleValue = (e) => {
|
||||||
|
setTitleValue(e.target.value)
|
||||||
|
}
|
||||||
|
|
||||||
|
const changeTextValue = (e) => {
|
||||||
|
setInfoValue(e.target.value)
|
||||||
|
}
|
||||||
|
|
||||||
|
const updateBookMark = (isCreate) => {
|
||||||
|
let mode = 'update';
|
||||||
|
let bookmarkID = props.selectedBookMark.id;
|
||||||
|
let bookmarkJson = JSON.parse(JSON.stringify(bookmarkJsonFormat));
|
||||||
|
let isOpen = '1';
|
||||||
|
let tempBannerArray = [];
|
||||||
|
|
||||||
|
if(bookmarkID ==='' || isCreate){
|
||||||
|
mode = 'create';
|
||||||
|
bookmarkID = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
//banner 정리
|
||||||
|
props.selectedBanner.forEach((ele,i)=>{
|
||||||
|
if(ele.length > 0){
|
||||||
|
tempBannerArray.push(ele.join('|'));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
bookmarkJson.INDEX = props.selectedIndex.join(',');
|
||||||
|
bookmarkJson.BANNER = tempBannerArray.join(',');
|
||||||
|
bookmarkJson.FILTER_CONDITION = props.filterCondition;
|
||||||
|
bookmarkJson.REAL_FILTER_CONDITION = props.realFilterCondition;
|
||||||
|
bookmarkJson.FILTER_ARRAY = props.filterArray;
|
||||||
|
bookmarkJson.OPTION = JSON.parse(props.optionString);
|
||||||
|
|
||||||
|
if(isChecked){
|
||||||
|
isOpen = '0';
|
||||||
|
}
|
||||||
|
|
||||||
|
const url = URL_KART_NS + '/project/bookmark/'+mode;
|
||||||
|
const method = 'POST';
|
||||||
|
const headers = {'Accept':'application/json', 'Content-Type': 'application/json;charset=UTP-8', "token":token.token, "skey":pToken.skey};
|
||||||
|
const body = {
|
||||||
|
bookmarkPage: props.page.toUpperCase(),
|
||||||
|
bookmarkID: bookmarkID,
|
||||||
|
bookmarkTitle: titleValue,
|
||||||
|
bookmarkInfo: infoValue,
|
||||||
|
bookmarkJson: JSON.stringify(bookmarkJson),
|
||||||
|
isOpen: isOpen
|
||||||
|
};
|
||||||
|
const options = SetOption(true, url, method, headers, body);
|
||||||
|
SyncAxios(options).then(response => {
|
||||||
|
if(response.status === 200){
|
||||||
|
props.setSelectedBookMark({
|
||||||
|
id: response.data,
|
||||||
|
title: titleValue,
|
||||||
|
json : JSON.stringify(bookmarkJson),
|
||||||
|
ismine : "1",
|
||||||
|
isopen : isOpen,
|
||||||
|
info : infoValue
|
||||||
|
})
|
||||||
|
props.onClose(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const deleteBookmark = () => {
|
||||||
|
if (window.confirm("정말 삭제 하시겠습니까?")) {
|
||||||
|
let bookmarkID = props.selectedBookMark.id;
|
||||||
|
const url = URL_KART_NS + '/project/bookmark/delete/'+bookmarkID;
|
||||||
|
const method = 'POST';
|
||||||
|
const headers = {'Accept':'application/json', 'Content-Type': 'application/json;charset=UTP-8', "token":token.token, "skey":pToken.skey};
|
||||||
|
const body = {};
|
||||||
|
const options = SetOption(true, url, method, headers, body);
|
||||||
|
SyncAxios(options).then(response => {
|
||||||
|
if(response.status === 200){
|
||||||
|
props.setSelectedBookMark(JSON.parse(JSON.stringify(bookmarkFormat)));
|
||||||
|
props.onClose(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
useEffect(()=>{
|
||||||
|
if(props.selectedBookMark.isopen === 1 || props.selectedBookMark.isopen === "1"){
|
||||||
|
setIsChecked(false)
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
setIsChecked(true)
|
||||||
|
}
|
||||||
|
},[])
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="popup_wrap" id="popup">
|
||||||
|
<div className="popup popup_sm">
|
||||||
|
<div className="statistic_wrap">
|
||||||
|
<div className="statistic_box">
|
||||||
|
<div className="statistic_title">
|
||||||
|
<div>
|
||||||
|
<div className="statistic_ic">
|
||||||
|
<Img src={'IcFilterPop'} />
|
||||||
|
</div>
|
||||||
|
<div className="title_txt">
|
||||||
|
<h3>Bookmark</h3>
|
||||||
|
</div>
|
||||||
|
<a onClick={()=> {props.onClose(false)}} className="filter_close"><Img src={'IcCloseW'}/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="popup_content popup_sm">
|
||||||
|
<div>
|
||||||
|
<h3 className="mb10">Title</h3>
|
||||||
|
<input type="text" value={titleValue} onChange={changeTitleValue} className="w100 bg_white mb10"></input>
|
||||||
|
<h3 className="mb10">Information</h3>
|
||||||
|
<div className="chk_group mb20">
|
||||||
|
<input type="checkbox" id="chk_bookmark" onClick={(e)=>{setIsChecked(!isChecked)}} checked={isChecked} readOnly/>
|
||||||
|
<label htmlFor="chk_bookmark">Just for me</label>
|
||||||
|
</div>
|
||||||
|
<textarea cols="30" rows="10" value={infoValue} onChange={changeTextValue} style={{width: "100%", borderColor: "#E1E1E1", reSize: "none", outlineColor: "#17BBB0", color: "black"}}/>
|
||||||
|
<div style={{textAlign:'center'}}>
|
||||||
|
<button className="square_btn" style={{width:'100px',height:'30px', display:'inline-block'}} onClick={(e)=>{updateBookMark(false)}}>Save</button>
|
||||||
|
{
|
||||||
|
props.selectedBookMark.id !== '' ?
|
||||||
|
<React.Fragment>
|
||||||
|
<button className="square_btn" style={{width:'100px',height:'30px', display:'inline-block', marginLeft:'5px'}} onClick={(e) => {updateBookMark(true)}}>Save as</button>
|
||||||
|
<button className="square_btn" style={{width:'100px',height:'30px', display:'inline-block', marginLeft:'5px',backgroundColor: '#F5F5F5', color: '#9E9E9E'}} onClick={(e) => {deleteBookmark()}}>Delete</button>
|
||||||
|
</React.Fragment>
|
||||||
|
: null
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
210
src/components/Chart.js
vendored
Normal file
@@ -0,0 +1,210 @@
|
|||||||
|
import React, {useState, useEffect} from 'react';
|
||||||
|
import ECharts from 'echarts-for-react';
|
||||||
|
|
||||||
|
//ChartJS.register(...registerables,zoomPlugin);
|
||||||
|
const chartColor = ['#B3D2FF','#DAECAF','#FFBEB3','#FFE9B8'];
|
||||||
|
|
||||||
|
export const DoughnutChart = (props) => {
|
||||||
|
const propData = props.chartData;
|
||||||
|
const propLabel = props.chartLabel;
|
||||||
|
|
||||||
|
const [options, setOptions] = useState(null);
|
||||||
|
useEffect(() => {
|
||||||
|
if(propData !== undefined){
|
||||||
|
let chartDataMerge = [];
|
||||||
|
// json형식으로 재가공
|
||||||
|
propData.map((item, index) => {
|
||||||
|
chartDataMerge.push({"value":item,"name":propLabel[index]});
|
||||||
|
})
|
||||||
|
|
||||||
|
setOptions({
|
||||||
|
tooltip: {
|
||||||
|
trigger: 'item'
|
||||||
|
},
|
||||||
|
legend: {
|
||||||
|
bottom: '0%',
|
||||||
|
left: 'center'
|
||||||
|
},
|
||||||
|
series: [
|
||||||
|
{
|
||||||
|
type: 'pie',///차트 타입
|
||||||
|
radius: ['35%', '70%'],//빵꾸 넓이, 차트 넓이
|
||||||
|
avoidLabelOverlap: false,
|
||||||
|
itemStyle: {
|
||||||
|
borderRadius: 5,
|
||||||
|
borderColor: '#fff',
|
||||||
|
borderWidth: 2
|
||||||
|
},
|
||||||
|
label: {
|
||||||
|
// 가운데 글씨 on/off
|
||||||
|
show: false,
|
||||||
|
position: 'center'
|
||||||
|
},
|
||||||
|
// pie cell별 색깔
|
||||||
|
color : chartColor,
|
||||||
|
emphasis: {
|
||||||
|
label: {
|
||||||
|
// 가운데 글씨 hover
|
||||||
|
show: false,
|
||||||
|
fontSize: '40',
|
||||||
|
fontWeight: 'bold'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
labelLine: {
|
||||||
|
show: false
|
||||||
|
},
|
||||||
|
// pie는 데이터 json형식으로 넣어야함
|
||||||
|
data: chartDataMerge
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},[propData])
|
||||||
|
return (
|
||||||
|
// opts or style로 스타일 변경
|
||||||
|
options !== null?<ECharts option={options} onEvents={props.chartEvents} opts={{renderer:"canvas", width:"1000px", height:"350px"}} style={{top:"-50px"}}/>:null
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export const BarChart = (props) => {
|
||||||
|
const propData = props.chartData;
|
||||||
|
const propLabel = props.chartLabel;
|
||||||
|
const [options, setOptions] = useState(null);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if(propData !== undefined){
|
||||||
|
let chartOptions = {};
|
||||||
|
chartOptions["xAxis"] = {
|
||||||
|
type: 'category',
|
||||||
|
data: propLabel
|
||||||
|
}
|
||||||
|
chartOptions["yAxis"] = { type: 'value' }
|
||||||
|
chartOptions["series"] = [{
|
||||||
|
data: propData,
|
||||||
|
type: 'bar',
|
||||||
|
barMaxWidth: 100, // bar width 크기 지정
|
||||||
|
color: '#1CAE81', // bar 색깔 변경
|
||||||
|
}]
|
||||||
|
|
||||||
|
if(props.useTooltip !== null && props.useTooltip !== undefined){
|
||||||
|
chartOptions["tooltip"] = { trigger: props.useTooltip }
|
||||||
|
|
||||||
|
if(Array.isArray(props.customTooltip)){
|
||||||
|
chartOptions["tooltip"]["formatter"] =
|
||||||
|
function (params) {
|
||||||
|
let tooltipText = '<p>'+props.customTooltip[params[0].dataIndex]+'</p>';
|
||||||
|
//console.log(props.customTooltip[params[0].dataIndex]); //quite useful for debug
|
||||||
|
return tooltipText;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(props.useSeriesLabel === true){
|
||||||
|
chartOptions["series"][0].label = {
|
||||||
|
show: true,
|
||||||
|
position: 'top',
|
||||||
|
fontSize:15,
|
||||||
|
fontWeight:'bold',
|
||||||
|
valueAnimation: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(props.useDatazoom === true){
|
||||||
|
chartOptions["dataZoom"] = [{
|
||||||
|
type: 'slider',
|
||||||
|
height: 30, // slider 크기 조절
|
||||||
|
show: true,
|
||||||
|
xAxisIndex: [0],
|
||||||
|
start: 0,
|
||||||
|
end: 100,
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
|
||||||
|
setOptions(chartOptions);
|
||||||
|
}
|
||||||
|
},[propData]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
options !== null?<ECharts option={options} onEvents={props.chartEvents} opts={{renderer:"canvas", height:"370px"}} style={{position:'relative',top:"-50px"}}/>:null
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const LineBarChart = (props) => {
|
||||||
|
const chartColor = ['#1CAE81','#FF5B40','#FFC950','#3789FF'];
|
||||||
|
const propData = props.chartData;
|
||||||
|
const propLabel = props.chartLabel;
|
||||||
|
const propName = props.chartName;
|
||||||
|
const propType = props.chartType;
|
||||||
|
const [options, setOptions] = useState(null);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if(propData !== undefined){
|
||||||
|
let chartOptions = {};
|
||||||
|
chartOptions["xAxis"] = {
|
||||||
|
type: 'category',
|
||||||
|
data: propLabel
|
||||||
|
}
|
||||||
|
chartOptions["yAxis"] = { type: 'value' }
|
||||||
|
chartOptions["series"] = [];
|
||||||
|
|
||||||
|
propName.map((item,index) => {
|
||||||
|
chartOptions["series"][index] = {
|
||||||
|
name:item,
|
||||||
|
data: propData[index],
|
||||||
|
type: propType[index],
|
||||||
|
color: chartColor[index], // bar 색깔 변경
|
||||||
|
}
|
||||||
|
|
||||||
|
if(propType[index]==="bar"){
|
||||||
|
chartOptions["series"][index]["barMaxWidth"] = 100;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
if(props.symbolSize !== null && props.symbolSize !== undefined){
|
||||||
|
chartOptions["series"][index]["symbolSize"] = props.symbolSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(props.lineWidth !== null && props.lineWidth !== undefined){
|
||||||
|
chartOptions["series"][index]["lineStyle"] = {"width":props.lineWidth};
|
||||||
|
}
|
||||||
|
|
||||||
|
if(props.symbol !== null && props.symbol !== undefined){
|
||||||
|
chartOptions["series"][index]["symbol"] = props.symbol;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
if(props.useTooltip !== null && props.useTooltip !== undefined){
|
||||||
|
chartOptions["tooltip"] = { trigger: props.useTooltip }
|
||||||
|
}
|
||||||
|
|
||||||
|
if(props.useSeriesLabel === true){
|
||||||
|
chartOptions["series"][0].label = {
|
||||||
|
show: true,
|
||||||
|
position: 'top',
|
||||||
|
fontSize:15,
|
||||||
|
fontWeight:'bold',
|
||||||
|
valueAnimation: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(props.useDatazoom === true){
|
||||||
|
chartOptions["dataZoom"] = [{
|
||||||
|
type: 'slider',
|
||||||
|
height: 30, // slider 크기 조절
|
||||||
|
show: true,
|
||||||
|
xAxisIndex: [0],
|
||||||
|
start: 0,
|
||||||
|
end: 100,
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
|
||||||
|
setOptions(chartOptions);
|
||||||
|
}
|
||||||
|
},[propData]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
options !== null?<ECharts option={options} onEvents={props.chartEvents} opts={{renderer:"canvas", height:"370px"}} style={{position:'relative',top:"-50px"}}/>:null
|
||||||
|
);
|
||||||
|
};
|
||||||
1012
src/components/ChildBox.js
Normal file
141
src/components/FilterChild.js
Normal file
@@ -0,0 +1,141 @@
|
|||||||
|
import React, { useState } from 'react';
|
||||||
|
import { filterFormat } from '../states/Format';
|
||||||
|
import Img from './Img';
|
||||||
|
import { QuestionSelect, OperatorSelect, ValueSelect } from './Select';
|
||||||
|
|
||||||
|
export const FilterLine = (props) =>{
|
||||||
|
const [isNumeric, setIsNumeric] = useState(false);
|
||||||
|
const [questionValue, setQuestionValue] = useState({});
|
||||||
|
|
||||||
|
const removeFilterLine = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
props.parentLineValue.splice(props.parentLineValue.indexOf(props.filterLineValue),1);
|
||||||
|
|
||||||
|
let newArray = [...props.filterList];
|
||||||
|
props.setFilterList(newArray);
|
||||||
|
}
|
||||||
|
|
||||||
|
const changeValueText = (e) =>{
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
props.filterLineValue.value=e.target.value.replace(/[^0-9.,]/g, "").replace(/(\.*)\./g, "$1");
|
||||||
|
|
||||||
|
let newArray = [...props.filterList];
|
||||||
|
props.setFilterList(newArray);
|
||||||
|
}
|
||||||
|
|
||||||
|
return(
|
||||||
|
<div className="select_boxs">
|
||||||
|
<QuestionSelect filterLineValue={props.filterLineValue} setFilterList={props.setFilterList} filterList={props.filterList} setIsNumeric={setIsNumeric} setQuestionValue={setQuestionValue}/>
|
||||||
|
<OperatorSelect filterLineValue={props.filterLineValue} setFilterList={props.setFilterList} filterList={props.filterList}/>
|
||||||
|
{
|
||||||
|
props.filterLineValue.op === "IS NOT NULL" || props.filterLineValue.op === "IS NULL"?null
|
||||||
|
:
|
||||||
|
isNumeric?<input type="text" value={props.filterLineValue.value} placeholder="숫자, ','만 가능" onChange={changeValueText}/>
|
||||||
|
:<ValueSelect filterLineValue={props.filterLineValue} setFilterList={props.setFilterList} filterList={props.filterList} questionValue={questionValue}/>
|
||||||
|
|
||||||
|
}
|
||||||
|
<div onClick={removeFilterLine}>
|
||||||
|
<a className="btn_minus"><Img src={'IcMinus'}/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
const FilterAndOr = (props) => {
|
||||||
|
let andOr = props.isPre?props.filterLineValue.preAndOr:props.filterLineValue.postAndOr
|
||||||
|
|
||||||
|
const toggleAndOr = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
if(andOr === 'AND'){
|
||||||
|
andOr = 'OR';
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
andOr = 'AND';
|
||||||
|
}
|
||||||
|
|
||||||
|
if(props.isPre){
|
||||||
|
props.filterLineValue.preAndOr = andOr;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
props.filterLineValue.postAndOr = andOr;
|
||||||
|
}
|
||||||
|
|
||||||
|
let newArray = [...props.filterList];
|
||||||
|
props.setFilterList(newArray);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="select_choice">
|
||||||
|
<span className={andOr==='AND'?"active":''} onClick={toggleAndOr}>AND</span><span className={andOr==='OR'?"active":''} onClick={toggleAndOr}>OR</span>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export const FilterChild = (props) => {
|
||||||
|
const addFilterList = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
let newFilterLine = JSON.parse(JSON.stringify(filterFormat));
|
||||||
|
let filterID = props.filterID.substr(0,props.filterID.lastIndexOf('_')+1) + props.parentLineValue.length;
|
||||||
|
|
||||||
|
newFilterLine.id = filterID;
|
||||||
|
newFilterLine.preAndOr = 'AND';
|
||||||
|
props.parentLineValue.push(newFilterLine);
|
||||||
|
|
||||||
|
let newArray = [...props.filterList];
|
||||||
|
props.setFilterList(newArray);
|
||||||
|
}
|
||||||
|
|
||||||
|
const addFilterChild = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
let newFilterChild = JSON.parse(JSON.stringify(filterFormat));
|
||||||
|
let childID = props.filterID + '_0';
|
||||||
|
|
||||||
|
newFilterChild.id = childID;
|
||||||
|
props.filterLineValue.postAndOr = 'AND';
|
||||||
|
props.filterLineValue.childList = [newFilterChild];
|
||||||
|
|
||||||
|
let newArray = [...props.filterList];
|
||||||
|
props.setFilterList(newArray);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
|
||||||
|
<div className="select_wrap">
|
||||||
|
{
|
||||||
|
props.isFirst ?null:<FilterAndOr filterLineValue={props.filterLineValue} setFilterList={props.setFilterList} filterList={props.filterList} isPre={true}/>
|
||||||
|
}
|
||||||
|
|
||||||
|
<FilterLine filterLineValue={props.filterLineValue} parentLineValue={props.parentLineValue} setFilterList={props.setFilterList} filterList={props.filterList}/>
|
||||||
|
|
||||||
|
{
|
||||||
|
props.childList.length===0?null:<FilterAndOr filterLineValue={props.filterLineValue} setFilterList={props.setFilterList} filterList={props.filterList} isPre={false}/>
|
||||||
|
}
|
||||||
|
{
|
||||||
|
props.childList.length===0?null:
|
||||||
|
<ul className="child_depth">
|
||||||
|
<li>
|
||||||
|
{props.childList.map((data, i) => (
|
||||||
|
<FilterChild key={data.id} depth={(props.depth+1)} filterID={data.id} filterLineValue={data} parentLineValue={props.childList} childList={data.childList} filterList={props.filterList} setFilterList={props.setFilterList} isFirst={i===0} isLast={i===(props.childList.length-1)}/>
|
||||||
|
))}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
!props.isLast?null:
|
||||||
|
<div className="btn_choice">
|
||||||
|
<a onClick={addFilterList} ><Img src={'Ic_Plus_Filter'}/></a>
|
||||||
|
{
|
||||||
|
props.childList.length===0?<a onClick={addFilterChild}><Img src={'IcReturn'}/></a>:null
|
||||||
|
}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
140
src/components/FilterPopup.js
Normal file
@@ -0,0 +1,140 @@
|
|||||||
|
import React, { useEffect ,useState } from 'react';
|
||||||
|
import { useRecoilState } from 'recoil';
|
||||||
|
import { ptokenState } from '../states/Token';
|
||||||
|
import { filterFormat } from '../states/Format';
|
||||||
|
import Img from '../components/Img';
|
||||||
|
import { FilterChild } from './FilterChild';
|
||||||
|
|
||||||
|
export const FilterPopup = (props) => {
|
||||||
|
const [pToken,setPtoken] = useRecoilState(ptokenState);
|
||||||
|
const {onClose} = props;
|
||||||
|
const [filterList, setFilterList] = useState([]);
|
||||||
|
const [tempFilter, setTempFilter] = useState('');
|
||||||
|
const [tempRealFilter, setTempRealFilter] = useState('');
|
||||||
|
|
||||||
|
const addFirst = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
let newFilter = JSON.parse(JSON.stringify(filterFormat));
|
||||||
|
newFilter.id = 'fil_0';
|
||||||
|
setFilterList([newFilter]);
|
||||||
|
}
|
||||||
|
|
||||||
|
const makeFilterString = (filterArray, mode) =>{
|
||||||
|
let filterString = ''
|
||||||
|
|
||||||
|
filterString = '(';
|
||||||
|
filterArray.forEach((ele, i) => {
|
||||||
|
if(ele.qid !== ''){
|
||||||
|
let inBracket = false;
|
||||||
|
if(ele.op.includes('IN')){
|
||||||
|
inBracket=true;
|
||||||
|
}
|
||||||
|
filterString += ele.preAndOr!==''?' ' + ele.preAndOr:'';
|
||||||
|
|
||||||
|
if(mode === "r"){
|
||||||
|
filterString += ' ' + ele.qid.replace(/(\d+)((?:\[\w+\])*)/g, (match, number, suffix) => {
|
||||||
|
return `[UK:${number}]${suffix}`;
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
filterString += ' ' + ele.vname;
|
||||||
|
}
|
||||||
|
|
||||||
|
filterString += ' ' + ele.op + ' ';
|
||||||
|
|
||||||
|
if(inBracket) filterString += '(';
|
||||||
|
|
||||||
|
filterString += ele.value;
|
||||||
|
|
||||||
|
if(inBracket) filterString += ')';
|
||||||
|
|
||||||
|
if(ele.childList.length > 0 && ele.childList[0].qid !== ''){
|
||||||
|
filterString += ele.postAndOr!==''?' ' + ele.postAndOr+' ':'';
|
||||||
|
filterString+=makeFilterString(ele.childList, mode)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
filterString += ' )';
|
||||||
|
|
||||||
|
return filterString
|
||||||
|
}
|
||||||
|
|
||||||
|
const saveFilter = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
props.setFilterCondition(tempFilter);
|
||||||
|
props.setRealFilterCondition(tempRealFilter);
|
||||||
|
props.setFilterArray(JSON.stringify(filterList))
|
||||||
|
onClose(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
useEffect(() =>{
|
||||||
|
let filterString = '';
|
||||||
|
let realFilterString = '';
|
||||||
|
if(filterList.length > 0 && filterList[0].qid !== ''){
|
||||||
|
filterString += makeFilterString(filterList, "v");
|
||||||
|
realFilterString += makeFilterString(filterList, "r");
|
||||||
|
}
|
||||||
|
|
||||||
|
setTempFilter(filterString);
|
||||||
|
setTempRealFilter(realFilterString);
|
||||||
|
},[filterList]);
|
||||||
|
|
||||||
|
useEffect(() =>{
|
||||||
|
if(props.filterArray !== '' && props.filterArray !== undefined){
|
||||||
|
setFilterList(JSON.parse(props.filterArray));
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
setFilterList([]);
|
||||||
|
}
|
||||||
|
},[]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="popup_wrap" id="popup" >
|
||||||
|
<div className="popup">
|
||||||
|
<div className="statistic_wrap" style={{width:'100%'}}>
|
||||||
|
<div className="statistic_box">
|
||||||
|
<div className="statistic_title">
|
||||||
|
<div>
|
||||||
|
<div className="statistic_ic">
|
||||||
|
<Img src={'IcFilter'} alt="아이콘"/>
|
||||||
|
</div>
|
||||||
|
<div className="title_txt">
|
||||||
|
<h3>Filter</h3>
|
||||||
|
</div>
|
||||||
|
<a onClick={()=> {onClose(false)}} className="filter_close"><Img src={'IcCloseW'}/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="popup_content">
|
||||||
|
<div style={{overflowY : "auto", height:'550px'}}>
|
||||||
|
{
|
||||||
|
filterList.length === 0?
|
||||||
|
<ul className="parent_depth" style={{border:'0px'}}>
|
||||||
|
<div>
|
||||||
|
<div className="btn_choice">
|
||||||
|
<a onClick={addFirst} ><Img src={'Ic_Plus_Filter'}/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ul>
|
||||||
|
:
|
||||||
|
<ul className="parent_depth">
|
||||||
|
<li>
|
||||||
|
{
|
||||||
|
filterList.map((data, i) => (
|
||||||
|
<FilterChild key={data.id} depth={1} filterID={data.id} filterLineValue={data} parentLineValue={filterList} childList={data.childList} filterList={filterList} setFilterList={setFilterList} isFirst={i===0} isLast={i===(filterList.length-1)}/>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3 style={{color:'#666'}}>Selected Filter</h3>
|
||||||
|
<input type="text" className="w100" placeholder="" value={tempFilter} onChange={(e)=>{}}/>
|
||||||
|
<button className="square_btn" onClick={saveFilter}>Save</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
164
src/components/Header.js
Normal file
@@ -0,0 +1,164 @@
|
|||||||
|
import React, { useEffect, useState } from 'react';
|
||||||
|
import {NavLink, useLocation} from 'react-router-dom';
|
||||||
|
import { useRecoilValue } from 'recoil';
|
||||||
|
import { tokenState, ptokenState } from '../states/Token';
|
||||||
|
import {SetOption,SyncAxios,URL_KART_KON,URL_KART_NS} from '../modules/Axios'
|
||||||
|
import Img from './Img';
|
||||||
|
import Icon from './Icon';
|
||||||
|
|
||||||
|
import {ProjectSelect} from './Select';
|
||||||
|
import { isMobile} from "react-device-detect";
|
||||||
|
|
||||||
|
const Header = () => {
|
||||||
|
const token = useRecoilValue(tokenState);
|
||||||
|
const pToken = useRecoilValue(ptokenState);
|
||||||
|
const [isView, setIsView] = useState(null);
|
||||||
|
const [projectList, setProjectList] = useState(null);
|
||||||
|
const [navLinkList, setNavLinkList] = useState([]);
|
||||||
|
const nowLocation = useLocation();
|
||||||
|
let headerTitle = pToken.title === '' ? "Project Overview TOP 6" : pToken.title;
|
||||||
|
|
||||||
|
const setProject = () => {
|
||||||
|
let url = URL_KART_NS + '/project/list';
|
||||||
|
let method = 'GET';
|
||||||
|
let headers = {'Accept':'application/json', 'Content-Type': 'application/json;charset=UTP-8', "token":token.token};
|
||||||
|
let body = {};
|
||||||
|
let hOptions = SetOption(false, url, method, headers, body);
|
||||||
|
|
||||||
|
SyncAxios(hOptions).then(response => {
|
||||||
|
if(response.status === 200){
|
||||||
|
let responseData = [];
|
||||||
|
for(var i = 0; i < response.data.length; i++){
|
||||||
|
responseData.push({
|
||||||
|
'key': 'plist_'+response.data[i].security,
|
||||||
|
'value': response.data[i].security,
|
||||||
|
'text': "("+response.data[i].PKEY.replace("|K|W|","").replace("|N|S|","")+") "+response.data[i].title,
|
||||||
|
'ver': response.data[i].ver,
|
||||||
|
'data-tip':'',
|
||||||
|
'data-for':'tooltip_select',
|
||||||
|
'data-html' : true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
setProjectList(responseData);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const UrlCopy = (mode) => {
|
||||||
|
let realUri = window.location.href.replace(origin,'');
|
||||||
|
let url = '';
|
||||||
|
if(pToken.ver === "NEWSSAK"){
|
||||||
|
url = URL_KART_NS + '/uri/short';
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
url = URL_KART_KON + '/uri/short';
|
||||||
|
}
|
||||||
|
const method = 'POST';
|
||||||
|
const headers = {'Accept':'application/json', 'Content-Type': 'application/json;charset=UTP-8', "token":token.token, "skey":pToken.skey};
|
||||||
|
const body = {"realUri":realUri, "mode":mode};
|
||||||
|
const hOptions = SetOption(true, url, method, headers, body);
|
||||||
|
|
||||||
|
SyncAxios(hOptions).then(response => {
|
||||||
|
if(response.status === 200){
|
||||||
|
navigator.clipboard.writeText(response.data).then(() =>{
|
||||||
|
alert("주소가 복사되었습니다.");
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
useEffect(() =>{
|
||||||
|
setIsView(null);
|
||||||
|
if(token.token !== "" && !window.location.href.includes("Logout")){
|
||||||
|
let navLinkArray = []
|
||||||
|
if(pToken.onlyPage === 0){
|
||||||
|
setProject();
|
||||||
|
navLinkArray.push(<li key={'navCurrent'}><NavLink to="/Report/Current">진행 현황</NavLink></li>);
|
||||||
|
navLinkArray.push(<li key={'navQuota'}><NavLink to="/Report/Quota">Quota</NavLink></li>);
|
||||||
|
navLinkArray.push(<li key={'navTabulation'}><NavLink to="/Report/Tabulation">Tabulation</NavLink></li>);
|
||||||
|
navLinkArray.push(<li key={'navCrossTab'}><NavLink to="/Report/Crosstab">Cross Tab</NavLink></li>);
|
||||||
|
|
||||||
|
if(token.isAdmin < 7){
|
||||||
|
navLinkArray.push(<li key={'navDerived'}><NavLink to="/Management/Derived">Create Variable</NavLink></li>);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(token.isAdmin < 5 || ["정지예","한정민","박영","오수인"].includes(token.name)){
|
||||||
|
navLinkArray.push(<li key={'navExim'}><NavLink to="/Management/Exim">Export/Import</NavLink></li>);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
setNavLinkList(navLinkArray);
|
||||||
|
setIsView(true);
|
||||||
|
}
|
||||||
|
}, [token.token, pToken.onlyPage]);
|
||||||
|
|
||||||
|
const [classStatus, setClass] = useState(false);
|
||||||
|
|
||||||
|
const handleToggle = (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
setClass(!classStatus);
|
||||||
|
};
|
||||||
|
|
||||||
|
if(!isView) return null
|
||||||
|
return (
|
||||||
|
<header>
|
||||||
|
<nav className="nav" id="nav">
|
||||||
|
<div className="wrap">
|
||||||
|
<div className="gnb">
|
||||||
|
{token.isAdmin === "9"?<h1 className="logo"><Img src="logo_header"/></h1>:<NavLink to="/" replace={true}><h1 className="logo"><Img src="logo_header"/></h1></NavLink>}
|
||||||
|
<div className="gnb_btn">
|
||||||
|
<a className="open" onClick={handleToggle}>
|
||||||
|
<Icon src="bx_menu"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{
|
||||||
|
pToken.skey === '' ?
|
||||||
|
<ul className={classStatus ? "mob_menu active" : "mob_menu"}>
|
||||||
|
{token.isAdmin === "9"?null:<li><NavLink to="/Logout" replace={true}>Logout</NavLink></li>}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
:
|
||||||
|
<ul className={classStatus ? "mob_menu active" : "mob_menu"} onClick={handleToggle}>
|
||||||
|
{navLinkList}
|
||||||
|
</ul>
|
||||||
|
}
|
||||||
|
<div className="menu pc">
|
||||||
|
{
|
||||||
|
nowLocation.pathname === "/" ? <div className="login_name"><p>안녕하세요! {token.name}님</p></div>: null
|
||||||
|
}
|
||||||
|
{
|
||||||
|
pToken.skey === '' ? null:
|
||||||
|
<ul>
|
||||||
|
{navLinkList}
|
||||||
|
</ul>
|
||||||
|
}
|
||||||
|
<div className="logout pc">
|
||||||
|
{token.isAdmin === "9"?null:<NavLink to="/Logout" replace={true}><button className="logout green">Logout</button></NavLink>}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className={classStatus ? "dimmed active" : "dimmed"}></div>
|
||||||
|
<div className="title_bar">
|
||||||
|
<div className="wrap">
|
||||||
|
{!projectList || token.isAdmin === "9"? <div></div> :<ProjectSelect optionData={projectList} />}
|
||||||
|
<div className="title_box" data-tip data-for="tooltip_header">
|
||||||
|
<h2 style={isMobile?{display: "block", whiteSpace:"nowrap", overflow:"hidden", textOverflow:"ellipsis"}:{}}>{headerTitle}</h2>
|
||||||
|
</div>
|
||||||
|
<div className="url_copy">
|
||||||
|
{
|
||||||
|
pToken.skey === '' || token.isAdmin >= 7? '':
|
||||||
|
<React.Fragment>
|
||||||
|
<a className="round_btn target_page" onClick={(e)=>{UrlCopy("P")}}><div style={{cursor:'pointer'}}>Page Copy</div></a>
|
||||||
|
<a className="round_btn target_url" onClick={(e)=>{UrlCopy("U")}}><div style={{cursor:'pointer'}}>URL Copy</div></a>
|
||||||
|
</React.Fragment>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Header;
|
||||||
75
src/components/Icon.js
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { ReactComponent as BxMenu } from '../resources/images/ico/bx_menu.svg';
|
||||||
|
import { ReactComponent as ChecknoxImg } from '../resources/images/ico/checkbox_img.svg';
|
||||||
|
import { ReactComponent as IcBanner } from '../resources/images/ico/ic_banner_36.svg';
|
||||||
|
import { ReactComponent as IcBanner_1 } from '../resources/images/ico/ic_banner_36-1.svg';
|
||||||
|
import { ReactComponent as IcCopy } from '../resources/images/ico/ic_copy.svg';
|
||||||
|
import { ReactComponent as IcCopyPage } from '../resources/images/ico/ic_copy_page.svg';
|
||||||
|
import { ReactComponent as IcCopyUrl } from '../resources/images/ico/ic_copy_url.svg';
|
||||||
|
import { ReactComponent as IcDocument } from '../resources/images/ico/ic_document_36.svg';
|
||||||
|
import { ReactComponent as IcDocument_1 } from '../resources/images/ico/ic_document_36-1.svg';
|
||||||
|
import { ReactComponent as IcDocument_2 } from '../resources/images/ico/ic_document_36-2.svg';
|
||||||
|
import { ReactComponent as IcDrop } from '../resources/images/ico/ic_drop.svg';
|
||||||
|
import { ReactComponent as IcExport } from '../resources/images/ico/ic_export.svg';
|
||||||
|
import { ReactComponent as IcFilter } from '../resources/images/ico/ic_filter_36.svg';
|
||||||
|
import { ReactComponent as IcHandle } from '../resources/images/ico/ic_handle.svg';
|
||||||
|
import { ReactComponent as IcHandle_1 } from '../resources/images/ico/ic_handle_1.svg';
|
||||||
|
import { ReactComponent as IcImport } from '../resources/images/ico/ic_import.svg';
|
||||||
|
import { ReactComponent as IcQuota } from '../resources/images/ico/ic_quota.svg';
|
||||||
|
import { ReactComponent as IcCircle } from '../resources/images/ico/icon_circle.svg';
|
||||||
|
import { ReactComponent as IcPC } from '../resources/images/ico/icon_pc.svg';
|
||||||
|
import { ReactComponent as IcNoneBookmark } from '../resources/images/ico/icon_none_bookmark.svg';
|
||||||
|
import { ReactComponent as WordImg } from '../resources/images/ico/word_img.svg';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const Icon = (props) => {
|
||||||
|
switch (props.src){
|
||||||
|
case "bx_menu":
|
||||||
|
return (<BxMenu/>);
|
||||||
|
case "checkbox_img":
|
||||||
|
return (<ChecknoxImg/>);
|
||||||
|
case "ic_banner_36":
|
||||||
|
return (<IcBanner/>);
|
||||||
|
case "ic_banner_36-1":
|
||||||
|
return (<IcBanner_1/>);
|
||||||
|
case "ic_copy":
|
||||||
|
return (<IcCopy/>);
|
||||||
|
case "ic_copy_page":
|
||||||
|
return (<IcCopyPage/>);
|
||||||
|
case "ic_copy_url":
|
||||||
|
return (<IcCopyUrl/>);
|
||||||
|
case "ic_document_36":
|
||||||
|
return (<IcDocument/>);
|
||||||
|
case "ic_document_36-1":
|
||||||
|
return (<IcDocument_1/>);
|
||||||
|
case "ic_document_36-2":
|
||||||
|
return (<IcDocument_2/>);
|
||||||
|
case "ic_drop":
|
||||||
|
return (<IcDrop/>);
|
||||||
|
case "ic_export":
|
||||||
|
return (<IcExport/>);
|
||||||
|
case "ic_filter_36":
|
||||||
|
return (<IcFilter/>);
|
||||||
|
case "ic_handle":
|
||||||
|
return (<IcHandle/>);
|
||||||
|
case "ic_handle_1":
|
||||||
|
return (<IcHandle_1/>);
|
||||||
|
case "ic_import":
|
||||||
|
return (<IcImport/>);
|
||||||
|
case "ic_quota":
|
||||||
|
return (<IcQuota/>);
|
||||||
|
case "icon_circle":
|
||||||
|
return (<IcCircle/>);
|
||||||
|
case "icon_pc":
|
||||||
|
return (<IcPC/>);
|
||||||
|
case "icon_none_bookmark":
|
||||||
|
return (<IcNoneBookmark style={{height:"70vh"}}/>);
|
||||||
|
case "word_img":
|
||||||
|
return (<WordImg/>);
|
||||||
|
default :
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Icon;
|
||||||
238
src/components/Img.js
Normal file
@@ -0,0 +1,238 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import LogoKART from '../resources/images/logo/logo_kart.svg';
|
||||||
|
import arrow_open from '../resources/images/acc_arrow_open.png';
|
||||||
|
import arrow_Sopen from '../resources/images/acc_arrow_open_s.png';
|
||||||
|
import arrow_close from '../resources/images/acc_arrow_close.png';
|
||||||
|
import arrow_Sclose from '../resources/images/acc_arrow_close_s.png';
|
||||||
|
import IcImport from '../resources/images/ic_imports.png';
|
||||||
|
import IcBanner from '../resources/images/ic_banner_36.png';
|
||||||
|
import IcBookMark from '../resources/images/ic_bookmark_14.png';
|
||||||
|
import IcClose from '../resources/images/ic_close.png';
|
||||||
|
import IcCloseW from '../resources/images/ic_close_w.png';
|
||||||
|
import IcExports from '../resources/images/ic_exports.png';
|
||||||
|
import Ic_Exports_s from '../resources/images/ic_exports_s.png';
|
||||||
|
import IcFilter from '../resources/images/ic_filter_36.png';
|
||||||
|
import Ic_gnb1_20_1 from '../resources/images/ic_gnb1_20-1.png';
|
||||||
|
import Ic_gnb1_20 from '../resources/images/ic_gnb1_20.png';
|
||||||
|
import Ic_gnb2_20_1 from '../resources/images/ic_gnb2_20-1.png';
|
||||||
|
import Ic_gnb2_20 from '../resources/images/ic_gnb2_20.png';
|
||||||
|
import Ic_gnb3_20_1 from '../resources/images/ic_gnb3_20-1.png';
|
||||||
|
import Ic_gnb3_20 from '../resources/images/ic_gnb3_20.png';
|
||||||
|
import Ic_gnb4_20_1 from '../resources/images/ic_gnb4_20-1.png';
|
||||||
|
import Ic_gnb4_20 from '../resources/images/ic_gnb4_20.png';
|
||||||
|
import Ic_gnb5_20_1 from '../resources/images/ic_gnb5_20-1.png';
|
||||||
|
import Ic_gnb5_20 from '../resources/images/ic_gnb5_20.png';
|
||||||
|
import Ic_gnb6_20_1 from '../resources/images/ic_gnb6_20-1.png';
|
||||||
|
import Ic_gnb6_20 from '../resources/images/ic_gnb6_20.png';
|
||||||
|
import IcMinus from '../resources/images/ic_minus.png';
|
||||||
|
import IcPlus from '../resources/images/ic_plus.png';
|
||||||
|
import Ic_Plus_Bl from '../resources/images/ic_plus_bl.png';
|
||||||
|
import Ic_Plus_Filter from '../resources/images/ic_plus_filter.png';
|
||||||
|
import Ic_Plus_s from '../resources/images/ic_plus_s.png';
|
||||||
|
import IcReset from '../resources/images/ic_reset_16.png';
|
||||||
|
import IcReturn from '../resources/images/ic_return.png';
|
||||||
|
import IcSelectArrow from '../resources/images/select_arrow.png';
|
||||||
|
import IcTrash from '../resources/images/trash_icon.png';
|
||||||
|
import IcUpdate from '../resources/images/update_icon.png';
|
||||||
|
import IcFilterPop from '../resources/images/ic_filter_pop.png';
|
||||||
|
import BtnLeft from '../resources/images/btn_left.png';
|
||||||
|
import BtnRight from '../resources/images/btn_right.png';
|
||||||
|
import L_Indicater from '../resources/images/loading.gif';
|
||||||
|
import arrow_r from '../resources/images/arrow_r.png';
|
||||||
|
import arrow_l from '../resources/images/arrow_l.png';
|
||||||
|
import IcRe from '../resources/images/ic_re.png';
|
||||||
|
|
||||||
|
|
||||||
|
const Img = (props) => {
|
||||||
|
let imgSource = '';
|
||||||
|
let imgstyle = {};
|
||||||
|
|
||||||
|
switch (props.src){
|
||||||
|
case "logo_login":{
|
||||||
|
imgSource=LogoKART;
|
||||||
|
imgstyle={"width":"40%"};
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "logo_header":{
|
||||||
|
imgSource=LogoKART;
|
||||||
|
imgstyle={"width":"45%","marginTop":"8px"};
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "arrow_open":{
|
||||||
|
imgSource=arrow_open;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "arrow_Sopen":{
|
||||||
|
imgSource=arrow_Sopen;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "arrow_close":{
|
||||||
|
imgSource=arrow_close;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "arrow_Sclose":{
|
||||||
|
imgSource=arrow_Sclose;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcImport":{
|
||||||
|
imgSource=IcImport;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcBanner":{
|
||||||
|
imgSource=IcBanner;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcBookMark":{
|
||||||
|
imgSource=IcBookMark;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcClose":{
|
||||||
|
imgSource=IcClose;
|
||||||
|
imgstyle={cursor:"pointer"};
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcCloseW":{
|
||||||
|
imgSource=IcCloseW;
|
||||||
|
imgstyle={cursor:"pointer"};
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_Exports":{
|
||||||
|
imgSource=IcExports;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_Exports_s":{
|
||||||
|
imgSource=Ic_Exports_s;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcFilter":{
|
||||||
|
imgSource=IcFilter;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcFilterPop":{
|
||||||
|
imgSource=IcFilterPop;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_gnb1_20":{
|
||||||
|
imgSource=Ic_gnb1_20;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_gnb1_20_1":{
|
||||||
|
imgSource=Ic_gnb1_20_1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_gnb2_20":{
|
||||||
|
imgSource=Ic_gnb2_20;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_gnb2_20_1":{
|
||||||
|
imgSource=Ic_gnb2_20_1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_gnb3_20":{
|
||||||
|
imgSource=Ic_gnb3_20;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_gnb3_20_1":{
|
||||||
|
imgSource=Ic_gnb3_20_1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_gnb4_20":{
|
||||||
|
imgSource=Ic_gnb4_20;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_gnb4_20_1":{
|
||||||
|
imgSource=Ic_gnb4_20_1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_gnb5_20":{
|
||||||
|
imgSource=Ic_gnb5_20;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_gnb5_20_1":{
|
||||||
|
imgSource=Ic_gnb5_20_1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_gnb6_20":{
|
||||||
|
imgSource=Ic_gnb6_20;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_gnb6_20_1":{
|
||||||
|
imgSource=Ic_gnb6_20_1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcMinus":{
|
||||||
|
imgSource=IcMinus;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcPlus":{
|
||||||
|
imgSource=IcPlus;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_Plus_Bl":{
|
||||||
|
imgSource=Ic_Plus_Bl;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_Plus_Filter":{
|
||||||
|
imgSource=Ic_Plus_Filter;
|
||||||
|
imgstyle={cursor:"pointer"};
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "Ic_Plus_s":{
|
||||||
|
imgSource=Ic_Plus_s;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcReset":{
|
||||||
|
imgSource=IcReset;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcReturn":{
|
||||||
|
imgSource=IcReturn;
|
||||||
|
imgstyle = {cursor:"pointer"};
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcSelectArrow":{
|
||||||
|
imgSource=IcSelectArrow;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcTrash":{
|
||||||
|
imgSource=IcTrash;
|
||||||
|
imgstyle={width:"27px", cursor:"pointer",position: 'absolute',right: '50px'};
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcUpdate":{
|
||||||
|
imgSource=IcUpdate;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "BtnLeft":{
|
||||||
|
imgSource=BtnLeft;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "BtnRight":{
|
||||||
|
imgSource=BtnRight;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "L_Indicater":{
|
||||||
|
imgSource=L_Indicater;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "arrow_r":{
|
||||||
|
imgSource=arrow_r;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "arrow_l":{
|
||||||
|
imgSource=arrow_l;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "IcRe":{
|
||||||
|
imgSource=IcRe;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default :
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(imgSource === '') return null;
|
||||||
|
else return (<img src={imgSource} className={props.className?props.className:''} style={{...props.style, ...imgstyle}}/>);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Img;
|
||||||
28
src/components/LeftToggle.js
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import Icon from '../components/Icon';
|
||||||
|
import Img from '../components/Img';
|
||||||
|
|
||||||
|
export const LeftToggleBox = (props) => {
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="left_toggle_box" style={props.leftToggle?{}:{display:"none"}} onClick={(e) => {props.setLeftToggle(false)}}>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a>
|
||||||
|
<Img src="BtnRight"/>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a>
|
||||||
|
<Img src="IcFilter"/>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a>
|
||||||
|
<Icon src="ic_document_36-1"/>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
36
src/components/Loading.js
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { useRecoilValue } from 'recoil';
|
||||||
|
import { pageState } from '../states/Token';
|
||||||
|
import Img from '../components/Img';
|
||||||
|
|
||||||
|
export const PageLoading = (props) => {
|
||||||
|
const isLoading = useRecoilValue(pageState);
|
||||||
|
if(!isLoading) return null
|
||||||
|
return (
|
||||||
|
<div className="loading_container">
|
||||||
|
<div className="lonading_content">
|
||||||
|
<Img className='center_position' src='L_Indicater' style={{width:"200px"}}/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
export const QueryLoading = (props) => {
|
||||||
|
return (
|
||||||
|
<div className="loading_container">
|
||||||
|
<div className="lonading_content">
|
||||||
|
<Img className='center_position' src='L_Indicater' style={{width:"200px"}}/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
export const TableLoading = (props) => {
|
||||||
|
return (
|
||||||
|
<div className="table_loading_container" style={{width:"100%"}}>
|
||||||
|
<div className="lonading_content">
|
||||||
|
<Img src='L_Indicater' style={{width:"200px"}}/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
};
|
||||||
285
src/components/Select.js
Normal file
@@ -0,0 +1,285 @@
|
|||||||
|
import _ from 'lodash'
|
||||||
|
import React, { useEffect, useState } from 'react';
|
||||||
|
import { useSetRecoilState, useRecoilState} from 'recoil';
|
||||||
|
import { ptokenState ,questionState, pageState } from '../states/Token';
|
||||||
|
import { SelectProject } from '../modules/SelectProject'
|
||||||
|
import { Dropdown,Checkbox } from 'semantic-ui-react'
|
||||||
|
import ReactToolTip from 'react-tooltip';
|
||||||
|
|
||||||
|
export const ProjectSelect = React.memo((props) => {
|
||||||
|
const setIsLoading = useSetRecoilState(pageState);
|
||||||
|
const [pToken,setPtoken] = useRecoilState(ptokenState);
|
||||||
|
const [questionList,setQuestionList] = useRecoilState(questionState);
|
||||||
|
|
||||||
|
const [optionText,setOptionText] = useState('');
|
||||||
|
|
||||||
|
|
||||||
|
const selectOver = (e) => {
|
||||||
|
const hoverTarget = e.target;
|
||||||
|
const hoverTitle = hoverTarget.innerHTML.replace(/<[^>]*>?/g, '');
|
||||||
|
|
||||||
|
if(hoverTitle !== "" && hoverTarget.getAttribute("role") === "option"){
|
||||||
|
setOptionText(hoverTitle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const ChangeProject = (e, data) =>{
|
||||||
|
const selectedProject = props.optionData.filter((item) => { if(item.value === data.value) return item})
|
||||||
|
if(selectedProject.length > 0){
|
||||||
|
setIsLoading(true);
|
||||||
|
SelectProject(data.value, selectedProject[0].text, selectedProject[0].ver , 0, '', setPtoken, setQuestionList)
|
||||||
|
setOptionText('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
ReactToolTip.rebuild();
|
||||||
|
})
|
||||||
|
|
||||||
|
return(
|
||||||
|
<div className="select_box">
|
||||||
|
<Dropdown placeholder='프로젝트 선택' text={'프로젝트 선택'} onMouseOver={selectOver} selectOnBlur={false} onClose={(e)=>{setOptionText("");}} floating fluid search selection options={props.optionData} value onChange={ChangeProject} className="filter-wrapper" />
|
||||||
|
<ReactToolTip className="tooltip_box" id="tooltip_select" place="right" effect="solid">{optionText}</ReactToolTip>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
});
|
||||||
|
|
||||||
|
export const QuestionSelect = (props) =>{
|
||||||
|
let tooltipID = props.filterLineValue.id+"_tooltip_question";
|
||||||
|
const [pToken,setPtoken] = useRecoilState(ptokenState);
|
||||||
|
const [questionList,setQuestionList] = useRecoilState(questionState);
|
||||||
|
const [optionData, setOptiondata] = useState([]);
|
||||||
|
const [optionText,setOptionText] = useState('');
|
||||||
|
const [selectText,setSelectText] = useState(null);
|
||||||
|
|
||||||
|
const selectOver = (e) => {
|
||||||
|
const hoverTarget = e.target;
|
||||||
|
const hoverTitle = hoverTarget.innerHTML.replace(/<[^>]*>?/g, '');
|
||||||
|
if(hoverTitle !== "" && hoverTarget.getAttribute("role") === "option"){
|
||||||
|
setOptionText(hoverTitle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const ChangeQuestion = (e, data) => {
|
||||||
|
const selectQuestion = questionList.filter((item) => item.QID === data.value)[0];
|
||||||
|
props.filterLineValue.qid=data.value;
|
||||||
|
|
||||||
|
if(pToken.ver.toUpperCase() === "NEWSSAK"){
|
||||||
|
props.filterLineValue.vname=selectQuestion.Q_ID;
|
||||||
|
}else{
|
||||||
|
props.filterLineValue.vname=selectQuestion.VARIABLE;
|
||||||
|
}
|
||||||
|
|
||||||
|
props.filterLineValue.op='IN';
|
||||||
|
props.filterLineValue.value='';
|
||||||
|
setSelectText(selectQuestion.VIEWTITLE);
|
||||||
|
|
||||||
|
let newArray = [...props.filterList];
|
||||||
|
props.setFilterList(newArray);
|
||||||
|
setOptionText('');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
useEffect(() =>{
|
||||||
|
let optionArray = [];
|
||||||
|
questionList.filter((data) => {if(data.QTYPE !== "text" && data.IS_DERIVED !== "2" ) return data.VIEWTITLE}).map((data) => {
|
||||||
|
let viewTitle = data.VIEWTITLE;
|
||||||
|
if(data.QTYPE === "rank"){
|
||||||
|
let rankText = '';
|
||||||
|
if(pToken.ver.toUpperCase() === "NEWSSAK"){
|
||||||
|
data.QID.match(/(\[R\d\])/g).map((item) => {
|
||||||
|
rankText = item.match(/\d/g);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
let qidArray = data.QID.split("_");
|
||||||
|
rankText = qidArray[qidArray.length-1];
|
||||||
|
}
|
||||||
|
|
||||||
|
viewTitle = viewTitle.replace(/\-\s\d(\+\d)*순위 까지/g, '- '+rankText+'순위');
|
||||||
|
}
|
||||||
|
optionArray.push({
|
||||||
|
'key': data.QID,
|
||||||
|
'value': data.QID,
|
||||||
|
'text': viewTitle,
|
||||||
|
'data-tip':'',
|
||||||
|
'data-for': tooltipID
|
||||||
|
});
|
||||||
|
})
|
||||||
|
setOptiondata(optionArray);
|
||||||
|
},[])
|
||||||
|
|
||||||
|
useEffect(() =>{
|
||||||
|
if(props.filterLineValue.qid !== ''){
|
||||||
|
let selectedQuesiton = questionList.filter((data) => data.QID === props.filterLineValue.qid)
|
||||||
|
|
||||||
|
if(selectedQuesiton.length > 0){
|
||||||
|
setSelectText(selectedQuesiton[0].VIEWTITLE);
|
||||||
|
|
||||||
|
props.setIsNumeric(selectedQuesiton[0].QTYPE==='num')
|
||||||
|
|
||||||
|
|
||||||
|
if(selectedQuesiton[0].LABEL_INFO !== ''){
|
||||||
|
let tempLabelInfo = JSON.parse(selectedQuesiton[0].LABEL_INFO);
|
||||||
|
if(Array.isArray(tempLabelInfo)){
|
||||||
|
tempLabelInfo.map((item) => {
|
||||||
|
item.value = String(item.value)
|
||||||
|
item.label = item.label.replace(/</g,'<').replace(/>/g,'>').replace(/<[^>]*>?/g, '').replace(/ /gi,'');
|
||||||
|
return item;
|
||||||
|
})
|
||||||
|
|
||||||
|
props.setQuestionValue(tempLabelInfo)
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
props.setQuestionValue(JSON.parse(selectedQuesiton[0].LABEL_INFO))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},[props.filterLineValue.qid]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
ReactToolTip.rebuild();
|
||||||
|
})
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="select_box">
|
||||||
|
<Dropdown placeholder='문항 선택' text={selectText||'문항 선택'} onMouseOver={selectOver} selectOnBlur={false} onClose={(e)=>{setOptionText("");}} value={props.filterLineValue.qid} fluid search selection options={optionData} onChange={ChangeQuestion} className="filter-wrapper" />
|
||||||
|
<ReactToolTip className="tooltip_box" id={tooltipID} place="right" effect="solid">{optionText}</ReactToolTip>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export const OperatorSelect = (props) =>{
|
||||||
|
const [pToken,setPtoken] = useRecoilState(ptokenState);
|
||||||
|
|
||||||
|
let optionData = [
|
||||||
|
{'key': "IN", 'value': "IN", 'text': "=" },
|
||||||
|
{'key': "NOT IN", 'value': "NOT IN", 'text': "≠" },
|
||||||
|
{'key': "<", 'value': "<", 'text': "<" },
|
||||||
|
{'key': "<=", 'value': "<=", 'text': "≤" },
|
||||||
|
{'key': ">", 'value': ">", 'text': ">" },
|
||||||
|
{'key': ">=", 'value': ">=", 'text': "≥" },
|
||||||
|
{'key': "IS NOT NULL", 'value': "IS NOT NULL", 'text': "Has Value" },
|
||||||
|
{'key': "IS NULL", 'value': "IS NULL", 'text': "Has No Value" },
|
||||||
|
];
|
||||||
|
|
||||||
|
const ChangeOperator = (e,data) => {
|
||||||
|
props.filterLineValue.op=data.value;
|
||||||
|
|
||||||
|
if(data.value.includes('NULL')){
|
||||||
|
props.filterLineValue.value = '';
|
||||||
|
}
|
||||||
|
else if(data.value.includes('IN') === false){
|
||||||
|
let selectedValue = props.filterLineValue.value.split(',');
|
||||||
|
props.filterLineValue.value=selectedValue[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
let newArray = [...props.filterList];
|
||||||
|
props.setFilterList(newArray);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="select_box">
|
||||||
|
<Dropdown placeholder='' fluid selection options={optionData} value={props.filterLineValue.op} onChange={ChangeOperator} className="filter-wrapper" style={{width:"150px"}} />
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export const ValueSelect = (props) =>{
|
||||||
|
let tooltipID = props.filterLineValue.id+"_tooltip_value";
|
||||||
|
const [originData, setOriginData] = useState([]);
|
||||||
|
const [optionData, setOptiondata] = useState([]);
|
||||||
|
const [optionText,setOptionText] = useState('');
|
||||||
|
const [multiToggle,setMultiToggle] = useState(true);
|
||||||
|
const [seachString,setSeachString] = useState("");
|
||||||
|
|
||||||
|
const selectOver = (e) => {
|
||||||
|
const hoverTarget = e.target;
|
||||||
|
const hoverTitle = hoverTarget.innerHTML.replace(/</g,'<').replace(/>/g,'>').replace(/(<[^>]*>?)|( )|(&lsquo)|(&rsquo)|(&)|(;)/g, '');
|
||||||
|
if(hoverTitle !== "" && hoverTarget.getAttribute("role") === "option"){
|
||||||
|
setOptionText(hoverTitle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const ChangeValue = (e, data) => {
|
||||||
|
var selectArray = [];
|
||||||
|
let selectValues = props.filterLineValue.value;
|
||||||
|
|
||||||
|
if(selectValues !== "" && multiToggle){
|
||||||
|
selectArray = props.filterLineValue.value.split(',');
|
||||||
|
}
|
||||||
|
|
||||||
|
if(data.checked){
|
||||||
|
selectArray.push(data.value);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
selectArray = selectArray.filter((item) => (item !== data.value));
|
||||||
|
}
|
||||||
|
selectArray.sort();
|
||||||
|
|
||||||
|
props.filterLineValue.value = selectArray.join(',');
|
||||||
|
let newArray = [...props.filterList];
|
||||||
|
props.setFilterList(newArray);
|
||||||
|
}
|
||||||
|
|
||||||
|
const CloseBox = (e, data) => {
|
||||||
|
setOptiondata([...originData])
|
||||||
|
setSeachString("")
|
||||||
|
}
|
||||||
|
|
||||||
|
const SeachText = (e, data) =>{
|
||||||
|
const re = new RegExp(_.escapeRegExp(data.searchQuery),"i");
|
||||||
|
|
||||||
|
let searchArray = [...originData];
|
||||||
|
setOptiondata(searchArray.filter((item, index) => (
|
||||||
|
item.text.match(re)
|
||||||
|
)));
|
||||||
|
setSeachString(data.searchQuery);
|
||||||
|
}
|
||||||
|
|
||||||
|
useEffect(() =>{
|
||||||
|
let optionArray = [];
|
||||||
|
Object.keys(props.questionValue).map((key, i) => {
|
||||||
|
optionArray.push({
|
||||||
|
'key': i,
|
||||||
|
'value': props.questionValue[key].value,
|
||||||
|
'text': props.questionValue[key].label
|
||||||
|
});
|
||||||
|
});
|
||||||
|
setOriginData(optionArray)
|
||||||
|
setOptiondata(optionArray);
|
||||||
|
},[props.questionValue]);
|
||||||
|
|
||||||
|
useEffect(() =>{
|
||||||
|
if(props.filterLineValue.op.includes('IN')){
|
||||||
|
setMultiToggle(true);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
setMultiToggle(false);
|
||||||
|
}
|
||||||
|
},[props.filterLineValue.op]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
ReactToolTip.rebuild();
|
||||||
|
})
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="select_box">
|
||||||
|
<Dropdown placeholder="값 선택" text={props.filterLineValue.value} searchQuery={seachString} onMouseOver={selectOver} onSearchChange={SeachText} onClose={CloseBox} search fluid className="filter-wrapper selection" multiple style={{width:"250px"}} >
|
||||||
|
<Dropdown.Menu>
|
||||||
|
{
|
||||||
|
optionData.length===0?<div className="message">No results found.</div>:optionData.map((item) => (
|
||||||
|
<Dropdown.Item key={item.value} data-tip data-for={tooltipID}>
|
||||||
|
<Checkbox label={item.text} value={item.value} onClick={ChangeValue} checked={props.filterLineValue.value.split(',').includes(item.value)} />
|
||||||
|
</Dropdown.Item>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</Dropdown.Menu>
|
||||||
|
</Dropdown>
|
||||||
|
{
|
||||||
|
optionData.length === 0 ? null : <ReactToolTip className="tooltip_box" id={tooltipID} place="right" effect="solid">{optionText}</ReactToolTip>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
86
src/components/SpecialEffect.js
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
import React, { useEffect, useState } from 'react';
|
||||||
|
|
||||||
|
export const FlowerPetals = (props) => {
|
||||||
|
useEffect(() => {
|
||||||
|
// 화면에 꽃가루 뿌리기
|
||||||
|
const intervalId = setInterval(() => {
|
||||||
|
const petal = document.createElement('span');
|
||||||
|
petal.classList.add('petal');
|
||||||
|
petal.style.left = `${Math.random() * 100}vw`;
|
||||||
|
petal.style.animationDuration = `${Math.random() * 3 + 2}s`;
|
||||||
|
petal.style.backgroundColor = getRandomColor();
|
||||||
|
//background-color: #ffccff; /* 꽃가루 색상 설정 */
|
||||||
|
|
||||||
|
document.body.appendChild(petal);
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
petal.remove();
|
||||||
|
}, 5000);
|
||||||
|
}, 100);
|
||||||
|
|
||||||
|
// 언마운트 시 꽃가루 효과 정리
|
||||||
|
return () => {
|
||||||
|
clearInterval(intervalId);
|
||||||
|
cleanUpPetals();
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const getRandomColor = () => {
|
||||||
|
const letters = '0123456789ABCDEF';
|
||||||
|
let color = '#';
|
||||||
|
for (let i = 0; i < 6; i++) {
|
||||||
|
color += letters[Math.floor(Math.random() * 16)];
|
||||||
|
}
|
||||||
|
return color;
|
||||||
|
};
|
||||||
|
|
||||||
|
const cleanUpPetals = () => {
|
||||||
|
const petals = document.querySelectorAll('.petal');
|
||||||
|
petals.forEach((petal) => {
|
||||||
|
petal.remove();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const KringEffect = (props) => {
|
||||||
|
useEffect(() => {
|
||||||
|
// 화면에 이모티콘 뿌리기
|
||||||
|
const intervalId = setInterval(() => {
|
||||||
|
const kringImg = document.createElement('img');
|
||||||
|
kringImg.classList.add('kring');
|
||||||
|
kringImg.style.left = `${Math.random() * 100}vw`;
|
||||||
|
kringImg.style.animationDuration = `${Math.random() * 3 + 2}s`;
|
||||||
|
kringImg.src = require('../resources/images/kring/'+getRandomEmotion());
|
||||||
|
|
||||||
|
document.body.appendChild(kringImg);
|
||||||
|
|
||||||
|
//if(window.innerHeight <= kringImg.getBoundingClientRect().bottom){
|
||||||
|
// kringImg.src = require('../resources/images/kring/boom.png');
|
||||||
|
//}
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
kringImg.remove();
|
||||||
|
}, 5000);
|
||||||
|
}, 250);
|
||||||
|
|
||||||
|
// 언마운트 시 이모티콘 정리
|
||||||
|
return () => {
|
||||||
|
clearInterval(intervalId);
|
||||||
|
cleanUpKrings();
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const getRandomEmotion = () => {
|
||||||
|
const emotion = ['kring_1.png', 'kring_2.png', 'kring_3.png', 'kring_4.png', 'kring_5.png', 'kring_6.png', 'kring_7.png', 'kring_8.png', 'kring_9.png', 'kring_10.png', 'kring_11.png'];
|
||||||
|
const randomImg = Math.floor(Math.random() * emotion.length);
|
||||||
|
return emotion[randomImg];
|
||||||
|
};
|
||||||
|
const cleanUpKrings = () => {
|
||||||
|
const kringImgs = document.querySelectorAll('.kring');
|
||||||
|
kringImgs.forEach((kringImg) => {
|
||||||
|
kringImg.remove();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
return null;
|
||||||
|
};
|
||||||
288
src/components/Table.js
Normal file
@@ -0,0 +1,288 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import ReactWordcloud from 'react-wordcloud'
|
||||||
|
import {isNumeric} from '../modules/Functions'
|
||||||
|
|
||||||
|
export const ResultTitle = React.memo((props) => {
|
||||||
|
return (
|
||||||
|
<h3 dangerouslySetInnerHTML={{__html: props.resultTitle.replace(/</g,'<').replace(/>/g,'>').replace(/<[^>]*>?/g, '').replace(/ /gi,'')}}></h3>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
const QuotaThTd = (props) => {
|
||||||
|
const options = props.options;
|
||||||
|
if(options.cellValue === ''){
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
if(options.type ==='th'){
|
||||||
|
return <th rowSpan={options.rowSapn} colSpan={options.colSapn} className={options.className} style={options.style}>{options.cellValue}</th>
|
||||||
|
}
|
||||||
|
|
||||||
|
let spanClass = '';
|
||||||
|
let gaugeStyle = '';
|
||||||
|
let quotaVlueArray = options.cellValue.split('/');
|
||||||
|
if (+quotaVlueArray[2] < 100) {
|
||||||
|
spanClass = "num_green"
|
||||||
|
gaugeStyle={"background": "linear-gradient(to right, #F0F7DF " + quotaVlueArray[2] + "%, #FAFAFA 0%)"};
|
||||||
|
}
|
||||||
|
else if(+quotaVlueArray[2] > 100) {
|
||||||
|
spanClass = "num_red"
|
||||||
|
gaugeStyle={"background": "linear-gradient(to right, #FFE5E1 " + quotaVlueArray[2] + "%, #FAFAFA 0%)"};
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
spanClass = "num_blue"
|
||||||
|
gaugeStyle={"background": "linear-gradient(to right, #E1EDFF " + quotaVlueArray[2] + "%, #FAFAFA 0%)"};
|
||||||
|
}
|
||||||
|
|
||||||
|
if(quotaVlueArray.length > 3){
|
||||||
|
//quotaVlueArray[3] //IS_USE
|
||||||
|
//quotaVlueArray[4] //Quota table row id
|
||||||
|
}
|
||||||
|
|
||||||
|
return(
|
||||||
|
<td rowSpan={options.rowSapn} colSpan={options.colSapn} className={options.className} style={gaugeStyle}><span className={spanClass}>{quotaVlueArray[0]}</span>/{quotaVlueArray[1]}</td>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
const ThTd = (props) => {
|
||||||
|
const options = props.options;
|
||||||
|
let cellValue = options.cellValue;
|
||||||
|
if(!options){
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
else if(cellValue.toString().match(/(\d+\.\d+)/g) !== null && options.type === 'td'){
|
||||||
|
cellValue = parseFloat(cellValue).toFixed(options.fixedValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
return(
|
||||||
|
options.type ==='th'
|
||||||
|
? <th rowSpan={options.rowSapn} colSpan={options.colSapn} className={options.className} style={options.style} dangerouslySetInnerHTML={{__html: options.cellValue}}/>
|
||||||
|
: <td rowSpan={options.rowSapn} colSpan={options.colSapn} className={options.className} style={options.style} dangerouslySetInnerHTML={{__html: cellValue}}/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export const ResultCloud = React.memo((props) =>{
|
||||||
|
let tableArray = [];
|
||||||
|
let wordArray = [];
|
||||||
|
|
||||||
|
if(Array.isArray(props.resultData) === true){
|
||||||
|
let i = 0;
|
||||||
|
props.resultData.forEach(jsonData => {
|
||||||
|
if(isNumeric(jsonData.Count)){
|
||||||
|
const wordJson = {text: jsonData.Text,value: jsonData.Count}
|
||||||
|
wordArray.push(wordJson)
|
||||||
|
if(i < 10){
|
||||||
|
tableArray.push(wordJson)
|
||||||
|
}
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
const options = {
|
||||||
|
colors: ["#FF2500", "#0066FF", "#1CAE81", "#94C81A","#FFBF33","#B066FA","#FF7386"],
|
||||||
|
enableTooltip: false,
|
||||||
|
deterministic: false,
|
||||||
|
fontFamily: "Montserrat",
|
||||||
|
fontSizes: [10, 100],
|
||||||
|
fontStyle: "normal",
|
||||||
|
fontWeight: "700",
|
||||||
|
padding: 1,
|
||||||
|
rotations: 0,
|
||||||
|
rotationAngles: [0, 90],
|
||||||
|
scale: "sqrt",
|
||||||
|
//transitionDuration: 1000
|
||||||
|
};
|
||||||
|
|
||||||
|
return(
|
||||||
|
<div className="word_wrap">
|
||||||
|
<div className="dropped_word" ref={props.wcr}>
|
||||||
|
<ReactWordcloud options={options} words={wordArray} />
|
||||||
|
</div>
|
||||||
|
<div className="word_rank">
|
||||||
|
<h3>Top 10</h3>
|
||||||
|
{/*<span>워드클라우드에 대한 설명 설명</span>*/}
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
{
|
||||||
|
tableArray.map((itme,index)=>(
|
||||||
|
<tr key={"wtr_"+index}>
|
||||||
|
<td>{(index+1)}</td>
|
||||||
|
<td>{itme.text}</td>
|
||||||
|
<td className="main_green">({itme.value})</td>
|
||||||
|
</tr>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
});
|
||||||
|
|
||||||
|
export const ResultTable = React.memo((props) => {
|
||||||
|
let headerArray = [];
|
||||||
|
let bodyArray = [];
|
||||||
|
|
||||||
|
if(Array.isArray(props.resultData) === true){
|
||||||
|
let headerRow = 0;
|
||||||
|
let i = 0;
|
||||||
|
props.resultData.forEach(jsonData => {
|
||||||
|
let j = 0;
|
||||||
|
let mean = 0;
|
||||||
|
let eleArray = [];
|
||||||
|
let fixedValue = 1;
|
||||||
|
|
||||||
|
Object.keys(jsonData).forEach(jsonKey => {
|
||||||
|
let eleJson = {}
|
||||||
|
let cellValue = jsonData[jsonKey]===null?"":jsonData[jsonKey];
|
||||||
|
let type = 'td';
|
||||||
|
let rowSapn = 1;
|
||||||
|
let colSapn = 1;
|
||||||
|
let className = '';
|
||||||
|
let cssStyle = '';
|
||||||
|
|
||||||
|
if(cellValue.toString().includes('|')){
|
||||||
|
const splitArray = cellValue.split('|');
|
||||||
|
cellValue = splitArray[0];
|
||||||
|
rowSapn = +splitArray[1]>0?+splitArray[1]:1;
|
||||||
|
colSapn = +splitArray[2]>0?+splitArray[2]:1;
|
||||||
|
|
||||||
|
if(i === 0 && j === 0){
|
||||||
|
className = 'first_th';
|
||||||
|
if (props.isTurn) {
|
||||||
|
headerRow = colSapn;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
headerRow = rowSapn;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if((props.isTurn && headerRow > j) || (!props.isTurn && j === 0)){
|
||||||
|
type = 'th';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (props.isTurn && i === 0 && cellValue === "Mean") {
|
||||||
|
mean = i;
|
||||||
|
}
|
||||||
|
else if ((!props.isTurn && j === 0 && cellValue === "Mean") || (props.isTurn && j === mean)) {
|
||||||
|
fixedValue = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eleJson = {
|
||||||
|
"type" : type,
|
||||||
|
"cellValue" : cellValue,
|
||||||
|
"rowSapn" : rowSapn,
|
||||||
|
"colSapn" : colSapn,
|
||||||
|
"className" : className,
|
||||||
|
"cssStyle" : cssStyle,
|
||||||
|
"fixedValue":fixedValue
|
||||||
|
}
|
||||||
|
|
||||||
|
eleArray.push(eleJson)
|
||||||
|
j++;
|
||||||
|
});
|
||||||
|
|
||||||
|
if(!props.isTurn && headerRow > i){
|
||||||
|
headerArray.push(eleArray);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
bodyArray.push(eleArray);
|
||||||
|
}
|
||||||
|
i++;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="table_wrap">
|
||||||
|
{
|
||||||
|
Array.isArray(props.resultData) === true ?
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
{
|
||||||
|
headerArray.map((eleArray, i) => (
|
||||||
|
<tr key={"head_"+i}>
|
||||||
|
{
|
||||||
|
eleArray.map((ele, j) => (
|
||||||
|
(i > 0 || j > 0) && ele.cellValue === '' ? null
|
||||||
|
: <ThTd key={"head_"+i+"_"+j} options={ele} />
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</tr>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{
|
||||||
|
bodyArray.map((eleArray, i) => (
|
||||||
|
<tr key={"body_"+i}>
|
||||||
|
{
|
||||||
|
props.isQuota?
|
||||||
|
eleArray.map((ele, j) => (
|
||||||
|
<QuotaThTd key={"body_"+i+"_"+j} options={ele} />
|
||||||
|
))
|
||||||
|
:
|
||||||
|
eleArray.map((ele, j) => (
|
||||||
|
ele.cellValue === ''?null:<ThTd key={"body_"+i+"_"+j} options={ele} />
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</tr>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
:
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr style={{border:'1px solid #E1E1E1'}}>
|
||||||
|
<td>{props.resultData}</td>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
export const CurrentTable = React.memo((props) => {
|
||||||
|
let headerArray = props.header;
|
||||||
|
let bodyArray = props.body;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="chart_table_con">
|
||||||
|
<div className="chart_table_box" style={{...props.style}}>
|
||||||
|
{
|
||||||
|
Array.isArray(headerArray)?
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
{
|
||||||
|
headerArray.map((ele,i) =>(
|
||||||
|
<th key={"header_"+i}>{ele}</th>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{
|
||||||
|
Array.isArray(bodyArray)?
|
||||||
|
bodyArray.map((eleArray,i) =>(
|
||||||
|
<tr key={"body_"+i}>
|
||||||
|
{
|
||||||
|
eleArray.map((ele, j) => (
|
||||||
|
<td key={"body_"+i+"_"+j} style={{borderLeft: '1px solid #d0d0d0'}}>{ele}</td>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</tr>
|
||||||
|
))
|
||||||
|
:null
|
||||||
|
}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
:null
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
});
|
||||||
38
src/index.js
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import React, { Suspense } from 'react';
|
||||||
|
import ReactDOM from 'react-dom';
|
||||||
|
import { BrowserRouter } from 'react-router-dom';
|
||||||
|
import { RecoilRoot } from 'recoil';
|
||||||
|
import { QueryClient, QueryClientProvider } from 'react-query';
|
||||||
|
import { ReactQueryDevtools } from "react-query/devtools";
|
||||||
|
import { QueryLoading } from './components/Loading';
|
||||||
|
import Header from './components/Header';
|
||||||
|
import App from './App';
|
||||||
|
|
||||||
|
const queryClient = new QueryClient({
|
||||||
|
defaultOptions:{
|
||||||
|
queries:{
|
||||||
|
suspense:true,
|
||||||
|
refetchOnWindowFocus:false,
|
||||||
|
staleTime: 1*60*60*1000,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
ReactDOM.render(
|
||||||
|
<React.StrictMode>
|
||||||
|
<BrowserRouter>
|
||||||
|
<RecoilRoot>
|
||||||
|
<QueryClientProvider client={queryClient}>
|
||||||
|
<Header/>
|
||||||
|
<Suspense fallback={<QueryLoading/>}>
|
||||||
|
<App />
|
||||||
|
</Suspense>
|
||||||
|
{
|
||||||
|
//<ReactQueryDevtools initialIsOpen={true}/>
|
||||||
|
}
|
||||||
|
</QueryClientProvider>
|
||||||
|
</RecoilRoot>
|
||||||
|
</BrowserRouter>
|
||||||
|
</React.StrictMode>,
|
||||||
|
document.getElementById("root")
|
||||||
|
);
|
||||||
107
src/modules/Axios.js
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
import axios from 'axios'
|
||||||
|
|
||||||
|
// Base URL
|
||||||
|
export const URL_KART_KON = "https://rapi.kric.com/api/v1";
|
||||||
|
export const URL_KART_NS = "https://kapi.kric.com/api/v2";
|
||||||
|
//export const URL_KART_NS = "https://localhost:7042/api/v2";
|
||||||
|
|
||||||
|
export const axiosOption = {
|
||||||
|
url:'',
|
||||||
|
method:'',
|
||||||
|
responseType: 'json',
|
||||||
|
headers:{},
|
||||||
|
param:{},
|
||||||
|
data:{},
|
||||||
|
useAuth:true
|
||||||
|
}
|
||||||
|
|
||||||
|
const axiosResult = {
|
||||||
|
status : 0,
|
||||||
|
headers : '',
|
||||||
|
data : '',
|
||||||
|
message : ''
|
||||||
|
}
|
||||||
|
|
||||||
|
export const AsyncAxios = (options = axiosOption) => {
|
||||||
|
const result = JSON.parse(JSON.stringify(axiosResult));
|
||||||
|
|
||||||
|
return axios(options)
|
||||||
|
.then(response => {
|
||||||
|
result.status = response.status;
|
||||||
|
result.headers = response.headers;
|
||||||
|
result.data = response.data;
|
||||||
|
result.message = '';
|
||||||
|
return result;
|
||||||
|
})
|
||||||
|
.catch((Error)=>{
|
||||||
|
if(Error.response !== undefined){
|
||||||
|
result.status = Error.response.status ? Error.response.status : 0;
|
||||||
|
result.headers = '';
|
||||||
|
result.data = Error.response.data ? Error.response.data : '';
|
||||||
|
}
|
||||||
|
result.message = Error.message;
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}).finally(() => {
|
||||||
|
if(result.status === 401 && options.useAuth){
|
||||||
|
const url = "/Logout";
|
||||||
|
const link = document.createElement('a');
|
||||||
|
link.href = url;
|
||||||
|
document.body.appendChild(link);
|
||||||
|
link.click();
|
||||||
|
link.remove();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export const SyncAxios = async(options = axiosOption) =>{
|
||||||
|
const result = JSON.parse(JSON.stringify(axiosResult));
|
||||||
|
|
||||||
|
await axios(options)
|
||||||
|
.then(response => {
|
||||||
|
result.status = response.status;
|
||||||
|
result.headers = response.headers;
|
||||||
|
result.data = response.data;
|
||||||
|
result.message = '';
|
||||||
|
})
|
||||||
|
.catch((Error)=>{
|
||||||
|
if(Error.response != undefined){
|
||||||
|
result.status = Error.response.status ? Error.response.status : 0;
|
||||||
|
result.headers = '';
|
||||||
|
result.data = Error.response.data ? Error.response.data : '';
|
||||||
|
}
|
||||||
|
result.message = Error.message;
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
if(result.status === 401 && options.useAuth){
|
||||||
|
const url = "/Logout";
|
||||||
|
const link = document.createElement('a');
|
||||||
|
link.href = url;
|
||||||
|
document.body.appendChild(link);
|
||||||
|
link.click();
|
||||||
|
link.remove();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
export const SetOption = (useAuth ,url, method, headers = {}, body = {}, param = {}) =>{
|
||||||
|
const options = JSON.parse(JSON.stringify(axiosOption));
|
||||||
|
options.useAuth = useAuth;
|
||||||
|
options.url = url;
|
||||||
|
options.method = method;
|
||||||
|
Object.keys(headers).forEach(function(key) {
|
||||||
|
options.headers[key] = headers[key];
|
||||||
|
});
|
||||||
|
|
||||||
|
Object.keys(body).forEach(function(key) {
|
||||||
|
options.data[key] = body[key];
|
||||||
|
});
|
||||||
|
|
||||||
|
Object.keys(param).forEach(function(key) {
|
||||||
|
options.param[key] = param[key];
|
||||||
|
});
|
||||||
|
|
||||||
|
return options;
|
||||||
|
}
|
||||||
40
src/modules/Functions.js
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
export const isNumeric = (str) => {
|
||||||
|
if (typeof str != "string") return false // we only process strings!
|
||||||
|
return !isNaN(str) && // use type coercion to parse the _entirety_ of the string (`parseFloat` alone does not do this)...
|
||||||
|
!isNaN(parseFloat(str)) // ...and ensure strings of whitespace fail
|
||||||
|
}
|
||||||
|
|
||||||
|
export const DateTimeString = () => {
|
||||||
|
const today = new Date();
|
||||||
|
let year = today.getFullYear();
|
||||||
|
let month = (today.getMonth() + 1);
|
||||||
|
let day = today.getDate();
|
||||||
|
let hour = today.getHours();
|
||||||
|
let minute = today.getMinutes();
|
||||||
|
let second = today.getSeconds();
|
||||||
|
|
||||||
|
month = month < 10 ? "0"+month : month;
|
||||||
|
day = day < 10 ? "0"+day : day;
|
||||||
|
hour = hour < 10 ? "0"+hour : hour;
|
||||||
|
minute = minute < 10 ? "0"+minute : minute;
|
||||||
|
second = second < 10 ? "0"+second : second;
|
||||||
|
|
||||||
|
let returnString = year+month+day+"_"+hour+minute+second;
|
||||||
|
return returnString;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const DownloadFiles = (disposition, fileData) => {
|
||||||
|
//const fileName = getFileName(response.headers['content-disposition']);
|
||||||
|
const fileName = disposition;
|
||||||
|
const url = window.URL.createObjectURL(new Blob([fileData]));
|
||||||
|
const link = document.createElement('a');
|
||||||
|
link.href = url;
|
||||||
|
link.setAttribute('download', fileName);
|
||||||
|
document.body.appendChild(link);
|
||||||
|
link.click();
|
||||||
|
link.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
export const GetRandomID = (idLength) => {
|
||||||
|
return Math.random().toString(36).substring(2, idLength+2);
|
||||||
|
}
|
||||||
21
src/modules/Log.js
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import {SetOption,SyncAxios,URL_KART_NS} from './Axios'
|
||||||
|
|
||||||
|
export const SiteLog = (logTitle, logContent, token, skey) =>{
|
||||||
|
const url = URL_KART_NS + '/log/site';
|
||||||
|
const method = 'POST';
|
||||||
|
const headers = {'Accept':'application/json', 'Content-Type': 'application/json;charset=UTP-8', "token":token, "skey":skey};
|
||||||
|
const body = {"logTitle": logTitle, "logContent": logContent};
|
||||||
|
const options = SetOption(true, url, method, headers, body);
|
||||||
|
SyncAxios(options).then(response => {});
|
||||||
|
}
|
||||||
|
|
||||||
|
export const VisitLog = (logContent, token, skey = '') =>{
|
||||||
|
if(!skey) return false;
|
||||||
|
|
||||||
|
const url = URL_KART_NS + '/log/visit';
|
||||||
|
const method = 'POST';
|
||||||
|
const headers = {'Accept':'application/json', 'Content-Type': 'application/json;charset=UTP-8', "token":token, "skey":skey};
|
||||||
|
const body = {"logContent": logContent};
|
||||||
|
const options = SetOption(true, url, method, headers, body);
|
||||||
|
SyncAxios(options).then(response => {});
|
||||||
|
}
|
||||||
50
src/modules/SelectProject.js
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
import {SetOption,SyncAxios,URL_KART_KON,URL_KART_NS} from '../modules/Axios';
|
||||||
|
|
||||||
|
const makeQuestionText = (vriableName, explain) =>{
|
||||||
|
let questionText = vriableName + ". " + explain.replace(/</g,'<').replace(/>/g,'>').replace(/<[^>]*>?/g, '').replace(/ /gi,'');
|
||||||
|
return questionText;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getQuestionList = (token, skey, ver, setQuestionList) =>{
|
||||||
|
let url = '';
|
||||||
|
if(ver.toUpperCase() === "NEWSSAK"){
|
||||||
|
url = URL_KART_NS + '/project/question';
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
url = URL_KART_KON + '/project/question';
|
||||||
|
}
|
||||||
|
|
||||||
|
const method = 'GET';
|
||||||
|
const headers = {'Accept':'application/json', 'Content-Type': 'application/json;charset=UTP-8', "token":token, "skey":skey};
|
||||||
|
const body = {};
|
||||||
|
const options = SetOption(true, url, method, headers, body);
|
||||||
|
SyncAxios(options).then(response => {
|
||||||
|
if(response.data.length > 0){
|
||||||
|
let responseData = [...response.data];
|
||||||
|
responseData.forEach((ele, i) => {
|
||||||
|
if(ver.toUpperCase() === "NEWSSAK"){
|
||||||
|
ele.VIEWTITLE = makeQuestionText(ele.Q_ID, ele.EXPLAIN);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
ele.VIEWTITLE = makeQuestionText(ele.VARIABLE, ele.EXPLAIN);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
setQuestionList(responseData);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const SelectProject = (skey, title, ver, onlyPage, path, setPtoken, setQuestionList) =>{
|
||||||
|
setPtoken({
|
||||||
|
skey : skey,
|
||||||
|
title : title,
|
||||||
|
ver : ver,
|
||||||
|
onlyPage : onlyPage,
|
||||||
|
path:path
|
||||||
|
});
|
||||||
|
|
||||||
|
if(skey === ''){
|
||||||
|
setQuestionList([]);
|
||||||
|
}
|
||||||
|
}
|
||||||
3587
src/resources/css/custom.css
Normal file
229
src/resources/css/guide.css
Normal file
@@ -0,0 +1,229 @@
|
|||||||
|
@charset "utf-8";
|
||||||
|
/* ============================================================
|
||||||
|
Reset css : 리셋 css
|
||||||
|
============================================================ */
|
||||||
|
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
*{ box-sizing: border-box;}
|
||||||
|
|
||||||
|
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: #000;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
ol, ul, dl, dt, dd, li {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
blockquote, q {
|
||||||
|
quotes: none;
|
||||||
|
}
|
||||||
|
blockquote:before, blockquote:after,
|
||||||
|
q:before, q:after {
|
||||||
|
content: '';
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
|
table caption {
|
||||||
|
position: absolute;
|
||||||
|
top: -9999px;
|
||||||
|
left: -9999px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================
|
||||||
|
Skip naviagtion : 스킵네비게이션
|
||||||
|
============================================================ */
|
||||||
|
.skip_nav a {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: -9999px;
|
||||||
|
padding: 10px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background-color: rgba(0,0,0,.6);
|
||||||
|
border: none;
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.skip_nav a:focus,
|
||||||
|
.skip_nav a:hover,
|
||||||
|
.skip_nav a:active {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================
|
||||||
|
Font : 폰트타입
|
||||||
|
============================================================ */
|
||||||
|
|
||||||
|
/* @font-face {
|
||||||
|
font-family: "NotoSansKR";
|
||||||
|
src: url("../font/NotoSans-Regular.ttf") format("ttf"),
|
||||||
|
url("../font/NotoSans-Medium.ttf") format("ttf"),
|
||||||
|
url("../font/NotoSans-bold.ttf") format("ttf"),
|
||||||
|
url("../font/NotoSans-Black.ttf") format("ttf");
|
||||||
|
font-style: normal;
|
||||||
|
} */
|
||||||
|
|
||||||
|
/* @font-face {
|
||||||
|
font-family: 'CenturyGothic';
|
||||||
|
src: url('../font/CenturyGothic-Regular.ttf') format('ttf'),
|
||||||
|
url('../font/CenturyGothic-Bold.TTF') format('ttf');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
unicode-range:U+0041-005A, U+0061-007A;
|
||||||
|
} */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* kon report : button guide */
|
||||||
|
|
||||||
|
.container { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; padding: 100px; background-color: #e7e6e6; height: 100vh;}
|
||||||
|
button {
|
||||||
|
border: none;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 113px;
|
||||||
|
height: 28px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.green {
|
||||||
|
background-color: #17BBB0;
|
||||||
|
border-radius: 52px;
|
||||||
|
}
|
||||||
|
.green_btn {
|
||||||
|
width: 156px;
|
||||||
|
height: 28px;
|
||||||
|
background-color: #17BBB0;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 52px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.url_copy a {
|
||||||
|
height: 28px;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 15px;
|
||||||
|
color: #17BBB0;
|
||||||
|
padding: 6px 14px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-left: 34px;
|
||||||
|
background: #F5F5F5 url(../images/ico/ic_copy.svg) no-repeat left 12px center/18px 18px;
|
||||||
|
}
|
||||||
|
.round_btn {
|
||||||
|
border-radius: 52px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.square_btn {
|
||||||
|
width: 156px;
|
||||||
|
height: 50px;
|
||||||
|
background-color: #17BBB0;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.logout {
|
||||||
|
width: 113px;
|
||||||
|
height: 28px;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 17.17px;
|
||||||
|
}
|
||||||
|
.tab_side_btns {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.tab_side_btns button {
|
||||||
|
background: #fff url(../images/ic_reset_16.png) no-repeat left 16px center/18px 17px;
|
||||||
|
font-size: 0.729vw;
|
||||||
|
color: #9E9E9E;
|
||||||
|
font-weight: 700;
|
||||||
|
padding-left: 18px;
|
||||||
|
}
|
||||||
|
.tab_side_btns button:last-child {
|
||||||
|
background: #fff url(../images/ic_bookmark_14.png) no-repeat left 16px center/11px 14px;
|
||||||
|
padding-left: 21px;
|
||||||
|
}
|
||||||
|
.rt03 .statistic_wrap .round_btn {
|
||||||
|
color: #17BBB0;
|
||||||
|
background: #fff url(../images/ic_plus.png) no-repeat left 20px center/12px;
|
||||||
|
height: 28px;
|
||||||
|
font-weight: 700;
|
||||||
|
padding-left: 26px;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.statistic_wrap .export_btn {
|
||||||
|
background: #F5F5F5 url(../images/ic_exports.png) no-repeat left 20px center/15px;
|
||||||
|
color: #9E9E9E;
|
||||||
|
font-size: 16px;
|
||||||
|
filter: grayscale(1);
|
||||||
|
padding-left: 26px;
|
||||||
|
/* position: absolute; */
|
||||||
|
top: 92px;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
.text_center .square_btn {
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
color: #9E9E9E;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.data_list_title button {
|
||||||
|
color: #17BBB0;
|
||||||
|
font-weight: 700;
|
||||||
|
background: #fff url(../images/update_icon.png) no-repeat left 20px center/16px 16px;
|
||||||
|
width: 112px;
|
||||||
|
height: 28px;
|
||||||
|
padding-left: 26px;
|
||||||
|
}
|
||||||
|
.statistic_wrap .round_btn {
|
||||||
|
width: 113px;
|
||||||
|
height: 42px;
|
||||||
|
background: #17BBB0 url(../images/ic_plus_s.png) no-repeat left 16px center/12px 12px;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 700;
|
||||||
|
padding-left: 26px;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.import_hd {
|
||||||
|
background: #17BBB0 url(../images/ic_exports_s.png) no-repeat left 20px center/12px;
|
||||||
|
padding-left: 14px;
|
||||||
|
}
|
||||||
|
div > .data_btn:first-child {
|
||||||
|
background: #F5F5F5 url(../images/ic_exports.png) no-repeat left 20px center/15px;
|
||||||
|
}
|
||||||
|
.data_btn {
|
||||||
|
width: 156px;
|
||||||
|
height: 50px;
|
||||||
|
border: none;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 700;
|
||||||
|
background: #F5F5F5 url(../images/ic-imports.png) no-repeat left 20px center/15px;
|
||||||
|
padding-left: 40px;
|
||||||
|
line-height: 44px;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #9E9E9E;
|
||||||
|
filter: grayscale(1);
|
||||||
|
line-height: 50px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.filebox_input {
|
||||||
|
position: absolute;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
1653
src/resources/css/media.css
Normal file
97
src/resources/css/reset.css
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
@charset "utf-8";
|
||||||
|
/* ============================================================
|
||||||
|
Reset css : 리셋 css
|
||||||
|
============================================================ */
|
||||||
|
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
*{ -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
|
||||||
|
|
||||||
|
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: #000;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
ol, ul, dl, dt, dd, li {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
blockquote, q {
|
||||||
|
quotes: none;
|
||||||
|
}
|
||||||
|
blockquote:before, blockquote:after,
|
||||||
|
q:before, q:after {
|
||||||
|
content: '';
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
|
table caption {
|
||||||
|
position: absolute;
|
||||||
|
top: -9999px;
|
||||||
|
left: -9999px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================
|
||||||
|
Skip naviagtion : 스킵네비게이션
|
||||||
|
============================================================ */
|
||||||
|
.skip_nav a {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: -9999px;
|
||||||
|
padding: 10px;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background-color: rgba(0,0,0,.6);
|
||||||
|
border: none;
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.skip_nav a:focus,
|
||||||
|
.skip_nav a:hover,
|
||||||
|
.skip_nav a:active {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================================
|
||||||
|
Font : 폰트타입 변환
|
||||||
|
============================================================ */
|
||||||
|
|
||||||
|
/* @font-face {
|
||||||
|
font-family: "NotoSansKR";
|
||||||
|
src: url("../font/NotoSans-Regular.ttf") format("ttf"),
|
||||||
|
url("../font/NotoSans-Medium.ttf") format("ttf"),
|
||||||
|
url("../font/NotoSans-bold.ttf") format("ttf"),
|
||||||
|
url("../font/NotoSans-Black.ttf") format("ttf");
|
||||||
|
font-style: normal;
|
||||||
|
} */
|
||||||
|
|
||||||
|
/* @font-face {
|
||||||
|
font-family: 'CenturyGothic';
|
||||||
|
src: url('../font/CenturyGothic-Regular.ttf') format('ttf'),
|
||||||
|
url('../font/CenturyGothic-Bold.TTF') format('ttf');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
unicode-range:U+0041-005A, U+0061-007A;
|
||||||
|
} */
|
||||||
|
|
||||||
|
|
||||||
|
/* noto sans */
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@1,900&family=Noto+Sans:wght@300;400;500;600;700;800&display=swap');
|
||||||
|
/* @import url('http://fonts.cdnfonts.com/css/century-gothic'); */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
5
src/resources/css/style.css
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
@charset "utf-8";
|
||||||
|
@import url(reset.css);
|
||||||
|
@import url("https://cdn.jsdelivr.net/npm/semantic-ui/dist/semantic.min.css");
|
||||||
|
@import url(custom.css);
|
||||||
|
@import url(media.css);
|
||||||
BIN
src/resources/font/Century Gothic.ttf
Normal file
BIN
src/resources/font/CenturyGothic-Black.TTF
Normal file
BIN
src/resources/font/CenturyGothic-Bold.TTF
Normal file
BIN
src/resources/font/CenturyGothic-Regular.ttf
Normal file
BIN
src/resources/font/GOTHIC.TTF
Normal file
BIN
src/resources/font/GOTHICBI.TTF
Normal file
BIN
src/resources/font/GOTHICI.TTF
Normal file
BIN
src/resources/font/NotoSans-Black.ttf
Normal file
BIN
src/resources/font/NotoSans-Bold.ttf
Normal file
BIN
src/resources/font/NotoSans-Medium.ttf
Normal file
BIN
src/resources/font/NotoSans-Regular.ttf
Normal file
BIN
src/resources/font/centurygothic-bold-webfont.woff
Normal file
BIN
src/resources/font/centurygothic-bold-webfont.woff2
Normal file
BIN
src/resources/images/acc_arrow_close.png
Normal file
|
After Width: | Height: | Size: 289 B |
BIN
src/resources/images/acc_arrow_close_s.png
Normal file
|
After Width: | Height: | Size: 238 B |
BIN
src/resources/images/acc_arrow_open.png
Normal file
|
After Width: | Height: | Size: 317 B |
BIN
src/resources/images/acc_arrow_open_s.png
Normal file
|
After Width: | Height: | Size: 331 B |
BIN
src/resources/images/arrow_l.png
Normal file
|
After Width: | Height: | Size: 303 B |
BIN
src/resources/images/arrow_r.png
Normal file
|
After Width: | Height: | Size: 311 B |
14
src/resources/images/bg/bg_login_1920.svg
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<svg width="1921" height="814" viewBox="0 0 1921 814" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path opacity="0.19" d="M1 36H1921V479.775C1921 479.775 1582.1 697.726 938.985 598.508C295.871 499.29 1 814 1 814V36Z" fill="url(#paint0_linear_1227_672)"/>
|
||||||
|
<path d="M0 0H1920V538C1920 538 1575.09 692.18 931.981 592.922C288.867 493.664 0 735 0 735V0Z" fill="url(#paint1_linear_1227_672)"/>
|
||||||
|
<defs>
|
||||||
|
<linearGradient id="paint0_linear_1227_672" x1="34.3565" y1="814" x2="376.218" y2="-192.543" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#94C81A"/>
|
||||||
|
<stop offset="1" stop-color="#1CAE81"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="paint1_linear_1227_672" x1="33.3565" y1="735" x2="341.903" y2="-226.601" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#94C81A"/>
|
||||||
|
<stop offset="1" stop-color="#1CAE81"/>
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 838 B |
9
src/resources/images/bg/drop_word.svg
Normal file
|
After Width: | Height: | Size: 154 KiB |
BIN
src/resources/images/btn_left.png
Normal file
|
After Width: | Height: | Size: 758 B |
BIN
src/resources/images/btn_right.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
src/resources/images/ic_banner_36.png
Normal file
|
After Width: | Height: | Size: 681 B |
BIN
src/resources/images/ic_bookmark_14.png
Normal file
|
After Width: | Height: | Size: 284 B |
BIN
src/resources/images/ic_close.png
Normal file
|
After Width: | Height: | Size: 256 B |
BIN
src/resources/images/ic_close_w.png
Normal file
|
After Width: | Height: | Size: 240 B |
BIN
src/resources/images/ic_exports.png
Normal file
|
After Width: | Height: | Size: 356 B |
BIN
src/resources/images/ic_exports_s.png
Normal file
|
After Width: | Height: | Size: 306 B |
BIN
src/resources/images/ic_filter_36.png
Normal file
|
After Width: | Height: | Size: 618 B |
BIN
src/resources/images/ic_filter_pop.png
Normal file
|
After Width: | Height: | Size: 613 B |
BIN
src/resources/images/ic_gnb1_20-1.png
Normal file
|
After Width: | Height: | Size: 364 B |
BIN
src/resources/images/ic_gnb1_20.png
Normal file
|
After Width: | Height: | Size: 332 B |
BIN
src/resources/images/ic_gnb2_20-1.png
Normal file
|
After Width: | Height: | Size: 550 B |
BIN
src/resources/images/ic_gnb2_20.png
Normal file
|
After Width: | Height: | Size: 517 B |
BIN
src/resources/images/ic_gnb3_20-1.png
Normal file
|
After Width: | Height: | Size: 441 B |
BIN
src/resources/images/ic_gnb3_20.png
Normal file
|
After Width: | Height: | Size: 418 B |
BIN
src/resources/images/ic_gnb4_20-1.png
Normal file
|
After Width: | Height: | Size: 344 B |
BIN
src/resources/images/ic_gnb4_20.png
Normal file
|
After Width: | Height: | Size: 326 B |
BIN
src/resources/images/ic_gnb5_20-1.png
Normal file
|
After Width: | Height: | Size: 399 B |
BIN
src/resources/images/ic_gnb5_20.png
Normal file
|
After Width: | Height: | Size: 387 B |
BIN
src/resources/images/ic_gnb6_20-1.png
Normal file
|
After Width: | Height: | Size: 656 B |
BIN
src/resources/images/ic_gnb6_20.png
Normal file
|
After Width: | Height: | Size: 610 B |
BIN
src/resources/images/ic_imports.png
Normal file
|
After Width: | Height: | Size: 363 B |
BIN
src/resources/images/ic_imports_s.png
Normal file
|
After Width: | Height: | Size: 252 B |
BIN
src/resources/images/ic_minus.png
Normal file
|
After Width: | Height: | Size: 415 B |
BIN
src/resources/images/ic_plus.png
Normal file
|
After Width: | Height: | Size: 233 B |
BIN
src/resources/images/ic_plus_bl.png
Normal file
|
After Width: | Height: | Size: 291 B |
BIN
src/resources/images/ic_plus_filter.png
Normal file
|
After Width: | Height: | Size: 512 B |
BIN
src/resources/images/ic_plus_s.png
Normal file
|
After Width: | Height: | Size: 228 B |
BIN
src/resources/images/ic_re.png
Normal file
|
After Width: | Height: | Size: 527 B |
BIN
src/resources/images/ic_reset_16.png
Normal file
|
After Width: | Height: | Size: 412 B |
BIN
src/resources/images/ic_return.png
Normal file
|
After Width: | Height: | Size: 618 B |
3
src/resources/images/ico/bx_menu.svg
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M2 5H22V7.5H2V5ZM2 11.25H22V13.75H2V11.25ZM2 17.5H22V20H2V17.5Z" fill="#9E9E9E"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 194 B |
4
src/resources/images/ico/c.svg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<rect width="36" height="36" rx="9" fill="#1CAE81"/>
|
||||||
|
<path d="M14.9843 16.4371L17.0835 18.5454V9.75457C17.0835 9.51146 17.1801 9.2783 17.352 9.10639C17.5239 8.93448 17.757 8.83791 18.0002 8.83791C18.2433 8.83791 18.4764 8.93448 18.6483 9.10639C18.8203 9.2783 18.9168 9.51146 18.9168 9.75457V18.5454L21.016 16.4371C21.1012 16.3512 21.2026 16.283 21.3143 16.2364C21.426 16.1899 21.5458 16.1659 21.6668 16.1659C21.7878 16.1659 21.9077 16.1899 22.0194 16.2364C22.1311 16.283 22.2324 16.3512 22.3177 16.4371C22.4036 16.5223 22.4718 16.6237 22.5183 16.7354C22.5649 16.8471 22.5888 16.9669 22.5888 17.0879C22.5888 17.2089 22.5649 17.3287 22.5183 17.4404C22.4718 17.5521 22.4036 17.6535 22.3177 17.7387L18.651 21.4054C18.5638 21.4889 18.461 21.5543 18.3485 21.5979C18.1253 21.6896 17.875 21.6896 17.6518 21.5979C17.5393 21.5543 17.4365 21.4889 17.3493 21.4054L13.6827 17.7387C13.5972 17.6533 13.5294 17.5518 13.4831 17.4401C13.4369 17.3285 13.4131 17.2088 13.4131 17.0879C13.4131 16.967 13.4369 16.8473 13.4831 16.7357C13.5294 16.624 13.5972 16.5225 13.6827 16.4371C13.7681 16.3516 13.8696 16.2838 13.9813 16.2376C14.0929 16.1913 14.2126 16.1675 14.3335 16.1675C14.4544 16.1675 14.5741 16.1913 14.6857 16.2376C14.7974 16.2838 14.8989 16.3516 14.9843 16.4371ZM26.2502 19.8333C26.007 19.8333 25.7739 19.9299 25.602 20.1018C25.4301 20.2737 25.3335 20.5069 25.3335 20.75V24.4167C25.3335 24.6598 25.2369 24.8929 25.065 25.0649C24.8931 25.2368 24.6599 25.3333 24.4168 25.3333H11.5835C11.3404 25.3333 11.1072 25.2368 10.9353 25.0649C10.7634 24.8929 10.6668 24.6598 10.6668 24.4167V20.75C10.6668 20.5069 10.5703 20.2737 10.3983 20.1018C10.2264 19.9299 9.99328 19.8333 9.75016 19.8333C9.50705 19.8333 9.27389 19.9299 9.10198 20.1018C8.93007 20.2737 8.8335 20.5069 8.8335 20.75V24.4167C8.8335 25.146 9.12323 25.8455 9.63895 26.3612C10.1547 26.8769 10.8542 27.1667 11.5835 27.1667H24.4168C25.1462 27.1667 25.8456 26.8769 26.3614 26.3612C26.8771 25.8455 27.1668 25.146 27.1668 24.4167V20.75C27.1668 20.5069 27.0703 20.2737 26.8983 20.1018C26.7264 19.9299 26.4933 19.8333 26.2502 19.8333Z" fill="white"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.1 KiB |
3
src/resources/images/ico/checkbox_img.svg
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<svg width="13" height="10" viewBox="0 0 13 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M11.8 0L3.808 7.692L1.2 5.182L0 6.331L3.808 9.995L13 1.154L11.8 0Z" fill="white"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 195 B |
4
src/resources/images/ico/ic_banner_36-1.svg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<rect width="36" height="36" rx="9" fill="#17BBB0"/>
|
||||||
|
<path d="M14.9841 16.4371L17.0833 18.5454V9.75456C17.0833 9.51144 17.1799 9.27828 17.3518 9.10638C17.5237 8.93447 17.7569 8.83789 18 8.83789C18.2431 8.83789 18.4763 8.93447 18.6482 9.10638C18.8201 9.27828 18.9166 9.51144 18.9166 9.75456V18.5454L21.0158 16.4371C21.101 16.3511 21.2024 16.2829 21.3141 16.2364C21.4258 16.1899 21.5456 16.1659 21.6666 16.1659C21.7877 16.1659 21.9075 16.1899 22.0192 16.2364C22.1309 16.2829 22.2323 16.3511 22.3175 16.4371C22.4034 16.5223 22.4716 16.6237 22.5181 16.7354C22.5647 16.8471 22.5886 16.9669 22.5886 17.0879C22.5886 17.2089 22.5647 17.3287 22.5181 17.4404C22.4716 17.5521 22.4034 17.6535 22.3175 17.7387L18.6508 21.4054C18.5636 21.4888 18.4608 21.5543 18.3483 21.5979C18.1251 21.6896 17.8748 21.6896 17.6516 21.5979C17.5391 21.5543 17.4363 21.4888 17.3491 21.4054L13.6825 17.7387C13.597 17.6533 13.5292 17.5518 13.483 17.4401C13.4367 17.3284 13.4129 17.2088 13.4129 17.0879C13.4129 16.967 13.4367 16.8473 13.483 16.7357C13.5292 16.624 13.597 16.5225 13.6825 16.4371C13.7679 16.3516 13.8694 16.2838 13.9811 16.2375C14.0928 16.1913 14.2124 16.1675 14.3333 16.1675C14.4542 16.1675 14.5739 16.1913 14.6855 16.2375C14.7972 16.2838 14.8987 16.3516 14.9841 16.4371ZM26.25 19.8333C26.0069 19.8333 25.7737 19.9299 25.6018 20.1018C25.4299 20.2737 25.3333 20.5069 25.3333 20.75V24.4167C25.3333 24.6598 25.2367 24.8929 25.0648 25.0648C24.8929 25.2367 24.6598 25.3333 24.4166 25.3333H11.5833C11.3402 25.3333 11.107 25.2367 10.9351 25.0648C10.7632 24.8929 10.6666 24.6598 10.6666 24.4167V20.75C10.6666 20.5069 10.5701 20.2737 10.3982 20.1018C10.2263 19.9299 9.99309 19.8333 9.74998 19.8333C9.50686 19.8333 9.27371 19.9299 9.1018 20.1018C8.92989 20.2737 8.83331 20.5069 8.83331 20.75V24.4167C8.83331 25.146 9.12304 25.8455 9.63877 26.3612C10.1545 26.8769 10.854 27.1667 11.5833 27.1667H24.4166C25.146 27.1667 25.8455 26.8769 26.3612 26.3612C26.8769 25.8455 27.1666 25.146 27.1666 24.4167V20.75C27.1666 20.5069 27.0701 20.2737 26.8982 20.1018C26.7263 19.9299 26.4931 19.8333 26.25 19.8333Z" fill="white"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.1 KiB |
4
src/resources/images/ico/ic_banner_36-2.svg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<rect width="36" height="36" rx="9" fill="#17BBB0"/>
|
||||||
|
<path d="M14.9848 16.4371L17.084 18.5454V9.75456C17.084 9.51144 17.1806 9.27828 17.3525 9.10638C17.5244 8.93447 17.7575 8.83789 18.0007 8.83789C18.2438 8.83789 18.4769 8.93447 18.6488 9.10638C18.8207 9.27828 18.9173 9.51144 18.9173 9.75456V18.5454L21.0165 16.4371C21.1017 16.3511 21.2031 16.2829 21.3148 16.2364C21.4265 16.1899 21.5463 16.1659 21.6673 16.1659C21.7883 16.1659 21.9081 16.1899 22.0198 16.2364C22.1315 16.2829 22.2329 16.3511 22.3181 16.4371C22.4041 16.5223 22.4723 16.6237 22.5188 16.7354C22.5653 16.8471 22.5893 16.9669 22.5893 17.0879C22.5893 17.2089 22.5653 17.3287 22.5188 17.4404C22.4723 17.5521 22.4041 17.6535 22.3181 17.7387L18.6515 21.4054C18.5643 21.4888 18.4615 21.5543 18.349 21.5979C18.1258 21.6896 17.8755 21.6896 17.6523 21.5979C17.5398 21.5543 17.437 21.4888 17.3498 21.4054L13.6832 17.7387C13.5977 17.6533 13.5299 17.5518 13.4836 17.4401C13.4374 17.3284 13.4136 17.2088 13.4136 17.0879C13.4136 16.967 13.4374 16.8473 13.4836 16.7357C13.5299 16.624 13.5977 16.5225 13.6832 16.4371C13.7686 16.3516 13.8701 16.2838 13.9818 16.2375C14.0934 16.1913 14.2131 16.1675 14.334 16.1675C14.4549 16.1675 14.5745 16.1913 14.6862 16.2375C14.7979 16.2838 14.8993 16.3516 14.9848 16.4371ZM26.2507 19.8333C26.0075 19.8333 25.7744 19.9299 25.6025 20.1018C25.4306 20.2737 25.334 20.5069 25.334 20.75V24.4167C25.334 24.6598 25.2374 24.8929 25.0655 25.0648C24.8936 25.2367 24.6604 25.3333 24.4173 25.3333H11.584C11.3409 25.3333 11.1077 25.2367 10.9358 25.0648C10.7639 24.8929 10.6673 24.6598 10.6673 24.4167V20.75C10.6673 20.5069 10.5707 20.2737 10.3988 20.1018C10.2269 19.9299 9.99377 19.8333 9.75065 19.8333C9.50754 19.8333 9.27438 19.9299 9.10247 20.1018C8.93056 20.2737 8.83398 20.5069 8.83398 20.75V24.4167C8.83398 25.146 9.12372 25.8455 9.63944 26.3612C10.1552 26.8769 10.8546 27.1667 11.584 27.1667H24.4173C25.1467 27.1667 25.8461 26.8769 26.3619 26.3612C26.8776 25.8455 27.1673 25.146 27.1673 24.4167V20.75C27.1673 20.5069 27.0707 20.2737 26.8988 20.1018C26.7269 19.9299 26.4938 19.8333 26.2507 19.8333Z" fill="white"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.1 KiB |
4
src/resources/images/ico/ic_banner_36.svg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<svg width="37" height="36" viewBox="0 0 37 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<rect x="0.206909" width="36.4655" height="36" rx="9" fill="#FF5B40"/>
|
||||||
|
<path d="M15.3847 16.4371L17.511 18.5454V9.75456C17.511 9.51144 17.6089 9.27828 17.783 9.10638C17.9571 8.93447 18.1933 8.83789 18.4396 8.83789C18.6858 8.83789 18.922 8.93447 19.0961 9.10638C19.2703 9.27828 19.3681 9.51144 19.3681 9.75456V18.5454L21.4944 16.4371C21.5807 16.3511 21.6834 16.2829 21.7966 16.2364C21.9097 16.1899 22.0311 16.1659 22.1536 16.1659C22.2762 16.1659 22.3976 16.1899 22.5107 16.2364C22.6239 16.2829 22.7266 16.3511 22.8129 16.4371C22.8999 16.5223 22.969 16.6237 23.0161 16.7354C23.0633 16.8471 23.0875 16.9669 23.0875 17.0879C23.0875 17.2089 23.0633 17.3287 23.0161 17.4404C22.969 17.5521 22.8999 17.6535 22.8129 17.7387L19.0988 21.4054C19.0105 21.4888 18.9064 21.5543 18.7924 21.5979C18.5663 21.6896 18.3128 21.6896 18.0867 21.5979C17.9727 21.5543 17.8686 21.4888 17.7803 21.4054L14.0662 17.7387C13.9797 17.6533 13.911 17.5518 13.8641 17.4401C13.8173 17.3284 13.7932 17.2088 13.7932 17.0879C13.7932 16.967 13.8173 16.8473 13.8641 16.7357C13.911 16.624 13.9797 16.5225 14.0662 16.4371C14.1528 16.3516 14.2556 16.2838 14.3687 16.2375C14.4818 16.1913 14.603 16.1675 14.7255 16.1675C14.8479 16.1675 14.9691 16.1913 15.0823 16.2375C15.1954 16.2838 15.2982 16.3516 15.3847 16.4371ZM26.7962 19.8333C26.55 19.8333 26.3138 19.9299 26.1397 20.1018C25.9655 20.2737 25.8677 20.5069 25.8677 20.75V24.4167C25.8677 24.6598 25.7699 24.8929 25.5958 25.0648C25.4216 25.2367 25.1855 25.3333 24.9392 25.3333H11.9399C11.6937 25.3333 11.4575 25.2367 11.2834 25.0648C11.1092 24.8929 11.0114 24.6598 11.0114 24.4167V20.75C11.0114 20.5069 10.9136 20.2737 10.7394 20.1018C10.5653 19.9299 10.3291 19.8333 10.0829 19.8333C9.83662 19.8333 9.60045 19.9299 9.42632 20.1018C9.25218 20.2737 9.15436 20.5069 9.15436 20.75V24.4167C9.15436 25.146 9.44784 25.8455 9.97023 26.3612C10.4926 26.8769 11.2011 27.1667 11.9399 27.1667H24.9392C25.678 27.1667 26.3865 26.8769 26.9089 26.3612C27.4313 25.8455 27.7248 25.146 27.7248 24.4167V20.75C27.7248 20.5069 27.6269 20.2737 27.4528 20.1018C27.2787 19.9299 27.0425 19.8333 26.7962 19.8333Z" fill="white"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.2 KiB |
11
src/resources/images/ico/ic_copy.svg
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M10 1.25H3.75C2.36929 1.25 1.25 2.36929 1.25 3.75V10C1.25 11.3807 2.36929 12.5 3.75 12.5H10C11.3807 12.5 12.5 11.3807 12.5 10V3.75C12.5 2.36929 11.3807 1.25 10 1.25Z" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M7.5 9.99997C7.5 9.33693 7.76339 8.70105 8.23223 8.23221C8.70107 7.76337 9.33695 7.49998 9.99999 7.49998" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M18.75 9.99997C18.75 9.33693 18.4866 8.70105 18.0178 8.23221C17.5489 7.76337 16.913 7.49998 16.25 7.49998" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M18.75 16.2499C18.75 16.913 18.4866 17.5489 18.0178 18.0177C17.5489 18.4865 16.913 18.7499 16.25 18.7499" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M7.5 16.2499C7.5 16.913 7.76339 17.5489 8.23223 18.0177C8.70107 18.4865 9.33695 18.7499 9.99999 18.7499" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M12.5 18.7499H13.75" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M12.5 7.49998H13.75" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M7.5 12.5V13.75" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M18.75 12.5V13.75" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.6 KiB |
11
src/resources/images/ico/ic_copy_page.svg
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M15.75 7H9.5C8.11929 7 7 8.11929 7 9.5V15.75C7 17.1307 8.11929 18.25 9.5 18.25H15.75C17.1307 18.25 18.25 17.1307 18.25 15.75V9.5C18.25 8.11929 17.1307 7 15.75 7Z" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M1 3.49999C1 2.83695 1.26339 2.20107 1.73223 1.73223C2.20107 1.26339 2.83695 1 3.49999 1" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M12.25 3.49999C12.25 2.83695 11.9866 2.20107 11.5178 1.73223C11.0489 1.26339 10.413 1 9.75001 1" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M12.25 9.74995C12.25 10.413 11.9866 11.0489 11.5178 11.5177C11.0489 11.9865 10.413 12.2499 9.75001 12.2499" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M1 9.74995C1 10.413 1.26339 11.0489 1.73223 11.5177C2.20107 11.9865 2.83695 12.2499 3.49999 12.2499" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M6 12.2499H7.25" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M6 1H7.25" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M1 5.99994V7.24993" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M12.25 5.99994V7.24993" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.6 KiB |
11
src/resources/images/ico/ic_copy_url.svg
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M10 1.25H3.75C2.36929 1.25 1.25 2.36929 1.25 3.75V10C1.25 11.3807 2.36929 12.5 3.75 12.5H10C11.3807 12.5 12.5 11.3807 12.5 10V3.75C12.5 2.36929 11.3807 1.25 10 1.25Z" fill="#1CAE81" fill-opacity="0.4" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M7.5 9.99999C7.5 9.33695 7.76339 8.70107 8.23223 8.23223C8.70107 7.76339 9.33695 7.5 9.99999 7.5" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M18.7499 9.99999C18.7499 9.33695 18.4865 8.70107 18.0177 8.23223C17.5489 7.76339 16.913 7.5 16.2499 7.5" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M18.7499 16.2499C18.7499 16.913 18.4865 17.5489 18.0177 18.0177C17.5489 18.4865 16.913 18.7499 16.2499 18.7499" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M7.5 16.2499C7.5 16.913 7.76339 17.5489 8.23223 18.0177C8.70107 18.4865 9.33695 18.7499 9.99999 18.7499" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M12.4999 18.7499H13.7499" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M12.4999 7.5H13.7499" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M7.5 12.4999V13.7499" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M18.7499 12.4999V13.7499" stroke="#1CAE81" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.6 KiB |
6
src/resources/images/ico/ic_daily_36_new.svg
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<rect width="36" height="36" rx="9" fill="#1CAE81"/>
|
||||||
|
<path d="M24.93 18C25.1504 19.6686 24.8425 21.3644 24.0496 22.849C23.2566 24.3337 22.0185 25.5326 20.5091 26.2773C18.9997 27.0221 17.2949 27.2752 15.6342 27.0012C13.9736 26.7272 12.4405 25.9398 11.2503 24.7497C10.0602 23.5595 9.27279 22.0264 8.99879 20.3658C8.72479 18.7051 8.97795 17.0003 9.7227 15.4909C10.4674 13.9815 11.6664 12.7434 13.151 11.9504C14.6356 11.1575 16.3314 10.8496 18 11.07V9H17C15.0222 9 13.0888 9.58649 11.4443 10.6853C9.79981 11.7841 8.51809 13.3459 7.76121 15.1732C7.00433 17.0004 6.8063 19.0111 7.19215 20.9509C7.578 22.8907 8.53041 24.6725 9.92894 26.0711C11.3275 27.4696 13.1093 28.422 15.0491 28.8079C16.9889 29.1937 18.9996 28.9957 20.8268 28.2388C22.6541 27.4819 24.2159 26.2002 25.3147 24.5557C26.4135 22.9112 27 20.9778 27 19V18H24.93Z" fill="current"/>
|
||||||
|
<path d="M26.364 9.636C24.676 7.94846 22.3869 7.00031 20 7V16H29C28.9997 13.6131 28.0515 11.324 26.364 9.636Z" fill="white"/>
|
||||||
|
<path d="M22 9.29395C23.1129 9.627 24.1256 10.2314 24.9471 11.0529C25.7685 11.8743 26.3729 12.887 26.706 13.9999H22V9.29395Z" fill="white"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
6
src/resources/images/ico/ic_daily_36_old.svg
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<rect width="36" height="36" rx="9" fill="#1CAE81"/>
|
||||||
|
<path d="M24.93 18C25.1504 19.6686 24.8425 21.3644 24.0496 22.849C23.2566 24.3337 22.0185 25.5326 20.5091 26.2773C18.9997 27.0221 17.2949 27.2752 15.6342 27.0012C13.9736 26.7272 12.4405 25.9398 11.2503 24.7497C10.0602 23.5595 9.27279 22.0264 8.99879 20.3658C8.72479 18.7051 8.97795 17.0003 9.7227 15.4909C10.4674 13.9815 11.6664 12.7434 13.151 11.9504C14.6356 11.1575 16.3314 10.8496 18 11.07V9H17C15.0222 9 13.0888 9.58649 11.4443 10.6853C9.79981 11.7841 8.51809 13.3459 7.76121 15.1732C7.00433 17.0004 6.8063 19.0111 7.19215 20.9509C7.578 22.8907 8.53041 24.6725 9.92894 26.0711C11.3275 27.4696 13.1093 28.422 15.0491 28.8079C16.9889 29.1937 18.9996 28.9957 20.8268 28.2388C22.6541 27.4819 24.2159 26.2002 25.3147 24.5557C26.4135 22.9112 27 20.9778 27 19V18H24.93Z" fill="white"/>
|
||||||
|
<path d="M26.364 9.636C24.676 7.94846 22.3869 7.00031 20 7V16H29C28.9997 13.6131 28.0515 11.324 26.364 9.636Z" fill="white"/>
|
||||||
|
<path d="M22 9.29395C23.1129 9.627 24.1256 10.2314 24.9471 11.0529C25.7685 11.8743 26.3729 12.887 26.706 13.9999H22V9.29395Z" fill="white"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |