UNPKG

metadata-editor-workspace

Version:

Metadata Editor Workspace module for ME-Core Powered by Assyst

37 lines (29 loc) 1.44 kB
/*********************************************************************** Use : To declare the application constant values Created By : ATP-0000835 Created Date : 16-FEB-2017 Updated By : ATP-0000835 Updated Date : 16-FEB-2017 ***********************************************************************/ const path = require('path'); let templateBasePath = path.join(process.cwd(),'src','assets','template-mapping'); // AppConstants class contains the static values for the application export class AppConstants { public static get templateMappingPaths() { return templateMappingPaths } public static get templateTypes() { return templateTypes } } //#. Contains the path information of the template mapping schemas const templateMappingPaths = { base_folder: templateBasePath, ddi_schema: path.join(templateBasePath,'schema_ddi.json'), geospatial_schema: path.join(templateBasePath,'schema_geospatial.json'), default_template_ddi_schema: path.join(templateBasePath,'default_template_ddi.json'), default_template_geospatial_schema: path.join(templateBasePath,'default_template_geospatial.json'), editor_section_mapping_schema: path.join(templateBasePath,'editor_section_mapping.json') } //#. Contains the types of templates const templateTypes = { ddi: 'DDI', geospatial: 'GeoSpatial', editor_mapping: 'editor_section_mapping' }