触控器

Showing with 7,393 additions and 7,604 deletions.

96 .angular-cli.json
This file was deleted.

1 .stylelintrc
@@ -22,6 +22,7 @@
“value-list-max-empty-lines”: null,
“string-no-newline”: null,
“selector-type-no-unknown”: null,
“no-descending-specificity”: null,
“selector-pseudo-element-no-unknown”: [
true,
{

4 .travis.yml
@@ -19,9 +19,9 @@ install:

  • npm install

script:

  • npm run test
  • npm run fix-v6
  • npm run test-coverage

after_success:

  • ./node_modules/.bin/codecov

136 angular.json
@@ -0,0 +1,136 @@
{
“$schema”: “./node_modules/@angular/cli/lib/config/schema.json”,
“version”: 1,
“newProjectRoot”: “projects”,
“projects”: {
“ng-alain”: {
“root”: “”,
“sourceRoot”: “src”,
“projectType”: “application”,
“architect”: {
“build”: {
“builder”: “@angular-devkit/build-angular:browser”,
“options”: {
“outputPath”: “dist”,
“index”: “src/index.html”,
“main”: “src/main.ts”,
“tsConfig”: “src/tsconfig.app.json”,
“polyfills”: “src/polyfills.ts”,
“assets”: [
“src/assets”,
“src/favicon.ico”
],
“styles”: [
“node_modules/simple-line-icons/css/simple-line-icons.css”,
“src/styles.less”
],
“scripts”: [
“node_modules/@antv/g2/dist/g2.min.js”,
“node_modules/@antv/data-set/dist/data-set.min.js”,
“node_modules/@antv/g2-plugin-slider/dist/g2-plugin-slider.min.js”,
“node_modules/ajv/dist/ajv.bundle.js”,
“node_modules/qrious/dist/qrious.min.js”
]
},
“configurations”: {
“production”: {
“optimization”: true,
“outputHashing”: “all”,
“sourceMap”: false,
“extractCss”: true,
“namedChunks”: false,
“aot”: true,
“extractLicenses”: true,
“vendorChunk”: false,
“buildOptimizer”: true,
“fileReplacements”: [
{
“replace”: “src/environments/environment.ts”,
“with”: “src/environments/environment.prod.ts”
}
]
}
}
},
“serve”: {
“builder”: “@angular-devkit/build-angular:dev-server”,
“options”: {
“browserTarget”: “ng-alain:build”
},
“configurations”: {
“production”: {
“browserTarget”: “ng-alain:build:production”
}
}
},
“extract-i18n”: {
“builder”: “@angular-devkit/build-angular:extract-i18n”,
“options”: {
“browserTarget”: “ng-alain:build”
}
},
“test”: {
“builder”: “@angular-devkit/build-angular:karma”,
“options”: {
“main”: “src/test.ts”,
“karmaConfig”: “./src/karma.conf.js”,
“polyfills”: “src/polyfills.ts”,
“tsConfig”: “src/tsconfig.spec.json”,
“scripts”: [
“node_modules/@antv/g2/dist/g2.min.js”,
“node_modules/@antv/data-set/dist/data-set.min.js”,
“node_modules/@antv/g2-plugin-slider/dist/g2-plugin-slider.min.js”,
“node_modules/ajv/dist/ajv.bundle.js”,
“node_modules/qrious/dist/qrious.min.js”
],
“styles”: [
“src/styles.less”
],
“assets”: [
“src/assets”,
“src/favicon.ico”
]
}
},
“lint”: {
“builder”: “@angular-devkit/build-angular:tslint”,
“options”: {
“tsConfig”: [
“src/tsconfig.app.json”,
“src/tsconfig.spec.json”
],
“exclude”: [
/node_modules/
]
}
}
}
},
“ng-alain-e2e”: {
“root”: “”,
“sourceRoot”: “”,
“projectType”: “application”,
“architect”: {
“e2e”: {
“builder”: “@angular-devkit/build-angular:protractor”,
“options”: {
“protractorConfig”: “./protractor.conf.js”,
“devServerTarget”: “ng-alain:serve”
}
},
“lint”: {
“builder”: “@angular-devkit/build-angular:tslint”,
“options”: {
“tsConfig”: [
“e2e/tsconfig.e2e.json”
],
“exclude”: [
/node_modules/
]
}
}
}
}
},
“defaultProject”: “ng-alain”
}

0 e2e/app.e2e-spec.ts → e2e/src/app.e2e-spec.ts
File renamed without changes.

0 e2e/app.po.ts → e2e/src/app.po.ts
File renamed without changes.

3 e2e/tsconfig.e2e.json
@@ -1,8 +1,7 @@
{
“extends”: “…/tsconfig.json”,
“compilerOptions”: {
“outDir”: “…/out-tsc/e2e”,
“baseUrl”: “./”,
“outDir”: “…/out-tsc/app”,
“module”: “commonjs”,
“target”: “es5”,
“types”: [

23 fix-v6.js
@@ -0,0 +1,23 @@
const fs = require(‘fs’);
const path = require(‘path’);

const filePath = path.resolve(
__dirname,
./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/styles.js,
);

fs.readFile(filePath, ‘utf8’, function(err, data) {
if (err) {
return console.log(请先安装依赖包);
}
const result = data.replace(
Object.assign({ sourceMap: cssSourceMap }, lessPathOptions),
Object.assign({ sourceMap: cssSourceMap, javascriptEnabled: true }, lessPathOptions),
);

fs.writeFile(filePath, result, ‘utf8’, function(err) {
if (err) return console.log(保存失败, err);
});
});

console.log(‘Finished’);

14,524 package-lock.json
Large diffs are not rendered by default.

119 package.json
@@ -16,7 +16,6 @@
“precommit”: “npm run lint-staged”,
“ng”: “ng”,
“start”: “ng serve -o”,
“serve:hmr”: “ng serve -o --hmr -e=hmr”,
“build”: “ng build --prod --build-optimizer”,
“analyze”: “ng build --prod --build-optimizer --stats-json”,
“lint”: “npm run lint:ts && npm run lint:style”,
@@ -25,22 +24,24 @@
“lint-staged”: “lint-staged”,
“tslint-check”: “tslint-config-prettier-check ./tslint.json”,
“e2e”: “ng e2e”,
“test”: “ng test -sr -sm=false”,
“test-coverage”: “ng test -sr -cc -sm=false”
“test”: “ng test --watch”,
“test-coverage”: “ng test --code-coverage --watch=false”,
“fix-v6”: “node fix-v6”
},
“dependencies”: {
“@angular/animations”: “^5.0.0”,
“@angular/common”: “^5.0.0”,
“@angular/compiler”: “^5.0.0”,
“@angular/core”: “^5.0.0”,
“@angular/forms”: “^5.0.0”,
“@angular/http”: “^5.0.0”,
“@angular/platform-browser”: “^5.0.0”,
“@angular/platform-browser-dynamic”: “^5.0.0”,
“@angular/router”: “^5.0.0”,
“@antv/data-set”: “^0.8.3”,
“@antv/g2”: “^3.0.1”,
“@antv/g2-plugin-slider”: “^2.0.0”,
“@angular/animations”: “^6.0.0”,
“@angular/common”: “^6.0.0”,
“@angular/compiler”: “^6.0.0”,
“@angular/core”: “^6.0.0”,
“@angular/forms”: “^6.0.0”,
“@angular/http”: “^6.0.0”,
“@angular/platform-browser”: “^6.0.0”,
“@angular/platform-browser-dynamic”: “^6.0.0”,
“@angular/router”: “^6.0.0”,
“core-js”: “^2.5.4”,
“rxjs”: “^6.0.0”,
“rxjs-compat”: “^6.1.0”,
“zone.js”: “^0.8.26”,
“@delon/abc”: “^1.0.0-beta.10”,
“@delon/acl”: “^1.0.0-beta.10”,
“@delon/auth”: “^1.0.0-beta.10”,
@@ -49,63 +50,58 @@
“@delon/mock”: “^1.0.0-beta.10”,
“@delon/theme”: “^1.0.0-beta.10”,
“@delon/util”: “^1.0.0-beta.10”,
“@ngx-translate/core”: “^9.0.0”,
“@ngx-translate/http-loader”: “^2.0.0”,
“@types/ajv”: “^1.0.0”,
“@antv/data-set”: “^0.8.8”,
“@antv/g2”: “^3.0.11”,
“@antv/g2-plugin-slider”: “^2.0.2”,
“@ngx-translate/core”: “^10.0.1”,
“@ngx-translate/http-loader”: “^3.0.1”,
“ajv”: “^6.4.0”,
“angular-baidu-maps”: “^1.0.1”,
“angular-qq-maps”: “^1.0.1”,
“core-js”: “^2.5.1”,
“file-saver”: “^1.3.3”,
“file-saver”: “^1.3.8”,
“ng-zorro-antd”: “^0.7.0-beta.5”,
“ngx-countdown”: “^2.0.0”,
“ngx-tinymce”: “^1.0.1”,
“ngx-ueditor”: “^1.1.0”,
“rxjs”: “^5.5.5”,
“ngx-countdown”: “^3.0.0”,
“ngx-tinymce”: “^2.0.0”,
“ngx-ueditor”: “^2.0.0”,
“screenfull”: “^3.3.1”,
“simple-line-icons”: “^2.4.1”,
“zone.js”: “^0.8.18”
“simple-line-icons”: “^2.4.1”
},
“devDependencies”: {
“@angular/cli”: “^1.6.2”,
“@angular/compiler-cli”: “^5.0.0”,
“@angular/language-service”: “^5.0.0”,
“@angularclass/hmr”: “^2.1.3”,
“@angularclass/hmr-loader”: “^3.0.4”,
“@delon/cli”: “^1.0.0-beta.10”,
“@types/jasmine”: “~2.6.0”,
“@angular/compiler-cli”: “^6.0.0”,
“@angular-devkit/build-angular”: “~0.6.1”,
“typescript”: “~2.7.2”,
“@angular/cli”: “~6.0.0”,
“@angular/language-service”: “^6.0.0”,
“@types/jasmine”: “~2.8.6”,
“@types/jasminewd2”: “~2.0.3”,
“@types/jszip”: “^3.1.2”,
“@types/node”: “~8.9.4”,
“@types/ajv”: “^1.0.0”,
“@types/jszip”: “^3.1.3”,
“@types/mockjs”: “^1.0.0”,
“@types/node”: “~6.0.60”,
“@types/z-schema”: “^3.16.32”,
“codecov”: “^3.0.0”,
“codelyzer”: “~4.0.1”,
“editorconfig-tools”: “^0.1.1”,
“husky”: “^0.14.3”,
“jasmine-core”: “~2.8.0”,
“codecov”: “^3.0.2”,
“codelyzer”: “~4.2.1”,
“jasmine-core”: “~2.99.1”,
“jasmine-spec-reporter”: “~4.2.1”,
“karma”: “~1.7.1”,
“karma-chrome-launcher”: “~2.2.0”,
“karma-cli”: “~1.0.1”,
“karma-coverage-istanbul-reporter”: “^1.3.0”,
“karma-jasmine”: “~1.1.0”,
“karma-coverage-istanbul-reporter”: “~1.4.2”,
“karma-jasmine”: “~1.1.1”,
“karma-jasmine-html-reporter”: “^0.2.2”,
“karma-remap-istanbul”: “^0.6.0”,
“karma-sauce-launcher”: “^1.2.0”,
“lint-staged”: “^7.0.5”,
“protractor”: “~5.3.0”,
“ts-node”: “~5.0.1”,
“tslint”: “~5.9.1”,
“tslint-config-prettier”: “^1.12.0”,
“tslint-language-service”: “^0.9.9”,
“@delon/cli”: “^1.0.0-beta.10”,
“editorconfig-tools”: “^0.1.1”,
“husky”: “^0.14.3”,
“gh-pages”: “^1.1.0”,
“lint-staged”: “^7.1.0”,
“mockjs”: “^1.0.1-beta3”,
“prettier”: “^1.12.1”,
“prettier-stylelint”: “^0.4.2”,
“protractor”: “~5.1.2”,
“stylelint”: “^8.2.0”,
“stylelint-config-standard”: “^17.0.0”,
“ts-node”: “~3.2.0”,
“tslint”: “~5.7.0”,
“tslint-config-prettier”: “^1.12.0”,
“typescript”: “~2.6.0”,
“webpack-bundle-analyzer”: “^2.9.0”,
“xlsx”: “^0.11.16”
“stylelint”: “^9.2.0”,
“stylelint-config-standard”: “^18.2.0”,
“webpack-bundle-analyzer”: “^2.11.2”,
“xlsx”: “^0.12.12”
},
“lint-staged”: {
“*.{cmd,html,json,md,sh,txt,xml,yml}”: [
@@ -122,10 +118,5 @@
“prettier --write”,
“git add”
]
},
“browserslist”: [
“> 1%”,
“last 2 versions”,
“not ie <= 10”
]
}
}

28 protractor.conf.js
This file was deleted.

9 src/browserslist
@@ -0,0 +1,9 @@

This file is currently used by autoprefixer to adjust CSS to support the below specified browsers

For additional information regarding the format and rule options, please see:

https://github.com/browserslist/browserslist#queries

For IE 9-11 support, please uncomment the last line of the file and adjust as needed

0.5%
last 2 versions
Firefox ESR
not dead

IE 9-11

12 karma.conf.js → src/karma.conf.js
@@ -4,31 +4,31 @@
module.exports = function (config) {
config.set({
basePath: ‘’,
frameworks: [‘jasmine’, ‘@angular/cli’],
frameworks: [‘jasmine’, ‘@angular-devkit/build-angular’],
plugins: [
require(‘karma-jasmine’),
require(‘karma-chrome-launcher’),
require(‘karma-jasmine-html-reporter’),
require(‘karma-coverage-istanbul-reporter’),
require(’@angular/cli/plugins/karma’)
require(’@angular-devkit/build-angular/plugins/karma’)
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require(‘path’).join(__dirname, ‘…/coverage’),
reports: [‘html’, ‘lcovonly’],
fixWebpackSourcePaths: true
},
angularCli: {
environment: ‘dev’
},
reporters: [‘progress’, ‘kjhtml’],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: [‘Chrome’],
singleRun: false,
browserNoActivityTimeout: 60000
browserNoActivityTimeout: 60000,
browserDisconnectTimeout: 30000,
captureTimeout: 60000
});
};

19 src/main.ts
@@ -4,8 +4,6 @@ import { platformBrowserDynamic } from ‘@angular/platform-browser-dynamic’;
import { AppModule } from ‘./app/app.module’;
import { environment } from ‘./environments/environment’;

import { hmrBootstrap } from ‘./hmr’;

import { preloaderFinished } from ‘@delon/theme’;
preloaderFinished();

@@ -20,17 +18,8 @@ const bootstrap = () => {
});
};

if (environment.hmr) {
if (module[‘hot’]) {
hmrBootstrap(module, bootstrap);
} else {
console.error(‘HMR is not enabled for webpack-dev-server!’);
console.log(‘Are you using the --hmr flag for ng serve?’);
bootstrap().then(() => {
if ((window).appBootstrap) {
(window).appBootstrap();
}
} else {
bootstrap().then(() => {
if ((window).appBootstrap) {
(window).appBootstrap();
}
});
}
});

15 src/styles.less
@@ -1,11 +1,6 @@
// region: core, IMPORTANT: don’t remove
@import ‘~@delon/theme/styles/index’;
@import ‘~@delon/abc/index’;
// endregion
// IMPORTANT: don’t remove
@import ‘node_modules/@delon/theme/styles/index’;
@import ‘node_modules/@delon/abc/index’;

// region: Third Library
@import ‘…/node_modules/simple-line-icons/css/simple-line-icons.css’;
// endregion

@import “./styles/index”;
@import “./styles/theme”;
@import ‘./styles/index’;
@import ‘./styles/theme’;

3 src/tsconfig.spec.json
@@ -37,7 +37,8 @@
}
},
“files”: [
“test.ts”
“test.ts”,
“polyfills.ts”
],
“include”: [
“**/*.spec.ts”,

5 tslint.json
@@ -16,10 +16,7 @@
“curly”: false,
“eofline”: true,
“forin”: false,
“import-blacklist”: [
true,
“rxjs”
],
“import-blacklist”: [true, “rxjs/Rx”],
“import-spacing”: true,
“indent”: [
true,
0 comments on commit 7927d48
Please sign in to comment.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值