diff --git a/.gitignore b/.gitignore index 13d237d5..5b69aa0f 100644 --- a/.gitignore +++ b/.gitignore @@ -131,3 +131,6 @@ dist ## IDEA .idea + +## Data +/frontend/data \ No newline at end of file diff --git a/frontend/data/WiredTiger b/frontend/data/WiredTiger new file mode 100644 index 00000000..ff34a974 --- /dev/null +++ b/frontend/data/WiredTiger @@ -0,0 +1,2 @@ +WiredTiger +WiredTiger 3.2.0: (May 9, 2019) diff --git a/frontend/data/WiredTiger.lock b/frontend/data/WiredTiger.lock new file mode 100644 index 00000000..3d842068 --- /dev/null +++ b/frontend/data/WiredTiger.lock @@ -0,0 +1 @@ +WiredTiger lock file diff --git a/frontend/data/WiredTiger.turtle b/frontend/data/WiredTiger.turtle new file mode 100644 index 00000000..e5b9e66f --- /dev/null +++ b/frontend/data/WiredTiger.turtle @@ -0,0 +1,6 @@ +WiredTiger version string +WiredTiger 3.2.0: (May 9, 2019) +WiredTiger version +major=3,minor=2,patch=0 +file:WiredTiger.wt +access_pattern_hint=none,allocation_size=4KB,app_metadata=,assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none),block_allocation=best,block_compressor=,cache_resident=false,checkpoint=(WiredTigerCheckpoint.2=(addr="018b81e4db5aa6c38c81e4cf483c838d81e418aaccbe808080e2cfc0e21fc0",order=2,time=1689733718,size=20480,newest_durable_ts=0,oldest_start_ts=0,oldest_start_txn=0,newest_stop_ts=-1,newest_stop_txn=-11,write_gen=4)),checkpoint_lsn=(1,22528),checksum=uncompressed,collator=,columns=,dictionary=0,encryption=(keyid=,name=),format=btree,huffman_key=,huffman_value=,id=0,ignore_in_memory_cache_size=false,internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=S,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=0,log=(enabled=true),memory_page_image_max=0,memory_page_max=5MB,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,value_format=S,version=(major=1,minor=1) diff --git a/frontend/data/WiredTiger.wt b/frontend/data/WiredTiger.wt new file mode 100644 index 00000000..edbf5d13 Binary files /dev/null and b/frontend/data/WiredTiger.wt differ diff --git a/frontend/data/WiredTigerLAS.wt b/frontend/data/WiredTigerLAS.wt new file mode 100644 index 00000000..3f019cba Binary files /dev/null and b/frontend/data/WiredTigerLAS.wt differ diff --git a/frontend/data/_mdb_catalog.wt b/frontend/data/_mdb_catalog.wt new file mode 100644 index 00000000..de28a7dc Binary files /dev/null and b/frontend/data/_mdb_catalog.wt differ diff --git a/frontend/data/collection-0--8544385431436986108.wt b/frontend/data/collection-0--8544385431436986108.wt new file mode 100644 index 00000000..6d1ad7c7 Binary files /dev/null and b/frontend/data/collection-0--8544385431436986108.wt differ diff --git a/frontend/data/collection-2--8544385431436986108.wt b/frontend/data/collection-2--8544385431436986108.wt new file mode 100644 index 00000000..997ff6b2 Binary files /dev/null and b/frontend/data/collection-2--8544385431436986108.wt differ diff --git a/frontend/data/collection-4--8544385431436986108.wt b/frontend/data/collection-4--8544385431436986108.wt new file mode 100644 index 00000000..3f019cba Binary files /dev/null and b/frontend/data/collection-4--8544385431436986108.wt differ diff --git a/frontend/data/diagnostic.data/metrics.2023-07-19T02-26-39Z-00000 b/frontend/data/diagnostic.data/metrics.2023-07-19T02-26-39Z-00000 new file mode 100644 index 00000000..6557994e Binary files /dev/null and b/frontend/data/diagnostic.data/metrics.2023-07-19T02-26-39Z-00000 differ diff --git a/frontend/data/diagnostic.data/metrics.interim b/frontend/data/diagnostic.data/metrics.interim new file mode 100644 index 00000000..41e25688 Binary files /dev/null and b/frontend/data/diagnostic.data/metrics.interim differ diff --git a/frontend/data/index-1--8544385431436986108.wt b/frontend/data/index-1--8544385431436986108.wt new file mode 100644 index 00000000..a2e24e89 Binary files /dev/null and b/frontend/data/index-1--8544385431436986108.wt differ diff --git a/frontend/data/index-3--8544385431436986108.wt b/frontend/data/index-3--8544385431436986108.wt new file mode 100644 index 00000000..89e66522 Binary files /dev/null and b/frontend/data/index-3--8544385431436986108.wt differ diff --git a/frontend/data/index-5--8544385431436986108.wt b/frontend/data/index-5--8544385431436986108.wt new file mode 100644 index 00000000..3f019cba Binary files /dev/null and b/frontend/data/index-5--8544385431436986108.wt differ diff --git a/frontend/data/index-6--8544385431436986108.wt b/frontend/data/index-6--8544385431436986108.wt new file mode 100644 index 00000000..da055b8d Binary files /dev/null and b/frontend/data/index-6--8544385431436986108.wt differ diff --git a/frontend/data/journal/WiredTigerLog.0000000001 b/frontend/data/journal/WiredTigerLog.0000000001 new file mode 100644 index 00000000..1c936562 Binary files /dev/null and b/frontend/data/journal/WiredTigerLog.0000000001 differ diff --git a/frontend/data/journal/WiredTigerPreplog.0000000001 b/frontend/data/journal/WiredTigerPreplog.0000000001 new file mode 100644 index 00000000..af27d830 Binary files /dev/null and b/frontend/data/journal/WiredTigerPreplog.0000000001 differ diff --git a/frontend/data/journal/WiredTigerPreplog.0000000002 b/frontend/data/journal/WiredTigerPreplog.0000000002 new file mode 100644 index 00000000..af27d830 Binary files /dev/null and b/frontend/data/journal/WiredTigerPreplog.0000000002 differ diff --git a/frontend/data/mongod.lock b/frontend/data/mongod.lock new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/frontend/data/mongod.lock @@ -0,0 +1 @@ +1 diff --git a/frontend/data/sizeStorer.wt b/frontend/data/sizeStorer.wt new file mode 100644 index 00000000..2e279b31 Binary files /dev/null and b/frontend/data/sizeStorer.wt differ diff --git a/frontend/data/storage.bson b/frontend/data/storage.bson new file mode 100644 index 00000000..276b6945 Binary files /dev/null and b/frontend/data/storage.bson differ diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 0947a6d4..6f41f6d1 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -4,6 +4,7 @@ import Main from "./components/main/Main"; import Alert from "./components/common/Alert"; import Container from "./styles/Container"; import Aside from "./components/aside/Aside"; +import HistoryActionItem from "./components/common/HistoryActionItem"; const App: React.FC = () => { const [isHistoryOpen, setIsHistoryOpen] = useState(false); diff --git a/frontend/src/components/common/HistoryActionItem.tsx b/frontend/src/components/common/HistoryActionItem.tsx new file mode 100644 index 00000000..4453e39e --- /dev/null +++ b/frontend/src/components/common/HistoryActionItem.tsx @@ -0,0 +1,90 @@ +import { css, styled } from "styled-components"; +import TTheme from "../../types/TTheme"; + +const HistoryActionItem = styled( + ({ + className, + userName, + body, + timeStamp, + }: { + className?: string; + userName: string; + body: string; + timeStamp: string; + }) => { + return ( +
+

사용자 활동 기록

+
+ +
사진
+
+ +
+
사용자 이름
+
{userName}
+ +
내용
+
{body}
+ +
시간 표기
+
+ 전 +
+
+
+ ); + } +)<{ theme: TTheme }>` + width: 348px; + display: flex; + gap: 16px; + align-items: flex-start; + padding: 16px; + ${({ theme }) => { + const { font, color, border } = theme; + + return css` + background-color: ${color.surface.default}; + .image { + width: 40px; + height: 40px; + overflow: hidden; + border-radius: ${border.radius.circle}; + img { + width: 100%; + height: 100%; + object-fit: cover; + } + } + .body { + display: flex; + flex-direction: column; + gap: 8px; + .user-name { + font: ${font.display.medium14}; + color: ${color.text.default}; + } + .body { + font: ${font.display.medium14}; + color: ${color.text.default}; + + strong { + font: ${font.display.bold14}; + color: ${color.text.bold}; + } + } + .time-stamp { + font: ${font.display.medium12}; + color: ${color.text.weak}; + } + } + `; + }} +`; + +export default HistoryActionItem;