Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 21e41bc

Browse files
author
Fyodor Loenko
committed
simplify UI and remove all unnecessary components and services
1 parent a44d8ae commit 21e41bc

38 files changed

+34
-498
lines changed

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@
77
[![Greenkeeper badge](https://badges.greenkeeper.io/fyodorio/ng-hotrod.svg)](https://greenkeeper.io/)
88
[![GitHub license](https://img.shields.io/github/license/loenko/ng-hotrod.svg)](https://github.com/loenko/ng-hotrod/blob/master/LICENSE)
99

10-
### Modern starter for AngularJS + Angular Material + ES2020 + Sass + Parcel + Prettier + hygen
10+
### Modern starter for AngularJS + Angular Material + ES2020 + Sass
1111

1212
<img src="https://raw.githubusercontent.com/loenko/file-storage/master/hotrod-logo.jpg" alt="ng-hotrod" width="480px;" >
1313

1414
#### [Demo](https://fyodorio.github.io/ng-hotrod/)
1515

1616
#### Includes
17-
* [AngularJS (1.7.9)](https://angularjs.org/)
17+
* [AngularJS](https://angularjs.org/) (1.7.9)
1818
* [Angular Material](https://material.angularjs.org/latest/)
19-
* [Material Design Icons](https://materialdesignicons.com/)
2019
* [Sass](https://sass-lang.com/)
2120
* [Babel](https://babeljs.io/) (latest ECMAScript + DI annotation plugin)
2221
* [Parcel](https://parceljs.org/) (as modern zero-config Webpack alternative)
2322
* [ESLint](https://eslint.org/)
2423
* [Prettier](https://prettier.io/) for code formatting
2524
* [hygen](https://www.hygen.io/) for code scaffolding
25+
* [husky](https://github.com/typicode/husky) for pre-commit hooks
2626

2727
#### Scripts
2828
* `npm install` - install all the dependencies

‎package.json‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ng-hotrod",
3-
"version": "0.3.0",
4-
"description": "Simple starter for AngularJS + Angular Material + ES2020 + Sass + Parcel",
3+
"version": "0.4.0",
4+
"description": "Simple starter for AngularJS + Angular Material + ES2020 + Sass",
55
"main": "index.js",
66
"author": "Fyodor Loenko",
77
"license": "MIT",
@@ -26,7 +26,6 @@
2626
"devDependencies": {
2727
"@babel/core": "^7.8.4",
2828
"@babel/preset-env": "^7.8.4",
29-
"@mdi/font": "^4.9.95",
3029
"angular-mocks": "^1.7.4",
3130
"babel-plugin-angularjs-annotate": "^0.10.0",
3231
"eslint": "^6.8.0",

‎src/app/app.html‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
<div class="app" layout="column" layout-fill flex>
2-
3-
<sidebar></sidebar>
42
<navbar></navbar>
5-
<content></content>
6-
3+
<page-home flex></page-home>
74
</div>

‎src/app/components/components.js‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
import Navbar from './navbar/navbar';
2-
import Sidebar from './sidebar/sidebar';
3-
import Content from './content/content';
42
import PageHome from './page-home/page-home';
5-
import PageAbout from './page-about/page-about';
6-
import PageCardManager from './page-card-manager/page-card-manager';
7-
import PageCard from './page-card/page-card';
83

9-
const componentsModule = angular.module('components', [
10-
Navbar,
11-
Sidebar,
12-
Content,
13-
PageHome,
14-
PageAbout,
15-
PageCardManager,
16-
PageCard
17-
]).name;
4+
const componentsModule = angular.module('components', [Navbar, PageHome]).name;
185

196
export default componentsModule;

‎src/app/components/content/content.component.js‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎src/app/components/content/content.controller.js‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎src/app/components/content/content.html‎

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎src/app/components/content/content.js‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎src/app/components/content/content.scss‎

Whitespace-only changes.

‎src/app/components/navbar/navbar.controller.js‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
11
class NavbarController {
22
/* @ngInject */
3-
constructor(UiStateService, NavigationService, DataService) {
4-
this.UiStateService = UiStateService;
3+
constructor(NavigationService) {
54
this.NavigationService = NavigationService;
6-
this.DataService = DataService;
7-
}
8-
9-
openSidebar() {
10-
this.UiStateService.toggleSidebar('left');
11-
}
12-
13-
openMenu(mdMenu, ev) {
14-
this.UiStateService.openMenu(mdMenu, ev);
15-
}
16-
17-
clearData() {
18-
this.DataService.clearData();
19-
this.NavigationService.setPage(0);
205
}
216
}
227

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /