This repository was archived by the owner on Feb 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +2
-27
lines changed
Expand file tree Collapse file tree 3 files changed +2
-27
lines changed Original file line number Diff line number Diff line change 33
44< head >
55 < meta charset ="utf-8 " />
6+ < title > GrayTabby</ title >
67 < link rel ="icon " type ="image/png " href ="assets/img/blobbycat/browseraction128.png " />
78 < link rel ="stylesheet " type ="text/css " href ="app.css " />
89</ head >
Original file line number Diff line number Diff line change 33 * non-trivial logic here.
44 */
55
6- // Webpack uses MiniCssExtractPlugin when it sees this.
76import { App } from './components/app' ;
87import { DOCUMENT , PAGE_LOAD } from './lib/globals' ;
9- import { loadAllTabGroups } from './lib/tabs_store' ;
108import './style/app.scss' ;
119
12- export class Debugger {
13- async double ( ) : Promise < void > {
14- const groups = await loadAllTabGroups ( ) ;
15- let earliest = Math . min ( ...groups . map ( g => g . date ) ) ;
16- const groupDiv : HTMLDivElement = DOCUMENT . get ( ) . querySelector ( '#groups' ) ;
17- const promises : Promise < void > [ ] = [ ] ;
18- for ( const group of groups ) {
19- earliest -= 1000 ;
20- // TODO
21- // await ingestTabs(group.tabs, groupDiv, () => earliest);
22- }
23- await Promise . all ( promises ) ;
24- }
25- }
26-
27- declare global {
28- interface Window {
29- gt : Debugger ;
30- }
31- }
32-
3310/**
3411 * The main entry point for GrayTabby.
3512 */
3613export async function graytabby ( ) : Promise < void > {
37- DOCUMENT . get ( ) . title = 'GrayTabby' ;
3814 const app = DOCUMENT . get ( ) . body . appendChild ( App ( ) ) ;
3915 await app . initialRender ;
40- DOCUMENT . get ( ) . defaultView . gt = new Debugger ( ) ;
4116}
4217
4318graytabby ( ) . then (
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import { PaginatorComponent } from './paginator';
1010
1111async function ingestTabs (
1212 tabSummaries : BrowserTab [ ] ,
13- groupsNode : HTMLDivElement ,
1413 now = ( ) => new Date ( ) . getTime ( ) ,
1514) : Promise < void > {
1615 if ( tabSummaries . length == 0 ) return ;
@@ -96,7 +95,7 @@ export function App(): AppElement {
9695 self . initialRender = render ( 0 ) ;
9796
9897 ARCHIVAL . get ( ) . sub ( async summaries => {
99- await ingestTabs ( summaries , groupsWrapper ) ;
98+ await ingestTabs ( summaries ) ;
10099 await render ( 0 ) ;
101100 } ) ;
102101
You can’t perform that action at this time.
0 commit comments