mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Remove some console logs
This commit is contained in:
@@ -58,11 +58,9 @@ export const callouts: Plugin = function (providedConfig?: Partial<Config>) {
|
|||||||
// .join("|");
|
// .join("|");
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const Parser = this.Parser
|
const Parser = this.Parser
|
||||||
console.log(Parser)
|
|
||||||
|
|
||||||
const blockTokenizers = Parser.prototype.blockTokenizers
|
const blockTokenizers = Parser.prototype.blockTokenizers
|
||||||
const blockMethods = Parser.prototype.blockMethods
|
const blockMethods = Parser.prototype.blockMethods
|
||||||
console.log(blockMethods, blockTokenizers)
|
// console.log(blockMethods, blockTokenizers)
|
||||||
|
|
||||||
|
|
||||||
blockTokenizers.callout = tok
|
blockTokenizers.callout = tok
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ function blockquote(eat: { (arg0: string): any; (arg0: string): any; now: any; }
|
|||||||
const title = self.tokenizeInline(m.groups?.title, now);
|
const title = self.tokenizeInline(m.groups?.title, now);
|
||||||
contents = self.tokenizeBlock(contents.join(C_NEWLINE), now);
|
contents = self.tokenizeBlock(contents.join(C_NEWLINE), now);
|
||||||
exit();
|
exit();
|
||||||
console.log(title,)
|
// console.log(title,)
|
||||||
return add({
|
return add({
|
||||||
type: 'callout',
|
type: 'callout',
|
||||||
children: [{
|
children: [{
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
if (typeof result.code == "string") {
|
if (typeof result.code == "string") {
|
||||||
output = result.code
|
output = result.code
|
||||||
} else {
|
} else {
|
||||||
console.log(result)
|
console.error(result)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,13 +41,13 @@ type Options =
|
|||||||
function relativeResolver({ include, exclude, rootdir: rootDirCfg }: Options = {}): import('vite').Plugin {
|
function relativeResolver({ include, exclude, rootdir: rootDirCfg }: Options = {}): import('vite').Plugin {
|
||||||
const rootDir = resolve(rootDirCfg || process.cwd());
|
const rootDir = resolve(rootDirCfg || process.cwd());
|
||||||
const filter = createFilter(include, exclude)
|
const filter = createFilter(include, exclude)
|
||||||
console.log(rootDir)
|
// console.log(rootDir)
|
||||||
return {
|
return {
|
||||||
name: "relative resolver",
|
name: "relative resolver",
|
||||||
async resolveId(file, origin, opt) {
|
async resolveId(file, origin, opt) {
|
||||||
if (file.includes("Design")) {
|
// if (file.includes("Design")) {
|
||||||
console.log(file, origin, !filter(origin), opt.isEntry)
|
// console.log(file, origin, !filter(origin), opt.isEntry)
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (opt.isEntry) return
|
if (opt.isEntry) return
|
||||||
|
|
||||||
@@ -56,8 +56,8 @@ function relativeResolver({ include, exclude, rootdir: rootDirCfg }: Options = {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("relatively resolving")
|
// console.log("relatively resolving")
|
||||||
console.log(relative(rootDir, resolve(dirname(origin as string), decodeURIComponent(file))))
|
// console.log(relative(rootDir, resolve(dirname(origin as string), decodeURIComponent(file))))
|
||||||
// if (!isThumbHash(file)) return
|
// if (!isThumbHash(file)) return
|
||||||
// Your local include path must either starts with `./` or `../`
|
// Your local include path must either starts with `./` or `../`
|
||||||
// if (file.startsWith('./') || file.startsWith('../')) {
|
// if (file.startsWith('./') || file.startsWith('../')) {
|
||||||
@@ -80,7 +80,7 @@ function blurhash_transform() {
|
|||||||
|
|
||||||
// if (!blurRE.test(id)) return;
|
// if (!blurRE.test(id)) return;
|
||||||
if (!isThumbHash(id)) return;
|
if (!isThumbHash(id)) return;
|
||||||
console.log(id, code)
|
// console.log(id, code)
|
||||||
// console.log(id.includes("blurhash"), id)
|
// console.log(id.includes("blurhash"), id)
|
||||||
return code;
|
return code;
|
||||||
// return `export default \`${c.replace(/`/g, "\\`").trim()}\`;`;
|
// return `export default \`${c.replace(/`/g, "\\`").trim()}\`;`;
|
||||||
|
|||||||
Reference in New Issue
Block a user