mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 00:46:45 +00:00
initial commit
This commit is contained in:
parent
1e531a9091
commit
fca96d641e
14 changed files with 108 additions and 29 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# superProductvity
|
||||
# superProductivity
|
||||
|
||||
This project was generated with [yo angular modular generator](https://github.com/johannesjo/generator-modular-angular)
|
||||
version 1.2.4.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<!doctype html>
|
||||
<html class="no-js">
|
||||
<head>
|
||||
<title>Super productvity</title>
|
||||
<title>Super productivity</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
|
|
@ -30,7 +30,7 @@ TODO configure more restrictive Content-Security-Policy
|
|||
<!-- endbuild -->
|
||||
</head>
|
||||
|
||||
<body ng-app="superProductvity">
|
||||
<body ng-app="superProductivity">
|
||||
|
||||
<main ui-view></main>
|
||||
|
||||
|
|
@ -61,6 +61,7 @@ TODO configure more restrictive Content-Security-Policy
|
|||
<!-- build:js({.tmp,app}) scripts/scripts.js defer -->
|
||||
<!-- inject:js -->
|
||||
<script src="scripts/_app.js"></script>
|
||||
<script src="scripts/daily-planner/daily-planner-d.js"></script>
|
||||
<script src="scripts/routes.js"></script>
|
||||
<!-- endinject -->
|
||||
<!-- endbuild -->
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/**
|
||||
* @ngdoc overview
|
||||
* @name superProductvity
|
||||
* @name superProductivity
|
||||
* @description
|
||||
* # superProductvity
|
||||
* # superProductivity
|
||||
*
|
||||
* Main module of the application.
|
||||
*/
|
||||
|
|
@ -11,10 +11,17 @@
|
|||
'use strict';
|
||||
|
||||
angular
|
||||
.module('superProductvity', [
|
||||
.module('superProductivity', [
|
||||
'ngAnimate',
|
||||
'ngAria',
|
||||
'ngResource',
|
||||
'ui.router'
|
||||
]);
|
||||
'ui.router',
|
||||
'LocalStorageModule'
|
||||
])
|
||||
.config(initLocalStorage);
|
||||
|
||||
function initLocalStorage(localStorageServiceProvider) {
|
||||
localStorageServiceProvider
|
||||
.setPrefix('superProductivity');
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
describe('superProductvity', function () {
|
||||
describe('superProductivity', function() {
|
||||
'use strict';
|
||||
|
||||
beforeEach(module('superProductvity'));
|
||||
beforeEach(module('superProductivity'));
|
||||
|
||||
it('should always work', function () {
|
||||
it('should always work', function() {
|
||||
expect(true)
|
||||
.toBe(true);
|
||||
});
|
||||
|
|
|
|||
3
app/scripts/daily-planner/_daily-planner-d.scss
Normal file
3
app/scripts/daily-planner/_daily-planner-d.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
daily-planner {
|
||||
|
||||
}
|
||||
6
app/scripts/daily-planner/daily-planner-d.html
Normal file
6
app/scripts/daily-planner/daily-planner-d.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<div class ="daily-planner">
|
||||
<div ng-if="!step || step ===0">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
39
app/scripts/daily-planner/daily-planner-d.js
Normal file
39
app/scripts/daily-planner/daily-planner-d.js
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* @ngdoc directive
|
||||
* @name superProductivity.directive:dailyPlanner
|
||||
* @description
|
||||
* # dailyPlanner
|
||||
*/
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
angular
|
||||
.module('superProductivity')
|
||||
.directive('dailyPlanner', dailyPlanner);
|
||||
|
||||
/* @ngInject */
|
||||
function dailyPlanner() {
|
||||
return {
|
||||
templateUrl: 'scripts/daily-planner/daily-planner-d.html',
|
||||
bindToController: true,
|
||||
controller: DailyPlannerCtrl,
|
||||
controllerAs: 'vm',
|
||||
link: linkFn,
|
||||
restrict: 'E',
|
||||
scope: {
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
function linkFn(scope, element, attrs) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* @ngInject */
|
||||
function DailyPlannerCtrl() {
|
||||
var vm = this;
|
||||
}
|
||||
|
||||
})();
|
||||
21
app/scripts/daily-planner/daily-planner-d.spec.js
Normal file
21
app/scripts/daily-planner/daily-planner-d.spec.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
'use strict';
|
||||
|
||||
describe('Directive: dailyPlanner', function() {
|
||||
|
||||
// load the directive's module
|
||||
beforeEach(module('superProductivity'));
|
||||
beforeEach(module('templates'));
|
||||
|
||||
var element,
|
||||
scope;
|
||||
|
||||
beforeEach(inject(function($rootScope) {
|
||||
scope = $rootScope.$new();
|
||||
}));
|
||||
|
||||
it('should do something', inject(function($compile) {
|
||||
element = $compile('<daily-planner></daily-planner>')(scope);
|
||||
scope.$digest();
|
||||
expect(true).toBe(true);
|
||||
}));
|
||||
});
|
||||
|
|
@ -1,17 +1,17 @@
|
|||
/**
|
||||
* @ngdoc overview
|
||||
* @name superProductvity.routes
|
||||
* @name superProductivity.routes
|
||||
* @description
|
||||
* # superProductvity.routes
|
||||
* # superProductivity.routes
|
||||
*
|
||||
* Routes module. All app states are defined here.
|
||||
*/
|
||||
|
||||
(function () {
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
angular
|
||||
.module('superProductvity')
|
||||
.module('superProductivity')
|
||||
.config(routerHelperProvider);
|
||||
|
||||
/* @ngInject */
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
$stateProvider
|
||||
.state('home', {
|
||||
url: '/',
|
||||
template: '<div><h1>Hello!</h1><p>All clean here, as intended! Why not build some routes via "yo moda:r my-route"?</p></div>'
|
||||
template: '<daily-planner></daily-planner>'
|
||||
})
|
||||
/* STATES-NEEDLE - DO NOT REMOVE THIS */;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
describe('superProductvity.routes', function () {
|
||||
describe('superProductivity.routes', function() {
|
||||
'use strict';
|
||||
|
||||
beforeEach(module('superProductvity'));
|
||||
beforeEach(module('superProductivity'));
|
||||
|
||||
it('should be defined', function () {
|
||||
it('should be defined', function() {
|
||||
expect(true).toBe(true);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -33,4 +33,6 @@ IMPORTANT NOTE:
|
|||
|
||||
@import 'base/_typography.scss';
|
||||
|
||||
@import '../scripts/daily-planner/_daily-planner-d.scss';
|
||||
|
||||
// endinject
|
||||
|
|
|
|||
12
bower.json
12
bower.json
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
"name": "superProductvity",
|
||||
"name": "superProductivity",
|
||||
"version": "0.0.0",
|
||||
"authors": [
|
||||
],
|
||||
"authors": [],
|
||||
"license": "none",
|
||||
"private": true,
|
||||
"ignore": [
|
||||
|
|
@ -20,12 +19,13 @@
|
|||
"angular-animate": "^1.5.0",
|
||||
"angular-aria": "^1.5.0",
|
||||
"angular-resource": "^1.5.0",
|
||||
"angular-ui-router": "latest"
|
||||
},
|
||||
"angular-ui-router": "latest",
|
||||
"angular-local-storage": "^0.5.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"angular-mocks": "^1.5.0"
|
||||
},
|
||||
"scripts":{
|
||||
"scripts": {
|
||||
"postinstall": "gulp wiredep"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<?xml version='1.1' encoding='utf-8'?>
|
||||
<widget id="org.superproductvity" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
<name>Super productvity</name>
|
||||
<widget id="org.superproductivity" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
<name>Super productivity</name>
|
||||
<description>
|
||||
Super productvity is fabulous
|
||||
Super productivity is fabulous
|
||||
</description>
|
||||
<author email="your@email.com" href="http://your-domain.de">
|
||||
Your Name
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "superProductvity",
|
||||
"name": "superProductivity",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"main": "gulpfile.js",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue