Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion api/src/services/contentful.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ const processField = (
}



};

// Helper function to clean up brackets in non-numeric lang_value
Expand Down
1 change: 0 additions & 1 deletion api/src/services/contentful/jsonRTE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ function parseBlockAsset(obj: any, lang?: LangType, destination_stack_id?: Stack




function parseBlockquote(obj: any): any {
const children = obj.content.map((e: any) => parsers.get(e.nodeType)?.(e)).filter(Boolean);
return {
Expand Down
1 change: 0 additions & 1 deletion api/src/services/sitecore.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import customLogger from '../utils/custom-logger.utils.js';

const append = "a";


const baseDirName = MIGRATION_DATA_CONFIG.DATA
const {
ENTRIES_DIR_NAME,
Expand Down
1 change: 0 additions & 1 deletion api/src/services/wordpress.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const virtualConsole = new jsdom.VirtualConsole();
const __filename = fileURLToPath(import.meta.url);



// Get the current directory
const __dirname = path.dirname(__filename);

Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const envContents = {
};



// Function to create env files
const createEnvFiles = () => {
// Loop through each key in the envFilePaths object
Expand Down
1 change: 0 additions & 1 deletion upload-api/migration-contentful/config/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
"fileName": "en-us.json"



}
1 change: 0 additions & 1 deletion upload-api/migration-sitecore/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const MIGRATION_DATA_CONFIG = {
EXPORT_INFO_FILE: "export-info.json"
}



module.exports = {
MIGRATION_DATA_CONFIG
Expand Down
1 change: 0 additions & 1 deletion upload-api/migration-wordpress/config/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"fileName": "en-us.json",
"masterfile": "posts.json"



}
}
Expand Down
1 change: 0 additions & 1 deletion upload-api/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default {
},




localPath: '/home/gaurishn/Documents/contentstack/sitetitle.xml' //package 45.zip'
// localPath: '/Users/umesh.more/Documents/ui-migration/migration-v2-node-server/upload-api/extracted_files/package 45.zip'
Expand Down
1 change: 1 addition & 0 deletions upload-api/src/models/contentful.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@
"name": "roles",
"required": "false"
}

}
1 change: 1 addition & 0 deletions upload-api/src/models/wordpress.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@
"name": "wp\\:attachment_url",
"required": "false"
}

}
1 change: 1 addition & 0 deletions upload-api/src/services/contentful/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Config } from '../../models/types';

const { extractContentTypes, createInitialMapper } = require('migration-contentful');


const createContentfulMapper = async (
projectId: string | string[],
app_token: string | string[],
Expand Down
1 change: 1 addition & 0 deletions upload-api/src/validators/contentful/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface JsonData {
[key: string]: any;
}


//function to validate json file data
function contentfulValidator(data: string): boolean {
let jsonData: JsonData;
Expand Down
1 change: 1 addition & 0 deletions upload-api/src/validators/sitecore/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ interface props {
data: items;
}


async function sitecoreValidator({ data }: props) {
try {
let templates: any[] = [];
Expand Down
1 change: 1 addition & 0 deletions upload-api/src/validators/wordpress/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Config from '../../models/wordpress.json';
import * as Cheerio from 'cheerio';


//function to validate xml file data
function wordpressValidator(data: string): boolean {
try {
Expand Down