-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CE-48] Add store statement for user dashboard
And refine redirect after user login Change-Id: I8af515682990c5733c001856747629b3063e710b Signed-off-by: lixucheng <lixucheng@aliyun.com>
- Loading branch information
Showing
8 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@CHARSET "UTF-8"; | ||
.ds-store-list{width:80%;margin-top:60px;font-family:"Helvetica Neue",Arial,sans-serif; | ||
text-align:center;padding-top:10%;} | ||
.ds-store-list h1{font-size:24px;color:#4178BE;margin-top:42px;border-bottom:2px solid #4178BE;} | ||
.dashboard-bgi{position:fixed;top:0;left:0;width:100%;height:100%; | ||
background-image:url(/images/dashboard-bgi.jpg); | ||
background-position:center center; | ||
background-repeat:no-repeat; | ||
-webkit-background-size:cover; | ||
background-size:cover; | ||
z-index:-1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Created by lixuc on 2017/5/17. | ||
*/ | ||
define([ | ||
"jquery", | ||
"app/dashboard/profile", | ||
"uikit" | ||
], function($, Profile) { | ||
$(function() { | ||
new Profile(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* Created by lixuc on 2017/5/17. | ||
*/ | ||
requirejs(["../common"], function(common) { | ||
requirejs(["app/dashboard/store"]); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ router.get([ | |
next(e); | ||
}); | ||
} else { | ||
res.cookie("referer", req.originalUrl); | ||
res.redirect("/"); | ||
} | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* Created by lixuc on 2017/5/17. | ||
*/ | ||
var express = require("express"); | ||
var router = express.Router(); | ||
|
||
router.get("/store", function(req, res) { | ||
res.render("dashboard/store"); | ||
}); | ||
module.exports = router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
extends ../layout | ||
|
||
block css | ||
link(rel="stylesheet", href="/css/dashboard/navbar.css") | ||
link(rel="stylesheet", href="/css/dashboard/store.css") | ||
block js | ||
script(data-main="/js/entry/store" src="/js/lib/require.js") | ||
block content | ||
include includes/navbar.pug | ||
+active("store") | ||
section.ds-store-list.uk-container.uk-container-center | ||
.dashboard-bgi | ||
label(style="font-size:52px;font-style:italic;color:#4178BE;") | ||
i.uk-icon-warning.uk-margin-right | ||
| Under construction... |