commit
This commit is contained in:
27
angular.json
27
angular.json
@@ -7,7 +7,14 @@
|
||||
"projectType": "application",
|
||||
"schematics": {
|
||||
"@schematics/angular:component": {
|
||||
"style": "scss"
|
||||
"style": "scss",
|
||||
"skipTests": true
|
||||
},
|
||||
"@schematics/angular:module": {
|
||||
"skipTests": true
|
||||
},
|
||||
"@schematics/angular:service": {
|
||||
"skipTests": true
|
||||
},
|
||||
"@schematics/angular:application": {
|
||||
"strict": true
|
||||
@@ -26,13 +33,8 @@
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"tsConfig": "tsconfig.app.json",
|
||||
"inlineStyleLanguage": "scss",
|
||||
"assets": [
|
||||
"src/favicon.ico",
|
||||
"src/assets"
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
],
|
||||
"assets": ["src/favicon.ico", "src/assets"],
|
||||
"styles": ["src/styles.scss"],
|
||||
"scripts": []
|
||||
},
|
||||
"configurations": {
|
||||
@@ -94,13 +96,8 @@
|
||||
"tsConfig": "tsconfig.spec.json",
|
||||
"karmaConfig": "karma.conf.js",
|
||||
"inlineStyleLanguage": "scss",
|
||||
"assets": [
|
||||
"src/favicon.ico",
|
||||
"src/assets"
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
],
|
||||
"assets": ["src/favicon.ico", "src/assets"],
|
||||
"styles": ["src/styles.scss"],
|
||||
"scripts": []
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ import { AppRoutingModule } from "./app-routing.module";
|
||||
// 引入根组件
|
||||
import { AppComponent } from "./app.component";
|
||||
// @ngModule装饰器 @ngModule接受一个元数据对象 告诉angular如何编译和启动对象\
|
||||
import { CoreModule } from "./universalModel/core.module";
|
||||
import { CoreModule } from "./model/core.module";
|
||||
// 在根模块中引入http模块
|
||||
import { HttpClientModule } from "@angular/common/http";
|
||||
|
||||
|
||||
@@ -4,15 +4,12 @@
|
||||
* @Author: Ruin 🍭
|
||||
* @Date: 2022-03-03 17:06:01
|
||||
* @LastEditors: 刘引
|
||||
* @LastEditTime: 2022-03-09 11:44:08
|
||||
* @LastEditTime: 2022-03-09 11:54:23
|
||||
*/
|
||||
import { NgModule } from "@angular/core";
|
||||
|
||||
import { HomeComponent } from "./home.component";
|
||||
import { HeadComponent } from "./components/head/head.component";
|
||||
import { BodyComponent } from "./components/body/body.component";
|
||||
|
||||
// import { AppRoutingModule } from "../../app-routing.module";
|
||||
import { PublicModule } from "src/app/universalModel/public.module";
|
||||
@NgModule({
|
||||
declarations: [HomeComponent, HeadComponent, BodyComponent],
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { InfoComponent } from './info.component';
|
||||
|
||||
describe('InfoComponent', () => {
|
||||
let component: InfoComponent;
|
||||
let fixture: ComponentFixture<InfoComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ InfoComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(InfoComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -1,25 +0,0 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { MineComponent } from './mine.component';
|
||||
|
||||
describe('MineComponent', () => {
|
||||
let component: MineComponent;
|
||||
let fixture: ComponentFixture<MineComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ MineComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(MineComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -4,14 +4,13 @@
|
||||
* @Author: Ruin 🍭
|
||||
* @Date: 2022-03-04 10:42:33
|
||||
* @LastEditors: 刘引
|
||||
* @LastEditTime: 2022-03-09 11:31:48
|
||||
* @LastEditTime: 2022-03-09 11:56:39
|
||||
*/
|
||||
import { NgModule } from "@angular/core";
|
||||
|
||||
import { InfoComponent } from "./components/info/info.component";
|
||||
import { MineComponent } from "./components/mine/mine.component";
|
||||
import { UserComponent } from "./user.component";
|
||||
import { PublicModule } from "src/app/universalModel/public.module";
|
||||
import { PublicModule } from "src/app/model/public.module";
|
||||
@NgModule({
|
||||
declarations: [InfoComponent, MineComponent, UserComponent],
|
||||
imports: [PublicModule],
|
||||
|
||||
Reference in New Issue
Block a user