mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 07:04:32 +02:00
Use new string_format.js lib for formatting...more to come!
This commit is contained in:
parent
8002bbe8fe
commit
bbba6cd214
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ const getModDatabasePath = require('../core/database.js').getModDatabasePath;
|
||||||
const ViewController = require('../core/view_controller.js').ViewController;
|
const ViewController = require('../core/view_controller.js').ViewController;
|
||||||
const theme = require('../core/theme.js');
|
const theme = require('../core/theme.js');
|
||||||
const ansi = require('../core/ansi_term.js');
|
const ansi = require('../core/ansi_term.js');
|
||||||
|
const stringFormat = require('../core/string_format.js');
|
||||||
|
|
||||||
// deps
|
// deps
|
||||||
const sqlite3 = require('sqlite3');
|
const sqlite3 = require('sqlite3');
|
||||||
|
@ -145,7 +146,7 @@ function OnelinerzModule(options) {
|
||||||
const tsFormat = config.timestampFormat || 'ddd h:mma';
|
const tsFormat = config.timestampFormat || 'ddd h:mma';
|
||||||
|
|
||||||
entriesView.setItems(entries.map( e => {
|
entriesView.setItems(entries.map( e => {
|
||||||
return listFormat.format( {
|
return stringFormat(listFormat, {
|
||||||
userId : e.user_id,
|
userId : e.user_id,
|
||||||
username : e.user_name,
|
username : e.user_name,
|
||||||
oneliner : e.oneliner,
|
oneliner : e.oneliner,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue