Skip to content

Instantly share code, notes, and snippets.

@empresarrollo
empresarrollo / useFormSimple.ts
Created September 18, 2025 16:24
Inertia.js Form Helper for Axios/API calls. It wraps Inertia's useForm OR use axios for api calls if you pass {isInertia: false} in the options object.
import { useForm } from '@inertiajs/vue3'
import type { InertiaForm } from '@inertiajs/vue3'
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios'
import { cloneDeep } from 'lodash-es'
import { onUnmounted } from 'vue'
// Types
export type Method = 'get' | 'post' | 'put' | 'patch' | 'delete'
// Base options that work in both Inertia and Axios modes
@empresarrollo
empresarrollo / audit-your-codebase.md
Created August 14, 2026 23:55 — forked from aarondfrancis/audit-your-codebase.md
A read-only, agent-orchestrated codebase audit prompt for data structures, state modeling, algorithms, and ownership.

Audit this entire codebase for materially useful simplifications in its data structures, state representation, control flow, algorithms, and ownership.

This is an audit-only exercise. Do not edit files, run tests, implement recommendations, commit, or push. Read-only inspection commands are allowed.

You are the coordinator. Continue until the complete codebase has been reviewed and the final audit is validated.

  1. Establish the coverage contract

Inspect the repository and inventory every identifiable subsystem.