feat(sgw): Implement Create or Update Banzone functionality with map integration
This commit is contained in:
@@ -1,6 +1,19 @@
|
||||
import sgwFish from './sgw-fish-en';
|
||||
import sgwMap from './sgw-map-en';
|
||||
import sgwMenu from './sgw-menu-en';
|
||||
import sgwPhoto from './sgw-photo-en';
|
||||
import sgwShip from './sgw-ship-en';
|
||||
import sgwTrip from './sgw-trip-en';
|
||||
import sgwZone from './sgw-zone-en';
|
||||
|
||||
export default {
|
||||
'sgw.title': 'Sea Gateway',
|
||||
'sgw.ship': 'Ship',
|
||||
...sgwMenu,
|
||||
...sgwTrip,
|
||||
...sgwMap,
|
||||
...sgwShip,
|
||||
...sgwFish,
|
||||
...sgwPhoto,
|
||||
...sgwZone,
|
||||
};
|
||||
|
||||
53
src/locales/en-US/slave/sgw/sgw-fish-en.ts
Normal file
53
src/locales/en-US/slave/sgw/sgw-fish-en.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
export default {
|
||||
// Fish group
|
||||
'fish.fish_group': 'Fish Group',
|
||||
'fish.fish_group.tooltip': 'Enter fish group name',
|
||||
'fish.fish_group.placeholder': 'Enter fish group',
|
||||
|
||||
// Rarity
|
||||
'fish.rarity': 'Rarity Level',
|
||||
'fish.rarity.placeholder': 'Select rarity level',
|
||||
'fish.rarity.normal': 'Normal',
|
||||
'fish.rarity.sensitive': 'Sensitive',
|
||||
'fish.rarity.near_threatened': 'Near Threatened',
|
||||
'fish.rarity.vulnerable': 'Vulnerable',
|
||||
'fish.rarity.endangered': 'Endangered',
|
||||
'fish.rarity.critically_endangered': 'Critically Endangered',
|
||||
'fish.rarity.extinct_in_the_wild': 'Extinct in the Wild',
|
||||
'fish.rarity.data_deficient': 'Data Deficient',
|
||||
|
||||
// Fish name
|
||||
'fish.name': 'Fish Name',
|
||||
'fish.name.tooltip': 'Enter fish name',
|
||||
'fish.name.placeholder': 'Enter fish name',
|
||||
'fish.name.required': 'Please enter fish name',
|
||||
|
||||
// Specific name
|
||||
'fish.specific_name': 'Scientific Name',
|
||||
'fish.specific_name.placeholder': 'Enter scientific name',
|
||||
|
||||
// Actions
|
||||
'fish.create.title': 'Add New Fish Species',
|
||||
'fish.edit.title': 'Edit Fish Species',
|
||||
'fish.delete.title': 'Delete Fish Species',
|
||||
'fish.delete.confirm': 'Are you sure you want to delete this fish species?',
|
||||
'fish.delete_confirm': 'Are you sure you want to delete this fish species?',
|
||||
'fish.delete.success': 'Fish species deleted successfully',
|
||||
'fish.delete.fail': 'Failed to delete fish species',
|
||||
'fish.create.success': 'Fish species created successfully',
|
||||
'fish.create.fail': 'Failed to create fish species',
|
||||
'fish.update.success': 'Fish species updated successfully',
|
||||
'fish.update.fail': 'Failed to update fish species',
|
||||
|
||||
// Table columns
|
||||
'fish.table.name': 'Fish Name',
|
||||
'fish.table.specific_name': 'Scientific Name',
|
||||
'fish.table.fish_group': 'Fish Group',
|
||||
'fish.table.rarity': 'Rarity Level',
|
||||
'fish.table.actions': 'Actions',
|
||||
|
||||
// Search & Filter
|
||||
'fish.search.placeholder': 'Search fish species...',
|
||||
'fish.filter.group': 'Filter by group',
|
||||
'fish.filter.rarity': 'Filter by rarity',
|
||||
};
|
||||
37
src/locales/en-US/slave/sgw/sgw-map-en.ts
Normal file
37
src/locales/en-US/slave/sgw/sgw-map-en.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
export default {
|
||||
// Map
|
||||
'home.mapError': 'Map Error',
|
||||
'map.ship_detail.heading': 'Heading',
|
||||
'map.ship_detail.speed': 'Speed',
|
||||
'map.ship_detail.name': 'Ship Information',
|
||||
|
||||
// Thing status
|
||||
'thing.name': 'Device Name',
|
||||
'thing.status': 'Status',
|
||||
'thing.status.normal': 'Normal',
|
||||
'thing.status.warning': 'Warning',
|
||||
'thing.status.critical': 'Critical',
|
||||
'thing.status.sos': 'SOS',
|
||||
|
||||
// Map layers
|
||||
'map.layer.list': 'Map Layers',
|
||||
'map.layer.fishing_ban_zone': 'Fishing Ban Zone',
|
||||
'map.layer.entry_ban_zone': 'Entry Ban Zone',
|
||||
'map.layer.boundary_lines': 'Boundary Lines',
|
||||
'map.layer.ports': 'Ports',
|
||||
|
||||
// Map filters
|
||||
'map.filter.name': 'Filter',
|
||||
'map.filter.ship_name': 'Ship Name',
|
||||
'map.filter.ship_name_tooltip': 'Enter ship name to search',
|
||||
'map.filter.ship_reg_number': 'Registration Number',
|
||||
'map.filter.ship_reg_number_tooltip':
|
||||
'Enter ship registration number to search',
|
||||
'map.filter.ship_length': 'Ship Length (m)',
|
||||
'map.filter.ship_power': 'Power (HP)',
|
||||
'map.filter.ship_type': 'Ship Type',
|
||||
'map.filter.ship_type_placeholder': 'Select ship type',
|
||||
'map.filter.ship_warning': 'Warning',
|
||||
'map.filter.ship_warning_placeholder': 'Select warning type',
|
||||
'map.filter.area_type': 'Area Type',
|
||||
};
|
||||
@@ -1,7 +1,11 @@
|
||||
export default {
|
||||
'menu.sgw.map': 'Maps',
|
||||
'menu.sgw.trips': 'Trips',
|
||||
'menu.sgw.ships': 'Ship',
|
||||
'menu.manager.sgw.fishes': 'Fishes',
|
||||
'menu.manager.sgw.zones': 'Zones',
|
||||
'menu.sgw.ships': 'Ships',
|
||||
'menu.sgw.fishes': 'Fishes',
|
||||
'menu.sgw.zones': 'Prohibited Zones',
|
||||
|
||||
// Manager menu
|
||||
'menu.manager.sgw.fishes': 'Fish Management',
|
||||
'menu.manager.sgw.zones': 'Zone Management',
|
||||
};
|
||||
|
||||
16
src/locales/en-US/slave/sgw/sgw-photo-en.ts
Normal file
16
src/locales/en-US/slave/sgw/sgw-photo-en.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export default {
|
||||
'photo.main': 'Main Photo',
|
||||
'photo.sub': 'Sub Photos',
|
||||
'photo.upload': 'Upload Photo',
|
||||
'photo.delete': 'Delete Photo',
|
||||
'photo.delete.confirm': 'Are you sure you want to delete this photo?',
|
||||
'photo.delete.success': 'Photo deleted successfully',
|
||||
'photo.delete.fail': 'Failed to delete photo',
|
||||
'photo.upload.success': 'Photo uploaded successfully',
|
||||
'photo.upload.fail': 'Failed to upload photo',
|
||||
'photo.upload.limit': 'Photo size must not exceed 5MB',
|
||||
'photo.upload.format': 'Only JPG/PNG format supported',
|
||||
'photo.manage': 'Manage Photos',
|
||||
'photo.change': 'Change Photo',
|
||||
'photo.add': 'Add Photo',
|
||||
};
|
||||
16
src/locales/en-US/slave/sgw/sgw-ship-en.ts
Normal file
16
src/locales/en-US/slave/sgw/sgw-ship-en.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export default {
|
||||
// Pages - Ship List
|
||||
'pages.ships.reg_number': 'Registration Number',
|
||||
'pages.ships.name': 'Ship Name',
|
||||
'pages.ships.type': 'Ship Type',
|
||||
'pages.ships.home_port': 'Home Port',
|
||||
'pages.ships.option': 'Options',
|
||||
|
||||
// Pages - Ship Create/Edit
|
||||
'pages.ship.create.text': 'Create New Ship',
|
||||
'pages.ships.create.title': 'Add New Ship',
|
||||
'pages.ships.edit.title': 'Edit Ship',
|
||||
|
||||
// Pages - Things (Ship related)
|
||||
'pages.things.fishing_license_expiry_date': 'Fishing License Expiry Date',
|
||||
};
|
||||
64
src/locales/en-US/slave/sgw/sgw-trip-en.ts
Normal file
64
src/locales/en-US/slave/sgw/sgw-trip-en.ts
Normal file
@@ -0,0 +1,64 @@
|
||||
export default {
|
||||
// Pages - Trip List
|
||||
'pages.trips.name': 'Trip Name',
|
||||
'pages.trips.ship_id': 'Ship',
|
||||
'pages.trips.departure_time': 'Departure Time',
|
||||
'pages.trips.arrival_time': 'Arrival Time',
|
||||
'pages.trips.status': 'Status',
|
||||
'pages.trips.status.created': 'Created',
|
||||
'pages.trips.status.pending_approval': 'Pending Approval',
|
||||
'pages.trips.status.approved': 'Approved',
|
||||
'pages.trips.status.active': 'Active',
|
||||
'pages.trips.status.completed': 'Completed',
|
||||
'pages.trips.status.cancelled': 'Cancelled',
|
||||
|
||||
// Pages - Date filters
|
||||
'pages.date.yesterday': 'Yesterday',
|
||||
'pages.date.lastweek': 'Last Week',
|
||||
'pages.date.lastmonth': 'Last Month',
|
||||
|
||||
// Pages - Things/Ship
|
||||
'pages.things.createTrip.text': 'Create Trip',
|
||||
'pages.things.option': 'Options',
|
||||
|
||||
// Trip badges
|
||||
'trip.badge.active': 'Active',
|
||||
'trip.badge.approved': 'Approved',
|
||||
'trip.badge.cancelled': 'Cancelled',
|
||||
'trip.badge.completed': 'Completed',
|
||||
'trip.badge.notApproved': 'Not Approved',
|
||||
'trip.badge.unknown': 'Unknown',
|
||||
'trip.badge.waitingApproval': 'Waiting Approval',
|
||||
|
||||
// Cancel trip
|
||||
'trip.cancelTrip.button': 'Cancel Trip',
|
||||
'trip.cancelTrip.placeholder': 'Enter reason for cancellation',
|
||||
'trip.cancelTrip.reason': 'Reason',
|
||||
'trip.cancelTrip.title': 'Cancel Trip',
|
||||
'trip.cancelTrip.validation': 'Please enter a reason',
|
||||
|
||||
// Trip cost
|
||||
'trip.cost.amount': 'Amount',
|
||||
'trip.cost.crewSalary': 'Crew Salary',
|
||||
'trip.cost.food': 'Food',
|
||||
'trip.cost.fuel': 'Fuel',
|
||||
'trip.cost.grandTotal': 'Grand Total',
|
||||
'trip.cost.iceSalt': 'Ice & Salt',
|
||||
'trip.cost.price': 'Price',
|
||||
'trip.cost.total': 'Total',
|
||||
'trip.cost.type': 'Type',
|
||||
'trip.cost.unit': 'Unit',
|
||||
|
||||
// Trip gear
|
||||
'trip.gear.name': 'Gear Name',
|
||||
'trip.gear.quantity': 'Quantity',
|
||||
|
||||
// Haul fish list
|
||||
'trip.haulFishList.fishCondition': 'Condition',
|
||||
'trip.haulFishList.fishName': 'Fish Name',
|
||||
'trip.haulFishList.fishRarity': 'Rarity',
|
||||
'trip.haulFishList.fishSize': 'Size',
|
||||
'trip.haulFishList.gearUsage': 'Gear Usage',
|
||||
'trip.haulFishList.title': 'Haul Fish List',
|
||||
'trip.haulFishList.weight': 'Weight',
|
||||
};
|
||||
32
src/locales/en-US/slave/sgw/sgw-zone-en.ts
Normal file
32
src/locales/en-US/slave/sgw/sgw-zone-en.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
export default {
|
||||
// Table columns
|
||||
'banzones.name': 'Zone Name',
|
||||
'banzones.area': 'Province/City',
|
||||
'banzones.description': 'Description',
|
||||
'banzones.type': 'Type',
|
||||
'banzones.conditions': 'Conditions',
|
||||
'banzones.state': 'Status',
|
||||
'banzones.action': 'Actions',
|
||||
'banzones.title': 'zones',
|
||||
'banzones.create': 'Create Zone',
|
||||
|
||||
// Zone types
|
||||
'banzone.area.fishing_ban': 'Fishing Ban',
|
||||
'banzone.area.move_ban': 'Movement Ban',
|
||||
'banzone.area.safe': 'Safe Area',
|
||||
|
||||
// Status
|
||||
'banzone.is_enable': 'Enabled',
|
||||
'banzone.is_unenabled': 'Disabled',
|
||||
|
||||
// Shape types
|
||||
'banzone.polygon': 'Polygon',
|
||||
'banzone.polyline': 'Polyline',
|
||||
'banzone.circle': 'Circle',
|
||||
|
||||
// Notifications
|
||||
'banzone.notify.delete_zone_success': 'Zone deleted successfully',
|
||||
'banzone.notify.delete_zone_confirm':
|
||||
'Are you sure you want to delete this zone',
|
||||
'banzone.notify.fail': 'Operation failed!',
|
||||
};
|
||||
Reference in New Issue
Block a user