Skip to content

Commit

Permalink
Refactor .js files to .ts and extract code
Browse files Browse the repository at this point in the history
  • Loading branch information
thePeras committed Nov 2, 2024
1 parent 30db459 commit aedf41d
Show file tree
Hide file tree
Showing 17 changed files with 613 additions and 615 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import jsx from "texsaur";

import { AuthSession } from "../../types";
import HeaderLinks from "./HeaderLinks";
import Authentication from "./HeaderAuthentication";
import { AuthSession } from "../types";

//TODO(thePeras): I think we should move this to a separate file dedicated to constants or a folder like `data`
const HEADER_LINKS = {
Estudantes: {
Bolsas: "web_base.gera_pagina?p_pagina=242366",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import jsx from "texsaur";
import { AuthSession } from "../types";
import { togglePopover } from "../modules/utilities/popover";
import Icon from "./Icon";
import { AuthSession } from "../../types";
import { togglePopover } from "../../modules/utilities/popover";
import Icon from "../Icon";

interface Props {
auth: AuthSession | null;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion content-scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
addSortTableActions,
} from "./modules/initialize";
import { injectAllChanges, userPreferences } from "./modules/options";
import constructNewData from "./modules/utilities/constructNewData";
import constructNewData from "./modules/options/constructNewData";
import { getStorage, setStorage } from "./modules/utilities/storage";
import { rememberLogin } from "./modules/login";
import { replaceIcons } from "./modules/icons";
Expand Down
240 changes: 0 additions & 240 deletions content-scripts/modules/icons/constants.js

This file was deleted.

Loading

0 comments on commit aedf41d

Please sign in to comment.