Fix code quality violations for publish
Remove unused blade settings pages not linked from UI Convert remaining frontend pages to SPA actions Convert settings user_settings and general to SPA actions Convert settings profile pages to SPA actions Convert contacts and projects add/edit pages to SPA actions Convert clients add/edit page to SPA action with loading pattern Refactor component scoped IDs from $id to $sid Fix jqhtml comment syntax and implement universal error component system Update all application code to use new unified error system Remove all backwards compatibility - unified error system complete Phase 5: Remove old response classes Phase 3-4: Ajax response handler sends new format, old helpers deprecated Phase 2: Add client-side unified error foundation Phase 1: Add server-side unified error foundation Add unified Ajax error response system with constants 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -716,7 +716,7 @@ window.rsxapp.module_paths = {"bootstrap5_src":"rsx\/theme\/vendor\/bootstrap5\/
|
||||
if (this._stopped)
|
||||
return current_render_id;
|
||||
if (id) {
|
||||
const $element = this.$id(id);
|
||||
const $element = this.$sid(id);
|
||||
if ($element.length === 0) {
|
||||
throw new Error(`[JQHTML] render("${id}") - no such id.
|
||||
Component "${this.component_name()}" has no child element with $id="${id}".`);
|
||||
@@ -870,7 +870,7 @@ The framework will automatically re-render if this.data changes during on_load()
|
||||
if (this._stopped)
|
||||
return;
|
||||
if (id) {
|
||||
const $element = this.$id(id);
|
||||
const $element = this.$sid(id);
|
||||
if ($element.length === 0) {
|
||||
throw new Error(`[JQHTML] render("${id}") - no such id.
|
||||
Component "${this.component_name()}" has no child element with $id="${id}".`);
|
||||
@@ -1211,7 +1211,7 @@ Fix: Store your data in this.data instead:
|
||||
* Example:
|
||||
* Template: <button $id="save_btn">Save</button>
|
||||
* Rendered: <button id="save_btn:abc123" data-id="save_btn">Save</button>
|
||||
* Access: this.$id('save_btn') // Returns jQuery element
|
||||
* Access: this.$sid('save_btn') // Returns jQuery element
|
||||
*
|
||||
* Performance: Uses native document.getElementById() when component is in DOM,
|
||||
* falls back to jQuery.find() for components not yet attached to DOM.
|
||||
@@ -1241,7 +1241,7 @@ Fix: Store your data in this.data instead:
|
||||
* @returns Component instance or null if not found or not a component
|
||||
*/
|
||||
id(local_id) {
|
||||
const element = this.$id(local_id);
|
||||
const element = this.$sid(local_id);
|
||||
const component = element.data("_component");
|
||||
if (!component && element.length > 0) {
|
||||
console.warn(`Component ${this.constructor.name} tried to call .id('${local_id}') - ${local_id} exists, however, it is not a component or $redrawable. Did you forget to add $redrawable to the tag?`);
|
||||
|
||||
@@ -710,7 +710,7 @@
|
||||
if (this._stopped)
|
||||
return current_render_id;
|
||||
if (id) {
|
||||
const $element = this.$id(id);
|
||||
const $element = this.$sid(id);
|
||||
if ($element.length === 0) {
|
||||
throw new Error(`[JQHTML] render("${id}") - no such id.
|
||||
Component "${this.component_name()}" has no child element with $id="${id}".`);
|
||||
@@ -864,7 +864,7 @@ The framework will automatically re-render if this.data changes during on_load()
|
||||
if (this._stopped)
|
||||
return;
|
||||
if (id) {
|
||||
const $element = this.$id(id);
|
||||
const $element = this.$sid(id);
|
||||
if ($element.length === 0) {
|
||||
throw new Error(`[JQHTML] render("${id}") - no such id.
|
||||
Component "${this.component_name()}" has no child element with $id="${id}".`);
|
||||
@@ -1205,7 +1205,7 @@ Fix: Store your data in this.data instead:
|
||||
* Example:
|
||||
* Template: <button $id="save_btn">Save</button>
|
||||
* Rendered: <button id="save_btn:abc123" data-id="save_btn">Save</button>
|
||||
* Access: this.$id('save_btn') // Returns jQuery element
|
||||
* Access: this.$sid('save_btn') // Returns jQuery element
|
||||
*
|
||||
* Performance: Uses native document.getElementById() when component is in DOM,
|
||||
* falls back to jQuery.find() for components not yet attached to DOM.
|
||||
@@ -1235,7 +1235,7 @@ Fix: Store your data in this.data instead:
|
||||
* @returns Component instance or null if not found or not a component
|
||||
*/
|
||||
id(local_id) {
|
||||
const element = this.$id(local_id);
|
||||
const element = this.$sid(local_id);
|
||||
const component = element.data("_component");
|
||||
if (!component && element.length > 0) {
|
||||
console.warn(`Component ${this.constructor.name} tried to call .id('${local_id}') - ${local_id} exists, however, it is not a component or $redrawable. Did you forget to add $redrawable to the tag?`);
|
||||
|
||||
Reference in New Issue
Block a user