Skip to content

Commit

Permalink
fix(app): use camelCase class across the project
Browse files Browse the repository at this point in the history
  • Loading branch information
bartholomej committed Sep 22, 2019
1 parent b8de66b commit 9a80050
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ng add ngx-scrolltop

_Module imported and all settings automatically set in your project._

_Now just see some [options](#options)_
_Now just see some [options](#options)._

### Manually (alternatively) 🛠

Expand Down Expand Up @@ -78,7 +78,7 @@ In **app.component.html** you just need to add your new button. Usually at the e
| **size** | number | 40 | Button size [in pixels]. _(Symbol will be resized automatically_) |
| **symbol** | string | | You can use utf8 chars for customizing symbol. For example: `` |
| **position** | 'left' \| 'right' | 'right' | Left or right, that is the question... |
| **theme** | [NgxScrolltopTheme](projects/ngx-scrolltop/src/lib/ngx-scrolltop.interfaces.ts) | 'gray' | Material color themes |
| **theme** | [NgxScrollTopTheme](projects/ngx-scrolltop/src/lib/ngx-scrolltop.interfaces.ts) | 'gray' | Material color themes |

### Options: Example

Expand Down
4 changes: 2 additions & 2 deletions projects/example/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NgxScrolltopModule } from 'ngx-scrolltop';
import { NgxScrollTopModule } from 'ngx-scrolltop';

@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, AppRoutingModule, NgxScrolltopModule],
imports: [BrowserModule, AppRoutingModule, NgxScrollTopModule],
providers: [],
bootstrap: [AppComponent],
})
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-scrolltop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ In **app.component.html** you just need to add your new button. Usually at the e
| **size** | number | 40 | Button size [in pixels]. _(Symbol will be resized automatically_) |
| **symbol** | string | | You can use utf8 chars for customizing symbol. For example: `` |
| **position** | 'left' \| 'right' | 'right' | Left or right, that is the question... |
| **theme** | [NgxScrolltopTheme](projects/ngx-scrolltop/src/lib/ngx-scrolltop.interfaces.ts) | 'gray' | Material color themes |
| **theme** | [NgxScrollTopTheme](projects/ngx-scrolltop/src/lib/ngx-scrolltop.interfaces.ts) | 'gray' | Material color themes |

### Options: Example

Expand Down
12 changes: 6 additions & 6 deletions projects/ngx-scrolltop/src/lib/ngx-scrolltop.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { NgxScrolltopComponent } from './ngx-scrolltop.component';
import { NgxScrollTopComponent } from './ngx-scrolltop.component';

describe('NgxScrolltopComponent', () => {
let component: NgxScrolltopComponent;
let fixture: ComponentFixture<NgxScrolltopComponent>;
describe('NgxScrollTopComponent', () => {
let component: NgxScrollTopComponent;
let fixture: ComponentFixture<NgxScrollTopComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ NgxScrolltopComponent ]
declarations: [ NgxScrollTopComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(NgxScrolltopComponent);
fixture = TestBed.createComponent(NgxScrollTopComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
Expand Down
14 changes: 7 additions & 7 deletions projects/ngx-scrolltop/src/lib/ngx-scrolltop.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ import {
} from '@angular/core';
import { DOCUMENT } from '@angular/common';
import {
NgxScrolltopMode,
NgxScrolltopTheme,
NgxScrolltopPosition,
NgxScrollTopMode,
NgxScrollTopTheme,
NgxScrollTopPosition,
} from './ngx-scrolltop.interfaces';

@Component({
selector: 'ngx-scrolltop',
templateUrl: './ngx-scrolltop.component.html',
styleUrls: ['./ngx-scrolltop.component.scss'],
})
export class NgxScrolltopComponent implements OnInit {
export class NgxScrollTopComponent implements OnInit {
@Input() backgroundColor: string;
@Input() symbolColor: string;
@Input() size: number;
@Input() symbol: string;
@Input() position: NgxScrolltopPosition = 'right';
@Input() theme: NgxScrolltopTheme = 'gray';
@Input() mode: NgxScrolltopMode = 'classic';
@Input() position: NgxScrollTopPosition = 'right';
@Input() theme: NgxScrollTopTheme = 'gray';
@Input() mode: NgxScrollTopMode = 'classic';

public show = false;
private scrolledFromTop = false;
Expand Down
6 changes: 3 additions & 3 deletions projects/ngx-scrolltop/src/lib/ngx-scrolltop.interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Material colors https://material.io/design/color
export type NgxScrolltopTheme =
export type NgxScrollTopTheme =
| 'black'
| 'white'
| 'gray'
Expand All @@ -14,6 +14,6 @@ export type NgxScrolltopTheme =
| 'pink'
| 'red';

export type NgxScrolltopMode = 'classic' | 'smart';
export type NgxScrollTopMode = 'classic' | 'smart';

export type NgxScrolltopPosition = 'right' | 'left';
export type NgxScrollTopPosition = 'right' | 'left';
8 changes: 4 additions & 4 deletions projects/ngx-scrolltop/src/lib/ngx-scrolltop.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { NgModule } from '@angular/core';
import { NgxScrolltopComponent } from './ngx-scrolltop.component';
import { NgxScrollTopComponent } from './ngx-scrolltop.component';
import { CommonModule } from '@angular/common';

@NgModule({
declarations: [NgxScrolltopComponent],
declarations: [NgxScrollTopComponent],
imports: [CommonModule],
exports: [NgxScrolltopComponent],
exports: [NgxScrollTopComponent],
})
export class NgxScrolltopModule {}
export class NgxScrollTopModule {}
6 changes: 3 additions & 3 deletions projects/ngx-scrolltop/src/lib/ngx-scrolltop.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { TestBed } from '@angular/core/testing';

import { NgxScrolltopService } from './ngx-scrolltop.service';
import { NgxScrollTopService } from './ngx-scrolltop.service';

describe('NgxScrolltopService', () => {
describe('NgxScrollTopService', () => {
beforeEach(() => TestBed.configureTestingModule({}));

it('should be created', () => {
const service: NgxScrolltopService = TestBed.get(NgxScrolltopService);
const service: NgxScrollTopService = TestBed.get(NgxScrollTopService);
expect(service).toBeTruthy();
});
});
2 changes: 1 addition & 1 deletion projects/ngx-scrolltop/src/lib/ngx-scrolltop.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class NgxScrolltopService {
export class NgxScrollTopService {

constructor() { }
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function addDeclarationToAppModule(appModule: string): Rule {
source,
modulePath,
'imports',
'NgxScrolltopModule',
'NgxScrollTopModule',
'ngx-scrolltop'
);

Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/src/ng-add/schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/schema",
"id": "SchematicsNgxScrolltopAdd",
"id": "SchematicsNgxScrollTopAdd",
"title": "ngx-scrolltop Add Options Schema",
"type": "object",
"properties": {
Expand Down

0 comments on commit 9a80050

Please sign in to comment.