Merge branch 'qcast-pub' into dev
This commit is contained in:
commit
13f9577e62
@ -14,15 +14,7 @@ const fonts = [
|
|||||||
{ name: '@Yu Gothic UI', value: '@Yu Gothic UI' },
|
{ name: '@Yu Gothic UI', value: '@Yu Gothic UI' },
|
||||||
{ name: 'Yu Gothic UI', value: 'Yu Gothic UI' },
|
{ name: 'Yu Gothic UI', value: 'Yu Gothic UI' },
|
||||||
]
|
]
|
||||||
const fontOptions = [
|
|
||||||
{ name: '보통', value: 'normal' },
|
|
||||||
{ name: '기울임꼴', value: 'italic' },
|
|
||||||
{
|
|
||||||
name: '굵게',
|
|
||||||
value: 'bold',
|
|
||||||
},
|
|
||||||
{ name: '굵은 기울임꼴', value: 'boldAndItalic' },
|
|
||||||
]
|
|
||||||
const fontSizes = [
|
const fontSizes = [
|
||||||
...Array.from({ length: 4 }).map((_, index) => {
|
...Array.from({ length: 4 }).map((_, index) => {
|
||||||
return { name: index + 8, value: index + 8 }
|
return { name: index + 8, value: index + 8 }
|
||||||
@ -34,17 +26,7 @@ const fontSizes = [
|
|||||||
{ name: 48, value: 48 },
|
{ name: 48, value: 48 },
|
||||||
{ name: 72, value: 72 },
|
{ name: 72, value: 72 },
|
||||||
]
|
]
|
||||||
const fontColors = [
|
|
||||||
{ name: '검정색', value: 'black' },
|
|
||||||
{ name: '빨강색', value: 'red' },
|
|
||||||
{ name: '파랑색', value: 'blue' },
|
|
||||||
{ name: '회색', value: 'gray' },
|
|
||||||
{ name: '황색', value: 'yellow' },
|
|
||||||
{ name: '녹색', value: 'green' },
|
|
||||||
{ name: '분홍색', value: 'pink' },
|
|
||||||
{ name: '황금색', value: 'gold' },
|
|
||||||
{ name: '남색', value: 'darkblue' },
|
|
||||||
]
|
|
||||||
export default function FontSetting(props) {
|
export default function FontSetting(props) {
|
||||||
const contextPopupPosition = useRecoilValue(contextPopupPositionState)
|
const contextPopupPosition = useRecoilValue(contextPopupPositionState)
|
||||||
const { id, setIsShow, pos = contextPopupPosition, type, isConfig = false } = props
|
const { id, setIsShow, pos = contextPopupPosition, type, isConfig = false } = props
|
||||||
@ -57,7 +39,26 @@ export default function FontSetting(props) {
|
|||||||
const [selectedFontWeight, setSelectedFontWeight] = useState(currentFont.fontWeight)
|
const [selectedFontWeight, setSelectedFontWeight] = useState(currentFont.fontWeight)
|
||||||
const [selectedFontSize, setSelectedFontSize] = useState(currentFont.fontSize)
|
const [selectedFontSize, setSelectedFontSize] = useState(currentFont.fontSize)
|
||||||
const [selectedFontColor, setSelectedFontColor] = useState(currentFont.fontColor)
|
const [selectedFontColor, setSelectedFontColor] = useState(currentFont.fontColor)
|
||||||
|
const fontOptions = [
|
||||||
|
{ name: getMessage('font.style.normal'), value: 'normal' },
|
||||||
|
{ name: getMessage('font.style.italic'), value: 'italic' },
|
||||||
|
{
|
||||||
|
name: getMessage('font.style.bold'),
|
||||||
|
value: 'bold',
|
||||||
|
},
|
||||||
|
{ name: getMessage('font.style.bold.italic'), value: 'boldAndItalic' },
|
||||||
|
]
|
||||||
|
const fontColors = [
|
||||||
|
{ name: getMessage('color.black'), value: 'black' },
|
||||||
|
{ name: getMessage('color.red'), value: 'red' },
|
||||||
|
{ name: getMessage('color.blue'), value: 'blue' },
|
||||||
|
{ name: getMessage('color.gray'), value: 'gray' },
|
||||||
|
{ name: getMessage('color.yellow'), value: 'yellow' },
|
||||||
|
{ name: getMessage('color.green'), value: 'green' },
|
||||||
|
{ name: getMessage('color.pink'), value: 'pink' },
|
||||||
|
{ name: getMessage('color.gold'), value: 'gold' },
|
||||||
|
{ name: getMessage('color.darkblue'), value: 'darkblue' },
|
||||||
|
]
|
||||||
const handleSaveBtn = () => {
|
const handleSaveBtn = () => {
|
||||||
setGlobalFont((prev) => {
|
setGlobalFont((prev) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -483,6 +483,19 @@
|
|||||||
"commons.east": "ドン",
|
"commons.east": "ドン",
|
||||||
"commons.south": "南",
|
"commons.south": "南",
|
||||||
"commons.north": "北",
|
"commons.north": "北",
|
||||||
|
"font.style.normal": "보통(JA)",
|
||||||
|
"font.style.italic": "기울임꼴(JA)",
|
||||||
|
"font.style.bold": "굵게(JA)",
|
||||||
|
"font.style.bold.italic": "굵은 기울임꼴(JA)",
|
||||||
|
"color.black": "검정색(JA)",
|
||||||
|
"color.red": "빨강색(JA)",
|
||||||
|
"color.blue": "파랑색(JA)",
|
||||||
|
"color.gray": "회색(JA)",
|
||||||
|
"color.yellow": "황색(JA)",
|
||||||
|
"color.green": "녹색(JA)",
|
||||||
|
"color.pink": "분홍색(JA)",
|
||||||
|
"color.gold": "황금색(JA)",
|
||||||
|
"color.darkblue": "남색(JA)",
|
||||||
"site.name": "Q.CAST III",
|
"site.name": "Q.CAST III",
|
||||||
"site.sub_name": "太陽光発電システム図面管理サイト",
|
"site.sub_name": "太陽光発電システム図面管理サイト",
|
||||||
"board.notice.title": "お知らせ",
|
"board.notice.title": "お知らせ",
|
||||||
|
|||||||
@ -489,6 +489,19 @@
|
|||||||
"commons.east": "동",
|
"commons.east": "동",
|
||||||
"commons.south": "남",
|
"commons.south": "남",
|
||||||
"commons.north": "북",
|
"commons.north": "북",
|
||||||
|
"font.style.normal": "보통",
|
||||||
|
"font.style.italic": "기울임꼴",
|
||||||
|
"font.style.bold": "굵게",
|
||||||
|
"font.style.bold.italic": "굵은 기울임꼴",
|
||||||
|
"color.black": "검정색",
|
||||||
|
"color.red": "빨강색",
|
||||||
|
"color.blue": "파랑색",
|
||||||
|
"color.gray": "회색",
|
||||||
|
"color.yellow": "황색",
|
||||||
|
"color.green": "녹색",
|
||||||
|
"color.pink": "분홍색",
|
||||||
|
"color.gold": "황금색",
|
||||||
|
"color.darkblue": "남색",
|
||||||
"site.name": "Q.CAST III",
|
"site.name": "Q.CAST III",
|
||||||
"site.sub_name": "태양광 발전 시스템 도면관리 사이트",
|
"site.sub_name": "태양광 발전 시스템 도면관리 사이트",
|
||||||
"board.notice.title": "공지사항",
|
"board.notice.title": "공지사항",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user