Skip to content

Commit 70259e7

Browse files
Fix/small project updates (#8)
* Small updates to: gitignore, wxt.config. Added LHD logo as icon. * Changed husky pre-commit check from non-existent npm test check to npm run prepare.
1 parent 7048708 commit 70259e7

10 files changed

Lines changed: 54 additions & 33 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ web-ext.config.ts
2424
*.njsproj
2525
*.sln
2626
*.sw?
27-
.claude
27+
.claude
28+
*.code-workspace

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm test
1+
npm run prepare

entrypoints/popup/App.tsx

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
import { useState } from 'react';
2-
import reactLogo from '@/assets/react.svg';
3-
import wxtLogo from '/wxt.svg';
4-
import './App.css';
1+
import reactLogo from "@/assets/react.svg";
2+
import { useState } from "react";
3+
import "./App.css";
4+
import wxtLogo from "/wxt.svg";
55

66
function App() {
7-
const [count, setCount] = useState(0);
7+
const [count, setCount] = useState(0);
88

9-
return (
10-
<>
11-
<div>
12-
<a href="https://wxt.dev" target="_blank">
13-
<img src={wxtLogo} className="logo" alt="WXT logo" />
14-
</a>
15-
<a href="https://react.dev" target="_blank">
16-
<img src={reactLogo} className="logo react" alt="React logo" />
17-
</a>
18-
</div>
19-
<h1>WXT + React</h1>
20-
<div className="card">
21-
<button onClick={() => setCount((count) => count + 1)}>
22-
count is {count}
23-
</button>
24-
<p>
25-
Edit <code>src/App.tsx</code> and save to test HMR
26-
</p>
27-
</div>
28-
<p className="read-the-docs">
29-
Click on the WXT and React logos to learn more
30-
</p>
31-
</>
32-
);
9+
return (
10+
<>
11+
<div>
12+
<a href="https://wxt.dev" target="_blank">
13+
<img src={wxtLogo} className="logo" alt="WXT logo" />
14+
</a>
15+
<a href="https://react.dev" target="_blank">
16+
<img src={reactLogo} className="logo react" alt="React logo" />
17+
</a>
18+
</div>
19+
<h1>WXT + React</h1>
20+
<div className="card">
21+
<button onClick={() => setCount((count) => count + 1)}>
22+
count is {count}
23+
</button>
24+
<p>
25+
Edit <code>src/App.tsx</code> and save to test HMR
26+
</p>
27+
</div>
28+
<p className="read-the-docs">
29+
Click on the WXT and React logos to learn more
30+
</p>
31+
</>
32+
);
3333
}
3434

3535
export default App;

public/icon/128.png

-3 KB
Binary file not shown.

public/icon/16.png

-559 Bytes
Binary file not shown.

public/icon/32.png

-916 Bytes
Binary file not shown.

public/icon/48.png

-1.3 KB
Binary file not shown.

public/icon/96.png

-2.31 KB
Binary file not shown.

public/icon/LHD Logo.png

3.83 KB
Loading

wxt.config.ts

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
1-
import { defineConfig } from 'wxt';
1+
import { defineConfig } from "wxt";
22

33
// See https://wxt.dev/api/config.html
44
export default defineConfig({
5-
modules: ['@wxt-dev/module-react'],
5+
modules: ["@wxt-dev/module-react"],
6+
7+
manifest: {
8+
name: "Degree Audit + by LHD",
9+
description:
10+
"Created by Longhorn Developers (LHD) to enhance the degree planning experience for students at the University of Texas at Austin.",
11+
version: "1.0.0",
12+
manifest_version: 3,
13+
action: {
14+
default_popup: "index.html",
15+
},
16+
icons: {
17+
"16": "icon/LHD Logo.png",
18+
"32": "icon/LHD Logo.png",
19+
"48": "icon/LHD Logo.png",
20+
"128": "icon/LHD Logo.png",
21+
"256": "icon/LHD Logo.png",
22+
},
23+
24+
permissions: ["storage", "tabs", "scripting"],
25+
},
626
});

0 commit comments

Comments
 (0)