Skip to content

Move Page-specific Code Into ./Pages Directory #14

Description

@Toxocious

Description

To further organize the code-base, code regarding specific pages should be moved into the ./pages directory, similar to how all of the code regarding the Pokemon Center lies in the ./pages/pokemon_center directory.

Doing this would also benefit from some refactoring of the code for each page that would be moved to the ./pages directory, where the new code would be organized as such:

./pages
|---- pokemon_center  ## Feature Name 
    |---- ajax        ## AJAX content, sent as JSON
        |---- inventory.php
        |---- moves.php
        |---- nickname.php
        |---- release.php
        |---- roster.php
    |---- functions   ## PHP functions
        |---- inventory.php
        |---- moves.php
        |---- nickname.php
        |---- release.php
        |---- roster.php
    |---- js          ## JS for handling client input
        |---- ajax_functions.js
        |---- inventory.js
        |---- moves.js
        |---- nickname.js
        |---- release.js
        |---- roster.js
    |---- pages       ## Base page templating
        |---- inventory.php
        |---- moves.php
        |---- nickname.php
        |---- release.php
        |---- roster.php

Pages To Move And Refactor

  • Clans
  • Direct Messages
  • Evolution Center
  • Profile
  • Rankings
  • Shop
  • Trade Center

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    high priorityHigh priority issues generally will be completed on a quicker basisrefactorDesirable refactoring of the feature/script in the issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions