create-prisma-php-app 5.1.0-alpha.1 → 5.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/public/js/main.js +1 -0
- package/dist/ts/main.ts +23 -2
- package/package.json +1 -1
package/dist/public/js/main.js
CHANGED
package/dist/ts/main.ts
CHANGED
|
@@ -2,5 +2,26 @@ import "/js/pp-reactive-v2.js";
|
|
|
2
2
|
|
|
3
3
|
// The following global names have already been declared elsewhere in the project:
|
|
4
4
|
// - pp: Used for the Reactive Core functionality.
|
|
5
|
-
|
|
6
|
-
//
|
|
5
|
+
|
|
6
|
+
// Imports goes here --Start
|
|
7
|
+
|
|
8
|
+
// Uncomment the following line if you need to use the createGlobalSingleton function in this file.
|
|
9
|
+
// import { createGlobalSingleton } from "./global-functions.js";
|
|
10
|
+
// import { myCustomFunction } from "./money.js";
|
|
11
|
+
|
|
12
|
+
// createGlobalSingleton("myCustomFunction", myCustomFunction);
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
// Imports goes here --End
|
|
16
|
+
|
|
17
|
+
const pp = (globalThis as any).pp;
|
|
18
|
+
|
|
19
|
+
if (document.readyState !== "loading") {
|
|
20
|
+
pp?.mount?.();
|
|
21
|
+
} else {
|
|
22
|
+
document.addEventListener(
|
|
23
|
+
"DOMContentLoaded",
|
|
24
|
+
() => pp?.mount?.(),
|
|
25
|
+
{ once: true },
|
|
26
|
+
);
|
|
27
|
+
}
|