-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from puneet222/master
Release Action working
- Loading branch information
Showing
81 changed files
with
863 additions
and
228 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/actions/workSpaces/option/projects/option/archive_project.ts
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/actions/workSpaces/option/projects/option/delete_project.ts
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
src/actions/workSpaces/option/teams/option/projects/get_options.ts
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/actions/workSpaces/option/teams/option/projects/new_project.ts
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/actions/workSpaces/option/teams/option/projects/option/archive_project.ts
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/actions/workSpaces/option/teams/option/projects/option/delete_project.ts
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-6.54 KB
src/actions/workSpaces/option/teams/option/projects/project_icons/project.png
Binary file not shown.
24 changes: 0 additions & 24 deletions
24
src/actions/workSpaces/option/teams/option/users/get_options.ts
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import retrieveWorkspaces from "../../common/retrieveWorkspaces"; | ||
|
||
const returnOptions = () => { | ||
|
||
const workspaces = retrieveWorkspaces(); | ||
|
||
return { | ||
add: workspaces | ||
}; | ||
} | ||
|
||
export default returnOptions; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import retrieveProjects from "../../../../common/retrieveProjects"; | ||
import { Project, Workspace } from "../../../../utils/interfaces"; | ||
|
||
// @description Get all projects | ||
|
||
const returnOptions = () => { | ||
let projects: Project[] = []; | ||
if (options.workspaces) { | ||
const workspace = options.workspaces as Workspace; | ||
projects = retrieveProjects("workspace", workspace.gid); | ||
} | ||
|
||
return { | ||
add: projects | ||
}; | ||
} | ||
|
||
export default returnOptions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import createProject from "../../../../common/createProject"; | ||
import { PROJECTS, WORKSPACES } from "../../../../utils/constants"; | ||
import { Team, Workspace } from "../../../../utils/interfaces"; | ||
|
||
// @description Create new Project | ||
|
||
if (options.workspaces) { | ||
const workspace = options.workspaces as Workspace; | ||
const indexPath: string[] = [WORKSPACES, workspace.name, PROJECTS]; | ||
createProject("workspace", workspace.gid, indexPath); | ||
} |
12 changes: 12 additions & 0 deletions
12
src/actions/workspaces/option/projects/option/archive_project.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import archiveProject from "../../../../../common/archiveProject"; | ||
import { PROJECTS, WORKSPACES } from "../../../../../utils/constants"; | ||
import { Project, Workspace } from "../../../../../utils/interfaces"; | ||
|
||
// @description Archive Project | ||
|
||
if (options.workspaces && options.projects) { | ||
const workspace = options.workspaces as Workspace; | ||
const project = options.projects as Project; | ||
const indexPath: string[] = [WORKSPACES, workspace.name, PROJECTS]; | ||
archiveProject(project.gid, indexPath); | ||
} |
12 changes: 12 additions & 0 deletions
12
src/actions/workspaces/option/projects/option/delete_project.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import removeProject from "../../../../../common/removeProject"; | ||
import { PROJECTS, WORKSPACES } from "../../../../../utils/constants"; | ||
import { Project, Workspace } from "../../../../../utils/interfaces"; | ||
|
||
// @description Delete Project | ||
|
||
if (options.workspaces && options.projects) { | ||
const workspace = options.workspaces as Workspace; | ||
const project = options.projects as Project; | ||
const indexPath: string[] = [WORKSPACES, workspace.name, PROJECTS]; | ||
removeProject(project.gid, indexPath); | ||
} |
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
src/actions/workspaces/option/projects/option/sections/get_options.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import retrieveSections from "../../../../../../common/retrieveSections"; | ||
import { Project, Section } from "../../../../../../utils/interfaces"; | ||
|
||
// @description Get all project sections | ||
|
||
const returnOptions = () => { | ||
let sections: Section[] = []; | ||
|
||
if (options.projects) { | ||
const project = options.projects as Project; | ||
sections = retrieveSections(project.gid); | ||
} | ||
|
||
return { | ||
add: sections | ||
}; | ||
} | ||
|
||
export default returnOptions; |
12 changes: 12 additions & 0 deletions
12
src/actions/workspaces/option/projects/option/sections/new_section.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import createSection from "../../../../../../common/createSection"; | ||
import { PROJECTS, SECTIONS, WORKSPACES } from "../../../../../../utils/constants"; | ||
import { Project, Workspace } from "../../../../../../utils/interfaces"; | ||
|
||
// @description Create new section | ||
|
||
if (options.workspaces && options.projects) { | ||
const workspace = options.workspaces as Workspace; | ||
const project = options.projects as Project; | ||
const indexPath: string[] = [WORKSPACES, workspace.name, PROJECTS, project.name, SECTIONS]; | ||
createSection(project.gid, indexPath); | ||
} |
11 changes: 11 additions & 0 deletions
11
src/actions/workspaces/option/projects/option/sections/option/create_task.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import createTask from "../../../../../../../common/createTask"; | ||
import { Project, Section, Workspace } from "../../../../../../../utils/interfaces"; | ||
|
||
// @description Create new task | ||
|
||
if(options.workspaces && options.projects && options.sections) { | ||
const workspace = options.workspaces as Workspace; | ||
const project = options.projects as Project; | ||
const section = options.sections as Section; | ||
createTask(workspace.gid, project.gid, section.gid); | ||
} |
13 changes: 13 additions & 0 deletions
13
src/actions/workspaces/option/projects/option/sections/option/delete_section.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import removeSection from "../../../../../../../common/removeSection"; | ||
import { PROJECTS, SECTIONS, WORKSPACES } from "../../../../../../../utils/constants"; | ||
import { Project, Section, Workspace } from "../../../../../../../utils/interfaces"; | ||
|
||
// @description Delete Section | ||
|
||
if (options.workspaces && options.sections) { | ||
const workspace = options.workspaces as Workspace; | ||
const project = options.projects as Project; | ||
const section = options.sections as Section; | ||
const indexPath: string[] = [WORKSPACES, workspace.name, PROJECTS, project.name, SECTIONS]; | ||
removeSection(section.gid, indexPath); | ||
} |
19 changes: 19 additions & 0 deletions
19
src/actions/workspaces/option/projects/option/sections/option/tasks/get_options.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import retrieveTasks from "../../../../../../../../common/retrieveTasks"; | ||
import { Section, Task } from "../../../../../../../../utils/interfaces"; | ||
|
||
// @description Get all tasks in a section | ||
|
||
const returnOptions = () => { | ||
let tasks: Task[] = []; | ||
|
||
if (options.sections) { | ||
const section = options.sections as Section; | ||
tasks = retrieveTasks("section", section.gid); | ||
} | ||
|
||
return { | ||
add: tasks | ||
}; | ||
} | ||
|
||
export default returnOptions; |
Oops, something went wrong.