mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-23 09:53:06 +00:00
fix module.exports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
module.exports = [
|
||||
export default [
|
||||
];
|
||||
|
||||
@@ -11,7 +11,7 @@ const dedent = require('dedent-tabs').default;
|
||||
|
||||
|
||||
|
||||
module.exports = [
|
||||
export default [
|
||||
{
|
||||
groupName : 'Style Editor',
|
||||
icon : 'fas fa-pencil-alt',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const dedent = require('dedent-tabs').default;
|
||||
|
||||
module.exports = function(classname){
|
||||
export default function(classname){
|
||||
|
||||
classname = _.sample(['archivist', 'fancyman', 'linguist', 'fletcher',
|
||||
'notary', 'berserker-typist', 'fishmongerer', 'manicurist', 'haberdasher', 'concierge']);
|
||||
|
||||
@@ -18,7 +18,7 @@ const classnames = [
|
||||
'Haberdasher', 'Manicurist', 'Netrunner', 'Weirkeeper'
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
non : function(snippetClasses){
|
||||
return dedent`
|
||||
{{${snippetClasses}
|
||||
|
||||
@@ -78,7 +78,7 @@ const coverText = [
|
||||
'Enter a world of wonder and danger, where you can find allies and enemies among the various races and factions that inhabit it. You can choose to join or oppose any of them, or forge your own path. The game world is alive and responsive to your actions.'
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
|
||||
front : function() {
|
||||
return dedent`
|
||||
|
||||
@@ -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']);
|
||||
|
||||
@@ -54,7 +54,7 @@ const itemNames = [
|
||||
'Staff of Endless Confetti',
|
||||
];
|
||||
|
||||
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'];
|
||||
|
||||
@@ -152,7 +152,7 @@ const genAction = function(){
|
||||
};
|
||||
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
|
||||
monster : function(classes, genLines){
|
||||
return dedent`
|
||||
|
||||
@@ -40,7 +40,7 @@ const books = [
|
||||
'Frost and Fury',
|
||||
|
||||
];
|
||||
module.exports = ()=>{
|
||||
export default ()=>{
|
||||
return `
|
||||
{{quote
|
||||
${_.sample(quotes)}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const dedent = require('dedent-tabs').default;
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
dwarvish : ()=>{
|
||||
return dedent `##### Dwarvish Runes: Sample Alphabet
|
||||
{{runeTable,wide,frame,font-family:Davek
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const _ = require('lodash');
|
||||
|
||||
module.exports = ()=>{
|
||||
export default ()=>{
|
||||
return `{{watercolor${_.random(1, 12)},top:20px,left:30px,width:300px,background-color:#BBAD82,opacity:80%}}\n\n`;
|
||||
};
|
||||
|
||||
@@ -13,7 +13,7 @@ const dedent = require('dedent-tabs').default;
|
||||
const TableOfContentsGen = require('./snippets/tableOfContents.gen.js');
|
||||
const indexGen = require('./snippets/index.gen.js');
|
||||
|
||||
module.exports = [
|
||||
export default [
|
||||
|
||||
{
|
||||
groupName : 'Text Editor',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Markdown from '../../../../shared/markdown.js';
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
createFooterFunc : function(headerSize=1){
|
||||
return (props)=>{
|
||||
const cursorPos = props.cursorPos;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const dedent = require('dedent-tabs').default;
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
center : ()=>{
|
||||
return dedent`
|
||||
{{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const dedent = require('dedent-tabs').default;
|
||||
|
||||
module.exports = ()=>{
|
||||
export default ()=>{
|
||||
return dedent`
|
||||
{{index,wide,columns:5;
|
||||
##### Index
|
||||
|
||||
@@ -5,7 +5,7 @@ const dedent = require('dedent');
|
||||
// Licenses in this file consist of one or two functions at most. If something is larger,
|
||||
// has more assets, or variations, break it out into a distinct file.
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
|
||||
mit : function () {
|
||||
return dedent`
|
||||
|
||||
@@ -3,7 +3,7 @@ const dedent = require('dedent');
|
||||
|
||||
// AELF License
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
aelfTitleNotice : function() {
|
||||
return `This work includes AELF Open Gaming Content, which may only be used under the terms of the AELF Open License version 1.0a. This product is not endorsed or reviewed by Mythmere Games LLC or any other contributor of AELF Open Gaming Content and does not represent the views of Mythmere Games LLC any other contributor.`;
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ const dedent = require('dedent');
|
||||
|
||||
// DriveThruRPG/OneBookShelf Community Content Programs
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
// Alligator Alley Entertainment Starforger's Guild
|
||||
alligatorAlleyEntertainmentStarforgersGuildColophon : function() {
|
||||
return dedent `
|
||||
|
||||
@@ -3,7 +3,7 @@ const dedent = require('dedent');
|
||||
|
||||
// GNU Licenses
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
|
||||
gpl3 : function () {
|
||||
return dedent`{{license,wide
|
||||
|
||||
@@ -3,7 +3,7 @@ const dedent = require('dedent');
|
||||
|
||||
// Mongoose Publishing Licenses
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
fairUseLong : function() {
|
||||
return `The Traveller, 2300AD and Twilight: 2000 games in all forms are owned by Mongoose Publishing. Copyright 1977 - 2025 Mongoose Publishing. Traveller is a registered trademark of Mongoose Publishing. Mongoose Publishing permits web sites and fanzines for this game, provided it contains this notice, that Mongoose Publishing is notified, and subject to a withdrawal of permission on 90 days notice. The contents of this site are for personal, non-commercial use only. Any use of Mongoose Publishing's copyrighted material or trademarks anywhere on this web site and its files should not be viewed as a challenge to those copyrights or trademarks. In addition, any program/articles/file on this site cannot be republished or distributed without the consent of the author who contributed it.\n\n`;
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* eslint-disable max-lines */
|
||||
const dedent = require('dedent');
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
ogl1a : function () {
|
||||
return dedent`
|
||||
{{license,wide
|
||||
|
||||
@@ -65,7 +65,7 @@ const getTOC = ()=>{
|
||||
return getMarkdown(headings, pageMap);
|
||||
};
|
||||
|
||||
module.exports = function(props){
|
||||
export default function(props){
|
||||
const TOC = getTOC();
|
||||
|
||||
return dedent`
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const _ = require('lodash');
|
||||
|
||||
module.exports = ()=>{
|
||||
export default ()=>{
|
||||
return `{{watercolor${_.random(1, 12)},top:20px,left:30px,width:300px,background-color:#BBAD82,opacity:80%}}\n\n`;
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
module.exports = [
|
||||
export default [
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user