Skip to content

Commit 31103f0

Browse files
committed
docs: Add typedoc to client code for v1.0.0 #26
1 parent 84a6a22 commit 31103f0

File tree

9 files changed

+119
-29
lines changed

9 files changed

+119
-29
lines changed

client/app/src/App.tsx

Lines changed: 53 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,21 @@ import {
1414
VisitorComment,
1515
} from "dev-portfolio";
1616
import styled from "styled-components";
17+
1718
import {
1819
CardInstruction,
1920
Introduction,
2021
TeckstackInputInstruction,
2122
DisplayPortfolioInstruction,
2223
VisitorCounterInstruction,
24+
SkillInstruction,
25+
ChannelInstruction,
26+
ProgressBarInstruction,
27+
ContactInstruction,
2328
} from "./common";
29+
import color from "./common/style/theme";
2430
import useComment from "./hooks/useComment";
2531
import "./App.css";
26-
import color from "./common/style/theme";
27-
import { SkillInstruction } from "./common/instruction/SkillInstruction";
28-
import { ChannelInstruction } from "./common/instruction/ChannelInstruction";
29-
import { ProgressBarInstruction } from "./common/instruction/ProgressBarInstruction";
30-
import { ContactInstruction } from "./common/instruction/ContactInstruction";
3132

3233
function App() {
3334
/**
@@ -47,7 +48,6 @@ function App() {
4748
handleCreateComment,
4849
} = useComment();
4950

50-
const itemList = [1, 2, 3, 4, 5, 6, 7, 8, 9];
5151
return (
5252
/**
5353
* The 'className' in the <div> tag surrounding the components of 'dev-portfolio' must be 'App'.
@@ -102,7 +102,7 @@ function App() {
102102
{/**
103103
* Just introduction for dev-portfolio-app.
104104
*
105-
* If you want view internal of Introduction,
105+
* If you want to view internal of Introduction,
106106
* go to the './src/common/instruction/Introduction.tsx'
107107
*/}
108108
<Introduction id="['Manual Introduction', 'bx:home-smile']" />
@@ -119,14 +119,19 @@ function App() {
119119
/>
120120

121121
{/**
122-
* TechStackInput used only to find the logoName value in the TechStackList.
123-
* @component TechStackInput
124-
* {@link none}
122+
* Just introduction for TechStackInput component.
125123
*
126-
* If you want view internal of TeckstackInputInstruction,
124+
* If you want to view internal of TeckstackInputInstruction,
127125
* go to the './src/common/instruction/TeckstackInputInstruction.tsx'
128126
*/}
129127
<TeckstackInputInstruction id="['TechStackInput', 'fa:stack-overflow']" />
128+
129+
{/**
130+
* TechStackInput used only to find the logoName value in the TechStackList.
131+
*
132+
* @component TechStackInput
133+
* {@link none}
134+
*/}
130135
<TechStackInput />
131136

132137
{/**
@@ -189,14 +194,28 @@ function App() {
189194
]}
190195
/>
191196

197+
{/**
198+
* @component ProgressBar
199+
* {@link https://github.com/modern-agile-team/dev-portfolio#progressbar}
200+
*
201+
* If you want to view ProgressBar component,
202+
* go to the './src/common/instruction/ProgressBarInstruction.tsx'
203+
*/}
192204
<ProgressBarInstruction id="['ProgressBar', 'ci:bar-chart-horizontal']" />
193205

206+
{/**
207+
* @component Skill
208+
* {@link https://github.com/modern-agile-team/dev-portfolio#skill}
209+
*
210+
* If you want to view Skill component,
211+
* go to the './src/common/instruction/SkillInstruction.tsx'
212+
*/}
194213
<SkillInstruction id="['Skill', 'charm:stack']" />
195214

196215
{/**
197216
* Just introduction for Carousel, Gallery and Masonry.
198217
*
199-
* If you want view internal of DisplayPortfolioInstruction,
218+
* If you want to view internal of DisplayPortfolioInstruction,
200219
* go to the './src/common/instruction/DisplayPortfolioInstruction.tsx'
201220
*/}
202221
<DisplayPortfolioInstruction />
@@ -218,7 +237,7 @@ function App() {
218237
* {@link https://github.com/modern-agile-team/dev-portfolio#gallery}
219238
*/}
220239
<Gallery id="['Gallery', 'clarity:image-gallery-line']">
221-
{itemList.map((idx) => (
240+
{[1, 2, 3, 4, 5, 6, 7, 8, 9].map((idx) => (
222241
<Item
223242
key={idx}
224243
hoverdInnerBorderColor={color.mainColor}
@@ -251,7 +270,7 @@ function App() {
251270
* @component VisitorCounter
252271
* {@link https://github.com/modern-agile-team/dev-portfolio#visitorcounter}
253272
*
254-
* If you want view Card component,
273+
* If you want to view Card component,
255274
* go to the './src/common/instruction/VisitorCounterInstruction.tsx'
256275
*/}
257276
<VisitorCounterInstruction id="['VisitorCounter', 'mdi:counter']" />
@@ -283,7 +302,7 @@ function App() {
283302
* @component Card
284303
* {@link https://github.com/modern-agile-team/dev-portfolio#card}
285304
*
286-
* If you want view Card component,
305+
* If you want to view Card component,
287306
* go to the './src/common/instruction/CardInstruction.tsx'
288307
*/}
289308
<CardInstruction id="['Card', 'bi:card-list']" />
@@ -294,13 +313,30 @@ function App() {
294313
*/}
295314
<Experience id="['Experience', 'carbon:list-boxes']" theme="vertical" />
296315

316+
{/**
317+
* @component Channel
318+
* {@link https://github.com/modern-agile-team/dev-portfolio#channel}
319+
*
320+
* @component Channels
321+
* {@link https://github.com/modern-agile-team/dev-portfolio#channels}
322+
*
323+
* If you want to view Channel and Channels component,
324+
* go to the './src/common/instruction/ChannelInstruction.tsx'
325+
*/}
297326
<ChannelInstruction id="['Channel', 'fluent:channel-48-filled']" />
327+
328+
{/**
329+
* Just introduction for Contact.
330+
*
331+
* If you want to view internal of ContactInstruction,
332+
* go to the './src/common/instruction/ContactInstruction.tsx'
333+
*/}
334+
<ContactInstruction />
335+
298336
{/**
299337
* @component Contact
300338
* {@link https://github.com/modern-agile-team/dev-portfolio#contact}
301339
*/}
302-
303-
<ContactInstruction />
304340
<Contact
305341
id="['Contact', 'fluent:contact-card-20-regular']"
306342
titleColor={color.pointColor}

client/app/src/common/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ export { default as CardInstruction } from "./instruction/CardInstruction";
33
export { default as DisplayPortfolioInstruction } from "./instruction/DisplayPortfolioInstruction";
44
export { default as VisitorCounterInstruction } from "./instruction/VisitorCounterInstruction";
55
export { default as TeckstackInputInstruction } from "./instruction/TeckstackInputInstruction";
6+
export { default as SkillInstruction } from "./instruction/SkillInstruction";
7+
export { default as ChannelInstruction } from "./instruction/ChannelInstruction";
8+
export { default as ProgressBarInstruction } from "./instruction/ProgressBarInstruction";
9+
export { default as ContactInstruction } from "./instruction/ContactInstruction";

client/app/src/common/instruction/ChannelInstruction.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@ import React from "react";
33
import styled from "styled-components";
44
import color from "../style/theme";
55

6-
export const ChannelInstruction = ({ id }: { id: string }) => {
6+
/**
7+
* @component Channel
8+
* {@link https://github.com/modern-agile-team/dev-portfolio#channel}
9+
*
10+
* @component Channels
11+
* {@link https://github.com/modern-agile-team/dev-portfolio#channels}
12+
*
13+
* If you want to view Channel and Channels component,
14+
* go to the './src/common/instruction/ChannelInstruction.tsx'
15+
*/
16+
const ChannelInstruction = ({ id }: { id: string }) => {
717
return (
818
<Wrap id={id}>
919
<h1>Channel &amp; Channels</h1>
@@ -30,6 +40,8 @@ export const ChannelInstruction = ({ id }: { id: string }) => {
3040
);
3141
};
3242

43+
export default ChannelInstruction;
44+
3345
const Wrap = styled.div`
3446
padding: 1em 2.2em 0em 2.2em;
3547
display: flex;

client/app/src/common/instruction/ContactInstruction.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import React from "react";
22
import styled from "styled-components";
33

4-
export const ContactInstruction = () => {
4+
/**
5+
* Just introduction for Contact.
6+
*
7+
* If you want to view internal of ContactInstruction,
8+
* go to the './src/common/instruction/ContactInstruction.tsx'
9+
*/
10+
const ContactInstruction = () => {
511
return (
612
<Wrap>
713
<h1>Contact</h1>
@@ -17,6 +23,8 @@ export const ContactInstruction = () => {
1723
);
1824
};
1925

26+
export default ContactInstruction;
27+
2028
const Wrap = styled.div`
2129
padding: 3em 2.2em 2em 2.2em;
2230
display: flex;

client/app/src/common/instruction/Introduction.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ import React from "react";
22
import styled from "styled-components";
33
import color from "../style/theme";
44

5+
/**
6+
* Just introduction for dev-portfolio-app.
7+
*
8+
* If you want to view internal of Introduction,
9+
* go to the './src/common/instruction/Introduction.tsx'
10+
*/
511
const Introduction = ({ id }: { id: string }) => {
612
return (
713
<Wrap id={id}>

client/app/src/common/instruction/ProgressBarInstruction.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ import React from "react";
33
import styled from "styled-components";
44
import color from "../../common/style/theme";
55

6-
export const ProgressBarInstruction = ({ id }: { id: string }) => {
6+
/**
7+
* @component ProgressBar
8+
* {@link https://github.com/modern-agile-team/dev-portfolio#progressbar}
9+
*
10+
* If you want to view ProgressBar component,
11+
* go to the './src/common/instruction/ProgressBarInstruction.tsx'
12+
*/
13+
const ProgressBarInstruction = ({ id }: { id: string }) => {
714
return (
815
<Wrap id={id}>
916
<h1>ProgressBar</h1>
@@ -26,6 +33,8 @@ export const ProgressBarInstruction = ({ id }: { id: string }) => {
2633
);
2734
};
2835

36+
export default ProgressBarInstruction;
37+
2938
const Wrap = styled.div`
3039
padding: 1em 2.2em 2em 2.2em;
3140
display: flex;

client/app/src/common/instruction/SkillInstruction.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ import { Skill } from "dev-portfolio";
22
import React from "react";
33
import styled from "styled-components";
44

5-
export const SkillInstruction = ({ id }: { id: string }) => {
5+
/**
6+
* @component Skill
7+
* {@link https://github.com/modern-agile-team/dev-portfolio#skill}
8+
*
9+
* If you want to view Skill component,
10+
* go to the './src/common/instruction/SkillInstruction.tsx'
11+
*/
12+
const SkillInstruction = ({ id }: { id: string }) => {
613
return (
714
<Wrap id={id}>
815
<h1>Skill</h1>
@@ -26,6 +33,8 @@ export const SkillInstruction = ({ id }: { id: string }) => {
2633
);
2734
};
2835

36+
export default SkillInstruction;
37+
2938
const Wrap = styled.div`
3039
padding: 1em 2.2em 5em 2.2em;
3140
display: flex;

client/app/src/common/instruction/TeckstackInputInstruction.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
import React from "react";
22
import styled from "styled-components";
33

4+
/**
5+
* TechStackInput used only to find the logoName value in the TechStackList.
6+
* @component TechStackInput
7+
* {@link none}
8+
*
9+
* If you want to view internal of TeckstackInputInstruction,
10+
* go to the './src/common/instruction/TeckstackInputInstruction.tsx'
11+
*/
412
const TeckstackInputInstruction = ({ id }: { id: string }) => {
513
return (
614
<Wrap id={id}>
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import { DefaultColor } from "styled-components";
1+
const color: any = {
2+
mainColor: "#111829",
3+
pointColor: "#6082ef",
4+
lightGrey: "rgb(247, 247, 247)",
5+
};
26

3-
const color: DefaultColor = {
4-
mainColor:"#111829",
5-
pointColor: '#6082ef',
6-
lightGrey: 'rgb(247, 247, 247)'
7-
}
8-
9-
export default color;
7+
export default color;

0 commit comments

Comments
 (0)