diff --git a/.github/workflows/check-for-generated-files.yml b/.github/workflows/check-for-generated-files.yml new file mode 100644 index 000000000..233f8eda5 --- /dev/null +++ b/.github/workflows/check-for-generated-files.yml @@ -0,0 +1,85 @@ +name: Check for Generated Files + +on: + # Triggers the workflow on push or pull request events but only for the dev branch + pull_request: + branches: [dev] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + checkFiles: + name: Check Files + runs-on: ubuntu-latest + steps: + - name: Checkout files + uses: actions/checkout@v2 + + - name: Check bundle files + id: changed-bundle-files + uses: tj-actions/changed-files@v18.4 + with: + files: | + dist/* + index.html + main.bundle.js + main.bundle.js.map + + - name: Check documentation changes + id: changed-markdown-doc-files + uses: tj-actions/changed-files@v18.4 + with: + files: | + markdown/*.md + + - name: Warn when bundle files were changed + id: warn-bundles-changed + if: steps.changed-bundle-files.outputs.any_changed == 'true' + run: | + echo "One or more files in the bundle files were changed." >> warnings.txt + + - name: Warn when documentation markdown files were changed + id: warn-markdown-changed + if: steps.changed-markdown-doc-files.outputs.any_changed == 'true' + run: | + echo "One or more files in the markdown documentation were changed." >> warnings.txt + + - name: Print Warnings + id: get-warnings + run: | + if [ -f warnings.txt ] + then + echo "::set-output name=has_warnings::true" + else + echo "::set-output name=has_warnings::false" + touch warnings.txt + fi + + - name: Get Comment Body + id: get-comment-body + if : steps.get-warnings.outputs.has_warnings == 'true' + run: | + cat warnings.txt > comment.txt + echo "" >> comment.txt + echo "Please do not commit files generated by webpack or generated markdown" >> comment.txt + echo "" >> comment.txt + echo "See [CONTRIBUTING.md](https://github.com/danielyxie/bitburner/blob/dev/doc/CONTRIBUTING.md) for details." >> comment.txt + + body=$(cat comment.txt) + body="${body//'%'/'%25'}" + body="${body//$'\n'/'%0A'}" + body="${body//$'\r'/'%0D'}" + + echo ::set-output name=body::$body + - name: Add github comment on problem + if : steps.get-warnings.outputs.has_warnings == 'true' + uses: peter-evans/commit-comment@v1 + with: + body: ${{ steps.get-comment-body.outputs.body }} + - name: Flag as error + if : steps.get-warnings.outputs.has_warnings == 'true' + run: | + COMMIT_WARNINGS=$(cat warnings.txt) + echo "::warning:: $COMMIT_WARNINGS" + exit 1 diff --git a/css/staneksgift.scss b/css/staneksgift.scss deleted file mode 100644 index 83fccf3e4..000000000 --- a/css/staneksgift.scss +++ /dev/null @@ -1,23 +0,0 @@ -.staneksgift_row { - padding: 0; - margin: 0; -} - -.staneksgift_cell { - width: 25px; - height: 25px; - background-color: #808080; - font-color: white; - padding: 0px; - margin: 0px; - border: 1px solid black; - float: left; -} - -.staneksgift_cell:first-child { - clear: left; -} - -.staneksgift_container { - position: fixed; -} diff --git a/dist/engineStyle.bundle.js b/dist/engineStyle.bundle.js deleted file mode 100644 index 915986974..000000000 --- a/dist/engineStyle.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(n){function t(t){for(var e,i,f=t[0],c=t[1],l=t[2],a=0,s=[];a li { - background-color: #555; } - -/* override the global styling */ -#active-scripts-total-production-active, -#active-scripts-total-prod-aug-total, -#active-scripts-total-prod-aug-avg { - margin: 0; - padding: 0; } - -/* Helper Classes */ -.hacker-green { - color: #adff2f; } - -.money-gold { - color: #ffd700; } - -.light-yellow { - color: #faffdf; } - -.unbuyable { - color: #66cfbc; } - -.failure { - color: #ff2929; - text-shadow: 0 0 0 #ff2929; } - -.success { - color: #3adb76; - text-shadow: 0 0 0 #3adb76; } - -.physical-yellow { - color: #faffdf; } - -.charisma-purple { - color: #a671d1; } - -.reputation { - color: #faffdf; } - -.smallfont { - font-size: 13px; } - -.samefont { - font-size: inherit; } - -.noscrollbar { - -ms-overflow-style: none; - /* IE and Edge */ - /* stylelint-disable-next-line property-no-unknown */ - scrollbar-width: none; - /* Firefox https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-width */ } - -.noscrollbar::-webkit-scrollbar { - display: none; } - -input[type="checkbox"] { - filter: invert(1) sepia(1) hue-rotate(41deg) brightness(100%) saturate(10); } - -.optionCheckbox { - margin: 5px; - float: right; } - -.optionRange { - -webkit-appearance: none; - background: #777; - outline: none; - opacity: 0.7; - height: 10px; - -webkit-transition: 0.2s; - transition: opacity 0.2s; - margin: 3px; } - -.optionRange::-webkit-slider-thumb { - -webkit-appearance: none; - appearance: none; - width: 10px; - height: 10px; - background: var(--my-font-color); - cursor: pointer; } - -.optionRange::-moz-range-thumb { - width: 10px; - height: 10px; - background: var(--my-font-color); - cursor: pointer; } - -.noselect, br { - -moz-user-select: -moz-none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; } - -/* COLORS */ -/* Attributes */ -/* Styling for tooltip-style elements */ -/* Tool tips (when hovering over an element */ -.tooltip { - display: inline-block; - position: relative; - /* Positioned to left of element rather than right */ - /* Tooltip goes below cursor instead of above */ } - .tooltip .tooltiptext { - visibility: hidden; - width: 300px; - background-color: var(--my-background-color); - border: 2px solid var(--my-highlight-color); - color: #fff; - text-align: center; - padding: 4px; - left: 101%; - pointer-events: none; - position: absolute; - z-index: 99; } - .tooltip .tooltiptextleft { - visibility: hidden; - width: 300px; - background-color: var(--my-background-color); - border: 2px solid var(--my-highlight-color); - color: #fff; - text-align: center; - padding: 4px; - top: 50%; - left: 50%; - transform: translate(-100%, -100%); - /* Backwards compatibility */ - -webkit-transform: translate(-100%, -100%); - -moz-transform: translate(-100%, -100%); - -o-transform: translate(-100%, -100%); - -ms-transform: translate(-100%, -100%); - position: absolute; - z-index: 99; } - .tooltip .tooltiptextlow { - visibility: hidden; - width: 300px; - background-color: var(--my-background-color); - border: 2px solid var(--my-highlight-color); - color: #fff; - text-align: center; - padding: 4px; - left: 101%; - pointer-events: none; - position: absolute; - z-index: 99; - bottom: 25%; } - -/* Same thing as a normal tooltip except its a bit higher */ -.tooltip .tooltiptexthigh { - visibility: hidden; - width: 300px; - background-color: var(--my-background-color); - border: 2px solid var(--my-highlight-color); - color: #fff; - text-align: center; - padding: 4px; - left: 101%; - bottom: -25%; - position: absolute; - z-index: 99; } - -.tooltip:hover .tooltiptext, -.tooltip:hover .tooltiptexthigh, -.tooltip:hover .tooltiptextleft, -.tooltip:hover .tooltiptextlow { - visibility: visible; } - -.copy_tooltip { - position: relative; - display: inline-block; } - -.copy_tooltip_copied { - color: #fff; - transition: color 0.3s; } - -.copy_tooltip .copy_tooltip_text { - visibility: hidden; - font-size: 15px; - padding: 5px; - background-color: var(--my-background-color); - color: #fff; - text-align: center; - position: absolute; - z-index: 1; - top: 120%; - left: 5%; - opacity: 0; - border: 2px solid var(--my-highlight-color); } - -.copy_tooltip .copy_tooltip_text::after { - content: ""; - position: absolute; - bottom: 100%; - left: 50%; - margin-left: -6px; - border-width: 8px; - border-style: solid; - border-color: transparent transparent white transparent; } - -.copy_tooltip .copy_tooltip_text_visible { - visibility: visible; - opacity: 1; - transition: opacity 0.3s; } - -/* COLORS */ -/* Attributes */ -/* COLORS */ -/* Attributes */ -/* COLORS */ -/* Attributes */ -* { - font-size: 16px; - font-family: "Lucida Console", "Lucida Sans Unicode", "Fira Mono", "Consolas", "Courier New", Courier, monospace, "Times New Roman"; } - -*, -*:before, -*:after { - margin: 0; - padding: 0; - box-sizing: border-box; - vertical-align: middle; } - -:root { - --my-font-color: #0c0; - --my-background-color: #000; - --my-highlight-color: #fff; - --my-prompt-color: #f92672; } - -body { - background-color: var(--my-background-color); - -ms-overflow-style: none; - /* for Internet Explorer, Edge */ - scrollbar-width: none; - /* for Firefox */ } - -body::-webkit-scrollbar { - display: none; - /* for Chrome, Safari, and Opera */ } - -p, -pre, -h2, -h3, -h4, -.text, -td { - color: var(--my-font-color); } - -h1 { - font-size: 22px; - color: var(--my-font-color); } - -ul { - padding: 2px; - list-style-type: none; } - -li { - list-style-type: none; } - -#entire-game-container { - background-color: transparent; } - -/* Disable border highlight on elements */ -input:focus, -textarea:focus, -button:focus, -td:focus, -tr:focus { - outline: none; } - -/* Make html links ("a" elements) nice looking buttons with this class */ -a:link, -a:visited { - color: #fff; } - -.dropdown { - color: #fff; - background-color: #000; } - -.text-input { - color: #fff; - background-color: #000; - border-style: solid; - border-width: 1px; - border-color: white; } - -/* Notification icon (for create program right now only) */ -#create-program-tab { - position: relative; } - -#create-program-notification { - font-size: 10px; - position: absolute; - /* Position the badge within the relatively positioned button */ - top: 0; - right: 0; } - -#factions-tab { - position: relative; } - -#factions-notification { - font-size: 10px; - position: absolute; - /* Position the badge within the relatively positioned button */ - top: 0; - right: 0; } - -#augmentations-tab { - position: relative; } - -#augmentations-notification { - font-size: 10px; - position: absolute; - /* Position the badge within the relatively positioned button */ - top: 0; - right: 0; } - -.notification-on { - background-color: #fa3e3e; - color: #fff; - border-radius: 2px; - padding: 1px 3px; - font-size: 10px; - top: 0; - right: 0; - position: absolute; } - -.notification-off { - background-color: #333; - color: #333; - border-radius: 0; - padding: 0; - display: "none"; } - -.notification { - position: relative; - display: inline-block; } - -.notification .badge { - position: absolute; - top: 0; - right: 0; - padding: 2px; - background: red; - color: white; } - -/* help tip. Question mark that opens popup with info/details */ -.help-tip { - background-color: black; - border: 1px solid #fff; - border-radius: 5px; - color: #fff; - content: "?"; - display: inline-block; - margin-left: 3px; - padding: 1px; } - -.help-tip-big { - content: "?"; - padding: 3px; - margin-left: 3px; - color: #fff; - border: 1px solid #fff; - border-radius: 8px; - display: inline-block; } - -.help-tip:hover, -.help-tip-big:hover { - background-color: #888; } - -.help-tip:active, -.help-tip-big:active { - -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6); - -moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6); - box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6); } - -/* Flashing button (Red) */ -@-webkit-keyframes glowing { - 0% { - background-color: #b20000; - -webkit-box-shadow: 0 0 3px #b20000; } - 50% { - background-color: #f00; - -webkit-box-shadow: 0 0 40px #f00; } - 100% { - background-color: #b20000; - -webkit-box-shadow: 0 0 3px #b20000; } } - -@-moz-keyframes glowing { - 0% { - background-color: #b20000; - -moz-box-shadow: 0 0 3px #b20000; } - 50% { - background-color: #f00; - -moz-box-shadow: 0 0 40px #f00; } - 100% { - background-color: #b20000; - -moz-box-shadow: 0 0 3px #b20000; } } - -@-o-keyframes glowing { - 0% { - background-color: #b20000; - box-shadow: 0 0 3px #b20000; } - 50% { - background-color: #f00; - box-shadow: 0 0 40px #f00; } - 100% { - background-color: #b20000; - box-shadow: 0 0 3px #b20000; } } - -@keyframes glowing { - 0% { - background-color: #b20000; - box-shadow: 0 0 3px #b20000; } - 50% { - background-color: #f00; - box-shadow: 0 0 40px #f00; } - 100% { - background-color: #b20000; - box-shadow: 0 0 3px #b20000; } } - -.flashing-button { - -webkit-animation: glowing 1500ms infinite; - -moz-animation: glowing 1500ms infinite; - -o-animation: glowing 1500ms infinite; - animation: glowing 1500ms infinite; } - -/* Blinking Cursor */ -/* ----- blinking cursor animation ----- */ -.typed-cursor { - opacity: 1; - -webkit-animation: blink 0.95s infinite; - -moz-animation: blink 0.95s infinite; - -ms-animation: blink 0.95s infinite; - -o-animation: blink 0.95s infinite; - animation: blink 0.95s infinite; } - -@-keyframes blink { - 0% { - opacity: 1; } - 50% { - opacity: 0; } - 100% { - opacity: 1; } } - -@-webkit-keyframes blink { - 0% { - opacity: 1; } - 50% { - opacity: 0; } - 100% { - opacity: 1; } } - -@-moz-keyframes blink { - 0% { - opacity: 1; } - 50% { - opacity: 0; } - 100% { - opacity: 1; } } - -@-ms-keyframes blink { - 0% { - opacity: 1; } - 50% { - opacity: 0; } - 100% { - opacity: 1; } } - -@-o-keyframes blink { - 0% { - opacity: 1; } - 50% { - opacity: 0; } - 100% { - opacity: 1; } } - -/* Status text */ -@-webkit-keyframes status-text { - from { - opacity: 1; } - to { - opacity: 0; } } - -.status-text { - z-index: 2; - -webkit-animation: status-text 3s 1; } - -#status-text-container { - background-color: transparent; - position: absolute; - top: 0; - left: 50%; } - -#status-text { - background-color: transparent; - bottom: 0; - color: #fff; - display: none; - font-size: 20px; - margin-right: 14px; - opacity: 0; - padding: 4px; - right: 0; - top: 0; - width: auto; } - -/* Scan analyze links from AutoLink */ -.scan-analyze-link { - cursor: pointer; - color: #fff; - text-decoration: underline; } - .scan-analyze-link:hover { - text-decoration: none; } - -/* Accordion menus (Header with collapsible panel) */ -.accordion-header { - background-color: #444; - color: #fff; - font-size: 20px; - margin: 6px 6px 0 6px; - padding: 4px 6px; - cursor: pointer; - width: 80%; - text-align: left; - border: none; - outline: none; - position: relative; } - .accordion-header.active, .accordion-header:hover { - background-color: #555; } - .accordion-header.active:hover { - background-color: #666; } - .accordion-header:after { - content: "\2795"; - /* "plus" sign (+) */ - font-size: 14px; - float: right; - color: transparent; - text-shadow: 0 0 0 #fff; - position: absolute; - bottom: 5px; - right: 6px; } - .accordion-header.active:after { - content: "\2796"; - /* "minus" sign (-) */ } - -.accordion-panel { - margin: 0 6px 6px 6px; - padding: 0 6px 6px 6px; - width: 75%; - margin-left: 5%; - display: none; - background-color: #555; - overflow-y: auto; - overflow-x: none; } - .accordion-panel div, - .accordion-panel ul, - .accordion-panel p, - .accordion-panel ul > li { - background-color: #555; } - -/* override the global styling */ -#active-scripts-total-production-active, -#active-scripts-total-prod-aug-total, -#active-scripts-total-prod-aug-avg { - margin: 0; - padding: 0; } - -/* Helper Classes */ -.hacker-green { - color: #adff2f; } - -.money-gold { - color: #ffd700; } - -.light-yellow { - color: #faffdf; } - -.unbuyable { - color: #66cfbc; } - -.failure { - color: #ff2929; - text-shadow: 0 0 0 #ff2929; } - -.success { - color: #3adb76; - text-shadow: 0 0 0 #3adb76; } - -.physical-yellow { - color: #faffdf; } - -.charisma-purple { - color: #a671d1; } - -.reputation { - color: #faffdf; } - -.smallfont { - font-size: 13px; } - -.samefont { - font-size: inherit; } - -.noscrollbar { - -ms-overflow-style: none; - /* IE and Edge */ - /* stylelint-disable-next-line property-no-unknown */ - scrollbar-width: none; - /* Firefox https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-width */ } - -.noscrollbar::-webkit-scrollbar { - display: none; } - -input[type="checkbox"] { - filter: invert(1) sepia(1) hue-rotate(41deg) brightness(100%) saturate(10); } - -.optionCheckbox { - margin: 5px; - float: right; } - -.optionRange { - -webkit-appearance: none; - background: #777; - outline: none; - opacity: 0.7; - height: 10px; - -webkit-transition: 0.2s; - transition: opacity 0.2s; - margin: 3px; } - -.optionRange::-webkit-slider-thumb { - -webkit-appearance: none; - appearance: none; - width: 10px; - height: 10px; - background: var(--my-font-color); - cursor: pointer; } - -.optionRange::-moz-range-thumb { - width: 10px; - height: 10px; - background: var(--my-font-color); - cursor: pointer; } - -.noselect, br, .a-link-button, -.std-button, .a-link-button-bought, -.std-button-bought { - -moz-user-select: -moz-none; - -khtml-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - user-select: none; } - -/** - * Styling for all buttons - * - * Includes