Browse Source

readme; added luticate back office; added automatic luticate data loading

tags/v0.1.0
Robin Thoni 8 years ago
parent
commit
f3a69e3d5e
6 changed files with 28 additions and 13 deletions
  1. 3
    0
      .gitmodules
  2. 12
    1
      README
  3. 10
    0
      app/app.js
  4. 0
    2
      app/views/home.html
  5. 2
    10
      app/views/toolbar.html
  6. 1
    0
      luticate

+ 3
- 0
.gitmodules View File

@@ -0,0 +1,3 @@
1
+[submodule "luticate"]
2
+	path = luticate
3
+	url = https://git.rthoni.com/luticate/front-backoffice

+ 12
- 1
README View File

@@ -1 +1,12 @@
1
-init
1
+## Starter kit for Angular Material
2
+
3
+Here is an angular material starter kit to use with Luticate (https://git.rthoni.com/luticate/
4
+
5
+# Usage
6
+```shell
7
+git clone https://git.rthoni.com/robin.thoni/starter-angular-material
8
+cd starter-angular-material
9
+git submodule init
10
+git submodule update
11
+bower install
12
+```

+ 10
- 0
app/app.js View File

@@ -15,8 +15,18 @@ angular.module('app', [
15 15
     .config(['$stateProvider', '$urlRouterProvider',
16 16
         function($stateProvider, $urlRouterProvider) {
17 17
 
18
+            $stateProvider.state('root', {
19
+                abstract: true,
20
+                template: '<div ui-view=""></div>',
21
+                resolve: ['luticateAuthUsers', function(luticateAuthUsers)
22
+                {
23
+                    return luticateAuthUsers.loadUserData(null);
24
+                }]
25
+            });
26
+
18 27
             $stateProvider.state('home', {
19 28
                 url:'/',
29
+                parent: 'root',
20 30
                 title: "Home",
21 31
                 reloadOnSearch: false,
22 32
                 templateUrl:'views/home.html',

+ 0
- 2
app/views/home.html View File

@@ -1,7 +1,5 @@
1 1
 <div layout="column" layout-fill layout-align="top center">
2
-
3 2
     <p>
4 3
         Welcome home
5 4
     </p>
6
-
7 5
 </div>

+ 2
- 10
app/views/toolbar.html View File

@@ -1,17 +1,9 @@
1 1
 <md-toolbar layout="row" ng-controller="ToolBarController">
2 2
     <div class="md-toolbar-tools">
3
-        <md-button class="md-icon-button" aria-label="Groupes" ng-click="toggleSideBar()" hide-gt-md>
3
+        <md-button class="md-icon-button" aria-label="Toolbar" ng-click="toggleSideBar()" hide-gt-md>
4 4
             <md-icon md-svg-icon="img/menu.svg"></md-icon>
5 5
         </md-button>
6
-        <h2 ng-show="isInState('home') || isInState('rooms')">
7
-            {{ DataShareBusiness.SearchSeparator }}
8
-            <a ui-sref="{{getStateName()}}({group: DataShareBusiness.getSearchString(group)})" ng-repeat="group in DataShareBusiness.CurrentGroups">
9
-                {{ group.Name }}{{ $last ? "" : " " + DataShareBusiness.SearchSeparator + " " }}
10
-            </a>
11
-        </h2>
12
-        <h2 ng-show="isInState('freeroom')">
13
-            Find a free room
14
-        </h2>
6
+        <h2>Toolbar</h2>
15 7
         <span flex></span>
16 8
     </div>
17 9
 </md-toolbar>

+ 1
- 0
luticate

@@ -0,0 +1 @@
1
+Subproject commit 1566235d9b9fa3bde7784ff3878f9c862642ab23

Loading…
Cancel
Save