diff --git a/src/app/components/ModalPermalink.jsx b/src/app/components/ModalPermalink.jsx
index 96d611e6..975e97bc 100644
--- a/src/app/components/ModalPermalink.jsx
+++ b/src/app/components/ModalPermalink.jsx
@@ -34,6 +34,18 @@ export default class ModalPermalink extends TranslatedComponent {
);
}
+ /**
+ * Copy the shortened URL to the clipboard
+ * @param {Event} e Click event
+ * @return {void}
+ */
+ copyShortLink() {
+ let copyText = document.getElementById("shortenedUrl");
+ // Copy the text inside the shortendUrl input to the clipboard
+ copyText.select();
+ document.execCommand("copy");
+ }
+
/**
* Render the modal
* @return {React.Component} Modal Content
@@ -42,15 +54,17 @@ export default class ModalPermalink extends TranslatedComponent {
let translate = this.context.language.translate;
return
e.stopPropagation() }>
-
{translate('permalink')}
+
{translate('permalink')}
{translate('URL')}
e.target.select() }/>
{translate('shortened')}
- e.target.select() }/>
+ e.target.select() }/>
-
s.orbis.zone is the new URL shortener domain, old eddp.co urls are considered end of life and could go down at any moment. Sorry for any inconvenience.
+
+
s.orbis.zone is the URL shortener domain. These links should persist indefinitely going forward. If for some reason there is a problem with the link shortening process, please report it in the EDCD Discord Server.
;
}
diff --git a/src/app/i18n/en.json b/src/app/i18n/en.json
index eef0c6ff..d3dba4ba 100644
--- a/src/app/i18n/en.json
+++ b/src/app/i18n/en.json
@@ -26,7 +26,9 @@
"PHRASE_NO_SPECIAL": "No experimental effect",
"PHRASE_SHOPPING_LIST": "Stations that sell this build",
"PHRASE_SHOPPING_MATS": "Materials needed for this build",
- "PHRASE_DIFFERENT_ROLLS": "NOTE: ED Engineer and/or EDOMH likely have their own 'rolls' configuration, so material requirements may differ!",
+ "PHRASE_DIFFERENT_ROLLS": "Material requirements will differ, based on the number of rolls per grade, per module.",
+ "PHRASE_FOR_FINER_CONTROL": "For finer control over rolls per grade/module, a more accurate list of required mats and help in finding those mats, please consider using the export options below to ED Odyssey Materials Helper, or ED Engineer, or use the Crafting Lists feature on inara.cz.",
+ "PHRASE_ALL_MODULES_ALL_ROLLS": "The list below, assumes standard to G5 Engineered (approx 80% - 90%) with the rolls above, for ALL engineered modules in the build. You can adjust the number of rolls above for each grade, however it will still apply to all engineered modules in the build.",
"PHRASE_REFIT_SHOPPING_LIST": "Stations that sell required modules",
"PHRASE_TOTAL_EFFECTIVE_SHIELD": "Total amount of damage that can be taken from each damage type, if using all shield cells",
"PHRASE_TIME_TO_LOSE_SHIELDS": "Shields will hold for",
@@ -82,8 +84,7 @@
"TT_SUMMARY_UNLADEN_TOTAL_JUMP": "Farthest possible range with no cargo, a full fuel tank, and jumping as far as possible each time",
"TT_SUMMARY_LADEN_TOTAL_JUMP": "Farthest possible range with full cargo, a full fuel tank, and jumping as far as possible each time",
"HELP_MODIFICATIONS_MENU": "Click on a number to enter a new value, or drag along the bar for small changes",
- "PHRASE_FAIL_EDENGINEER": "Failed to send to EDEngineer (Launch EDEngineer and make sure the API is started then refresh the page.)",
- "PHRASE_ENSURE_EDOMH": "Ensure EDO Material Helper is installed and registered to handle edomh:// urls, else this button will do nothing!",
+ "PHRASE_ENSURE_EDOMH": "Ensure ED Odyssey Material Helper is installed and registered to handle edomh:// urls, else this button will do nothing!",
"PHRASE_FIREFOX_EDENGINEER": "Sending to EDEngineer is not compatible with Firefox's security settings. Please try again with Chrome.",
"PHRASE_FAILED_TO_FIND_EDENGINEER": "Failed to find ED Engineer API. Please ensure it is running and try again.",
"MISSING_MODULES": "Missing Modules",
diff --git a/src/app/stores/Persist.js b/src/app/stores/Persist.js
index 4ed0680d..6f3daa3f 100644
--- a/src/app/stores/Persist.js
+++ b/src/app/stores/Persist.js
@@ -108,9 +108,9 @@ export class Persist extends EventEmitter {
this.matsPerGrade = matsPerGrade || {
1: 2,
2: 2,
- 3: 4,
+ 3: 3,
4: 4,
- 5: 10
+ 5: 5
};
this.cmdrName = cmdrName || { selected: '', cmdrs: [] };
this.tooltipsEnabled = tips === null ? true : tips;
diff --git a/src/less/modal.less b/src/less/modal.less
index 07c0a74d..c5699920 100755
--- a/src/less/modal.less
+++ b/src/less/modal.less
@@ -42,32 +42,66 @@
margin: 0;
}
+ h4 {
+ text-transform: uppercase;
+ font-family: @fStandard;
+ font-weight: normal;
+ font-size: 1em;
+ margin: 1em;
+ color: @warning;
+ }
+
p {
- clear: left;
- padding: 30, 0, 0, 0;
+ margin: 1em;
+ text-wrap: pretty;
}
button {
- margin: 100px, 0;
+ clear: bottom;
+ margin: 5px;
}
-}
-textarea {
- background: @primary-bg;
- border: none;
- outline: none;
- color: @primary-disabled;
-
- &.json {
- display:block;
- width:100%;
- min-height: 10em;
- resize: vertical;
- user-select: text;
- margin:2em 0;
+ hr {
+ clear: both;
+ margin: 15px, 10px, 15px, 10px;
+ padding: top, 5;
}
-}
-.dismiss {
- background-color: @primary-bg;
-}
+ select {
+ clear: bottom;
+ margin: 10px;
+ width: 50%;
+ }
+
+ label {
+ clear: bottom;
+ margin: 20px;
+ color: @primary;
+ }
+
+ .groll {
+ width: 6%;
+ margin: 5px;
+ text-align: center;
+ }
+
+ textarea {
+ background: @primary-bg;
+ border: none;
+ outline: none;
+ color: @primary-disabled;
+
+ &.json {
+ display:block;
+ width:100%;
+ min-height: 10em;
+ resize: vertical;
+ user-select: text;
+ margin:1em 0;
+ }
+ }
+
+ .dismiss {
+ background-color: @primary-bg;
+ }
+}
\ No newline at end of file