Add missing imports, reorder them alphabetically

This commit is contained in:
Tissevert 2020-01-11 09:05:32 +01:00
parent fd714e93ff
commit 7ef89ae93d
4 changed files with 12 additions and 6 deletions

View File

@ -1,8 +1,9 @@
import blog from Hablo.Config;
import Metadata;
import Remarkable;
import Template;
import * as Dom from UnitJS.Dom;
import * as Fun from UnitJS.Fun;
import Metadata;
import Template;
import Remarkable;
return {
article: article,

View File

@ -1,3 +1,5 @@
import blog from Hablo.Config;
import Template;
import * as Async from UnitJS.Async;
import * as Cache from UnitJS.Cache;
import * as Dom from UnitJS.Dom;
@ -101,7 +103,7 @@ function renderAnswers(comments) {
]),
Dom.make('div', {
class: "metadata",
innerHTML: modules.template.render('metadata', {
innerHTML: Template.render('metadata', {
author: author(descendant.account.url, descendant.account.username),
date: date(descendant.created_at)
})
@ -148,7 +150,7 @@ function tags(key) {
function get(key) {
return Dom.make('div', {
class: "metadata",
innerHTML: modules.template.render('metadata', {
innerHTML: Template.render('metadata', {
author: author(key),
date: date(key),
tags: tags(key)

View File

@ -1,8 +1,9 @@
import {article, articlesList} from DomRenderer;
import blog from Hablo.Config;
import * as Async from UnitJS.Async;
import * as Cache from UnitJS.Cache;
import * as Dom from UnitJS.Dom;
import * as Fun from UnitJS.Fun;
import {article, articlesList} from DomRenderer;
var articles = Cache.make(function(key) {
var url = ["", blog.path.articlesPath, key + '.md'].join('/');

View File

@ -1,3 +1,5 @@
import blog from Hablo.Config;
return {
render: render
};