scss file migration
This commit is contained in:
parent
8b116216b8
commit
2735418e2a
|
@ -127,7 +127,7 @@
|
||||||
"schematics": {
|
"schematics": {
|
||||||
"@schematics/angular:component": {
|
"@schematics/angular:component": {
|
||||||
"prefix": "app",
|
"prefix": "app",
|
||||||
"styleext": "css"
|
"styleext": "scss"
|
||||||
},
|
},
|
||||||
"@schematics/angular:directive": {
|
"@schematics/angular:directive": {
|
||||||
"prefix": "app"
|
"prefix": "app"
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { ElectronService } from 'ngx-electron';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
templateUrl: './app.component.html',
|
templateUrl: './app.component.html',
|
||||||
styleUrls: ['./app.component.css']
|
styleUrls: ['./app.component.scss']
|
||||||
})
|
})
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
title = 'app';
|
title = 'app';
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { AccountsService, LocalAccount } from "../../services/accounts.service";
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-left-side-bar",
|
selector: "app-left-side-bar",
|
||||||
templateUrl: "./left-side-bar.component.html",
|
templateUrl: "./left-side-bar.component.html",
|
||||||
styleUrls: ["./left-side-bar.component.css"]
|
styleUrls: ["./left-side-bar.component.scss"]
|
||||||
})
|
})
|
||||||
export class LeftSideBarComponent implements OnInit, OnDestroy {
|
export class LeftSideBarComponent implements OnInit, OnDestroy {
|
||||||
accounts: AccountWrapper[] = [];
|
accounts: AccountWrapper[] = [];
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { AccountWrapper } from "../../models/account.models";
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-stream",
|
selector: "app-stream",
|
||||||
templateUrl: "./stream.component.html",
|
templateUrl: "./stream.component.html",
|
||||||
styleUrls: ["./stream.component.css"]
|
styleUrls: ["./stream.component.scss"]
|
||||||
})
|
})
|
||||||
export class StreamComponent implements OnInit {
|
export class StreamComponent implements OnInit {
|
||||||
private _stream: Stream;
|
private _stream: Stream;
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-streams-selection-footer',
|
selector: 'app-streams-selection-footer',
|
||||||
templateUrl: './streams-selection-footer.component.html',
|
templateUrl: './streams-selection-footer.component.html',
|
||||||
styleUrls: ['./streams-selection-footer.component.css']
|
styleUrls: ['./streams-selection-footer.component.scss']
|
||||||
})
|
})
|
||||||
export class StreamsSelectionFooterComponent implements OnInit {
|
export class StreamsSelectionFooterComponent implements OnInit {
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { TootWrapper } from "../../models/stream.models";
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-toot",
|
selector: "app-toot",
|
||||||
templateUrl: "./toot.component.html",
|
templateUrl: "./toot.component.html",
|
||||||
styleUrls: ["./toot.component.css"]
|
styleUrls: ["./toot.component.scss"]
|
||||||
})
|
})
|
||||||
export class TootComponent implements OnInit {
|
export class TootComponent implements OnInit {
|
||||||
@Input() toot: TootWrapper;
|
@Input() toot: TootWrapper;
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { Observable } from "rxjs";
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-register-new-account",
|
selector: "app-register-new-account",
|
||||||
templateUrl: "./register-new-account.component.html",
|
templateUrl: "./register-new-account.component.html",
|
||||||
styleUrls: ["./register-new-account.component.css"]
|
styleUrls: ["./register-new-account.component.scss"]
|
||||||
})
|
})
|
||||||
export class RegisterNewAccountComponent implements OnInit {
|
export class RegisterNewAccountComponent implements OnInit {
|
||||||
@Input() mastodonFullHandle: string;
|
@Input() mastodonFullHandle: string;
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { StreamsService } from "../../services/streams.service";
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-streams-main-display",
|
selector: "app-streams-main-display",
|
||||||
templateUrl: "./streams-main-display.component.html",
|
templateUrl: "./streams-main-display.component.html",
|
||||||
styleUrls: ["./streams-main-display.component.css"]
|
styleUrls: ["./streams-main-display.component.scss"]
|
||||||
})
|
})
|
||||||
export class StreamsMainDisplayComponent implements OnInit {
|
export class StreamsMainDisplayComponent implements OnInit {
|
||||||
streams: Stream[] = [];
|
streams: Stream[] = [];
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Http, Response, RequestOptions } from '@angular/http';
|
import { Http, Response, RequestOptions } from '@angular/http';
|
||||||
|
import { map } from "rxjs/operators";
|
||||||
|
|
||||||
import { ApiRoutes } from './models/api.settings';
|
import { ApiRoutes } from './models/api.settings';
|
||||||
|
import { TokenData } from './models/mastodon.interfaces';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AppService {
|
export class AppService {
|
||||||
|
@ -9,7 +12,7 @@ export class AppService {
|
||||||
constructor(private readonly httpService: Http) {
|
constructor(private readonly httpService: Http) {
|
||||||
}
|
}
|
||||||
|
|
||||||
createNewApplication(mastodonUrl: string): Promise<> {
|
createNewApplication(mastodonUrl: string): Promise<any> {
|
||||||
const url = mastodonUrl + this.apiRoutes.createApp;
|
const url = mastodonUrl + this.apiRoutes.createApp;
|
||||||
|
|
||||||
const options = new RequestOptions();
|
const options = new RequestOptions();
|
||||||
|
@ -28,10 +31,9 @@ export class AppService {
|
||||||
}))
|
}))
|
||||||
.toPromise()
|
.toPromise()
|
||||||
|
|
||||||
|
// .then((res: Response) => {
|
||||||
.then((res: Response) => {
|
// const result = res.json();
|
||||||
const result = res.json();
|
// return result as TokenData;
|
||||||
return result as TokenData;
|
// });
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue