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 @@ -331,7 +331,6 @@ const processField = (
break;
}
}

};

// 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 @@ -314,7 +314,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: 1 addition & 0 deletions api/src/services/sitecore.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { orgService } from './org.service.js';
import { getLogMessage } from '../utils/index.js';
import customLogger from '../utils/custom-logger.utils.js';


const append = "a";

const baseDirName = MIGRATION_DATA_CONFIG.DATA
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 @@ -10,7 +10,6 @@ import customLogger from "../utils/custom-logger.utils.js";
import { getLogMessage } from "../utils/index.js";
import { Advanced } from "../models/FieldMapper.js";


const { JSDOM } = jsdom;
const virtualConsole = new jsdom.VirtualConsole();
// Get the current file's path
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: 1 addition & 0 deletions upload-api/migration-contentful/config/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
"contentful": "contentfulSchema"
},
"fileName": "en-us.json"

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


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


}
}
}
1 change: 0 additions & 1 deletion upload-api/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default {
buketKey: 'project/package 45.zip'
},


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'
};
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
1 change: 0 additions & 1 deletion upload-api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */


/* JavaScript Support */
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
Expand Down