Skip to content

Commit

Permalink
Merge pull request #3 from puneet222/master
Browse files Browse the repository at this point in the history
Release Action working
  • Loading branch information
s-garg authored Mar 1, 2021
2 parents a2c38d1 + 40251ba commit 2403bc0
Show file tree
Hide file tree
Showing 81 changed files with 863 additions and 228 deletions.
15 changes: 0 additions & 15 deletions .gitignnore

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"typescript": "^4.1.3",
"uglifyjs-webpack-plugin": "^2.2.0",
"uuid": "^8.3.2",
"wb-packager-webpack-plugin": "^1.0.0",
"wb-packager-webpack-plugin": "^1.1.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.11.0"
Expand Down
17 changes: 0 additions & 17 deletions src/actions/workSpaces/get_options.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/actions/workSpaces/option/projects/get_options.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/actions/workSpaces/option/projects/new_project.ts

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
26 changes: 0 additions & 26 deletions src/actions/workSpaces/option/teams/get_options.ts

This file was deleted.

35 changes: 0 additions & 35 deletions src/actions/workSpaces/option/teams/option/projects/get_options.ts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
24 changes: 0 additions & 24 deletions src/actions/workSpaces/option/teams/option/users/get_options.ts

This file was deleted.

Binary file removed src/actions/workSpaces/workspace_icons/workspace.png
Binary file not shown.
12 changes: 12 additions & 0 deletions src/actions/workspaces/get_options.ts
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.
18 changes: 18 additions & 0 deletions src/actions/workspaces/option/projects/get_options.ts
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;
11 changes: 11 additions & 0 deletions src/actions/workspaces/option/projects/new_project.ts
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 src/actions/workspaces/option/projects/option/archive_project.ts
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 src/actions/workspaces/option/projects/option/delete_project.ts
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);
}
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;
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);
}
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);
}
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);
}
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;
Loading

0 comments on commit 2403bc0

Please sign in to comment.