调整了一下显示
This commit is contained in:
parent
8a0a724fc3
commit
7a36826f79
|
|
@ -20,6 +20,12 @@ body {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color:#212121;
|
color:#212121;
|
||||||
}
|
}
|
||||||
|
.wrap{
|
||||||
|
white-space:nowrap;
|
||||||
|
text-overflow:ellipsis;
|
||||||
|
-o-text-overflow:ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
.js-navigate-bookmark a{
|
.js-navigate-bookmark a{
|
||||||
color:#212121;
|
color:#212121;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<div class="ui segment" ng-if="showStyle === 'navigate'">
|
<div class="ui segment" ng-if="showStyle === 'navigate'">
|
||||||
<div class="ui internally grid">
|
<div class="ui internally grid">
|
||||||
<div class="row" ng-repeat="tag in bookmarks">
|
<div class="row" ng-repeat="tag in bookmarks">
|
||||||
<div class="one wide column">
|
<div class="wrap" style="width:80px">
|
||||||
<span style="color:#0aa770;">{{ tag.name }}</span>
|
<span style="color:#0aa770;"> {{ tag.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="fifteen wide column">
|
<div class="fourteen wide column">
|
||||||
<div class="ui grid container">
|
<div class="ui grid container">
|
||||||
<div class="two wide column js-navigate-bookmark" ng-class="{divHover:hoverItem}" ng-mouseover="hoverItem=true" ng-mouseleave="hoverItem=false" ng-repeat="bookmark in tag.bookmarks" ng-click="jumpToUrl(bookmark.url)">
|
<div class="two wide column js-navigate-bookmark" style="width:60px" ng-class="{divHover:hoverItem}" ng-mouseover="hoverItem=true" ng-mouseleave="hoverItem=false" ng-repeat="bookmark in tag.bookmarks" ng-click="jumpToUrl(bookmark.url)">
|
||||||
<img class="ui ui middle aligned tiny image" src="http://api.byi.pw/favicon/?url={{ bookmark.url }}" style="width:16px;height:16px">
|
<img class="ui ui middle aligned tiny image" src="http://api.byi.pw/favicon/?url={{ bookmark.url }}" style="width:16px;height:16px">
|
||||||
<span>{{ bookmark.title}}</span>
|
<span>{{ bookmark.title}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,22 @@
|
||||||
var api = require('express').Router();
|
var api = require('express').Router();
|
||||||
var mysql = require('mysql');
|
var mysql = require('mysql');
|
||||||
var crypto = require('crypto');
|
var crypto = require('crypto');
|
||||||
var client = mysql.createConnection({
|
|
||||||
host: '104.238.161.131',
|
|
||||||
user: 'lcq',
|
|
||||||
password: 'fendoubuxi596320',
|
|
||||||
database: 'mybookmarks',
|
|
||||||
multipleStatements: true,
|
|
||||||
port: 3306
|
|
||||||
});
|
|
||||||
// var client = mysql.createConnection({
|
// var client = mysql.createConnection({
|
||||||
// host: '127.0.0.1',
|
// host: '172.24.13.5',
|
||||||
// user: 'lcq',
|
// user: 'root',
|
||||||
// password: '123456',
|
// password: 'root123',
|
||||||
// database: 'mybookmarks',
|
// database: 'mybookmarks',
|
||||||
// multipleStatements: true,
|
// multipleStatements: true,
|
||||||
// port: 3306
|
// port: 3306
|
||||||
// });
|
// });
|
||||||
|
var client = mysql.createConnection({
|
||||||
|
host: '127.0.0.1',
|
||||||
|
user: 'lcq',
|
||||||
|
password: '123456',
|
||||||
|
database: 'mybookmarks',
|
||||||
|
multipleStatements: true,
|
||||||
|
port: 3306
|
||||||
|
});
|
||||||
client.connect();
|
client.connect();
|
||||||
|
|
||||||
api.post('/logout', function(req, res) {
|
api.post('/logout', function(req, res) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue