获取了网站的icoo
This commit is contained in:
parent
a6dfbc6d80
commit
91f4fef92f
|
|
@ -3,6 +3,27 @@ app.controller('bookmarksCtr', ['$scope', '$stateParams', '$filter', 'bookmarkSe
|
||||||
$scope.bookmarks = []; // 书签数据
|
$scope.bookmarks = []; // 书签数据
|
||||||
$scope.showSearch = false; // 书签数据
|
$scope.showSearch = false; // 书签数据
|
||||||
$scope.showStyle = 'table'; // 显示风格'navigate', 'card', 'table'
|
$scope.showStyle = 'table'; // 显示风格'navigate', 'card', 'table'
|
||||||
|
$scope.test = [{
|
||||||
|
a: 1
|
||||||
|
}, {
|
||||||
|
a: 1
|
||||||
|
}, {
|
||||||
|
a: 1
|
||||||
|
}, {
|
||||||
|
a: 1
|
||||||
|
}, {
|
||||||
|
a: 1
|
||||||
|
}, {
|
||||||
|
a: 1
|
||||||
|
}, {
|
||||||
|
a: 1
|
||||||
|
}, {
|
||||||
|
a: 1
|
||||||
|
}, {
|
||||||
|
a: 1
|
||||||
|
}, {
|
||||||
|
a: 1
|
||||||
|
}];
|
||||||
|
|
||||||
semanticInit();
|
semanticInit();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,22 @@
|
||||||
|
<div class="ui segment">
|
||||||
|
<div class="ui grid">
|
||||||
|
<div class="row" ng-repeat="ss in test">
|
||||||
|
<div class="one wide column">
|
||||||
|
ssssss
|
||||||
|
</div>
|
||||||
|
<div class="fifteen wide column">
|
||||||
|
<div class="ui cards">
|
||||||
|
<div class="card" ng-repeat="ss in test">
|
||||||
|
<div class="content">
|
||||||
|
<div class="header">Elliot Fu</div>
|
||||||
|
<div class="meta">Friend</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="ui small menu js-search-detail" ng-if="showSearch">
|
<div class="ui small menu js-search-detail" ng-if="showSearch">
|
||||||
<div class="ui dropdown item">
|
<div class="ui dropdown item">
|
||||||
<div class="text">搜索范围</div>
|
<div class="text">搜索范围</div>
|
||||||
|
|
@ -44,11 +63,10 @@
|
||||||
<div class="ui button">搜索</div>
|
<div class="ui button">搜索</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="ui celled table" ng-if="showStyle === 'table'">
|
<table class="ui celled table" ng-if="showStyle === 'table'">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="center aligned">标题</th>
|
<th>标题</th>
|
||||||
<th>链接</th>
|
<th>链接</th>
|
||||||
<th>点击次数</th>
|
<th>点击次数</th>
|
||||||
<th>创建日期</th>
|
<th>创建日期</th>
|
||||||
|
|
@ -58,7 +76,13 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr ng-repeat="bookmark in bookmarks">
|
<tr ng-repeat="bookmark in bookmarks">
|
||||||
<td class="center aligned"><a href="{{ bookmark.url }}" target="_blank">{{ bookmark.title }}</a></td>
|
<td>
|
||||||
|
<img class="ui ui middle aligned tiny image" src="http://api.byi.pw/favicon/?url={{bookmark.url}}" style="width:16px;height:16px">
|
||||||
|
<span>
|
||||||
|
<a href="{{ bookmark.url }}" target="_blank">{{ bookmark.title }}
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
<td>{{ bookmark.url }}</td>
|
<td>{{ bookmark.url }}</td>
|
||||||
<td>{{ bookmark.click_count }}</td>
|
<td>{{ bookmark.click_count }}</td>
|
||||||
<td>{{ bookmark.created_at }}</td>
|
<td>{{ bookmark.created_at }}</td>
|
||||||
|
|
@ -89,3 +113,16 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
|
ght chevron icon"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
/a>
|
||||||
|
</div>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,17 @@
|
||||||
var api = require('express').Router();
|
var api = require('express').Router();
|
||||||
var mysql = require('mysql');
|
var mysql = require('mysql');
|
||||||
|
// var client = mysql.createConnection({
|
||||||
|
// host: '172.24.13.5',
|
||||||
|
// user: 'root',
|
||||||
|
// password: 'root123',
|
||||||
|
// database: 'mybookmarks',
|
||||||
|
// multipleStatements: true,
|
||||||
|
// port: 3306
|
||||||
|
// });
|
||||||
var client = mysql.createConnection({
|
var client = mysql.createConnection({
|
||||||
host: '172.24.13.5',
|
host: '127.0.0.1',
|
||||||
user: 'root',
|
user: 'lcq',
|
||||||
password: 'root123',
|
password: '123456',
|
||||||
database: 'mybookmarks',
|
database: 'mybookmarks',
|
||||||
multipleStatements: true,
|
multipleStatements: true,
|
||||||
port: 3306
|
port: 3306
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue