Skip to content

Commit 4045e3c

Browse files
Merge branch '_bump_next-v4.0.0-alpha.3-local' into branch-4.0-dev-dist
2 parents a35c783 + 1f6931f commit 4045e3c

File tree

174 files changed

+210464
-21222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+210464
-21222
lines changed

.travis.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,3 @@ script:
2121

2222
after_success:
2323
- ./scripts/publish-ghpages.sh -t docs
24-
25-
# OpenShift expects its deployment branch to be "master-dist". This can be changed using:
26-
# rhc app-configure patternfly/angular --deployment-branch master-dist
27-
deploy:
28-
provider: openshift
29-
user: "$OPENSHIFT_USER"
30-
password: "$OPENSHIFT_PWD"
31-
domain: "patternfly"
32-
app: angular
33-
skip_cleanup: true
34-
on: # The branch and repo that triggered the build
35-
branch: master
36-
condition: $TRAVIS_REPO_SLUG = "patternfly/angular-patternfly"

Gruntfile.js

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,9 @@ module.exports = function (grunt) {
6565
dest: 'docs',
6666
expand: true
6767
},
68-
styles: {
69-
cwd: 'styles/',
70-
src: ['*.css', '!*.min.css'],
71-
dest: 'dist/styles',
72-
expand: true
73-
},
7468
img: {
7569
cwd: 'misc/',
76-
src: 'patternfly-orb.svg',
70+
src: ['patternfly-orb.svg', '*.png'],
7771
dest: 'docs/img',
7872
expand: true
7973
},
@@ -82,13 +76,30 @@ module.exports = function (grunt) {
8276
src: ['**'],
8377
dest: 'dist/docs',
8478
expand: true
79+
},
80+
distimg: {
81+
cwd: 'misc',
82+
src: ['canvas-dot-grid.png'],
83+
dest: 'dist/imgs',
84+
expand: true
85+
}
86+
},
87+
less: {
88+
patternfly: {
89+
files: {
90+
'dist/styles/angular-patternfly.css': 'styles/angular-patternfly.less'
91+
},
92+
options: {
93+
paths: ['src/less/'],
94+
strictMath: true
95+
}
8596
}
8697
},
8798
cssmin: {
8899
target: {
89100
files: [{
90101
expand: true,
91-
cwd: 'styles',
102+
cwd: 'dist/styles',
92103
src: ['*.css', '!*.min.css'],
93104
dest: 'dist/styles',
94105
ext: '.min.css'
@@ -126,6 +137,7 @@ module.exports = function (grunt) {
126137
image: 'misc/logo-alt.svg',
127138
scripts: [
128139
'node_modules/jquery/dist/jquery.js',
140+
'node_modules/components-jqueryui/jquery-ui.min.js',
129141
'node_modules/datatables.net/js/jquery.dataTables.js',
130142
'node_modules/datatables.net-select/js/dataTables.select.js',
131143
'node_modules/moment/moment.js',
@@ -135,6 +147,7 @@ module.exports = function (grunt) {
135147
'node_modules/patternfly/dist/js/patternfly-settings-colors.js',
136148
'node_modules/patternfly/dist/js/patternfly-settings-charts.js',
137149
'node_modules/angular/angular.js',
150+
'node_modules/angular-dragdrop/src/angular-dragdrop.js',
138151
'node_modules/angular-datatables/dist/angular-datatables.min.js',
139152
'node_modules/angular-datatables/dist/plugins/select/angular-datatables.select.min.js',
140153
'node_modules/angular-sanitize/angular-sanitize.js',
@@ -143,7 +156,8 @@ module.exports = function (grunt) {
143156
'misc/angular-bootstrap-prettify.js',
144157
'node_modules/lodash/lodash.min.js',
145158
'dist/angular-patternfly.js',
146-
'node_modules/angular-ui-router/release/angular-ui-router.min.js'],
159+
'node_modules/angular-ui-router/release/angular-ui-router.min.js',
160+
'node_modules/angular-drag-and-drop-lists/angular-drag-and-drop-lists.js'],
147161
html5Mode: false,
148162
template: 'grunt-ngdocs-index.tmpl',
149163
styles: ['node_modules/datatables.net-dt/css/jquery.dataTables.css',
@@ -233,6 +247,11 @@ module.exports = function (grunt) {
233247
cwd: 'src/',
234248
src: ['wizard/**/*.html'],
235249
dest: 'templates/wizard.js'
250+
},
251+
'patternfly.canvas': {
252+
cwd: 'src/',
253+
src: ['canvas-view/**/*.html'],
254+
dest: 'templates/canvas.js'
236255
}
237256
},
238257
// ng-annotate tries to make the code safe for minification automatically
@@ -270,7 +289,7 @@ module.exports = function (grunt) {
270289
tasks: ['test']
271290
},
272291
all: {
273-
files: ['Gruntfile.js', 'src/**/*.js', 'src/**/*.html', 'styles/**/*.css'],
292+
files: ['Gruntfile.js', 'src/**/*.js', 'src/**/*.html', 'styles/**/*.css', '**/*.less'],
274293
tasks: ['build'],
275294
options: {
276295
livereload: 35722
@@ -279,7 +298,7 @@ module.exports = function (grunt) {
279298
}
280299
});
281300

282-
grunt.registerTask('copymain', ['copy:docdata', 'copy:fa', 'copy:styles', 'copy:img']);
301+
grunt.registerTask('copymain', ['copy:docdata', 'copy:fa', 'copy:img', 'copy:distimg']);
283302

284303
// You can specify which modules to build as arguments of the build task.
285304
grunt.registerTask('build', 'Create bootstrap build files', function () {
@@ -299,13 +318,13 @@ module.exports = function (grunt) {
299318
concatSrc = 'src/**/*.js';
300319
}
301320

302-
grunt.task.run(['clean', 'lint', 'test', 'ngtemplates', 'concat', 'ngAnnotate', 'uglify:build', 'cssmin', 'copymain', 'ngdocs', 'clean:templates']);
321+
grunt.task.run(['clean', 'lint', 'test', 'ngtemplates', 'concat', 'ngAnnotate', 'uglify:build', 'less', 'cssmin', 'copymain', 'ngdocs', 'clean:templates']);
303322
});
304323

305324
// Runs all the tasks of build with the exception of tests
306325
grunt.registerTask('deploy', 'Prepares the project for deployment. Does not run unit tests', function () {
307326
var concatSrc = 'src/**/*.js';
308-
grunt.task.run(['clean', 'lint', 'ngtemplates', 'concat', 'ngAnnotate', 'uglify:build', 'cssmin', 'copymain', 'ngdocs', 'clean:templates']);
327+
grunt.task.run(['clean', 'lint', 'ngtemplates', 'concat', 'ngAnnotate', 'uglify:build', 'less', 'cssmin', 'copymain', 'ngdocs', 'clean:templates']);
309328
});
310329

311330
grunt.registerTask('default', ['build']);

README.md

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
This project will provide a set of common AngularJS directives for use with the PatternFly reference implementation.
1010

1111
* Web site: https://www.patternfly.org
12-
* API Docs: http://angular-patternfly.rhcloud.com/#/api
12+
* API Docs: http://www.patternfly.org/angular-patternfly/#/api
1313
* Build Status: https://travis-ci.org/patternfly/angular-patternfly.svg?branch=master
1414

1515
## Getting started
@@ -80,7 +80,7 @@ Note:
8080
<script src="node_modules/angular-patternfly/node_modules/patternfly/node_modules/d3/d3.min.js"></script>
8181

8282
5. (optional) The 'patternfly.charts' module is not a dependency in the default angular 'patternfly' module.
83-
In order to use patternfly charts you must add 'patternfly.charts' as a dependency in your application:
83+
In order to use patternfly charts you must add it as a dependency in your application:
8484

8585
my-app.module.js:
8686

@@ -89,6 +89,61 @@ Note:
8989
'patternfly.charts'
9090
]);
9191

92+
6. (optional) The 'patternfly.table' module is not a dependency in the default angular 'patternfly' module.
93+
In order to use pfTableView, you must add 'patternfly.table' as a dependency in your application:
94+
95+
my-app.module.js:
96+
97+
angular.module('myApp', [
98+
'patternfly',
99+
'patternfly.table'
100+
]);
101+
102+
Add the following CSS includes to your HTML file(s):
103+
104+
<!-- Place before any patternfly css -->
105+
<link rel="stylesheet" href="node_modules/datatables.net-dt/css/jquery.dataTables.css" />
106+
107+
Add the following Javascript includes to your HTML file(s):
108+
109+
<script src="node_modules/jquery/dist/jquery.js"></script>
110+
<script src="node_modules/datatables.net/js/jquery.dataTables.js"></script>
111+
<script src="node_modules/datatables.net-select/js/dataTables.select.js"></script>
112+
<script src="node_modules/angular-datatables/dist/angular-datatables.min.js"></script>
113+
<script src="node_modules/angular-datatables/dist/plugins/select/angular-datatables.select.min.js"></script>
114+
115+
7. (optional) The 'patternfly.canvas' module is not a dependency in the default angular 'patternfly' module.
116+
In order to use pfCanvasEditor or pfCanvas, you must add 'patternfly.canvas' as a dependency in your application:
117+
118+
my-app.module.js:
119+
120+
angular.module('myApp', [
121+
'patternfly',
122+
'patternfly.canvas'
123+
]);
124+
125+
Add the following Javascript includes to your HTML file(s):
126+
127+
<!-- jquery before angular.js -->
128+
<script src="node_modules/jquery/dist/jquery.js"></script>
129+
<script src="node_modules/components-jqueryui/jquery-ui.min.js"></script>
130+
131+
<script src="node_modules/angular/angular.js"></script>
132+
133+
<!-- angular-dragdrop after angular.js -->
134+
<script src="node_modules/angular-dragdrop/src/angular-dragdrop.js"></script>
135+
136+
Also, the canvas background grid image is located in 'node_modules/angular-patternfly/dist/imgs/canvas-dot-grid.png'
137+
please copy this image to your application's main images directory and reference it by overridding the '.canvas' css
138+
class:
139+
140+
<style>
141+
.canvas {
142+
background-image: url('/myapp/imgs/canvas-dot-grid.png');
143+
background-repeat: repeat;
144+
}
145+
</style>
146+
92147
### Using with Webpack
93148

94149
In order to use Angular-Patternfly in a Webpack-bundled application there are some things you need to keep in mind:

bower.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-patternfly",
3-
"version": "4.0.0-alpha.2",
3+
"version": "4.0.0-alpha.3",
44
"authors": [
55
"Red Hat"
66
],
@@ -39,13 +39,15 @@
3939
"dependencies": {
4040
"angular": "1.5.*",
4141
"angular-animate": "1.5.*",
42-
"angular-sanitize": "1.5.*",
4342
"angular-bootstrap": "2.2.x",
44-
"lodash": "4.x",
43+
"angular-dragdrop": "1.0.13",
4544
"angular-datatables": "^0.5.6",
45+
"angular-drag-and-drop-lists": "2.0.0",
46+
"angular-sanitize": "1.5.*",
4647
"datatables.net": "^1.10.12",
4748
"datatables.net-select": "~1.2.0",
48-
"patternfly": "~4.0.0-alpha.2"
49+
"lodash": "4.x",
50+
"patternfly": "~4.0.0-alpha.3"
4951
},
5052
"devDependencies": {
5153
"angular-mocks": "1.5.*",

0 commit comments

Comments
 (0)