Skip to content

Commit

Permalink
feat: Remove google font
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Jul 22, 2024
1 parent 6290426 commit d3f14fc
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 57 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ module.exports = {
],

globals: {
ga: 'readonly', // Google Analytics
cordova: 'readonly',
__statics: 'readonly',
__QUASAR_SSR__: 'readonly',
Expand Down
4 changes: 0 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@

<script src="//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.7.570/pdf.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.7.570/pdf.worker.min.js"></script>

<link href="https://fonts.googleapis.com" rel="preconnect" />
<link crossorigin href="https://fonts.gstatic.com" rel="preconnect" />
<link href="https://fonts.googleapis.com/css2?family=Mulish&display=swap" rel="stylesheet" />
</head>
<body>
<!-- quasar:entry-point -->
Expand Down
52 changes: 2 additions & 50 deletions src/css/app.scss
Original file line number Diff line number Diff line change
@@ -1,56 +1,8 @@
// app global css in SCSS form
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 400;
font-family: 'Mulish';
font-display: swap;
src: url(./fonts/poppins-italic-400.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url(./fonts/poppins-italic-700.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(./fonts/poppins-400.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url(./fonts/poppins-600.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(./fonts/poppins-700.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
font-family: 'Mulish', serif;
src: url(./fonts/Mulish-Regular.ttf) format('truetype');
}

/* Quasar */
Expand Down
Binary file added src/css/fonts/Mulish-Regular.ttf
Binary file not shown.
Binary file removed src/css/fonts/poppins-400.woff2
Binary file not shown.
Binary file removed src/css/fonts/poppins-600.woff2
Binary file not shown.
Binary file removed src/css/fonts/poppins-700.woff2
Binary file not shown.
Binary file removed src/css/fonts/poppins-italic-400.woff2
Binary file not shown.
Binary file removed src/css/fonts/poppins-italic-700.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion src/css/quasar.variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $purple50: #f7f6ff;
$border-color: #dee1ff;

// change default font
$typography-font-family: 'Noto Sans Mono', 'Poppins', sans-serif;
$typography-font-family: 'Mulish', sans-serif;

$button-rounded-border-radius: 28px;
$generic-border-radius: 10px;
2 changes: 1 addition & 1 deletion src/stores/knowledge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const useKnowledgeStore = defineStore(KNOWLEDGE_STORE_PINIA_KEY, {
const missingDocuments = defaultDocumentTitles.filter((title) => !documentTitles.includes(title));
// Add missing documents
const addedDocuments: Promise<Document>[] = [];
for (let title of missingDocuments) {
for (const title of missingDocuments) {
const doc = defaultKnowledge.find((doc) => doc.title === title)!;
let tags = doc.tags ? doc.tags : [];
tags.push(DEFAULT_KNOWLEDGE_TAG);
Expand Down

0 comments on commit d3f14fc

Please sign in to comment.