Skip to content

Commit

Permalink
taskmanager v0.9.19
Browse files Browse the repository at this point in the history
  • Loading branch information
chinonso098 committed Nov 3, 2023
1 parent dbcec30 commit 89d1b1a
Show file tree
Hide file tree
Showing 7 changed files with 847 additions and 6 deletions.
4 changes: 3 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@
],
"styles": [
"src/styles.css",
"node_modules/ngx-draggable-resize/css/resizable.min.css"
"node_modules/ngx-draggable-resize/css/resizable.min.css",
"node_modules/@validide/resizable-table-columns/dist/css/resizable-table-columns.css"
],
"scripts": [
"./src/scripts/bundle/index.js",
"node_modules/js-dos/dist/js-dos.js"
]
},
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@angular/platform-browser": "^15.1.2",
"@angular/platform-browser-dynamic": "^15.1.2",
"@angular/router": "^15.1.2",
"@validide/resizable-table-columns": "^2.1.0",
"browserfs": "^1.4.3",
"emulators": "^0.73.7",
"emulators-ui": "^0.73.7",
Expand Down
1 change: 1 addition & 0 deletions src/app/system-apps/taskmanager/resizable.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module '@validide/resizable-table-columns';
13 changes: 11 additions & 2 deletions src/app/system-apps/taskmanager/taskmanager.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import { StateManagmentService } from 'src/app/shared/system-service/state.manag
import { FileInfo } from 'src/app/system-files/fileinfo';
import { RefreshRates, RefreshRatesIntervals, TableColumns } from './taskmanager.enum';
import { TriggerProcessService } from 'src/app/shared/system-service/trigger.process.service';
import { ResizableTableColumns } from '@validide/resizable-table-columns';
import { IStore } from 'resizable-options';


@Component({
selector: 'cos-taskmanager',
Expand Down Expand Up @@ -40,7 +43,7 @@ export class TaskmanagerComponent implements BaseComponent,OnInit,OnDestroy,Afte
private _sorting:SortingInterface ={
column: '',
order: 'asc',
}
}

private sleepNumber = 0;
private sleepCounter = 0;
Expand Down Expand Up @@ -92,6 +95,7 @@ export class TaskmanagerComponent implements BaseComponent,OnInit,OnDestroy,Afte

constructor( processIdService:ProcessIDService,runningProcessService:RunningProcessService,
stateManagmentService: StateManagmentService,triggerProcessService:TriggerProcessService, renderer: Renderer2) {

this._processIdService = processIdService;
this._runningProcessService = runningProcessService;
this._stateManagmentService = stateManagmentService;
Expand Down Expand Up @@ -126,7 +130,11 @@ export class TaskmanagerComponent implements BaseComponent,OnInit,OnDestroy,Afte
}

ngAfterViewInit(): void {
this.applyDefaultColumnStyle();

// const table = this.tableId.nativeElement as HTMLCollection;
// new ResizableTableColumns(table, null); table column resize is acting.....not right.

this.applyDefaultColumnStyle();
//Initial delay 1 seconds and interval countdown also 2 second
this._taskmgrRefreshIntervalSub = interval(this.refreshRateInterval).subscribe(() => {
this.generateLies();
Expand All @@ -147,6 +155,7 @@ export class TaskmanagerComponent implements BaseComponent,OnInit,OnDestroy,Afte
});
}


isDescSorting(column: string): boolean {
return this._sorting.column === column && this._sorting.order === 'desc';
}
Expand Down
3 changes: 0 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="osdrive/picture/favicon.ico">
<!-- <script>
emulators.pathPrefix = "node_modules/js-dos";
</script> -->
</head>
<body>
<cos-root></cos-root>
Expand Down
Loading

0 comments on commit 89d1b1a

Please sign in to comment.