Commit 8659dc11 authored by 李维's avatar 李维

Update to new template

parent afa0e61e
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
# dependencies # dependencies
/node_modules /node_modules
/publish
# profiling files # profiling files
chrome-profiler-events*.json chrome-profiler-events*.json
......
This diff is collapsed.
...@@ -3,13 +3,9 @@ ...@@ -3,13 +3,9 @@
"version": 1, "version": 1,
"newProjectRoot": "projects", "newProjectRoot": "projects",
"projects": { "projects": {
"ng-one": { "ng-template-generator": {
"projectType": "application", "projectType": "application",
"schematics": { "schematics": {},
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "", "root": "",
"sourceRoot": "src", "sourceRoot": "src",
"prefix": "app", "prefix": "app",
...@@ -17,39 +13,26 @@ ...@@ -17,39 +13,26 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"outputPath": "dist", "outputPath": "dist/ng-template-generator",
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"aot": false, "aot": true,
"assets": [ "assets": [
"src/favicon.ico", "src/favicon.ico",
"src/assets", "src/assets",
{ "glob": "**/*", "input": "src/assets/play/libs/service-worker/", "output": "/" },
{ {
"glob": "**/*", "glob": "**/*",
"input": "./node_modules/@ant-design/icons-angular/src/inline-svg/", "input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
"output": "/assets/" "output": "/assets/"
},
{
"glob": "**/*",
"input": "./dist/game/",
"output": "/assets/cocos/"
} }
], ],
"styles": [ "styles": [
"src/styles.scss", "node_modules/ng-zorro-antd/ng-zorro-antd.min.css",
"./node_modules/ng-zorro-antd/ng-zorro-antd.min.css", "src/styles.css"
"./node_modules/font-awesome/css/font-awesome.css",
"./node_modules/bootstrap/dist/css/bootstrap.min.css",
"./node_modules/animate.css/animate.min.css"
], ],
"scripts": [ "scripts": []
"src/assets/play/libs/audio-recorder/lame.min.js",
"src/assets/play/libs/audio-recorder/worker.js",
"src/assets/play/libs/audio-recorder/recorder.js"
]
}, },
"configurations": { "configurations": {
"production": { "production": {
...@@ -64,28 +47,39 @@ ...@@ -64,28 +47,39 @@
"sourceMap": false, "sourceMap": false,
"extractCss": true, "extractCss": true,
"namedChunks": false, "namedChunks": false,
"aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": false, "vendorChunk": false,
"buildOptimizer": true "buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
} }
} }
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": { "options": {
"browserTarget": "ng-one:build" "browserTarget": "ng-template-generator:build"
}, },
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "ng-one:build:production" "browserTarget": "ng-template-generator:build:production"
} }
} }
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",
"options": { "options": {
"browserTarget": "ng-one:build" "browserTarget": "ng-template-generator:build"
} }
}, },
"test": { "test": {
...@@ -100,7 +94,8 @@ ...@@ -100,7 +94,8 @@
"src/assets" "src/assets"
], ],
"styles": [ "styles": [
"src/styles.scss" "node_modules/ng-zorro-antd/ng-zorro-antd.min.css",
"src/styles.css"
], ],
"scripts": [] "scripts": []
} }
...@@ -122,15 +117,19 @@ ...@@ -122,15 +117,19 @@
"builder": "@angular-devkit/build-angular:protractor", "builder": "@angular-devkit/build-angular:protractor",
"options": { "options": {
"protractorConfig": "e2e/protractor.conf.js", "protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "ng-one:serve" "devServerTarget": "ng-template-generator:serve"
}, },
"configurations": { "configurations": {
"production": { "production": {
"devServerTarget": "ng-one:serve:production" "devServerTarget": "ng-template-generator:serve:production"
} }
} }
} }
} }
}}, }
"defaultProject": "ng-one" },
"defaultProject": "ng-template-generator",
"cli": {
"analytics": "0bdaa560-1d2a-46f5-b14c-1f80decb439e"
}
} }
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* 运行 npm run publish T_01,T_02,T_03,T_04 命令来分别打包 T_01,T_02,T_03,T_04 这四个模板,注意逗号要用英文的 * 运行 npm run publish T_01,T_02,T_03,T_04 命令来分别打包 T_01,T_02,T_03,T_04 这四个模板,注意逗号要用英文的
* 运行 npm run publish all 命令来打包所有模板 * 运行 npm run publish all 命令来打包所有模板
*/ */
const spawn = require('child_process').spawn; const spawn = require('child_process').spawn;
const path = require("path"); const path = require("path");
const fs = require("fs"); const fs = require("fs");
...@@ -12,9 +12,9 @@ const os = require('os'); ...@@ -12,9 +12,9 @@ const os = require('os');
const compressing = require("compressing"); const compressing = require("compressing");
//Linux系统上'Linux' //Linux系统上'Linux'
//macOS 系统上'Darwin' //macOS 系统上'Darwin'
//Windows系统上'Windows_NT' //Windows系统上'Windows_NT'
let sysType = os.type(); let sysType = os.type();
Date.prototype.Format = function(fmt) { Date.prototype.Format = function(fmt) {
var o = { var o = {
...@@ -44,9 +44,9 @@ const runSpawn = async function (){ ...@@ -44,9 +44,9 @@ const runSpawn = async function (){
await new Promise(function(resolve,reject){ await new Promise(function(resolve,reject){
let pkg = require("../package.json"); let pkg = require("../package.json");
let ls; let ls;
if(sysType==="Windows_NT"){ if(sysType==="Windows_NT"){
//ng build --prod --build--optimizer --base-href /ng-one/ //ng build --prod --build--optimizer --base-href /ng-one/
ls = spawn("cmd.exe", ['/c', 'ng', 'build', '--prod', '--build--optimizer', '--base-href', '/template-base-href/'] ); ls = spawn("cmd.exe", ['/c', 'ng', 'build', '--prod', '--build--optimizer', '--base-href', '/template-base-href/'] );
...@@ -57,7 +57,7 @@ const runSpawn = async function (){ ...@@ -57,7 +57,7 @@ const runSpawn = async function (){
ls.stdout.on('data', (data) => { ls.stdout.on('data', (data) => {
console.log(` ${data}`); console.log(` ${data}`);
}); });
ls.stderr.on('data', (data) => { ls.stderr.on('data', (data) => {
console.log(`stderr: ${data}`); console.log(`stderr: ${data}`);
reject(); reject();
...@@ -66,13 +66,13 @@ const runSpawn = async function (){ ...@@ -66,13 +66,13 @@ const runSpawn = async function (){
ls.on('close', (code) => { ls.on('close', (code) => {
console.log(`child process exited with code ${code}`); console.log(`child process exited with code ${code}`);
//要压缩的目录 //要压缩的目录
let zippath = path.resolve(__dirname,"../dist"); let zippath = path.resolve(__dirname,"../dist", pkg.name);
//压缩包的存放目录 //压缩包的存放目录
let date = new Date(); let date = new Date();
let zipname = pkg.name+"_"+date.Format("yyyyMMdd hh-mm-ss"); let zipname = pkg.name+"_"+date.Format("yyyyMMdd hh-mm-ss");
let zipdir = path.resolve(__dirname,"../publish/"+zipname+".zip"); let zipdir = path.resolve(__dirname,"../publish/"+zipname+".zip");
clean(zipdir); //删除原有的包 clean(zipdir); //删除原有的包
const tarStream = new compressing.zip.Stream(); const tarStream = new compressing.zip.Stream();
fs.readdir(zippath,function(err,files){ fs.readdir(zippath,function(err,files){
if(err){ if(err){
...@@ -84,16 +84,16 @@ const runSpawn = async function (){ ...@@ -84,16 +84,16 @@ const runSpawn = async function (){
tarStream.addEntry(zippath+"/"+files[i]); tarStream.addEntry(zippath+"/"+files[i]);
} }
let writeStream = fs.createWriteStream(zipdir); let writeStream = fs.createWriteStream(zipdir);
tarStream.pipe(writeStream); tarStream.pipe(writeStream);
writeStream.on('close', () => { writeStream.on('close', () => {
console.log(`模板 ${pkg.name} 打包已完成!`); console.log(`模板 ${pkg.name} 打包已完成!`);
resolve(); resolve();
}) })
}); });
}); });
}); });
} }
// let projects = ""; // let projects = "";
...@@ -101,7 +101,7 @@ const runSpawn = async function (){ ...@@ -101,7 +101,7 @@ const runSpawn = async function (){
// console.log("缺少参数"); // console.log("缺少参数");
// return; // return;
// } // }
// projects = process.argv[2]; // projects = process.argv[2];
let exec = async function(){ let exec = async function(){
//压缩模板 //压缩模板
...@@ -110,6 +110,5 @@ let exec = async function(){ ...@@ -110,6 +110,5 @@ let exec = async function(){
exec(); exec();
\ No newline at end of file
This diff is collapsed.
...@@ -2,77 +2,57 @@ ...@@ -2,77 +2,57 @@
"name": "ng-template-generator", "name": "ng-template-generator",
"version": "0.0.1", "version": "0.0.1",
"scripts": { "scripts": {
"start": "ng serve --host=0.0.0.0", "start": "ng serve",
"build": "ng build --build--optimizer --aot --base-href /JGT/v3/", "build": "ng build --build--optimizer --aot --base-href /JGT/v3/",
"publish": "node ./bin/publish.js" "publish": "node ./bin/publish.js",
"ng": "ng",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^7.2.10", "@angular/animations": "~9.0.2",
"@angular/cdk": "^7.2.2", "@angular/common": "~9.0.2",
"@angular/common": "^7.2.10", "@angular/compiler": "~9.0.2",
"@angular/compiler": "^7.2.10", "@angular/core": "~9.0.2",
"@angular/core": "^7.2.10", "@angular/forms": "~9.0.2",
"@angular/flex-layout": "^7.0.0-beta.24", "@angular/platform-browser": "~9.0.2",
"@angular/forms": "^7.2.10", "@angular/platform-browser-dynamic": "~9.0.2",
"@angular/http": "^7.2.10", "@angular/router": "~9.0.2",
"@angular/material": "^7.2.2", "@fortawesome/angular-fontawesome": "^0.6.0",
"@angular/platform-browser": "^7.2.10", "@fortawesome/fontawesome-svg-core": "^1.2.27",
"@angular/platform-browser-dynamic": "^7.2.10", "@fortawesome/free-regular-svg-icons": "^5.12.1",
"@angular/platform-server": "^7.2.10", "@fortawesome/free-solid-svg-icons": "^5.12.1",
"@angular/router": "^7.2.10", "@tweenjs/tween.js": "~18.5.0",
"@tweenjs/tween.js": "17.3.0", "ali-oss": "^6.5.1",
"ali-oss": "^6.0.0", "compressing": "^1.5.0",
"angular-bootstrap-colorpicker": "^3.0.32", "ng-zorro-antd": "^8.5.2",
"angular-cropperjs": "^1.0.1", "rxjs": "~6.5.4",
"angular2-draggable": "^2.1.9",
"angular2-fontawesome": "^5.2.1",
"angular2-uuid": "^1.1.1",
"angularx-qrcode": "^1.5.3",
"animate.css": "^3.7.0",
"bootstrap": "^4.1.1",
"browser-image-compression": "^1.0.5",
"compressing": "^1.4.0",
"core-js": "^2.6.1",
"cropperjs": "1.4.1",
"css-element-queries": "^1.0.2",
"decimal.js": "^10.0.1",
"font-awesome": "^4.7.0",
"hammerjs": "^2.0.8",
"install": "^0.12.2",
"karma-cli": "^2.0.0",
"lodash": "^4.17.10",
"nedb": "^1.8.0",
"ng-lottie": "^0.3.1",
"ng-zorro-antd": "^7.2.0",
"ngx-color-picker": "^9.0.0",
"node-sass": "^4.14.0",
"npm": "^6.5.0",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.3.3",
"rxjs-tslint": "^0.1.6",
"spark-md5": "^3.0.0", "spark-md5": "^3.0.0",
"webpack": "^4.28.2", "tslib": "^1.10.0",
"zone.js": "^0.8.26" "zone.js": "~0.10.2",
"node-sass": "^4.0.0"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^0.11.4", "@angular-devkit/build-angular": "~0.900.3",
"@angular/cli": "^7.2.10", "@angular/cli": "~9.0.3",
"@angular/compiler-cli": "^7.2.10", "@angular/compiler-cli": "~9.0.2",
"@angular/language-service": "^7.2.10", "@angular/language-service": "~9.0.2",
"@types/jasmine": "^3.3.5", "@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"@types/node": "^10.12.18", "@types/node": "^12.11.1",
"codelyzer": "^4.5.0", "codelyzer": "^5.1.2",
"jasmine-core": "^3.3.0", "jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "^4.2.1", "jasmine-spec-reporter": "~4.2.1",
"karma": "^3.1.4", "karma": "~4.3.0",
"karma-chrome-launcher": "^2.2.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.0.0", "karma-coverage-istanbul-reporter": "~2.1.0",
"karma-jasmine": "^2.0.1", "karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.0", "karma-jasmine-html-reporter": "^1.4.2",
"protractor": "^5.4.2", "protractor": "~5.4.3",
"ts-node": "~5.0.1", "ts-node": "~8.3.0",
"typescript": "3.1.1" "tslint": "~5.18.0",
"typescript": "~3.7.5"
} }
} }
...@@ -6,7 +6,6 @@ import { FormsModule } from '@angular/forms'; ...@@ -6,7 +6,6 @@ import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http'; import { HttpClientModule } from '@angular/common/http';
import { NgZorroAntdModule, NZ_I18N, zh_CN } from 'ng-zorro-antd'; import { NgZorroAntdModule, NZ_I18N, zh_CN } from 'ng-zorro-antd';
import { NzButtonModule } from 'ng-zorro-antd/button'; import { NzButtonModule } from 'ng-zorro-antd/button';
import {Angular2FontawesomeModule} from 'angular2-fontawesome/angular2-fontawesome';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { FormComponent } from './form/form.component'; import { FormComponent } from './form/form.component';
...@@ -28,6 +27,10 @@ import {TimePipe} from "./pipes/time.pipe"; ...@@ -28,6 +27,10 @@ import {TimePipe} from "./pipes/time.pipe";
import {CustomHotZoneComponent} from "./common/custom-hot-zone/custom-hot-zone.component"; import {CustomHotZoneComponent} from "./common/custom-hot-zone/custom-hot-zone.component";
registerLocaleData(zh); registerLocaleData(zh);
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
import { fas } from '@fortawesome/free-solid-svg-icons';
import { far } from '@fortawesome/free-regular-svg-icons';
@NgModule({ @NgModule({
declarations: [ declarations: [
AppComponent, AppComponent,
...@@ -48,7 +51,7 @@ registerLocaleData(zh); ...@@ -48,7 +51,7 @@ registerLocaleData(zh);
HttpClientModule, HttpClientModule,
BrowserAnimationsModule, BrowserAnimationsModule,
BrowserModule, BrowserModule,
Angular2FontawesomeModule, FontAwesomeModule,
NgZorroAntdModule, NgZorroAntdModule,
//ColorPickerModule //ColorPickerModule
...@@ -59,4 +62,8 @@ registerLocaleData(zh); ...@@ -59,4 +62,8 @@ registerLocaleData(zh);
], ],
bootstrap: [AppComponent] bootstrap: [AppComponent]
}) })
export class AppModule { } export class AppModule {
constructor(library: FaIconLibrary) {
library.addIconPacks(fas, far);
}
}
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
(click)="onBtnClearAudio()" (click)="onBtnClearAudio()"
*ngIf="withRmBtn && (audioUrl || audioBlob)" *ngIf="withRmBtn && (audioUrl || audioBlob)"
> >
<fa name="close"></fa> <fa-icon name="close"></fa-icon>
</div> </div>
<div <div
class="btn-record" class="btn-record"
......
...@@ -36,9 +36,9 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -36,9 +36,9 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
@Output() @Output()
save = new EventEmitter(); save = new EventEmitter();
@ViewChild('canvas') canvas: ElementRef; @ViewChild('canvas', {static: true }) canvas: ElementRef;
@ViewChild('wrap') wrap: ElementRef; @ViewChild('wrap', {static: true }) wrap: ElementRef;
@ViewChild('pasteDataContainer') pasteDataContainer: ElementRef; @ViewChild('pasteDataContainer', {static: true }) pasteDataContainer: ElementRef;
@HostListener('window:resize', ['$event']) @HostListener('window:resize', ['$event'])
onResize(event) { onResize(event) {
......
...@@ -52,7 +52,7 @@ export class LessonTitleConfigComponent implements OnInit, OnChanges, OnDestroy, ...@@ -52,7 +52,7 @@ export class LessonTitleConfigComponent implements OnInit, OnChanges, OnDestroy,
}; };
prevIcons = []; prevIcons = [];
prevType = ''; prevType = '';
@ViewChild('titleEl') titleEl: ElementRef; @ViewChild('titleEl', {static: true }) titleEl: ElementRef;
titleEW = null; titleEW = null;
@Input() @Input()
......
...@@ -18,7 +18,7 @@ import { ...@@ -18,7 +18,7 @@ import {
export class PlayerContentWrapperComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit { export class PlayerContentWrapperComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
@ViewChild('wrapperEl') wrapperEl: ElementRef; @ViewChild('wrapperEl', {static: true }) wrapperEl: ElementRef;
// // aspect ratio? // // aspect ratio?
@Input() ratio; @Input() ratio;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="p-upload-progress-bg" *ngIf="uploading"> <div class="p-upload-progress-bg" *ngIf="uploading">
<div class="i-bg" [style.width]="progress+'%'"></div> <div class="i-bg" [style.width]="progress+'%'"></div>
<div class="i-text"> <div class="i-text">
<fa name="cloud-upload"></fa> <fa-icon name="cloud-upload"></fa-icon>
Uploading... Uploading...
</div> </div>
</div> </div>
......
...@@ -70,14 +70,14 @@ ...@@ -70,14 +70,14 @@
[ngClass]="{'smart-bar': showUploadBtn}" > [ngClass]="{'smart-bar': showUploadBtn}" >
<div class="i-bg" [style.width]="progress+'%'"></div> <div class="i-bg" [style.width]="progress+'%'"></div>
<div class="i-text"> <div class="i-text">
<fa name="cloud-upload"></fa> <fa-icon name="cloud-upload"></fa-icon>
Uploading... Uploading...
</div> </div>
</div> </div>
<div class="p-upload-check-bg" *ngIf="checking"> <div class="p-upload-check-bg" *ngIf="checking">
<div class="i-bg" [style.width]="progress+'%'"></div> <div class="i-bg" [style.width]="progress+'%'"></div>
<div class="i-text"> <div class="i-text">
<fa name="cloud-upload"></fa> <fa-icon name="cloud-upload"></fa-icon>
<i nz-icon type="loading" theme="outline"></i>Checking... <i nz-icon type="loading" theme="outline"></i>Checking...
</div> </div>
</div> </div>
......
...@@ -24,7 +24,7 @@ export class UploadVideoComponent implements OnChanges, OnDestroy { ...@@ -24,7 +24,7 @@ export class UploadVideoComponent implements OnChanges, OnDestroy {
@Input() @Input()
videoUrl = ''; videoUrl = '';
@ViewChild('videoNode') @ViewChild('videoNode', {static: true })
videoNode: ElementRef; videoNode: ElementRef;
// @Input() // @Input()
......
...@@ -14,7 +14,6 @@ import { ...@@ -14,7 +14,6 @@ import {
ShapeCircle, ShapeCircle,
MyAnimation MyAnimation
} from "./Unit"; } from "./Unit";
import { matchesElement } from '@angular/animations/browser/src/render/shared';
export class Cartoon { export class Cartoon {
......
...@@ -8,7 +8,6 @@ import { ...@@ -8,7 +8,6 @@ import {
HostListener HostListener
} from "@angular/core"; } from "@angular/core";
import { UUID } from 'angular2-uuid';
import { import {
MySprite, MySprite,
...@@ -1108,8 +1107,8 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1108,8 +1107,8 @@ export class PlayComponent implements OnInit, OnDestroy {
// //
// -------------------------------------------------- // --------------------------------------------------
@ViewChild("canvas") canvas: ElementRef; @ViewChild("canvas", {static: true }) canvas: ElementRef;
@ViewChild("wrap") wrap: ElementRef; @ViewChild("wrap", {static: true }) wrap: ElementRef;
@HostListener("window:resize", ["$event"]) @HostListener("window:resize", ["$event"])
onResize(event) { onResize(event) {
this.g_winResizeEventStream.next(); this.g_winResizeEventStream.next();
...@@ -1121,12 +1120,12 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1121,12 +1120,12 @@ export class PlayComponent implements OnInit, OnDestroy {
ngOnInit() { ngOnInit() {
const getData = (<any>window).courseware.getData; const getData = (<any>window).courseware.getData;
getData(data => { getData(data => {
if (window['air'].airClassInfo.user.classRole == 'tea') { // if (window['air'].airClassInfo.user.classRole == 'tea') {
if(!this.g_ForceChangeDefaultRole){ // if(!this.g_ForceChangeDefaultRole){
this.g_teacherFlag = true; // this.g_teacherFlag = true;
} // }
} // }
this.g_currentUser = window['air'].airClassInfo.user; // this.g_currentUser = window['air'].airClassInfo.user;
if (data && typeof data == "object") { if (data && typeof data == "object") {
this.g_data = data; this.g_data = data;
this.g_formData = data.contentObj; this.g_formData = data.contentObj;
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
</style> </style>
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" /> <link rel="icon" type="image/x-icon" href="favicon.ico" />
<!-- <script type="text/javascript" src="http://teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js" ></script> --> <script type="text/javascript" src="http://teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js" ></script>
<script type="text/javascript" src="https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air_online.js"></script> <!-- <script type="text/javascript" src="https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air_online.js"></script> -->
</head> </head>
<body> <body>
<app-root></app-root> <app-root></app-root>
......
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>NgOne</title>
<base href="/">
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<script type="text/javascript" src="https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"></script>
</head>
<body>
Hello World!!
</body>
</html>
/* You can add global styles to this file, and also import other style files */ /* You can add global styles to this file, and also import other style files */
@import "~ng-zorro-antd/src/ng-zorro-antd.css"; @import "~ng-zorro-antd/ng-zorro-antd.min.css";
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out-tsc/app", "outDir": "./out-tsc/app",
"types": [] "types": [
"node"
]
}, },
"files": [ "files": [
"src/main.ts", "src/main.ts",
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
] ]
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"enableIvy": false,
"fullTemplateTypeCheck": true, "fullTemplateTypeCheck": true,
"strictInjectionParameters": true "strictInjectionParameters": true
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment