- Added functionality for subscribing to push notifications in Settings.vue. - Integrated service worker registration and notification permission requests. - Enhanced Vite configuration for PWA with manifest and caching strategies. - Created a script for generating PDF reports. - Added project report markdown file detailing the PWA implementation and features.
18 lines
568 B
Bash
Executable File
18 lines
568 B
Bash
Executable File
#!/bin/bash
|
|
if [ -z "$1" ]; then
|
|
echo -e "\e[32;7;1mREAD THE CODE:\e[0m"
|
|
echo
|
|
if command -v bat &>/dev/null; then
|
|
bat -Pp "$0"
|
|
else
|
|
cat "$0"
|
|
fi
|
|
echo
|
|
echo -e "\e[32;7;1mEND OF CODE\e[0m"
|
|
exit 1
|
|
fi
|
|
IN="$1" # input file, if empty prints scripts itself
|
|
OUT="${2:-$(basename "$IN" .md).pdf}" # if second argument is empty, use first argument without extension
|
|
REST="${*:3}" # pass rest of arguments to pandoc
|
|
COMMAND="pandoc \"$IN\" -o \"$OUT\" --pdf-engine=lualatex --pdf-engine-opt=\"--shell-escape\" $REST"
|
|
eval "$COMMAND" |