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

Refactor javascript files and the popup #199

Merged
merged 4 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions content-scripts/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import {
injectOverrideFunctions,
reverseDateDirection,
currentAccountPage,
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 All @@ -18,6 +17,7 @@ import { fixPagination } from "./modules/pagination";
import { changeLayout } from "./modules/layout";
import { addStarIconToCard } from "./modules/favorite-course";
import { createComponentsPage } from "./pages/components_page";
import { currentAccountPage } from "./pages/current_account_page";

/*--
- Docs: https://developer.chrome.com/docs/extensions/reference/storage/#synchronous-response-to-storage-updates
Expand Down
240 changes: 0 additions & 240 deletions content-scripts/modules/icons/constants.js

This file was deleted.

Loading