Skip to content

Commit

Permalink
Revert "fix: Fix workspace urls to allow direct navigations to the wo…
Browse files Browse the repository at this point in the history
…rkspace relative pages (#119)"

This reverts commit 4227929.
  • Loading branch information
jessieweiyi committed Jun 18, 2024
1 parent 4227929 commit 22b3f46
Show file tree
Hide file tree
Showing 64 changed files with 500 additions and 960 deletions.
4 changes: 0 additions & 4 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions packages/threat-composer-app/.projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/threat-composer-app/.projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/threat-composer-app/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

28 changes: 0 additions & 28 deletions packages/threat-composer-app/src/config/appMode.ts

This file was deleted.

46 changes: 14 additions & 32 deletions packages/threat-composer-app/src/config/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,17 @@
See the License for the specific language governing permissions and
limitations under the License.
******************************************************************************************************************** */
export const ROUTE_WORKSPACE_PATH = 'workspaces/:workspaceId';
export const ROUTE_WORKSPACE_HOME_PATH = 'dashboard';
export const ROUTE_WORKSPACE_HOME = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_WORKSPACE_HOME_PATH}`;
export const ROUTE_THREAT_LIST_PATH = 'threats';
export const ROUTE_THREAT_LIST = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_THREAT_LIST_PATH}`;
export const ROUTE_THREAT_EDITOR_PATH = 'threats/:threatId';
export const ROUTE_THREAT_EDITOR = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_THREAT_EDITOR_PATH}`;
export const ROUTE_MITIGATION_LIST_PATH = 'mitigations';
export const ROUTE_MITIGATION_LIST = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_MITIGATION_LIST_PATH}`;
export const ROUTE_ASSUMPTION_LIST_PATH = 'assumptions';
export const ROUTE_ASSUMPTION_LIST = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_ASSUMPTION_LIST_PATH}`;
export const ROUTE_APPLICATION_INFO_PATH = 'application';
export const ROUTE_APPLICATION_INFO = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_APPLICATION_INFO_PATH}`;
export const ROUTE_ARCHITECTURE_INFO_PATH = 'architecture';
export const ROUTE_ARCHITECTURE_INFO = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_ARCHITECTURE_INFO_PATH}`;
export const ROUTE_DATAFLOW_INFO_PATH = 'dataflow';
export const ROUTE_DATAFLOW_INFO = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_DATAFLOW_INFO_PATH}`;
export const ROUTE_VIEW_THREAT_MODEL_PATH = 'threatModel';
export const ROUTE_VIEW_THREAT_MODEL = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_VIEW_THREAT_MODEL_PATH}`;
export const ROUTE_THREAT_PACKS_PATH = 'threatPacks';
export const ROUTE_THREAT_PACKS = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_THREAT_PACKS_PATH}`;
export const ROUTE_THREAT_PACK_PATH = 'threatPacks/:threatPackId';
export const ROUTE_THREAT_PACK = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_THREAT_PACK_PATH}`;
export const ROUTE_THREAT_PACK_THREAT_PATH = 'threatPacks/:threatPackId/:threatId';
export const ROUTE_THREAT_PACK_THREAT = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_THREAT_PACK_THREAT_PATH}`;
export const ROUTE_MITIGATION_PACKS_PATH = 'mitigationPacks';
export const ROUTE_MITIGATION_PACKS = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_MITIGATION_PACKS_PATH}`;
export const ROUTE_MITIGATION_PACK_PATH = 'mitigationPacks/:mitigationPackId';
export const ROUTE_MITIGATION_PACK = `/${ROUTE_WORKSPACE_PATH}/${ROUTE_MITIGATION_PACK_PATH}`;
export const ROUTE_PREVIEW_PATH = 'preview/:dataKey';
export const ROUTE_PREVIEW = `/${ROUTE_PREVIEW_PATH}`;
export const ROUTE_WORKSPACE_DEFAULT = 'workspaces/default';
export const ROUTE_WORKSPACE_HOME = '/workspaces/:workspaceId/dashboard';
export const ROUTE_THREAT_LIST = '/workspaces/:workspaceId/threats';
export const ROUTE_THREAT_EDITOR = '/workspaces/:workspaceId/threats/:threatId';
export const ROUTE_MITIGATION_LIST = '/workspaces/:workspaceId/mitigations';
export const ROUTE_ASSUMPTION_LIST = '/workspaces/:workspaceId/assumptions';
export const ROUTE_APPLICATION_INFO = '/workspaces/:workspaceId/application';
export const ROUTE_ARCHITECTURE_INFO = '/workspaces/:workspaceId/architecture';
export const ROUTE_DATAFLOW_INFO = '/workspaces/:workspaceId/dataflow';
export const ROUTE_VIEW_THREAT_MODEL = '/workspaces/:workspaceId/threatModel';
export const ROUTE_THREAT_PACKS = '/workspaces/:workspaceId/threatPacks';
export const ROUTE_THREAT_PACK = '/workspaces/:workspaceId/threatPacks/:threatPackId';
export const ROUTE_THREAT_PACK_THREAT = '/workspaces/:workspaceId/threatPacks/:threatPackId/:threatId';
export const ROUTE_MITIGATION_PACKS = '/workspaces/:workspaceId/mitigationPacks';
export const ROUTE_MITIGATION_PACK = '/workspaces/:workspaceId/mitigationPacks/:mitigationPackId';
Loading

0 comments on commit 22b3f46

Please sign in to comment.