clean-webpack-plugin
This commit is contained in:
614
package-lock.json
generated
614
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -14,6 +14,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"chrome-extension-toolkit": "^0.0.21",
|
||||
"clean-webpack-plugin": "^4.0.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"sass": "^1.57.1"
|
||||
|
||||
BIN
public/grades.db
Normal file
BIN
public/grades.db
Normal file
Binary file not shown.
5
src/views/content/Main.tsx
Normal file
5
src/views/content/Main.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import React from 'react';
|
||||
|
||||
export default function Main() {
|
||||
return <div />;
|
||||
}
|
||||
@@ -1,18 +1,15 @@
|
||||
import React from 'react';
|
||||
import { render } from 'react-dom';
|
||||
import { bMessenger } from 'src/shared/messages';
|
||||
import { ContextInvalidated, createShadowDOM, onContextInvalidated } from 'chrome-extension-toolkit';
|
||||
import { Button } from './components/Button/Button';
|
||||
import Main from './Main';
|
||||
|
||||
bMessenger.getTabId().then(tabId => {
|
||||
console.log('tabId', tabId);
|
||||
});
|
||||
|
||||
injectReact();
|
||||
|
||||
|
||||
async function injectReact() {
|
||||
const shadowDom = createShadowDOM('extension-dom-container');
|
||||
render(<Button />, shadowDom.shadowRoot);
|
||||
const shadowDom = createShadowDOM('ut-registration-plus-dom-container');
|
||||
render(<Main />, shadowDom.shadowRoot);
|
||||
await shadowDom.addStyle('static/css/content.css');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user