Skip to content

Commit

Permalink
Revert "initial commit"
Browse files Browse the repository at this point in the history
This reverts commit 3c76e49.
  • Loading branch information
sawhney17 committed Mar 14, 2022
1 parent 3c76e49 commit c3c756d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1,710 deletions.
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

Binary file modified icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import '@logseq/libs';

//Inputs 5 numbered blocks when called
async function insertSomeBlocks (e) {
console.log('Open the calendar!')
let numberArray = [1, 2, 3, 4, 5]
for (const number in numberArray){
logseq.App.showMsg("Function has been run")
logseq.Editor.insertBlock(e.uuid, `This is block ${numberArray[number]}`, {sibling: true})}

}


const main = async () => {
console.log('plugin loaded');
logseq.Editor.registerSlashCommand('insertBlocks', async (e) => {
insertSomeBlocks(e)
}

)}

logseq.ready(main).catch(console.error);
58 changes: 0 additions & 58 deletions index.ts

This file was deleted.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "logseq-custom-workflow-plugin",
"name": "logseq-starter-plugin",
"version": "1.0",
"description": "Custom Workflow Plugin",
"description": "Starter Plugin",
"main": "dist/index.html",
"targets": {
"main": false
Expand All @@ -14,12 +14,11 @@
"author": "Aryan Sawhney",
"license": "MIT",
"dependencies": {
"@logseq/libs": "0.0.1-alpha.35",
"prettier": "^2.5.1"
"@logseq/libs": "0.0.1-alpha.34"
},
"logseq": {
"id": "logseq-custom-workflow-plugin",
"title": "Custom Workflows",
"id": "logseq-starter-plugin",
"title": "logseq-starter-plugin",
"icon": "./icon.png"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit c3c756d

Please sign in to comment.