Skip to content

Commit

Permalink
fixed #138 and #142
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Sep 22, 2014
1 parent 51d1ec3 commit 51cd99d
Show file tree
Hide file tree
Showing 10 changed files with 90 additions and 40 deletions.
4 changes: 3 additions & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<link rel="stylesheet" href="components/fontIconPicker/themes/inverted-theme/jquery.fonticonpicker.inverted.css">
<link rel="stylesheet" href="components/ng-tags-input/ng-tags-input.min.css">
<link rel="stylesheet" href="components/ng-tags-input/ng-tags-input.bootstrap.css">
<link rel="stylesheet" href="components/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css">

<!--<link rel="stylesheet" href="components/ng-grid/ng-grid.min.css"/>-->
<!--<link rel="stylesheet" href="components/bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css"/>-->
Expand Down Expand Up @@ -163,7 +164,8 @@
<script src="scripts/util/orientdb-hint.js"></script>
<script src="components/angular-scroll/angular-scroll.min.js"></script>
<script src="components/ng-table/ng-table.min.js"></script>

<script src="components/angular-bootstrap-switch/dist/angular-bootstrap-switch.min.js"></script>
<script src="components/bootstrap-switch/dist/js/bootstrap-switch.min.js"></script>

<!--<script type="text/javascript"-->
<!--src="components/bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>-->
Expand Down
3 changes: 2 additions & 1 deletion app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ var deps = ['header.controller',
'ngAnimate',
'angularSpectrumColorpicker',
'pascalprecht.translate',
'ngTagsInput'];
'ngTagsInput',
'frapontillo.bootstrap-switch'];


var App = angular.module('OrientDBStudioApp', deps);
Expand Down
1 change: 1 addition & 0 deletions app/scripts/controllers/function-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ schemaModule.controller("FunctionController", ['$scope', '$routeParams', '$locat
$scope.database = Database;
$scope.listClass = 'fa-mail-reply';
$scope.logLevel = ""
$scope.isCode = true;
$scope.listClasses = $scope.database.listClasses();
$scope.editorOptions = {
lineWrapping: true,
Expand Down
7 changes: 6 additions & 1 deletion app/scripts/controllers/login-controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var login = angular.module('login.controller', ['database.services']);
login.controller("LoginController", ['$scope', '$rootScope', '$routeParams', '$location', '$modal', '$q', 'Database', 'DatabaseApi', 'Notification', '$http', 'Spinner', function ($scope, $rootScope, $routeParams, $location, $modal, $q, Database, DatabaseApi, Notification, $http, Spinner) {
login.controller("LoginController", ['$scope', '$rootScope', '$routeParams', '$location', '$modal', '$q', 'Database', 'DatabaseApi', 'Notification', '$http', 'Spinner', 'localStorageService', function ($scope, $rootScope, $routeParams, $location, $modal, $q, Database, DatabaseApi, Notification, $http, Spinner, localStorageService) {

$scope.server = "http://localhost:2480"

Expand Down Expand Up @@ -108,6 +108,11 @@ login.controller("LoginController", ['$scope', '$rootScope', '$routeParams', '$l
if ($scope.databases.length > 0) {
$scope.database = $scope.databases[0];
}
var timeline = localStorageService.get("Timeline");
if (timeline) {
delete timeline[modalPromise.$scope.name];
localStorageService.add("Timeline", timeline);
}
Notification.push({content: noti});
modalPromise.hide();
}, function (data) {
Expand Down
22 changes: 22 additions & 0 deletions app/styles/animation.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,27 @@
}


@-webkit-keyframes bookmarksInFromLeft {
0% {
-webkit-transform: translateX(-25%);
}
40% {
-webkit-transform: translateX(-15%);
}
100% {
-webkit-transform: translateX(0px);
}
}
@-moz-keyframes bookmarksInFromLeft {
0% {
transform: translateX(-320px);
}
40% {
transform: translateX(-100px);
}
100% {
transform: translateX(0px);
}
}


66 changes: 37 additions & 29 deletions app/styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -190,21 +190,51 @@ body div.container-studio {
/*color: white;*/
}

.aside-list {
overflow: auto;
height: 100%;
}

.aside .container-fluid {
height: 100%;
}

.aside-list-container .row:first-child {
height: 20%;
}

.aside-list-container .row:last-child {
height: 80%;
}

.aside-list-container {
height: 100%;
}

.oaside-body {
height: 100%;

}

.search-bookmarks label {
color: white;
}

.oaside {
background-color: #30333a;
/*background-color: #222326;*/
height: 100%;
width: 320px;
width: 25%;
position: fixed;
top: 0px;
padding-top: 50px;
left: 0px;
z-index: 1000;
border-right: 1px solid #222326;
box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.5);
-webkit-transform: translateX(-320px);
transform: translateX(-320px);
-ms-transform: translateX(-320px);
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
-ms-transform: translateX(-100%);
}

.oaside .close {
Expand Down Expand Up @@ -241,30 +271,6 @@ body div.container-studio {
-webkit-animation-duration: 0.2s;
}

@-moz-keyframes bookmarksInFromLeft {
0% {
transform: translateX(-260px);
}
40% {
transform: translateX(-100px);
}
100% {
transform: translateX(0px);
}
}

@-webkit-keyframes bookmarksInFromLeft {
0% {
-webkit-transform: translateX(-320px);
}
40% {
-webkit-transform: translateX(-100px);
}
100% {
-webkit-transform: translateX(0px);
}
}

input.search-query {
padding-right: 14px;
padding-right: 4px \9;
Expand All @@ -280,10 +286,12 @@ input.search-query {
}

.search-bookmarks div.form-group {
margin-top: 15px;
margin-top: 10px;
margin-bottom: 10px;
}

.search-bookmarks {
margin-bottom: 5px;
}

.antialiased {
Expand Down
2 changes: 1 addition & 1 deletion app/views/database/config/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h3>Custom Properties</h3>
<a ng-show="links[val.name]" href="javascript:void(0)" tabindex="1"
data-trigger="focus" data-placement="right"
data-container="body"

data-content="{{ 'configuration.' + val.name | translate:links }}" bs-popover>
<i class="fa fa-question-circle"></i>
</a>
Expand Down
20 changes: 15 additions & 5 deletions app/views/database/function/functionAside.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
<div class="container-fluid" role="dialog" tabindex="-1">

<div class="container-fluid aside-list-container" role="dialog" tabindex="-1">

<div class="row">
<form class="form-search search-bookmarks">
<div class="form-group col-md-10 col-md-offset-1">
<input type="text" class="form-control search-query" ng-model="queryy"
<div class="form-group col-md-12" ng-hide="isCode">
<input type="text" class="form-control search-query" ng-model="query.name"
placeholder="Search Functions">
</div>
<div class="form-group col-md-12" ng-show="isCode">
<input type="text" class="form-control search-query" ng-model="query"
placeholder="Search Functions">
</div>
<div class="form-group col-md-12">
<label class="col-md-8 control-label">Search also in code</label>
<div class="col-md-4">
<input type="checkbox" ng-change="query = null" bs-switch switch-size="mini" ng-model="isCode"
placeholder="Search In code">
</div>
</div>
</form>
</div>
<div class="row">
<div class="list-group aside-list">
<a class="list-group-item" href="javascript:void(0)"
ng-repeat="func in functions | orderBy: 'name' | filter:queryy |filter:queryy.code"
ng-repeat="func in functions | orderBy: 'name' | filter:query"
ng-class="{active : functionToExecute == func}" ng-click="selectFunction(func)"
value="{{func['name']}}">
<span class="badge">{{func['language']}}</span>
Expand Down
2 changes: 1 addition & 1 deletion app/views/widget/aside.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<h5 class="oaside-title">{{model.title}}</h5>
</div>

<div aside="model"></div>
<div class="oaside-body" aside="model"></div>

</div>
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"nprogress": "0.1.6",
"ng-tags-input": "2.1.1",
"angular-translate": "2.2.0",
"angular-translate-loader-partial": "2.0.0"
"angular-translate-loader-partial": "2.0.0",
"angular-bootstrap-switch": "0.3.0"
},
"devDependencies": {
"angular-mocks": "~1.0.5",
Expand Down

0 comments on commit 51cd99d

Please sign in to comment.