Compare commits

..

No commits in common. "2e816dbc19296177eb5d3820a4c7df3bc62145ba" and "add31b6d280a37389698160b36b02be9da05a6f9" have entirely different histories.

3 changed files with 239 additions and 497 deletions

View File

@ -65,6 +65,6 @@
"node-fetch": "2.6.1", "node-fetch": "2.6.1",
"typescript": "^4.9.3", "typescript": "^4.9.3",
"vite": "^4.0.0", "vite": "^4.0.0",
"vite-plugin-pwa": "^0.20.0" "vite-plugin-pwa": "^0.14.1"
} }
} }

View File

@ -1,9 +1,9 @@
import { defineConfig } from "vite"; import { defineConfig } from 'vite'
import react from "@vitejs/plugin-react"; import react from '@vitejs/plugin-react'
import mdx from "@mdx-js/rollup"; import mdx from "@mdx-js/rollup";
import remarkFrontmatter from "remark-frontmatter"; import remarkFrontmatter from 'remark-frontmatter';
import remarkMdxFrontmatter from "remark-mdx-frontmatter"; import remarkMdxFrontmatter from 'remark-mdx-frontmatter';
import rehypeSlug from "rehype-slug"; import rehypeSlug from 'rehype-slug';
import rehypeToc from "@stefanprobst/rehype-extract-toc"; import rehypeToc from "@stefanprobst/rehype-extract-toc";
import rehypeTocExport from "@stefanprobst/rehype-extract-toc/mdx"; import rehypeTocExport from "@stefanprobst/rehype-extract-toc/mdx";
import rehypeAutolinkHeadings from "rehype-autolink-headings"; import rehypeAutolinkHeadings from "rehype-autolink-headings";
@ -39,66 +39,66 @@ export default defineConfig({
}), }),
VitePWA({ VitePWA({
workbox: { workbox: {
globPatterns: [ globPatterns: ["**/*.!(mp4|m4a)"],
"**/*.(js|html|svg|png|jpg|jpeg|eot|woff|woff2|ttf|mp4|m4a)",
],
maximumFileSizeToCacheInBytes: 5242880, maximumFileSizeToCacheInBytes: 5242880,
}, },
includeAssets: ["**/*.(js|html|svg|png|jpg|jpeg|eot|woff|woff2|ttf)"], includeAssets: [
"**/*.(js|html|svg|png|jpg|jpeg|eot|woff|woff2|ttf)",
],
manifest: { manifest: {
short_name: "Pashto Grammar", "short_name": "Pashto Grammar",
name: "LingDocs Pashto Grammar", "name": "LingDocs Pashto Grammar",
icons: [ "icons": [
{ {
src: "icons/android-chrome-36x36.png", "src": "icons/android-chrome-36x36.png",
sizes: "36x36", "sizes": "36x36",
type: "image/png", "type": "image/png"
}, },
{ {
src: "icons/android-chrome-48x48.png", "src": "icons/android-chrome-48x48.png",
sizes: "48x48", "sizes": "48x48",
type: "image/png", "type": "image/png"
}, },
{ {
src: "icons/android-chrome-72x72.png", "src": "icons/android-chrome-72x72.png",
sizes: "72x72", "sizes": "72x72",
type: "image/png", "type": "image/png"
}, },
{ {
src: "icons/android-chrome-96x96.png", "src": "icons/android-chrome-96x96.png",
sizes: "96x96", "sizes": "96x96",
type: "image/png", "type": "image/png"
}, },
{ {
src: "icons/android-chrome-144x144.png", "src": "icons/android-chrome-144x144.png",
sizes: "144x144", "sizes": "144x144",
type: "image/png", "type": "image/png"
}, },
{ {
src: "icons/android-chrome-192x192.png", "src": "icons/android-chrome-192x192.png",
sizes: "192x192", "sizes": "192x192",
type: "image/png", "type": "image/png"
}, },
{ {
src: "icons/android-chrome-256x256.png", "src": "icons/android-chrome-256x256.png",
sizes: "256x256", "sizes": "256x256",
type: "image/png", "type": "image/png"
}, },
{ {
src: "icons/android-chrome-384x384.png", "src": "icons/android-chrome-384x384.png",
sizes: "384x384", "sizes": "384x384",
type: "image/png", "type": "image/png"
}, },
{ {
src: "icons/android-chrome-512x512.png", "src": "icons/android-chrome-512x512.png",
sizes: "512x512", "sizes": "512x512",
type: "image/png", "type": "image/png"
}, }
], ],
start_url: "./table-of-contents", "start_url": "./table-of-contents",
display: "minimal-ui", "display": "minimal-ui",
theme_color: "#DEE1E6", "theme_color": "#DEE1E6",
background_color: "#ffffff", "background_color": "#ffffff"
}, },
}), }),
], ],

644
yarn.lock

File diff suppressed because it is too large Load Diff