Skip to content

Codebase Cleanups #126

@FegelSamuel

Description

@FegelSamuel

Description:
Taz, Mihir, and myself went through the codebase and caught some minor cleanup stuff. I'd expect this to take a given student like a month to do all of this, but this goes through the entire repository, so it's not really that bad. I want ONE PR per checkbox. Clutter will not be tolerated.

TODO:

  • Remove crypto from the package.json
  • Understand if we need the dotenv package in the package.json
  • Replace all beginning <script setup> tags with <script setup lang='ts'>
  • Remove all h3 importing. Nuxt is built on h3 and shouldn't need any manual h3 imports
  • Fix Announcements mispelling in Events table
  • add DateTimes to Announcements because ordering Announcements by Date might be important and also knowing when something was sent would be nice.
  • All relations should be capitalized
  • Remove success flags from API routes
  • Delete user batch get, we already have index.get.ts for that
  • Turn color hexes into names in the tailwind config
  • Make a form input component (like in the components directory) so all the inputs look the same
  • Convert refs in profile directory into writeable computeds
  • Typedefs instead of object notation for props
  • Change the column names of scalar types in Prisma to lowercase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions