Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tgui update #6920

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
26c0857
stuffs
LetterN Dec 13, 2024
32ad4fe
eslint-fix
LetterN Dec 13, 2024
f434548
make these not compile in tgui at all
LetterN Dec 13, 2024
9ea4395
unused, bye bye
LetterN Dec 13, 2024
7d89699
test
LetterN Dec 13, 2024
a8917f1
standard tgui comps
LetterN Dec 13, 2024
c89469f
stories
LetterN Dec 13, 2024
b6d6b9c
style, sheet?
LetterN Dec 13, 2024
dc2c42f
chat
LetterN Dec 13, 2024
6792e86
components
LetterN Dec 13, 2024
a9d88b0
component change side effect
LetterN Dec 13, 2024
43c30e4
tguibench
LetterN Dec 13, 2024
70f5bca
update this to ts
LetterN Dec 14, 2024
65b0574
tgfont update
LetterN Dec 14, 2024
dc2b3ce
ooprs
LetterN Dec 14, 2024
37b43e8
tgui-dev-server bye bye ie8
LetterN Dec 14, 2024
c0597e3
specificaly target these packages
LetterN Dec 14, 2024
6c1c18b
fixes
LetterN Dec 14, 2024
c3c2733
route n state fixes
LetterN Dec 14, 2024
8174837
fixup uis
LetterN Dec 14, 2024
c644191
scss changes
LetterN Dec 14, 2024
8fdca84
stylesheet changes
LetterN Dec 14, 2024
02a68ea
camera console & other stuffs
LetterN Dec 14, 2024
7b98ce3
make changelog work again
LetterN Dec 15, 2024
da7c3ad
give store types
LetterN Dec 15, 2024
cf114bc
sideEffets
LetterN Dec 15, 2024
2704fb9
eslint shenanigans
LetterN Dec 16, 2024
3142f3c
tiny backend change
LetterN Dec 16, 2024
22f532c
polyfill: remove ie8
LetterN Dec 20, 2024
b85e9b9
proper 516
LetterN Dec 20, 2024
0317e93
516 storage
LetterN Dec 22, 2024
3839572
Merge remote-tracking branch 'upstream/master' into generic-tgui-stuf…
LetterN Dec 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion code/datums/changelog.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
var/list/data = list( "dates" = list() )
var/regex/ymlRegex = regex(@"\.yml", "g")

for(var/archive_file in flist("[global.config.directory]/../html/changelogs/archive/"))
for(var/archive_file in sortList(flist("[global.config.directory]/../html/changelogs/archive/")))
var/archive_date = ymlRegex.Replace(archive_file, "")
data["dates"] = list(archive_date) + data["dates"]

Expand Down
3 changes: 2 additions & 1 deletion interface/stylesheet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ h1.alert, h2.alert {color: #000000;}
}

.icon {height: 1em; width: auto;}
.iconbig {height: 32px; width: 32px; }
.bigicon {height: 2.5em; width: auto; }
.hugeicon {height: 5em; width: auto; }

.memo {color: #638500; text-align: center;}
.memoedit {text-align: center; font-size: 2;}
Expand Down
13 changes: 12 additions & 1 deletion tgui/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,15 @@
/**/*.bundle.*
/**/*.chunk.*
/**/*.hot-update.*
/packages/inferno/**
**.lock
**.log
**.json
**.svg
**.scss
**.md
**.css
**.txt
**.woff2
**.eot
**.ttf
/public
27 changes: 1 addition & 26 deletions tgui/.eslintrc-sonar.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1 @@
rules:
# radar/cognitive-complexity: error
radar/max-switch-cases: error
radar/no-all-duplicated-branches: error
radar/no-collapsible-if: error
radar/no-collection-size-mischeck: error
radar/no-duplicate-string: error
radar/no-duplicated-branches: error
radar/no-element-overwrite: error
radar/no-extra-arguments: error
radar/no-identical-conditions: error
radar/no-identical-expressions: error
radar/no-identical-functions: error
radar/no-inverted-boolean-check: error
radar/no-one-iteration-loop: error
radar/no-redundant-boolean: error
radar/no-redundant-jump: error
radar/no-same-line-conditional: error
radar/no-small-switch: error
radar/no-unused-collection: error
radar/no-use-of-empty-return-value: error
radar/no-useless-catch: error
radar/prefer-immediate-return: error
radar/prefer-object-literal: error
radar/prefer-single-boolean-return: error
radar/prefer-while: error
extends: 'plugin:sonarjs/recommended'
78 changes: 42 additions & 36 deletions tgui/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ plugins:
- sonarjs
- react
- unused-imports
- simple-import-sort
settings:
react:
version: '16.10'
rules:

## Possible Errors
## ----------------------------------------
## Enforce “for” loop update clause moving the counter in the right
Expand Down Expand Up @@ -308,13 +308,16 @@ rules:
## Enforce or disallow capitalization of the first letter of a comment
# capitalized-comments: error
## Require or disallow trailing commas
comma-dangle: [error, {
arrays: always-multiline,
objects: always-multiline,
imports: always-multiline,
exports: always-multiline,
functions: only-multiline, ## Optional on functions
}]
comma-dangle: [
error,
{
arrays: always-multiline,
objects: always-multiline,
imports: always-multiline,
exports: always-multiline,
functions: only-multiline, ## Optional on functions
},
]
## Enforce consistent spacing before and after commas
comma-spacing: [error, { before: false, after: true }]
## Enforce consistent comma style
Expand All @@ -334,7 +337,7 @@ rules:
## Require or disallow named function expressions
# func-names: error
## Enforce the consistent use of either function declarations or expressions
func-style: [error, expression]
# func-style: [error, expression]
## Enforce line breaks between arguments of a function call
# function-call-argument-newline: error
## Enforce consistent line breaks inside function parentheses
Expand All @@ -349,15 +352,15 @@ rules:
## Enforce the location of arrow function bodies
# implicit-arrow-linebreak: error
## Enforce consistent indentation
indent: [error, 2, { SwitchCase: 1 }]
# indent: [error, 2, { SwitchCase: 1 }]
## Enforce the consistent use of either double or single quotes in JSX
## attributes
jsx-quotes: [error, prefer-double]
# jsx-quotes: [error, prefer-double]
## Enforce consistent spacing between keys and values in object literal
## properties
key-spacing: [error, { beforeColon: false, afterColon: true }]
# key-spacing: [error, { beforeColon: false, afterColon: true }]
## Enforce consistent spacing before and after keywords
keyword-spacing: [error, { before: true, after: true }]
# keyword-spacing: [error, { before: true, after: true }]
## Enforce position of line comments
# line-comment-position: error
## Enforce consistent linebreak style
Expand All @@ -369,15 +372,15 @@ rules:
## Enforce a maximum depth that blocks can be nested
# max-depth: error
## Enforce a maximum line length
max-len: [error, {
code: 120,
## Ignore imports
ignorePattern: '^(import\s.+\sfrom\s|.*require\()',
ignoreUrls: true,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}]
# max-len: [error, {
# code: 80,
# ## Ignore imports
# ignorePattern: '^(import\s.+\sfrom\s|.*require\()',
# ignoreUrls: true,
# ignoreRegExpLiterals: true,
# ignoreStrings: true,
# ignoreTemplateLiterals: true,
# }]
## Enforce a maximum number of lines per file
# max-lines: error
## Enforce a maximum number of line of code in a function
Expand Down Expand Up @@ -414,7 +417,7 @@ rules:
## Disallow mixed binary operators
# no-mixed-operators: error
## Disallow mixed spaces and tabs for indentation
no-mixed-spaces-and-tabs: error
# no-mixed-spaces-and-tabs: error
## Disallow use of chained assignment expressions
# no-multi-assign: error
## Disallow multiple empty lines
Expand All @@ -440,7 +443,7 @@ rules:
## Disallow ternary operators when simpler alternatives exist
# no-unneeded-ternary: error
## Disallow whitespace before properties
no-whitespace-before-property: error
# no-whitespace-before-property: error
## Enforce the location of single-line statements
# nonblock-statement-body-position: error
## Enforce consistent line breaks inside braces
Expand All @@ -457,7 +460,7 @@ rules:
## Require or disallow assignment operator shorthand where possible
# operator-assignment: error
## Enforce consistent linebreak style for operators
operator-linebreak: [error, before]
# operator-linebreak: [error, before]
## Require or disallow padding within blocks
# padded-blocks: error
## Require or disallow padding lines between statements
Expand All @@ -482,11 +485,11 @@ rules:
## Enforce consistent spacing before blocks
space-before-blocks: [error, always]
## Enforce consistent spacing before function definition opening parenthesis
space-before-function-paren: [error, {
anonymous: always,
named: never,
asyncArrow: always,
}]
# space-before-function-paren: [error, {
# anonymous: always,
# named: never,
# asyncArrow: always,
# }]
## Enforce consistent spacing inside parentheses
space-in-parens: [error, never]
## Require spacing around infix operators
Expand Down Expand Up @@ -648,7 +651,7 @@ rules:
## Enforce ES5 or ES6 class for React Components
react/prefer-es6-class: error
## Enforce that props are read-only
react/prefer-read-only-props: error
react/prefer-read-only-props: off
## Enforce stateless React Components to be written as a pure function
react/prefer-stateless-function: error
## Prevent missing props validation in a React component definition
Expand Down Expand Up @@ -695,7 +698,7 @@ rules:
react/jsx-closing-tag-location: error
## Enforce or disallow newlines inside of curly braces in JSX attributes and
## expressions (fixable)
react/jsx-curly-newline: error
# react/jsx-curly-newline: error
## Enforce or disallow spaces inside of curly braces in JSX attributes and
## expressions (fixable)
react/jsx-curly-spacing: error
Expand All @@ -708,11 +711,11 @@ rules:
## Enforce event handler naming conventions in JSX
react/jsx-handler-names: error
## Validate JSX indentation (fixable)
react/jsx-indent: [error, 2, {
checkAttributes: true,
}]
# react/jsx-indent: [error, 2, {
# checkAttributes: true,
# }]
## Validate props indentation in JSX (fixable)
react/jsx-indent-props: [error, 2]
# react/jsx-indent-props: [error, 2]
## Validate JSX has key prop when in array or iterator
react/jsx-key: error
## Validate JSX maximum depth
Expand Down Expand Up @@ -761,3 +764,6 @@ rules:
## Prevents the use of unused imports.
## This could be done by enabling no-unused-vars, but we're doing this for now
unused-imports/no-unused-imports: error
## https://github.com/lydell/eslint-plugin-simple-import-sort/
simple-import-sort/imports: error
simple-import-sort/exports: error
16 changes: 16 additions & 0 deletions tgui/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## NPM
/**/node_modules

## Yarn
/.yarn
/yarn.lock
/.pnp.*

.swcrc
/docs
/public
/packages/tgui-polyfill
/packages/tgfont/static
**/*.json
**/*.yml
**/*.md
11 changes: 0 additions & 11 deletions tgui/.prettierrc.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
arrowParens: always
bracketSpacing: true
endOfLine: lf
jsxBracketSameLine: true
jsxSingleQuote: false
printWidth: 80
proseWrap: preserve
quoteProps: preserve
semi: true
singleQuote: true
tabWidth: 2
trailingComma: es5
Loading
Loading