UNPKG

@shagital/adonisjs-crud-generator

Version:

Adonisjs Admin Panel Generator is a package that helps you quickly scaffold your typical CRUD admin interfaces. It generates the admin panel code based on the existing (migrated) table in the database

38 lines (37 loc) 1.1 kB
import { BaseCommand } from '@adonisjs/core/build/standalone'; export default class ViewGenerator extends BaseCommand { /** * Command name is used to run the command */ static commandName: string; /** * Command description is displayed in the "help" output */ static description: string; table: string; connection: string; private columns; static settings: { /** * Set the following value to true, if you want to load the application * before running the command */ loadApp: boolean; /** * Set the following value to true, if you want this command to keep running until * you manually decide to exit the process */ stayAlive: boolean; }; private Env; run(): Promise<void>; private copyAndUpdateViews; private updateView; private updateRoutes; private copyAndUpdateStore; private updateStoreImport; private updateTranslations; private updateSidebar; private generateInputFields; private generateVueTableColumns; }