Skip to content

Commit f630107

Browse files
committed
fix: handle fonts and remove basic auth
1 parent 307179a commit f630107

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

src/background.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,7 @@ const browser = require('webextension-polyfill')
55

66
// send url to analyzer
77
async function analyze (tabId, url) {
8-
await axios({
9-
method: 'GET',
10-
url: `https://vuetelemetry.com/api/analyze?url=${url}&src=extension`,
11-
auth: {
12-
username: 'nuxt-admin',
13-
password: 'vue-telemetry-protected-area'
14-
}
15-
}).then(({ data }) => {
8+
await axios(`https://vuetelemetry.com/api/analyze?url=${url}&src=extension`).then(({ data }) => {
169
browser.browserAction.setIcon({
1710
tabId,
1811
path: 'icons/icon-128.png'

src/tailwind.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66

77
@font-face {
88
font-family: 'PTRootUI';
9-
src: url('~assets/fonts/PTRootUI/PTRootUI-Regular.woff2') format('woff2'),
10-
url('~assets/fonts/PTRootUI/PTRootUI-Regular.woff') format('woff');
9+
src: url('./fonts/PTRootUI/PTRootUI-Regular.woff2') format('woff2'),
10+
url('./fonts/PTRootUI/PTRootUI-Regular.woff') format('woff');
1111
font-weight: 400;
1212
font-style: normal;
1313
font-display: swap;
1414
}
1515

1616
@font-face {
1717
font-family: 'PTRootUI';
18-
src: url('~assets/fonts/PTRootUI/PTRootUI-Bold.woff2') format('woff2'),
19-
url('~assets/fonts/PTRootUI/PTRootUI-Bold.woff') format('woff');
18+
src: url('./fonts/PTRootUI/PTRootUI-Bold.woff2') format('woff2'),
19+
url('./fonts/PTRootUI/PTRootUI-Bold.woff') format('woff');
2020
font-weight: 700;
2121
font-style: normal;
2222
font-display: swap;
@@ -26,4 +26,4 @@
2626
width: 600px;
2727
height: 300px;
2828
@apply font-display text-base antialiased;
29-
}
29+
}

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ const config = {
8989
new CopyPlugin([
9090
{ from: 'icons', to: 'icons', ignore: ['icon.xcf'] },
9191
{ from: 'images', to: 'images', ignore: ['icon.xcf'] },
92+
{ from: 'fonts', to: 'fonts' },
9293
{ from: 'popup/popup.html', to: 'popup/popup.html', transform: transformHtml },
9394
{
9495
from: './popup/popup.css',

0 commit comments

Comments
 (0)