0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-27 07:23:09 +00:00

fix module.exports

This commit is contained in:
Víctor Losada Hernández
2026-01-20 19:56:37 +01:00
parent bfe2c11548
commit 0d6c3c7e33
90 changed files with 148 additions and 194 deletions

View File

@@ -8,7 +8,7 @@ const CoverPageGen = require('./snippets/coverpage.gen.js');
const TableOfContentsGen = require('./snippets/tableOfContents.gen.js');
const dedent = require('dedent-tabs').default;
module.exports = [
export default [
{
groupName : 'Text Editor',

View File

@@ -1,6 +1,6 @@
const _ = require('lodash');
module.exports = function(classname){
export default function(classname){
classname = _.sample(['archivist', 'fancyman', 'linguist', 'fletcher',
'notary', 'berserker-typist', 'fishmongerer', 'manicurist', 'haberdasher', 'concierge']);

View File

@@ -50,7 +50,7 @@ const getFeature = (level)=>{
return res.join(', ');
};
module.exports = {
export default {
full : function(){
const classname = _.sample(classnames);

View File

@@ -98,7 +98,7 @@ const subtitles = [
];
module.exports = ()=>{
export default ()=>{
return `<style>
.phb#p1{ text-align:center; }
.phb#p1:after{ display:none; }

View File

@@ -4,7 +4,7 @@ const ClassFeatureGen = require('./classfeature.gen.js');
const ClassTableGen = require('./classtable.gen.js');
module.exports = function(){
export default function(){
const classname = _.sample(['Archivist', 'Fancyman', 'Linguist', 'Fletcher',
'Notary', 'Berserker-Typist', 'Fishmongerer', 'Manicurist', 'Haberdasher', 'Concierge']);

View File

@@ -48,7 +48,7 @@ const spellNames = [
'Ultimate Ritual of Mouthwash',
];
module.exports = {
export default {
spellList : function(){
const levels = ['Cantrips (0 Level)', '1st Level', '2nd Level', '3rd Level', '4th Level', '5th Level', '6th Level', '7th Level', '8th Level', '9th Level'];

View File

@@ -137,7 +137,7 @@ const genAction = function(){
};
module.exports = {
export default {
full : function(){
return `${[

View File

@@ -47,7 +47,7 @@ const getTOC = (pages)=>{
return res;
};
module.exports = function(props){
export default function(props){
const pages = props.brew.text.split('\\page');
const TOC = getTOC(pages);
const markdown = _.reduce(TOC, (r, g1, idx1)=>{