viewlogic 1.2.5 → 1.2.6
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/README.md
CHANGED
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
</a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
|
-
> **
|
|
15
|
+
> **AI-First Vue 3 Framework**: The future of web development in the age of artificial intelligence
|
|
16
16
|
|
|
17
17
|
## 🎯 Core Philosophy
|
|
18
18
|
|
|
19
|
-
ViewLogic Router revolutionizes Vue development with
|
|
19
|
+
ViewLogic Router revolutionizes Vue development with three fundamental principles:
|
|
20
20
|
|
|
21
21
|
### 🎭 View-Logic Separation
|
|
22
22
|
**Complete separation between View (presentation) and Logic (business logic)**. Views are pure HTML templates, logic is pure JavaScript components. This separation makes your code more maintainable, testable, and scalable.
|
|
@@ -24,6 +24,9 @@ ViewLogic Router revolutionizes Vue development with two fundamental principles:
|
|
|
24
24
|
### 🚀 Zero Build Development
|
|
25
25
|
**Zero build step required in development mode**. Work directly with source files, see changes instantly without any compilation, bundling, or build processes. True real-time development experience.
|
|
26
26
|
|
|
27
|
+
### 🤖 AI-First Architecture
|
|
28
|
+
**Built from the ground up for the AI coding era**. Clear conventions, predictable patterns, and separated concerns make ViewLogic the perfect framework for AI-assisted development. Generate pages, components, and logic with AI tools seamlessly.
|
|
29
|
+
|
|
27
30
|
## ✨ What Makes ViewLogic Special
|
|
28
31
|
|
|
29
32
|
**All-in-One Solution** - Replace multiple libraries with one unified framework:
|
package/dist/viewlogic-router.js
CHANGED
|
@@ -1290,7 +1290,7 @@ var FormHandler = class {
|
|
|
1290
1290
|
if (errorHandler && component[errorHandler]) {
|
|
1291
1291
|
component[errorHandler](error, form);
|
|
1292
1292
|
} else {
|
|
1293
|
-
|
|
1293
|
+
this.log("error", "Form submission error (no error handler defined):", error);
|
|
1294
1294
|
}
|
|
1295
1295
|
} finally {
|
|
1296
1296
|
if (loadingHandler && component[loadingHandler]) {
|
|
@@ -2840,7 +2840,7 @@ var ViewLogicRouter = class {
|
|
|
2840
2840
|
if (this.errorHandler) {
|
|
2841
2841
|
await this.errorHandler.handleRouteError(routeName, error);
|
|
2842
2842
|
} else {
|
|
2843
|
-
console.error("[Router] No error handler available");
|
|
2843
|
+
console.error("[Router] Critical: No error handler available for route error:", error);
|
|
2844
2844
|
}
|
|
2845
2845
|
} finally {
|
|
2846
2846
|
this.transitionInProgress = false;
|
|
@@ -2881,6 +2881,7 @@ var ViewLogicRouter = class {
|
|
|
2881
2881
|
currentQuery: this.queryManager?.getQueryParams() || {}
|
|
2882
2882
|
};
|
|
2883
2883
|
newVueApp.mount(`#${newPageContainer.id}`);
|
|
2884
|
+
window.scrollTo(0, 0);
|
|
2884
2885
|
requestAnimationFrame(() => {
|
|
2885
2886
|
this.cleanupPreviousPages();
|
|
2886
2887
|
this.transitionInProgress = false;
|