mirror of
https://github.com/jxpeng98/obsidian-to-NotionNext
synced 2026-07-29 08:08:34 +08:00
update the readme and changelog
This commit is contained in:
@@ -42,7 +42,7 @@ export class CustomModal extends Modal {
|
||||
this.properties[propertyIndex].customType = value; // Update the customType of the specific property
|
||||
});
|
||||
}
|
||||
)
|
||||
)
|
||||
} else {
|
||||
propertyLine
|
||||
.setName("Property " + (propertyIndex))
|
||||
@@ -64,19 +64,19 @@ export class CustomModal extends Modal {
|
||||
.addOption("select", "Select")
|
||||
.addOption("multi_select", "Multi-Select")
|
||||
.addOption("date", "Date")
|
||||
.addOption("person", "Person")
|
||||
// .addOption("person", "Person")
|
||||
.addOption("file", "Files & Media")
|
||||
.addOption("checkbox", "Checkbox")
|
||||
.addOption("url", "URL")
|
||||
.addOption("email", "Email")
|
||||
.addOption("phone_number", "Phone Number")
|
||||
.addOption("formula", "Formula")
|
||||
.addOption("relation", "Relation")
|
||||
.addOption("rollup", "Rollup")
|
||||
.addOption("created_time", "Created time")
|
||||
.addOption("created_by", "Created by")
|
||||
.addOption("last_edited_time", "Last Edited Time")
|
||||
.addOption("last_edited_by", "Last Edited By")
|
||||
// .addOption("formula", "Formula")
|
||||
// .addOption("relation", "Relation")
|
||||
// .addOption("rollup", "Rollup")
|
||||
// .addOption("created_time", "Created time")
|
||||
// .addOption("created_by", "Created by")
|
||||
// .addOption("last_edited_time", "Last Edited Time")
|
||||
// .addOption("last_edited_by", "Last Edited By")
|
||||
.setValue("text")
|
||||
.onChange(async (value) => {
|
||||
this.properties[propertyIndex].customType = value; // Update the customType of the specific property
|
||||
|
||||
@@ -159,6 +159,44 @@ export class Upload2NotionCustom extends UploadBaseCustom {
|
||||
start: value || new Date().toISOString(),
|
||||
},
|
||||
};
|
||||
case "number":
|
||||
return {
|
||||
number: Number(value),
|
||||
};
|
||||
case "phone_number":
|
||||
return {
|
||||
phone_number: value,
|
||||
};
|
||||
case "email":
|
||||
return {
|
||||
email: value,
|
||||
};
|
||||
case "url":
|
||||
return {
|
||||
url: value,
|
||||
};
|
||||
case "files":
|
||||
return {
|
||||
files: Array.isArray(value) ? value.map(url => ({
|
||||
name: url,
|
||||
type: "external",
|
||||
external: {
|
||||
url: url,
|
||||
},
|
||||
})) : [
|
||||
{
|
||||
name: value,
|
||||
type: "external",
|
||||
external: {
|
||||
url: value,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
case "checkbox":
|
||||
return {
|
||||
checkbox: Boolean(value) || false,
|
||||
};
|
||||
case "select":
|
||||
return {
|
||||
select: {
|
||||
|
||||
Reference in New Issue
Block a user