forked from jsnbuchanan/crowd-funder-for-time-pwa
chore: cleanup console logs and test directories
- Remove commented console.log statements from main.ts - Add test output directories to .gitignore: - playwright-tests/ - test-playwright/ - test-playwright-results/ Keeps repository clean by excluding test artifacts and removing unused logging statements.
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -36,4 +36,6 @@ pnpm-debug.log*
|
|||||||
/playwright/.cache/
|
/playwright/.cache/
|
||||||
/dist-electron-build/
|
/dist-electron-build/
|
||||||
/dist-capacitor/
|
/dist-capacitor/
|
||||||
/test-playwright-results/
|
/test-playwright-results/
|
||||||
|
playwright-tests
|
||||||
|
test-playwright
|
||||||
168
src/lib/fontawesome.ts
Normal file
168
src/lib/fontawesome.ts
Normal file
@@ -0,0 +1,168 @@
|
|||||||
|
/**
|
||||||
|
* @file Font Awesome Icon Library Configuration
|
||||||
|
* @description Centralizes Font Awesome icon imports and library configuration
|
||||||
|
* @author Matthew Raymer
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { library } from "@fortawesome/fontawesome-svg-core";
|
||||||
|
import {
|
||||||
|
faArrowDown,
|
||||||
|
faArrowLeft,
|
||||||
|
faArrowRight,
|
||||||
|
faArrowRotateBackward,
|
||||||
|
faArrowUpRightFromSquare,
|
||||||
|
faArrowUp,
|
||||||
|
faBan,
|
||||||
|
faBitcoinSign,
|
||||||
|
faBurst,
|
||||||
|
faCalendar,
|
||||||
|
faCamera,
|
||||||
|
faCaretDown,
|
||||||
|
faChair,
|
||||||
|
faCheck,
|
||||||
|
faChevronDown,
|
||||||
|
faChevronLeft,
|
||||||
|
faChevronRight,
|
||||||
|
faChevronUp,
|
||||||
|
faCircle,
|
||||||
|
faCircleCheck,
|
||||||
|
faCircleInfo,
|
||||||
|
faCircleQuestion,
|
||||||
|
faCircleUser,
|
||||||
|
faClock,
|
||||||
|
faCoins,
|
||||||
|
faComment,
|
||||||
|
faCopy,
|
||||||
|
faDollar,
|
||||||
|
faEllipsis,
|
||||||
|
faEllipsisVertical,
|
||||||
|
faEnvelopeOpenText,
|
||||||
|
faEraser,
|
||||||
|
faEye,
|
||||||
|
faEyeSlash,
|
||||||
|
faFileContract,
|
||||||
|
faFileLines,
|
||||||
|
faFilter,
|
||||||
|
faFloppyDisk,
|
||||||
|
faFolderOpen,
|
||||||
|
faForward,
|
||||||
|
faGift,
|
||||||
|
faGlobe,
|
||||||
|
faHammer,
|
||||||
|
faHand,
|
||||||
|
faHandHoldingDollar,
|
||||||
|
faHandHoldingHeart,
|
||||||
|
faHouseChimney,
|
||||||
|
faImagePortrait,
|
||||||
|
faLeftRight,
|
||||||
|
faLightbulb,
|
||||||
|
faLink,
|
||||||
|
faLocationDot,
|
||||||
|
faLongArrowAltLeft,
|
||||||
|
faLongArrowAltRight,
|
||||||
|
faMagnifyingGlass,
|
||||||
|
faMessage,
|
||||||
|
faMinus,
|
||||||
|
faPen,
|
||||||
|
faPersonCircleCheck,
|
||||||
|
faPersonCircleQuestion,
|
||||||
|
faPlus,
|
||||||
|
faQuestion,
|
||||||
|
faQrcode,
|
||||||
|
faRightFromBracket,
|
||||||
|
faRotate,
|
||||||
|
faShareNodes,
|
||||||
|
faSpinner,
|
||||||
|
faSquare,
|
||||||
|
faSquareCaretDown,
|
||||||
|
faSquareCaretUp,
|
||||||
|
faSquarePlus,
|
||||||
|
faTrashCan,
|
||||||
|
faTriangleExclamation,
|
||||||
|
faUser,
|
||||||
|
faUsers,
|
||||||
|
faXmark,
|
||||||
|
} from "@fortawesome/free-solid-svg-icons";
|
||||||
|
|
||||||
|
// Initialize Font Awesome library with all required icons
|
||||||
|
library.add(
|
||||||
|
faArrowDown,
|
||||||
|
faArrowLeft,
|
||||||
|
faArrowRight,
|
||||||
|
faArrowRotateBackward,
|
||||||
|
faArrowUpRightFromSquare,
|
||||||
|
faArrowUp,
|
||||||
|
faBan,
|
||||||
|
faBitcoinSign,
|
||||||
|
faBurst,
|
||||||
|
faCalendar,
|
||||||
|
faCamera,
|
||||||
|
faCaretDown,
|
||||||
|
faChair,
|
||||||
|
faCheck,
|
||||||
|
faChevronDown,
|
||||||
|
faChevronLeft,
|
||||||
|
faChevronRight,
|
||||||
|
faChevronUp,
|
||||||
|
faCircle,
|
||||||
|
faCircleCheck,
|
||||||
|
faCircleInfo,
|
||||||
|
faCircleQuestion,
|
||||||
|
faCircleUser,
|
||||||
|
faClock,
|
||||||
|
faCoins,
|
||||||
|
faComment,
|
||||||
|
faCopy,
|
||||||
|
faDollar,
|
||||||
|
faEllipsis,
|
||||||
|
faEllipsisVertical,
|
||||||
|
faEnvelopeOpenText,
|
||||||
|
faEraser,
|
||||||
|
faEye,
|
||||||
|
faEyeSlash,
|
||||||
|
faFileContract,
|
||||||
|
faFileLines,
|
||||||
|
faFilter,
|
||||||
|
faFloppyDisk,
|
||||||
|
faFolderOpen,
|
||||||
|
faForward,
|
||||||
|
faGift,
|
||||||
|
faGlobe,
|
||||||
|
faHammer,
|
||||||
|
faHand,
|
||||||
|
faHandHoldingDollar,
|
||||||
|
faHandHoldingHeart,
|
||||||
|
faHouseChimney,
|
||||||
|
faImagePortrait,
|
||||||
|
faLeftRight,
|
||||||
|
faLightbulb,
|
||||||
|
faLink,
|
||||||
|
faLocationDot,
|
||||||
|
faLongArrowAltLeft,
|
||||||
|
faLongArrowAltRight,
|
||||||
|
faMagnifyingGlass,
|
||||||
|
faMessage,
|
||||||
|
faMinus,
|
||||||
|
faPen,
|
||||||
|
faPersonCircleCheck,
|
||||||
|
faPersonCircleQuestion,
|
||||||
|
faPlus,
|
||||||
|
faQrcode,
|
||||||
|
faQuestion,
|
||||||
|
faRotate,
|
||||||
|
faRightFromBracket,
|
||||||
|
faShareNodes,
|
||||||
|
faSpinner,
|
||||||
|
faSquare,
|
||||||
|
faSquareCaretDown,
|
||||||
|
faSquareCaretUp,
|
||||||
|
faSquarePlus,
|
||||||
|
faTrashCan,
|
||||||
|
faTriangleExclamation,
|
||||||
|
faUser,
|
||||||
|
faUsers,
|
||||||
|
faXmark,
|
||||||
|
);
|
||||||
|
|
||||||
|
// Export the FontAwesomeIcon component for use in other files
|
||||||
|
export { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
||||||
166
src/main.ts
166
src/main.ts
@@ -6,169 +6,8 @@ import router from "./router";
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import VueAxios from "vue-axios";
|
import VueAxios from "vue-axios";
|
||||||
import Notifications from "notiwind";
|
import Notifications from "notiwind";
|
||||||
|
|
||||||
import "./assets/styles/tailwind.css";
|
import "./assets/styles/tailwind.css";
|
||||||
|
import { FontAwesomeIcon } from "./lib/fontawesome";
|
||||||
import { library } from "@fortawesome/fontawesome-svg-core";
|
|
||||||
import {
|
|
||||||
faArrowDown,
|
|
||||||
faArrowLeft,
|
|
||||||
faArrowRight,
|
|
||||||
faArrowRotateBackward,
|
|
||||||
faArrowUpRightFromSquare,
|
|
||||||
faArrowUp,
|
|
||||||
faBan,
|
|
||||||
faBitcoinSign,
|
|
||||||
faBurst,
|
|
||||||
faCalendar,
|
|
||||||
faCamera,
|
|
||||||
faCaretDown,
|
|
||||||
faChair,
|
|
||||||
faCheck,
|
|
||||||
faChevronDown,
|
|
||||||
faChevronLeft,
|
|
||||||
faChevronRight,
|
|
||||||
faChevronUp,
|
|
||||||
faCircle,
|
|
||||||
faCircleCheck,
|
|
||||||
faCircleInfo,
|
|
||||||
faCircleQuestion,
|
|
||||||
faCircleUser,
|
|
||||||
faClock,
|
|
||||||
faCoins,
|
|
||||||
faComment,
|
|
||||||
faCopy,
|
|
||||||
faDollar,
|
|
||||||
faEllipsis,
|
|
||||||
faEllipsisVertical,
|
|
||||||
faEnvelopeOpenText,
|
|
||||||
faEraser,
|
|
||||||
faEye,
|
|
||||||
faEyeSlash,
|
|
||||||
faFileContract,
|
|
||||||
faFileLines,
|
|
||||||
faFilter,
|
|
||||||
faFloppyDisk,
|
|
||||||
faFolderOpen,
|
|
||||||
faForward,
|
|
||||||
faGift,
|
|
||||||
faGlobe,
|
|
||||||
faHammer,
|
|
||||||
faHand,
|
|
||||||
faHandHoldingDollar,
|
|
||||||
faHandHoldingHeart,
|
|
||||||
faHouseChimney,
|
|
||||||
faImagePortrait,
|
|
||||||
faLeftRight,
|
|
||||||
faLightbulb,
|
|
||||||
faLink,
|
|
||||||
faLocationDot,
|
|
||||||
faLongArrowAltLeft,
|
|
||||||
faLongArrowAltRight,
|
|
||||||
faMagnifyingGlass,
|
|
||||||
faMessage,
|
|
||||||
faMinus,
|
|
||||||
faPen,
|
|
||||||
faPersonCircleCheck,
|
|
||||||
faPersonCircleQuestion,
|
|
||||||
faPlus,
|
|
||||||
faQuestion,
|
|
||||||
faQrcode,
|
|
||||||
faRightFromBracket,
|
|
||||||
faRotate,
|
|
||||||
faShareNodes,
|
|
||||||
faSpinner,
|
|
||||||
faSquare,
|
|
||||||
faSquareCaretDown,
|
|
||||||
faSquareCaretUp,
|
|
||||||
faSquarePlus,
|
|
||||||
faTrashCan,
|
|
||||||
faTriangleExclamation,
|
|
||||||
faUser,
|
|
||||||
faUsers,
|
|
||||||
faXmark,
|
|
||||||
} from "@fortawesome/free-solid-svg-icons";
|
|
||||||
|
|
||||||
library.add(
|
|
||||||
faArrowDown,
|
|
||||||
faArrowLeft,
|
|
||||||
faArrowRight,
|
|
||||||
faArrowRotateBackward,
|
|
||||||
faArrowUpRightFromSquare,
|
|
||||||
faArrowUp,
|
|
||||||
faBan,
|
|
||||||
faBitcoinSign,
|
|
||||||
faBurst,
|
|
||||||
faCalendar,
|
|
||||||
faCamera,
|
|
||||||
faCaretDown,
|
|
||||||
faChair,
|
|
||||||
faCheck,
|
|
||||||
faChevronDown,
|
|
||||||
faChevronLeft,
|
|
||||||
faChevronRight,
|
|
||||||
faChevronUp,
|
|
||||||
faCircle,
|
|
||||||
faCircleCheck,
|
|
||||||
faCircleInfo,
|
|
||||||
faCircleQuestion,
|
|
||||||
faCircleUser,
|
|
||||||
faClock,
|
|
||||||
faCoins,
|
|
||||||
faComment,
|
|
||||||
faCopy,
|
|
||||||
faDollar,
|
|
||||||
faEllipsis,
|
|
||||||
faEllipsisVertical,
|
|
||||||
faEnvelopeOpenText,
|
|
||||||
faEraser,
|
|
||||||
faEye,
|
|
||||||
faEyeSlash,
|
|
||||||
faFileContract,
|
|
||||||
faFileLines,
|
|
||||||
faFilter,
|
|
||||||
faFloppyDisk,
|
|
||||||
faFolderOpen,
|
|
||||||
faForward,
|
|
||||||
faGift,
|
|
||||||
faGlobe,
|
|
||||||
faHammer,
|
|
||||||
faHand,
|
|
||||||
faHandHoldingDollar,
|
|
||||||
faHandHoldingHeart,
|
|
||||||
faHouseChimney,
|
|
||||||
faImagePortrait,
|
|
||||||
faLeftRight,
|
|
||||||
faLightbulb,
|
|
||||||
faLink,
|
|
||||||
faLocationDot,
|
|
||||||
faLongArrowAltLeft,
|
|
||||||
faLongArrowAltRight,
|
|
||||||
faMagnifyingGlass,
|
|
||||||
faMessage,
|
|
||||||
faMinus,
|
|
||||||
faPen,
|
|
||||||
faPersonCircleCheck,
|
|
||||||
faPersonCircleQuestion,
|
|
||||||
faPlus,
|
|
||||||
faQrcode,
|
|
||||||
faQuestion,
|
|
||||||
faRotate,
|
|
||||||
faRightFromBracket,
|
|
||||||
faShareNodes,
|
|
||||||
faSpinner,
|
|
||||||
faSquare,
|
|
||||||
faSquareCaretDown,
|
|
||||||
faSquareCaretUp,
|
|
||||||
faSquarePlus,
|
|
||||||
faTrashCan,
|
|
||||||
faTriangleExclamation,
|
|
||||||
faUser,
|
|
||||||
faUsers,
|
|
||||||
faXmark,
|
|
||||||
);
|
|
||||||
|
|
||||||
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|
||||||
import Camera from "simple-vue-camera";
|
import Camera from "simple-vue-camera";
|
||||||
|
|
||||||
// Can trigger this with a 'throw' inside some top-level function, eg. on the HomeView
|
// Can trigger this with a 'throw' inside some top-level function, eg. on the HomeView
|
||||||
@@ -197,7 +36,7 @@ function setupGlobalErrorHandler(app: VueApp) {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// console.log("Bootstrapping Vue app...");
|
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
.component("fa", FontAwesomeIcon)
|
.component("fa", FontAwesomeIcon)
|
||||||
.component("camera", Camera)
|
.component("camera", Camera)
|
||||||
@@ -209,4 +48,3 @@ const app = createApp(App)
|
|||||||
setupGlobalErrorHandler(app);
|
setupGlobalErrorHandler(app);
|
||||||
|
|
||||||
app.mount("#app");
|
app.mount("#app");
|
||||||
// console.log("Vue app mounted.");
|
|
||||||
|
|||||||
Reference in New Issue
Block a user