Skip to content

Organize Javascript #566

@kaidesu

Description

@kaidesu

Our Javascript directory and files are a bit all over the place with some inconsistent naming conventions. This should be cleaned up and organized to make things easy to find and work with.

Directory Structure

resources/
    └── js/
        ├── bootstrap/
        ├── components/
        ├── directives/
        ├── fieldtypes/
        ├── layouts/
        ├── mixins/
        ├── pages/
        ├── plugins/
        ├── router/
        ├── services/
        ├── store/
        ├── ui/
        ├── vendor/
        └── gravity.js
  • Move Proton from the current vendor directory into the ui directory and make it a native part of the CMS. Our original goals were to make this a separate package to be pulled in, but we simply don't have the bandwidth at the moment to maintain this separately.
  • Rename the current views directory to pages to help distinguish is from Laravel's views directory (blade templates)
  • Rename the current vuex directory to store to clarify what these files are in a more generic manner
  • Move the current forms directory to services

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions