index.html 5.72 KB
Newer Older
lepdou committed
1
<!doctype html>
lepdou committed
2
<html ng-app="index">
lepdou committed
3 4
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
zhangle committed
5
    <link rel="icon" href="./img/config.png">
lepdou committed
6 7 8 9
    <!-- styles -->
    <link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="vendor/angular/angular-toastr-1.4.1.min.css">
    <link rel="stylesheet" type="text/css" media='all' href="vendor/angular/loading-bar.min.css">
lepdou committed
10 11
    <link rel="stylesheet" type="text/css" media='all' href="vendor/font-awesome.min.css">

lepdou committed
12
    <link rel="stylesheet" type="text/css" href="styles/common-style.css">
zhangle committed
13
    <title>Apollo配置中心</title>
lepdou committed
14 15
</head>

16
<body>
lepdou committed
17

18
<apollonav></apollonav>
lepdou committed
19

lepdou committed
20
<div id="app-list" class="hidden" ng-controller="IndexController">
21

22 23 24 25 26
    <section class="media create-app-list">
        <aside class="media-left text-center">
            <h5>我的项目</h5>
        </aside>
        <aside class="media-body">
zhangle committed
27
            <div class="app-panel col-md-2 text-center" ng-click="goToCreateAppPage()">
28 29 30
                <div href="#" class="thumbnail create-btn hover cursor-pointer">
                    <img src="img/plus-white.png"/>
                    <h5>创建项目</h5>
lepdou committed
31
                </div>
32
            </div>
lepdou committed
33 34
            <div class="app-panel col-md-2 text-center" ng-repeat="app in createdApps"
                 ng-click="goToAppHomePage(app.appId)">
35 36 37 38 39
                <div href="#" class="thumbnail hover cursor-pointer">
                    <h4 ng-bind="app.appId"></h4>
                    <h5 ng-bind="app.name"></h5>
                </div>
            </div>
zhangle committed
40
            <div class="app-panel col-md-2 text-center" ng-show="hasMoreCreatedApps"
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
                 ng-click="getUserCreatedApps()">
                <div href="#" class="thumbnail hover cursor-pointer">
                    <img class="more-img" src="img/more.png"/>
                    <h5>加载更多</h5>
                </div>
            </div>
        </aside>
    </section>

    <section class="media favorites-app-list">
        <aside class="media-left text-center">
            <h5>收藏的项目</h5>
        </aside>
        <aside class="media-body">
            <div class="app-panel col-md-2 text-center"
                 ng-repeat="app in favorites"
                 ng-click="goToAppHomePage(app.appId)"
                 ng-mouseover="toggleOperationBtn(app)"
                 ng-mouseout="toggleOperationBtn(app)">
                <div class="thumbnail hover">
                    <h4 ng-bind="app.appId"></h4>
                    <h5 ng-bind="app.name"></h5>

                    <p class="operate-panel" ng-show="app.showOperationBtn">
                        <button class="btn btn-default btn-xs" title="置顶"
                                ng-click="toTop(app.favoriteId);$event.stopPropagation();">
                            <img src="img/top.png" class="i-15">
                        </button>
                        <button class="btn btn-default btn-xs" title="取消收藏"
                                ng-click="deleteFavorite(app.favoriteId);$event.stopPropagation();">
                            <img src="img/like.png" class="i-15">
                        </button>
lepdou committed
73
                    </p>
74 75 76 77 78 79 80 81 82 83 84 85
                </div>
            </div>
            <div class="col-md-2 text-center" ng-show="hasMoreFavorites"
                 ng-click="getUserFavorites()">
                <div href="#" class="thumbnail hover cursor-pointer">
                    <img class="more-img" src="img/more.png"/>
                    <h5>加载更多</h5>
                </div>
            </div>
            <div class="no-favorites text-center" ng-show="!favorites || favorites.length == 0">
                <h4>您还没有收藏过任何项目,在项目主页可以收藏项目哟~</h4>
            </div>
lepdou committed
86

87 88 89 90 91 92 93 94 95 96
        </aside>
    </section>

    <section class="media visit-app-list" ng-show="visitedApps && visitedApps.length">
        <aside class="media-left text-center">
            <h5>最近浏览的项目</h5>
        </aside>
        <aside class="media-body">
            <div class="app-panel col-md-2 text-center"
                 ng-repeat="app in visitedApps"
97
                 ng-click="goToAppHomePage(app.appId)">
98 99 100
                <div class="thumbnail hover">
                    <h4 ng-bind="app.appId"></h4>
                    <h5 ng-bind="app.name"></h5>
lepdou committed
101
                </div>
lepdou committed
102
            </div>
103 104
        </aside>
    </section>
lepdou committed
105 106
</div>

107

lepdou committed
108 109 110 111 112 113 114 115 116
<div ng-include="'views/common/footer.html'"></div>

<!--angular-->
<script src="vendor/angular/angular.min.js"></script>
<script src="vendor/angular/angular-resource.min.js"></script>
<script src="vendor/angular/angular-toastr-1.4.1.tpls.min.js"></script>
<script src="vendor/angular/loading-bar.min.js"></script>

<!-- jquery.js -->
117
<script src="vendor/jquery.min.js" type="text/javascript"></script>
lepdou committed
118 119 120 121

<!-- bootstrap.js -->
<script src="vendor/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>

lepdou committed
122 123 124
<!--nicescroll-->
<script src="vendor/jquery.nicescroll.min.js"></script>

lepdou committed
125 126
<script type="application/javascript" src="scripts/app.js"></script>
<script type="application/javascript" src="scripts/services/AppService.js"></script>
127
<script type="application/javascript" src="scripts/services/EnvService.js"></script>
128
<script type="application/javascript" src="scripts/services/UserService.js"></script>
129
<script type="application/javascript" src="scripts/services/CommonService.js"></script>
130
<script type="application/javascript" src="scripts/services/FavoriteService.js"></script>
lepdou committed
131
<script type="application/javascript" src="scripts/AppUtils.js"></script>
132 133
<script type="application/javascript" src="scripts/directive/directive.js"></script>

lepdou committed
134
<script type="application/javascript" src="scripts/controller/IndexController.js"></script>
lepdou committed
135

lepdou committed
136 137
</body>
</html>