Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS699-Project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Meet Narendra
CS699-Project
Commits
abeec8c7
Commit
abeec8c7
authored
Nov 21, 2022
by
Meet Narendra
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/ABU_DEV' into DEV
Merging abu dev to dev
parents
cf0eb5fe
2cc04eec
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
272 additions
and
20 deletions
+272
-20
frontend/sitcomm/angular.json
frontend/sitcomm/angular.json
+3
-0
frontend/sitcomm/package-lock.json
frontend/sitcomm/package-lock.json
+14
-14
frontend/sitcomm/package.json
frontend/sitcomm/package.json
+2
-2
frontend/sitcomm/src/app/app.module.ts
frontend/sitcomm/src/app/app.module.ts
+2
-0
frontend/sitcomm/src/app/jira/jira.component.css
frontend/sitcomm/src/app/jira/jira.component.css
+18
-0
frontend/sitcomm/src/app/jira/jira.component.html
frontend/sitcomm/src/app/jira/jira.component.html
+125
-1
frontend/sitcomm/src/app/jira/jira.component.ts
frontend/sitcomm/src/app/jira/jira.component.ts
+108
-3
No files found.
frontend/sitcomm/angular.json
View file @
abeec8c7
...
@@ -99,5 +99,8 @@
...
@@ -99,5 +99,8 @@
}
}
}
}
}
}
},
"cli"
:
{
"analytics"
:
false
}
}
}
}
frontend/sitcomm/package-lock.json
View file @
abeec8c7
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"@angular/compiler"
:
"^14.2.0"
,
"@angular/compiler"
:
"^14.2.0"
,
"@angular/core"
:
"^14.2.0"
,
"@angular/core"
:
"^14.2.0"
,
"@angular/forms"
:
"^14.2.0"
,
"@angular/forms"
:
"^14.2.0"
,
"@angular/material"
:
"^14.2.
4
"
,
"@angular/material"
:
"^14.2.
7
"
,
"@angular/platform-browser"
:
"^14.2.0"
,
"@angular/platform-browser"
:
"^14.2.0"
,
"@angular/platform-browser-dynamic"
:
"^14.2.0"
,
"@angular/platform-browser-dynamic"
:
"^14.2.0"
,
"@angular/router"
:
"^14.2.0"
,
"@angular/router"
:
"^14.2.0"
,
...
@@ -347,9 +347,9 @@
...
@@ -347,9 +347,9 @@
}
}
},
},
"node_modules/@angular/cdk"
:
{
"node_modules/@angular/cdk"
:
{
"version"
:
"14.2.
4
"
,
"version"
:
"14.2.
7
"
,
"resolved"
:
"https://registry.npmjs.org/@angular/cdk/-/cdk-14.2.
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@angular/cdk/-/cdk-14.2.
7
.tgz"
,
"integrity"
:
"sha512-
5jngZcOyC2n9pRYec/D0iCw72QSnCkGYjtfgIlOK/FZYGhpOa34GMGObPuv4F0u7J2TEtbO6xIFsCFaK0FLIWQ
=="
,
"integrity"
:
"sha512-
/tEsYaUbDSnfEmKVvAMramIptmhI67O+9STjOV0i+74XR2NospeK0fkbywIANu1n3w6AHGMotvRWJrjmbCElFg
=="
,
"dependencies"
:
{
"dependencies"
:
{
"tslib"
:
"^2.3.0"
"tslib"
:
"^2.3.0"
},
},
...
@@ -501,15 +501,15 @@
...
@@ -501,15 +501,15 @@
}
}
},
},
"node_modules/@angular/material"
:
{
"node_modules/@angular/material"
:
{
"version"
:
"14.2.
4
"
,
"version"
:
"14.2.
7
"
,
"resolved"
:
"https://registry.npmjs.org/@angular/material/-/material-14.2.
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@angular/material/-/material-14.2.
7
.tgz"
,
"integrity"
:
"sha512-
vS7dyrnr2YpZPjFFmnSZ9W0dFpBQ5cWf4CH5AI0/KfbCGC+2ybkFZ61oMNBf1xXdoyf4Ob16Dm3xerKWFwJ4s
Q=="
,
"integrity"
:
"sha512-
WXHh8pEStpgkXZJmYOg2cI8BSHkV82ET4XTJCNPdveumaCn1UYnaNzsXD13kw5z+zmy8CufhFEzdXTrv/yt7K
Q=="
,
"dependencies"
:
{
"dependencies"
:
{
"tslib"
:
"^2.3.0"
"tslib"
:
"^2.3.0"
},
},
"peerDependencies"
:
{
"peerDependencies"
:
{
"@angular/animations"
:
"^14.0.0 || ^15.0.0"
,
"@angular/animations"
:
"^14.0.0 || ^15.0.0"
,
"@angular/cdk"
:
"14.2.
4
"
,
"@angular/cdk"
:
"14.2.
7
"
,
"@angular/common"
:
"^14.0.0 || ^15.0.0"
,
"@angular/common"
:
"^14.0.0 || ^15.0.0"
,
"@angular/core"
:
"^14.0.0 || ^15.0.0"
,
"@angular/core"
:
"^14.0.0 || ^15.0.0"
,
"@angular/forms"
:
"^14.0.0 || ^15.0.0"
,
"@angular/forms"
:
"^14.0.0 || ^15.0.0"
,
...
@@ -12125,9 +12125,9 @@
...
@@ -12125,9 +12125,9 @@
}
}
},
},
"@angular/cdk"
:
{
"@angular/cdk"
:
{
"version"
:
"14.2.
4
"
,
"version"
:
"14.2.
7
"
,
"resolved"
:
"https://registry.npmjs.org/@angular/cdk/-/cdk-14.2.
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@angular/cdk/-/cdk-14.2.
7
.tgz"
,
"integrity"
:
"sha512-
5jngZcOyC2n9pRYec/D0iCw72QSnCkGYjtfgIlOK/FZYGhpOa34GMGObPuv4F0u7J2TEtbO6xIFsCFaK0FLIWQ
=="
,
"integrity"
:
"sha512-
/tEsYaUbDSnfEmKVvAMramIptmhI67O+9STjOV0i+74XR2NospeK0fkbywIANu1n3w6AHGMotvRWJrjmbCElFg
=="
,
"requires"
:
{
"requires"
:
{
"parse5"
:
"^5.0.0"
,
"parse5"
:
"^5.0.0"
,
"tslib"
:
"^2.3.0"
"tslib"
:
"^2.3.0"
...
@@ -12220,9 +12220,9 @@
...
@@ -12220,9 +12220,9 @@
}
}
},
},
"@angular/material"
:
{
"@angular/material"
:
{
"version"
:
"14.2.
4
"
,
"version"
:
"14.2.
7
"
,
"resolved"
:
"https://registry.npmjs.org/@angular/material/-/material-14.2.
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@angular/material/-/material-14.2.
7
.tgz"
,
"integrity"
:
"sha512-
vS7dyrnr2YpZPjFFmnSZ9W0dFpBQ5cWf4CH5AI0/KfbCGC+2ybkFZ61oMNBf1xXdoyf4Ob16Dm3xerKWFwJ4s
Q=="
,
"integrity"
:
"sha512-
WXHh8pEStpgkXZJmYOg2cI8BSHkV82ET4XTJCNPdveumaCn1UYnaNzsXD13kw5z+zmy8CufhFEzdXTrv/yt7K
Q=="
,
"requires"
:
{
"requires"
:
{
"tslib"
:
"^2.3.0"
"tslib"
:
"^2.3.0"
}
}
...
...
frontend/sitcomm/package.json
View file @
abeec8c7
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
"@angular/compiler"
:
"^14.2.0"
,
"@angular/compiler"
:
"^14.2.0"
,
"@angular/core"
:
"^14.2.0"
,
"@angular/core"
:
"^14.2.0"
,
"@angular/forms"
:
"^14.2.0"
,
"@angular/forms"
:
"^14.2.0"
,
"@angular/material"
:
"^14.2.
4
"
,
"@angular/material"
:
"^14.2.
7
"
,
"@angular/platform-browser"
:
"^14.2.0"
,
"@angular/platform-browser"
:
"^14.2.0"
,
"@angular/platform-browser-dynamic"
:
"^14.2.0"
,
"@angular/platform-browser-dynamic"
:
"^14.2.0"
,
"@angular/router"
:
"^14.2.0"
,
"@angular/router"
:
"^14.2.0"
,
...
...
frontend/sitcomm/src/app/app.module.ts
View file @
abeec8c7
...
@@ -15,6 +15,7 @@ import { MatIconModule } from '@angular/material/icon';
...
@@ -15,6 +15,7 @@ import { MatIconModule } from '@angular/material/icon';
import
{
MatToolbarModule
}
from
'
@angular/material/toolbar
'
;
import
{
MatToolbarModule
}
from
'
@angular/material/toolbar
'
;
import
{
MatSidenavModule
}
from
'
@angular/material/sidenav
'
;
import
{
MatSidenavModule
}
from
'
@angular/material/sidenav
'
;
import
{
MatGridListModule
}
from
'
@angular/material/grid-list
'
;
import
{
MatGridListModule
}
from
'
@angular/material/grid-list
'
;
import
{
MatMenuModule
}
from
'
@angular/material/menu
'
;
import
{
MatCardModule
}
from
'
@angular/material/card
'
;
import
{
MatCardModule
}
from
'
@angular/material/card
'
;
import
{
ProfileComponent
}
from
'
./profile/profile.component
'
;
import
{
ProfileComponent
}
from
'
./profile/profile.component
'
;
import
{
GithubComponent
}
from
'
./github/github.component
'
;
import
{
GithubComponent
}
from
'
./github/github.component
'
;
...
@@ -53,6 +54,7 @@ import {MatExpansionModule} from '@angular/material/expansion';
...
@@ -53,6 +54,7 @@ import {MatExpansionModule} from '@angular/material/expansion';
MatSidenavModule
,
MatSidenavModule
,
MatGridListModule
,
MatGridListModule
,
MatCardModule
,
MatCardModule
,
MatMenuModule
,
MatTabsModule
,
MatTabsModule
,
MatStepperModule
,
MatStepperModule
,
MatListModule
,
MatListModule
,
...
...
frontend/sitcomm/src/app/jira/jira.component.css
View file @
abeec8c7
.mat-colname-css
{
width
:
80%
;
height
:
95%
;
background-color
:
ghostwhite
;
}
.mat-issuename-css
{
width
:
90%
;
height
:
90%
;
background-color
:
white
;
}
.menu-button-css
{
text-align
:
left
;
padding
:
0px
0px
;
text-decoration
:
none
;
display
:
inline-block
;
font-size
:
20px
;
}
\ No newline at end of file
frontend/sitcomm/src/app/jira/jira.component.html
View file @
abeec8c7
<p>
jira works!
</p>
<mat-grid-list
cols=
"4"
rowHeight=
{{calRowHeight()}}
[gutterSize]=
"'15px'"
style=
"padding: 20px;"
>
<mat-grid-tile
[colspan]=
1
[rowspan]=
1
>
<mat-card
class=
"mat-colname-css"
>
<mat-card-title>
TO DO
</mat-card-title>
<mat-card-content>
<mat-grid-list
cols=
'1'
rowHeight=
"3:1"
[gutterSize]=
"'10px'"
style=
"padding: 5px;"
>
<mat-grid-tile
*ngFor=
"let tile of to_do"
[colspan]=
1
[rowspan]=
1
>
<mat-card
class=
"mat-issuename-css"
>
<mat-card-title>
<button
mat-button
[matMenuTriggerFor]=
"menu"
class=
"menu-button-css"
>
{{tile.name}}
</button>
<mat-menu
#menu
="
matMenu
"
>
<button
mat-menu-item
(click)=
"moveToInProgress(tile.tid)"
>
Move to in progress
</button>
<button
mat-menu-item
(click)=
"moveToDone(tile.tid)"
>
Mark as done
</button>
</mat-menu>
</mat-card-title>
<mat-card-content>
<p>
{{tile.tid}}
</p>
<p>
{{tile.content}}
</p>
</mat-card-content>
</mat-card>
</mat-grid-tile>
</mat-grid-list>
</mat-card-content>
</mat-card>
</mat-grid-tile>
<mat-grid-tile
[colspan]=
1
[rowspan]=
1
>
<mat-card
class=
"mat-colname-css"
>
<mat-card-title>
IN PROGRESS
</mat-card-title>
<mat-card-content>
<mat-grid-list
cols=
'1'
rowHeight=
"3:1"
[gutterSize]=
"'10px'"
style=
"padding: 5px;"
>
<mat-grid-tile
*ngFor=
"let tile of in_prog"
[colspan]=
1
[rowspan]=
1
>
<mat-card
class=
"mat-issuename-css"
>
<mat-card-title>
<button
mat-button
[matMenuTriggerFor]=
"menu"
class=
"menu-button-css"
>
{{tile.name}}
</button>
<mat-menu
#menu
="
matMenu
"
>
<button
mat-menu-item
(click)=
"moveToToDo(tile.tid)"
>
Move to To Do
</button>
<button
mat-menu-item
(click)=
"moveToDone(tile.tid)"
>
Mark as done
</button>
</mat-menu>
</mat-card-title>
<mat-card-content>
<p>
{{tile.tid}}
</p>
<p>
{{tile.content}}
</p>
</mat-card-content>
</mat-card>
</mat-grid-tile>
</mat-grid-list>
</mat-card-content>
</mat-card>
</mat-grid-tile>
<mat-grid-tile
[colspan]=
1
[rowspan]=
1
>
<mat-card
class=
"mat-colname-css"
>
<mat-card-title>
DONE
</mat-card-title>
<mat-card-content>
<mat-grid-list
cols=
'1'
rowHeight=
"3:1"
[gutterSize]=
"'10px'"
style=
"padding: 5px;"
>
<mat-grid-tile
*ngFor=
"let tile of done"
[colspan]=
1
[rowspan]=
1
>
<mat-card
class=
"mat-issuename-css"
>
<mat-card-title>
<button
mat-button
[matMenuTriggerFor]=
"menu"
class=
"menu-button-css"
>
{{tile.name}}
</button>
<mat-menu
#menu
="
matMenu
"
>
<button
mat-menu-item
(click)=
"moveToToDo(tile.tid)"
>
Move to To Do
</button>
<button
mat-menu-item
(click)=
"moveToInProgress(tile.tid)"
>
Move to In Progress
</button>
</mat-menu>
</mat-card-title>
<mat-card-content>
<p>
{{tile.tid}}
</p>
<p>
{{tile.content}}
</p>
</mat-card-content>
</mat-card>
</mat-grid-tile>
</mat-grid-list>
</mat-card-content>
</mat-card>
</mat-grid-tile>
<mat-grid-tile
[colspan]=
1
[rowspan]=
1
>
<mat-card
class=
"mat-colname-css"
>
<mat-card-title>
BACKLOG
</mat-card-title>
<mat-card-content>
<mat-grid-list
cols=
'1'
rowHeight=
"3:1"
[gutterSize]=
"'10px'"
style=
"padding: 5px;"
>
<mat-grid-tile
*ngFor=
"let tile of backlog"
[colspan]=
1
[rowspan]=
1
>
<mat-card
class=
"mat-issuename-css"
>
<mat-card-title>
<button
mat-button
[matMenuTriggerFor]=
"menu"
class=
"menu-button-css"
>
{{tile.name}}
</button>
<mat-menu
#menu
="
matMenu
"
>
<button
mat-menu-item
(click)=
"moveToToDo(tile.tid)"
>
Move to To Do
</button>
<button
mat-menu-item
(click)=
"moveToInProgress(tile.tid)"
>
Move to In Progress
</button>
<button
mat-menu-item
(click)=
"moveToDone(tile.tid)"
>
Mark as Done
</button>
</mat-menu>
</mat-card-title>
<mat-card-content>
<p>
{{tile.tid}}
</p>
<p>
{{tile.content}}
</p>
</mat-card-content>
</mat-card>
</mat-grid-tile>
</mat-grid-list>
</mat-card-content>
</mat-card>
</mat-grid-tile>
</mat-grid-list>
frontend/sitcomm/src/app/jira/jira.component.ts
View file @
abeec8c7
...
@@ -8,11 +8,116 @@ import { FetcherService } from '../fetcher.service';
...
@@ -8,11 +8,116 @@ import { FetcherService } from '../fetcher.service';
styleUrls
:
[
'
./jira.component.css
'
]
styleUrls
:
[
'
./jira.component.css
'
]
})
})
export
class
JiraComponent
implements
OnInit
{
export
class
JiraComponent
implements
OnInit
{
projectId
=
NaN
;
id
:
number
;
constructor
(
private
fetcherService
:
FetcherService
)
{
}
name
:
string
;
/*
to_do: { tid: number; name: string; content: string; }[];
in_prog: { tid: number; name: string; content: string; }[];
done: { tid: number; name: string; content: string; }[];
backlog: { tid: number; name: string; content: string; }[];
*/
constructor
(
private
fetcherService
:
FetcherService
)
{
console
.
log
(
window
.
history
.
state
);
this
.
id
=
window
.
history
.
state
.
id
;
this
.
name
=
window
.
history
.
state
.
name
;
/*
this.to_do = TO_DO;
this.in_prog = IN_PROGRESS;
this.done = DONE;
this.backlog = BACKLOG;
*/
}
calColCount
(){
console
.
log
(
window
.
innerWidth
);
if
(
window
.
innerWidth
>
1000
){
return
4
;
}
else
if
(
window
.
innerWidth
>
600
){
return
2
;
}
else
{
return
1
;
}
}
calRowHeight
(){
let
max_issue
=
Math
.
max
(
this
.
to_do
.
length
,
this
.
in_prog
.
length
,
this
.
done
.
length
,
this
.
backlog
.
length
)
let
str
=
''
;
str
=
'
1:
'
+
(
max_issue
/
3
);
/*
console.log(max_issue);
console.log(str);
*/
return
str
;
}
fetchList
(
id
:
number
)
{
//return dummy data of type entry
if
(
id
==
1
){
return
TO_DO
;
}
else
if
(
id
==
2
){
return
IN_PROGRESS
;
}
else
if
(
id
==
3
){
return
DONE
;
}
else
{
return
BACKLOG
;
}
}
moveToInProgress
(
tid
:
number
){
console
.
log
(
tid
);
console
.
log
(
'
Move to In Progress
'
);
}
moveToDone
(
tid
:
number
){
console
.
log
(
tid
);
console
.
log
(
'
Move to Done
'
);
}
moveToToDo
(
tid
:
number
){
console
.
log
(
tid
);
console
.
log
(
'
Move to ToDo
'
);
}
ngOnInit
():
void
{
ngOnInit
():
void
{
this
.
projectId
=
this
.
fetcherService
.
getCurrentProjectId
(
);
this
.
fetcherService
.
setCurrentProjectId
(
this
.
id
);
}
}
col_name
=
GRID_NAME
;
to_do
=
TO_DO
;
in_prog
=
IN_PROGRESS
;
done
=
DONE
;
backlog
=
BACKLOG
;
}
}
export
const
GRID_NAME
=
[
{
name
:
'
TO DO ISSUES
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
name
:
'
IN PROGRESS
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
name
:
'
DONE
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
name
:
'
BACKLOG
'
,
content
:
'
BLAH BLAH BLAH
'
},
]
export
const
TO_DO
=
[
{
tid
:
1
,
name
:
'
A
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
tid
:
2
,
name
:
'
B
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
tid
:
3
,
name
:
'
C
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
tid
:
4
,
name
:
'
D
'
,
content
:
'
BLAH BLAH BLAH
'
},
]
export
const
IN_PROGRESS
=
[
{
tid
:
5
,
name
:
'
E
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
tid
:
6
,
name
:
'
F
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
tid
:
7
,
name
:
'
G
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
tid
:
8
,
name
:
'
H
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
tid
:
9
,
name
:
'
I
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
tid
:
10
,
name
:
'
J
'
,
content
:
'
BLAH BLAH BLAH
'
},
]
export
const
DONE
=
[
{
tid
:
11
,
name
:
'
K
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
tid
:
12
,
name
:
'
L
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
tid
:
13
,
name
:
'
M
'
,
content
:
'
BLAH BLAH BLAH
'
},
]
export
const
BACKLOG
=
[
{
tid
:
14
,
name
:
'
N
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
tid
:
15
,
name
:
'
O
'
,
content
:
'
BLAH BLAH BLAH
'
},
{
tid
:
16
,
name
:
'
P
'
,
content
:
'
BLAH BLAH BLAH
'
},
]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment