Skip to content

Commit 9268ef8

Browse files
committed
Update introduction
1 parent 4226d64 commit 9268ef8

File tree

10 files changed

+278
-211
lines changed

10 files changed

+278
-211
lines changed

frontend/documentation.json

Lines changed: 191 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,26 @@
2121
"methods": [],
2222
"extends": "JUser"
2323
},
24+
{
25+
"name": "ButtonProps",
26+
"id": "interface-ButtonProps-80336ca223ec2db03b581e9533ee38c2",
27+
"file": "src/app/jira-control/button/button.stories.ts",
28+
"type": "interface",
29+
"sourceCode": "import { Meta, Story } from '@storybook/angular';\nimport { ButtonComponent } from './button.component';\n\nexport default {\n title: 'Components/Button',\n component: ButtonComponent\n} as Meta;\n\ninterface ButtonProps extends ButtonComponent {\n label: string;\n}\n\nconst Template: Story<ButtonComponent> = ({ label, className }: Partial<ButtonProps>) => ({\n component: ButtonComponent,\n moduleMetadata: {\n declarations: [ButtonComponent], // Removed if no template\n imports: []\n },\n template: `<j-button className='${className}'>${label}</j-button>`\n});\n\nexport const Primary: Story<ButtonProps> = Template.bind({});\nPrimary.args = {\n className: 'btn-primary',\n label: 'Primary'\n};\n\nexport const Secondary: Story<ButtonProps> = Template.bind({});\nSecondary.args = {\n className: 'btn-secondary',\n label: 'Secondary'\n};\n\nexport const Empty: Story<ButtonProps> = Template.bind({});\nEmpty.args = {\n icon: \"times\",\n className: 'btn-empty',\n label: 'Cancel'\n};\n",
30+
"properties": [
31+
{
32+
"name": "label",
33+
"type": "string",
34+
"optional": false,
35+
"description": "",
36+
"line": 10
37+
}
38+
],
39+
"indexSignatures": [],
40+
"kind": 150,
41+
"methods": [],
42+
"extends": "ButtonComponent"
43+
},
2444
{
2545
"name": "EnvironmentModel",
2646
"id": "interface-EnvironmentModel-c0087a9667cca7c104b85aa4bebc9698",
@@ -7288,7 +7308,7 @@
72887308
"subtype": "variable",
72897309
"file": "src/app/jira-control/avatar/avatar.stories.ts",
72907310
"type": "string",
7291-
"defaultValue": "'https://res.cloudinary.com/dvujyxh7e/image/upload/c_scale,%3Cspan%20class="x x-first x-last">w_48/v1593253478/trung-vo_bioxmc.png'"
7311+
"defaultValue": "'https://res.cloudinary.com/dvujyxh7e/image/upload/c_scale,%3Cspan%20class="x x-first x-last">w_128/v1593253478/trung-vo_bioxmc.png'"
72927312
},
72937313
{
72947314
"name": "BASE_TIMER_DELAY",
@@ -7322,6 +7342,14 @@
73227342
"type": "Story<BreadcrumbsComponent>",
73237343
"defaultValue": "Template.bind({})"
73247344
},
7345+
{
7346+
"name": "Empty",
7347+
"ctype": "miscellaneous",
7348+
"subtype": "variable",
7349+
"file": "src/app/jira-control/button/button.stories.ts",
7350+
"type": "Story<ButtonProps>",
7351+
"defaultValue": "Template.bind({})"
7352+
},
73257353
{
73267354
"name": "environment",
73277355
"ctype": "miscellaneous",
@@ -7338,6 +7366,14 @@
73387366
"type": "EnvironmentModel",
73397367
"defaultValue": "{\n production: true,\n apiUrl: '/assets/data' // 'https://jira-clone-angular-api.herokuapp.com'\n}"
73407368
},
7369+
{
7370+
"name": "Flat",
7371+
"ctype": "miscellaneous",
7372+
"subtype": "variable",
7373+
"file": "src/app/jira-control/input/input.stories.ts",
7374+
"type": "Story<InputComponent>",
7375+
"defaultValue": "Template.bind({})"
7376+
},
73417377
{
73427378
"name": "GOOGLE_ANALYTICS_ID",
73437379
"ctype": "miscellaneous",
@@ -7401,6 +7437,14 @@
74017437
"type": "IconDefinition[]",
74027438
"defaultValue": "[\n QuestionCircleFill,\n PlusOutline,\n SearchOutline,\n CloseOutline,\n TwitterOutline,\n EditOutline\n]"
74037439
},
7440+
{
7441+
"name": "Primary",
7442+
"ctype": "miscellaneous",
7443+
"subtype": "variable",
7444+
"file": "src/app/jira-control/button/button.stories.ts",
7445+
"type": "Story<ButtonProps>",
7446+
"defaultValue": "Template.bind({})"
7447+
},
74047448
{
74057449
"name": "quillConfiguration",
74067450
"ctype": "miscellaneous",
@@ -7424,6 +7468,14 @@
74247468
"type": "Story<AvatarComponent>",
74257469
"defaultValue": "Template.bind({})"
74267470
},
7471+
{
7472+
"name": "Secondary",
7473+
"ctype": "miscellaneous",
7474+
"subtype": "variable",
7475+
"file": "src/app/jira-control/button/button.stories.ts",
7476+
"type": "Story<ButtonProps>",
7477+
"defaultValue": "Template.bind({})"
7478+
},
74277479
{
74287480
"name": "SideBarLinks",
74297481
"ctype": "miscellaneous",
@@ -7440,6 +7492,22 @@
74407492
"type": "Story<AvatarComponent>",
74417493
"defaultValue": "Template.bind({})"
74427494
},
7495+
{
7496+
"name": "Template",
7497+
"ctype": "miscellaneous",
7498+
"subtype": "variable",
7499+
"file": "src/app/jira-control/input/input.stories.ts",
7500+
"type": "Story<InputComponent>",
7501+
"defaultValue": "(args: InputComponent) => ({\n component: InputComponent,\n props: args\n})"
7502+
},
7503+
{
7504+
"name": "Template",
7505+
"ctype": "miscellaneous",
7506+
"subtype": "variable",
7507+
"file": "src/app/jira-control/button/button.stories.ts",
7508+
"type": "Story<ButtonComponent>",
7509+
"defaultValue": "({ label, className }: Partial<ButtonProps>) => ({\n component: ButtonComponent,\n moduleMetadata: {\n declarations: [ButtonComponent], // Removed if no template\n imports: []\n },\n template: `<j-button className='${className}'>${label}</j-button>`\n})"
7510+
},
74437511
{
74447512
"name": "Template",
74457513
"ctype": "miscellaneous",
@@ -7612,7 +7680,7 @@
76127680
"subtype": "variable",
76137681
"file": "src/app/jira-control/avatar/avatar.stories.ts",
76147682
"type": "string",
7615-
"defaultValue": "'https://res.cloudinary.com/dvujyxh7e/image/upload/c_scale,%3Cspan%20class="x x-first x-last">w_48/v1593253478/trung-vo_bioxmc.png'"
7683+
"defaultValue": "'https://res.cloudinary.com/dvujyxh7e/image/upload/c_scale,%3Cspan%20class="x x-first x-last">w_128/v1593253478/trung-vo_bioxmc.png'"
76167684
},
76177685
{
76187686
"name": "Rounded",
@@ -7694,6 +7762,40 @@
76947762
"defaultValue": "(args: BreadcrumbsComponent) => ({\n component: BreadcrumbsComponent,\n props: args\n})"
76957763
}
76967764
],
7765+
"src/app/jira-control/button/button.stories.ts": [
7766+
{
7767+
"name": "Empty",
7768+
"ctype": "miscellaneous",
7769+
"subtype": "variable",
7770+
"file": "src/app/jira-control/button/button.stories.ts",
7771+
"type": "Story<ButtonProps>",
7772+
"defaultValue": "Template.bind({})"
7773+
},
7774+
{
7775+
"name": "Primary",
7776+
"ctype": "miscellaneous",
7777+
"subtype": "variable",
7778+
"file": "src/app/jira-control/button/button.stories.ts",
7779+
"type": "Story<ButtonProps>",
7780+
"defaultValue": "Template.bind({})"
7781+
},
7782+
{
7783+
"name": "Secondary",
7784+
"ctype": "miscellaneous",
7785+
"subtype": "variable",
7786+
"file": "src/app/jira-control/button/button.stories.ts",
7787+
"type": "Story<ButtonProps>",
7788+
"defaultValue": "Template.bind({})"
7789+
},
7790+
{
7791+
"name": "Template",
7792+
"ctype": "miscellaneous",
7793+
"subtype": "variable",
7794+
"file": "src/app/jira-control/button/button.stories.ts",
7795+
"type": "Story<ButtonComponent>",
7796+
"defaultValue": "({ label, className }: Partial<ButtonProps>) => ({\n component: ButtonComponent,\n moduleMetadata: {\n declarations: [ButtonComponent], // Removed if no template\n imports: []\n },\n template: `<j-button className='${className}'>${label}</j-button>`\n})"
7797+
}
7798+
],
76977799
"src/environments/environment.ts": [
76987800
{
76997801
"name": "environment",
@@ -7714,6 +7816,24 @@
77147816
"defaultValue": "{\n production: true,\n apiUrl: '/assets/data' // 'https://jira-clone-angular-api.herokuapp.com'\n}"
77157817
}
77167818
],
7819+
"src/app/jira-control/input/input.stories.ts": [
7820+
{
7821+
"name": "Flat",
7822+
"ctype": "miscellaneous",
7823+
"subtype": "variable",
7824+
"file": "src/app/jira-control/input/input.stories.ts",
7825+
"type": "Story<InputComponent>",
7826+
"defaultValue": "Template.bind({})"
7827+
},
7828+
{
7829+
"name": "Template",
7830+
"ctype": "miscellaneous",
7831+
"subtype": "variable",
7832+
"file": "src/app/jira-control/input/input.stories.ts",
7833+
"type": "Story<InputComponent>",
7834+
"defaultValue": "(args: InputComponent) => ({\n component: InputComponent,\n props: args\n})"
7835+
}
7836+
],
77177837
"src/app/core/services/google-analytics.service.ts": [
77187838
{
77197839
"name": "GOOGLE_ANALYTICS_ID",
@@ -8243,6 +8363,55 @@
82438363
"coverageCount": "0/10",
82448364
"status": "low"
82458365
},
8366+
{
8367+
"filePath": "src/app/jira-control/button/button.stories.ts",
8368+
"type": "interface",
8369+
"linktype": "interface",
8370+
"name": "ButtonProps",
8371+
"coveragePercent": 0,
8372+
"coverageCount": "0/2",
8373+
"status": "low"
8374+
},
8375+
{
8376+
"filePath": "src/app/jira-control/button/button.stories.ts",
8377+
"type": "variable",
8378+
"linktype": "miscellaneous",
8379+
"linksubtype": "variable",
8380+
"name": "Empty",
8381+
"coveragePercent": 0,
8382+
"coverageCount": "0/1",
8383+
"status": "low"
8384+
},
8385+
{
8386+
"filePath": "src/app/jira-control/button/button.stories.ts",
8387+
"type": "variable",
8388+
"linktype": "miscellaneous",
8389+
"linksubtype": "variable",
8390+
"name": "Primary",
8391+
"coveragePercent": 0,
8392+
"coverageCount": "0/1",
8393+
"status": "low"
8394+
},
8395+
{
8396+
"filePath": "src/app/jira-control/button/button.stories.ts",
8397+
"type": "variable",
8398+
"linktype": "miscellaneous",
8399+
"linksubtype": "variable",
8400+
"name": "Secondary",
8401+
"coveragePercent": 0,
8402+
"coverageCount": "0/1",
8403+
"status": "low"
8404+
},
8405+
{
8406+
"filePath": "src/app/jira-control/button/button.stories.ts",
8407+
"type": "variable",
8408+
"linktype": "miscellaneous",
8409+
"linksubtype": "variable",
8410+
"name": "Template",
8411+
"coveragePercent": 0,
8412+
"coverageCount": "0/1",
8413+
"status": "low"
8414+
},
82468415
{
82478416
"filePath": "src/app/jira-control/input/input.component.ts",
82488417
"type": "component",
@@ -8252,6 +8421,26 @@
82528421
"coverageCount": "0/10",
82538422
"status": "low"
82548423
},
8424+
{
8425+
"filePath": "src/app/jira-control/input/input.stories.ts",
8426+
"type": "variable",
8427+
"linktype": "miscellaneous",
8428+
"linksubtype": "variable",
8429+
"name": "Flat",
8430+
"coveragePercent": 0,
8431+
"coverageCount": "0/1",
8432+
"status": "low"
8433+
},
8434+
{
8435+
"filePath": "src/app/jira-control/input/input.stories.ts",
8436+
"type": "variable",
8437+
"linktype": "miscellaneous",
8438+
"linksubtype": "variable",
8439+
"name": "Template",
8440+
"coveragePercent": 0,
8441+
"coverageCount": "0/1",
8442+
"status": "low"
8443+
},
82558444
{
82568445
"filePath": "src/app/jira-control/jira-control.module.ts",
82578446
"type": "variable",

0 commit comments

Comments
 (0)