Skip to content
This repository was archived by the owner on Jul 4, 2018. It is now read-only.

Commit bb315cd

Browse files
authored
Merge pull request #60 from FoalTS/v-0-4-0-beta-3
v.0.4.0-beta.3
2 parents 91a1187 + c07777e commit bb315cd

File tree

6 files changed

+35
-19
lines changed

6 files changed

+35
-19
lines changed

generators/app/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,11 @@ Welcome to the FoalTS generator! The following questions will help you create yo
171171
this.fs.copy(
172172
this.templatePath('public/logo.png'),
173173
this.destinationPath(`${this.names.kebabName}/public/logo.png`),
174-
)
174+
);
175+
this.fs.copy(
176+
this.templatePath('../../../node_modules/bootstrap/dist/css/bootstrap.min.css'),
177+
this.destinationPath(`${this.names.kebabName}/public/bootstrap.min.css`),
178+
);
175179
}
176180

177181
install() {

generators/app/templates/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"lint": "tslint -c tslint.json -p tsconfig.json",
77
"build": "gulp clean && gulp build",
8-
"shell": "cd dist/app && node -e \"const { app } = require('./app')\" -i",
8+
"shell": "node -e \"const { app } = require('./dist/app/app')\" -i",
99
"test": "mocha -r source-map-support/register \"./dist/**/*.spec.js\"",
1010
"start": "node server.js",
1111
"dev:app": "gulp clean && gulp dev:app",

generators/app/templates/src/app/auth/templates/login-view.html

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,29 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<meta http-equiv="X-UA-Compatible" content="ie=edge">
77
<title>Login</title>
8+
<link rel="stylesheet" href="bootstrap.min.css">
9+
<style>
10+
body {
11+
background-color: #f5f5f5;
12+
padding-top: 40px;
13+
}
14+
form {
15+
margin: auto;
16+
max-width: 400px;
17+
}
18+
</style>
819
</head>
920
<body>
10-
<form action="/auth/local" method="post"><% if (invalidCredentials) { %>
11-
<strong>Invalid credentials.</strong><% } %>
21+
<form class="text-center" action="/auth/local" method="post">
22+
<h1 class="h3 mb-4">Log in</h1><% if (invalidCredentials) { %>
23+
<div class="alert alert-danger">
24+
<strong>Invalid credentials.</strong>
25+
</div><% } %>
1226
<input type="hidden" name="_csrf" value="<%- csrfToken %>">
13-
<input type="email" name="email" required autofocus>
27+
<input class="form-control" type="email" name="email" placeholder="Email adress" required autofocus>
1428
<br>
15-
<input type="password" name="password" required>
16-
<button type="submit">Log in</button>
29+
<input class="form-control mb-3" type="password" name="password" placeholder="Password" required>
30+
<button class="btn btn-primary btn-block" type="submit">Log in</button>
1731
</form>
1832
</body>
1933
</html>

generators/app/templates/src/app/templates/index.html

Lines changed: 1 addition & 9 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-foal",
3-
"version": "0.4.0-beta.2",
3+
"version": "0.4.0-beta.3",
44
"description": "Yeoman generators to quickly start a project and create components (services, controllers, etc.)",
55
"files": [
66
"generators"
@@ -20,7 +20,8 @@
2020
"lodash": "^4.17.4",
2121
"mkdirp": "^0.5.1",
2222
"yeoman-assert": "^3.1.0",
23-
"yeoman-generator": "^1.1.1"
23+
"yeoman-generator": "^1.1.1",
24+
"bootstrap": "^4.0.0"
2425
},
2526
"repository": {
2627
"type": "git",

0 commit comments

Comments
 (0)