mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-29 16:28:10 +00:00
Merge branch 'master' into true20License
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`
|
||||
@@ -35,25 +35,25 @@ module.exports = {
|
||||
}}
|
||||
`;
|
||||
},
|
||||
cczero : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC0](https://creativecommons.org/publicdomain/zero/1.0/)\n\n`,
|
||||
ccby : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC BY 4.0](https://creativecommons.org/publicdomain/by/4.0/)\n\n`,
|
||||
ccbysa : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC BY-SA 4.0](https://creativecommons.org/publicdomain/by-sa/4.0/)\n\n`,
|
||||
ccbync : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC BY-NC 4.0](https://creativecommons.org/publicdomain/by-nc/4.0/)\n\n`,
|
||||
ccbyncsa : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC BY-NC-SA](https://creativecommons.org/publicdomain/by-nc-sa/4.0/)\n\n`,
|
||||
ccbynd : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC BY-ND 4.0](https://creativecommons.org/publicdomain/by-nd/4.0/)\n\n`,
|
||||
ccbyncnd : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC NY-NC-ND 4.0](https://creativecommons.org/publicdomain/by-nc-nd/4.0/)\n\n`,
|
||||
cczeroBadge : ``,
|
||||
ccbyBadge : ``,
|
||||
ccbysaBadge : ``,
|
||||
ccbyncBadge : ``,
|
||||
ccbyncsaBadge : ``,
|
||||
ccbyndBadge : ``,
|
||||
ccbyncndBadge : ``,
|
||||
shadowDarkNotice : `\[Product Name]\ is an independent product published under the Shadowdark RPG Third-Party License and is not affiliated with The Arcane Library, LLC. Shadowdark RPG © 2023 The Arcane Library, LLC.\n`,
|
||||
shadowDarkBlack : `{width:200px}`,
|
||||
shadowDarkWhite : `{width:200px}`,
|
||||
bladesDarkNotice : `This work is based on Blades in the Dark \(found at (http://www.bladesinthedark.com/)\), product of One Seven Design, developed and authored by John Harper, and licensed for our use under the Creative Commons Attribution 3.0 Unported license \(http://creativecommons.org/licenses/by/3.0/\).\n`,
|
||||
bladesDarkLogo : ``,
|
||||
cczero : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC0](https://creativecommons.org/publicdomain/zero/1.0/)\n\n`,
|
||||
ccby : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC BY 4.0](https://creativecommons.org/publicdomain/by/4.0/)\n\n`,
|
||||
ccbysa : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC BY-SA 4.0](https://creativecommons.org/publicdomain/by-sa/4.0/)\n\n`,
|
||||
ccbync : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC BY-NC 4.0](https://creativecommons.org/publicdomain/by-nc/4.0/)\n\n`,
|
||||
ccbyncsa : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC BY-NC-SA](https://creativecommons.org/publicdomain/by-nc-sa/4.0/)\n\n`,
|
||||
ccbynd : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC BY-ND 4.0](https://creativecommons.org/publicdomain/by-nd/4.0/)\n\n`,
|
||||
ccbyncnd : `<i class="far fa-copyright"></i> \<year\> This work is openly licensed via [CC NY-NC-ND 4.0](https://creativecommons.org/publicdomain/by-nc-nd/4.0/)\n\n`,
|
||||
cczeroBadge : ``,
|
||||
ccbyBadge : ``,
|
||||
ccbysaBadge : ``,
|
||||
ccbyncBadge : ``,
|
||||
ccbyncsaBadge : ``,
|
||||
ccbyndBadge : ``,
|
||||
ccbyncndBadge : ``,
|
||||
shadowDarkNotice : `\[Product Name]\ is an independent product published under the Shadowdark RPG Third-Party License and is not affiliated with The Arcane Library, LLC. Shadowdark RPG © 2023 The Arcane Library, LLC.\n`,
|
||||
shadowDarkBlack : `{width:200px}`,
|
||||
shadowDarkWhite : `{width:200px}`,
|
||||
bladesDarkNotice : `This work is based on Blades in the Dark \(found at (http://www.bladesinthedark.com/)\), product of One Seven Design, developed and authored by John Harper, and licensed for our use under the Creative Commons Attribution 3.0 Unported license \(http://creativecommons.org/licenses/by/3.0/\).\n`,
|
||||
bladesDarkLogo : ``,
|
||||
bladesDarkLogoAttribution : `*Blades in the Dark^tm^ is a trademark of One Seven Design. The Forged in the Dark Logo is © One Seven Design, and is used with permission.*`,
|
||||
iconsCompatibility : 'Compatibility with Icons requires Icons Superpowered Roleplaying from Ad Infinitum Adventures. Ad Infinitum Adventures does not guarantee compatibility, and does not endorse this product.',
|
||||
iconsTrademark : 'Icons Superpowered Roleplaying is a trademark of Steve Kenson, published exclusively by Ad Infinitum Adventures. The Icons Superpowered Roleplaying Compatibility Logo is a trademark of Ad Infinitum Adventures and is used under the Icons Superpowered Roleplaying Compatibility License.',
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -179,10 +179,10 @@ module.exports = {
|
||||
`;
|
||||
},
|
||||
// Verify Logo redistribution
|
||||
monteCookLogoDarkLarge : ``,
|
||||
monteCookLogoDarkSmall : ``,
|
||||
monteCookLogoLightLarge : ``,
|
||||
monteCookLogoLightSmall : ``,
|
||||
monteCookLogoDarkLarge : ``,
|
||||
monteCookLogoDarkSmall : ``,
|
||||
monteCookLogoLightLarge : ``,
|
||||
monteCookLogoLightSmall : ``,
|
||||
// Onyx Path Canis Minor - Verify logos and access
|
||||
onyxPathCanisMinorColophon : function () {
|
||||
return dedent`
|
||||
|
||||
@@ -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