From 6bf15c1d98ba26fa0ee7687827ee64ae47a21405 Mon Sep 17 00:00:00 2001 From: Kiran Jonnalagadda Date: Tue, 5 Mar 2024 18:05:45 +0530 Subject: [PATCH] Rename JS files to use `type_action` convention --- .../{edit_category.js => category_edit.js} | 0 .../{new_category.js => category_new.js} | 0 ...unt_policy.js => discount_policy_admin.js} | 0 ...nt_policy.js => discount_policy_delete.js} | 0 .../js/views/{item_collection.js => menu.js} | 0 .../{edit_item_collection.js => menu_edit.js} | 0 .../{new_item_collection.js => menu_new.js} | 0 .../views/{admin_order.js => order_admin.js} | 0 ...efund_order.js => order_partial_refund.js} | 0 .../{admin_orders.js => orders_admin.js} | 0 ...dmin_org_report.js => org_report_admin.js} | 0 .../js/views/{edit_price.js => price_edit.js} | 0 .../js/views/{new_price.js => price_new.js} | 0 .../{admin_report.js => report_admin.js} | 0 boxoffice/assets/js/views/router.js | 34 +++++++++---------- .../views/{admin_item.js => ticket_admin.js} | 0 .../js/views/{edit_item.js => ticket_edit.js} | 0 .../js/views/{new_item.js => ticket_new.js} | 0 18 files changed, 17 insertions(+), 17 deletions(-) rename boxoffice/assets/js/views/{edit_category.js => category_edit.js} (100%) rename boxoffice/assets/js/views/{new_category.js => category_new.js} (100%) rename boxoffice/assets/js/views/{admin_discount_policy.js => discount_policy_admin.js} (100%) rename boxoffice/assets/js/views/{delete_discount_policy.js => discount_policy_delete.js} (100%) rename boxoffice/assets/js/views/{item_collection.js => menu.js} (100%) rename boxoffice/assets/js/views/{edit_item_collection.js => menu_edit.js} (100%) rename boxoffice/assets/js/views/{new_item_collection.js => menu_new.js} (100%) rename boxoffice/assets/js/views/{admin_order.js => order_admin.js} (100%) rename boxoffice/assets/js/views/{partial_refund_order.js => order_partial_refund.js} (100%) rename boxoffice/assets/js/views/{admin_orders.js => orders_admin.js} (100%) rename boxoffice/assets/js/views/{admin_org_report.js => org_report_admin.js} (100%) rename boxoffice/assets/js/views/{edit_price.js => price_edit.js} (100%) rename boxoffice/assets/js/views/{new_price.js => price_new.js} (100%) rename boxoffice/assets/js/views/{admin_report.js => report_admin.js} (100%) rename boxoffice/assets/js/views/{admin_item.js => ticket_admin.js} (100%) rename boxoffice/assets/js/views/{edit_item.js => ticket_edit.js} (100%) rename boxoffice/assets/js/views/{new_item.js => ticket_new.js} (100%) diff --git a/boxoffice/assets/js/views/edit_category.js b/boxoffice/assets/js/views/category_edit.js similarity index 100% rename from boxoffice/assets/js/views/edit_category.js rename to boxoffice/assets/js/views/category_edit.js diff --git a/boxoffice/assets/js/views/new_category.js b/boxoffice/assets/js/views/category_new.js similarity index 100% rename from boxoffice/assets/js/views/new_category.js rename to boxoffice/assets/js/views/category_new.js diff --git a/boxoffice/assets/js/views/admin_discount_policy.js b/boxoffice/assets/js/views/discount_policy_admin.js similarity index 100% rename from boxoffice/assets/js/views/admin_discount_policy.js rename to boxoffice/assets/js/views/discount_policy_admin.js diff --git a/boxoffice/assets/js/views/delete_discount_policy.js b/boxoffice/assets/js/views/discount_policy_delete.js similarity index 100% rename from boxoffice/assets/js/views/delete_discount_policy.js rename to boxoffice/assets/js/views/discount_policy_delete.js diff --git a/boxoffice/assets/js/views/item_collection.js b/boxoffice/assets/js/views/menu.js similarity index 100% rename from boxoffice/assets/js/views/item_collection.js rename to boxoffice/assets/js/views/menu.js diff --git a/boxoffice/assets/js/views/edit_item_collection.js b/boxoffice/assets/js/views/menu_edit.js similarity index 100% rename from boxoffice/assets/js/views/edit_item_collection.js rename to boxoffice/assets/js/views/menu_edit.js diff --git a/boxoffice/assets/js/views/new_item_collection.js b/boxoffice/assets/js/views/menu_new.js similarity index 100% rename from boxoffice/assets/js/views/new_item_collection.js rename to boxoffice/assets/js/views/menu_new.js diff --git a/boxoffice/assets/js/views/admin_order.js b/boxoffice/assets/js/views/order_admin.js similarity index 100% rename from boxoffice/assets/js/views/admin_order.js rename to boxoffice/assets/js/views/order_admin.js diff --git a/boxoffice/assets/js/views/partial_refund_order.js b/boxoffice/assets/js/views/order_partial_refund.js similarity index 100% rename from boxoffice/assets/js/views/partial_refund_order.js rename to boxoffice/assets/js/views/order_partial_refund.js diff --git a/boxoffice/assets/js/views/admin_orders.js b/boxoffice/assets/js/views/orders_admin.js similarity index 100% rename from boxoffice/assets/js/views/admin_orders.js rename to boxoffice/assets/js/views/orders_admin.js diff --git a/boxoffice/assets/js/views/admin_org_report.js b/boxoffice/assets/js/views/org_report_admin.js similarity index 100% rename from boxoffice/assets/js/views/admin_org_report.js rename to boxoffice/assets/js/views/org_report_admin.js diff --git a/boxoffice/assets/js/views/edit_price.js b/boxoffice/assets/js/views/price_edit.js similarity index 100% rename from boxoffice/assets/js/views/edit_price.js rename to boxoffice/assets/js/views/price_edit.js diff --git a/boxoffice/assets/js/views/new_price.js b/boxoffice/assets/js/views/price_new.js similarity index 100% rename from boxoffice/assets/js/views/new_price.js rename to boxoffice/assets/js/views/price_new.js diff --git a/boxoffice/assets/js/views/admin_report.js b/boxoffice/assets/js/views/report_admin.js similarity index 100% rename from boxoffice/assets/js/views/admin_report.js rename to boxoffice/assets/js/views/report_admin.js diff --git a/boxoffice/assets/js/views/router.js b/boxoffice/assets/js/views/router.js index 6b779cd1..630e2c22 100644 --- a/boxoffice/assets/js/views/router.js +++ b/boxoffice/assets/js/views/router.js @@ -1,22 +1,22 @@ import { IndexView } from './index'; import { OrgView } from './org'; -import { OrgReportView } from './admin_org_report'; -import { DiscountPolicyView } from './admin_discount_policy'; -import { DeleteDiscountPolicyView } from './delete_discount_policy'; -import { MenuView } from './item_collection'; -import { MenuNewView } from './new_item_collection'; -import { MenuEditView } from './edit_item_collection'; -import { OrdersView } from './admin_orders'; -import { OrderView } from './admin_order'; -import { ReportView } from './admin_report'; -import { TicketView } from './admin_item'; -import { NewTicketView } from './new_item'; -import { EditTicketView } from './edit_item'; -import { NewPriceView } from './new_price'; -import { EditPriceView } from './edit_price'; -import { NewCategoryView } from './new_category'; -import { EditCategoryView } from './edit_category'; -import { PartialRefundOrderView } from './partial_refund_order'; +import { OrgReportView } from './org_report_admin'; +import { DiscountPolicyView } from './discount_policy_admin'; +import { DeleteDiscountPolicyView } from './discount_policy_delete'; +import { MenuView } from './menu'; +import { MenuNewView } from './menu_new'; +import { MenuEditView } from './menu_edit'; +import { OrdersView } from './orders_admin'; +import { OrderView } from './order_admin'; +import { ReportView } from './report_admin'; +import { TicketView } from './ticket_admin'; +import { NewTicketView } from './ticket_new'; +import { EditTicketView } from './ticket_edit'; +import { NewPriceView } from './price_new'; +import { EditPriceView } from './price_edit'; +import { NewCategoryView } from './category_new'; +import { EditCategoryView } from './category_edit'; +import { PartialRefundOrderView } from './order_partial_refund'; const Backbone = require('backbone'); diff --git a/boxoffice/assets/js/views/admin_item.js b/boxoffice/assets/js/views/ticket_admin.js similarity index 100% rename from boxoffice/assets/js/views/admin_item.js rename to boxoffice/assets/js/views/ticket_admin.js diff --git a/boxoffice/assets/js/views/edit_item.js b/boxoffice/assets/js/views/ticket_edit.js similarity index 100% rename from boxoffice/assets/js/views/edit_item.js rename to boxoffice/assets/js/views/ticket_edit.js diff --git a/boxoffice/assets/js/views/new_item.js b/boxoffice/assets/js/views/ticket_new.js similarity index 100% rename from boxoffice/assets/js/views/new_item.js rename to boxoffice/assets/js/views/ticket_new.js