Commit Graph

15 Commits

Author SHA1 Message Date
Jeremiah
a5a4b83a25 Sets prettier to run on the repo (#91379)
Prettier (an auto formatter) is set to only run within the tgui folder
currently. This removes that limitation, allowing it to automatically
format all supported files in the repo (.js, .html, .yml
[etc](https://prettier.io/docs/))

I made a few exceptions for bundled and generated files
I'm of the opinion that code should look uniform and am lazy enough to
want CTRL-S to format files without having to think beyond that
2025-06-05 19:13:02 -04:00
SkyratBot
f66efb2a83 [MIRROR] Reverts 82333 (#27289)
* Reverts 82333 (#82608)

## About The Pull Request
#82333

I was mistaken

The inconsistent indentation warnings are killing me

I tried
## Why It's Good For The Game
Developer sanity

* Reverts 82333

---------

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
2024-04-18 03:06:08 +02:00
SkyratBot
7ee6b3305a [MIRROR] Removes editorconfig and suggested extension (#27129)
* Removes editorconfig and suggested extension (#82333)

## About The Pull Request
(Correct me if I'm wrong here but) this is made obsolete by prettier and
our vscode settings
## Why It's Good For The Game
Removes obsolete tools
## Changelog
N/A nothing player facing

* Removes editorconfig and suggested extension

---------

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
2024-04-04 14:53:33 -04:00
SkyratBot
efbbbe4565 [MIRROR] Remove tab indent size from editorconfig [MDB IGNORE] (#18589)
* Remove tab indent size from editorconfig (#72508)

We don't allow tab alignment anyway so this serves literally zero
purpose. It's not our place to set this kind of requirement in
editorconfig. It doesn't even match GitHub's tab size.

* Remove tab indent size from editorconfig

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
2023-01-08 22:57:34 -08:00
SkyratBot
332a74ea76 [MIRROR] Adds Prettierx - or how I broke TGUI for the nth time [MDB IGNORE] (#14475)
* Adds Prettierx - or how I broke TGUI for the nth time

* fuck

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2022-06-25 01:17:32 +01:00
SkyratBot
651a7b5507 [MIRROR] Update Dockerfile for CBT (#2713)
* Update Dockerfile for CBT (#56175)

Follow-up to fix the failing Docker CI on master.

- Reorganize the entire Dockerfile to be more readable
- Inline the tgstation/byond Dockerfile into our own, so we can change the base distro at will
- Also allows us to trash the dependencies.sh<->Dockerfile hack
- Use 32-bit libs on a 64-bit distro so that we can download and run recent 64-bit Node binaries
- Call tools/build/build rather than DreamMaker directly

* Update Dockerfile for CBT

Co-authored-by: Tad Hardesty <tad@platymuus.com>
2021-01-18 18:22:09 +00:00
SkyratBot
fd8e01af96 [MIRROR] Allow Markdown files to have trailing whitespace (#2518)
* Allow md files to have trailing whitespace (#55951)

Allows markdown files to have trailing whitespace preceding newline characters.
This enables non-paragraph newlines to be used, as they are made in markdown by ending a line with two space characters.
Please see the [original markdown specification](https://daringfireball.net/projects/markdown/syntax#p) for more details.

* Allow Markdown files to have trailing whitespace

Co-authored-by: Alex 'Avunia' Takiya <git@takiya.cloud>
2021-01-06 04:19:56 +01:00
jdawg1290
62676e72a8 Force LF line endings with gitattributes and convert repo (#52266)
Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
2020-07-16 03:02:40 +03:00
Aleksej Komarov
baf9bd2f95 REMOVES TGUI (#49330)
* Removes tgui

* Make tgui script executable again

* Set version of packages to 2.0.0

* Update copypasta docs to match the current best practice

* Rebuild tgui

* Update .github/CONTRIBUTING.md

Co-Authored-By: BadSS13Player <58376109+BadSS13Player@users.noreply.github.com>

* Remove holy bible by Arcane

* rebuild

Co-authored-by: BadSS13Player <58376109+BadSS13Player@users.noreply.github.com>
Co-authored-by: Rob Bailey <actioninja@gmail.com>
2020-02-17 04:51:56 -08:00
Aleksej Komarov
d41705273c Fix the newline problem in editorconfig
With current editor config, if you have trailing whitespace on final new line, it doesn't get trimmed, and no extra newline gets added, which breaks linters.

Whitespace trimming is good overall. And an additional "utf-8" enforcement.

Webedit kung-fu.
2019-11-26 14:43:11 +02:00
Aleksej Komarov
2f2852cdf0 Fix wonky window dragging when using fancy tgui in some special cases (#46111)
This pull request fixes the Issue #44038, where TGUI windows get stuck at the bottom of the screen in this very special case:

    Windows 10 taskbar is not located at the bottom of the screen (in my case, taskbar was on top);
    Fancy UI is enabled.

This is because BYOND uses and reports only the "usable" screen resolution instead of an actual physical resolution [citation needed], and therefore window coordinate space is offset by 40px or more (a size of a Windows 10 taskbar), which causes that rapid uncontrolled propulsion of TGUI windows away from the taskbar.

I also took the liberty to refactor some of the code in 'util/byond' to my liking and adding a few helper methods, including runCommand(command) and callByond(url, params) -> Promise.

Promise-based interface is a first step to start using async/await and making more dynamic calls in tgui.
Why It's Good For The Game

Window dragging is now more robust with the (currently default) fancy TGUI.

Code accounts for the screen space offset between BYOND and the in-game browser.
Changelog

cl
fix: fixed wonky window dragging when using fancy tgui in some special cases
/cl
2019-08-27 15:24:09 +12:00
Tad Hardesty
7cfe00d1ec Mark Python files as being space-indented 2019-07-03 01:21:00 -07:00
Tad Hardesty
e5ccafd0b0 Split Travis shell scripts by job (#44845)
Part one of some needful Travis cleanup.

    Split the different tasks into their own .sh files rather than doing many things per .sh file
    Use .travis.yml jobs list to select which tasks are run rather than setting environment variables which the shell scripts then check
    Moves the grep lints from running in both "Maps" and "Tests" jobs, and runs them in "Lints" job (formerly "Tools") instead
    Makes the check_filedirs.sh lint only run in the "Lints" job rather than in all three jobs.
    Removes the check that dependencies.sh matches Dockerfile since the former now pulls from the latter
    Uncache node_modules - npm ci is expected to trash this every time and warns when it already exists
    Uncache and remove the unnecessary fake MariaDB folder used when building BSQL, give it the real path instead
    Attempt to cache the BYOND-provided libmariadb (not sure if this works, will re-examine it in part two)

For part two I hope to switch to using rust_g and BSQL binaries from GitHub releases, and add SpacemanDMM's dreamchecker to the Lints job.
2019-07-03 19:37:06 +12:00
Jordan Brown
c1445817db Insert final newlines 2019-01-29 09:56:44 -05:00
Kyle Spier-Swenson
8d984ef59c Adds an editorconfig
Prevents github putting newlines at the end of files in the web editor (something that would make expanding the context on the diff annoying to do.

Sets the default tab size to be the same as DM.
2017-01-29 20:00:24 -08:00