Skip to content

Commit c897ba7

Browse files
committed
Flatten the file structute of extension pkg
1 parent 4081416 commit c897ba7

25 files changed

+56
-82
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/extension/shared/icons.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/extension/background/background.ts renamed to packages/extension/src/background.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ It has to coordinate the communication between the different scripts based on th
77
*/
88

99
import {error, log} from '@solid-devtools/shared/utils'
10-
import * as bridge from '../shared/bridge.ts'
11-
import * as icons from '../shared/icons.ts'
1210
import * as debug from '@solid-devtools/debugger/types'
11+
import * as bridge from './bridge.ts'
12+
import * as icons from './icons.ts'
1313

1414
log(bridge.Place_Name.Background+' loaded.')
1515

@@ -39,7 +39,7 @@ const queryActiveTabId = async (): Promise<number | Error> => {
3939

4040
let tab = tabs[0]!
4141
if (!tab.id) return new Error('Active tab has no id')
42-
42+
4343
return tab.id
4444
} catch (e) {
4545
return e instanceof Error ? e : new Error('Unknown error')
@@ -159,7 +159,7 @@ chrome.runtime.onConnect.addListener(async port => {
159159
error(tab)
160160
break
161161
}
162-
162+
163163
let devtools_messanger = bridge.createPortMessanger(
164164
bridge.Place_Name.Background,
165165
bridge.Place_Name.Devtools_Script,
@@ -172,7 +172,7 @@ chrome.runtime.onConnect.addListener(async port => {
172172

173173
/* Devtools Script Disconnected */
174174
port.onDisconnect.addListener(() => {
175-
175+
176176
tab.devtools_messanger = undefined
177177

178178
if (tab.content) {
@@ -261,7 +261,7 @@ function panel_handle_versions(tab: TabData, panel_messanger: PortMessanger, ver
261261
}
262262
}
263263

264-
/**
264+
/**
265265
To be called whenever direct connection between content-script and panel needs to be recreated
266266
Like when page refreshes or panel gets closed and opened
267267
*/

0 commit comments

Comments
 (0)