Commit 5c7ba34f authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Reorganise repo/ files to match guidelines

parent ba8bcdab
<script> <script>
import Store from './repo_store'; import Store from '../stores/repo_store';
import RepoHelper from './repo_helper'; import RepoHelper from '../helpers/repo_helper';
const RepoBinaryViewer = { const RepoBinaryViewer = {
data: () => Store, data: () => Store,
......
<script> <script>
/* global Flash */ /* global Flash */
import Store from './repo_store'; import Store from '../stores/repo_store';
import Api from '../api'; import Api from '../../api';
import RepoMixin from './repo_mixin'; import RepoMixin from '../mixins/repo_mixin';
import Helper from './repo_helper'; import Helper from '../helpers/repo_helper';
const RepoCommitSection = { const RepoCommitSection = {
data: () => Store, data: () => Store,
......
<script> <script>
/* global monaco */ /* global monaco */
import Store from './repo_store'; import Store from '../stores/repo_store';
import Helper from './repo_helper'; import Helper from '../helpers/repo_helper';
const RepoEditor = { const RepoEditor = {
data: () => Store, data: () => Store,
......
<script> <script>
import TimeAgoMixin from '../vue_shared/mixins/timeago'; import TimeAgoMixin from '../../vue_shared/mixins/timeago';
const RepoFile = { const RepoFile = {
mixins: [TimeAgoMixin], mixins: [TimeAgoMixin],
......
<script> <script>
import Store from './repo_store'; import Store from '../stores/repo_store';
import Helper from './repo_helper'; import Helper from '../helpers/repo_helper';
import RepoMixin from './repo_mixin'; import RepoMixin from '../mixins/repo_mixin';
const RepoFileButtons = { const RepoFileButtons = {
data: () => Store, data: () => Store,
......
<script> <script>
import Service from './repo_service'; import Service from '../services/repo_service';
import Helper from './repo_helper'; import Helper from '../helpers/repo_helper';
import Store from './repo_store'; import Store from '../stores/repo_store';
import RepoPreviousDirectory from './repo_prev_directory.vue'; import RepoPreviousDirectory from './repo_prev_directory.vue';
import RepoFileOptions from './repo_file_options.vue'; import RepoFileOptions from './repo_file_options.vue';
import RepoFile from './repo_file.vue'; import RepoFile from './repo_file.vue';
import RepoLoadingFile from './repo_loading_file.vue'; import RepoLoadingFile from './repo_loading_file.vue';
import RepoMixin from './repo_mixin'; import RepoMixin from '../mixins/repo_mixin';
const RepoSidebar = { const RepoSidebar = {
mixins: [RepoMixin], mixins: [RepoMixin],
......
<script> <script>
import RepoStore from './repo_store'; import RepoStore from '../stores/repo_store';
const RepoTab = { const RepoTab = {
props: { props: {
......
<script> <script>
import Vue from 'vue'; import Vue from 'vue';
import Store from './repo_store'; import Store from '../stores/repo_store';
import RepoTab from './repo_tab.vue'; import RepoTab from './repo_tab.vue';
import RepoMixin from './repo_mixin'; import RepoMixin from '../mixins/repo_mixin';
const RepoTabs = { const RepoTabs = {
mixins: [RepoMixin], mixins: [RepoMixin],
......
/* global Flash */ /* global Flash */
import Service from './repo_service'; import Service from '../services/repo_service';
import Store from './repo_store'; import Store from '../stores/repo_store';
import '../flash'; import '../../flash';
const RepoHelper = { const RepoHelper = {
getDefaultActiveFile() { getDefaultActiveFile() {
......
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
import $ from 'jquery'; import $ from 'jquery';
import Vue from 'vue'; import Vue from 'vue';
import Translate from '../vue_shared/translate'; import Translate from '../vue_shared/translate';
import RepoSidebar from './repo_sidebar.vue'; import RepoSidebar from './components/repo_sidebar.vue';
import EditButton from './repo_edit_button'; import EditButton from './repo_edit_button';
import Service from './repo_service'; import Service from './services/repo_service';
import Store from './repo_store'; import Store from './stores/repo_store';
import RepoCommitSection from './repo_commit_section.vue'; import RepoCommitSection from './components/repo_commit_section.vue';
import RepoTabs from './repo_tabs.vue'; import RepoTabs from './components/repo_tabs.vue';
import RepoFileButtons from './repo_file_buttons.vue'; import RepoFileButtons from './components/repo_file_buttons.vue';
import RepoBinaryViewer from './repo_binary_viewer.vue'; import RepoBinaryViewer from './components/repo_binary_viewer.vue';
import RepoEditor from './repo_editor.vue'; import RepoEditor from './components/repo_editor.vue';
import monacoLoader from './monaco_loader'; import monacoLoader from './monaco_loader';
import RepoMixin from './repo_mixin'; import RepoMixin from './mixins/repo_mixin';
import PopupDialog from '../vue_shared/components/popup_dialog.vue'; import PopupDialog from '../vue_shared/components/popup_dialog.vue';
Vue.use(Translate); Vue.use(Translate);
......
import Store from './repo_store'; import Store from '../stores/repo_store';
const RepoMixin = { const RepoMixin = {
computed: { computed: {
......
import Vue from 'vue'; import Vue from 'vue';
import Store from './repo_store'; import Store from './stores/repo_store';
import RepoMixin from './repo_mixin'; import RepoMixin from './mixins/repo_mixin';
import { __ } from '../locale'; import { __ } from '../locale';
export default class RepoEditButton { export default class RepoEditButton {
......
import axios from 'axios'; import axios from 'axios';
import Store from './repo_store'; import Store from '../stores/repo_store';
const RepoService = { const RepoService = {
url: '', url: '',
......
/* global Flash */ /* global Flash */
import RepoHelper from './repo_helper'; import RepoHelper from '../helpers/repo_helper';
const RepoStore = { const RepoStore = {
ideEl: {}, ideEl: {},
......
import Vue from 'vue'; import Vue from 'vue';
import Store from '~/repo/repo_store'; import Store from '~/repo/stores/repo_store';
import repoBinaryViewer from '~/repo/repo_binary_viewer.vue'; import repoBinaryViewer from '~/repo/components/repo_binary_viewer.vue';
describe('RepoBinaryViewer', () => { describe('RepoBinaryViewer', () => {
function createComponent() { function createComponent() {
......
import Vue from 'vue'; import Vue from 'vue';
import repoCommitSection from '~/repo/repo_commit_section.vue'; import repoCommitSection from '~/repo/components/repo_commit_section.vue';
import RepoStore from '~/repo/repo_store'; import RepoStore from '~/repo/stores/repo_store';
import RepoHelper from '~/repo/repo_helper'; import RepoHelper from '~/repo/helpers/repo_helper';
import Api from '~/api'; import Api from '~/api';
describe('RepoCommitSection', () => { describe('RepoCommitSection', () => {
......
import Vue from 'vue'; import Vue from 'vue';
import repoEditor from '~/repo/repo_editor.vue'; import repoEditor from '~/repo/components/repo_editor.vue';
import RepoStore from '~/repo/repo_store'; import RepoStore from '~/repo/stores/repo_store';
describe('RepoEditor', () => { describe('RepoEditor', () => {
function createComponent() { function createComponent() {
......
import Vue from 'vue'; import Vue from 'vue';
import repoFileButtons from '~/repo/repo_file_buttons.vue'; import repoFileButtons from '~/repo/components/repo_file_buttons.vue';
import RepoStore from '~/repo/repo_store'; import RepoStore from '~/repo/stores/repo_store';
describe('RepoFileButtons', () => { describe('RepoFileButtons', () => {
function createComponent() { function createComponent() {
......
import Vue from 'vue'; import Vue from 'vue';
import repoFileOptions from '~/repo/repo_file_options.vue'; import repoFileOptions from '~/repo/components/repo_file_options.vue';
describe('RepoFileOptions', () => { describe('RepoFileOptions', () => {
const projectName = 'projectName'; const projectName = 'projectName';
......
import Vue from 'vue'; import Vue from 'vue';
import repoFile from '~/repo/repo_file.vue'; import repoFile from '~/repo/components/repo_file.vue';
describe('RepoFile', () => { describe('RepoFile', () => {
const updated = 'updated'; const updated = 'updated';
......
import Vue from 'vue'; import Vue from 'vue';
import repoLoadingFile from '~/repo/repo_loading_file.vue'; import repoLoadingFile from '~/repo/components/repo_loading_file.vue';
describe('RepoLoadingFile', () => { describe('RepoLoadingFile', () => {
function createComponent(propsData) { function createComponent(propsData) {
......
import Vue from 'vue'; import Vue from 'vue';
import repoPrevDirectory from '~/repo/repo_prev_directory.vue'; import repoPrevDirectory from '~/repo/components/repo_prev_directory.vue';
describe('RepoPrevDirectory', () => { describe('RepoPrevDirectory', () => {
function createComponent(propsData) { function createComponent(propsData) {
......
import Vue from 'vue'; import Vue from 'vue';
import RepoStore from '~/repo/repo_store'; import RepoStore from '~/repo/stores/repo_store';
import repoSidebar from '~/repo/repo_sidebar.vue'; import repoSidebar from '~/repo/components/repo_sidebar.vue';
describe('RepoSidebar', () => { describe('RepoSidebar', () => {
function createComponent() { function createComponent() {
......
import Vue from 'vue'; import Vue from 'vue';
import repoTab from '~/repo/repo_tab.vue'; import repoTab from '~/repo/components/repo_tab.vue';
describe('RepoTab', () => { describe('RepoTab', () => {
function createComponent(propsData) { function createComponent(propsData) {
......
import Vue from 'vue'; import Vue from 'vue';
import RepoStore from '~/repo/repo_store'; import RepoStore from '~/repo/stores/repo_store';
import repoTabs from '~/repo/repo_tabs.vue'; import repoTabs from '~/repo/components/repo_tabs.vue';
describe('RepoTabs', () => { describe('RepoTabs', () => {
const openedFiles = [{ const openedFiles = [{
......
import axios from 'axios'; import axios from 'axios';
import RepoService from '~/repo/repo_service'; import RepoService from '~/repo/services/repo_service';
describe('RepoService', () => { describe('RepoService', () => {
it('has default json format param', () => { it('has default json format param', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment