Skip to content

Commit

Permalink
chore: self-host Inter
Browse files Browse the repository at this point in the history
fixes #695
  • Loading branch information
janmonschke committed Oct 23, 2023
1 parent 76787b4 commit 7913f34
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 144 deletions.
159 changes: 24 additions & 135 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/bruno-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"prettier": "prettier --write \"./src/**/*.{js,jsx,json,ts,tsx}\""
},
"dependencies": {
"@fontsource/inter": "^5.0.15",
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/react-fontawesome": "^0.1.16",
Expand Down
4 changes: 4 additions & 0 deletions packages/bruno-app/src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import 'codemirror/lib/codemirror.css';
import 'graphiql/graphiql.min.css';
import 'react-tooltip/dist/react-tooltip.css';
import '@usebruno/graphql-docs/dist/esm/index.css';
import '@fontsource/inter/400.css';
import '@fontsource/inter/500.css';
import '@fontsource/inter/600.css';
import '@fontsource/inter/700.css';

function SafeHydrate({ children }) {
return <div suppressHydrationWarning>{typeof window === 'undefined' ? null : children}</div>;
Expand Down
7 changes: 1 addition & 6 deletions packages/bruno-app/src/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ export default class MyDocument extends Document {
render() {
return (
<Html>
<Head>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
</Head>
<Head />
<body id="bruno-app-body">
<Main />
<NextScript />
Expand Down
4 changes: 1 addition & 3 deletions packages/bruno-electron/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ const lastOpenedCollections = new LastOpenedCollections();
const contentSecurityPolicy = [
isDev ? "default-src 'self' 'unsafe-inline' 'unsafe-eval'" : "default-src 'self'",
"connect-src 'self' https://api.github.com/repos/usebruno/bruno",
"font-src 'self' https://fonts.gstatic.com",
"form-action 'none'",
"img-src 'self' blob: data:",
"style-src 'self' https://fonts.googleapis.com"
"img-src 'self' blob: data:"
];

setContentSecurityPolicy(contentSecurityPolicy.join(';'));
Expand Down

0 comments on commit 7913f34

Please sign in to comment.