Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 10, 2019. It is now read-only.

Commit1ca68c9

Browse files
committed
build ver 1
1 parente786193 commit1ca68c9

38 files changed

+1466
-0
lines changed

‎.bowerrc‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory" : "./vendor"
3+
}

‎.editorconfig‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root =true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
indent_style =space
9+
end_of_line =lf
10+
charset =utf-8
11+
insert_final_newline =true
12+
13+
# tab indentation
14+
[*.{css,scss,twig}]
15+
indent_size =2
16+
17+
# 2 spaces indentation for JS
18+
[*.js]
19+
indent_size =2
20+
21+
[*.json]
22+
indent_size =2
23+
24+
# 4 spaces indentation for PHP (PSR-2)
25+
[*.{php,module,inc]
26+
indent_size =4

‎.gitignore‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.sass-cache
2+
.idea
3+
Gemfile.lock
4+
node_modules
5+
coverage/
6+
logs
7+
*.log
8+
originalChannel
9+
media/*
10+
PSD_AI
11+
config/runtime.json
12+
13+
# OS generated files #
14+
######################
15+
*/.DS_Store
16+
.DS_Store
17+
.DS_Store?
18+
._*
19+
.Spotlight-V100
20+
.Trashes
21+
ehthumbs.db
22+
Thumbs.db
23+
run.sh
24+
runTest.sh
25+
dump.rdb
26+
27+
/bower_components/
28+
/src/vendor
29+
/vendor
30+
/public
31+
32+
backend/modules/users/data/**
33+
!backend/modules/users/data/hitmands.json
34+
35+
!src/vendor/_custom

‎Gruntfile.js‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
module.exports=function(grunt){
2+
'use strict';
3+
4+
varfrontendConfigs=grunt.file.readJSON('./config/frontend-configuration.json');
5+
varpkg=grunt.file.readJSON('./package.json');
6+
7+
require('load-grunt-config')(grunt,{
8+
init:true,
9+
jitGrunt:{
10+
staticMappings:{
11+
"ngtemplates" :"grunt-angular-templates"
12+
}
13+
},
14+
data:{
15+
"frontend" :frontendConfigs,
16+
"pkg" :pkg
17+
}
18+
});
19+
20+
21+
22+
grunt.task.registerTask('default',[
23+
'newer:uglify:development',
24+
'newer:ngAnnotate',
25+
'newer:jshint:frontend'
26+
]);
27+
28+
grunt.task.registerTask('ngapp',[
29+
'uglify:development',
30+
'ngAnnotate',
31+
'jshint:frontend',
32+
'uglify:production'
33+
]);
34+
35+
grunt.task.registerTask('release',[
36+
'ngapp',
37+
'concat:bannerize'
38+
]);
39+
};

‎backend/endpoints.js‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
var_rand=function(items){
2+
returnitems[Math.floor(Math.random()*items.length)];
3+
};
4+
5+
var_randBool=function(){
6+
return_rand([true,false]);
7+
};
8+
9+
module.exports=function(app){
10+
11+
app
12+
.all('/api/v1/test/form',function(req,res){
13+
14+
res.status(200).json({
15+
'valid' :true,
16+
'message' :'form processed'
17+
});
18+
})
19+
20+
.all('/api/v1/test/simple',function(req,res){
21+
22+
res.status(200).json({
23+
'valid' :true
24+
});
25+
})
26+
27+
.all('/api/v1/test/list',function(req,res){
28+
29+
res.status(200).json({
30+
'valid' :true
31+
});
32+
})
33+
34+
.all('/api/v1/test/upload',function(req,res){
35+
36+
res.status(200).json({
37+
'valid' :true
38+
});
39+
})
40+
41+
.all('/api/v1/test/error',function(req,res){
42+
43+
res.status(400).json({
44+
'invalid' :true
45+
});
46+
})
47+
;
48+
};

‎bower.json‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name":"angular-ajax-interceptor",
3+
"version":"1.0.0",
4+
"homepage":"https://github.com/Code-Y/angular-ajax-interceptor",
5+
"authors": [
6+
"Hitmands <gius.mand.developer@gmail.com>",
7+
"Luca Pau <luca.pau82@gmail.com>"
8+
],
9+
"description":"A simple interceptor to format $http request and response",
10+
"main":"index.html",
11+
"keywords": [
12+
"AngularJS"
13+
],
14+
"license":"MIT",
15+
"ignore": [
16+
"./**/*.*",
17+
"!./release/"
18+
],
19+
"dependencies": {
20+
"angular":"1.3.14"
21+
},
22+
"devDependencies": {
23+
},
24+
"resolutions": {
25+
"angular":"1.3.14"
26+
}
27+
}

‎config/angular-livetemplates.xml‎

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
<templateSetgroup="angular-esis">
2+
<templatename="ngCtrl"value="(function() {&#10;&#10; /* @ngInject */&#10; function $ControllerName$Config($stateProvider) {&#10; var section = {&#10; name: 'app.$state$',&#10; url: '$url$/',&#10;// abstract: true,&#10; data: {},&#10; views: {&#10; '$VIEW$@': {&#10;// controllerAs: '',&#10; templateUrl: '/partials/$END$/$ControllerName$.html',&#10; controller: '$ControllerName$Ctrl'&#10; }&#10; }&#10; };&#10;&#10; $stateProvider&#10; .state(section);&#10; }&#10;&#10; /* @ngInject */&#10; function $ControllerName$Ctrl() {&#10;// var vm = this;&#10;&#10; }&#10;&#10; angular&#10; .module('$APP$')&#10; .config($ControllerName$Config)&#10; .controller('$ControllerName$Ctrl', $ControllerName$Ctrl)&#10; ;&#10;}).call(this);&#10;"description="Define a new Angular Controller."toReformat="false"toShortenFQNames="true">
3+
<variablename="APP"expression=""defaultValue=""alwaysStopAt="true" />
4+
<variablename="ControllerName"expression=""defaultValue=""alwaysStopAt="true" />
5+
<variablename="state"expression=""defaultValue=""alwaysStopAt="true" />
6+
<variablename="url"expression=""defaultValue=""alwaysStopAt="true" />
7+
<variablename="VIEW"expression=""defaultValue="'main'"alwaysStopAt="true" />
8+
<context>
9+
<optionname="HTML_TEXT"value="false" />
10+
<optionname="HTML"value="false" />
11+
<optionname="XSL_TEXT"value="false" />
12+
<optionname="XML"value="false" />
13+
<optionname="JSP"value="false" />
14+
<optionname="CSS_PROPERTY_VALUE"value="false" />
15+
<optionname="CSS_DECLARATION_BLOCK"value="false" />
16+
<optionname="CSS_RULESET_LIST"value="false" />
17+
<optionname="CSS"value="false" />
18+
<optionname="JS_STATEMENT"value="true" />
19+
<optionname="HAML"value="false" />
20+
<optionname="OTHER"value="false" />
21+
</context>
22+
</template>
23+
<templatename="ngProv"value="(function() {&#10;&#10; /* @ngInject */&#10; function $ProviderName$ProviderFactory() {&#10; var self = this;&#10;&#10;&#10; self.$get = function $ServiceName$Factory() {&#10;&#10; return {&#10; $END$&#10; };&#10; };&#10; }&#10;&#10; angular&#10; .module('$APP$')&#10; .provider('$ProviderName$', $ProviderName$ProviderFactory)&#10; ;&#10;}).call(this);"description="Define a new Angular Provider."toReformat="false"toShortenFQNames="true">
24+
<variablename="APP"expression=""defaultValue="myApp"alwaysStopAt="true" />
25+
<variablename="ProviderName"expression=""defaultValue=""alwaysStopAt="true" />
26+
<variablename="ServiceName"expression=""defaultValue="ProviderName"alwaysStopAt="true" />
27+
<context>
28+
<optionname="JAVA_SCRIPT"value="true" />
29+
<optionname="JS_EXPRESSION"value="true" />
30+
<optionname="JS_STATEMENT"value="true" />
31+
</context>
32+
</template>
33+
<templatename="ngMod"value="(function() {&#10;&#10; /* @ngInject */&#10; function $ConfigName$Config() {&#10;&#10; }&#10;&#10; /* @ngInject */&#10; function $ConfigName$Run($rootScope) {&#10;&#10; }&#10;&#10;&#10; var dependencies = [&#10; $END$&#10; ];&#10;&#10;// var applicationConfigConstant = window[&quot;$ConstantName$&quot;] || {};&#10;&#10; angular&#10; .module('$APP$', dependencies)&#10;// .constant('$ConstantName$', applicationConfigConstant)&#10; .config($ConfigName$Config)&#10; .run($ConfigName$Run)&#10; ;&#10;}).call(this);&#10;"description="Define a new Angular Module."toReformat="false"toShortenFQNames="true">
34+
<variablename="APP"expression=""defaultValue=""alwaysStopAt="true" />
35+
<variablename="ConfigName"expression="firstWord()"defaultValue="APP"alwaysStopAt="true" />
36+
<variablename="ConstantName"expression="firstWord()"defaultValue="APP"alwaysStopAt="true" />
37+
<context>
38+
<optionname="JAVA_SCRIPT"value="true" />
39+
<optionname="JS_EXPRESSION"value="true" />
40+
<optionname="JS_STATEMENT"value="true" />
41+
</context>
42+
</template>
43+
<templatename="ngDir"value="(function() {&#10; /* @ngInject */&#10; function $DirectiveName$DirectiveFactory() {&#10;&#10;&#10; return {&#10; restrict: 'EA',&#10; templateUrl: '/partials/$END$/$DirectiveName$Directive.html',&#10; link: function $DirectiveName$PostLink(iScope, iElement, iAttrs) {&#10;&#10; }&#10; };&#10; }&#10;&#10;&#10; angular&#10; .module('$APP$')&#10; .directive('$directive$', $DirectiveName$DirectiveFactory)&#10; ;&#10;}).call(this);"description="Define a new Angular Directive"toReformat="false"toShortenFQNames="true">
44+
<variablename="APP"expression=""defaultValue=""alwaysStopAt="true" />
45+
<variablename="DirectiveName"expression="jsSuggestVariableName()"defaultValue=""alwaysStopAt="true" />
46+
<variablename="directive"expression="decapitalize(DirectiveName)"defaultValue=""alwaysStopAt="false" />
47+
<context>
48+
<optionname="JAVA_SCRIPT"value="true" />
49+
<optionname="JS_EXPRESSION"value="true" />
50+
<optionname="JS_STATEMENT"value="true" />
51+
</context>
52+
</template>
53+
<templatename="ngFil"value="(function() {&#10;/**&#10; * @usage {{ expression | $FilterName$ }}&#10;**/&#10;&#10; /* @ngInject */&#10; function $FilterName$FilterFactory() {&#10;&#10; return function $FilterName$Worker($input$) {&#10; var res;&#10;&#10; $END$&#10;&#10; return res;&#10; };&#10; }&#10;&#10; angular&#10; .module('$APP$')&#10; .filter('$FilterName$', $FilterName$FilterFactory)&#10; ;&#10;}).call(this);&#10;"description="Define a new Angular Filter"toReformat="false"toShortenFQNames="true">
54+
<variablename="APP"expression=""defaultValue=""alwaysStopAt="true" />
55+
<variablename="FilterName"expression=""defaultValue=""alwaysStopAt="true" />
56+
<variablename="input"expression=""defaultValue="'input'"alwaysStopAt="true" />
57+
<context>
58+
<optionname="JAVA_SCRIPT"value="true" />
59+
<optionname="JS_EXPRESSION"value="true" />
60+
<optionname="JS_STATEMENT"value="true" />
61+
</context>
62+
</template>
63+
<templatename="ngSer"value="(function() {&#10;&#10; /* @ngInject */&#10; function $ServiceName$Factory() {&#10; var self = this;&#10;&#10; $END$&#10; }&#10;&#10; angular&#10; .module('$APP$')&#10; .service('$ServiceName$', $ServiceName$Factory)&#10; ;&#10;}).call(this);"description="Define a new Angular Service"toReformat="false"toShortenFQNames="true">
64+
<variablename="APP"expression=""defaultValue=""alwaysStopAt="true" />
65+
<variablename="ServiceName"expression=""defaultValue=""alwaysStopAt="true" />
66+
<context>
67+
<optionname="JAVA_SCRIPT"value="true" />
68+
<optionname="JS_EXPRESSION"value="true" />
69+
<optionname="JS_STATEMENT"value="true" />
70+
</context>
71+
</template>
72+
<templatename="ngFact"value="(function() {&#10;&#10; /* @ngInject */&#10; function $FactoryName$Factory() {&#10;&#10; return $END$;&#10; }&#10;&#10; angular&#10; .module('$APP$')&#10; .factory('$FactoryName$', $FactoryName$Factory)&#10; ;&#10;}).call(this);"description="Define a new Angular Factory"toReformat="false"toShortenFQNames="true">
73+
<variablename="APP"expression=""defaultValue=""alwaysStopAt="true" />
74+
<variablename="FactoryName"expression=""defaultValue=""alwaysStopAt="true" />
75+
<context>
76+
<optionname="JAVA_SCRIPT"value="true" />
77+
<optionname="JS_EXPRESSION"value="true" />
78+
<optionname="JS_STATEMENT"value="true" />
79+
</context>
80+
</template>
81+
<templatename="ngVal"value="(function() {&#10;&#10; var $ValueName$ = {&#10; $END$&#10; };&#10;&#10;&#10; angular&#10; .module('$APP$')&#10; .value('$ValueName$', $ValueName$)&#10; ;&#10;&#10;}).call(this);"description="Define a new Angular Value"toReformat="false"toShortenFQNames="true">
82+
<variablename="APP"expression=""defaultValue=""alwaysStopAt="true" />
83+
<variablename="ValueName"expression=""defaultValue=""alwaysStopAt="true" />
84+
<context>
85+
<optionname="JAVA_SCRIPT"value="true" />
86+
<optionname="JS_EXPRESSION"value="true" />
87+
<optionname="JS_STATEMENT"value="true" />
88+
</context>
89+
</template>
90+
<templatename="ngConst"value="(function() {&#10;&#10; var $ConstName$ = {&#10; $END$&#10; };&#10;&#10;&#10; angular&#10; .module('$APP$')&#10; .value('$ConstName$', $ConstName$)&#10; ;&#10;&#10;}).call(this);"description="Define a new Angular Constant"toReformat="false"toShortenFQNames="true">
91+
<variablename="APP"expression=""defaultValue=""alwaysStopAt="true" />
92+
<variablename="ConstName"expression=""defaultValue=""alwaysStopAt="true" />
93+
<context>
94+
<optionname="JAVA_SCRIPT"value="true" />
95+
<optionname="JS_EXPRESSION"value="true" />
96+
<optionname="JS_STATEMENT"value="true" />
97+
</context>
98+
</template>
99+
<templatename="ngRun"value="(function() {&#10;&#10; /* @ngInject */&#10; function $RunName$($rootScope, $INJECTABLES$) {&#10; $END$&#10; };&#10;&#10;&#10; angular&#10; .module('$APP$')&#10; .run($RunName$)&#10; ;&#10;&#10;}).call(this);"description="Define a new Angular.Module.Run Function"toReformat="false"toShortenFQNames="true">
100+
<variablename="APP"expression=""defaultValue=""alwaysStopAt="true" />
101+
<variablename="INJECTABLES"expression=""defaultValue=""alwaysStopAt="true" />
102+
<variablename="RunName"expression=""defaultValue=""alwaysStopAt="true" />
103+
<context>
104+
<optionname="JAVA_SCRIPT"value="true" />
105+
<optionname="JS_EXPRESSION"value="true" />
106+
<optionname="JS_STATEMENT"value="true" />
107+
</context>
108+
</template>
109+
<templatename="ngConfig"value="(function() {&#10;&#10; /* @ngInject */&#10; function $ConfigName$($INJECTABLES$) {&#10; $END$&#10; }&#10;&#10;&#10; angular&#10; .module('$APP$')&#10; .config($ConfigName$)&#10; ;&#10;&#10;}).call(this);"description="Define a new Angular.Module.Config Function"toReformat="false"toShortenFQNames="true">
110+
<variablename="APP"expression=""defaultValue=""alwaysStopAt="true" />
111+
<variablename="ConfigName"expression=""defaultValue=""alwaysStopAt="true" />
112+
<variablename="INJECTABLES"expression=""defaultValue=""alwaysStopAt="true" />
113+
<context>
114+
<optionname="JAVA_SCRIPT"value="true" />
115+
<optionname="JS_EXPRESSION"value="true" />
116+
<optionname="JS_STATEMENT"value="true" />
117+
</context>
118+
</template>
119+
<template name="hitmands.auth" value="(function () {&#10; /* @ngInject */&#10; function AuthServiceConfig(AuthServiceProvider, $provide) {&#10;&#10; AuthServiceProvider&#10; .useBasicAuthentication()&#10; .tokenizeHttp()&#10; .useRoutes({&#10; login: '/api/v1/user/login',&#10; logout: '/api/v1/user/logout',&#10; fetch: '/api/v1/user/current-user'&#10; })&#10; .parseHttpAuthData(function(data, headers, statusCode) {&#10; console.log('parseHttpAuthData', data);&#10;&#10; return {&#10; user: $user$,&#10; token: $token$,&#10; authLevel: $authLevel$&#10; };&#10;&#10; });&#10;&#10; if( angular.isObject('$condition$') ) {&#10; AuthServiceProvider.setLoggedUser(&#10; $condition$['$user$'],&#10; $condition$['$token$'],&#10; $condition$['$authLevel$']&#10; );&#10; }&#10;&#10; /*&#10; $provide.decorator('AuthService', function ($delegate) {&#10;&#10; $delegate.custom = function (roles, user) {&#10; var AuthService = this;&#10; };&#10;&#10; return $delegate;&#10; });&#10; /***/&#10; }&#10;&#10; /* @ngInject */&#10; function AuthServiceRun($rootScope, AuthService, $timeout) {&#10;&#10; $rootScope.currentUser = AuthService.getCurrentUser();&#10; $rootScope.isUserLoggedIn = AuthService.isUserLoggedIn();&#10;&#10; $rootScope.$on('hitmands.auth:update', function () {&#10; $rootScope.currentUser = AuthService.getCurrentUser();&#10; $rootScope.isUserLoggedIn = AuthService.isUserLoggedIn();&#10; });&#10;&#10; $rootScope.$on('$stateChangeError', function (event, toState, toParams, fromState, fromParams, error) {&#10;&#10; if(error.publisher === 'AuthService.authorize') {&#10; console.log('Route Protected', error);&#10; }&#10; });&#10;&#10;&#10; $rootScope.loginCredentials = {&#10; username: '',&#10; password: '',&#10; rememberMe: false&#10; };&#10; }&#10;&#10;&#10; angular&#10; .module('$APP$')&#10; .config(AuthServiceConfig)&#10; .run(AuthServiceRun);&#10;}).call(this);&#10;" description="Define a new Angular Hitmands.auth Configuration" toReformat="false" toShortenFQNames="true">
120+
<variablename="APP"expression=""defaultValue=""alwaysStopAt="true" />
121+
<variablename="condition"expression=""defaultValue=""alwaysStopAt="true" />
122+
<variablename="user"expression=""defaultValue=""alwaysStopAt="true" />
123+
<variablename="token"expression=""defaultValue=""alwaysStopAt="true" />
124+
<variablename="authLevel"expression=""defaultValue=""alwaysStopAt="true" />
125+
<context>
126+
<optionname="JAVA_SCRIPT"value="true" />
127+
<optionname="JS_EXPRESSION"value="true" />
128+
<optionname="JS_STATEMENT"value="true" />
129+
</context>
130+
</template>
131+
</templateSet>

‎config/frontend-configuration.json‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"src":"./src/",
3+
"dest":"./release/",
4+
"build": {
5+
"js":"./release/angular-codey-ajaxinterceptor.js",
6+
"jsMin":"./release/angular-codey-ajaxinterceptor.min.js"
7+
},
8+
"ng" : {
9+
"app":"Code-Y.ajax",
10+
"src" :"./src/",
11+
"dest" :"./release/",
12+
"output" :"./release/angular-codey-ajaxinterceptor.js",
13+
"outputMin" :"./release/angular-codey-ajaxinterceptor.min.js"
14+
},
15+
"vendor" : {
16+
"src":"./vendor/"
17+
},
18+
"banner":"/**!\n * @Project: <%= pkg.name %>\n * @Authors: [<%= pkg.authors.join(', ') %>]\n * @Link: <%= pkg.homepage %>\n * @License: MIT\n * @Date: <%= grunt.template.today('yyyy-mm-dd') %>\n * @Version: <%= pkg.version %>\n***/\n\n"
19+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp