feat(plugins/code): add new code plugin (#526)
This commit is contained in:
@@ -336,6 +336,23 @@
|
||||
},
|
||||
})
|
||||
: null),
|
||||
//Code snippet
|
||||
...(set.plugins.enabled.code
|
||||
? ({
|
||||
code: {
|
||||
snippet: {
|
||||
sha: faker.git.shortSha(),
|
||||
message: faker.lorem.sentence(),
|
||||
filename: 'docs/specifications.html',
|
||||
status: "modified",
|
||||
additions: faker.datatype.number(50),
|
||||
deletions: faker.datatype.number(50),
|
||||
patch: `<span class="token coord">@@ -0,0 +1,5 @@</span><br> //Imports<br><span class="token inserted">+ import app from "./src/app.mjs"</span><br><span class="token deleted">- import app from "./src/app.js"</span><br> //Start app<br> await app()<br>\\ No newline at end of file`,
|
||||
repo: `${faker.random.word()}/${faker.random.word()}`,
|
||||
},
|
||||
}
|
||||
})
|
||||
: null),
|
||||
//Languages
|
||||
...(set.plugins.enabled.languages
|
||||
? ({
|
||||
|
||||
Reference in New Issue
Block a user