mirror of
https://github.com/jakobkordez/s5_practice.git
synced 2025-05-15 16:20:31 +00:00
Add pwa
This commit is contained in:
parent
0cc1664fee
commit
682edc6aca
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,7 +1,7 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# PWA
|
||||
/public/service-worker.js*
|
||||
/public/sw.js*
|
||||
/public/workbox-*.js*
|
||||
|
||||
# dependencies
|
||||
|
@ -1,9 +1,9 @@
|
||||
// const withPwa = require('next-pwa')({
|
||||
// dest: 'public',
|
||||
// sw: 'service-worker.js',
|
||||
// });
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const withPWA = require("@ducanh2912/next-pwa").default({
|
||||
dest: "public",
|
||||
});
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {}
|
||||
|
||||
module.exports = nextConfig;
|
||||
module.exports = withPWA(nextConfig);
|
||||
|
@ -10,6 +10,7 @@
|
||||
"format": "prettier --write ./src"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ducanh2912/next-pwa": "^9.7.1",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
||||
"@fortawesome/free-regular-svg-icons": "^6.4.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
||||
@ -21,7 +22,7 @@
|
||||
"autoprefixer": "^10.4.15",
|
||||
"eslint": "^8.49.0",
|
||||
"eslint-config-next": "^13.5.1",
|
||||
"next": "^13.5.1",
|
||||
"next": "^13.5.3",
|
||||
"node-sass": "^9.0.0",
|
||||
"postcss": "^8.4.30",
|
||||
"react": "^18.2.0",
|
||||
@ -39,6 +40,7 @@
|
||||
"eslint-plugin-prettier": "^5.0.0",
|
||||
"prettier": "^3.0.3",
|
||||
"prettier-plugin-tailwindcss": "^0.5.4",
|
||||
"sass": "^1.67.0"
|
||||
"sass": "^1.67.0",
|
||||
"webpack": "^5.88.2"
|
||||
}
|
||||
}
|
||||
|
@ -2568,7 +2568,7 @@
|
||||
},
|
||||
{
|
||||
"id": 262,
|
||||
"question": "\"Nič nimam zate?\" se glasi:",
|
||||
"question": "\"Nič nimam zate\" se glasi:",
|
||||
"image": null,
|
||||
"answers": ["QTR", "QRU", "QRW"],
|
||||
"correct": 1,
|
||||
|
@ -6,6 +6,7 @@ import { morse } from '@/fonts/fonts';
|
||||
import { ScrollToTopButton } from '@/components/scroll-to-top-button';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
applicationName: 'Radioamaterski izpit',
|
||||
title: {
|
||||
default: 'Radioamaterski izpit',
|
||||
template: '%s | Radioamaterski izpit',
|
||||
|
Loading…
x
Reference in New Issue
Block a user