0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-27 03:03:09 +00:00

change legacy snippets to use named exports and move from dedent-tabs to dedent

This commit is contained in:
Víctor Losada Hernández
2026-01-23 17:38:16 +01:00
parent b72e5b9172
commit dbeff56ffa
27 changed files with 1073 additions and 3262 deletions

View File

@@ -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';

View File

@@ -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 '../../components/codeEditor/codeEditor.jsx';

View File

@@ -23,7 +23,7 @@ const ThemeSnippets = {
V3_Blank : V3_Blank,
};
import EditorThemes from 'build/homebrew/codeMirror/editorThemes.json';
import EditorThemes from './build/homebrew/codeMirror/editorThemes.json';
const execute = function(val, props){
if(_.isFunction(val)) return val(props);

View File

@@ -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';

View File

@@ -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)=>(

View File

@@ -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 = {

View File

@@ -1,4 +1,4 @@
import dedent from 'dedent-tabs';
import dedent from 'dedent';
const loginUrl = 'https://www.naturalcrit.com/login';