mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 21:01:30 +00:00
3b61e13854
* Rename html/app.js to html/js/app.js * Rename html/config.js to html/js/config.js * Rename html/drawtext.js to html/js/drawtext.js * Rename html/testing.js to html/js/testing.js * Rename html/utils.js to html/js/utils.js * Rename html/style.css to html/css/style.css * Rename html/drawtext.css to html/css/drawtext.css * Update fxmanifest.lua
45 lines
848 B
JavaScript
45 lines
848 B
JavaScript
// Will register dev utilities on window
|
|
export const registerWindowMethods = () => {
|
|
window.SendNotification = (data) => {
|
|
window.dispatchEvent(
|
|
new MessageEvent("message", {
|
|
data: {
|
|
action: "notify",
|
|
...data,
|
|
},
|
|
})
|
|
);
|
|
};
|
|
};
|
|
|
|
// Used for browser env handling
|
|
export const BrowserMockConfigData = {
|
|
NotificationStyling: {
|
|
group: true,
|
|
position: "top-right",
|
|
progress: true,
|
|
},
|
|
VariantDefinitions: {
|
|
success: {
|
|
classes: "success",
|
|
icon: "done",
|
|
},
|
|
primary: {
|
|
classes: "primary",
|
|
icon: "info",
|
|
},
|
|
error: {
|
|
classes: "error",
|
|
icon: "dangerous",
|
|
},
|
|
police: {
|
|
classes: "police",
|
|
icon: "local_police",
|
|
},
|
|
ambulance: {
|
|
classes: "ambulance",
|
|
icon: "fas fa-ambulance",
|
|
},
|
|
},
|
|
};
|