Skip to content

Commit

Permalink
context cleanup (#968)
Browse files Browse the repository at this point in the history
Co-authored-by: francinum <[email protected]>
  • Loading branch information
jlsnow301 and francinum authored Jun 2, 2024
1 parent 9046f1b commit bfb1053
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 13 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"**/.yarn": true,
"**/.pnp.*": true
},
"prettier.prettierPath": "./tgui/.yarn/sdks/prettier/index.cjs",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
Expand Down
8 changes: 4 additions & 4 deletions tgui/.yarn/sdks/typescript/bin/tsserver
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const { existsSync } = require(`fs`);
const { createRequire } = require(`module`);
const { resolve } = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";
const relPnpApiPath = '../../../../.pnp.cjs';

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
Expand Down
1 change: 1 addition & 0 deletions tgui/packages/tgui-bench/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"name": "tgui-bench",
"version": "4.3.0",
"dependencies": {
"@types/node": "^14.17.9",
"common": "workspace:*",
"fastify": "^3.20.2",
"fastify-static": "^4.2.3",
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui-panel/settings/SettingsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const SettingsGeneral = (props) => {
matchCase,
} = useSelector(selectSettings);
const dispatch = useDispatch();
const [freeFont, setFreeFont] = useLocalState(context, 'freeFont', false);
const [freeFont, setFreeFont] = useLocalState('freeFont', false);
return (
<Section>
<LabeledList>
Expand Down
1 change: 0 additions & 1 deletion tgui/packages/tgui/interfaces/NtosNetDownloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export const NtosNetDownloader = (props) => {
scale(downloadcompletion, 0, downloadsize) * 100,
);
const [selectedCategory, setSelectedCategory] = useLocalState(
context,
'category',
all_categories[0],
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ export const FloatGenerator = (props: FloatGeneratorProps) => {
);
};

export const FloatGeneratorColor = (
props: FloatGeneratorColorProps,
context,
) => {
export const FloatGeneratorColor = (props: FloatGeneratorColorProps) => {
const { act, data } = useBackend<ParticleUIData>();
const [desc, setdesc] = useLocalState('desc', '');
const { name, var_name, float } = props;
Expand Down Expand Up @@ -129,7 +126,6 @@ export const FloatGeneratorColor = (

export const EntryGeneratorNumbersList = (
props: EntryGeneratorNumbersListProps,
context,
) => {
const { act, data } = useBackend<ParticleUIData>();
const [desc, setdesc] = useLocalState('desc', '');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const ghost_orbit: FeatureChoiced = {
`,
component: (
props: FeatureValueProps<string, string, FeatureChoicedServerData>,
context,
) => {
const { data } = useBackend<PreferencesMenuData>();

Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/interfaces/Uplink/GenericUplink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export type ItemListProps = {
handleBuy: (item: Item) => void;
};

const ItemList = (props: ItemListProps, context: any) => {
const ItemList = (props: ItemListProps) => {
const { compactMode, items, handleBuy } = props;
return (
<Stack vertical>
Expand Down
1 change: 1 addition & 0 deletions tgui/packages/tgui/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const createStackAugmentor = (store) => (stack, error) => {

/**
* Store provider for Inferno apps.
* This can be removed when Inferno is removed
*/
export class StoreProvider extends Component {
getChildContext() {
Expand Down
1 change: 1 addition & 0 deletions tgui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8132,6 +8132,7 @@ resolve@^2.0.0-next.3:
version: 0.0.0-use.local
resolution: "tgui-bench@workspace:packages/tgui-bench"
dependencies:
"@types/node": ^14.17.9
common: "workspace:*"
fastify: ^3.20.2
fastify-static: ^4.2.3
Expand Down

0 comments on commit bfb1053

Please sign in to comment.