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 13, 2025
1 parent 17decfe commit 5a455b6
Show file tree
Hide file tree
Showing 46 changed files with 31 additions and 2,064 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
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export interface FileDetailsDynamicScanDrawerDevicePrefTableTypeSignature {
}

export default class FileDetailsDynamicScanDrawerDevicePrefTableTypeComponent extends Component<FileDetailsDynamicScanDrawerDevicePrefTableTypeSignature> {
isPhoneDevice = ENUMS.DEVICE_TYPE.PHONE_REQUIRED;
isTabletDevice = ENUMS.DEVICE_TYPE.TABLET_REQUIRED;
isPhoneDevice = ENUMS.DS_AUTOMATED_DEVICE_TYPE.PHONE_REQUIRED;
isTabletDevice = ENUMS.DS_AUTOMATED_DEVICE_TYPE.TABLET_REQUIRED;
}

declare module '@glint/environment-ember-loose/registry' {
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 5a455b6

Please sign in to comment.