Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 335d520

Browse files
pkozlowski-opensourcePatrickJS
authored andcommitted
refactor: re-organize file per feature (#109)
This brings folder structure closer to the one recommended in the style guide. This is just the first step of more moves / renames
1 parent 13e2741 commit 335d520

File tree

17 files changed

+8
-8
lines changed

17 files changed

+8
-8
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/app/app.routes.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { provideRouter, RouterConfig } from '@angular/router';
22

3-
import {About} from './components/about/about';
4-
import {Home} from './components/home/home';
5-
import {RepoBrowser} from './components/repo-browser/repo-browser';
6-
import {RepoList} from './components/repo-list/repo-list';
7-
import {RepoDetail} from './components/repo-detail/repo-detail';
3+
import {About} from './about/about';
4+
import {Home} from './home/home';
5+
import {RepoBrowser} from './github/repo-browser/repo-browser';
6+
import {RepoList} from './github/repo-list/repo-list';
7+
import {RepoDetail} from './github/repo-detail/repo-detail';
88

99
const routes: RouterConfig = [
1010
{ path: '', redirectTo: 'home', terminal: true },

src/app/components/repo-browser/repo-browser.ts renamed to src/app/github/repo-browser/repo-browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from '@angular/core';
22
import { Router, ROUTER_DIRECTIVES } from '@angular/router';
3-
import { Github } from '../../services/github';
3+
import { Github } from '../shared/github';
44

55
@Component({
66
selector: 'repo-browser',

src/app/components/repo-detail/repo-detail.ts renamed to src/app/github/repo-detail/repo-detail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component, OnInit} from '@angular/core';
22
import {ROUTER_DIRECTIVES, ActivatedRoute, Router} from '@angular/router';
3-
import {Github} from '../../services/github';
3+
import {Github} from '../shared/github';
44

55
@Component({
66
selector: 'repo-detail',

0 commit comments

Comments
 (0)