angularjs mobile v1.0
@ -38,9 +38,8 @@
|
||||
<script src="/public/mobile2/lib/angular-route.js"></script>
|
||||
<script src="/public/mobile2/js/app.js"></script>
|
||||
<script src="/public/mobile2/js/controllers.js"></script>
|
||||
<script src="/public/mobile2/js/memory-services.js"></script>
|
||||
<script src="/public/mobile2/js/services.js"></script>
|
||||
<script src="/public/mobile2/js/snap.js"></script>
|
||||
<script src="/public/mobile2/js/page.js"></script>
|
||||
<script>
|
||||
angular.element(document).ready(function() {
|
||||
angular.bootstrap(document, ['myApp']);
|
||||
|
1
public/mobile2/README.md
Normal file
@ -0,0 +1 @@
|
||||
angularjs mobile
|
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||
]>
|
||||
<svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
||||
x="0px" y="0px" width="42px" height="42px" viewBox="0 0 42 42" xml:space="preserve">
|
||||
<polygon fill-rule="evenodd" points="31,38.32 13.391,21 31,3.68 28.279,1 8,21.01 28.279,41 "/>
|
||||
</svg>
|
Before Width: | Height: | Size: 938 B |
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||
]>
|
||||
<svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
||||
x="0px" y="0px" width="42px" height="42px" viewBox="0 0 42 42" xml:space="preserve">
|
||||
<path d="M15.562,20.766c-1.328-1.922-2.118-4.241-2.281-4.438c1.945-1.356,5.749-3.06,5.962-5.505
|
||||
C19.514,7.664,14.162,1.06,13.136,1C10.328,1.03,5.189,5.782,4.58,7.218c-1.132,2.969-0.571,5.732,1.375,9.732
|
||||
c2.478,5.95,11.682,17.237,16.947,20.78c3.484,2.674,6.029,3.724,9.068,3.09c1.413-0.268,6.516-4.455,7.027-7.286
|
||||
c0.125-1.05-5.807-8.011-8.875-8.287c-2.382-0.22-4.666,3.346-6.303,5.089c-0.163-0.208-1.559-1.297-3.057-3.021
|
||||
C18.812,25.266,17,22.859,15.562,20.766z" fill="#C6C8C8"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.3 KiB |
@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||
]>
|
||||
<svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
||||
x="0px" y="0px" width="42px" height="42px" viewBox="-0.5 0.5 42 42" xml:space="preserve">
|
||||
<path d="M11.5,30.49v8.996c0,1.217,0.938,1.045,1.25,0.795c0.384-0.308,10.75-9.791,10.75-9.791h13c2.471,0,3-0.529,3-2.999V6.859
|
||||
c0-2.899-0.5-3.359-3-3.359h-32c-2.46,0-3,0.5-3,2.999v20.992c0,2.429,0.42,2.999,3,2.999H11.5z M13.76,18.994
|
||||
c0,1.52-1.24,2.759-2.76,2.759s-2.76-1.239-2.76-2.759c0-1.519,1.24-2.759,2.76-2.759S13.76,17.476,13.76,18.994z M22.76,18.994
|
||||
c0,1.52-1.24,2.759-2.76,2.759c-1.52,0-2.76-1.239-2.76-2.759c0-1.519,1.24-2.759,2.76-2.759
|
||||
C21.52,16.235,22.76,17.476,22.76,18.994z M31.76,18.994c0,1.52-1.24,2.759-2.76,2.759s-2.76-1.239-2.76-2.759
|
||||
c0-1.519,1.24-2.759,2.76-2.759S31.76,17.476,31.76,18.994z" fill="#C6C8C8"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.5 KiB |
@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||
]>
|
||||
<svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
||||
x="0px" y="0px" width="42px" height="42px" viewBox="-0.5 0.5 42 42" xml:space="preserve">
|
||||
<path d="M40.5,31.5v-18c0,0-18.2,12.7-19.97,13.359C18.79,26.23,0.5,13.5,0.5,13.5v18c0,2.5,0.53,3,3,3h34
|
||||
C40.029,34.5,40.5,34.061,40.5,31.5z M40.471,9.971c0-1.821-0.531-2.471-2.971-2.471h-34c-2.51,0-3,0.78-3,2.6l0.03,0.28
|
||||
c0,0,18.069,12.44,20,13.12C22.57,22.71,40.5,10.1,40.5,10.1L40.471,9.971z" fill="#C6C8C8"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 283 B |
Before Width: | Height: | Size: 400 B |
Before Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 711 B |
Before Width: | Height: | Size: 495 B |
Before Width: | Height: | Size: 748 B |
Before Width: | Height: | Size: 496 B |
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||
]>
|
||||
<svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
||||
x="0px" y="0px" width="42px" height="42px" viewBox="0 0 42 42" xml:space="preserve">
|
||||
<polygon fill-rule="evenodd" fill="#C6C8C8" points="11,38.32 28.609,21 11,3.68 13.72,1 34,21.01 13.72,41 "/>
|
||||
</svg>
|
Before Width: | Height: | Size: 952 B |
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||
]>
|
||||
<svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
||||
x="0px" y="0px" width="42px" height="42px" viewBox="0 0 42 42" xml:space="preserve">
|
||||
<polygon fill-rule="evenodd" fill="#5DC1FF" points="11,38.32 28.609,21 11,3.68 13.72,1 34,21.01 13.72,41 "/>
|
||||
</svg>
|
Before Width: | Height: | Size: 952 B |
@ -9,7 +9,7 @@ angular.module('myApp', [
|
||||
'ngRoute',
|
||||
'ngAnimate',
|
||||
'myApp.controllers',
|
||||
'myApp.memoryServices'
|
||||
'myApp.services'
|
||||
]).
|
||||
config(['$routeProvider', '$interpolateProvider', function ($routeProvider, $interpolateProvider) {
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1,19 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
// service 用来共享数据
|
||||
angular.module('myApp.restServices', ['ngResource'])
|
||||
.factory('Employee', ['$resource',
|
||||
function ($resource) {
|
||||
var r = $resource('http://localhost:3000/employees/:employeeId', {});
|
||||
log("r >>>");
|
||||
log(r);
|
||||
log("r <<<");
|
||||
return r;
|
||||
}])
|
||||
|
||||
.factory('Report', ['$resource',
|
||||
function ($resource) {
|
||||
return $resource('http://localhost:3000/employees/:employeeId/reports', {});
|
||||
}]);
|
||||
|
||||
|
@ -1,27 +1,7 @@
|
||||
|
||||
angular.module('myApp.memoryServices', [])
|
||||
.factory('Employee', [
|
||||
function () {
|
||||
return {
|
||||
query: function () {
|
||||
return employees;
|
||||
},
|
||||
get: function (employee) {
|
||||
return findById(parseInt(employee.employeeId));
|
||||
}
|
||||
}
|
||||
|
||||
}])
|
||||
.factory('Report', [
|
||||
function () {
|
||||
return {
|
||||
query: function (employee) {
|
||||
return findByManager(parseInt(employee.employeeId));
|
||||
}
|
||||
}
|
||||
|
||||
}])
|
||||
// services
|
||||
|
||||
angular.module('myApp.services', [])
|
||||
// Note
|
||||
.factory('Note', ["$http", function($http) {
|
||||
var self = this;
|
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 23 KiB |
@ -15,14 +15,15 @@
|
||||
<li class="topcoat-list__item">
|
||||
<a ng-click="go('/notes/all')">
|
||||
<p>[[msg.all]]</p>
|
||||
<span class="chevron"></span><span class="count"></span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li ng-repeat="notebook in notebooks | filter:query | orderBy:'Title'" class="topcoat-list__item">
|
||||
<a ng-click="go('/notes/' + notebook.NotebookId)">
|
||||
<p>[[notebook.Title]]</p>
|
||||
<!--
|
||||
<span class="chevron"></span><span class="count"></span>
|
||||
-->
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -16,7 +16,6 @@
|
||||
<li ng-repeat="note in notes | filter:query | orderBy:'UpdatedTime'" class="topcoat-list__item">
|
||||
<a ng-click="go('/note/' + note.NoteId)">
|
||||
<p>[[note.Title]]</p>
|
||||
<span class="chevron"></span><span class="count"></span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|