mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-04-01 03:08:11 +00:00
Merge branch 'master' into moveSnippetImages
This commit is contained in:
@@ -1,19 +1,18 @@
|
||||
/* eslint-disable max-lines */
|
||||
import dedent from 'dedent';
|
||||
import WatercolorGen from './snippets/watercolor.gen.js';
|
||||
import ImageMaskGen from './snippets/imageMask.gen.js';
|
||||
import FooterGen from './snippets/footer.gen.js';
|
||||
import LicenseGenWotC from './snippets/licenseWotC.gen.js';
|
||||
import LicenseGenGNU from './snippets/licenseGNU.gen.js';
|
||||
import LicenseGen from './snippets/license.gen.js';
|
||||
import LicenseGenAelf from './snippets/licenseAELF.js';
|
||||
import LicenseDTTRPGGCC from './snippets/licenseDTRPGCC.gen.js';
|
||||
import LicenseMongoosePublishing from './snippets/licenseMongoose.gen.js';
|
||||
import TableOfContentsGen from './snippets/tableOfContents.gen.js';
|
||||
import indexGen from './snippets/index.gen.js';
|
||||
|
||||
const WatercolorGen = require('./snippets/watercolor.gen.js');
|
||||
const ImageMaskGen = require('./snippets/imageMask.gen.js');
|
||||
const FooterGen = require('./snippets/footer.gen.js');
|
||||
const LicenseGenWotC = require('./snippets/licenseWotC.gen.js');
|
||||
const LicenseGenGNU = require('./snippets/licenseGNU.gen.js');
|
||||
const LicenseGen = require('./snippets/license.gen.js');
|
||||
const LicenseGenAelf = require('./snippets/licenseAELF.js');
|
||||
const LicenseDTTRPGGCC = require('./snippets/licenseDTRPGCC.gen.js');
|
||||
const LicenseMongoosePublishing = require('./snippets/licenseMongoose.gen.js');
|
||||
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',
|
||||
@@ -209,7 +208,7 @@ module.exports = [
|
||||
view : 'text',
|
||||
snippets : [
|
||||
{
|
||||
name : 'AELF',
|
||||
name : 'AELF',
|
||||
subsnippets : [
|
||||
{
|
||||
name : 'Title Page Declaration',
|
||||
@@ -329,51 +328,51 @@ module.exports = [
|
||||
]
|
||||
},
|
||||
{
|
||||
name : 'DTRPG Community Content',
|
||||
incon : 'fab fa-dtrpg',
|
||||
name : 'DTRPG Community Content',
|
||||
incon : 'fab fa-dtrpg',
|
||||
subsnippets : [
|
||||
{
|
||||
name : "Chronicle System Guild Colophon",
|
||||
name : 'Chronicle System Guild Colophon',
|
||||
gen : LicenseDTTRPGGCC.greenRoninChronicleSystemGuildColophon,
|
||||
},
|
||||
|
||||
{
|
||||
name : 'Green Ronin\'s Age Creator\'s Alliance',
|
||||
name : 'Green Ronin\'s Age Creator\'s Alliance',
|
||||
subsnippets : [
|
||||
{
|
||||
name : "Required Text",
|
||||
name : 'Required Text',
|
||||
subsnippets : [
|
||||
{
|
||||
name : "Colophon",
|
||||
name : 'Colophon',
|
||||
gen : LicenseDTTRPGGCC.greenRoninAgeCreatorsAllianceColophon,
|
||||
},
|
||||
|
||||
{
|
||||
name : "Cover",
|
||||
name : 'Cover',
|
||||
gen : LicenseDTTRPGGCC.greenRoninAgeCreatorsAllianceCover,
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name : "Logos",
|
||||
name : 'Logos',
|
||||
subsnippets : [
|
||||
{
|
||||
name : "Age",
|
||||
name : 'Age',
|
||||
gen : LicenseDTTRPGGCC.greenRoninAgeCreatorsAllianceLogo,
|
||||
},
|
||||
|
||||
{
|
||||
name : "Blue Rose",
|
||||
name : 'Blue Rose',
|
||||
gen : LicenseDTTRPGGCC.greenRoninAgeCreatorsAllianceBlueRoseLogo,
|
||||
},
|
||||
|
||||
{
|
||||
name : "Fantasy Age Compatible",
|
||||
name : 'Fantasy Age Compatible',
|
||||
gen : LicenseDTTRPGGCC.greenRoninAgeCreatorsAllianceFantasyAgeCompatible,
|
||||
},
|
||||
|
||||
{
|
||||
name : "Modern AGE Compatible",
|
||||
name : 'Modern AGE Compatible',
|
||||
gen : LicenseDTTRPGGCC.greenRoninAgeCreatorsAllianceModernAGECompatible,
|
||||
},
|
||||
]
|
||||
@@ -382,30 +381,30 @@ module.exports = [
|
||||
},
|
||||
|
||||
{
|
||||
name : "Hero Kid\'s Creators Guild",
|
||||
name : 'Hero Kid\'s Creators Guild',
|
||||
subsnippets : [
|
||||
|
||||
{
|
||||
name: "Required Text",
|
||||
name : 'Required Text',
|
||||
subsnippets : [
|
||||
|
||||
|
||||
{
|
||||
name : "heroForgeHeroKidsCreatorsGuildColophon",
|
||||
name : 'heroForgeHeroKidsCreatorsGuildColophon',
|
||||
gen : LicenseDTTRPGGCC.heroForgeHeroKidsCreatorsGuildColophon,
|
||||
},
|
||||
|
||||
{
|
||||
name : "heroForgeHeroKidsCreatorsGuildSuperKidsColophon",
|
||||
name : 'heroForgeHeroKidsCreatorsGuildSuperKidsColophon',
|
||||
gen : LicenseDTTRPGGCC.heroForgeHeroKidsCreatorsGuildSuperKidsColophon,
|
||||
},
|
||||
|
||||
{
|
||||
name : "heroForgeHeroKidsCreatorsGuildCover",
|
||||
name : 'heroForgeHeroKidsCreatorsGuildCover',
|
||||
gen : LicenseDTTRPGGCC.heroForgeHeroKidsCreatorsGuildCover,
|
||||
},
|
||||
|
||||
{
|
||||
name : "heroForgeHeroKidsCreatorsGuildSuperKidsCover",
|
||||
name : 'heroForgeHeroKidsCreatorsGuildSuperKidsCover',
|
||||
gen : LicenseDTTRPGGCC.heroForgeHeroKidsCreatorsGuildSuperKidsCover,
|
||||
},
|
||||
]
|
||||
@@ -414,33 +413,33 @@ module.exports = [
|
||||
},
|
||||
|
||||
{
|
||||
name : "Travellers' Aid Society",
|
||||
name : 'Travellers\' Aid Society',
|
||||
subsnippets : [
|
||||
{
|
||||
name : "Legal Statement",
|
||||
name : 'Legal Statement',
|
||||
gen : LicenseMongoosePublishing.TASLegal,
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
name : "Super-Powered by M&M",
|
||||
name : 'Super-Powered by M&M',
|
||||
subsnippets : [
|
||||
{
|
||||
name : "Required Text",
|
||||
name : 'Required Text',
|
||||
subsnippets : [
|
||||
{
|
||||
name : "Colophon",
|
||||
name : 'Colophon',
|
||||
gen : LicenseDTTRPGGCC.greenRoninSuperPoweredMMColophon,
|
||||
},
|
||||
|
||||
{
|
||||
name : "Cover",
|
||||
name : 'Cover',
|
||||
gen : LicenseDTTRPGGCC.greenRoninSuperPoweredMMCover,
|
||||
},
|
||||
|
||||
{
|
||||
name : "Section 15",
|
||||
name : 'Section 15',
|
||||
gen : LicenseDTTRPGGCC.greenRoninSuperPoweredMMSection15,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -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;
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent';
|
||||
|
||||
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;
|
||||
import dedent from 'dedent';
|
||||
|
||||
module.exports = ()=>{
|
||||
export default ()=>{
|
||||
return dedent`
|
||||
{{index,wide,columns:5;
|
||||
##### Index
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/* eslint-disable max-lines */
|
||||
const dedent = require('dedent');
|
||||
|
||||
import dedent from 'dedent';
|
||||
|
||||
// Small and one-off licenses
|
||||
// Licenses in this file consist of one or two functions at most. If something is larger,
|
||||
// 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`
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/* eslint-disable max-lines */
|
||||
const dedent = require('dedent');
|
||||
|
||||
import dedent from '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.`;
|
||||
},
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/* eslint-disable max-lines */
|
||||
const dedent = require('dedent');
|
||||
|
||||
import dedent from 'dedent';
|
||||
|
||||
// DriveThruRPG/OneBookShelf Community Content Programs
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
// Alligator Alley Entertainment Starforger's Guild
|
||||
alligatorAlleyEntertainmentStarforgersGuildColophon : function() {
|
||||
return dedent `
|
||||
@@ -168,8 +168,8 @@ module.exports = {
|
||||
`;
|
||||
},
|
||||
// Monte Cook's Cypher License
|
||||
monteCookCypherCover : `Requires the Cypher System Rulebook from Monte Cook Games. Distributed through the Cypher System CreatorTM at DriveThruRPG.`,
|
||||
monteCookCypherColophon : function() {
|
||||
monteCookCypherCover : `Requires the Cypher System Rulebook from Monte Cook Games. Distributed through the Cypher System CreatorTM at DriveThruRPG.`,
|
||||
monteCookCypherColophon : function() {
|
||||
return dedent`
|
||||
This product was created under license. CYPHER SYSTEM and its logo, and CYPHER SYSTEM CREATOR and its logo, are trademarks of Monte Cook Games, LLC in the U.S.A. and other countries. All Monte Cook Games characters and character names, and the distinctive likenesses thereof, are trademarks of Monte Cook Games, LLC. [](www.montecookgames.com)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/* eslint-disable max-lines */
|
||||
const dedent = require('dedent');
|
||||
import dedent from 'dedent';
|
||||
|
||||
// GNU Licenses
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
|
||||
gpl3 : function () {
|
||||
return dedent`{{license,wide
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/* eslint-disable max-lines */
|
||||
const dedent = require('dedent');
|
||||
|
||||
import dedent from '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 = {
|
||||
import dedent from 'dedent';
|
||||
|
||||
export default {
|
||||
ogl1a : function () {
|
||||
return dedent`
|
||||
{{license,wide
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const dedent = require('dedent-tabs').default;
|
||||
import dedent from 'dedent';
|
||||
|
||||
// Map each actual page to its footer label, accounting for skips or numbering resets
|
||||
const mapPages = (pages)=>{
|
||||
@@ -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');
|
||||
import _ from '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