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:
@@ -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`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user