angular-popups
Advanced tools
Comparing version 0.0.1-beta9 to 0.0.1
@@ -0,1 +1,6 @@ | ||
## 0.0.1 | ||
1. 项目正式命名为 `angular-popup` | ||
2. 提供无 CSS 依赖的版本 | ||
## 0.0.1-beta9 | ||
@@ -2,0 +7,0 @@ |
{ | ||
"name": "angular-popups", | ||
"version": "0.0.1-beta9", | ||
"version": "0.0.1", | ||
"readmeFilename": "README.md", | ||
"description": "基于 AngularJS 的浮层组件", | ||
"homepage": "https://github.com/aui/angular-popups", | ||
"homepage": "https://github.com/aui/angular-popup", | ||
"keywords": [ | ||
@@ -12,2 +12,3 @@ "angular", | ||
"bubble", | ||
"notice", | ||
"artDialog" | ||
@@ -18,7 +19,8 @@ ], | ||
"type": "git", | ||
"url": "https://github.com/aui/angular-popups.git" | ||
"url": "https://github.com/aui/angular-popup.git" | ||
}, | ||
"main": "./dist/angular-popups.js", | ||
"main": "dist/angular-popup.js", | ||
"scripts": { | ||
"min": "webpack -p" | ||
"min": "webpack -p", | ||
"test": "open test/index.html" | ||
}, | ||
@@ -32,5 +34,5 @@ "devDependencies": { | ||
"style-loader": "^0.13.0", | ||
"webpack": "^1.12.9" | ||
"webpack": "^1.12.15" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -1,4 +0,4 @@ | ||
# angular-popups | ||
# angular-popup | ||
基于 AngularJS 的浮层组件,由 [artDialog](https://github.com/aui/artDialog) 演进而来。angular-popups 是一个严格遵循 AngularJS 架构与 web 标准的组件: | ||
基于 AngularJS 的浮层组件,由 [artDialog](https://github.com/aui/artDialog) 演进而来。angular-popup 是一个严格遵循 AngularJS 架构与 web 标准的组件: | ||
@@ -13,3 +13,3 @@ 1. 使用 AngularJS 自带的 `ng-if`、`ng-show`、`ng-hide` 控制浮层的显示、销毁 | ||
演示站点:<https://aui.github.io/angular-popups/> | ||
演示站点:<https://aui.github.io/angular-popup/> | ||
@@ -26,5 +26,5 @@ ## 使用 | ||
<script src="lib/angular.js"></script> | ||
<script src="dist/angular-popups.js"></script> | ||
<script src="dist/angular-popup.js"></script> | ||
<script> | ||
var app = angular.module('app', ['angular-popups']); | ||
var app = angular.module('app', ['angular-popup']); | ||
</script> | ||
@@ -37,3 +37,3 @@ ``` | ||
``` shell | ||
npm install angular-popups | ||
npm install angular-popup | ||
``` | ||
@@ -43,7 +43,7 @@ | ||
```js | ||
require('angular-popups'); | ||
var app = angular.module('app', ['angular-popups']); | ||
require('angular-popup'); | ||
var app = angular.module('app', ['angular-popup']); | ||
``` | ||
> angular-popups 依赖 `angular` 这个全局模块 | ||
> angular-popup 依赖 `angular` 这个全局模块 | ||
@@ -102,12 +102,12 @@ ## 指令 | ||
1. [普通对话框](https://aui.github.io/angular-popups/example/dialog-ng-if.html) | ||
2. [模态对话框](https://aui.github.io/angular-popups/example/dialog-modal.html) | ||
3. [带按钮的对话框](https://aui.github.io/angular-popups/example/dialog-dialog-buttons.html) | ||
4. [带状态栏的对话框](https://aui.github.io/angular-popups/example/dialog-dialog-statusbar.html) | ||
5. [无标题的对话框](https://aui.github.io/angular-popups/example/dialog-dialog-title.html) | ||
6. [无关闭按钮的对话框](https://aui.github.io/angular-popups/example/dialog-close.html) | ||
7. [带箭头的对话框](https://aui.github.io/angular-popups/example/dialog-for-align.html) | ||
8. [fixed 定位的对话框](https://aui.github.io/angular-popups/example/dialog-fixed.html) | ||
9. [定时关闭的对话框](https://aui.github.io/angular-popups/example/dialog-duration.html) | ||
10. [外部点击可关闭的对话框](https://aui.github.io/angular-popups/example/dialog-close-action) | ||
1. [普通对话框](https://aui.github.io/angular-popup/example/dialog-ng-if.html) | ||
2. [模态对话框](https://aui.github.io/angular-popup/example/dialog-modal.html) | ||
3. [带按钮的对话框](https://aui.github.io/angular-popup/example/dialog-dialog-buttons.html) | ||
4. [带状态栏的对话框](https://aui.github.io/angular-popup/example/dialog-dialog-statusbar.html) | ||
5. [无标题的对话框](https://aui.github.io/angular-popup/example/dialog-dialog-title.html) | ||
6. [无关闭按钮的对话框](https://aui.github.io/angular-popup/example/dialog-close.html) | ||
7. [带箭头的对话框](https://aui.github.io/angular-popup/example/dialog-for-align.html) | ||
8. [fixed 定位的对话框](https://aui.github.io/angular-popup/example/dialog-fixed.html) | ||
9. [定时关闭的对话框](https://aui.github.io/angular-popup/example/dialog-duration.html) | ||
10. [外部点击可关闭的对话框](https://aui.github.io/angular-popup/example/dialog-close-action) | ||
@@ -129,5 +129,5 @@ ## bubble | ||
1. [普通气泡](https://aui.github.io/angular-popups/example/bubble.html) | ||
2. [自定义气泡方向](https://aui.github.io/angular-popups/example/bubble-for-align.html) | ||
3. [不被关闭的气泡](https://aui.github.io/angular-popups/example/bubble-close.html) | ||
1. [普通气泡](https://aui.github.io/angular-popup/example/bubble.html) | ||
2. [自定义气泡方向](https://aui.github.io/angular-popup/example/bubble-for-align.html) | ||
3. [不被关闭的气泡](https://aui.github.io/angular-popup/example/bubble-close.html) | ||
@@ -148,4 +148,4 @@ ## notice | ||
1. [普通通知浮层](https://aui.github.io/angular-popups/example/notice.html) | ||
2. [模态通知浮层](https://aui.github.io/angular-popups/example/notice-modal.html) | ||
1. [普通通知浮层](https://aui.github.io/angular-popup/example/notice.html) | ||
2. [模态通知浮层](https://aui.github.io/angular-popup/example/notice-modal.html) | ||
@@ -168,4 +168,4 @@ ## popup | ||
1. [自定义浮层](https://aui.github.io/angular-popups/example/popup.html) | ||
2. [创建右键菜单](https://aui.github.io/angular-popups/example/popup-contextmenu.html) | ||
1. [自定义浮层](https://aui.github.io/angular-popup/example/popup.html) | ||
2. [创建右键菜单](https://aui.github.io/angular-popup/example/popup-contextmenu.html) | ||
@@ -208,3 +208,3 @@ ## 服务 | ||
1. [在控制器中使用 `Popup` 服务](https://aui.github.io/angular-popups/example/services.html) | ||
1. [在控制器中使用 `Popup` 服务](https://aui.github.io/angular-popup/example/services.html) | ||
@@ -227,4 +227,4 @@ ## 兼容性 | ||
 | ||
 | ||
喜欢这个项目?捐助一杯咖啡支持下(¥28) |
@@ -5,4 +5,2 @@ /* global require */ | ||
require('../css/ui-bubble.css'); | ||
var directives = require('./directives'); | ||
@@ -9,0 +7,0 @@ |
@@ -5,3 +5,2 @@ /* global require */ | ||
require('../css/ui-dialog.css'); | ||
var angular = require('angular'); | ||
@@ -8,0 +7,0 @@ var $ = angular.element; |
@@ -231,3 +231,3 @@ /* global require,module */ | ||
// 如果指令内部把 DOM 节点迁移到 document.body 下, | ||
// 则指令元素的 ng-if 为 false 的时候可能导致其他 popups 节点被 AngularJS 删除 | ||
// 则指令元素的 ng-if 为 false 的时候可能导致其他 popup 节点被 AngularJS 删除 | ||
function fix(elem) { | ||
@@ -234,0 +234,0 @@ var temp = document.createElement('popup'); |
@@ -5,4 +5,2 @@ /* global require */ | ||
require('../css/ui-notice.css'); | ||
var directives = require('./directives'); | ||
@@ -9,0 +7,0 @@ |
@@ -5,4 +5,2 @@ /* global require */ | ||
require('../css/ui-popup.css'); | ||
var directives = require('./directives'); | ||
@@ -9,0 +7,0 @@ |
@@ -1,3 +0,1 @@ | ||
/* global module */ | ||
'use strict'; | ||
@@ -4,0 +2,0 @@ |
@@ -1,1 +0,1 @@ | ||
module.exports = require('angular').module('angular-popups', []); | ||
module.exports = require('angular').module('angular-popup', []); |
var webpack = require('webpack'); | ||
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | ||
var version = require('./package.json').version; | ||
var packageJson = require('./package.json'); | ||
var version = packageJson.version; | ||
module.exports = { | ||
entry: { | ||
'angular-popups': './src/index.js' | ||
'angular-popup': './src/popups.js', | ||
'angular-popup-nocss': './src/popups-nocss.js' | ||
}, | ||
@@ -16,3 +18,3 @@ output: { | ||
new ExtractTextPlugin('[name].css'), | ||
new webpack.BannerPlugin('angular-popups@' + version + ' | https://github.com/aui/angular-popups') | ||
new webpack.BannerPlugin(packageJson.name + '@' + packageJson.version + ' | ' + packageJson.homepage) | ||
], | ||
@@ -23,33 +25,22 @@ externals: { | ||
module: { | ||
preLoaders: [ | ||
preLoaders: [{ | ||
test: /\.js$/, | ||
exclude: /node_modules/, | ||
loader: 'jshint-loader' | ||
}], | ||
loaders: [ | ||
//{test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader')}, // 把 CSS 抽离成独立的文件 | ||
{ | ||
test: /\.js$/, | ||
exclude: /node_modules/, | ||
loader: 'jshint-loader' | ||
test: /\.css$/, | ||
loader: 'style!css?sourceMap&minimize' | ||
} | ||
], | ||
loaders: [ | ||
//{test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader')}, // 把 CSS 抽离成独立的文件 | ||
{test: /\.css$/, loader: 'style!css?minimize'} | ||
] | ||
}, | ||
// more options in the optional jshint object | ||
jshint: { | ||
// any jshint option http://www.jshint.com/docs/options/ | ||
// i. e. | ||
camelcase: true, | ||
// jshint errors are displayed by default as warnings | ||
// set emitErrors to true to display them as errors | ||
emitErrors: false, | ||
// jshint to not interrupt the compilation | ||
// if you want any file with jshint errors to fail | ||
// set failOnHint to true | ||
failOnHint: false, | ||
// custom reporter function | ||
reporter: function(errors) { } | ||
reporter: function(errors) {} | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
375838
1642
25