mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-23 02:57:52 +00:00
all imports
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
/* eslint-disable max-lines */
|
||||
|
||||
const MagicGen = require('./snippets/magic.gen.js');
|
||||
const ClassTableGen = require('./snippets/classtable.gen.js');
|
||||
const MonsterBlockGen = require('./snippets/monsterblock.gen.js');
|
||||
const scriptGen = require('./snippets/script.gen.js');
|
||||
const ClassFeatureGen = require('./snippets/classfeature.gen.js');
|
||||
const CoverPageGen = require('./snippets/coverpage.gen.js');
|
||||
const QuoteGen = require('./snippets/quote.gen.js');
|
||||
const dedent = require('dedent-tabs').default;
|
||||
|
||||
|
||||
import MagicGen from './snippets/magic.gen.js';
|
||||
import ClassTableGen from './snippets/classtable.gen.js';
|
||||
import MonsterBlockGen from './snippets/monsterblock.gen.js';
|
||||
import scriptGen from './snippets/script.gen.js';
|
||||
import ClassFeatureGen from './snippets/classfeature.gen.js';
|
||||
import CoverPageGen from './snippets/coverpage.gen.js';
|
||||
import QuoteGen from './snippets/quote.gen.js';
|
||||
import dedent from 'dedent-tabs';
|
||||
|
||||
export default [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const _ = require('lodash');
|
||||
const dedent = require('dedent-tabs').default;
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
|
||||
export default function(classname){
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const _ = require('lodash');
|
||||
const dedent = require('dedent-tabs').default;
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
|
||||
const features = [
|
||||
'Astrological Botany', 'Biochemical Sorcery', 'Civil Divination',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const _ = require('lodash');
|
||||
const dedent = require('dedent-tabs').default;
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
|
||||
const titles = [
|
||||
'The Burning Gallows', 'The Ring of Nenlast',
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
import _ from 'lodash';
|
||||
|
||||
const ClassFeatureGen = require('./classfeature.gen.js');
|
||||
|
||||
const ClassTableGen = require('./classtable.gen.js');
|
||||
import ClassFeatureGen from './classfeature.gen.js';
|
||||
import ClassTableGen from './classtable.gen.js';
|
||||
|
||||
export default function(){
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const _ = require('lodash');
|
||||
import _ from 'lodash';
|
||||
|
||||
const spellNames = [
|
||||
'Astral Rite of Acne',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const _ = require('lodash');
|
||||
const dedent = require('dedent-tabs').default;
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
|
||||
const genList = function(list, max){
|
||||
return _.sampleSize(list, _.random(0, max)).join(', ') || 'None';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const _ = require('lodash');
|
||||
import _ from 'lodash';
|
||||
|
||||
const quotes = [
|
||||
'The sword glinted in the dim light, its edges keen and deadly. As the adventurer reached for it, he couldn\'t help but feel a surge of excitement mixed with fear. This was no ordinary blade.',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const _ = require('lodash');
|
||||
const dedent = require('dedent-tabs').default;
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
|
||||
export default {
|
||||
dwarvish : ()=>{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const _ = require('lodash');
|
||||
import _ from 'lodash';
|
||||
|
||||
export default ()=>{
|
||||
return `{{watercolor${_.random(1, 12)},top:20px,left:30px,width:300px,background-color:#BBAD82,opacity:80%}}\n\n`;
|
||||
|
||||
@@ -1,17 +1,16 @@
|
||||
/* eslint-disable max-lines */
|
||||
|
||||
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');
|
||||
import dedent from 'dedent-tabs';
|
||||
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';
|
||||
|
||||
export default [
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const _ = require('lodash');
|
||||
const dedent = require('dedent-tabs').default;
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
|
||||
export default {
|
||||
center : ()=>{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const dedent = require('dedent-tabs').default;
|
||||
import dedent from 'dedent-tabs';
|
||||
|
||||
export default ()=>{
|
||||
return dedent`
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* 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,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable max-lines */
|
||||
const dedent = require('dedent');
|
||||
import dedent from 'dedent';
|
||||
|
||||
// AELF License
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable max-lines */
|
||||
const dedent = require('dedent');
|
||||
import dedent from 'dedent';
|
||||
|
||||
// DriveThruRPG/OneBookShelf Community Content Programs
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable max-lines */
|
||||
const dedent = require('dedent');
|
||||
import dedent from 'dedent';
|
||||
|
||||
// GNU Licenses
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable max-lines */
|
||||
const dedent = require('dedent');
|
||||
import dedent from 'dedent';
|
||||
|
||||
// Mongoose Publishing Licenses
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable max-lines */
|
||||
const dedent = require('dedent');
|
||||
import dedent from 'dedent';
|
||||
|
||||
export default {
|
||||
ogl1a : function () {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const dedent = require('dedent-tabs').default;
|
||||
import dedent from 'dedent-tabs';
|
||||
|
||||
// Map each actual page to its footer label, accounting for skips or numbering resets
|
||||
const mapPages = (pages)=>{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const _ = require('lodash');
|
||||
import _ from 'lodash';
|
||||
|
||||
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