Skip to content

Commit

Permalink
undo Nuxt3TODO to TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
bippan1407 committed Feb 12, 2024
1 parent 36dc052 commit 247f8f4
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/codemod.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class Codemod {
key: { name: propertyName },
})
.forEach((path) => {
const newSyntax = `// Nuxt3TODO Code to migrate manually
const newSyntax = `// TODO Code to migrate manually
${j(path).toSource()}
`;
this.transformationValues.codeToMigrateManually += newSyntax + "\n";
Expand Down
2 changes: 1 addition & 1 deletion src/transformations/convertLayout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const transform = ({ root, j }) => {
j.objectExpression([]),
]);
newSyntax.comments = [
j.commentLine("Nuxt3TODO Need to migrate manually", false, true),
j.commentLine("TODO Need to migrate manually", false, true),
];
definePageMetaSyntax += j(newSyntax).toSource();
}
Expand Down
2 changes: 1 addition & 1 deletion src/transformations/convertLayout/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ test("convert layout function expression to definePageMeta", () => {
const newSyntax = transformations
.convertLayout(codemod.transformationObject)
?.trim();
expect(newSyntax).toEqual(`//Nuxt3TODO Need to migrate manually
expect(newSyntax).toEqual(`//TODO Need to migrate manually
definePageMeta({})`);
});
6 changes: 3 additions & 3 deletions src/transformations/convertThisExpression/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ const transform = ({ root, j, vueFileData }) => {
if (configOptions.commentAxios) {
j(path.parent.parent).forEach((path) => {
path.value.comments = [
j.commentLine("Nuxt3TODO Need to migrate manually", false, true),
j.commentLine("TODO Need to migrate manually", false, true),
];
});
}
} else if (configOptions.commentOtherCode) {
j(path.parent.parent).forEach((path) => {
path.value.comments = [
j.commentLine("Nuxt3TODO Need to migrate manually", false, true),
j.commentLine("TODO Need to migrate manually", false, true),
];
// return `// Nuxt3TODO Need to migrate manually
// return `// TODO Need to migrate manually
// // ${j(path).toSource()}`;
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ export default {
const newValue = documents.value
dropdownOptions.value.style.setProperty('--dd-left', `-${left}px`);
newUser.value;
// Nuxt3TODO please review the below code as commit(mutation) does not exists in pinia
// TODO please review the below code as commit(mutation) does not exists in pinia
addUser();
isKSUser.value;
editUserDetails(payload);
//Nuxt3TODO Need to migrate manually
//TODO Need to migrate manually
this.$axios.get('test')
.then((response) => {
console.log(response)
Expand Down
2 changes: 1 addition & 1 deletion src/transformations/convertThisStoreDispatch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const transform = ({ root, j }) => {
if (path.value.name === "commit") {
newSyntax =
newSyntax +
"// Nuxt3TODO please review the below code as commit(mutation) does not exists in pinia \n";
"// TODO please review the below code as commit(mutation) does not exists in pinia \n";
}
newSyntax += getVuexActionSyntax(currentActionName, paramsSyntax);
j(path?.parent?.parent).replaceWith(newSyntax);
Expand Down
2 changes: 1 addition & 1 deletion src/vueProperties/getCustomImports/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ beforeEach(() => {
codemod = new Codemod();
});

// Nuxt3TODO
// TODO
test("check if this.$test is present", () => {
// const testFile = path.resolve(__dirname, "testRouter.vue");
// codemod.initialiseFile(testFile);
Expand Down
2 changes: 1 addition & 1 deletion transformedFiles/test.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const onRedirect = () => {
onMounted(() => {
const response = $axios.$get('/user')
console.log('component mounted')
//Nuxt3TODO Need to migrate manually
//TODO Need to migrate manually
this.$once('hook:beforDestroy', () => {
});
})
Expand Down

0 comments on commit 247f8f4

Please sign in to comment.