Skip to content

Commit

Permalink
remove deprecated dast files
Browse files Browse the repository at this point in the history
  • Loading branch information
avzz-19 committed Jan 2, 2025
1 parent a8b76a2 commit dce8e4a
Show file tree
Hide file tree
Showing 32 changed files with 2 additions and 1,790 deletions.
14 changes: 0 additions & 14 deletions app/adapters/device-preference.ts

This file was deleted.

15 changes: 0 additions & 15 deletions app/adapters/dynamicscan-mode.ts

This file was deleted.

31 changes: 0 additions & 31 deletions app/adapters/dynamicscan-old.ts

This file was deleted.

28 changes: 2 additions & 26 deletions app/adapters/project-available-device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import commondrf from './commondrf';

interface ProjectAvailableDevicesQueryObj {
projectId: string | number;
manualDevices?: boolean;
}

export default class ProjectAvailableDeviceAdapter extends commondrf {
_buildURL(
modelName: string | number,
Expand All @@ -23,37 +23,13 @@ export default class ProjectAvailableDeviceAdapter extends commondrf {
modelName: string | number,
query: ProjectAvailableDevicesQueryObj
) {
let url = '';

if (query.manualDevices) {
url = this.getAvailableManualDevicesURL(query);

delete query.manualDevices;
} else {
const projectURL = this._buildURL(modelName, query.projectId);
url = [projectURL, 'available-devices'].join('/');
}

return url;
}

urlForQuery<K extends string | number>(
query: ProjectAvailableDevicesQueryObj,
modelName: K
) {
return this._buildNestedURL(modelName, query);
}

getAvailableManualDevicesURL(query: ProjectAvailableDevicesQueryObj) {
const projectURL = this._buildURL(
'project',
query.projectId,
this.namespace_v2
);

const url = projectURL + '/available_manual_devices';

return url;
return projectURL + '/available_manual_devices';
}
}

Expand Down
237 changes: 0 additions & 237 deletions app/components/file-details/dynamic-scan/drawer-old/index.hbs

This file was deleted.

37 changes: 0 additions & 37 deletions app/components/file-details/dynamic-scan/drawer-old/index.scss

This file was deleted.

Loading

0 comments on commit dce8e4a

Please sign in to comment.