mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-27 16:03:07 +00:00
dedent-tabs to dedent
This commit is contained in:
@@ -12,7 +12,7 @@ import ToolBar from './toolBar/toolBar.jsx';
|
||||
import RenderWarnings from 'client/components/renderWarnings/renderWarnings.jsx';
|
||||
import NotificationPopup from './notificationPopup/notificationPopup.jsx';
|
||||
import Frame from 'react-frame-component';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
import { printCurrentBrew } from '../../../shared/helpers.js';
|
||||
|
||||
import HeaderNav from './headerNav/headerNav.jsx';
|
||||
|
||||
@@ -3,7 +3,7 @@ import './editor.less';
|
||||
import React from 'react';
|
||||
import createReactClass from 'create-react-class';
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
import Markdown from '../../../shared/markdown.js';
|
||||
|
||||
import CodeEditor from 'client/components/codeEditor/codeEditor.jsx';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
|
||||
const getShareId = (brew)=>(
|
||||
|
||||
@@ -5,7 +5,7 @@ import request from '../../../../utils/request-middleware.js';
|
||||
|
||||
import googleDriveIcon from '../../../../googleDrive.svg';
|
||||
import homebreweryIcon from '../../../../thumbnail.svg';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
const BrewItem = ({
|
||||
brew = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
const loginUrl = 'https://www.naturalcrit.com/login';
|
||||
|
||||
|
||||
17
package-lock.json
generated
17
package-lock.json
generated
@@ -25,7 +25,7 @@
|
||||
"core-js": "^3.47.0",
|
||||
"cors": "^2.8.5",
|
||||
"create-react-class": "^15.7.0",
|
||||
"dedent-tabs": "^0.10.3",
|
||||
"dedent": "^1.7.1",
|
||||
"expr-eval": "^2.0.2",
|
||||
"express": "^5.1.0",
|
||||
"express-async-handler": "^1.2.0",
|
||||
@@ -10550,21 +10550,6 @@
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/mongoose/node_modules/gcp-metadata": {
|
||||
"version": "5.3.0",
|
||||
"resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-5.3.0.tgz",
|
||||
"integrity": "sha512-FNTkdNEnBdlqF2oatizolQqNANMrcqJt6AAYt99B3y1aLLC8Hc5IOBb+ZnnzllodEEf6xMBp6wRcBbc16fa65w==",
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"gaxios": "^5.0.0",
|
||||
"json-bigint": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/mongoose/node_modules/https-proxy-agent": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
"core-js": "^3.47.0",
|
||||
"cors": "^2.8.5",
|
||||
"create-react-class": "^15.7.0",
|
||||
"dedent-tabs": "^0.10.3",
|
||||
"dedent": "^1.7.1",
|
||||
"expr-eval": "^2.0.2",
|
||||
"express": "^5.1.0",
|
||||
"express-async-handler": "^1.2.0",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Markdown from 'markdown.js';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
// Marked.js adds line returns after closing tags on some default tokens.
|
||||
// This removes those line returns for comparison sake.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable max-lines */
|
||||
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
import Markdown from 'markdown.js';
|
||||
|
||||
// Marked.js adds line returns after closing tags on some default tokens.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable max-lines */
|
||||
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
import Markdown from 'markdown.js';
|
||||
|
||||
// Marked.js adds line returns after closing tags on some default tokens.
|
||||
|
||||
@@ -6,7 +6,7 @@ import MonsterBlockGen from './snippets/monsterblock.gen.js';
|
||||
import ClassFeatureGen from './snippets/classfeature.gen.js';
|
||||
import CoverPageGen from './snippets/coverpage.gen.js';
|
||||
import TableOfContentsGen from './snippets/tableOfContents.gen.js';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
export default [
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ 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';
|
||||
import dedent from 'dedent';
|
||||
|
||||
export default [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
export default function(classname){
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
const features = [
|
||||
'Astrological Botany', 'Biochemical Sorcery', 'Civil Divination',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
const titles = [
|
||||
'The Burning Gallows', 'The Ring of Nenlast',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
const genList = function(list, max){
|
||||
return _.sampleSize(list, _.random(0, max)).join(', ') || 'None';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
export default {
|
||||
dwarvish : ()=>{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable max-lines */
|
||||
import dedent from 'dedent-tabs';
|
||||
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';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import _ from 'lodash';
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
export default {
|
||||
center : ()=>{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
export default ()=>{
|
||||
return dedent`
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import dedent from 'dedent-tabs';
|
||||
import dedent from 'dedent';
|
||||
|
||||
// Map each actual page to its footer label, accounting for skips or numbering resets
|
||||
const mapPages = (pages)=>{
|
||||
|
||||
Reference in New Issue
Block a user