diff --git a/app.js b/app.js index f5d1667..fe91d77 100644 --- a/app.js +++ b/app.js @@ -28,11 +28,11 @@ app.use(cookieParser()); app.use(session({ rolling: true, - resave: false, //添加这行 - saveUninitialized: true, //添加这行 + resave: false, // + saveUninitialized: true, // secret: 'ILoveYiJia', // 建议使用 128 个字符的随机字符串 cookie: { - maxAge: 1000 * 60, + maxAge: 30 * 24 * 60 * 60 * 1000, // 一个月 }, store: new mongoStore({ url: 'mongodb://localhost/mybookmarks' diff --git a/public/images/copy-hover.png b/public/images/copy-hover.png new file mode 100644 index 0000000..bc78c17 Binary files /dev/null and b/public/images/copy-hover.png differ diff --git a/public/images/copy.png b/public/images/copy.png new file mode 100644 index 0000000..ade469f Binary files /dev/null and b/public/images/copy.png differ diff --git a/public/scripts/controllers/bookmarks-controller.js b/public/scripts/controllers/bookmarks-controller.js index 104c68b..5355514 100644 --- a/public/scripts/controllers/bookmarks-controller.js +++ b/public/scripts/controllers/bookmarks-controller.js @@ -57,6 +57,10 @@ app.controller('bookmarksCtr', ['$scope', '$state', '$stateParams', '$filter', ' $scope.detailBookmark = function(bookmarkId) { toastr.warning('功能暂未实现。。。', "警告"); } + $scope.copyBookmark = function(bookmarkUrl) { + toastr.warning(bookmarkUrl, "警告"); + } + $scope.jumpToTags = function(tagId) { $state.go('tags', { diff --git a/public/views/bookmarks.html b/public/views/bookmarks.html index 56731b1..42ac8c5 100644 --- a/public/views/bookmarks.html +++ b/public/views/bookmarks.html @@ -64,9 +64,10 @@ - - - + + + +