eiSettings
전체 글
- react-hook-form 2024.06.21
- word-break: normal, break-all, keep-all 2024.06.21
- css variable - color에 사용하면 좋음: var(--LG-Red) 2024.06.21
- react agGrid 2024.06.20
- 두번째 input부터만적용 input + input { margin-top: 10px; } 2024.06.20
- input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML` 2024.06.20
- explorer, folder tree 2024.06.20
- table <td rowspan="2"> 2row를, <td colspan="2"> 2column을 차지한다는 얘기 2024.06.18
- .popupModal [class="image"] exact css class match 2024.06.18
- Optional chaining (?.) 2024.06.18
- (Nullish coalescing??: null,undefined일때만) vs (||: falsy-null,undefined,0,'',NaN..) 2024.06.18
- style={{width: undefined}} 이면 css 반영안됨 2024.06.18
- editorwatchdog.js 2024.06.17
- <h1>test</h1>을 string이 아닌 tag로 인식시키기 dangerouslySetInnerHTML={{ __html: n.content?.toString() }} 2024.06.13
- <input> value에 undefined, null 쓰지말자! - A component is changing a controlled input to be uncontrolled, value` prop on `input` should not be null 2024.06.13
- 이미지로드완료전 로딩바 돌리기 등 하려면 onLoad 이벤트필요 <img onLoad={()=>{...}} onError={()=>{...}, 그런데 onLoad 로컬에선 잘되는데 서버에 올리면 실행이 되다가 안되다가 함 2024.06.11
- eclipse error - maven update 해보자 2024.06.11
- .required:after { content:" *"; color: red; } 2024.06.04
- 모바일 줌인 줌아웃 <meta name="viewport" content="initial-scale=1,width=device-width,user-scalable=1" /> 2024.06.02
- 정렬문제 간단히 display:flex, align-items:center로 해결 2024.05.30
- editorwatchdog model nul error? 2024.05.30
- react createContext, useContext, 2024.05.17
- [jsconfig.json] webpack쓸때 vsCode 자동완성(autoComplete) 적용 2024.05.17
- react map key 설정안해주면 eiSettings + - 제대로 동작안했던듯 2024.05.14
- npm install mobx-react-devtools error 2024.05.14
- sessionStorage.setItem(n, JSON.stringify(user[n])) 안하고 그냥 저장하면 object [object]로 보임 2024.05.14
- DBeaver mariaDB 연결 2024.05.10
- jenkins java api build error: package nl.captcha does not exist 2024.05.09
- [remote|remote tracking|tracking] branch간의 차이, git remote update/git fetch 차이 2024.05.08
- git 강제 덮어쓰기 2024.05.08
react-hook-form
word-break: normal, break-all, keep-all
'html, css' 카테고리의 다른 글
css variable - color에 사용하면 좋음: var(--LG-Red)
var(--LG-Red)
https://www.w3schools.com/css/css3_variables.asp
variables.scss, $변수를 사용할 수도 있음
common.scss
'html, css > css color' 카테고리의 다른 글
color: #ffffff(white), #000000(black) (0) | 2024.04.25 |
---|---|
color keyword: black, gray=grey, lightgray=lightgrey, gainsboro(A light bluish grey colour, 옅은푸른빛회색) (0) | 2024.04.25 |
react agGrid
'react' 카테고리의 다른 글
explorer, folder tree (0) | 2024.06.20 |
---|---|
react createContext, useContext, (0) | 2024.05.17 |
react map key 설정안해주면 eiSettings + - 제대로 동작안했던듯 (0) | 2024.05.14 |
Promise결과를 받아서 useMemo에 저장후 사용하려 하면 에러남, useState로 저장후에 useEffect로 감지하려고 해도 에러남 (0) | 2024.04.08 |
[페이지전환]react-router-dom<Link> window.href.location history.push()... (0) | 2024.03.27 |
두번째 input부터만적용 input + input { margin-top: 10px; }
input + input {
margin-top: 10px;
}
'html, css > css selector' 카테고리의 다른 글
.popupModal [class="image"] exact css class match (0) | 2024.06.18 |
---|---|
.table { td:nth-child(2n+2) {background-color: var(--Light-Gray-BG);}} 테이블 row 짝수마다 색깔 다르게 (0) | 2024.04.19 |
css selector(#id,.class, 자손,>자식), table tag (0) | 2019.04.19 |
input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`
input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`
explorer, folder tree
https://codesandbox.io/s/explorer-l44v98?file=/index.js
Explorer - CodeSandbox
Explorer by fir0j using antd, react, react-dom, react-icons, react-scripts, styled-components
codesandbox.io
위 소스는 자식이 2개 이상 있으면 2개가 한꺼번에 오픈되는 에러 있음, 아래는 에러 수정한 버젼
'react' 카테고리의 다른 글
react agGrid (0) | 2024.06.20 |
---|---|
react createContext, useContext, (0) | 2024.05.17 |
react map key 설정안해주면 eiSettings + - 제대로 동작안했던듯 (0) | 2024.05.14 |
Promise결과를 받아서 useMemo에 저장후 사용하려 하면 에러남, useState로 저장후에 useEffect로 감지하려고 해도 에러남 (0) | 2024.04.08 |
[페이지전환]react-router-dom<Link> window.href.location history.push()... (0) | 2024.03.27 |
table <td rowspan="2"> 2row를, <td colspan="2"> 2column을 차지한다는 얘기
rowspan 사용예제
<table>
<tr>
<th>Month</th>
<th>Savings</th>
<th>Savings for holiday!</th>
</tr>
<tr>
<td rowspan="2">January</td>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td rowspan="2">February</td>
<td>11</td>
<td>22</td>
</tr>
<tr>
<td>33</td>
<td>44</td>
</tr>
</table>
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_td_rowspan
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_td_colspan
'html, css' 카테고리의 다른 글
.popupModal [class="image"] exact css class match
'html, css > css selector' 카테고리의 다른 글
두번째 input부터만적용 input + input { margin-top: 10px; } (0) | 2024.06.20 |
---|---|
.table { td:nth-child(2n+2) {background-color: var(--Light-Gray-BG);}} 테이블 row 짝수마다 색깔 다르게 (0) | 2024.04.19 |
css selector(#id,.class, 자손,>자식), table tag (0) | 2019.04.19 |
Optional chaining (?.)
'js > js syntax' 카테고리의 다른 글
(Nullish coalescing??: null,undefined일때만) vs (||: falsy-null,undefined,0,'',NaN..)
const a = arg||'default' 주로 이렇게 초기화용도로 쓰는데 0, ''도 정상값일 경우는 ??를 쓰면 됨
Nullish coalescing operator
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing
Logical or operator
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_OR
'js > js syntax' 카테고리의 다른 글
style={{width: undefined}} 이면 css 반영안됨
style={{width: n.position?.width||'100%'}} 로 구지 안해도 style={{width: n.position?.width}} 만 하면 됨, n.position이 null이면 n.position?.width는 undefined가 되므로
'html, css' 카테고리의 다른 글
editorwatchdog.js
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at editorwatchdog.js:179:1
at async u._initializeEditor (index.js:5:4518)
at async u.componentDidMount (index.js:5:3736) {phase: 'initialization', willEditorRestart: false}phase: "initialization"willEditorRestart: false[[Prototype]]: Object
(anonymous) @ index.js:5
Promise.catch (async)
_initializeEditor @ index.js:5
await in _initializeEditor (async)
componentDidMount @ index.js:5
commitLayoutEffectOnFiber @ react-dohttp://m.development.js:23349
commitLayoutMountEffects_complete @ react-dohttp://m.development.js:24727
commitLayoutEffects_begin @ react-dohttp://m.development.js:24713
commitLayoutEffects_begin @ react-dohttp://m.development.js:24695
commitLayoutEffects @ react-dohttp://m.development.js:24651
commitRootImpl @ react-dohttp://m.development.js:26862
commitRoot @ react-dohttp://m.development.js:26721
performSyncWorkOnRoot @ react-dohttp://m.development.js:26156
flushSyncCallbacks @ react-dohttp://m.development.js:12042
(anonymous) @ react-dohttp://m.development.js:25690
Show 13 more frames
Show less
Cannot read properties of null (reading 'model') TypeError: Cannot read properties of null (reading 'model') at http://localhost:3000/app.2d361dd0ad882d7da2b1.min.js:289211:20
https://github.com/ckeditor/ckeditor5-react/issues/442
TypeError: Cannot read properties of null (reading 'model') · Issue #442 · ckeditor/ckeditor5-react
I'm trying to implement CKEditor 5 to my Nextjs project using this guide: https://ckeditor.com/docs/ckeditor5/latest/installation/integrations/next-js.html However when I try to run the webpage sho...
github.com
<h1>test</h1>을 string이 아닌 tag로 인식시키기 dangerouslySetInnerHTML={{ __html: n.content?.toString() }}
import { parse } from "node-html-parser";
dangerouslySetInnerHTML={{ __html: parse(n.content)?.toString() }} 원래 소스에는 parse를 적용했는데 안해도 나왔음
<input> value에 undefined, null 쓰지말자! - A component is changing a controlled input to be uncontrolled, value` prop on `input` should not be null
react-dom.development.js:86 Warning: A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components
react-dom.development.js:86 Warning: `value` prop on `input` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.
이미지로드완료전 로딩바 돌리기 등 하려면 onLoad 이벤트필요 <img onLoad={()=>{...}} onError={()=>{...}, 그런데 onLoad 로컬에선 잘되는데 서버에 올리면 실행이 되다가 안되다가 함
서버에 올리면 onLoad, onError event 둘다 안탈때가 있음 왜그런지는?
'web, ui > file, image' 카테고리의 다른 글
로컬이미지를 서버로 보내지 않고 frontend화면에 보여주는 법: URL.createObjectURL(file), URL.revokeObjectURL(URL.createObjectURL(file)) (0) | 2024.02.28 |
---|---|
[파일업로드시 너무 클 때] 413 Request Entity Too Large -chunk분리 (0) | 2024.01.22 |
image upload 부분 구현 (0) | 2022.08.22 |
click시 file download되도록 <a download='fileName'.../> (0) | 2022.08.22 |
get the file size of an image from url and displayed in an <img> (0) | 2022.06.10 |
eclipse error - maven update 해보자
.required:after { content:" *"; color: red; }
<label class="required">Name:</label>
<input type="text">
<style>
.required:after {
content:" *";
color: red;
}
</style>
'html, css' 카테고리의 다른 글
모바일 줌인 줌아웃 <meta name="viewport" content="initial-scale=1,width=device-width,user-scalable=1" />
{route.path === "/board/viewimage" && (
<>
<meta name="viewport" content="initial-scale=1,width=device-width,user-scalable=1" />
</>
)}
정렬문제 간단히 display:flex, align-items:center로 해결
'html, css' 카테고리의 다른 글
editorwatchdog model nul error?
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at editorwatchdog.js:179:1
at async u._initializeEditor (index.js:5:4518)
at async u.componentDidMount (index.js:5:3736) {phase: 'initialization', willEditorRestart: false}
react createContext, useContext,
context 생성: import { createContext } from "react"
import { createContext } from "react";
// 기본값으로는 null을 넣어준다.
export const ThemeContext = createContext(null);
context 연결 <ThemeContext.Provider value={{ isDark, setIsDark }}>
import { useState } from "react";
import "./App.css";
import Page from "./Compopnents/Page";
import { ThemeContext } from "./context/ThemeContext";
function App() {
const [isDark, setIsDark] = useState(false);
return (
// 📌
<ThemeContext.Provider value={{ isDark, setIsDark }}>
<Page />
</ThemeContext.Provider>
);
}
export default App;
context 사용 & 변경
- import { useContext } from "react"
- const { isDark, setIsDark } = useContext(ThemeContext);이때 setIsDark 콜하면 전체화면 refresh됨
import { useContext } from "react";
// 📌
import { ThemeContext } from "../context/ThemeContext";
const Header = () => {
// 📌
const { isDark, setIsDark } = useContext(ThemeContext);////////////////////////
return (
<header
className="header"
style={{
backgroundColor: isDark ? "black" : "lightgray",
color: isDark ? "white" : "black",
}}
>
<h1>Welcome 홍길동!</h1>
</header>
);
};
export default Header;
context를 가장 상위에서 불러와서 쓰기 때문에 전체 화면 refresh되는 것인지?
context를 state전용, dispatch전용으로 나누어써야 불필요한 렌더링 막을수 있다고 하는 예제https://velog.io/@shin6403/React-ContextAPI-%EC%9D%B4%EB%A0%87%EA%B2%8C-%EC%8D%A8%EB%B3%B4%EC%9E%90
[React] ContextAPI 이렇게 써보자
어느날 구글링을 하다가 어떠한 글을 보았다.Context API는 왜 안쓰나요?ContextAPI를 쓰는 글쓴이에게 굉장히 관심이 가는 글이었고, 내용을 결론은 소규모 프로젝트에서는 ContextAPI가 좋지만 성능 때
velog.io
useReducer, useCallback, memo등을 같이 사용하고 있음
'react' 카테고리의 다른 글
react agGrid (0) | 2024.06.20 |
---|---|
explorer, folder tree (0) | 2024.06.20 |
react map key 설정안해주면 eiSettings + - 제대로 동작안했던듯 (0) | 2024.05.14 |
Promise결과를 받아서 useMemo에 저장후 사용하려 하면 에러남, useState로 저장후에 useEffect로 감지하려고 해도 에러남 (0) | 2024.04.08 |
[페이지전환]react-router-dom<Link> window.href.location history.push()... (0) | 2024.03.27 |
[jsconfig.json] webpack쓸때 vsCode 자동완성(autoComplete) 적용
처음 적용하고 됐는데 새 컴퓨터에 설치하니 경로이동이 안되었음 - jsconfig.json 파일을 그냥 고치고나서 해보니 다시 됨
이 경우는 @hooks/* 로 커버안됨,
react map key 설정안해주면 eiSettings + - 제대로 동작안했던듯
'react' 카테고리의 다른 글
explorer, folder tree (0) | 2024.06.20 |
---|---|
react createContext, useContext, (0) | 2024.05.17 |
Promise결과를 받아서 useMemo에 저장후 사용하려 하면 에러남, useState로 저장후에 useEffect로 감지하려고 해도 에러남 (0) | 2024.04.08 |
[페이지전환]react-router-dom<Link> window.href.location history.push()... (0) | 2024.03.27 |
react function Cannot access before initialization (0) | 2024.03.22 |
npm install mobx-react-devtools error
에러발생해서 아래 블로그 발견
https://m.blog.naver.com/theonlyoneu/221981154881
mst devtools mobx-react@6 버전 deprecated
#mst #mobx-state-tree #mobx-react-devtools #mobx-react@6 #mobx-devtools mst 공부하면서 mobx-react-de...
blog.naver.com
https://github.com/mobxjs/mobx-devtools 로 가서 npm install mobx-devtools설치하고 크롬 플러그인 설치 후 npm run start webapp:local 했으나 아래 아래 발생
ERROR in ./src/store/ParamStore.js 2:0-48
Module not found: Error: Can't resolve 'mobx-devtools-mst' in 'C:\dev\csportalfront\src\store'
resolve 'mobx-devtools-mst' in 'C:\dev\csportalfront\src\store'
Parsed request is a module
using description file: C:\dev\csportalfront\package.json (relative path: ./src/store)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
sessionStorage.setItem(n, JSON.stringify(user[n])) 안하고 그냥 저장하면 object [object]로 보임
JSON.stringify(user[n]) 해줘야 이렇게 확인가능
user[n]만 하면 object[object]로 "US"는 그냥 US로 나옴
DBeaver mariaDB 연결
mariaDB driver세팅이 안됬다는 에러가 나는데 mariaDB jdbc connector를 직접 다운로드 받아서 연결시켜줘야함
아래에서 connector jar (mariadb-java-client-3.3.3.jar) 다운로드 가능
https://mariadb.com/downloads/connectors/connectors-data-access/java8-connector
다운로드 받아서 아래와 같이 연결시켜줘야함
DBeaver offline 설치 및 mariadb 연결
오늘 반나절 삽질한 후기를 기록 DBeaver가 괜찮은 sql 툴인데, 인터넷 환경이 아닌 곳에 설치하려니 애로사항이 꽃 핀다. 프로그램은 단순히 설치만 하면 상관 없는데, jdbc를 이용해서 db를 연결하
jnote.tistory.com
'db' 카테고리의 다른 글
jenkins java api build error: package nl.captcha does not exist
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project cs_portal_api: Compilation failure: Compilation failure:
[ERROR] /sorc001/jenkins/workspace/DevCsPortalApi/cs_portal_api/src/main/java/com/lge/cs/online/login/controller/LoginController.java:[49,18] package nl.captcha does not exist
[ERROR] /sorc001/jenkins/workspace/DevCsPortalApi/cs_portal_api/src/main/java/com/lge/cs/online/login/service/LoginServiceImpl.java:[55,18] package nl.captcha does not exist
[ERROR] /sorc001/jenkins/workspace/DevCsPortalApi/cs_portal_api/src/main/java/com/lge/cs/common/captcha/CaptchaUtil.java:[7,18] package nl.captcha does not exist
[ERROR] /sorc001/jenkins/workspace/DevCsPortalApi/cs_portal_api/src/main/java/com/lge/cs/common/captcha/CaptchaUtil.java:[8,30] package nl.captcha.backgrounds does not exist
[ERROR] /sorc001/jenkins/workspace/DevCsPortalApi/cs_portal_api/src/main/java/com/lge/cs/common/captcha/CaptchaUtil.java:[9,26] package nl.captcha.servlet does not exist
[ERROR] /sorc001/jenkins/workspace/DevCsPortalApi/cs_portal_api/src/main/java/com/lge/cs/common/captcha/CaptchaUtil.java:[10,32] package nl.captcha.text.producer does not exist
pom.xml -> pom_live.xml로 고치니 수정됨
pom_live.xml에는 아래와 같은 부분이 들어있었음
<dependency>
<groupId>com</groupId>
<artifactId>simple-captcha</artifactId>
<version>1.2.1</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/com/simple-captcha/1.2.1/simplecaptcha-1.2.1.jar</systemPath>
</dependency>
[remote|remote tracking|tracking] branch간의 차이, git remote update/git fetch 차이
- remote branch: 말 그대로 진짜 remote에 있는 거
- git remote show origin했을 때 나오는 remote branch목록은 진짜 remote인듯, 실시간으로 보여주므로
- remote tracking branch: remote를 local에 복사해놓은 복사본, 일종의 캐슁이라고 생각할수도 있음
- git branch -a했을 때 remotes/origin/master로 나오는것들인듯, git fetch나 git remote update하기 전에는 remote에 새로생긴 branch를 보여주지 않는것으로 보아
- tracking branch: remote tracking을 따라가면서 관리하는 local branch
- tracking안하는 branch:그냥 local에 만들기만 하고 연결 안시켜놓은애
Merge branch 'dev2nd' of http://10.97.24.150:8099/csPortalGroup/csportalfront into dev2nd
git pull 안받고 commit한 상태에서 pull하면 merge가 되는데 그때 위 커밋메세지로 된 merge commit이 자동생성됨
! [rejected] master -> origin/master (non-fast-forward)
remote branch와 remote tracking branch는 항상 fast-forward관계를 유지해야 하는데 그게 깨진 상태에서 git fetch하면 위와 같은 에러 메세지가 나옴
git remote update = git fetch --all 과 동일한 효과라고 함
git fetch는 git pull/push와는 달리 tracking하는 전체 branch의 remote와 sync를 맞춤, 근데 여기서 tracking한다는 개념이 아직 헷갈림
git pull/push는 특정 branch하나랑만 이루어지는 작업이며 어떤 branch와 작업이 이루어지는지 생략이 된 상태, 어떻게 생략이 되었는지 알기 위해서는 git remote show origin 해봐서 pull/push작업에 대해 각각 어떻게 연결(configured for라고 표현됨)되었는지 알수 있음
참고) remote tracking branch로도 checkout 가능한지 확인해보려고 git checkout origin/master했더니 detached HEAD상태가 됨
https://devcamus.tistory.com/9
[git] 원격저장소 업데이트 명령어 3가지의 차이점 비교 -git remote update , git fetch , git pull 의 차이.
이전 포스트를 작성하면서 궁금한 점이 생겨서 곧바로 찾아보았다. [git] 새로 만든 원격 브랜치로 checkout이 안될 때. - error: pathspec did not match any file(s) known to git 해결 상황 : 기존 프로젝트를 리팩
devcamus.tistory.com
'git' 카테고리의 다른 글
git 강제 덮어쓰기 (0) | 2024.05.08 |
---|---|
git clone -b [branch] --single-branch [address] 특정branch하나만 받을때(시간 더 빠름) (0) | 2024.05.02 |
git: fast-forward 개념-한쪽은 전혀 수정이 없기 때문에 새로운 병합된 커밋이 생성되는 것이 아니라 포인터의 위치만 더 최신으로 옮겨짐 (0) | 2024.04.23 |
(fetch first)error: pull안받고 push하려할때 (0) | 2024.04.23 |
(non-fast-forward)error: 원격 저장소와 로컬에 생성된 저장소 간 공통분모가 없는 상태에서 병합하려는 시도로 인해 발생. 해결은 git fetch/full --forced (0) | 2024.04.23 |
git 강제 덮어쓰기
- git fetch --all
- git reset --hard origin/master
- git pull
[GIT] git pull 시 merge 오류 발생했을 때 강제로 덮어쓰는 방법, git fetch, reset, pull
상황 1. 캡스톤 디자인 개발을 진행하면서 AWS EC2 서버를 이용해 API 서버를 배포하는 중이다. 2. Github를 통해 변경된 코드를 서버에 옮기고 있다. 3. 이전에 있던 코드와 충돌이 발생하면서 다음과
chanos.tistory.com