fix lint padded-blocks

This commit is contained in:
Johann150 2022-07-04 15:59:24 +02:00
parent ea9e32096b
commit f14d5886f2
No known key found for this signature in database
GPG Key ID: 9EE6577A2A06F8F1
5 changed files with 0 additions and 5 deletions

View File

@ -24,7 +24,6 @@ export default defineComponent({
},
},
setup(props, ctx) {
const hpml = new Hpml(props.page, {
randomSeed: Math.random(),
visitor: $i,

View File

@ -34,7 +34,6 @@ function calc(src: Element) {
export default {
mounted(src, binding, vn) {
const resize = new ResizeObserver((entries, observer) => {
calc(src);
});

View File

@ -21,7 +21,6 @@ export async function genSearchQuery(v: any, q: string) {
}
}
}
}
return {
query: q.split(' ').filter(x => !x.startsWith('/') && !x.startsWith('@')).join(' '),

View File

@ -159,7 +159,6 @@ export class Hpml {
@autobind
private evaluate(expr: Expr, scope: HpmlScope): any {
if (isLiteralValue(expr)) {
if (expr.type === null) {
return null;

View File

@ -170,7 +170,6 @@ export const funcDefs: Record<string, { in: any[]; out: any; category: string; i
};
export function initHpmlLib(expr: Expr, scope: HpmlScope, randomSeed: string, visitor?: any) {
const date = new Date();
const day = `${visitor ? visitor.id : ''} ${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()}`;