Skip to content

Commit 429e9c7

Browse files
AuraOfDivinityksraj123
authored andcommitted
Asel's code
Ticket system requested changes Adding ticket dicussion page
1 parent 303b2a0 commit 429e9c7

23 files changed

+1612
-2
lines changed

package-lock.json

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"react-chartjs-2": "^2.9.0",
3030
"react-content-loader": "^5.0.4",
3131
"react-cookies": "^0.1.1",
32+
"react-data-table-component": "^6.11.0",
3233
"react-datepicker": "^3.1.3",
3334
"react-dom": "^16.12.0",
3435
"react-dropzone": "^11.0.1",
@@ -46,6 +47,7 @@
4647
"react-share": "^4.2.1",
4748
"react-spinners": "^0.8.3",
4849
"react-switch": "^5.0.1",
50+
"react-tiny-fab": "^3.5.0",
4951
"react-toastify": "^6.0.5",
5052
"redux": "^4.0.5",
5153
"redux-thunk": "^2.3.0",

src/assets/jsonData/tickets.js

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
export default [
2+
{
3+
id: 1,
4+
title: "Requirement of new Integration",
5+
year: "1988",
6+
runtime: "92",
7+
genres: ["Open"],
8+
director: "Tim Burton",
9+
actors: "Alec Baldwin, Geena Davis, Annie McEnroe, Maurice Page",
10+
plot:
11+
"We require a new integration for slack. I would really appreciate it if some of the developers could look into this matter! Please feel free to reach out to me for more information regarding this!. I would be glad to help!",
12+
posterUrl:
13+
"https://images-na.ssl-images-amazon.com/images/M/MV5BMTUwODE3MDE0MV5BMl5BanBnXkFtZTgwNTk1MjI4MzE@._V1_SX300.jpg",
14+
},
15+
{
16+
id: 2,
17+
title: "The Cotton Club",
18+
year: "1984",
19+
runtime: "127",
20+
genres: ["Open"],
21+
director: "Francis Ford Coppola",
22+
actors: "Richard Gere, Gregory Hines, Diane Lane, Lonette McKee",
23+
plot:
24+
"The Cotton Club was a famous night club in Harlem. The story follows the people that visited the club, those that ran it, and is peppered with the Jazz music that made it so famous.",
25+
posterUrl:
26+
"https://images-na.ssl-images-amazon.com/images/M/MV5BMTU5ODAyNzA4OV5BMl5BanBnXkFtZTcwNzYwNTIzNA@@._V1_SX300.jpg",
27+
},
28+
{
29+
id: 3,
30+
title: "The Shawshank Redemption",
31+
year: "1994",
32+
runtime: "142",
33+
genres: ["Solved"],
34+
director: "Frank Darabont",
35+
actors: "Tim Robbins, Morgan Freeman, Bob Gunton, William Sadler",
36+
plot:
37+
"Two imprisoned men bond over a number of years, finding solace and eventual redemption through acts of common decency.",
38+
posterUrl:
39+
"https://images-na.ssl-images-amazon.com/images/M/MV5BODU4MjU4NjIwNl5BMl5BanBnXkFtZTgwMDU2MjEyMDE@._V1_SX300.jpg",
40+
},
41+
{
42+
id: 4,
43+
title: "Crocodile Dundee",
44+
year: "1986",
45+
runtime: "97",
46+
genres: ["Pending"],
47+
director: "Peter Faiman",
48+
actors: "Paul Hogan, Linda Kozlowski, John Meillon, David Gulpilil",
49+
plot:
50+
"An American reporter goes to the Australian outback to meet an eccentric crocodile poacher and invites him to New York City.",
51+
posterUrl:
52+
"https://images-na.ssl-images-amazon.com/images/M/MV5BMTg0MTU1MTg4NF5BMl5BanBnXkFtZTgwMDgzNzYxMTE@._V1_SX300.jpg",
53+
},
54+
{
55+
id: 5,
56+
title: "Valkyrie",
57+
year: "2008",
58+
runtime: "121",
59+
genres: ["OnHold"],
60+
director: "Bryan Singer",
61+
actors: "Tom Cruise, Kenneth Branagh, Bill Nighy, Tom Wilkinson",
62+
plot:
63+
"A dramatization of the 20 July assassination and political coup plot by desperate renegade German Army officers against Hitler during World War II.",
64+
posterUrl:
65+
"http://ia.media-imdb.com/images/M/MV5BMTg3Njc2ODEyN15BMl5BanBnXkFtZTcwNTAwMzc3NA@@._V1_SX300.jpg",
66+
},
67+
{
68+
id: 6,
69+
title: "Ratatouille",
70+
year: "2007",
71+
runtime: "111",
72+
genres: ["Open"],
73+
director: "Brad Bird, Jan Pinkava",
74+
actors: "Patton Oswalt, Ian Holm, Lou Romano, Brian Dennehy",
75+
plot:
76+
"A rat who can cook makes an unusual alliance with a young kitchen worker at a famous restaurant.",
77+
posterUrl:
78+
"https://images-na.ssl-images-amazon.com/images/M/MV5BMTMzODU0NTkxMF5BMl5BanBnXkFtZTcwMjQ4MzMzMw@@._V1_SX300.jpg",
79+
},
80+
{
81+
id: 7,
82+
title: "City of God",
83+
year: "2002",
84+
runtime: "130",
85+
genres: ["Solved"],
86+
director: "Fernando Meirelles, Kátia Lund",
87+
actors:
88+
"Alexandre Rodrigues, Leandro Firmino, Phellipe Haagensen, Douglas Silva",
89+
plot:
90+
"Two boys growing up in a violent neighborhood of Rio de Janeiro take different paths: one becomes a photographer, the other a drug dealer.",
91+
posterUrl:
92+
"https://images-na.ssl-images-amazon.com/images/M/MV5BMjA4ODQ3ODkzNV5BMl5BanBnXkFtZTYwOTc4NDI3._V1_SX300.jpg",
93+
},
94+
{
95+
id: 8,
96+
title: "Memento",
97+
year: "2000",
98+
runtime: "113",
99+
genres: ["Solved"],
100+
director: "Christopher Nolan",
101+
actors: "Guy Pearce, Carrie-Anne Moss, Joe Pantoliano, Mark Boone Junior",
102+
plot:
103+
"A man juggles searching for his wife's murderer and keeping his short-term memory loss from being an obstacle.",
104+
posterUrl:
105+
"https://images-na.ssl-images-amazon.com/images/M/MV5BNThiYjM3MzktMDg3Yy00ZWQ3LTk3YWEtN2M0YmNmNWEwYTE3XkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg",
106+
},
107+
{
108+
id: 9,
109+
title: "The Intouchables",
110+
year: "2011",
111+
runtime: "112",
112+
genres: ["Closed"],
113+
director: "Olivier Nakache, Eric Toledano",
114+
actors: "François Cluzet, Omar Sy, Anne Le Ny, Audrey Fleurot",
115+
plot:
116+
"After he becomes a quadriplegic from a paragliding accident, an aristocrat hires a young man from the projects to be his caregiver.",
117+
posterUrl:
118+
"http://ia.media-imdb.com/images/M/MV5BMTYxNDA3MDQwNl5BMl5BanBnXkFtZTcwNTU4Mzc1Nw@@._V1_SX300.jpg",
119+
},
120+
{
121+
id: 10,
122+
title: "The Intouchables",
123+
year: "2011",
124+
runtime: "112",
125+
genres: ["Open"],
126+
director: "Olivier Nakache, Eric Toledano",
127+
actors: "François Cluzet, Omar Sy, Anne Le Ny, Audrey Fleurot",
128+
plot:
129+
"After he becomes a quadriplegic from a paragliding accident, an aristocrat hires a young man from the projects to be his caregiver.",
130+
posterUrl:
131+
"http://ia.media-imdb.com/images/M/MV5BMTYxNDA3MDQwNl5BMl5BanBnXkFtZTcwNTU4Mzc1Nw@@._V1_SX300.jpg",
132+
},
133+
];

src/assets/svgs/Closed.svg

Lines changed: 3 additions & 0 deletions
Loading

src/assets/svgs/OnHold.svg

Lines changed: 3 additions & 0 deletions
Loading

src/assets/svgs/Open.svg

Lines changed: 3 additions & 0 deletions
Loading

src/assets/svgs/Pending.svg

Lines changed: 3 additions & 0 deletions
Loading

src/assets/svgs/Solved.svg

Lines changed: 3 additions & 0 deletions
Loading

src/assets/svgs/Ticket.svg

Lines changed: 3 additions & 0 deletions
Loading

src/router.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ import AdminRoute from "./common/AdminRoute";
2323
import Activity from "./user/Activity/Activity";
2424
import IntegrationsPage from "./user/integrations/IntegrationsPage/IntegrationsPage";
2525
import UserIntegrations from "./user/integrations/UserIntegrations/UserIntegrations";
26+
import TicketDashboard from "../src/user/Admin/Tickets/TicketDashboard";
27+
import TicketDiscussion from "../src/user/Admin/Tickets/TicketDiscussions";
2628

2729
const Router = () => (
2830
<BrowserRouter>
@@ -48,6 +50,7 @@ const Router = () => (
4850
<PrivateRoute exact path="/setup" component={Setup} />
4951
<AdminRoute exact path="/org-settings" component={CommunitySetting} />
5052
<AdminRoute exact path="/activity/:userId" component={Activity} />
53+
<AdminRoute exact path="/tickets" component={TicketDashboard} />
5154
<PrivateRoute exact path="/insight" component={Insight} />
5255
<PrivateRoute exact path="/admin" component={Admin} />
5356
<PrivateRoute exact path="/integrations" component={IntegrationsPage} />
@@ -56,6 +59,11 @@ const Router = () => (
5659
path="/userintegrations"
5760
component={UserIntegrations}
5861
/>
62+
<PrivateRoute
63+
exact
64+
path="/ticketdiscussion"
65+
component={TicketDiscussion}
66+
/>
5967
<Route component={NotFound} />
6068
</Switch>
6169
</BrowserRouter>

0 commit comments

Comments
 (0)