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 Dom from UnitJS.Dom;
import * as Fun from UnitJS.Fun; import * as Fun from UnitJS.Fun;
import Metadata;
import Template;
import Remarkable;
return { return {
article: article, article: article,

View file

@ -1,3 +1,5 @@
import blog from Hablo.Config;
import Template;
import * as Async from UnitJS.Async; import * as Async from UnitJS.Async;
import * as Cache from UnitJS.Cache; import * as Cache from UnitJS.Cache;
import * as Dom from UnitJS.Dom; import * as Dom from UnitJS.Dom;
@ -101,7 +103,7 @@ function renderAnswers(comments) {
]), ]),
Dom.make('div', { Dom.make('div', {
class: "metadata", class: "metadata",
innerHTML: modules.template.render('metadata', { innerHTML: Template.render('metadata', {
author: author(descendant.account.url, descendant.account.username), author: author(descendant.account.url, descendant.account.username),
date: date(descendant.created_at) date: date(descendant.created_at)
}) })
@ -148,7 +150,7 @@ function tags(key) {
function get(key) { function get(key) {
return Dom.make('div', { return Dom.make('div', {
class: "metadata", class: "metadata",
innerHTML: modules.template.render('metadata', { innerHTML: Template.render('metadata', {
author: author(key), author: author(key),
date: date(key), date: date(key),
tags: tags(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 Async from UnitJS.Async;
import * as Cache from UnitJS.Cache; import * as Cache from UnitJS.Cache;
import * as Dom from UnitJS.Dom; import * as Dom from UnitJS.Dom;
import * as Fun from UnitJS.Fun; import * as Fun from UnitJS.Fun;
import {article, articlesList} from DomRenderer;
var articles = Cache.make(function(key) { var articles = Cache.make(function(key) {
var url = ["", blog.path.articlesPath, key + '.md'].join('/'); var url = ["", blog.path.articlesPath, key + '.md'].join('/');

View file

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