Skip to content
This repository was archived by the owner on Oct 5, 2020. It is now read-only.

Commit 6f275d2

Browse files
committed
Merge pull request #320 from withjam/issue308
Add options for new themes, include default files to track changes
2 parents a2bed18 + 13acc0e commit 6f275d2

File tree

5 files changed

+29
-10
lines changed

5 files changed

+29
-10
lines changed

app/templates/bower.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"dependencies": {
55
"angular": "~1.4.4",
6-
"angular-bootstrap": "~0.14.0",
6+
"angular-bootstrap": "^1.1",
77
"angular-cookies": "~1.4.4",
88
"angular-highlightjs": "~0.4.3",
99
"angular-mocks": "~1.4.4",
@@ -18,7 +18,9 @@
1818
"ml-search-ng": "~0.2.0",
1919
"ml-utils": "withjam/ml-utils",
2020
"ng-json-explorer": "8c2a0f9104",
21-
"vkbeautify-wrapper": "*"
21+
"vkbeautify-wrapper": "*",
22+
"highcharts": "^4.2",
23+
"angular-google-maps": "^2.2"
2224
},
2325
"overrides": {
2426
"angular-highlightjs": {

app/templates/gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ gulp.task('optimize', ['inject', 'test'], function() {
344344

345345
// Rename the recorded file names in the steam, and in the html to append rev numbers
346346
.pipe($.revReplace())
347-
347+
348348
// copy result to dist/, and print some logging..
349349
.pipe(gulp.dest(config.build))
350350
.pipe($.if(args.verbose, $.print()));

app/templates/ui/styles/main.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
@FontAwesomePath: "/fonts/";
66

77
/* for the uiux pieces */
8-
@import "uiux.less";
8+
@import "theme.less";
99

1010
/* Admin design - icons for top nativation
1111
@import "admin.less";
1212
*/
1313

14-
/* Blue design
14+
/* Blue design
1515
@import "blues.less";
1616
@import "blues-variables.less";
1717
*/

app/templates/ui/styles/uiux.less renamed to app/templates/ui/styles/theme.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ width: 10px;
185185
height: 20px;
186186
}
187187

188-
input.vertical {
189-
-webkit-appearance: slider-vertical;
188+
input.vertical {
189+
-webkit-appearance: slider-vertical;
190190
height: 100px;
191-
writing-mode: bt-lr;
192-
}
191+
writing-mode: bt-lr;
192+
}

slushfile.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,21 @@ gulp.task('init', ['checkForUpdates'], function (done) {
323323
'you will be asked to enter it at appropriate commands.\n? MarkLogic Admin Password?', default: ''},
324324
{type: 'input', name: 'nodePort', message: 'Node app port?', default: 9070},
325325
{type: 'input', name: 'appPort', message: 'MarkLogic App/Rest port?', default: 8040},
326-
{type: 'input', name: 'xccPort', message: 'XCC port?', default:8041, when: function(answers){return answers.mlVersion < 8;}}
326+
{type: 'input', name: 'xccPort', message: 'XCC port?', default:8041, when: function(answers){return answers.mlVersion < 8;} },
327+
{type:'list', name: 'template', message: 'Select Template', choices: [
328+
{ name: 'default', value: 'default' },
329+
{ name: '3-columns', value: '3column' },
330+
{ name: 'Dashboard', value: 'dashboard' },
331+
{ name: 'Full-screen map', value: 'map' },
332+
{ name: 'I don\'t know', value: 'unsure' }
333+
]},
334+
{type:'list', name: 'theme', message: 'What is the main focus?', when: function(ans) { return ans.template === 'unsure'; }, choices: [
335+
{ name: 'Semantics', value: '3column' },
336+
{ name: 'Charts', value: 'dashboard' },
337+
{ name: 'Map/Graph', value: 'map' },
338+
{ name: 'Documents', value: '3column' },
339+
{ name: 'Other', value: 'default' }
340+
]}
327341
];
328342

329343
if (typeof appName === 'undefined') {
@@ -350,6 +364,9 @@ gulp.task('init', ['checkForUpdates'], function (done) {
350364
.then(function() {
351365
// Copy over the Angular files
352366
var files = [__dirname + '/app/templates/**'];
367+
if (answers.theme !== 'default') { // overlay the theme if not the default theme chosen
368+
files.push( __dirname + '/app/themes/' + (answers.theme || answers.template) + '/**');
369+
}
353370

354371
process.chdir('./' + answers.nameDashed);
355372

0 commit comments

Comments
 (0)