Skip to content

Commit be6ea6f

Browse files
committed
Update environment variables, verbiage
1 parent 289b4ec commit be6ea6f

File tree

8 files changed

+11333
-7810
lines changed

8 files changed

+11333
-7810
lines changed

.clasp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"rootDir": "dist",
3-
"scriptId": "1EBKJNiPs_XxntcBHxMKJgfBr7089AHhT3boz7_Lkc6AD0hjsQavkIjxz",
3+
"scriptId": "1er2sQ1MwOPwi5JtnqF1flz0HIsQ27iy0nXADyG3s8UGKgS1r79b8TcGn",
44
"parentId": [
55
"1UAVn7sP1pTutyOM2i95jxQz6sjVr2ZrxhG82uLIdd70"
66
]

.yarn/install-state.gz

1.03 MB
Binary file not shown.

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

src/client/sidebar/components/Sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ const Sidebar = () => {
337337
gap: '20px',
338338
marginTop: '20px',
339339
height: 'calc(100vh - 520px)',
340-
overflowY: 'auto',
340+
overflowY: 'scroll',
341341
}}
342342
>
343343
{chartImagesState === 'loading' &&
@@ -411,7 +411,7 @@ const Sidebar = () => {
411411
>
412412
<Typography paragraph textAlign="center" mb={0}>
413413
<a
414-
href="https://mermaidchart.com"
414+
href="https://www.mermaidchart.com"
415415
target="_blank"
416416
rel="noreferrer"
417417
style={{ color: '#883a79' }}

src/client/sidebar/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createRoot } from 'react-dom/client';
2-
import Sidebar from './components/sidebar';
2+
import Sidebar from './components/Sidebar';
33
import './styles.css';
44

55
const container = document.getElementById('index');

src/config/urls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const devUrl = 'https://test.mermaidchart.com';
2-
export const prodUrl = 'https://mermaidchart.com';
2+
export const prodUrl = 'https://www.mermaidchart.com';
33
export const baseURL = import.meta.env.PROD ? prodUrl : devUrl;

src/server/ui.js

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function openEditDiagramDialog() {
5454
const selection = doc.getSelection();
5555

5656
if (!selection) {
57-
DocumentApp.getUi().alert('No selection found. Please select an image.');
57+
DocumentApp.getUi().alert('No diagram selected. Please select a diagram.');
5858
return;
5959
}
6060

@@ -71,7 +71,7 @@ export function openEditDiagramDialog() {
7171
.setWidth(1366)
7272
.setHeight(768);
7373

74-
DocumentApp.getUi().showModalDialog(html, 'Edit Diagram');
74+
DocumentApp.getUi().showModalDialog(html, 'Edit diagram');
7575
}
7676

7777
export function openPreviewDiagramDialog() {
@@ -88,7 +88,7 @@ export function openPreviewDiagramDialog() {
8888
.setWidth(1366)
8989
.setHeight(768);
9090

91-
DocumentApp.getUi().showModalDialog(html, 'Preview Diagram');
91+
DocumentApp.getUi().showModalDialog(html, 'Preview diagram');
9292
}
9393

9494
export function openEditDiagramDialogWithUrl() {
@@ -105,7 +105,7 @@ export function openEditDiagramDialogWithUrl() {
105105
.setWidth(1366)
106106
.setHeight(768);
107107

108-
DocumentApp.getUi().showModalDialog(html, 'Edit Diagram');
108+
DocumentApp.getUi().showModalDialog(html, 'Edit diagram');
109109
}
110110

111111
export function openSelectDiagramDialog() {
@@ -121,26 +121,22 @@ export function openSelectDiagramDialog() {
121121
)
122122
.setWidth(1366)
123123
.setHeight(768);
124-
DocumentApp.getUi().showModalDialog(html, 'Select Diagram');
124+
DocumentApp.getUi().showModalDialog(html, 'Select diagram');
125125
}
126126

127127
export function openAboutDialog() {
128128
var ui = DocumentApp.getUi();
129129

130-
var text =
131-
'PlantUML Gizmo was written for use in the OO Analysis and Design courses at École de technologie supérieure, and has been used by Google Engineers on Android and Google Pay.\n\n' +
132-
'It uses JavaScript API Client Code described at http://plantuml.sourceforge.net/codejavascript.html as well as inflating routines at http://www.planttext.com/javascript/jquery-plantuml/plantuml.js\n\n' +
133-
'Find me on twitter @thefuhrmanator. Version 15 (2019-11-22)';
130+
var text = `Mermaid Chart is building the next generation of smart diagramming for enterprise teams. Easily create and collaborate on self-designing diagrams using markdown style text and the Mermaid Visual Editor.
131+
Skip the rough draft of your diagrams using Mermaid AI and share your professional diagrams easily with colleagues. Say goodbye to boring documentation and hello to Mermaid Chart!`;
134132

135133
ui.alert('About', text, ui.ButtonSet.OK);
136134
}
137135

138136
export function openHelpDialog() {
139137
var ui = DocumentApp.getUi();
140138

141-
var text = `
142-
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
143-
`;
139+
var text = `Link your Mermaid Chart account to Google Docs and create, insert, or edit your Mermaid Chart diagrams directly in Google Docs to get started. If you have questions about how to use Mermaid Chart, please review the documentation on our website or our YouTube channel. Please contact [email protected] for further customer support`;
144140

145141
ui.alert('Help', text, ui.ButtonSet.OK);
146142
}
@@ -300,7 +296,7 @@ export function readSelectedImageMetadata() {
300296
const selection = doc.getSelection();
301297

302298
if (!selection) {
303-
DocumentApp.getUi().alert('No selection found. Please select an image.');
299+
DocumentApp.getUi().alert('No diagram selected. Please select a diagram.');
304300
return null;
305301
}
306302

@@ -316,7 +312,7 @@ export function readSelectedImageMetadata() {
316312
}
317313

318314
if (!image) {
319-
DocumentApp.getUi().alert('Please select an image.');
315+
DocumentApp.getUi().alert('Please select a diagram.');
320316
return null;
321317
}
322318

@@ -341,7 +337,7 @@ export function replaceSelectedImageWithBase64AndSize(
341337
const selection = doc.getSelection();
342338

343339
if (!selection) {
344-
DocumentApp.getUi().alert('No selection found. Please select an image.');
340+
DocumentApp.getUi().alert('No diagram selected. Please select a diagram.');
345341
return;
346342
}
347343

@@ -360,7 +356,7 @@ export function replaceSelectedImageWithBase64AndSize(
360356
}
361357

362358
if (!imageParent || imageChildIndex === null) {
363-
DocumentApp.getUi().alert('Please select an image.');
359+
DocumentApp.getUi().alert('Please select a diagram.');
364360
return;
365361
}
366362

0 commit comments

Comments
 (0)