MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / App

Function App

extension/src/popup.tsx:61–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61const App: s.Component = () => {
62 return <>
63 <div>
64 <p data-status={detectionState().solid}>
65 Solid {not_str(detectionState().solid)} detected
66 </p>
67 </div>
68 <div>
69 <p data-status={detectionState().solid_dev}>
70 Solid Dev Mode {not_str(detectionState().solid_dev)} detected
71 </p>
72 </div>
73 <div>
74 <p data-status={detectionState().setup}>
75 Debugger {not_str(detectionState().setup)} detected
76 </p>
77 <s.Show when={detectionState().solid_dev && !detectionState().setup}>
78 <div class="details">
79 <p>
80 Devtools extension requires a runtime client to be installed.
81 <br />
82 Please follow the{' '}
83 <a
84 href="https://github.com/thetarnav/solid-devtools/tree/main/extension#getting-started"
85 target="_blank"
86 >
87 installation instructions
88 </a>
89 .
90 </p>
91 </div>
92 </s.Show>
93 </div>
94 <div>
95 <p data-status={connectionStatus()[Place_Name.Content]}>
96 Content Script {not_str(connectionStatus()[Place_Name.Content])} connected
97 </p>
98 </div>
99 <div>
100 <p data-status={connectionStatus()[Place_Name.Devtools]}>
101 Devtools {not_str(connectionStatus()[Place_Name.Devtools])} connected
102 </p>
103 </div>
104 <div>
105 <p data-status={connectionStatus()[Place_Name.Panel]}>
106 Panel {not_str(connectionStatus()[Place_Name.Panel])} connected
107 </p>
108 </div>
109 <s.Show when={versions()} keyed>
110 {v => (
111 <div class="versions">
112 <p>Versions:</p>
113 <ul>
114 <li>Solid ___________ {v.solid || 'unknown'}</li>
115 <li>Extension _______ {v.extension}</li>
116 <li>Client found ____ {v.client || 'unknown'}</li>
117 <li>Client expected _ {v.client_expected}</li>
118 </ul>

Callers

nothing calls this directly

Calls 1

not_strFunction · 0.85

Tested by

no test coverage detected