automatic project update
This commit is contained in:
parent
208e587b6e
commit
3aefd9b0c6
|
@ -24,7 +24,7 @@
|
|||
"en"
|
||||
],
|
||||
"serverPort": 8080,
|
||||
"jhipsterVersion": "3.5.1",
|
||||
"jhipsterVersion": "3.6.0",
|
||||
"enableSocialSignIn": false,
|
||||
"useSass": false,
|
||||
"jhiPrefix": "jhi"
|
||||
|
|
45
bower.json
45
bower.json
|
@ -4,49 +4,49 @@
|
|||
"appPath": "src/main/webapp/",
|
||||
"testPath": "src/test/javascript/spec",
|
||||
"dependencies": {
|
||||
"angular": "1.5.5",
|
||||
"angular-aria": "1.5.5",
|
||||
"angular": "1.5.8",
|
||||
"angular-aria": "1.5.8",
|
||||
"angular-bootstrap": "1.3.3",
|
||||
"angular-cache-buster": "0.4.3",
|
||||
"angular-cookies": "1.5.5",
|
||||
"angular-cookies": "1.5.8",
|
||||
"angular-dynamic-locale": "0.1.32",
|
||||
"angular-i18n": "1.5.5",
|
||||
"angular-i18n": "1.5.8",
|
||||
"ngstorage": "0.3.10",
|
||||
"angular-loading-bar": "0.9.0",
|
||||
"angular-resource": "1.5.5",
|
||||
"angular-sanitize": "1.5.5",
|
||||
"angular-translate": "2.11.0",
|
||||
"angular-translate-interpolation-messageformat": "2.11.0",
|
||||
"angular-translate-loader-partial": "2.11.0",
|
||||
"angular-translate-storage-cookie": "2.11.0",
|
||||
"angular-ui-router": "0.3.0",
|
||||
"angular-resource": "1.5.8",
|
||||
"angular-sanitize": "1.5.8",
|
||||
"angular-translate": "2.11.1",
|
||||
"angular-translate-interpolation-messageformat": "2.11.1",
|
||||
"angular-translate-loader-partial": "2.11.1",
|
||||
"angular-translate-storage-cookie": "2.11.1",
|
||||
"angular-ui-router": "0.3.1",
|
||||
"bootstrap": "3.3.6",
|
||||
"bootstrap-ui-datetime-picker": "2.4.0",
|
||||
"jquery": "2.2.4",
|
||||
"bootstrap-ui-datetime-picker": "2.4.3",
|
||||
"jquery": "3.1.0",
|
||||
"json3": "3.3.2",
|
||||
"messageformat": "0.3.1",
|
||||
"modernizr": "3.3.1",
|
||||
"ng-file-upload": "12.0.4",
|
||||
"ngInfiniteScroll": "1.2.2",
|
||||
"swagger-ui": "2.1.4"
|
||||
"ngInfiniteScroll": "1.3.0",
|
||||
"swagger-ui": "2.1.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"angular-mocks": "1.5.5"
|
||||
"angular-mocks": "1.5.8"
|
||||
},
|
||||
"overrides": {
|
||||
"angular": {
|
||||
"dependencies": {
|
||||
"jquery": "2.2.4"
|
||||
"jquery": "3.1.0"
|
||||
}
|
||||
},
|
||||
"angular-cache-buster": {
|
||||
"dependencies": {
|
||||
"angular": "1.5.5"
|
||||
"angular": "1.5.8"
|
||||
}
|
||||
},
|
||||
"angular-dynamic-locale": {
|
||||
"dependencies": {
|
||||
"angular": "1.5.5"
|
||||
"angular": "1.5.8"
|
||||
}
|
||||
},
|
||||
"bootstrap": {
|
||||
|
@ -56,9 +56,8 @@
|
|||
}
|
||||
},
|
||||
"resolutions": {
|
||||
"angular": "1.5.5",
|
||||
"angular-cookies": "1.5.5",
|
||||
"angular-bootstrap": "1.3.3",
|
||||
"jquery": "2.2.4"
|
||||
"angular": "1.5.8",
|
||||
"angular-bootstrap": "2.0.0",
|
||||
"jquery": "3.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
var fs = require('fs'),
|
||||
gulp = require('gulp'),
|
||||
lazypipe = require('lazypipe'),
|
||||
|
@ -13,13 +15,12 @@ var fs = require('fs'),
|
|||
revReplace = require("gulp-rev-replace"),
|
||||
plumber = require('gulp-plumber'),
|
||||
gulpIf = require('gulp-if'),
|
||||
handleErrors = require('./handleErrors');
|
||||
handleErrors = require('./handle-errors');
|
||||
|
||||
var config = require('./config');
|
||||
|
||||
var initTask = lazypipe()
|
||||
.pipe(sourcemaps.init)
|
||||
.pipe(footer, ';');
|
||||
.pipe(sourcemaps.init);
|
||||
var jsTask = lazypipe()
|
||||
.pipe(ngAnnotate)
|
||||
.pipe(uglify);
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
app: 'src/main/webapp/',
|
||||
dist: 'target/www/',
|
||||
swaggerDist: 'target/www/swagger-ui/',
|
||||
test: 'src/test/javascript/',
|
||||
bower: 'src/main/webapp/bower_components/',
|
||||
tmp: 'target/tmp',
|
||||
|
|
|
@ -0,0 +1,102 @@
|
|||
'use strict';
|
||||
|
||||
var gulp = require('gulp'),
|
||||
rev = require('gulp-rev'),
|
||||
plumber = require('gulp-plumber'),
|
||||
es = require('event-stream'),
|
||||
flatten = require('gulp-flatten'),
|
||||
replace = require('gulp-replace'),
|
||||
bowerFiles = require('main-bower-files'),
|
||||
changed = require('gulp-changed');
|
||||
|
||||
var handleErrors = require('./handle-errors');
|
||||
var config = require('./config');
|
||||
|
||||
module.exports = {
|
||||
i18n: i18n,
|
||||
languages: languages,
|
||||
fonts: fonts,
|
||||
common: common,
|
||||
swagger: swagger,
|
||||
images: images
|
||||
}
|
||||
|
||||
var yorc = require('../.yo-rc.json')['generator-jhipster'];
|
||||
|
||||
function i18n() {
|
||||
return gulp.src(config.app + 'i18n/**')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.dist + 'i18n/'))
|
||||
.pipe(gulp.dest(config.dist + 'i18n/'));
|
||||
}
|
||||
|
||||
function languages() {
|
||||
var locales = yorc.languages.map(function (locale) {
|
||||
return config.bower + 'angular-i18n/angular-locale_' + locale + '.js';
|
||||
});
|
||||
return gulp.src(locales)
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.app + 'i18n/'))
|
||||
.pipe(gulp.dest(config.app + 'i18n/'));
|
||||
}
|
||||
|
||||
function fonts() {
|
||||
return es.merge(gulp.src(config.bower + 'bootstrap/fonts/*.*')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.dist + 'content/fonts/'))
|
||||
.pipe(rev())
|
||||
.pipe(gulp.dest(config.dist + 'content/fonts/'))
|
||||
.pipe(rev.manifest(config.revManifest, {
|
||||
base: config.dist,
|
||||
merge: true
|
||||
}))
|
||||
.pipe(gulp.dest(config.dist)),
|
||||
gulp.src(config.app + 'content/**/*.{woff,woff2,svg,ttf,eot,otf}')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.dist + 'content/fonts/'))
|
||||
.pipe(flatten())
|
||||
.pipe(rev())
|
||||
.pipe(gulp.dest(config.dist + 'content/fonts/'))
|
||||
.pipe(rev.manifest(config.revManifest, {
|
||||
base: config.dist,
|
||||
merge: true
|
||||
}))
|
||||
.pipe(gulp.dest(config.dist))
|
||||
);
|
||||
}
|
||||
|
||||
function common() {
|
||||
return gulp.src([config.app + 'robots.txt', config.app + 'favicon.ico', config.app + '.htaccess'], { dot: true })
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.dist))
|
||||
.pipe(gulp.dest(config.dist));
|
||||
}
|
||||
|
||||
function swagger() {
|
||||
return es.merge(
|
||||
gulp.src([config.bower + 'swagger-ui/dist/**',
|
||||
'!' + config.bower + 'swagger-ui/dist/index.html',
|
||||
'!' + config.bower + 'swagger-ui/dist/swagger-ui.min.js',
|
||||
'!' + config.bower + 'swagger-ui/dist/swagger-ui.js'])
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.swaggerDist))
|
||||
.pipe(gulp.dest(config.swaggerDist)),
|
||||
gulp.src(config.app + 'swagger-ui/index.html')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.swaggerDist))
|
||||
.pipe(replace('../bower_components/swagger-ui/dist/', ''))
|
||||
.pipe(replace('swagger-ui.js', 'lib/swagger-ui.min.js'))
|
||||
.pipe(gulp.dest(config.swaggerDist)),
|
||||
gulp.src(config.bower + 'swagger-ui/dist/swagger-ui.min.js')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.swaggerDist + 'lib/'))
|
||||
.pipe(gulp.dest(config.swaggerDist + 'lib/'))
|
||||
);
|
||||
}
|
||||
|
||||
function images() {
|
||||
return gulp.src(bowerFiles({filter: ['**/*.{gif,jpg,png}']}), { base: config.bower })
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.dist + 'bower_components'))
|
||||
.pipe(gulp.dest(config.dist + 'bower_components'));
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
'use strict';
|
||||
|
||||
var notify = require("gulp-notify");
|
||||
var argv = require('yargs').argv;
|
||||
|
||||
module.exports = function() {
|
||||
|
||||
var args = Array.prototype.slice.call(arguments);
|
||||
var notification = argv.notification === undefined ? true : argv.notification;
|
||||
// Send error to notification center with gulp-notify
|
||||
if(notification) {
|
||||
notify.onError({
|
||||
title: "JHipster Gulp Build",
|
||||
subtitle: "Failure!",
|
||||
message: "Error: <%= error.message %>",
|
||||
sound: "Beep"
|
||||
}).apply(this, args);
|
||||
}
|
||||
// Keep gulp from hanging on this task
|
||||
this.emit('end');
|
||||
|
||||
};
|
|
@ -0,0 +1,68 @@
|
|||
'use strict';
|
||||
|
||||
var gulp = require('gulp'),
|
||||
plumber = require('gulp-plumber'),
|
||||
inject = require('gulp-inject'),
|
||||
es = require('event-stream'),
|
||||
naturalSort = require('gulp-natural-sort'),
|
||||
angularFilesort = require('gulp-angular-filesort'),
|
||||
bowerFiles = require('main-bower-files');
|
||||
|
||||
var handleErrors = require('./handle-errors');
|
||||
|
||||
var config = require('./config');
|
||||
|
||||
module.exports = {
|
||||
app: app,
|
||||
vendor: vendor,
|
||||
test: test,
|
||||
troubleshoot: troubleshoot
|
||||
}
|
||||
|
||||
function app() {
|
||||
return gulp.src(config.app + 'index.html')
|
||||
.pipe(inject(gulp.src(config.app + 'app/**/*.js')
|
||||
.pipe(naturalSort())
|
||||
.pipe(angularFilesort()), {relative: true}))
|
||||
.pipe(gulp.dest(config.app));
|
||||
}
|
||||
|
||||
function vendor() {
|
||||
var stream = gulp.src(config.app + 'index.html')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(inject(gulp.src(bowerFiles(), {read: false}), {
|
||||
name: 'bower',
|
||||
relative: true
|
||||
}))
|
||||
.pipe(gulp.dest(config.app));
|
||||
|
||||
return stream;
|
||||
}
|
||||
|
||||
function test() {
|
||||
return gulp.src(config.test + 'karma.conf.js')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(inject(gulp.src(bowerFiles({includeDev: true, filter: ['**/*.js']}), {read: false}), {
|
||||
starttag: '// bower:js',
|
||||
endtag: '// endbower',
|
||||
transform: function (filepath) {
|
||||
return '\'' + filepath.substring(1, filepath.length) + '\',';
|
||||
}
|
||||
}))
|
||||
.pipe(gulp.dest(config.test));
|
||||
}
|
||||
|
||||
function troubleshoot() {
|
||||
/* this task removes the troubleshooting content from index.html*/
|
||||
return gulp.src(config.app + 'index.html')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
/* having empty src as we dont have to read any files*/
|
||||
.pipe(inject(gulp.src('', {read: false}), {
|
||||
starttag: '<!-- inject:troubleshoot -->',
|
||||
removeTags: true,
|
||||
transform: function () {
|
||||
return '<!-- Angular views -->';
|
||||
}
|
||||
}))
|
||||
.pipe(gulp.dest(config.app));
|
||||
}
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
var gulp = require('gulp'),
|
||||
util = require('./utils'),
|
||||
url = require('url'),
|
||||
|
|
152
gulpfile.js
152
gulpfile.js
|
@ -1,4 +1,4 @@
|
|||
// Generated on 2016-07-22 using generator-jhipster 3.5.1
|
||||
// Generated on 2016-08-17 using generator-jhipster 3.6.0
|
||||
'use strict';
|
||||
|
||||
var gulp = require('gulp'),
|
||||
|
@ -8,71 +8,44 @@ var gulp = require('gulp'),
|
|||
imagemin = require('gulp-imagemin'),
|
||||
ngConstant = require('gulp-ng-constant'),
|
||||
rename = require('gulp-rename'),
|
||||
replace = require('gulp-replace'),
|
||||
eslint = require('gulp-eslint'),
|
||||
argv = require('yargs').argv,
|
||||
gutil = require('gulp-util'),
|
||||
protractor = require('gulp-protractor').protractor,
|
||||
es = require('event-stream'),
|
||||
flatten = require('gulp-flatten'),
|
||||
del = require('del'),
|
||||
runSequence = require('run-sequence'),
|
||||
browserSync = require('browser-sync'),
|
||||
KarmaServer = require('karma').Server,
|
||||
plumber = require('gulp-plumber'),
|
||||
changed = require('gulp-changed'),
|
||||
gulpIf = require('gulp-if'),
|
||||
inject = require('gulp-inject'),
|
||||
angularFilesort = require('gulp-angular-filesort'),
|
||||
naturalSort = require('gulp-natural-sort'),
|
||||
bowerFiles = require('main-bower-files');
|
||||
gulpIf = require('gulp-if');
|
||||
|
||||
var handleErrors = require('./gulp/handleErrors'),
|
||||
var handleErrors = require('./gulp/handle-errors'),
|
||||
serve = require('./gulp/serve'),
|
||||
util = require('./gulp/utils'),
|
||||
copy = require('./gulp/copy'),
|
||||
inject = require('./gulp/inject'),
|
||||
build = require('./gulp/build');
|
||||
|
||||
var yorc = require('./.yo-rc.json')['generator-jhipster'];
|
||||
|
||||
var config = require('./gulp/config');
|
||||
|
||||
gulp.task('clean', function () {
|
||||
return del([config.dist], { dot: true });
|
||||
});
|
||||
|
||||
gulp.task('copy', function () {
|
||||
return es.merge(
|
||||
gulp.src(config.app + 'i18n/**')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.dist + 'i18n/'))
|
||||
.pipe(gulp.dest(config.dist + 'i18n/')),
|
||||
gulp.src(config.bower + 'bootstrap/fonts/*.*')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.dist + 'content/fonts/'))
|
||||
.pipe(rev())
|
||||
.pipe(gulp.dest(config.dist + 'content/fonts/'))
|
||||
.pipe(rev.manifest(config.revManifest, {
|
||||
base: config.dist,
|
||||
merge: true
|
||||
}))
|
||||
.pipe(gulp.dest(config.dist)),
|
||||
gulp.src(config.app + 'content/**/*.{woff,woff2,svg,ttf,eot,otf}')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.dist + 'content/fonts/'))
|
||||
.pipe(flatten())
|
||||
.pipe(rev())
|
||||
.pipe(gulp.dest(config.dist + 'content/fonts/'))
|
||||
.pipe(rev.manifest(config.revManifest, {
|
||||
base: config.dist,
|
||||
merge: true
|
||||
}))
|
||||
.pipe(gulp.dest(config.dist)),
|
||||
gulp.src([config.app + 'robots.txt', config.app + 'favicon.ico', config.app + '.htaccess'], { dot: true })
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.dist))
|
||||
.pipe(gulp.dest(config.dist))
|
||||
);
|
||||
});
|
||||
gulp.task('copy', ['copy:i18n', 'copy:fonts', 'copy:common']);
|
||||
|
||||
gulp.task('copy:i18n', copy.i18n);
|
||||
|
||||
gulp.task('copy:languages', copy.languages);
|
||||
|
||||
gulp.task('copy:fonts', copy.fonts);
|
||||
|
||||
gulp.task('copy:common', copy.common);
|
||||
|
||||
gulp.task('copy:swagger', copy.swagger);
|
||||
|
||||
gulp.task('copy:images', copy.images);
|
||||
|
||||
gulp.task('images', function () {
|
||||
return gulp.src(config.app + 'content/images/**')
|
||||
|
@ -90,73 +63,26 @@ gulp.task('images', function () {
|
|||
});
|
||||
|
||||
|
||||
gulp.task('languages', function () {
|
||||
var locales = yorc.languages.map(function (locale) {
|
||||
return config.bower + 'angular-i18n/angular-locale_' + locale + '.js';
|
||||
});
|
||||
return gulp.src(locales)
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(changed(config.app + 'i18n/'))
|
||||
.pipe(gulp.dest(config.app + 'i18n/'));
|
||||
});
|
||||
|
||||
gulp.task('styles', [], function () {
|
||||
return gulp.src(config.app + 'content/css')
|
||||
.pipe(browserSync.reload({stream: true}));
|
||||
});
|
||||
|
||||
gulp.task('inject', ['inject:dep', 'inject:app']);
|
||||
gulp.task('inject', function() {
|
||||
runSequence('inject:dep', 'inject:app');
|
||||
});
|
||||
|
||||
gulp.task('inject:dep', ['inject:test', 'inject:vendor']);
|
||||
|
||||
gulp.task('inject:app', function () {
|
||||
return gulp.src(config.app + 'index.html')
|
||||
.pipe(inject(gulp.src(config.app + 'app/**/*.js')
|
||||
.pipe(naturalSort())
|
||||
.pipe(angularFilesort()), {relative: true}))
|
||||
.pipe(gulp.dest(config.app));
|
||||
});
|
||||
gulp.task('inject:app', inject.app);
|
||||
|
||||
gulp.task('inject:vendor', function () {
|
||||
var stream = gulp.src(config.app + 'index.html')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(inject(gulp.src(bowerFiles(), {read: false}), {
|
||||
name: 'bower',
|
||||
relative: true
|
||||
}))
|
||||
.pipe(gulp.dest(config.app));
|
||||
gulp.task('inject:vendor', inject.vendor);
|
||||
|
||||
return stream;
|
||||
});
|
||||
gulp.task('inject:test', inject.test);
|
||||
|
||||
gulp.task('inject:test', function () {
|
||||
return gulp.src(config.test + 'karma.conf.js')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
.pipe(inject(gulp.src(bowerFiles({includeDev: true, filter: ['**/*.js']}), {read: false}), {
|
||||
starttag: '// bower:js',
|
||||
endtag: '// endbower',
|
||||
transform: function (filepath) {
|
||||
return '\'' + filepath.substring(1, filepath.length) + '\',';
|
||||
}
|
||||
}))
|
||||
.pipe(gulp.dest(config.test));
|
||||
});
|
||||
gulp.task('inject:troubleshoot', inject.troubleshoot);
|
||||
|
||||
gulp.task('inject:troubleshoot', function () {
|
||||
/* this task removes the troubleshooting content from index.html*/
|
||||
return gulp.src(config.app + 'index.html')
|
||||
.pipe(plumber({errorHandler: handleErrors}))
|
||||
/* having empty src as we dont have to read any files*/
|
||||
.pipe(inject(gulp.src('', {read: false}), {
|
||||
starttag: '<!-- inject:troubleshoot -->',
|
||||
removeTags: true,
|
||||
transform: function () {
|
||||
return '<!-- Angular views -->';
|
||||
}
|
||||
}))
|
||||
.pipe(gulp.dest(config.app));
|
||||
});
|
||||
|
||||
gulp.task('assets:prod', ['images', 'styles', 'html','swagger-ui'], build);
|
||||
gulp.task('assets:prod', ['images', 'styles', 'html', 'copy:swagger', 'copy:images'], build);
|
||||
|
||||
gulp.task('html', function () {
|
||||
return gulp.src(config.app + 'app/**/*.html')
|
||||
|
@ -169,22 +95,6 @@ gulp.task('html', function () {
|
|||
.pipe(gulp.dest(config.tmp));
|
||||
});
|
||||
|
||||
gulp.task('swagger-ui', function () {
|
||||
return es.merge(
|
||||
gulp.src([config.bower + 'swagger-ui/dist/**',
|
||||
'!' + config.bower + 'swagger-ui/dist/index.html',
|
||||
'!' + config.bower + 'swagger-ui/dist/swagger-ui.min.js',
|
||||
'!' + config.bower + 'swagger-ui/dist/swagger-ui.js'])
|
||||
.pipe(gulp.dest(config.dist + 'swagger-ui/')),
|
||||
gulp.src(config.app + 'swagger-ui/index.html')
|
||||
.pipe(replace('../bower_components/swagger-ui/dist/', ''))
|
||||
.pipe(replace('swagger-ui.js', 'lib/swagger-ui.min.js'))
|
||||
.pipe(gulp.dest(config.dist + 'swagger-ui/')),
|
||||
gulp.src(config.bower + 'swagger-ui/dist/swagger-ui.min.js')
|
||||
.pipe(gulp.dest(config.dist + 'swagger-ui/lib/'))
|
||||
);
|
||||
});
|
||||
|
||||
gulp.task('ngconstant:dev', function () {
|
||||
return ngConstant({
|
||||
name: 'jhipsterSampleApplicationApp',
|
||||
|
@ -269,15 +179,13 @@ gulp.task('watch', function () {
|
|||
});
|
||||
|
||||
gulp.task('install', function () {
|
||||
runSequence(['inject:dep', 'ngconstant:dev'], 'languages', 'inject:app', 'inject:troubleshoot');
|
||||
runSequence(['inject:dep', 'ngconstant:dev'], 'copy:languages', 'inject:app', 'inject:troubleshoot');
|
||||
});
|
||||
|
||||
gulp.task('serve', function () {
|
||||
runSequence('install', serve);
|
||||
});
|
||||
gulp.task('serve', ['install'], serve);
|
||||
|
||||
gulp.task('build', ['clean'], function (cb) {
|
||||
runSequence(['copy', 'inject:vendor', 'ngconstant:prod', 'languages'], 'inject:app', 'inject:troubleshoot', 'assets:prod', cb);
|
||||
runSequence(['copy', 'inject:vendor', 'ngconstant:prod', 'copy:languages'], 'inject:app', 'inject:troubleshoot', 'assets:prod', cb);
|
||||
});
|
||||
|
||||
gulp.task('default', ['serve']);
|
||||
|
|
48
package.json
48
package.json
|
@ -9,24 +9,24 @@
|
|||
],
|
||||
"devDependencies": {
|
||||
"bower": "1.7.9",
|
||||
"browser-sync": "2.12.10",
|
||||
"del": "2.2.0",
|
||||
"browser-sync": "2.13.0",
|
||||
"del": "2.2.1",
|
||||
"eslint-config-angular": "0.5.0",
|
||||
"eslint-plugin-angular": "1.0.1",
|
||||
"event-stream": "3.3.2",
|
||||
"generator-jhipster": "3.5.1",
|
||||
"eslint-plugin-angular": "1.3.1",
|
||||
"event-stream": "3.3.4",
|
||||
"generator-jhipster": "3.6.0",
|
||||
"gulp": "3.9.1",
|
||||
"gulp-angular-filesort": "1.1.1",
|
||||
"gulp-angular-templatecache": "1.9.0",
|
||||
"gulp-angular-templatecache": "2.0.0",
|
||||
"gulp-autoprefixer": "3.1.0",
|
||||
"gulp-changed": "1.3.0",
|
||||
"gulp-changed": "1.3.1",
|
||||
"gulp-cssnano": "2.1.2",
|
||||
"gulp-eslint": "2.0.0",
|
||||
"gulp-flatten": "0.2.0",
|
||||
"gulp-eslint": "3.0.1",
|
||||
"gulp-flatten": "0.3.0",
|
||||
"gulp-footer": "1.0.5",
|
||||
"gulp-htmlmin": "2.0.0",
|
||||
"gulp-if": "2.0.1",
|
||||
"gulp-imagemin": "3.0.1",
|
||||
"gulp-imagemin": "3.0.2",
|
||||
"gulp-inject": "4.1.0",
|
||||
"gulp-natural-sort": "0.1.1",
|
||||
"gulp-ng-annotate": "2.0.0",
|
||||
|
@ -35,33 +35,33 @@
|
|||
"gulp-plumber": "1.1.0",
|
||||
"gulp-rename": "1.2.2",
|
||||
"gulp-replace": "0.5.4",
|
||||
"gulp-protractor": "2.4.0",
|
||||
"gulp-protractor": "3.0.0",
|
||||
"gulp-util": "3.0.7",
|
||||
"gulp-rev": "7.0.0",
|
||||
"gulp-rev": "7.1.0",
|
||||
"gulp-rev-replace": "0.4.3",
|
||||
"gulp-sourcemaps": "1.6.0",
|
||||
"gulp-uglify": "1.5.3",
|
||||
"gulp-uglify": "1.5.4",
|
||||
"gulp-useref": "3.1.0",
|
||||
"jasmine-core": "2.4.1",
|
||||
"jasmine-reporters": "2.1.1",
|
||||
"karma": "0.13.22",
|
||||
"jasmine-reporters": "2.2.0",
|
||||
"karma": "1.1.2",
|
||||
"karma-chrome-launcher": "1.0.1",
|
||||
"karma-coverage": "1.0.0",
|
||||
"karma-coverage": "1.1.1",
|
||||
"karma-jasmine": "1.0.2",
|
||||
"karma-junit-reporter": "1.0.0",
|
||||
"karma-phantomjs-launcher": "1.0.0",
|
||||
"karma-junit-reporter": "1.1.0",
|
||||
"karma-phantomjs-launcher": "1.0.1",
|
||||
"karma-script-launcher": "1.0.0",
|
||||
"lazypipe": "1.0.1",
|
||||
"lodash": "4.13.1",
|
||||
"lodash": "4.14.0",
|
||||
"main-bower-files": "2.13.1",
|
||||
"map-stream": "0.0.6",
|
||||
"phantomjs-prebuilt": "2.1.7",
|
||||
"protractor": "3.3.0",
|
||||
"protractor-jasmine2-screenshot-reporter": "0.3.1",
|
||||
"phantomjs-prebuilt": "2.1.8",
|
||||
"protractor": "4.0.3",
|
||||
"protractor-jasmine2-screenshot-reporter": "0.3.2",
|
||||
"proxy-middleware": "0.15.0",
|
||||
"run-sequence": "1.2.1",
|
||||
"run-sequence": "1.2.2",
|
||||
"xml2js": "0.4.16",
|
||||
"yargs": "4.7.1"
|
||||
"yargs": "4.8.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^4.3"
|
||||
|
|
19
pom.xml
19
pom.xml
|
@ -5,7 +5,7 @@
|
|||
<parent>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<version>1.3.6.RELEASE</version>
|
||||
<version>1.4.0.RELEASE</version>
|
||||
<relativePath/>
|
||||
</parent>
|
||||
|
||||
|
@ -21,9 +21,9 @@
|
|||
|
||||
<properties>
|
||||
<hikaricp.version>2.4.6</hikaricp.version>
|
||||
<assertj-core.version>3.3.0</assertj-core.version>
|
||||
<assertj-core.version>3.5.2</assertj-core.version>
|
||||
<awaitility.version>1.7.0</awaitility.version>
|
||||
<commons-io.version>2.4</commons-io.version>
|
||||
<commons-io.version>2.5</commons-io.version>
|
||||
<commons-lang.version>2.6</commons-lang.version>
|
||||
<frontend-maven-plugin.version>1.0</frontend-maven-plugin.version>
|
||||
<gatling.version>2.1.7</gatling.version>
|
||||
|
@ -34,23 +34,23 @@
|
|||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||
<javax.inject.version>1</javax.inject.version>
|
||||
<liquibase.version>3.4.2</liquibase.version>
|
||||
<liquibase-slf4j.version>1.2.1</liquibase-slf4j.version>
|
||||
<liquibase-slf4j.version>2.0.0</liquibase-slf4j.version>
|
||||
<liquibase-hibernate4.version>3.5</liquibase-hibernate4.version>
|
||||
<mapstruct.version>1.0.0.Final</mapstruct.version>
|
||||
<maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
|
||||
<maven-enforcer-plugin.version>1.4.1</maven-enforcer-plugin.version>
|
||||
<maven-resources-plugin.version>3.0.0</maven-resources-plugin.version>
|
||||
<maven-resources-plugin.version>3.0.1</maven-resources-plugin.version>
|
||||
<sortpom-maven-plugin.version>2.5.0</sortpom-maven-plugin.version>
|
||||
<metrics-spark-reporter.version>1.2</metrics-spark-reporter.version>
|
||||
<metrics-spring.version>3.1.3</metrics-spring.version>
|
||||
<logstash-logback-encoder.version>4.6</logstash-logback-encoder.version>
|
||||
<logstash-logback-encoder.version>4.7</logstash-logback-encoder.version>
|
||||
<run.addResources>false</run.addResources>
|
||||
<spring-security.version>4.1.0.RELEASE</spring-security.version>
|
||||
<springfox.version>2.5.0</springfox.version>
|
||||
<!-- Sonar properties -->
|
||||
<project.testresult.directory>${project.build.directory}/test-results</project.testresult.directory>
|
||||
<sonar-maven-plugin.version>3.0.2</sonar-maven-plugin.version>
|
||||
<jacoco-maven-plugin.version>0.7.6.201602180812</jacoco-maven-plugin.version>
|
||||
<jacoco-maven-plugin.version>0.7.7.201606060606</jacoco-maven-plugin.version>
|
||||
<sonar.exclusions>src/main/webapp/content/**/*.*, src/main/webapp/bower_components/**/*.*, target/www/**/*.*</sonar.exclusions>
|
||||
<sonar.java.codeCoveragePlugin>jacoco</sonar.java.codeCoveragePlugin>
|
||||
<sonar.jacoco.itReportPath>${project.testresult.directory}/coverage/jacoco/jacoco-it.exec</sonar.jacoco.itReportPath>
|
||||
|
@ -315,6 +315,11 @@
|
|||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
||||
|
|
|
@ -5,7 +5,7 @@ services:
|
|||
external_links:
|
||||
- jhipstersampleapplication-mysql:mysql
|
||||
environment:
|
||||
- SPRING_PROFILES_ACTIVE=prod
|
||||
- SPRING_PROFILES_ACTIVE=prod,swagger
|
||||
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/jhipstersampleapplication?useUnicode=true&characterEncoding=utf8&useSSL=false
|
||||
- JHIPSTER_SLEEP=10 # gives time for the database to boot before the application
|
||||
ports:
|
||||
|
|
|
@ -2,7 +2,7 @@ package io.github.jhipster.sample;
|
|||
|
||||
import io.github.jhipster.sample.config.DefaultProfileUtil;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.context.web.SpringBootServletInitializer;
|
||||
import org.springframework.boot.web.support.SpringBootServletInitializer;
|
||||
|
||||
/**
|
||||
* This is a helper Java class that provides an alternative to creating a web.xml.
|
||||
|
|
|
@ -33,8 +33,10 @@ public class LoggingAspect {
|
|||
@AfterThrowing(pointcut = "loggingPointcut()", throwing = "e")
|
||||
public void logAfterThrowing(JoinPoint joinPoint, Throwable e) {
|
||||
if (env.acceptsProfiles(Constants.SPRING_PROFILE_DEVELOPMENT)) {
|
||||
log.error("Exception in {}.{}() with cause = {} and exception {}", joinPoint.getSignature().getDeclaringTypeName(),
|
||||
joinPoint.getSignature().getName(), e.getCause(), e);
|
||||
log.error("Exception in {}.{}() with cause = \'{}\' and exception = \'{}\'", joinPoint.getSignature().getDeclaringTypeName(),
|
||||
joinPoint.getSignature().getName(), e.getCause(), e.getMessage());
|
||||
|
||||
e.printStackTrace();
|
||||
} else {
|
||||
log.error("Exception in {}.{}() with cause = {}", joinPoint.getSignature().getDeclaringTypeName(),
|
||||
joinPoint.getSignature().getName(), e.getCause());
|
||||
|
|
|
@ -2,20 +2,12 @@ package io.github.jhipster.sample.config;
|
|||
|
||||
import io.github.jhipster.sample.config.liquibase.AsyncSpringLiquibase;
|
||||
|
||||
import com.codahale.metrics.MetricRegistry;
|
||||
import com.fasterxml.jackson.datatype.hibernate4.Hibernate4Module;
|
||||
import com.zaxxer.hikari.HikariDataSource;
|
||||
import liquibase.integration.spring.SpringLiquibase;
|
||||
import org.h2.tools.Server;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
|
||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
|
||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
|
||||
import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.ApplicationContextException;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Profile;
|
||||
|
@ -27,7 +19,6 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|||
import javax.inject.Inject;
|
||||
import javax.sql.DataSource;
|
||||
import java.sql.SQLException;
|
||||
import java.util.Arrays;
|
||||
|
||||
@Configuration
|
||||
@EnableJpaRepositories("io.github.jhipster.sample.repository")
|
||||
|
@ -40,35 +31,6 @@ public class DatabaseConfiguration {
|
|||
@Inject
|
||||
private Environment env;
|
||||
|
||||
@Autowired(required = false)
|
||||
private MetricRegistry metricRegistry;
|
||||
|
||||
@Bean(destroyMethod = "close")
|
||||
@ConditionalOnExpression("#{!environment.acceptsProfiles('" + Constants.SPRING_PROFILE_CLOUD + "') && !environment.acceptsProfiles('" + Constants.SPRING_PROFILE_HEROKU + "')}")
|
||||
@ConfigurationProperties(prefix = "spring.datasource.hikari")
|
||||
public DataSource dataSource(DataSourceProperties dataSourceProperties) {
|
||||
log.debug("Configuring Datasource");
|
||||
if (dataSourceProperties.getUrl() == null) {
|
||||
log.error("Your database connection pool configuration is incorrect! The application" +
|
||||
" cannot start. Please check your Spring profile, current profiles are: {}",
|
||||
Arrays.toString(env.getActiveProfiles()));
|
||||
|
||||
throw new ApplicationContextException("Database connection pool is not configured correctly");
|
||||
}
|
||||
HikariDataSource hikariDataSource = (HikariDataSource) DataSourceBuilder
|
||||
.create(dataSourceProperties.getClassLoader())
|
||||
.type(HikariDataSource.class)
|
||||
.driverClassName(dataSourceProperties.getDriverClassName())
|
||||
.url(dataSourceProperties.getUrl())
|
||||
.username(dataSourceProperties.getUsername())
|
||||
.password(dataSourceProperties.getPassword())
|
||||
.build();
|
||||
|
||||
if (metricRegistry != null) {
|
||||
hikariDataSource.setMetricRegistry(metricRegistry);
|
||||
}
|
||||
return hikariDataSource;
|
||||
}
|
||||
|
||||
/**
|
||||
* Open the TCP port for the H2 database, so it is available remotely.
|
||||
|
@ -83,8 +45,7 @@ public class DatabaseConfiguration {
|
|||
}
|
||||
|
||||
@Bean
|
||||
public SpringLiquibase liquibase(DataSource dataSource, DataSourceProperties dataSourceProperties,
|
||||
LiquibaseProperties liquibaseProperties) {
|
||||
public SpringLiquibase liquibase(DataSource dataSource, LiquibaseProperties liquibaseProperties) {
|
||||
|
||||
// Use liquibase.integration.spring.SpringLiquibase if you don't want Liquibase to start asynchronously
|
||||
SpringLiquibase liquibase = new AsyncSpringLiquibase();
|
||||
|
@ -99,7 +60,6 @@ public class DatabaseConfiguration {
|
|||
liquibase.setShouldRun(liquibaseProperties.isEnabled());
|
||||
log.debug("Configuring Liquibase");
|
||||
}
|
||||
|
||||
return liquibase;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,6 +27,8 @@ public final class DefaultProfileUtil {
|
|||
|
||||
/**
|
||||
* Get a default profile from <code>application.yml</code>.
|
||||
*
|
||||
* @return the default active profile
|
||||
*/
|
||||
public static String getDefaultActiveProfiles(){
|
||||
if (BUILD_PROPERTIES != null) {
|
||||
|
@ -43,6 +45,8 @@ public final class DefaultProfileUtil {
|
|||
|
||||
/**
|
||||
* Set a default to use when no profile is configured.
|
||||
*
|
||||
* @param app the spring application
|
||||
*/
|
||||
public static void addDefaultProfile(SpringApplication app) {
|
||||
Map<String, Object> defProperties = new HashMap<>();
|
||||
|
@ -57,6 +61,8 @@ public final class DefaultProfileUtil {
|
|||
|
||||
/**
|
||||
* Load application.yml from classpath.
|
||||
*
|
||||
* @return the YAML Properties
|
||||
*/
|
||||
private static Properties readProperties() {
|
||||
try {
|
||||
|
|
|
@ -10,9 +10,12 @@ import com.codahale.metrics.health.HealthCheckRegistry;
|
|||
import com.codahale.metrics.jvm.*;
|
||||
import com.ryantenney.metrics.spring.config.annotation.EnableMetrics;
|
||||
import com.ryantenney.metrics.spring.config.annotation.MetricsConfigurerAdapter;
|
||||
import com.zaxxer.hikari.HikariDataSource;
|
||||
|
||||
import fr.ippon.spark.metrics.SparkReporter;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
import org.springframework.context.annotation.*;
|
||||
|
||||
|
@ -41,6 +44,9 @@ public class MetricsConfiguration extends MetricsConfigurerAdapter {
|
|||
@Inject
|
||||
private JHipsterProperties jHipsterProperties;
|
||||
|
||||
@Autowired(required = false)
|
||||
private HikariDataSource hikariDataSource;
|
||||
|
||||
@Override
|
||||
@Bean
|
||||
public MetricRegistry getMetricRegistry() {
|
||||
|
@ -61,6 +67,10 @@ public class MetricsConfiguration extends MetricsConfigurerAdapter {
|
|||
metricRegistry.register(PROP_METRIC_REG_JVM_THREADS, new ThreadStatesGaugeSet());
|
||||
metricRegistry.register(PROP_METRIC_REG_JVM_FILES, new FileDescriptorRatioGauge());
|
||||
metricRegistry.register(PROP_METRIC_REG_JVM_BUFFERS, new BufferPoolMetricSet(ManagementFactory.getPlatformMBeanServer()));
|
||||
if (hikariDataSource != null) {
|
||||
log.debug("Monitoring the datasource");
|
||||
hikariDataSource.setMetricRegistry(metricRegistry);
|
||||
}
|
||||
if (jHipsterProperties.getMetrics().getJmx().isEnabled()) {
|
||||
log.debug("Initializing Metrics JMX reporting");
|
||||
JmxReporter jmxReporter = JmxReporter.forRegistry(metricRegistry).build();
|
||||
|
|
|
@ -4,14 +4,15 @@ import com.codahale.metrics.MetricRegistry;
|
|||
import com.codahale.metrics.servlet.InstrumentedFilter;
|
||||
import com.codahale.metrics.servlets.MetricsServlet;
|
||||
import io.github.jhipster.sample.web.filter.CachingHttpHeadersFilter;
|
||||
|
||||
import org.apache.catalina.webresources.StandardRoot;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
|
||||
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
|
||||
import org.springframework.boot.context.embedded.MimeMappings;
|
||||
import org.springframework.boot.context.embedded.ServletContextInitializer;
|
||||
import org.springframework.boot.context.embedded.*;
|
||||
import org.springframework.boot.context.embedded.tomcat.*;
|
||||
import org.springframework.boot.web.servlet.ServletContextInitializer;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
@ -59,7 +60,7 @@ public class WebConfigurer implements ServletContextInitializer, EmbeddedServlet
|
|||
}
|
||||
|
||||
/**
|
||||
* Set up Mime types and, if needed, set the document root.
|
||||
* Customize the Tomcat engine: Mime types, the document root, the cache.
|
||||
*/
|
||||
@Override
|
||||
public void customize(ConfigurableEmbeddedServletContainer container) {
|
||||
|
@ -69,11 +70,27 @@ public class WebConfigurer implements ServletContextInitializer, EmbeddedServlet
|
|||
// CloudFoundry issue, see https://github.com/cloudfoundry/gorouter/issues/64
|
||||
mappings.add("json", "text/html;charset=utf-8");
|
||||
container.setMimeMappings(mappings);
|
||||
|
||||
customizeTomcat(container);
|
||||
// When running in an IDE or with ./mvnw spring-boot:run, set location of the static web assets.
|
||||
setLocationForStaticAssets(container);
|
||||
}
|
||||
|
||||
/**
|
||||
* Customize Tomcat configuration.
|
||||
*/
|
||||
private void customizeTomcat(ConfigurableEmbeddedServletContainer container) {
|
||||
if (container instanceof TomcatEmbeddedServletContainerFactory) {
|
||||
TomcatEmbeddedServletContainerFactory tomcatFactory = (TomcatEmbeddedServletContainerFactory) container;
|
||||
tomcatFactory.addContextCustomizers((TomcatContextCustomizer) context -> {
|
||||
// See https://github.com/jhipster/generator-jhipster/issues/3995
|
||||
StandardRoot resources = new StandardRoot();
|
||||
resources.setCacheMaxSize(40960);
|
||||
resources.setCacheObjectMaxSize(2048);
|
||||
context.setResources(resources);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void setLocationForStaticAssets(ConfigurableEmbeddedServletContainer container) {
|
||||
File root;
|
||||
String prefixPath = resolvePathPrefix();
|
||||
|
|
|
@ -32,6 +32,13 @@ public class CustomAuditEventRepository implements AuditEventRepository {
|
|||
@Inject
|
||||
private AuditEventConverter auditEventConverter;
|
||||
|
||||
@Override
|
||||
public List<AuditEvent> find(Date after) {
|
||||
Iterable<PersistentAuditEvent> persistentAuditEvents =
|
||||
persistenceAuditEventRepository.findByAuditEventDateAfter(LocalDateTime.from(after.toInstant()));
|
||||
return auditEventConverter.convertToAuditEvent(persistentAuditEvents);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AuditEvent> find(String principal, Date after) {
|
||||
Iterable<PersistentAuditEvent> persistentAuditEvents;
|
||||
|
@ -46,6 +53,13 @@ public class CustomAuditEventRepository implements AuditEventRepository {
|
|||
return auditEventConverter.convertToAuditEvent(persistentAuditEvents);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AuditEvent> find(String principal, Date after, String type) {
|
||||
Iterable<PersistentAuditEvent> persistentAuditEvents =
|
||||
persistenceAuditEventRepository.findByPrincipalAndAuditEventDateAfterAndAuditEventType(principal, LocalDateTime.from(after.toInstant()), type);
|
||||
return auditEventConverter.convertToAuditEvent(persistentAuditEvents);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
||||
public void add(AuditEvent event) {
|
||||
|
|
|
@ -16,7 +16,11 @@ public interface PersistenceAuditEventRepository extends JpaRepository<Persisten
|
|||
|
||||
List<PersistentAuditEvent> findByPrincipal(String principal);
|
||||
|
||||
List<PersistentAuditEvent> findByAuditEventDateAfter(LocalDateTime after);
|
||||
|
||||
List<PersistentAuditEvent> findByPrincipalAndAuditEventDateAfter(String principal, LocalDateTime after);
|
||||
|
||||
List<PersistentAuditEvent> findByPrincipalAndAuditEventDateAfterAndAuditEventType(String principle, LocalDateTime after, String type);
|
||||
|
||||
Page<PersistentAuditEvent> findAllByAuditEventDateBetween(LocalDateTime fromDate, LocalDateTime toDate, Pageable pageable);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,10 @@ package io.github.jhipster.sample.repository;
|
|||
import io.github.jhipster.sample.domain.User;
|
||||
|
||||
import java.time.ZonedDateTime;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
@ -25,6 +28,10 @@ public interface UserRepository extends JpaRepository<User, Long> {
|
|||
|
||||
Optional<User> findOneById(Long userId);
|
||||
|
||||
@Query(value = "select distinct user from User user join fetch user.authorities",
|
||||
countQuery = "select count(user) from User user")
|
||||
Page<User> findAllWithAuthorities(Pageable pageable);
|
||||
|
||||
@Override
|
||||
void delete(User t);
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import io.github.jhipster.sample.repository.UserRepository;
|
|||
import io.github.jhipster.sample.security.AuthoritiesConstants;
|
||||
import io.github.jhipster.sample.security.SecurityUtils;
|
||||
import io.github.jhipster.sample.service.util.RandomUtil;
|
||||
import io.github.jhipster.sample.web.rest.dto.ManagedUserDTO;
|
||||
import io.github.jhipster.sample.web.rest.vm.ManagedUserVM;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
|
@ -33,7 +33,6 @@ public class UserService {
|
|||
@Inject
|
||||
private PasswordEncoder passwordEncoder;
|
||||
|
||||
|
||||
@Inject
|
||||
private UserRepository userRepository;
|
||||
|
||||
|
@ -84,7 +83,7 @@ public class UserService {
|
|||
});
|
||||
}
|
||||
|
||||
public User createUserInformation(String login, String password, String firstName, String lastName, String email,
|
||||
public User createUser(String login, String password, String firstName, String lastName, String email,
|
||||
String langKey) {
|
||||
|
||||
User newUser = new User();
|
||||
|
@ -109,20 +108,20 @@ public class UserService {
|
|||
return newUser;
|
||||
}
|
||||
|
||||
public User createUser(ManagedUserDTO managedUserDTO) {
|
||||
public User createUser(ManagedUserVM managedUserVM) {
|
||||
User user = new User();
|
||||
user.setLogin(managedUserDTO.getLogin());
|
||||
user.setFirstName(managedUserDTO.getFirstName());
|
||||
user.setLastName(managedUserDTO.getLastName());
|
||||
user.setEmail(managedUserDTO.getEmail());
|
||||
if (managedUserDTO.getLangKey() == null) {
|
||||
user.setLogin(managedUserVM.getLogin());
|
||||
user.setFirstName(managedUserVM.getFirstName());
|
||||
user.setLastName(managedUserVM.getLastName());
|
||||
user.setEmail(managedUserVM.getEmail());
|
||||
if (managedUserVM.getLangKey() == null) {
|
||||
user.setLangKey("en"); // default language
|
||||
} else {
|
||||
user.setLangKey(managedUserDTO.getLangKey());
|
||||
user.setLangKey(managedUserVM.getLangKey());
|
||||
}
|
||||
if (managedUserDTO.getAuthorities() != null) {
|
||||
if (managedUserVM.getAuthorities() != null) {
|
||||
Set<Authority> authorities = new HashSet<>();
|
||||
managedUserDTO.getAuthorities().stream().forEach(
|
||||
managedUserVM.getAuthorities().stream().forEach(
|
||||
authority -> authorities.add(authorityRepository.findOne(authority))
|
||||
);
|
||||
user.setAuthorities(authorities);
|
||||
|
@ -137,7 +136,7 @@ public class UserService {
|
|||
return user;
|
||||
}
|
||||
|
||||
public void updateUserInformation(String firstName, String lastName, String email, String langKey) {
|
||||
public void updateUser(String firstName, String lastName, String email, String langKey) {
|
||||
userRepository.findOneByLogin(SecurityUtils.getCurrentUserLogin()).ifPresent(u -> {
|
||||
u.setFirstName(firstName);
|
||||
u.setLastName(lastName);
|
||||
|
@ -148,7 +147,28 @@ public class UserService {
|
|||
});
|
||||
}
|
||||
|
||||
public void deleteUserInformation(String login) {
|
||||
public void updateUser(Long id, String login, String firstName, String lastName, String email,
|
||||
boolean activated, String langKey, Set<String> authorities) {
|
||||
|
||||
userRepository
|
||||
.findOneById(id)
|
||||
.ifPresent(u -> {
|
||||
u.setLogin(login);
|
||||
u.setFirstName(firstName);
|
||||
u.setLastName(lastName);
|
||||
u.setEmail(email);
|
||||
u.setActivated(activated);
|
||||
u.setLangKey(langKey);
|
||||
Set<Authority> managedAuthorities = u.getAuthorities();
|
||||
managedAuthorities.clear();
|
||||
authorities.stream().forEach(
|
||||
authority -> managedAuthorities.add(authorityRepository.findOne(authority))
|
||||
);
|
||||
log.debug("Changed Information for User: {}", u);
|
||||
});
|
||||
}
|
||||
|
||||
public void deleteUser(String login) {
|
||||
userRepository.findOneByLogin(login).ifPresent(u -> {
|
||||
userRepository.delete(u);
|
||||
log.debug("Deleted User: {}", u);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package io.github.jhipster.sample.web.rest.dto;
|
||||
package io.github.jhipster.sample.service.dto;
|
||||
|
||||
import io.github.jhipster.sample.config.Constants;
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* Data Transfer Objects.
|
||||
*/
|
||||
package io.github.jhipster.sample.service.dto;
|
|
@ -1,8 +1,8 @@
|
|||
package io.github.jhipster.sample.web.rest.mapper;
|
||||
package io.github.jhipster.sample.service.mapper;
|
||||
|
||||
import io.github.jhipster.sample.domain.Authority;
|
||||
import io.github.jhipster.sample.domain.User;
|
||||
import io.github.jhipster.sample.web.rest.dto.UserDTO;
|
||||
import io.github.jhipster.sample.service.dto.UserDTO;
|
||||
import org.mapstruct.*;
|
||||
|
||||
import java.util.List;
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* MapStruct mappers for mapping domain objects and Data Transfer Objects.
|
||||
*/
|
||||
package io.github.jhipster.sample.service.mapper;
|
|
@ -9,9 +9,9 @@ import io.github.jhipster.sample.repository.UserRepository;
|
|||
import io.github.jhipster.sample.security.SecurityUtils;
|
||||
import io.github.jhipster.sample.service.MailService;
|
||||
import io.github.jhipster.sample.service.UserService;
|
||||
import io.github.jhipster.sample.web.rest.dto.KeyAndPasswordDTO;
|
||||
import io.github.jhipster.sample.web.rest.dto.ManagedUserDTO;
|
||||
import io.github.jhipster.sample.web.rest.dto.UserDTO;
|
||||
import io.github.jhipster.sample.service.dto.UserDTO;
|
||||
import io.github.jhipster.sample.web.rest.vm.KeyAndPasswordVM;
|
||||
import io.github.jhipster.sample.web.rest.vm.ManagedUserVM;
|
||||
import io.github.jhipster.sample.web.rest.util.HeaderUtil;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
@ -54,7 +54,7 @@ public class AccountResource {
|
|||
/**
|
||||
* POST /register : register the user.
|
||||
*
|
||||
* @param managedUserDTO the managed user DTO
|
||||
* @param managedUserVM the managed user View Model
|
||||
* @param request the HTTP request
|
||||
* @return the ResponseEntity with status 201 (Created) if the user is registered or 400 (Bad Request) if the login or e-mail is already in use
|
||||
*/
|
||||
|
@ -62,19 +62,19 @@ public class AccountResource {
|
|||
method = RequestMethod.POST,
|
||||
produces={MediaType.APPLICATION_JSON_VALUE, MediaType.TEXT_PLAIN_VALUE})
|
||||
@Timed
|
||||
public ResponseEntity<?> registerAccount(@Valid @RequestBody ManagedUserDTO managedUserDTO, HttpServletRequest request) {
|
||||
public ResponseEntity<?> registerAccount(@Valid @RequestBody ManagedUserVM managedUserVM, HttpServletRequest request) {
|
||||
|
||||
HttpHeaders textPlainHeaders = new HttpHeaders();
|
||||
textPlainHeaders.setContentType(MediaType.TEXT_PLAIN);
|
||||
|
||||
return userRepository.findOneByLogin(managedUserDTO.getLogin().toLowerCase())
|
||||
return userRepository.findOneByLogin(managedUserVM.getLogin().toLowerCase())
|
||||
.map(user -> new ResponseEntity<>("login already in use", textPlainHeaders, HttpStatus.BAD_REQUEST))
|
||||
.orElseGet(() -> userRepository.findOneByEmail(managedUserDTO.getEmail())
|
||||
.orElseGet(() -> userRepository.findOneByEmail(managedUserVM.getEmail())
|
||||
.map(user -> new ResponseEntity<>("e-mail address already in use", textPlainHeaders, HttpStatus.BAD_REQUEST))
|
||||
.orElseGet(() -> {
|
||||
User user = userService.createUserInformation(managedUserDTO.getLogin(), managedUserDTO.getPassword(),
|
||||
managedUserDTO.getFirstName(), managedUserDTO.getLastName(), managedUserDTO.getEmail().toLowerCase(),
|
||||
managedUserDTO.getLangKey());
|
||||
User user = userService.createUser(managedUserVM.getLogin(), managedUserVM.getPassword(),
|
||||
managedUserVM.getFirstName(), managedUserVM.getLastName(), managedUserVM.getEmail().toLowerCase(),
|
||||
managedUserVM.getLangKey());
|
||||
String baseUrl = request.getScheme() + // "http"
|
||||
"://" + // "://"
|
||||
request.getServerName() + // "myhost"
|
||||
|
@ -152,7 +152,7 @@ public class AccountResource {
|
|||
return userRepository
|
||||
.findOneByLogin(SecurityUtils.getCurrentUserLogin())
|
||||
.map(u -> {
|
||||
userService.updateUserInformation(userDTO.getFirstName(), userDTO.getLastName(), userDTO.getEmail(),
|
||||
userService.updateUser(userDTO.getFirstName(), userDTO.getLastName(), userDTO.getEmail(),
|
||||
userDTO.getLangKey());
|
||||
return new ResponseEntity<String>(HttpStatus.OK);
|
||||
})
|
||||
|
@ -259,7 +259,7 @@ public class AccountResource {
|
|||
method = RequestMethod.POST,
|
||||
produces = MediaType.TEXT_PLAIN_VALUE)
|
||||
@Timed
|
||||
public ResponseEntity<String> finishPasswordReset(@RequestBody KeyAndPasswordDTO keyAndPassword) {
|
||||
public ResponseEntity<String> finishPasswordReset(@RequestBody KeyAndPasswordVM keyAndPassword) {
|
||||
if (!checkPasswordLength(keyAndPassword.getNewPassword())) {
|
||||
return new ResponseEntity<>("Incorrect password", HttpStatus.BAD_REQUEST);
|
||||
}
|
||||
|
@ -270,7 +270,7 @@ public class AccountResource {
|
|||
|
||||
private boolean checkPasswordLength(String password) {
|
||||
return (!StringUtils.isEmpty(password) &&
|
||||
password.length() >= ManagedUserDTO.PASSWORD_MIN_LENGTH &&
|
||||
password.length() <= ManagedUserDTO.PASSWORD_MAX_LENGTH);
|
||||
password.length() >= ManagedUserVM.PASSWORD_MIN_LENGTH &&
|
||||
password.length() <= ManagedUserVM.PASSWORD_MAX_LENGTH);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ package io.github.jhipster.sample.web.rest;
|
|||
|
||||
import com.codahale.metrics.annotation.Timed;
|
||||
import io.github.jhipster.sample.domain.BankAccount;
|
||||
|
||||
import io.github.jhipster.sample.repository.BankAccountRepository;
|
||||
import io.github.jhipster.sample.web.rest.util.HeaderUtil;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -30,7 +31,7 @@ public class BankAccountResource {
|
|||
|
||||
@Inject
|
||||
private BankAccountRepository bankAccountRepository;
|
||||
|
||||
|
||||
/**
|
||||
* POST /bank-accounts : Create a new bankAccount.
|
||||
*
|
||||
|
|
|
@ -2,6 +2,7 @@ package io.github.jhipster.sample.web.rest;
|
|||
|
||||
import com.codahale.metrics.annotation.Timed;
|
||||
import io.github.jhipster.sample.domain.Label;
|
||||
|
||||
import io.github.jhipster.sample.repository.LabelRepository;
|
||||
import io.github.jhipster.sample.web.rest.util.HeaderUtil;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -30,7 +31,7 @@ public class LabelResource {
|
|||
|
||||
@Inject
|
||||
private LabelRepository labelRepository;
|
||||
|
||||
|
||||
/**
|
||||
* POST /labels : Create a new label.
|
||||
*
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package io.github.jhipster.sample.web.rest;
|
||||
|
||||
import io.github.jhipster.sample.web.rest.dto.LoggerDTO;
|
||||
import io.github.jhipster.sample.web.rest.vm.LoggerVM;
|
||||
|
||||
import ch.qos.logback.classic.Level;
|
||||
import ch.qos.logback.classic.LoggerContext;
|
||||
|
@ -24,11 +24,11 @@ public class LogsResource {
|
|||
method = RequestMethod.GET,
|
||||
produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
@Timed
|
||||
public List<LoggerDTO> getList() {
|
||||
public List<LoggerVM> getList() {
|
||||
LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
|
||||
return context.getLoggerList()
|
||||
.stream()
|
||||
.map(LoggerDTO::new)
|
||||
.map(LoggerVM::new)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ public class LogsResource {
|
|||
method = RequestMethod.PUT)
|
||||
@ResponseStatus(HttpStatus.NO_CONTENT)
|
||||
@Timed
|
||||
public void changeLevel(@RequestBody LoggerDTO jsonLogger) {
|
||||
public void changeLevel(@RequestBody LoggerVM jsonLogger) {
|
||||
LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
|
||||
context.getLogger(jsonLogger.getName()).setLevel(Level.valueOf(jsonLogger.getLevel()));
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ package io.github.jhipster.sample.web.rest;
|
|||
|
||||
import com.codahale.metrics.annotation.Timed;
|
||||
import io.github.jhipster.sample.domain.Operation;
|
||||
|
||||
import io.github.jhipster.sample.repository.OperationRepository;
|
||||
import io.github.jhipster.sample.web.rest.util.HeaderUtil;
|
||||
import io.github.jhipster.sample.web.rest.util.PaginationUtil;
|
||||
|
@ -33,7 +34,7 @@ public class OperationResource {
|
|||
|
||||
@Inject
|
||||
private OperationRepository operationRepository;
|
||||
|
||||
|
||||
/**
|
||||
* POST /operations : Create a new operation.
|
||||
*
|
||||
|
@ -94,7 +95,7 @@ public class OperationResource {
|
|||
public ResponseEntity<List<Operation>> getAllOperations(Pageable pageable)
|
||||
throws URISyntaxException {
|
||||
log.debug("REST request to get a page of Operations");
|
||||
Page<Operation> page = operationRepository.findAll(pageable);
|
||||
Page<Operation> page = operationRepository.findAll(pageable);
|
||||
HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/operations");
|
||||
return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);
|
||||
}
|
||||
|
|
|
@ -2,14 +2,12 @@ package io.github.jhipster.sample.web.rest;
|
|||
|
||||
import io.github.jhipster.sample.config.Constants;
|
||||
import com.codahale.metrics.annotation.Timed;
|
||||
import io.github.jhipster.sample.domain.Authority;
|
||||
import io.github.jhipster.sample.domain.User;
|
||||
import io.github.jhipster.sample.repository.AuthorityRepository;
|
||||
import io.github.jhipster.sample.repository.UserRepository;
|
||||
import io.github.jhipster.sample.security.AuthoritiesConstants;
|
||||
import io.github.jhipster.sample.service.MailService;
|
||||
import io.github.jhipster.sample.service.UserService;
|
||||
import io.github.jhipster.sample.web.rest.dto.ManagedUserDTO;
|
||||
import io.github.jhipster.sample.web.rest.vm.ManagedUserVM;
|
||||
import io.github.jhipster.sample.web.rest.util.HeaderUtil;
|
||||
import io.github.jhipster.sample.web.rest.util.PaginationUtil;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -21,7 +19,6 @@ import org.springframework.http.HttpStatus;
|
|||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.access.annotation.Secured;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
@ -37,11 +34,11 @@ import java.util.stream.Collectors;
|
|||
* <p>This class accesses the User entity, and needs to fetch its collection of authorities.</p>
|
||||
* <p>
|
||||
* For a normal use-case, it would be better to have an eager relationship between User and Authority,
|
||||
* and send everything to the client side: there would be no DTO, a lot less code, and an outer-join
|
||||
* and send everything to the client side: there would be no View Model and DTO, a lot less code, and an outer-join
|
||||
* which would be good for performance.
|
||||
* </p>
|
||||
* <p>
|
||||
* We use a DTO for 3 reasons:
|
||||
* We use a View Model and a DTO for 3 reasons:
|
||||
* <ul>
|
||||
* <li>We want to keep a lazy association between the user and the authorities, because people will
|
||||
* quite often do relationships with the user, and we don't want them to get the authorities all
|
||||
|
@ -67,10 +64,6 @@ public class UserResource {
|
|||
@Inject
|
||||
private MailService mailService;
|
||||
|
||||
|
||||
@Inject
|
||||
private AuthorityRepository authorityRepository;
|
||||
|
||||
@Inject
|
||||
private UserService userService;
|
||||
|
||||
|
@ -82,7 +75,7 @@ public class UserResource {
|
|||
* The user needs to be activated on creation.
|
||||
* </p>
|
||||
*
|
||||
* @param managedUserDTO the user to create
|
||||
* @param managedUserVM the user to create
|
||||
* @param request the HTTP request
|
||||
* @return the ResponseEntity with status 201 (Created) and with body the new user, or with status 400 (Bad Request) if the login or email is already in use
|
||||
* @throws URISyntaxException if the Location URI syntax is incorrect
|
||||
|
@ -92,20 +85,20 @@ public class UserResource {
|
|||
produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
@Timed
|
||||
@Secured(AuthoritiesConstants.ADMIN)
|
||||
public ResponseEntity<?> createUser(@RequestBody ManagedUserDTO managedUserDTO, HttpServletRequest request) throws URISyntaxException {
|
||||
log.debug("REST request to save User : {}", managedUserDTO);
|
||||
public ResponseEntity<?> createUser(@RequestBody ManagedUserVM managedUserVM, HttpServletRequest request) throws URISyntaxException {
|
||||
log.debug("REST request to save User : {}", managedUserVM);
|
||||
|
||||
//Lowercase the user login before comparing with database
|
||||
if (userRepository.findOneByLogin(managedUserDTO.getLogin().toLowerCase()).isPresent()) {
|
||||
if (userRepository.findOneByLogin(managedUserVM.getLogin().toLowerCase()).isPresent()) {
|
||||
return ResponseEntity.badRequest()
|
||||
.headers(HeaderUtil.createFailureAlert("userManagement", "userexists", "Login already in use"))
|
||||
.body(null);
|
||||
} else if (userRepository.findOneByEmail(managedUserDTO.getEmail()).isPresent()) {
|
||||
} else if (userRepository.findOneByEmail(managedUserVM.getEmail()).isPresent()) {
|
||||
return ResponseEntity.badRequest()
|
||||
.headers(HeaderUtil.createFailureAlert("userManagement", "emailexists", "Email already in use"))
|
||||
.body(null);
|
||||
} else {
|
||||
User newUser = userService.createUser(managedUserDTO);
|
||||
User newUser = userService.createUser(managedUserVM);
|
||||
String baseUrl = request.getScheme() + // "http"
|
||||
"://" + // "://"
|
||||
request.getServerName() + // "myhost"
|
||||
|
@ -122,7 +115,7 @@ public class UserResource {
|
|||
/**
|
||||
* PUT /users : Updates an existing User.
|
||||
*
|
||||
* @param managedUserDTO the user to update
|
||||
* @param managedUserVM the user to update
|
||||
* @return the ResponseEntity with status 200 (OK) and with body the updated user,
|
||||
* or with status 400 (Bad Request) if the login or email is already in use,
|
||||
* or with status 500 (Internal Server Error) if the user couldn't be updated
|
||||
|
@ -131,39 +124,24 @@ public class UserResource {
|
|||
method = RequestMethod.PUT,
|
||||
produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
@Timed
|
||||
@Transactional
|
||||
@Secured(AuthoritiesConstants.ADMIN)
|
||||
public ResponseEntity<ManagedUserDTO> updateUser(@RequestBody ManagedUserDTO managedUserDTO) {
|
||||
log.debug("REST request to update User : {}", managedUserDTO);
|
||||
Optional<User> existingUser = userRepository.findOneByEmail(managedUserDTO.getEmail());
|
||||
if (existingUser.isPresent() && (!existingUser.get().getId().equals(managedUserDTO.getId()))) {
|
||||
public ResponseEntity<ManagedUserVM> updateUser(@RequestBody ManagedUserVM managedUserVM) {
|
||||
log.debug("REST request to update User : {}", managedUserVM);
|
||||
Optional<User> existingUser = userRepository.findOneByEmail(managedUserVM.getEmail());
|
||||
if (existingUser.isPresent() && (!existingUser.get().getId().equals(managedUserVM.getId()))) {
|
||||
return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert("userManagement", "emailexists", "E-mail already in use")).body(null);
|
||||
}
|
||||
existingUser = userRepository.findOneByLogin(managedUserDTO.getLogin().toLowerCase());
|
||||
if (existingUser.isPresent() && (!existingUser.get().getId().equals(managedUserDTO.getId()))) {
|
||||
existingUser = userRepository.findOneByLogin(managedUserVM.getLogin().toLowerCase());
|
||||
if (existingUser.isPresent() && (!existingUser.get().getId().equals(managedUserVM.getId()))) {
|
||||
return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert("userManagement", "userexists", "Login already in use")).body(null);
|
||||
}
|
||||
return userRepository
|
||||
.findOneById(managedUserDTO.getId())
|
||||
.map(user -> {
|
||||
user.setLogin(managedUserDTO.getLogin());
|
||||
user.setFirstName(managedUserDTO.getFirstName());
|
||||
user.setLastName(managedUserDTO.getLastName());
|
||||
user.setEmail(managedUserDTO.getEmail());
|
||||
user.setActivated(managedUserDTO.isActivated());
|
||||
user.setLangKey(managedUserDTO.getLangKey());
|
||||
Set<Authority> authorities = user.getAuthorities();
|
||||
authorities.clear();
|
||||
managedUserDTO.getAuthorities().stream().forEach(
|
||||
authority -> authorities.add(authorityRepository.findOne(authority))
|
||||
);
|
||||
return ResponseEntity.ok()
|
||||
.headers(HeaderUtil.createAlert("userManagement.updated", managedUserDTO.getLogin()))
|
||||
.body(new ManagedUserDTO(userRepository
|
||||
.findOne(managedUserDTO.getId())));
|
||||
})
|
||||
.orElseGet(() -> new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR));
|
||||
userService.updateUser(managedUserVM.getId(), managedUserVM.getLogin(), managedUserVM.getFirstName(),
|
||||
managedUserVM.getLastName(), managedUserVM.getEmail(), managedUserVM.isActivated(),
|
||||
managedUserVM.getLangKey(), managedUserVM.getAuthorities());
|
||||
|
||||
return ResponseEntity.ok()
|
||||
.headers(HeaderUtil.createAlert("userManagement.updated", managedUserVM.getLogin()))
|
||||
.body(new ManagedUserVM(userService.getUserWithAuthorities(managedUserVM.getId())));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -177,15 +155,14 @@ public class UserResource {
|
|||
method = RequestMethod.GET,
|
||||
produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
@Timed
|
||||
@Transactional(readOnly = true)
|
||||
public ResponseEntity<List<ManagedUserDTO>> getAllUsers(Pageable pageable)
|
||||
public ResponseEntity<List<ManagedUserVM>> getAllUsers(Pageable pageable)
|
||||
throws URISyntaxException {
|
||||
Page<User> page = userRepository.findAll(pageable);
|
||||
List<ManagedUserDTO> managedUserDTOs = page.getContent().stream()
|
||||
.map(ManagedUserDTO::new)
|
||||
Page<User> page = userRepository.findAllWithAuthorities(pageable);
|
||||
List<ManagedUserVM> managedUserVMs = page.getContent().stream()
|
||||
.map(ManagedUserVM::new)
|
||||
.collect(Collectors.toList());
|
||||
HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/users");
|
||||
return new ResponseEntity<>(managedUserDTOs, headers, HttpStatus.OK);
|
||||
return new ResponseEntity<>(managedUserVMs, headers, HttpStatus.OK);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -198,15 +175,16 @@ public class UserResource {
|
|||
method = RequestMethod.GET,
|
||||
produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
@Timed
|
||||
public ResponseEntity<ManagedUserDTO> getUser(@PathVariable String login) {
|
||||
public ResponseEntity<ManagedUserVM> getUser(@PathVariable String login) {
|
||||
log.debug("REST request to get User : {}", login);
|
||||
return userService.getUserWithAuthoritiesByLogin(login)
|
||||
.map(ManagedUserDTO::new)
|
||||
.map(managedUserDTO -> new ResponseEntity<>(managedUserDTO, HttpStatus.OK))
|
||||
.map(ManagedUserVM::new)
|
||||
.map(managedUserVM -> new ResponseEntity<>(managedUserVM, HttpStatus.OK))
|
||||
.orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));
|
||||
}
|
||||
|
||||
/**
|
||||
* DELETE USER :login : delete the "login" User.
|
||||
* DELETE /users/:login : delete the "login" User.
|
||||
*
|
||||
* @param login the login of the user to delete
|
||||
* @return the ResponseEntity with status 200 (OK)
|
||||
|
@ -218,7 +196,7 @@ public class UserResource {
|
|||
@Secured(AuthoritiesConstants.ADMIN)
|
||||
public ResponseEntity<Void> deleteUser(@PathVariable String login) {
|
||||
log.debug("REST request to delete User: {}", login);
|
||||
userService.deleteUserInformation(login);
|
||||
userService.deleteUser(login);
|
||||
return ResponseEntity.ok().headers(HeaderUtil.createAlert( "userManagement.deleted", login)).build();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
/**
|
||||
* Data Transfer Objects used by Spring MVC REST controllers.
|
||||
*/
|
||||
package io.github.jhipster.sample.web.rest.dto;
|
|
@ -27,8 +27,8 @@ public class CustomParameterizedException extends RuntimeException {
|
|||
this.params = params;
|
||||
}
|
||||
|
||||
public ParameterizedErrorDTO getErrorDTO() {
|
||||
return new ParameterizedErrorDTO(message, params);
|
||||
public ParameterizedErrorVM getErrorVM() {
|
||||
return new ParameterizedErrorVM(message, params);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -5,27 +5,27 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
|
||||
/**
|
||||
* DTO for transferring error message with a list of field errors.
|
||||
* View Model for transferring error message with a list of field errors.
|
||||
*/
|
||||
public class ErrorDTO implements Serializable {
|
||||
public class ErrorVM implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private final String message;
|
||||
private final String description;
|
||||
|
||||
private List<FieldErrorDTO> fieldErrors;
|
||||
private List<FieldErrorVM> fieldErrors;
|
||||
|
||||
public ErrorDTO(String message) {
|
||||
public ErrorVM(String message) {
|
||||
this(message, null);
|
||||
}
|
||||
|
||||
public ErrorDTO(String message, String description) {
|
||||
public ErrorVM(String message, String description) {
|
||||
this.message = message;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public ErrorDTO(String message, String description, List<FieldErrorDTO> fieldErrors) {
|
||||
public ErrorVM(String message, String description, List<FieldErrorVM> fieldErrors) {
|
||||
this.message = message;
|
||||
this.description = description;
|
||||
this.fieldErrors = fieldErrors;
|
||||
|
@ -35,7 +35,7 @@ public class ErrorDTO implements Serializable {
|
|||
if (fieldErrors == null) {
|
||||
fieldErrors = new ArrayList<>();
|
||||
}
|
||||
fieldErrors.add(new FieldErrorDTO(objectName, field, message));
|
||||
fieldErrors.add(new FieldErrorVM(objectName, field, message));
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
|
@ -46,7 +46,7 @@ public class ErrorDTO implements Serializable {
|
|||
return description;
|
||||
}
|
||||
|
||||
public List<FieldErrorDTO> getFieldErrors() {
|
||||
public List<FieldErrorVM> getFieldErrors() {
|
||||
return fieldErrors;
|
||||
}
|
||||
}
|
|
@ -23,14 +23,14 @@ public class ExceptionTranslator {
|
|||
@ExceptionHandler(ConcurrencyFailureException.class)
|
||||
@ResponseStatus(HttpStatus.CONFLICT)
|
||||
@ResponseBody
|
||||
public ErrorDTO processConcurencyError(ConcurrencyFailureException ex) {
|
||||
return new ErrorDTO(ErrorConstants.ERR_CONCURRENCY_FAILURE);
|
||||
public ErrorVM processConcurencyError(ConcurrencyFailureException ex) {
|
||||
return new ErrorVM(ErrorConstants.ERR_CONCURRENCY_FAILURE);
|
||||
}
|
||||
|
||||
@ExceptionHandler(MethodArgumentNotValidException.class)
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
@ResponseBody
|
||||
public ErrorDTO processValidationError(MethodArgumentNotValidException ex) {
|
||||
public ErrorVM processValidationError(MethodArgumentNotValidException ex) {
|
||||
BindingResult result = ex.getBindingResult();
|
||||
List<FieldError> fieldErrors = result.getFieldErrors();
|
||||
|
||||
|
@ -40,19 +40,19 @@ public class ExceptionTranslator {
|
|||
@ExceptionHandler(CustomParameterizedException.class)
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
@ResponseBody
|
||||
public ParameterizedErrorDTO processParameterizedValidationError(CustomParameterizedException ex) {
|
||||
return ex.getErrorDTO();
|
||||
public ParameterizedErrorVM processParameterizedValidationError(CustomParameterizedException ex) {
|
||||
return ex.getErrorVM();
|
||||
}
|
||||
|
||||
@ExceptionHandler(AccessDeniedException.class)
|
||||
@ResponseStatus(HttpStatus.FORBIDDEN)
|
||||
@ResponseBody
|
||||
public ErrorDTO processAccessDeniedException(AccessDeniedException e) {
|
||||
return new ErrorDTO(ErrorConstants.ERR_ACCESS_DENIED, e.getMessage());
|
||||
public ErrorVM processAccessDeniedException(AccessDeniedException e) {
|
||||
return new ErrorVM(ErrorConstants.ERR_ACCESS_DENIED, e.getMessage());
|
||||
}
|
||||
|
||||
private ErrorDTO processFieldErrors(List<FieldError> fieldErrors) {
|
||||
ErrorDTO dto = new ErrorDTO(ErrorConstants.ERR_VALIDATION);
|
||||
private ErrorVM processFieldErrors(List<FieldError> fieldErrors) {
|
||||
ErrorVM dto = new ErrorVM(ErrorConstants.ERR_VALIDATION);
|
||||
|
||||
for (FieldError fieldError : fieldErrors) {
|
||||
dto.add(fieldError.getObjectName(), fieldError.getField(), fieldError.getCode());
|
||||
|
@ -64,22 +64,22 @@ public class ExceptionTranslator {
|
|||
@ExceptionHandler(HttpRequestMethodNotSupportedException.class)
|
||||
@ResponseBody
|
||||
@ResponseStatus(HttpStatus.METHOD_NOT_ALLOWED)
|
||||
public ErrorDTO processMethodNotSupportedException(HttpRequestMethodNotSupportedException exception) {
|
||||
return new ErrorDTO(ErrorConstants.ERR_METHOD_NOT_SUPPORTED, exception.getMessage());
|
||||
public ErrorVM processMethodNotSupportedException(HttpRequestMethodNotSupportedException exception) {
|
||||
return new ErrorVM(ErrorConstants.ERR_METHOD_NOT_SUPPORTED, exception.getMessage());
|
||||
}
|
||||
|
||||
@ExceptionHandler(Exception.class)
|
||||
public ResponseEntity<ErrorDTO> processRuntimeException(Exception ex) throws Exception {
|
||||
public ResponseEntity<ErrorVM> processRuntimeException(Exception ex) throws Exception {
|
||||
BodyBuilder builder;
|
||||
ErrorDTO errorDTO;
|
||||
ErrorVM errorVM;
|
||||
ResponseStatus responseStatus = AnnotationUtils.findAnnotation(ex.getClass(), ResponseStatus.class);
|
||||
if (responseStatus != null) {
|
||||
builder = ResponseEntity.status(responseStatus.value());
|
||||
errorDTO = new ErrorDTO("error." + responseStatus.value().value(), responseStatus.reason());
|
||||
errorVM = new ErrorVM("error." + responseStatus.value().value(), responseStatus.reason());
|
||||
} else {
|
||||
builder = ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR);
|
||||
errorDTO = new ErrorDTO(ErrorConstants.ERR_INTERNAL_SERVER_ERROR, "Internal server error");
|
||||
errorVM = new ErrorVM(ErrorConstants.ERR_INTERNAL_SERVER_ERROR, "Internal server error");
|
||||
}
|
||||
return builder.body(errorDTO);
|
||||
return builder.body(errorVM);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ package io.github.jhipster.sample.web.rest.errors;
|
|||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class FieldErrorDTO implements Serializable {
|
||||
public class FieldErrorVM implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
@ -12,7 +12,7 @@ public class FieldErrorDTO implements Serializable {
|
|||
|
||||
private final String message;
|
||||
|
||||
public FieldErrorDTO(String dto, String field, String message) {
|
||||
public FieldErrorVM(String dto, String field, String message) {
|
||||
this.objectName = dto;
|
||||
this.field = field;
|
||||
this.message = message;
|
|
@ -3,15 +3,15 @@ package io.github.jhipster.sample.web.rest.errors;
|
|||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* DTO for sending a parameterized error message.
|
||||
* View Model for sending a parameterized error message.
|
||||
*/
|
||||
public class ParameterizedErrorDTO implements Serializable {
|
||||
public class ParameterizedErrorVM implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private final String message;
|
||||
private final String[] params;
|
||||
|
||||
public ParameterizedErrorDTO(String message, String... params) {
|
||||
public ParameterizedErrorVM(String message, String... params) {
|
||||
this.message = message;
|
||||
this.params = params;
|
||||
}
|
|
@ -1,12 +1,15 @@
|
|||
package io.github.jhipster.sample.web.rest.dto;
|
||||
package io.github.jhipster.sample.web.rest.vm;
|
||||
|
||||
public class KeyAndPasswordDTO {
|
||||
/**
|
||||
* View Model object for storing the user's key and password.
|
||||
*/
|
||||
public class KeyAndPasswordVM {
|
||||
|
||||
private String key;
|
||||
|
||||
private String newPassword;
|
||||
|
||||
public KeyAndPasswordDTO() {
|
||||
public KeyAndPasswordVM() {
|
||||
}
|
||||
|
||||
public String getKey() {
|
|
@ -1,21 +1,24 @@
|
|||
package io.github.jhipster.sample.web.rest.dto;
|
||||
package io.github.jhipster.sample.web.rest.vm;
|
||||
|
||||
import ch.qos.logback.classic.Logger;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
|
||||
public class LoggerDTO {
|
||||
/**
|
||||
* View Model object for storing a Logback logger.
|
||||
*/
|
||||
public class LoggerVM {
|
||||
|
||||
private String name;
|
||||
|
||||
private String level;
|
||||
|
||||
public LoggerDTO(Logger logger) {
|
||||
public LoggerVM(Logger logger) {
|
||||
this.name = logger.getName();
|
||||
this.level = logger.getEffectiveLevel().toString();
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
public LoggerDTO() {
|
||||
public LoggerVM() {
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
|
@ -36,7 +39,7 @@ public class LoggerDTO {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "LoggerDTO{" +
|
||||
return "LoggerVM{" +
|
||||
"name='" + name + '\'' +
|
||||
", level='" + level + '\'' +
|
||||
'}';
|
|
@ -1,17 +1,18 @@
|
|||
package io.github.jhipster.sample.web.rest.dto;
|
||||
package io.github.jhipster.sample.web.rest.vm;
|
||||
|
||||
import java.time.ZonedDateTime;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import io.github.jhipster.sample.domain.User;
|
||||
import io.github.jhipster.sample.service.dto.UserDTO;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
/**
|
||||
* A DTO extending the UserDTO, which is meant to be used in the user management UI.
|
||||
* View Model extending the UserDTO, which is meant to be used in the user management UI.
|
||||
*/
|
||||
public class ManagedUserDTO extends UserDTO {
|
||||
public class ManagedUserVM extends UserDTO {
|
||||
|
||||
public static final int PASSWORD_MIN_LENGTH = 4;
|
||||
public static final int PASSWORD_MAX_LENGTH = 100;
|
||||
|
@ -28,10 +29,10 @@ public class ManagedUserDTO extends UserDTO {
|
|||
@Size(min = PASSWORD_MIN_LENGTH, max = PASSWORD_MAX_LENGTH)
|
||||
private String password;
|
||||
|
||||
public ManagedUserDTO() {
|
||||
public ManagedUserVM() {
|
||||
}
|
||||
|
||||
public ManagedUserDTO(User user) {
|
||||
public ManagedUserVM(User user) {
|
||||
super(user);
|
||||
this.id = user.getId();
|
||||
this.createdDate = user.getCreatedDate();
|
||||
|
@ -40,7 +41,7 @@ public class ManagedUserDTO extends UserDTO {
|
|||
this.password = null;
|
||||
}
|
||||
|
||||
public ManagedUserDTO(Long id, String login, String password, String firstName, String lastName,
|
||||
public ManagedUserVM(Long id, String login, String password, String firstName, String lastName,
|
||||
String email, boolean activated, String langKey, Set<String> authorities , ZonedDateTime createdDate, String lastModifiedBy, ZonedDateTime lastModifiedDate ) {
|
||||
super(login, firstName, lastName, email, activated, langKey, authorities);
|
||||
this.id = id;
|
||||
|
@ -88,7 +89,7 @@ public class ManagedUserDTO extends UserDTO {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ManagedUserDTO{" +
|
||||
return "ManagedUserVM{" +
|
||||
"id=" + id +
|
||||
", createdDate=" + createdDate +
|
||||
", lastModifiedBy='" + lastModifiedBy + '\'' +
|
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* View Models used by Spring MVC REST controllers.
|
||||
*/
|
||||
package io.github.jhipster.sample.web.rest.vm;
|
|
@ -20,6 +20,7 @@ spring:
|
|||
jackson:
|
||||
serialization.indent_output: true
|
||||
datasource:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
url: jdbc:h2:mem:jhipstersampleapplication;DB_CLOSE_DELAY=-1
|
||||
name:
|
||||
username: jhipsterSampleApplication
|
||||
|
|
|
@ -18,6 +18,7 @@ spring:
|
|||
livereload:
|
||||
enabled: false
|
||||
datasource:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
url: jdbc:mysql://localhost:3306/jhipsterSampleApplication?useUnicode=true&characterEncoding=utf8&useSSL=false
|
||||
name:
|
||||
username: root
|
||||
|
|
|
@ -31,7 +31,8 @@ spring:
|
|||
open-in-view: false
|
||||
hibernate:
|
||||
ddl-auto: none
|
||||
naming-strategy: org.springframework.boot.orm.jpa.hibernate.SpringNamingStrategy
|
||||
naming:
|
||||
strategy: org.springframework.boot.orm.jpa.hibernate.SpringNamingStrategy
|
||||
messages:
|
||||
basename: i18n/messages
|
||||
mvc:
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<addForeignKeyConstraint baseColumnNames="user_id"
|
||||
baseTableName="bank_account"
|
||||
constraintName="fk_bankaccount_user_id"
|
||||
constraintName="fk_bank_account_user_id"
|
||||
referencedColumnNames="id"
|
||||
referencedTableName="jhi_user"/>
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<addForeignKeyConstraint baseColumnNames="bank_account_id"
|
||||
baseTableName="operation"
|
||||
constraintName="fk_operation_bankaccount_id"
|
||||
constraintName="fk_operation_bank_account_id"
|
||||
referencedColumnNames="id"
|
||||
referencedTableName="bank_account"/>
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
client_id;resource_ids;client_secret;scope;authorized_grant_types;web_server_redirect_uri;authorities;access_token_validity;refresh_token_validity;additional_information;autoapprove
|
||||
jhipsterSampleApplicationapp;res_jhipsterSampleApplication;my-secret-token-to-change-in-production;read,write;password,refresh_token,authorization_code,implicit;;ROLE_ADMIN,ROLE_USER;1800;2000;{};true
|
|
|
@ -197,12 +197,12 @@
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<h3 translate="metrics.datasource.title" ng-show="vm.metrics.gauges['HikariPool-0.pool.TotalConnections'].value > 0">DataSource statistics (time in millisecond)</h3>
|
||||
<div class="table-responsive" ng-show="vm.metrics.gauges['HikariPool-0.pool.TotalConnections'].value > 0">
|
||||
<h3 translate="metrics.datasource.title" ng-show="vm.metrics.gauges['HikariPool-1.pool.TotalConnections'].value > 0">DataSource statistics (time in millisecond)</h3>
|
||||
<div class="table-responsive" ng-show="vm.metrics.gauges['HikariPool-1.pool.TotalConnections'].value > 0">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><span translate="metrics.datasource.usage">Usage</span> ({{vm.metrics.gauges['HikariPool-0.pool.ActiveConnections'].value}} / {{vm.metrics.gauges['HikariPool-0.pool.TotalConnections'].value}})</th>
|
||||
<th><span translate="metrics.datasource.usage">Usage</span> ({{vm.metrics.gauges['HikariPool-1.pool.ActiveConnections'].value}} / {{vm.metrics.gauges['HikariPool-1.pool.TotalConnections'].value}})</th>
|
||||
<th class="text-right" translate="metrics.datasource.count">Count</th>
|
||||
<th class="text-right" translate="metrics.datasource.mean">Mean</th>
|
||||
<th class="text-right" translate="metrics.datasource.min">Min</th>
|
||||
|
@ -217,19 +217,19 @@
|
|||
<tr>
|
||||
<td>
|
||||
<div class="progress progress-striped">
|
||||
<uib-progressbar min="0" max="vm.metrics.gauges['HikariPool-0.pool.TotalConnections'].value" value="vm.metrics.gauges['HikariPool-0.pool.ActiveConnections'].value" class="progress-striped active" type="success">
|
||||
<span>{{vm.metrics.gauges['HikariPool-0.pool.ActiveConnections'].value * 100 / vm.metrics.gauges['HikariPool-0.pool.TotalConnections'].value | number:0}}%</span>
|
||||
<uib-progressbar min="0" max="vm.metrics.gauges['HikariPool-1.pool.TotalConnections'].value" value="vm.metrics.gauges['HikariPool-1.pool.ActiveConnections'].value" class="progress-striped active" type="success">
|
||||
<span>{{vm.metrics.gauges['HikariPool-1.pool.ActiveConnections'].value * 100 / vm.metrics.gauges['HikariPool-1.pool.TotalConnections'].value | number:0}}%</span>
|
||||
</uib-progressbar>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-0.pool.Usage'].count}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-0.pool.Usage'].mean | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-0.pool.Usage'].min | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-0.pool.Usage'].p50 | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-0.pool.Usage'].p75 | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-0.pool.Usage'].p95 | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-0.pool.Usage'].p99 | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-0.pool.Usage'].max | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-1.pool.Usage'].count}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-1.pool.Usage'].mean | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-1.pool.Usage'].min | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-1.pool.Usage'].p50 | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-1.pool.Usage'].p75 | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-1.pool.Usage'].p95 | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-1.pool.Usage'].p99 | number:2}}</td>
|
||||
<td class="text-right">{{vm.metrics.histograms['HikariPool-1.pool.Usage'].max | number:2}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
url: '/user-management?page&sort',
|
||||
data: {
|
||||
authorities: ['ROLE_ADMIN'],
|
||||
pageTitle: 'user-management.home.title'
|
||||
pageTitle: 'userManagement.home.title'
|
||||
},
|
||||
views: {
|
||||
'content@': {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
return directive;
|
||||
|
||||
function linkFunc (scope, element) {
|
||||
function linkFunc (scope, element, attrs, formCtrl) {
|
||||
element.find('.form-group').each(function() {
|
||||
var $formGroup = angular.element(this);
|
||||
var $inputs = $formGroup.find('input[ng-model],textarea[ng-model],select[ng-model]');
|
||||
|
@ -22,8 +22,9 @@
|
|||
if ($inputs.length > 0) {
|
||||
$inputs.each(function() {
|
||||
var $input = angular.element(this);
|
||||
var inputName = $input.attr('name');
|
||||
scope.$watch(function() {
|
||||
return $input.hasClass('ng-invalid') && $input.hasClass('ng-dirty');
|
||||
return formCtrl[inputName].$invalid && formCtrl[inputName].$dirty;
|
||||
}, function(isInvalid) {
|
||||
$formGroup.toggleClass('has-error', isInvalid);
|
||||
});
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
}
|
||||
}
|
||||
}).result.then(function() {
|
||||
$state.go('bank-account', null, { reload: true });
|
||||
$state.go('bank-account', null, { reload: 'bank-account' });
|
||||
}, function() {
|
||||
$state.go('bank-account');
|
||||
});
|
||||
|
@ -136,7 +136,7 @@
|
|||
}]
|
||||
}
|
||||
}).result.then(function() {
|
||||
$state.go('bank-account', null, { reload: true });
|
||||
$state.go('bank-account', null, { reload: 'bank-account' });
|
||||
}, function() {
|
||||
$state.go('^');
|
||||
});
|
||||
|
@ -160,7 +160,7 @@
|
|||
}]
|
||||
}
|
||||
}).result.then(function() {
|
||||
$state.go('bank-account', null, { reload: true });
|
||||
$state.go('bank-account', null, { reload: 'bank-account' });
|
||||
}, function() {
|
||||
$state.go('^');
|
||||
});
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
}
|
||||
}
|
||||
}).result.then(function() {
|
||||
$state.go('label', null, { reload: true });
|
||||
$state.go('label', null, { reload: 'label' });
|
||||
}, function() {
|
||||
$state.go('label');
|
||||
});
|
||||
|
@ -135,7 +135,7 @@
|
|||
}]
|
||||
}
|
||||
}).result.then(function() {
|
||||
$state.go('label', null, { reload: true });
|
||||
$state.go('label', null, { reload: 'label' });
|
||||
}, function() {
|
||||
$state.go('^');
|
||||
});
|
||||
|
@ -159,7 +159,7 @@
|
|||
}]
|
||||
}
|
||||
}).result.then(function() {
|
||||
$state.go('label', null, { reload: true });
|
||||
$state.go('label', null, { reload: 'label' });
|
||||
}, function() {
|
||||
$state.go('^');
|
||||
});
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
}
|
||||
}
|
||||
}).result.then(function() {
|
||||
$state.go('operation', null, { reload: true });
|
||||
$state.go('operation', null, { reload: 'operation' });
|
||||
}, function() {
|
||||
$state.go('operation');
|
||||
});
|
||||
|
@ -137,7 +137,7 @@
|
|||
}]
|
||||
}
|
||||
}).result.then(function() {
|
||||
$state.go('operation', null, { reload: true });
|
||||
$state.go('operation', null, { reload: 'operation' });
|
||||
}, function() {
|
||||
$state.go('^');
|
||||
});
|
||||
|
@ -161,7 +161,7 @@
|
|||
}]
|
||||
}
|
||||
}).result.then(function() {
|
||||
$state.go('operation', null, { reload: true });
|
||||
$state.go('operation', null, { reload: 'operation' });
|
||||
}, function() {
|
||||
$state.go('^');
|
||||
});
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
{
|
||||
"name": "angular-aria",
|
||||
"version": "1.5.5",
|
||||
"version": "1.5.8",
|
||||
"license": "MIT",
|
||||
"main": "./angular-aria.js",
|
||||
"ignore": [],
|
||||
"dependencies": {
|
||||
"angular": "1.5.5"
|
||||
"angular": "1.5.8"
|
||||
},
|
||||
"homepage": "https://github.com/angular/bower-angular-aria",
|
||||
"_release": "1.5.5",
|
||||
"_release": "1.5.8",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.5.5",
|
||||
"commit": "14b2c85469a2656e8921cb9f58974ba530abb3c1"
|
||||
"tag": "v1.5.8",
|
||||
"commit": "91710f3ee26d4e2858af0c91ec462aa43360da47"
|
||||
},
|
||||
"_source": "https://github.com/angular/bower-angular-aria.git",
|
||||
"_target": "1.5.5",
|
||||
"_target": "1.5.8",
|
||||
"_originalSource": "angular-aria"
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Angular
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @license AngularJS v1.5.5
|
||||
* @license AngularJS v1.5.8
|
||||
* (c) 2010-2016 Google, Inc. http://angularjs.org
|
||||
* License: MIT
|
||||
*/
|
||||
|
@ -32,7 +32,7 @@
|
|||
* | {@link ng.directive:ngDisabled ngDisabled} | aria-disabled |
|
||||
* | {@link ng.directive:ngRequired ngRequired} | aria-required
|
||||
* | {@link ng.directive:ngChecked ngChecked} | aria-checked
|
||||
* | {@link ng.directive:ngReadonly ngReadonly} | aria-readonly ||
|
||||
* | {@link ng.directive:ngReadonly ngReadonly} | aria-readonly |
|
||||
* | {@link ng.directive:ngValue ngValue} | aria-checked |
|
||||
* | {@link ng.directive:ngShow ngShow} | aria-hidden |
|
||||
* | {@link ng.directive:ngHide ngHide} | aria-hidden |
|
||||
|
@ -43,7 +43,7 @@
|
|||
* Find out more information about each directive by reading the
|
||||
* {@link guide/accessibility ngAria Developer Guide}.
|
||||
*
|
||||
* ##Example
|
||||
* ## Example
|
||||
* Using ngDisabled with ngAria:
|
||||
* ```html
|
||||
* <md-checkbox ng-disabled="disabled">
|
||||
|
@ -53,7 +53,7 @@
|
|||
* <md-checkbox ng-disabled="disabled" aria-disabled="true">
|
||||
* ```
|
||||
*
|
||||
* ##Disabling Attributes
|
||||
* ## Disabling Attributes
|
||||
* It's possible to disable individual attributes added by ngAria with the
|
||||
* {@link ngAria.$ariaProvider#config config} method. For more details, see the
|
||||
* {@link guide/accessibility Developer Guide}.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
AngularJS v1.5.5
|
||||
AngularJS v1.5.8
|
||||
(c) 2010-2016 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
*/
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"name": "angular-aria",
|
||||
"version": "1.5.5",
|
||||
"version": "1.5.8",
|
||||
"license": "MIT",
|
||||
"main": "./angular-aria.js",
|
||||
"ignore": [],
|
||||
"dependencies": {
|
||||
"angular": "1.5.5"
|
||||
"angular": "1.5.8"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "angular-aria",
|
||||
"version": "1.5.5",
|
||||
"version": "1.5.8",
|
||||
"description": "AngularJS module for making accessibility easy",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -23,5 +23,12 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/angular/angular.js/issues"
|
||||
},
|
||||
"homepage": "http://angularjs.org"
|
||||
"homepage": "http://angularjs.org",
|
||||
"jspm": {
|
||||
"shim": {
|
||||
"angular-aria": {
|
||||
"deps": ["angular"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
{
|
||||
"name": "angular-cookies",
|
||||
"version": "1.5.5",
|
||||
"version": "1.5.8",
|
||||
"license": "MIT",
|
||||
"main": "./angular-cookies.js",
|
||||
"ignore": [],
|
||||
"dependencies": {
|
||||
"angular": "1.5.5"
|
||||
"angular": "1.5.8"
|
||||
},
|
||||
"homepage": "https://github.com/angular/bower-angular-cookies",
|
||||
"_release": "1.5.5",
|
||||
"_release": "1.5.8",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.5.5",
|
||||
"commit": "657881516515f6197a240fc3cbfcd8ff912c8ed0"
|
||||
"tag": "v1.5.8",
|
||||
"commit": "a2247a1efb436f0293289fb74ebd76fbe52a7422"
|
||||
},
|
||||
"_source": "https://github.com/angular/bower-angular-cookies.git",
|
||||
"_target": "1.5.5",
|
||||
"_target": "1.5.8",
|
||||
"_originalSource": "angular-cookies"
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Angular
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @license AngularJS v1.5.5
|
||||
* @license AngularJS v1.5.8
|
||||
* (c) 2010-2016 Google, Inc. http://angularjs.org
|
||||
* License: MIT
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
AngularJS v1.5.5
|
||||
AngularJS v1.5.8
|
||||
(c) 2010-2016 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
*/
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"name": "angular-cookies",
|
||||
"version": "1.5.5",
|
||||
"version": "1.5.8",
|
||||
"license": "MIT",
|
||||
"main": "./angular-cookies.js",
|
||||
"ignore": [],
|
||||
"dependencies": {
|
||||
"angular": "1.5.5"
|
||||
"angular": "1.5.8"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "angular-cookies",
|
||||
"version": "1.5.5",
|
||||
"version": "1.5.8",
|
||||
"description": "AngularJS module for cookies",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -22,5 +22,12 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/angular/angular.js/issues"
|
||||
},
|
||||
"homepage": "http://angularjs.org"
|
||||
"homepage": "http://angularjs.org",
|
||||
"jspm": {
|
||||
"shim": {
|
||||
"angular-cookies": {
|
||||
"deps": ["angular"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "angular-i18n",
|
||||
"version": "1.5.5",
|
||||
"version": "1.5.8",
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
|
@ -9,13 +9,13 @@
|
|||
"precommit.sh"
|
||||
],
|
||||
"homepage": "https://github.com/angular/bower-angular-i18n",
|
||||
"_release": "1.5.5",
|
||||
"_release": "1.5.8",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.5.5",
|
||||
"commit": "da621f3feea5a658edc1ae0fdd8ed68888363082"
|
||||
"tag": "v1.5.8",
|
||||
"commit": "2aeae5770c2372712ce575c1d39c582e792d06bf"
|
||||
},
|
||||
"_source": "https://github.com/angular/bower-angular-i18n.git",
|
||||
"_target": "1.5.5",
|
||||
"_target": "1.5.8",
|
||||
"_originalSource": "angular-i18n"
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Angular
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -0,0 +1,125 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"\u202eAM\u202c",
|
||||
"\u202ePM\u202c"
|
||||
],
|
||||
"DAY": [
|
||||
"\u202eSunday\u202c",
|
||||
"\u202eMonday\u202c",
|
||||
"\u202eTuesday\u202c",
|
||||
"\u202eWednesday\u202c",
|
||||
"\u202eThursday\u202c",
|
||||
"\u202eFriday\u202c",
|
||||
"\u202eSaturday\u202c"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"\u202eBefore\u202c \u202eChrist\u202c",
|
||||
"\u202eAnno\u202c \u202eDomini\u202c"
|
||||
],
|
||||
"ERAS": [
|
||||
"\u202eBC\u202c",
|
||||
"\u202eAD\u202c"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"\u202eJanuary\u202c",
|
||||
"\u202eFebruary\u202c",
|
||||
"\u202eMarch\u202c",
|
||||
"\u202eApril\u202c",
|
||||
"\u202eMay\u202c",
|
||||
"\u202eJune\u202c",
|
||||
"\u202eJuly\u202c",
|
||||
"\u202eAugust\u202c",
|
||||
"\u202eSeptember\u202c",
|
||||
"\u202eOctober\u202c",
|
||||
"\u202eNovember\u202c",
|
||||
"\u202eDecember\u202c"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"\u202eSun\u202c",
|
||||
"\u202eMon\u202c",
|
||||
"\u202eTue\u202c",
|
||||
"\u202eWed\u202c",
|
||||
"\u202eThu\u202c",
|
||||
"\u202eFri\u202c",
|
||||
"\u202eSat\u202c"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"\u202eJan\u202c",
|
||||
"\u202eFeb\u202c",
|
||||
"\u202eMar\u202c",
|
||||
"\u202eApr\u202c",
|
||||
"\u202eMay\u202c",
|
||||
"\u202eJun\u202c",
|
||||
"\u202eJul\u202c",
|
||||
"\u202eAug\u202c",
|
||||
"\u202eSep\u202c",
|
||||
"\u202eOct\u202c",
|
||||
"\u202eNov\u202c",
|
||||
"\u202eDec\u202c"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"\u064a\u0646\u0627\u064a\u0631",
|
||||
"\u0641\u0628\u0631\u0627\u064a\u0631",
|
||||
"\u0645\u0627\u0631\u0633",
|
||||
"\u0623\u0628\u0631\u064a\u0644",
|
||||
"\u0645\u0627\u064a\u0648",
|
||||
"\u064a\u0648\u0646\u064a\u0648",
|
||||
"\u064a\u0648\u0644\u064a\u0648",
|
||||
"\u0623\u063a\u0633\u0637\u0633",
|
||||
"\u0633\u0628\u062a\u0645\u0628\u0631",
|
||||
"\u0623\u0643\u062a\u0648\u0628\u0631",
|
||||
"\u0646\u0648\u0641\u0645\u0628\u0631",
|
||||
"\u062f\u064a\u0633\u0645\u0628\u0631"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE\u060c d MMMM\u060c y",
|
||||
"longDate": "d MMMM\u060c y",
|
||||
"medium": "dd\u200f/MM\u200f/y h:mm:ss a",
|
||||
"mediumDate": "dd\u200f/MM\u200f/y",
|
||||
"mediumTime": "h:mm:ss a",
|
||||
"short": "d\u200f/M\u200f/y h:mm a",
|
||||
"shortDate": "d\u200f/M\u200f/y",
|
||||
"shortTime": "h:mm a"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u00a3",
|
||||
"DECIMAL_SEP": "\u066b",
|
||||
"GROUP_SEP": "\u066c",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4\u00a0",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "ar-xb",
|
||||
"localeID": "ar_XB",
|
||||
"pluralCat": function(n, opt_precision) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"\u043a\u04c0\u0438\u0440\u0430\u043d\u0430\u043d \u0434\u0435",
|
||||
"\u043e\u0440\u0448\u043e\u0442\u0430\u043d \u0434\u0435",
|
||||
"\u0448\u0438\u043d\u0430\u0440\u0438\u043d \u0434\u0435",
|
||||
"\u043a\u0445\u0430\u0430\u0440\u0438\u043d \u0434\u0435",
|
||||
"\u0435\u0430\u0440\u0438\u043d \u0434\u0435",
|
||||
"\u043f\u04c0\u0435\u0440\u0430\u0441\u043a\u0430\u043d \u0434\u0435",
|
||||
"\u0448\u043e\u0442 \u0434\u0435"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"BCE",
|
||||
"CE"
|
||||
],
|
||||
"ERAS": [
|
||||
"BCE",
|
||||
"CE"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"\u044f\u043d\u0432\u0430\u0440\u044c",
|
||||
"\u0444\u0435\u0432\u0440\u0430\u043b\u044c",
|
||||
"\u043c\u0430\u0440\u0442",
|
||||
"\u0430\u043f\u0440\u0435\u043b\u044c",
|
||||
"\u043c\u0430\u0439",
|
||||
"\u0438\u044e\u043d\u044c",
|
||||
"\u0438\u044e\u043b\u044c",
|
||||
"\u0430\u0432\u0433\u0443\u0441\u0442",
|
||||
"\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c",
|
||||
"\u043e\u043a\u0442\u044f\u0431\u0440\u044c",
|
||||
"\u043d\u043e\u044f\u0431\u0440\u044c",
|
||||
"\u0434\u0435\u043a\u0430\u0431\u0440\u044c"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"\u043a\u04c0\u0438\u0440\u0430\u043d\u0430\u043d \u0434\u0435",
|
||||
"\u043e\u0440\u0448\u043e\u0442\u0430\u043d \u0434\u0435",
|
||||
"\u0448\u0438\u043d\u0430\u0440\u0438\u043d \u0434\u0435",
|
||||
"\u043a\u0445\u0430\u0430\u0440\u0438\u043d \u0434\u0435",
|
||||
"\u0435\u0430\u0440\u0438\u043d \u0434\u0435",
|
||||
"\u043f\u04c0\u0435\u0440\u0430\u0441\u043a\u0430\u043d \u0434\u0435",
|
||||
"\u0448\u043e\u0442 \u0434\u0435"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"\u044f\u043d\u0432",
|
||||
"\u0444\u0435\u0432",
|
||||
"\u043c\u0430\u0440",
|
||||
"\u0430\u043f\u0440",
|
||||
"\u043c\u0430\u0439",
|
||||
"\u0438\u044e\u043d",
|
||||
"\u0438\u044e\u043b",
|
||||
"\u0430\u0432\u0433",
|
||||
"\u0441\u0435\u043d",
|
||||
"\u043e\u043a\u0442",
|
||||
"\u043d\u043e\u044f",
|
||||
"\u0434\u0435\u043a"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"\u044f\u043d\u0432\u0430\u0440\u044c",
|
||||
"\u0444\u0435\u0432\u0440\u0430\u043b\u044c",
|
||||
"\u043c\u0430\u0440\u0442",
|
||||
"\u0430\u043f\u0440\u0435\u043b\u044c",
|
||||
"\u043c\u0430\u0439",
|
||||
"\u0438\u044e\u043d\u044c",
|
||||
"\u0438\u044e\u043b\u044c",
|
||||
"\u0430\u0432\u0433\u0443\u0441\u0442",
|
||||
"\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c",
|
||||
"\u043e\u043a\u0442\u044f\u0431\u0440\u044c",
|
||||
"\u043d\u043e\u044f\u0431\u0440\u044c",
|
||||
"\u0434\u0435\u043a\u0430\u0431\u0440\u044c"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "y MMMM d, EEEE",
|
||||
"longDate": "y MMMM d",
|
||||
"medium": "y MMM d HH:mm:ss",
|
||||
"mediumDate": "y MMM d",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "y-MM-dd HH:mm",
|
||||
"shortDate": "y-MM-dd",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20bd",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "\u00a0\u00a4",
|
||||
"posPre": "",
|
||||
"posSuf": "\u00a0\u00a4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "ce-ru",
|
||||
"localeID": "ce_RU",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"\u043a\u04c0\u0438\u0440\u0430\u043d\u0430\u043d \u0434\u0435",
|
||||
"\u043e\u0440\u0448\u043e\u0442\u0430\u043d \u0434\u0435",
|
||||
"\u0448\u0438\u043d\u0430\u0440\u0438\u043d \u0434\u0435",
|
||||
"\u043a\u0445\u0430\u0430\u0440\u0438\u043d \u0434\u0435",
|
||||
"\u0435\u0430\u0440\u0438\u043d \u0434\u0435",
|
||||
"\u043f\u04c0\u0435\u0440\u0430\u0441\u043a\u0430\u043d \u0434\u0435",
|
||||
"\u0448\u043e\u0442 \u0434\u0435"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"BCE",
|
||||
"CE"
|
||||
],
|
||||
"ERAS": [
|
||||
"BCE",
|
||||
"CE"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"\u044f\u043d\u0432\u0430\u0440\u044c",
|
||||
"\u0444\u0435\u0432\u0440\u0430\u043b\u044c",
|
||||
"\u043c\u0430\u0440\u0442",
|
||||
"\u0430\u043f\u0440\u0435\u043b\u044c",
|
||||
"\u043c\u0430\u0439",
|
||||
"\u0438\u044e\u043d\u044c",
|
||||
"\u0438\u044e\u043b\u044c",
|
||||
"\u0430\u0432\u0433\u0443\u0441\u0442",
|
||||
"\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c",
|
||||
"\u043e\u043a\u0442\u044f\u0431\u0440\u044c",
|
||||
"\u043d\u043e\u044f\u0431\u0440\u044c",
|
||||
"\u0434\u0435\u043a\u0430\u0431\u0440\u044c"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"\u043a\u04c0\u0438\u0440\u0430\u043d\u0430\u043d \u0434\u0435",
|
||||
"\u043e\u0440\u0448\u043e\u0442\u0430\u043d \u0434\u0435",
|
||||
"\u0448\u0438\u043d\u0430\u0440\u0438\u043d \u0434\u0435",
|
||||
"\u043a\u0445\u0430\u0430\u0440\u0438\u043d \u0434\u0435",
|
||||
"\u0435\u0430\u0440\u0438\u043d \u0434\u0435",
|
||||
"\u043f\u04c0\u0435\u0440\u0430\u0441\u043a\u0430\u043d \u0434\u0435",
|
||||
"\u0448\u043e\u0442 \u0434\u0435"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"\u044f\u043d\u0432",
|
||||
"\u0444\u0435\u0432",
|
||||
"\u043c\u0430\u0440",
|
||||
"\u0430\u043f\u0440",
|
||||
"\u043c\u0430\u0439",
|
||||
"\u0438\u044e\u043d",
|
||||
"\u0438\u044e\u043b",
|
||||
"\u0430\u0432\u0433",
|
||||
"\u0441\u0435\u043d",
|
||||
"\u043e\u043a\u0442",
|
||||
"\u043d\u043e\u044f",
|
||||
"\u0434\u0435\u043a"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"\u044f\u043d\u0432\u0430\u0440\u044c",
|
||||
"\u0444\u0435\u0432\u0440\u0430\u043b\u044c",
|
||||
"\u043c\u0430\u0440\u0442",
|
||||
"\u0430\u043f\u0440\u0435\u043b\u044c",
|
||||
"\u043c\u0430\u0439",
|
||||
"\u0438\u044e\u043d\u044c",
|
||||
"\u0438\u044e\u043b\u044c",
|
||||
"\u0430\u0432\u0433\u0443\u0441\u0442",
|
||||
"\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c",
|
||||
"\u043e\u043a\u0442\u044f\u0431\u0440\u044c",
|
||||
"\u043d\u043e\u044f\u0431\u0440\u044c",
|
||||
"\u0434\u0435\u043a\u0430\u0431\u0440\u044c"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "y MMMM d, EEEE",
|
||||
"longDate": "y MMMM d",
|
||||
"medium": "y MMM d HH:mm:ss",
|
||||
"mediumDate": "y MMM d",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "y-MM-dd HH:mm",
|
||||
"shortDate": "y-MM-dd",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20bd",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "\u00a0\u00a4",
|
||||
"posPre": "",
|
||||
"posSuf": "\u00a0\u00a4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "ce",
|
||||
"localeID": "ce",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"\u0414\u041f",
|
||||
"\u041f\u041f"
|
||||
],
|
||||
"DAY": [
|
||||
"\u043d\u0435\u0434\u0463\u0301\u043b\u0467",
|
||||
"\u043f\u043e\u043d\u0435\u0434\u0463\u0301\u043b\u044c\u043d\u0438\u043a\u044a",
|
||||
"\u0432\u0442\u043e\u0301\u0440\u043d\u0438\u043a\u044a",
|
||||
"\u0441\u0440\u0435\u0434\u0430\u0300",
|
||||
"\u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0301\u043a\u044a",
|
||||
"\u043f\u0467\u0442\u043e\u0301\u043a\u044a",
|
||||
"\u0441\ua64b\u0431\u0431\u0461\u0301\u0442\u0430"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"\u043f\u0440\u0435\u0301\u0434\u044a \u0440.\u00a0\u0445.",
|
||||
"\u043f\u043e \u0440.\u00a0\u0445."
|
||||
],
|
||||
"ERAS": [
|
||||
"\u043f\u0440\u0435\u0301\u0434\u044a \u0440.\u00a0\u0445.",
|
||||
"\u043f\u043e \u0440.\u00a0\u0445."
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"\u0456\u0486\u0430\u043d\u043d\ua64b\u0430\u0301\u0440\u0457\u0430",
|
||||
"\u0444\u0435\u0432\u0440\ua64b\u0430\u0301\u0440\u0457\u0430",
|
||||
"\u043c\u0430\u0301\u0440\u0442\u0430",
|
||||
"\u0430\u0486\u043f\u0440\u0456\u0301\u043b\u043b\u0457\u0430",
|
||||
"\u043c\u0430\u0301\u0457\u0430",
|
||||
"\u0456\u0486\ua64b\u0301\u043d\u0457\u0430",
|
||||
"\u0456\u0486\ua64b\u0301\u043b\u0457\u0430",
|
||||
"\u0430\u0486\u0301\u0475\u0433\ua64b\u0441\u0442\u0430",
|
||||
"\u0441\u0435\u043f\u0442\u0435\u0301\u043c\u0432\u0440\u0457\u0430",
|
||||
"\u047b\u0486\u043a\u0442\u0461\u0301\u0432\u0440\u0457\u0430",
|
||||
"\u043d\u043e\u0435\u0301\u043c\u0432\u0440\u0457\u0430",
|
||||
"\u0434\u0435\u043a\u0435\u0301\u043c\u0432\u0440\u0457\u0430"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"\u043d\u0434\u2de7\u0487\u0467",
|
||||
"\u043f\u043d\u2de3\u0435",
|
||||
"\u0432\u0442\u043e\u2dec\u0487",
|
||||
"\u0441\u0440\u2de3\u0435",
|
||||
"\u0447\u0435\u2de6\u0487",
|
||||
"\u043f\u0467\u2de6\u0487",
|
||||
"\u0441\ua64b\u2de0\u0487"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"\u0456\u0486\u0430\u2de9\u0487",
|
||||
"\u0444\u0435\u2de1\u0487",
|
||||
"\u043c\u0430\u2dec\u0487",
|
||||
"\u0430\u0486\u043f\u2dec\u0487",
|
||||
"\u043c\u0430\ua675",
|
||||
"\u0456\u0486\ua64b\u2de9\u0487",
|
||||
"\u0456\u0486\ua64b\u2de7\u0487",
|
||||
"\u0430\u0486\u0301\u0475\u2de2\u0487",
|
||||
"\u0441\u0435\u2deb\u0487",
|
||||
"\u047b\u0486\u043a\u2dee",
|
||||
"\u043d\u043e\u0435\u2de8",
|
||||
"\u0434\u0435\u2de6\u0487"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"\u0456\u0486\u0430\u043d\u043d\ua64b\u0430\u0301\u0440\u0457\u0439",
|
||||
"\u0444\u0435\u0432\u0440\ua64b\u0430\u0301\u0440\u0457\u0439",
|
||||
"\u043c\u0430\u0301\u0440\u0442\u044a",
|
||||
"\u0430\u0486\u043f\u0440\u0456\u0301\u043b\u043b\u0457\u0439",
|
||||
"\u043c\u0430\u0301\u0457\u0439",
|
||||
"\u0456\u0486\ua64b\u0301\u043d\u0457\u0439",
|
||||
"\u0456\u0486\ua64b\u0301\u043b\u0457\u0439",
|
||||
"\u0430\u0486\u0301\u0475\u0433\ua64b\u0441\u0442\u044a",
|
||||
"\u0441\u0435\u043f\u0442\u0435\u0301\u043c\u0432\u0440\u0457\u0439",
|
||||
"\u047b\u0486\u043a\u0442\u0461\u0301\u0432\u0440\u0457\u0439",
|
||||
"\u043d\u043e\u0435\u0301\u043c\u0432\u0440\u0457\u0439",
|
||||
"\u0434\u0435\u043a\u0435\u0301\u043c\u0432\u0440\u0457\u0439"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM '\u043b'. y.",
|
||||
"longDate": "y MMMM d",
|
||||
"medium": "y MMM d HH:mm:ss",
|
||||
"mediumDate": "y MMM d",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "y.MM.dd HH:mm",
|
||||
"shortDate": "y.MM.dd",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20bd",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": "\u00a0",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "\u00a0\u00a4",
|
||||
"posPre": "",
|
||||
"posSuf": "\u00a0\u00a4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "cu-ru",
|
||||
"localeID": "cu_RU",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"\u0414\u041f",
|
||||
"\u041f\u041f"
|
||||
],
|
||||
"DAY": [
|
||||
"\u043d\u0435\u0434\u0463\u0301\u043b\u0467",
|
||||
"\u043f\u043e\u043d\u0435\u0434\u0463\u0301\u043b\u044c\u043d\u0438\u043a\u044a",
|
||||
"\u0432\u0442\u043e\u0301\u0440\u043d\u0438\u043a\u044a",
|
||||
"\u0441\u0440\u0435\u0434\u0430\u0300",
|
||||
"\u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0301\u043a\u044a",
|
||||
"\u043f\u0467\u0442\u043e\u0301\u043a\u044a",
|
||||
"\u0441\ua64b\u0431\u0431\u0461\u0301\u0442\u0430"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"\u043f\u0440\u0435\u0301\u0434\u044a \u0440.\u00a0\u0445.",
|
||||
"\u043f\u043e \u0440.\u00a0\u0445."
|
||||
],
|
||||
"ERAS": [
|
||||
"\u043f\u0440\u0435\u0301\u0434\u044a \u0440.\u00a0\u0445.",
|
||||
"\u043f\u043e \u0440.\u00a0\u0445."
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"\u0456\u0486\u0430\u043d\u043d\ua64b\u0430\u0301\u0440\u0457\u0430",
|
||||
"\u0444\u0435\u0432\u0440\ua64b\u0430\u0301\u0440\u0457\u0430",
|
||||
"\u043c\u0430\u0301\u0440\u0442\u0430",
|
||||
"\u0430\u0486\u043f\u0440\u0456\u0301\u043b\u043b\u0457\u0430",
|
||||
"\u043c\u0430\u0301\u0457\u0430",
|
||||
"\u0456\u0486\ua64b\u0301\u043d\u0457\u0430",
|
||||
"\u0456\u0486\ua64b\u0301\u043b\u0457\u0430",
|
||||
"\u0430\u0486\u0301\u0475\u0433\ua64b\u0441\u0442\u0430",
|
||||
"\u0441\u0435\u043f\u0442\u0435\u0301\u043c\u0432\u0440\u0457\u0430",
|
||||
"\u047b\u0486\u043a\u0442\u0461\u0301\u0432\u0440\u0457\u0430",
|
||||
"\u043d\u043e\u0435\u0301\u043c\u0432\u0440\u0457\u0430",
|
||||
"\u0434\u0435\u043a\u0435\u0301\u043c\u0432\u0440\u0457\u0430"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"\u043d\u0434\u2de7\u0487\u0467",
|
||||
"\u043f\u043d\u2de3\u0435",
|
||||
"\u0432\u0442\u043e\u2dec\u0487",
|
||||
"\u0441\u0440\u2de3\u0435",
|
||||
"\u0447\u0435\u2de6\u0487",
|
||||
"\u043f\u0467\u2de6\u0487",
|
||||
"\u0441\ua64b\u2de0\u0487"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"\u0456\u0486\u0430\u2de9\u0487",
|
||||
"\u0444\u0435\u2de1\u0487",
|
||||
"\u043c\u0430\u2dec\u0487",
|
||||
"\u0430\u0486\u043f\u2dec\u0487",
|
||||
"\u043c\u0430\ua675",
|
||||
"\u0456\u0486\ua64b\u2de9\u0487",
|
||||
"\u0456\u0486\ua64b\u2de7\u0487",
|
||||
"\u0430\u0486\u0301\u0475\u2de2\u0487",
|
||||
"\u0441\u0435\u2deb\u0487",
|
||||
"\u047b\u0486\u043a\u2dee",
|
||||
"\u043d\u043e\u0435\u2de8",
|
||||
"\u0434\u0435\u2de6\u0487"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"\u0456\u0486\u0430\u043d\u043d\ua64b\u0430\u0301\u0440\u0457\u0439",
|
||||
"\u0444\u0435\u0432\u0440\ua64b\u0430\u0301\u0440\u0457\u0439",
|
||||
"\u043c\u0430\u0301\u0440\u0442\u044a",
|
||||
"\u0430\u0486\u043f\u0440\u0456\u0301\u043b\u043b\u0457\u0439",
|
||||
"\u043c\u0430\u0301\u0457\u0439",
|
||||
"\u0456\u0486\ua64b\u0301\u043d\u0457\u0439",
|
||||
"\u0456\u0486\ua64b\u0301\u043b\u0457\u0439",
|
||||
"\u0430\u0486\u0301\u0475\u0433\ua64b\u0441\u0442\u044a",
|
||||
"\u0441\u0435\u043f\u0442\u0435\u0301\u043c\u0432\u0440\u0457\u0439",
|
||||
"\u047b\u0486\u043a\u0442\u0461\u0301\u0432\u0440\u0457\u0439",
|
||||
"\u043d\u043e\u0435\u0301\u043c\u0432\u0440\u0457\u0439",
|
||||
"\u0434\u0435\u043a\u0435\u0301\u043c\u0432\u0440\u0457\u0439"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM '\u043b'. y.",
|
||||
"longDate": "y MMMM d",
|
||||
"medium": "y MMM d HH:mm:ss",
|
||||
"mediumDate": "y MMM d",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "y.MM.dd HH:mm",
|
||||
"shortDate": "y.MM.dd",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20bd",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": "\u00a0",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "\u00a0\u00a4",
|
||||
"posPre": "",
|
||||
"posSuf": "\u00a0\u00a4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "cu",
|
||||
"localeID": "cu",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Before Christ",
|
||||
"Anno Domini"
|
||||
],
|
||||
"ERAS": [
|
||||
"BC",
|
||||
"AD"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "d MMM y HH:mm:ss",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "dd/MM/y HH:mm",
|
||||
"shortDate": "dd/MM/y",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20ac",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": ".",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4\u00a0",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "en-at",
|
||||
"localeID": "en_AT",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Before Christ",
|
||||
"Anno Domini"
|
||||
],
|
||||
"ERAS": [
|
||||
"BC",
|
||||
"AD"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, MMMM d, y",
|
||||
"longDate": "MMMM d, y",
|
||||
"medium": "MMM d, y h:mm:ss a",
|
||||
"mediumDate": "MMM d, y",
|
||||
"mediumTime": "h:mm:ss a",
|
||||
"short": "M/d/yy h:mm a",
|
||||
"shortDate": "M/d/yy",
|
||||
"shortTime": "h:mm a"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "FBu",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "en-bi",
|
||||
"localeID": "en_BI",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Before Christ",
|
||||
"Anno Domini"
|
||||
],
|
||||
"ERAS": [
|
||||
"BC",
|
||||
"AD"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "d MMM y HH:mm:ss",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "dd/MM/y HH:mm",
|
||||
"shortDate": "dd/MM/y",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "CHF",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": ".",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "\u00a4-",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "en-ch",
|
||||
"localeID": "en_CH",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Before Christ",
|
||||
"Anno Domini"
|
||||
],
|
||||
"ERAS": [
|
||||
"BC",
|
||||
"AD"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "d MMM y h:mm:ss a",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "h:mm:ss a",
|
||||
"short": "dd/MM/y h:mm a",
|
||||
"shortDate": "dd/MM/y",
|
||||
"shortTime": "h:mm a"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20ac",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "en-cy",
|
||||
"localeID": "en_CY",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Before Christ",
|
||||
"Anno Domini"
|
||||
],
|
||||
"ERAS": [
|
||||
"BC",
|
||||
"AD"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "d MMM y HH:mm:ss",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "dd/MM/y HH:mm",
|
||||
"shortDate": "dd/MM/y",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20ac",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": ".",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "\u00a0\u00a4",
|
||||
"posPre": "",
|
||||
"posSuf": "\u00a0\u00a4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "en-de",
|
||||
"localeID": "en_DE",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Before Christ",
|
||||
"Anno Domini"
|
||||
],
|
||||
"ERAS": [
|
||||
"BC",
|
||||
"AD"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "d MMM y HH.mm.ss",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "HH.mm.ss",
|
||||
"short": "dd/MM/y HH.mm",
|
||||
"shortDate": "dd/MM/y",
|
||||
"shortTime": "HH.mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "kr.",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": ".",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "\u00a0\u00a4",
|
||||
"posPre": "",
|
||||
"posSuf": "\u00a0\u00a4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "en-dk",
|
||||
"localeID": "en_DK",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Before Christ",
|
||||
"Anno Domini"
|
||||
],
|
||||
"ERAS": [
|
||||
"BC",
|
||||
"AD"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "d MMM y H.mm.ss",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "H.mm.ss",
|
||||
"short": "dd/MM/y H.mm",
|
||||
"shortDate": "dd/MM/y",
|
||||
"shortTime": "H.mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20ac",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": "\u00a0",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "\u00a0\u00a4",
|
||||
"posPre": "",
|
||||
"posSuf": "\u00a0\u00a4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "en-fi",
|
||||
"localeID": "en_FI",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Before Christ",
|
||||
"Anno Domini"
|
||||
],
|
||||
"ERAS": [
|
||||
"BC",
|
||||
"AD"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 6,
|
||||
"MONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
4,
|
||||
5
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "d MMM y H:mm:ss",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "H:mm:ss",
|
||||
"short": "dd/MM/y H:mm",
|
||||
"shortDate": "dd/MM/y",
|
||||
"shortTime": "H:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20aa",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "en-il",
|
||||
"localeID": "en_IL",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Before Christ",
|
||||
"Anno Domini"
|
||||
],
|
||||
"ERAS": [
|
||||
"BC",
|
||||
"AD"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "d MMM y HH:mm:ss",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "dd/MM/y HH:mm",
|
||||
"shortDate": "dd/MM/y",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20ac",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": ".",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "\u00a4\u00a0-",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "en-nl",
|
||||
"localeID": "en_NL",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Before Christ",
|
||||
"Anno Domini"
|
||||
],
|
||||
"ERAS": [
|
||||
"BC",
|
||||
"AD"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "d MMM y HH:mm:ss",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "y-MM-dd HH:mm",
|
||||
"shortDate": "y-MM-dd",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "kr",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": "\u00a0",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "\u00a0\u00a4",
|
||||
"posPre": "",
|
||||
"posSuf": "\u00a0\u00a4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "en-se",
|
||||
"localeID": "en_SE",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Before Christ",
|
||||
"Anno Domini"
|
||||
],
|
||||
"ERAS": [
|
||||
"BC",
|
||||
"AD"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mar",
|
||||
"Apr",
|
||||
"May",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Aug",
|
||||
"Sep",
|
||||
"Oct",
|
||||
"Nov",
|
||||
"Dec"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "d MMM y HH:mm:ss",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "dd/MM/y HH:mm",
|
||||
"shortDate": "dd/MM/y",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20ac",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": ".",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "(",
|
||||
"negSuf": "\u00a0\u00a4)",
|
||||
"posPre": "",
|
||||
"posSuf": "\u00a0\u00a4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "en-si",
|
||||
"localeID": "en_SI",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"[\u00c5\u1e40 one]",
|
||||
"[\u00de\u1e40 one]"
|
||||
],
|
||||
"DAY": [
|
||||
"[\u0160\u00fb\u00f1\u00f0\u00e5\u00fd one]",
|
||||
"[\u1e40\u00f6\u00f1\u00f0\u00e5\u00fd one]",
|
||||
"[\u0162\u00fb\u00e9\u0161\u00f0\u00e5\u00fd one]",
|
||||
"[\u0174\u00e9\u00f0\u00f1\u00e9\u0161\u00f0\u00e5\u00fd one two]",
|
||||
"[\u0162\u0125\u00fb\u0155\u0161\u00f0\u00e5\u00fd one]",
|
||||
"[\u0191\u0155\u00ee\u00f0\u00e5\u00fd one]",
|
||||
"[\u0160\u00e5\u0163\u00fb\u0155\u00f0\u00e5\u00fd one]"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"[\u0181\u00e9\u0192\u00f6\u0155\u00e9\u2003\u00c7\u0125\u0155\u00ee\u0161\u0163 one two]",
|
||||
"[\u00c5\u00f1\u00f1\u00f6\u2003\u00d0\u00f6\u0271\u00ee\u00f1\u00ee one two]"
|
||||
],
|
||||
"ERAS": [
|
||||
"[\u0181\u00c7 one]",
|
||||
"[\u00c5\u00d0 one]"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"[\u0134\u00e5\u00f1\u00fb\u00e5\u0155\u00fd one]",
|
||||
"[\u0191\u00e9\u0180\u0155\u00fb\u00e5\u0155\u00fd one]",
|
||||
"[\u1e40\u00e5\u0155\u00e7\u0125 one]",
|
||||
"[\u00c5\u00fe\u0155\u00ee\u013c one]",
|
||||
"[\u1e40\u00e5\u00fd one]",
|
||||
"[\u0134\u00fb\u00f1\u00e9 one]",
|
||||
"[\u0134\u00fb\u013c\u00fd one]",
|
||||
"[\u00c5\u00fb\u011d\u00fb\u0161\u0163 one]",
|
||||
"[\u0160\u00e9\u00fe\u0163\u00e9\u0271\u0180\u00e9\u0155 one two]",
|
||||
"[\u00d6\u00e7\u0163\u00f6\u0180\u00e9\u0155 one]",
|
||||
"[\u00d1\u00f6\u1e7d\u00e9\u0271\u0180\u00e9\u0155 one]",
|
||||
"[\u00d0\u00e9\u00e7\u00e9\u0271\u0180\u00e9\u0155 one]"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"[\u0160\u00fb\u00f1 one]",
|
||||
"[\u1e40\u00f6\u00f1 one]",
|
||||
"[\u0162\u00fb\u00e9 one]",
|
||||
"[\u0174\u00e9\u00f0 one]",
|
||||
"[\u0162\u0125\u00fb one]",
|
||||
"[\u0191\u0155\u00ee one]",
|
||||
"[\u0160\u00e5\u0163 one]"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"[\u0134\u00e5\u00f1 one]",
|
||||
"[\u0191\u00e9\u0180 one]",
|
||||
"[\u1e40\u00e5\u0155 one]",
|
||||
"[\u00c5\u00fe\u0155 one]",
|
||||
"[\u1e40\u00e5\u00fd one]",
|
||||
"[\u0134\u00fb\u00f1 one]",
|
||||
"[\u0134\u00fb\u013c one]",
|
||||
"[\u00c5\u00fb\u011d one]",
|
||||
"[\u0160\u00e9\u00fe one]",
|
||||
"[\u00d6\u00e7\u0163 one]",
|
||||
"[\u00d1\u00f6\u1e7d one]",
|
||||
"[\u00d0\u00e9\u00e7 one]"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"[\u0134\u00e5\u00f1\u00fb\u00e5\u0155\u00fd one]",
|
||||
"[\u0191\u00e9\u0180\u0155\u00fb\u00e5\u0155\u00fd one]",
|
||||
"[\u1e40\u00e5\u0155\u00e7\u0125 one]",
|
||||
"[\u00c5\u00fe\u0155\u00ee\u013c one]",
|
||||
"[\u1e40\u00e5\u00fd one]",
|
||||
"[\u0134\u00fb\u00f1\u00e9 one]",
|
||||
"[\u0134\u00fb\u013c\u00fd one]",
|
||||
"[\u00c5\u00fb\u011d\u00fb\u0161\u0163 one]",
|
||||
"[\u0160\u00e9\u00fe\u0163\u00e9\u0271\u0180\u00e9\u0155 one two]",
|
||||
"[\u00d6\u00e7\u0163\u00f6\u0180\u00e9\u0155 one]",
|
||||
"[\u00d1\u00f6\u1e7d\u00e9\u0271\u0180\u00e9\u0155 one]",
|
||||
"[\u00d0\u00e9\u00e7\u00e9\u0271\u0180\u00e9\u0155 one]"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "[EEEE, MMMM d, y]",
|
||||
"longDate": "[MMMM d, y]",
|
||||
"medium": "[MMM d, y] [h:mm:ss a]",
|
||||
"mediumDate": "[MMM d, y]",
|
||||
"mediumTime": "[h:mm:ss a]",
|
||||
"short": "[M/d/yy] [h:mm a]",
|
||||
"shortDate": "[M/d/yy]",
|
||||
"shortTime": "[h:mm a]"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "$",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "en-xa",
|
||||
"localeID": "en_XA",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,125 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"a.m.",
|
||||
"p.m."
|
||||
],
|
||||
"DAY": [
|
||||
"domingo",
|
||||
"lunes",
|
||||
"martes",
|
||||
"mi\u00e9rcoles",
|
||||
"jueves",
|
||||
"viernes",
|
||||
"s\u00e1bado"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"antes de Cristo",
|
||||
"despu\u00e9s de Cristo"
|
||||
],
|
||||
"ERAS": [
|
||||
"a. C.",
|
||||
"d. C."
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 6,
|
||||
"MONTH": [
|
||||
"enero",
|
||||
"febrero",
|
||||
"marzo",
|
||||
"abril",
|
||||
"mayo",
|
||||
"junio",
|
||||
"julio",
|
||||
"agosto",
|
||||
"septiembre",
|
||||
"octubre",
|
||||
"noviembre",
|
||||
"diciembre"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"dom.",
|
||||
"lun.",
|
||||
"mar.",
|
||||
"mi\u00e9.",
|
||||
"jue.",
|
||||
"vie.",
|
||||
"s\u00e1b."
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"ene.",
|
||||
"feb.",
|
||||
"mar.",
|
||||
"abr.",
|
||||
"may.",
|
||||
"jun.",
|
||||
"jul.",
|
||||
"ago.",
|
||||
"sep.",
|
||||
"oct.",
|
||||
"nov.",
|
||||
"dic."
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"enero",
|
||||
"febrero",
|
||||
"marzo",
|
||||
"abril",
|
||||
"mayo",
|
||||
"junio",
|
||||
"julio",
|
||||
"agosto",
|
||||
"septiembre",
|
||||
"octubre",
|
||||
"noviembre",
|
||||
"diciembre"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d 'de' MMMM 'de' y",
|
||||
"longDate": "d 'de' MMMM 'de' y",
|
||||
"medium": "d MMM y HH:mm:ss",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "d/M/yy HH:mm",
|
||||
"shortDate": "d/M/yy",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "R$",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "es-br",
|
||||
"localeID": "es_BR",
|
||||
"pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"sunnudagur",
|
||||
"m\u00e1nadagur",
|
||||
"t\u00fdsdagur",
|
||||
"mikudagur",
|
||||
"h\u00f3sdagur",
|
||||
"fr\u00edggjadagur",
|
||||
"leygardagur"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"fyri Krist",
|
||||
"eftir Krist"
|
||||
],
|
||||
"ERAS": [
|
||||
"f.Kr.",
|
||||
"e.Kr."
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"januar",
|
||||
"februar",
|
||||
"mars",
|
||||
"apr\u00edl",
|
||||
"mai",
|
||||
"juni",
|
||||
"juli",
|
||||
"august",
|
||||
"september",
|
||||
"oktober",
|
||||
"november",
|
||||
"desember"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"sun.",
|
||||
"m\u00e1n.",
|
||||
"t\u00fds.",
|
||||
"mik.",
|
||||
"h\u00f3s.",
|
||||
"fr\u00ed.",
|
||||
"ley."
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"jan.",
|
||||
"feb.",
|
||||
"mar.",
|
||||
"apr.",
|
||||
"mai",
|
||||
"jun.",
|
||||
"jul.",
|
||||
"aug.",
|
||||
"sep.",
|
||||
"okt.",
|
||||
"nov.",
|
||||
"des."
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"januar",
|
||||
"februar",
|
||||
"mars",
|
||||
"apr\u00edl",
|
||||
"mai",
|
||||
"juni",
|
||||
"juli",
|
||||
"august",
|
||||
"september",
|
||||
"oktober",
|
||||
"november",
|
||||
"desember"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d. MMMM y",
|
||||
"longDate": "d. MMMM y",
|
||||
"medium": "dd.MM.y HH:mm:ss",
|
||||
"mediumDate": "dd.MM.y",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "dd.MM.yy HH:mm",
|
||||
"shortDate": "dd.MM.yy",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "kr.",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": ".",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "\u00a0\u00a4",
|
||||
"posPre": "",
|
||||
"posSuf": "\u00a0\u00a4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "fo-dk",
|
||||
"localeID": "fo_DK",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Lahadi",
|
||||
"Litinin",
|
||||
"Talata",
|
||||
"Laraba",
|
||||
"Alhamis",
|
||||
"Jumma\u02bca",
|
||||
"Asabar"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Kafin haihuwar annab",
|
||||
"Bayan haihuwar annab"
|
||||
],
|
||||
"ERAS": [
|
||||
"KHAI",
|
||||
"BHAI"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"Janairu",
|
||||
"Faburairu",
|
||||
"Maris",
|
||||
"Afirilu",
|
||||
"Mayu",
|
||||
"Yuni",
|
||||
"Yuli",
|
||||
"Agusta",
|
||||
"Satumba",
|
||||
"Oktoba",
|
||||
"Nuwamba",
|
||||
"Disamba"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Lh",
|
||||
"Li",
|
||||
"Ta",
|
||||
"Lr",
|
||||
"Al",
|
||||
"Ju",
|
||||
"As"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Fab",
|
||||
"Mar",
|
||||
"Afi",
|
||||
"May",
|
||||
"Yun",
|
||||
"Yul",
|
||||
"Agu",
|
||||
"Sat",
|
||||
"Okt",
|
||||
"Nuw",
|
||||
"Dis"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"Janairu",
|
||||
"Faburairu",
|
||||
"Maris",
|
||||
"Afirilu",
|
||||
"Mayu",
|
||||
"Yuni",
|
||||
"Yuli",
|
||||
"Agusta",
|
||||
"Satumba",
|
||||
"Oktoba",
|
||||
"Nuwamba",
|
||||
"Disamba"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM, y",
|
||||
"longDate": "d MMMM, y",
|
||||
"medium": "d MMM, y h:mm:ss a",
|
||||
"mediumDate": "d MMM, y",
|
||||
"mediumTime": "h:mm:ss a",
|
||||
"short": "d/M/yy h:mm a",
|
||||
"shortDate": "d/M/yy",
|
||||
"shortTime": "h:mm a"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "GHS",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4\u00a0",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "ha-gh",
|
||||
"localeID": "ha_GH",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Lahadi",
|
||||
"Litinin",
|
||||
"Talata",
|
||||
"Laraba",
|
||||
"Alhamis",
|
||||
"Jumma\u02bca",
|
||||
"Asabar"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Kafin haihuwar annab",
|
||||
"Bayan haihuwar annab"
|
||||
],
|
||||
"ERAS": [
|
||||
"KHAI",
|
||||
"BHAI"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"Janairu",
|
||||
"Faburairu",
|
||||
"Maris",
|
||||
"Afirilu",
|
||||
"Mayu",
|
||||
"Yuni",
|
||||
"Yuli",
|
||||
"Agusta",
|
||||
"Satumba",
|
||||
"Oktoba",
|
||||
"Nuwamba",
|
||||
"Disamba"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Lh",
|
||||
"Li",
|
||||
"Ta",
|
||||
"Lr",
|
||||
"Al",
|
||||
"Ju",
|
||||
"As"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Fab",
|
||||
"Mar",
|
||||
"Afi",
|
||||
"May",
|
||||
"Yun",
|
||||
"Yul",
|
||||
"Agu",
|
||||
"Sat",
|
||||
"Okt",
|
||||
"Nuw",
|
||||
"Dis"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"Janairu",
|
||||
"Faburairu",
|
||||
"Maris",
|
||||
"Afirilu",
|
||||
"Mayu",
|
||||
"Yuni",
|
||||
"Yuli",
|
||||
"Agusta",
|
||||
"Satumba",
|
||||
"Oktoba",
|
||||
"Nuwamba",
|
||||
"Disamba"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM, y",
|
||||
"longDate": "d MMMM, y",
|
||||
"medium": "d MMM, y HH:mm:ss",
|
||||
"mediumDate": "d MMM, y",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "d/M/yy HH:mm",
|
||||
"shortDate": "d/M/yy",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "CFA",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4\u00a0",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "ha-ne",
|
||||
"localeID": "ha_NE",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Lahadi",
|
||||
"Litinin",
|
||||
"Talata",
|
||||
"Laraba",
|
||||
"Alhamis",
|
||||
"Jumma\u02bca",
|
||||
"Asabar"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"Kafin haihuwar annab",
|
||||
"Bayan haihuwar annab"
|
||||
],
|
||||
"ERAS": [
|
||||
"KHAI",
|
||||
"BHAI"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"Janairu",
|
||||
"Faburairu",
|
||||
"Maris",
|
||||
"Afirilu",
|
||||
"Mayu",
|
||||
"Yuni",
|
||||
"Yuli",
|
||||
"Agusta",
|
||||
"Satumba",
|
||||
"Oktoba",
|
||||
"Nuwamba",
|
||||
"Disamba"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Lh",
|
||||
"Li",
|
||||
"Ta",
|
||||
"Lr",
|
||||
"Al",
|
||||
"Ju",
|
||||
"As"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Fab",
|
||||
"Mar",
|
||||
"Afi",
|
||||
"May",
|
||||
"Yun",
|
||||
"Yul",
|
||||
"Agu",
|
||||
"Sat",
|
||||
"Okt",
|
||||
"Nuw",
|
||||
"Dis"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"Janairu",
|
||||
"Faburairu",
|
||||
"Maris",
|
||||
"Afirilu",
|
||||
"Mayu",
|
||||
"Yuni",
|
||||
"Yuli",
|
||||
"Agusta",
|
||||
"Satumba",
|
||||
"Oktoba",
|
||||
"Nuwamba",
|
||||
"Disamba"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM, y",
|
||||
"longDate": "d MMMM, y",
|
||||
"medium": "d MMM, y h:mm:ss a",
|
||||
"mediumDate": "d MMM, y",
|
||||
"mediumTime": "h:mm:ss a",
|
||||
"short": "d/M/yy h:mm a",
|
||||
"shortDate": "d/M/yy",
|
||||
"shortTime": "h:mm a"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20a6",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4\u00a0",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "ha-ng",
|
||||
"localeID": "ha_NG",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,125 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"\u0442\u0430\u04a3\u0493\u044b",
|
||||
"\u0442\u04af\u0441\u043a\u0456/\u043a\u0435\u0448\u043a\u0456"
|
||||
],
|
||||
"DAY": [
|
||||
"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456",
|
||||
"\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456",
|
||||
"\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456",
|
||||
"\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456",
|
||||
"\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456",
|
||||
"\u0436\u04b1\u043c\u0430",
|
||||
"\u0441\u0435\u043d\u0431\u0456"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"\u0411\u0456\u0437\u0434\u0456\u04a3 \u0437\u0430\u043c\u0430\u043d\u044b\u043c\u044b\u0437\u0493\u0430 \u0434\u0435\u0439\u0456\u043d",
|
||||
"\u0411\u0456\u0437\u0434\u0456\u04a3 \u0437\u0430\u043c\u0430\u043d\u044b\u043c\u044b\u0437"
|
||||
],
|
||||
"ERAS": [
|
||||
"\u0431.\u0437.\u0434.",
|
||||
"\u0431.\u0437."
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"\u049b\u0430\u04a3\u0442\u0430\u0440",
|
||||
"\u0430\u049b\u043f\u0430\u043d",
|
||||
"\u043d\u0430\u0443\u0440\u044b\u0437",
|
||||
"\u0441\u04d9\u0443\u0456\u0440",
|
||||
"\u043c\u0430\u043c\u044b\u0440",
|
||||
"\u043c\u0430\u0443\u0441\u044b\u043c",
|
||||
"\u0448\u0456\u043b\u0434\u0435",
|
||||
"\u0442\u0430\u043c\u044b\u0437",
|
||||
"\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a",
|
||||
"\u049b\u0430\u0437\u0430\u043d",
|
||||
"\u049b\u0430\u0440\u0430\u0448\u0430",
|
||||
"\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"\u0416\u0441",
|
||||
"\u0414\u0441",
|
||||
"\u0421\u0441",
|
||||
"\u0421\u0440",
|
||||
"\u0411\u0441",
|
||||
"\u0416\u043c",
|
||||
"\u0421\u0431"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"\u049b\u0430\u04a3.",
|
||||
"\u0430\u049b\u043f.",
|
||||
"\u043d\u0430\u0443.",
|
||||
"\u0441\u04d9\u0443.",
|
||||
"\u043c\u0430\u043c.",
|
||||
"\u043c\u0430\u0443.",
|
||||
"\u0448\u0456\u043b.",
|
||||
"\u0442\u0430\u043c.",
|
||||
"\u049b\u044b\u0440.",
|
||||
"\u049b\u0430\u0437.",
|
||||
"\u049b\u0430\u0440.",
|
||||
"\u0436\u0435\u043b."
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"\u049a\u0430\u04a3\u0442\u0430\u0440",
|
||||
"\u0410\u049b\u043f\u0430\u043d",
|
||||
"\u041d\u0430\u0443\u0440\u044b\u0437",
|
||||
"\u0421\u04d9\u0443\u0456\u0440",
|
||||
"\u041c\u0430\u043c\u044b\u0440",
|
||||
"\u041c\u0430\u0443\u0441\u044b\u043c",
|
||||
"\u0428\u0456\u043b\u0434\u0435",
|
||||
"\u0422\u0430\u043c\u044b\u0437",
|
||||
"\u049a\u044b\u0440\u043a\u04af\u0439\u0435\u043a",
|
||||
"\u049a\u0430\u0437\u0430\u043d",
|
||||
"\u049a\u0430\u0440\u0430\u0448\u0430",
|
||||
"\u0416\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "y '\u0436'. d MMMM, EEEE",
|
||||
"longDate": "y '\u0436'. d MMMM",
|
||||
"medium": "y '\u0436'. dd MMM HH:mm:ss",
|
||||
"mediumDate": "y '\u0436'. dd MMM",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "dd.MM.yy HH:mm",
|
||||
"shortDate": "dd.MM.yy",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20b8",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": "\u00a0",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "\u00a0\u00a4",
|
||||
"posPre": "",
|
||||
"posSuf": "\u00a0\u00a4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "kk-kz",
|
||||
"localeID": "kk_KZ",
|
||||
"pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"\u0627\u064e\u062a\u06be\u0648\u0627\u0631",
|
||||
"\u0698\u0654\u0646\u065b\u062f\u0631\u0655\u0631\u0648\u0627\u0631",
|
||||
"\u0628\u0648\u065a\u0645\u0648\u0627\u0631",
|
||||
"\u0628\u0648\u062f\u0648\u0627\u0631",
|
||||
"\u0628\u0631\u065b\u066e\u06ea\u0633\u0648\u0627\u0631",
|
||||
"\u062c\u064f\u0645\u06c1",
|
||||
"\u0628\u0679\u0648\u0627\u0631"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"\u0642\u0628\u0655\u0644 \u0645\u0633\u06cc\u0656\u062d",
|
||||
"\u0639\u06cc\u0656\u0633\u0648\u06cc \u0633\u0646\u06c1\u0655"
|
||||
],
|
||||
"ERAS": [
|
||||
"\u0628\u06cc \u0633\u06cc",
|
||||
"\u0627\u06d2 \u0688\u06cc"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 6,
|
||||
"MONTH": [
|
||||
"\u062c\u0646\u0624\u0631\u06cc",
|
||||
"\u0641\u0631\u0624\u0631\u06cc",
|
||||
"\u0645\u0627\u0631\u0655\u0686",
|
||||
"\u0627\u067e\u0631\u06cc\u0644",
|
||||
"\u0645\u06cc\u0654",
|
||||
"\u062c\u0648\u0657\u0646",
|
||||
"\u062c\u0648\u0657\u0644\u0627\u06cc\u06cc",
|
||||
"\u0627\u06af\u0633\u062a",
|
||||
"\u0633\u062a\u0645\u0628\u0631",
|
||||
"\u0627\u06a9\u062a\u0648\u0657\u0628\u0631",
|
||||
"\u0646\u0648\u0645\u0628\u0631",
|
||||
"\u062f\u0633\u0645\u0628\u0631"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"\u0622\u062a\u06be\u0648\u0627\u0631",
|
||||
"\u0698\u0654\u0646\u065b\u062f\u0655\u0631\u0648\u0627\u0631",
|
||||
"\u0628\u0648\u065a\u0645\u0648\u0627\u0631",
|
||||
"\u0628\u0648\u062f\u0648\u0627\u0631",
|
||||
"\u0628\u0631\u065b\u066e\u06ea\u0633\u0648\u0627\u0631",
|
||||
"\u062c\u064f\u0645\u06c1",
|
||||
"\u0628\u0679\u0648\u0627\u0631"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"\u062c\u0646\u0624\u0631\u06cc",
|
||||
"\u0641\u0631\u0624\u0631\u06cc",
|
||||
"\u0645\u0627\u0631\u0655\u0686",
|
||||
"\u0627\u067e\u0631\u06cc\u0644",
|
||||
"\u0645\u06cc\u0654",
|
||||
"\u062c\u0648\u0657\u0646",
|
||||
"\u062c\u0648\u0657\u0644\u0627\u06cc\u06cc",
|
||||
"\u0627\u06af\u0633\u062a",
|
||||
"\u0633\u062a\u0645\u0628\u0631",
|
||||
"\u0627\u06a9\u062a\u0648\u0657\u0628\u0631",
|
||||
"\u0646\u0648\u0645\u0628\u0631",
|
||||
"\u062f\u0633\u0645\u0628\u0631"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"\u062c\u0646\u0624\u0631\u06cc",
|
||||
"\u0641\u0631\u0624\u0631\u06cc",
|
||||
"\u0645\u0627\u0631\u0655\u0686",
|
||||
"\u0627\u067e\u0631\u06cc\u0644",
|
||||
"\u0645\u06cc\u0654",
|
||||
"\u062c\u0648\u0657\u0646",
|
||||
"\u062c\u0648\u0657\u0644\u0627\u06cc\u06cc",
|
||||
"\u0627\u06af\u0633\u062a",
|
||||
"\u0633\u062a\u0645\u0628\u0631",
|
||||
"\u0627\u06a9\u062a\u0648\u0657\u0628\u0631",
|
||||
"\u0646\u0648\u0645\u0628\u0631",
|
||||
"\u062f\u0633\u0645\u0628\u0631"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
6,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, MMMM d, y",
|
||||
"longDate": "MMMM d, y",
|
||||
"medium": "MMM d, y h:mm:ss a",
|
||||
"mediumDate": "MMM d, y",
|
||||
"mediumTime": "h:mm:ss a",
|
||||
"short": "M/d/yy h:mm a",
|
||||
"shortDate": "M/d/yy",
|
||||
"shortTime": "h:mm a"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20b9",
|
||||
"DECIMAL_SEP": "\u066b",
|
||||
"GROUP_SEP": "\u066c",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 2,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 2,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4\u00a0",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "ks-in",
|
||||
"localeID": "ks_IN",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,125 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"\u0442\u0430\u04a3\u043a\u044b",
|
||||
"\u0442\u04af\u0448\u0442\u04e9\u043d \u043a\u0438\u0439\u0438\u043d\u043a\u0438"
|
||||
],
|
||||
"DAY": [
|
||||
"\u0436\u0435\u043a\u0448\u0435\u043c\u0431\u0438",
|
||||
"\u0434\u04af\u0439\u0448\u04e9\u043c\u0431\u04af",
|
||||
"\u0448\u0435\u0439\u0448\u0435\u043c\u0431\u0438",
|
||||
"\u0448\u0430\u0440\u0448\u0435\u043c\u0431\u0438",
|
||||
"\u0431\u0435\u0439\u0448\u0435\u043c\u0431\u0438",
|
||||
"\u0436\u0443\u043c\u0430",
|
||||
"\u0438\u0448\u0435\u043c\u0431\u0438"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"\u0431\u0438\u0437\u0434\u0438\u043d \u0437\u0430\u043c\u0430\u043d\u0433\u0430 \u0447\u0435\u0439\u0438\u043d",
|
||||
"\u0431\u0438\u0437\u0434\u0438\u043d \u0437\u0430\u043c\u0430\u043d"
|
||||
],
|
||||
"ERAS": [
|
||||
"\u0431.\u0437.\u0447.",
|
||||
"\u0431.\u0437."
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"\u044f\u043d\u0432\u0430\u0440\u044c",
|
||||
"\u0444\u0435\u0432\u0440\u0430\u043b\u044c",
|
||||
"\u043c\u0430\u0440\u0442",
|
||||
"\u0430\u043f\u0440\u0435\u043b\u044c",
|
||||
"\u043c\u0430\u0439",
|
||||
"\u0438\u044e\u043d\u044c",
|
||||
"\u0438\u044e\u043b\u044c",
|
||||
"\u0430\u0432\u0433\u0443\u0441\u0442",
|
||||
"\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c",
|
||||
"\u043e\u043a\u0442\u044f\u0431\u0440\u044c",
|
||||
"\u043d\u043e\u044f\u0431\u0440\u044c",
|
||||
"\u0434\u0435\u043a\u0430\u0431\u0440\u044c"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"\u0436\u0435\u043a.",
|
||||
"\u0434\u04af\u0439.",
|
||||
"\u0448\u0435\u0439\u0448.",
|
||||
"\u0448\u0430\u0440\u0448.",
|
||||
"\u0431\u0435\u0439\u0448.",
|
||||
"\u0436\u0443\u043c\u0430",
|
||||
"\u0438\u0448\u043c."
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"\u044f\u043d\u0432.",
|
||||
"\u0444\u0435\u0432.",
|
||||
"\u043c\u0430\u0440.",
|
||||
"\u0430\u043f\u0440.",
|
||||
"\u043c\u0430\u0439",
|
||||
"\u0438\u044e\u043d.",
|
||||
"\u0438\u044e\u043b.",
|
||||
"\u0430\u0432\u0433.",
|
||||
"\u0441\u0435\u043d.",
|
||||
"\u043e\u043a\u0442.",
|
||||
"\u043d\u043e\u044f.",
|
||||
"\u0434\u0435\u043a."
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"\u042f\u043d\u0432\u0430\u0440\u044c",
|
||||
"\u0424\u0435\u0432\u0440\u0430\u043b\u044c",
|
||||
"\u041c\u0430\u0440\u0442",
|
||||
"\u0410\u043f\u0440\u0435\u043b\u044c",
|
||||
"\u041c\u0430\u0439",
|
||||
"\u0418\u044e\u043d\u044c",
|
||||
"\u0418\u044e\u043b\u044c",
|
||||
"\u0410\u0432\u0433\u0443\u0441\u0442",
|
||||
"\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c",
|
||||
"\u041e\u043a\u0442\u044f\u0431\u0440\u044c",
|
||||
"\u041d\u043e\u044f\u0431\u0440\u044c",
|
||||
"\u0414\u0435\u043a\u0430\u0431\u0440\u044c"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d-MMMM, y-'\u0436'.",
|
||||
"longDate": "y MMMM d",
|
||||
"medium": "y MMM d HH:mm:ss",
|
||||
"mediumDate": "y MMM d",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "dd.MM.yy HH:mm",
|
||||
"shortDate": "dd.MM.yy",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "KGS",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": "\u00a0",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "\u00a0\u00a4",
|
||||
"posPre": "",
|
||||
"posSuf": "\u00a0\u00a4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "ky-kg",
|
||||
"localeID": "ky_KG",
|
||||
"pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"BCE",
|
||||
"CE"
|
||||
],
|
||||
"ERAS": [
|
||||
"BCE",
|
||||
"CE"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 5,
|
||||
"MONTH": [
|
||||
"\u062c\u0627\u0646\u06a4\u06cc\u06d5",
|
||||
"\u0641\u0626\u06a4\u0631\u06cc\u06d5",
|
||||
"\u0645\u0627\u0631\u0633",
|
||||
"\u0622\u06a4\u0631\u06cc\u0644",
|
||||
"\u0645\u0626\u06cc",
|
||||
"\u062c\u0648\u0659\u0623\u0646",
|
||||
"\u062c\u0648\u0659\u0644\u0627",
|
||||
"\u0622\u06af\u0648\u0633\u062a",
|
||||
"\u0633\u0626\u067e\u062a\u0627\u0645\u0631",
|
||||
"\u0626\u0648\u06a9\u062a\u0648\u06a4\u0631",
|
||||
"\u0646\u0648\u06a4\u0627\u0645\u0631",
|
||||
"\u062f\u0626\u0633\u0627\u0645\u0631"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"\u062c\u0627\u0646\u06a4\u06cc\u06d5",
|
||||
"\u0641\u0626\u06a4\u0631\u06cc\u06d5",
|
||||
"\u0645\u0627\u0631\u0633",
|
||||
"\u0622\u06a4\u0631\u06cc\u0644",
|
||||
"\u0645\u0626\u06cc",
|
||||
"\u062c\u0648\u0659\u0623\u0646",
|
||||
"\u062c\u0648\u0659\u0644\u0627",
|
||||
"\u0622\u06af\u0648\u0633\u062a",
|
||||
"\u0633\u0626\u067e\u062a\u0627\u0645\u0631",
|
||||
"\u0626\u0648\u06a9\u062a\u0648\u06a4\u0631",
|
||||
"\u0646\u0648\u06a4\u0627\u0645\u0631",
|
||||
"\u062f\u0626\u0633\u0627\u0645\u0631"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"\u062c\u0627\u0646\u06a4\u06cc\u06d5",
|
||||
"\u0641\u0626\u06a4\u0631\u06cc\u06d5",
|
||||
"\u0645\u0627\u0631\u0633",
|
||||
"\u0622\u06a4\u0631\u06cc\u0644",
|
||||
"\u0645\u0626\u06cc",
|
||||
"\u062c\u0648\u0659\u0623\u0646",
|
||||
"\u062c\u0648\u0659\u0644\u0627",
|
||||
"\u0622\u06af\u0648\u0633\u062a",
|
||||
"\u0633\u0626\u067e\u062a\u0627\u0645\u0631",
|
||||
"\u0626\u0648\u06a9\u062a\u0648\u06a4\u0631",
|
||||
"\u0646\u0648\u06a4\u0627\u0645\u0631",
|
||||
"\u062f\u0626\u0633\u0627\u0645\u0631"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
4,
|
||||
5
|
||||
],
|
||||
"fullDate": "y MMMM d, EEEE",
|
||||
"longDate": "y MMMM d",
|
||||
"medium": "y MMM d h:mm:ss a",
|
||||
"mediumDate": "y MMM d",
|
||||
"mediumTime": "h:mm:ss a",
|
||||
"short": "y-MM-dd h:mm a",
|
||||
"shortDate": "y-MM-dd",
|
||||
"shortTime": "h:mm a"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "din",
|
||||
"DECIMAL_SEP": "\u066b",
|
||||
"GROUP_SEP": "\u066c",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4\u00a0",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "lrc-iq",
|
||||
"localeID": "lrc_IQ",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"BCE",
|
||||
"CE"
|
||||
],
|
||||
"ERAS": [
|
||||
"BCE",
|
||||
"CE"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"\u062c\u0627\u0646\u06a4\u06cc\u06d5",
|
||||
"\u0641\u0626\u06a4\u0631\u06cc\u06d5",
|
||||
"\u0645\u0627\u0631\u0633",
|
||||
"\u0622\u06a4\u0631\u06cc\u0644",
|
||||
"\u0645\u0626\u06cc",
|
||||
"\u062c\u0648\u0659\u0623\u0646",
|
||||
"\u062c\u0648\u0659\u0644\u0627",
|
||||
"\u0622\u06af\u0648\u0633\u062a",
|
||||
"\u0633\u0626\u067e\u062a\u0627\u0645\u0631",
|
||||
"\u0626\u0648\u06a9\u062a\u0648\u06a4\u0631",
|
||||
"\u0646\u0648\u06a4\u0627\u0645\u0631",
|
||||
"\u062f\u0626\u0633\u0627\u0645\u0631"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"\u062c\u0627\u0646\u06a4\u06cc\u06d5",
|
||||
"\u0641\u0626\u06a4\u0631\u06cc\u06d5",
|
||||
"\u0645\u0627\u0631\u0633",
|
||||
"\u0622\u06a4\u0631\u06cc\u0644",
|
||||
"\u0645\u0626\u06cc",
|
||||
"\u062c\u0648\u0659\u0623\u0646",
|
||||
"\u062c\u0648\u0659\u0644\u0627",
|
||||
"\u0622\u06af\u0648\u0633\u062a",
|
||||
"\u0633\u0626\u067e\u062a\u0627\u0645\u0631",
|
||||
"\u0626\u0648\u06a9\u062a\u0648\u06a4\u0631",
|
||||
"\u0646\u0648\u06a4\u0627\u0645\u0631",
|
||||
"\u062f\u0626\u0633\u0627\u0645\u0631"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"\u062c\u0627\u0646\u06a4\u06cc\u06d5",
|
||||
"\u0641\u0626\u06a4\u0631\u06cc\u06d5",
|
||||
"\u0645\u0627\u0631\u0633",
|
||||
"\u0622\u06a4\u0631\u06cc\u0644",
|
||||
"\u0645\u0626\u06cc",
|
||||
"\u062c\u0648\u0659\u0623\u0646",
|
||||
"\u062c\u0648\u0659\u0644\u0627",
|
||||
"\u0622\u06af\u0648\u0633\u062a",
|
||||
"\u0633\u0626\u067e\u062a\u0627\u0645\u0631",
|
||||
"\u0626\u0648\u06a9\u062a\u0648\u06a4\u0631",
|
||||
"\u0646\u0648\u06a4\u0627\u0645\u0631",
|
||||
"\u062f\u0626\u0633\u0627\u0645\u0631"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "y MMMM d, EEEE",
|
||||
"longDate": "y MMMM d",
|
||||
"medium": "y MMM d HH:mm:ss",
|
||||
"mediumDate": "y MMM d",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "y-MM-dd HH:mm",
|
||||
"shortDate": "y-MM-dd",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "Rial",
|
||||
"DECIMAL_SEP": "\u066b",
|
||||
"GROUP_SEP": "\u066c",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4\u00a0",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "lrc-ir",
|
||||
"localeID": "lrc_IR",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,143 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
function getDecimals(n) {
|
||||
n = n + '';
|
||||
var i = n.indexOf('.');
|
||||
return (i == -1) ? 0 : n.length - i - 1;
|
||||
}
|
||||
|
||||
function getVF(n, opt_precision) {
|
||||
var v = opt_precision;
|
||||
|
||||
if (undefined === v) {
|
||||
v = Math.min(getDecimals(n), 3);
|
||||
}
|
||||
|
||||
var base = Math.pow(10, v);
|
||||
var f = ((n * base) | 0) % base;
|
||||
return {v: v, f: f};
|
||||
}
|
||||
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"AM",
|
||||
"PM"
|
||||
],
|
||||
"DAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"BCE",
|
||||
"CE"
|
||||
],
|
||||
"ERAS": [
|
||||
"BCE",
|
||||
"CE"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"\u062c\u0627\u0646\u06a4\u06cc\u06d5",
|
||||
"\u0641\u0626\u06a4\u0631\u06cc\u06d5",
|
||||
"\u0645\u0627\u0631\u0633",
|
||||
"\u0622\u06a4\u0631\u06cc\u0644",
|
||||
"\u0645\u0626\u06cc",
|
||||
"\u062c\u0648\u0659\u0623\u0646",
|
||||
"\u062c\u0648\u0659\u0644\u0627",
|
||||
"\u0622\u06af\u0648\u0633\u062a",
|
||||
"\u0633\u0626\u067e\u062a\u0627\u0645\u0631",
|
||||
"\u0626\u0648\u06a9\u062a\u0648\u06a4\u0631",
|
||||
"\u0646\u0648\u06a4\u0627\u0645\u0631",
|
||||
"\u062f\u0626\u0633\u0627\u0645\u0631"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Sun",
|
||||
"Mon",
|
||||
"Tue",
|
||||
"Wed",
|
||||
"Thu",
|
||||
"Fri",
|
||||
"Sat"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"\u062c\u0627\u0646\u06a4\u06cc\u06d5",
|
||||
"\u0641\u0626\u06a4\u0631\u06cc\u06d5",
|
||||
"\u0645\u0627\u0631\u0633",
|
||||
"\u0622\u06a4\u0631\u06cc\u0644",
|
||||
"\u0645\u0626\u06cc",
|
||||
"\u062c\u0648\u0659\u0623\u0646",
|
||||
"\u062c\u0648\u0659\u0644\u0627",
|
||||
"\u0622\u06af\u0648\u0633\u062a",
|
||||
"\u0633\u0626\u067e\u062a\u0627\u0645\u0631",
|
||||
"\u0626\u0648\u06a9\u062a\u0648\u06a4\u0631",
|
||||
"\u0646\u0648\u06a4\u0627\u0645\u0631",
|
||||
"\u062f\u0626\u0633\u0627\u0645\u0631"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"\u062c\u0627\u0646\u06a4\u06cc\u06d5",
|
||||
"\u0641\u0626\u06a4\u0631\u06cc\u06d5",
|
||||
"\u0645\u0627\u0631\u0633",
|
||||
"\u0622\u06a4\u0631\u06cc\u0644",
|
||||
"\u0645\u0626\u06cc",
|
||||
"\u062c\u0648\u0659\u0623\u0646",
|
||||
"\u062c\u0648\u0659\u0644\u0627",
|
||||
"\u0622\u06af\u0648\u0633\u062a",
|
||||
"\u0633\u0626\u067e\u062a\u0627\u0645\u0631",
|
||||
"\u0626\u0648\u06a9\u062a\u0648\u06a4\u0631",
|
||||
"\u0646\u0648\u06a4\u0627\u0645\u0631",
|
||||
"\u062f\u0626\u0633\u0627\u0645\u0631"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "y MMMM d, EEEE",
|
||||
"longDate": "y MMMM d",
|
||||
"medium": "y MMM d HH:mm:ss",
|
||||
"mediumDate": "y MMM d",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "y-MM-dd HH:mm",
|
||||
"shortDate": "y-MM-dd",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "Rial",
|
||||
"DECIMAL_SEP": "\u066b",
|
||||
"GROUP_SEP": "\u066c",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4\u00a0",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "lrc",
|
||||
"localeID": "lrc",
|
||||
"pluralCat": function(n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -0,0 +1,125 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"\u04ae\u04e8",
|
||||
"\u04ae\u0425"
|
||||
],
|
||||
"DAY": [
|
||||
"\u043d\u044f\u043c",
|
||||
"\u0434\u0430\u0432\u0430\u0430",
|
||||
"\u043c\u044f\u0433\u043c\u0430\u0440",
|
||||
"\u043b\u0445\u0430\u0433\u0432\u0430",
|
||||
"\u043f\u04af\u0440\u044d\u0432",
|
||||
"\u0431\u0430\u0430\u0441\u0430\u043d",
|
||||
"\u0431\u044f\u043c\u0431\u0430"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"\u043c\u0430\u043d\u0430\u0439 \u044d\u0440\u0438\u043d\u0438\u0439 \u04e9\u043c\u043d\u04e9\u0445",
|
||||
"\u043c\u0430\u043d\u0430\u0439 \u044d\u0440\u0438\u043d\u0438\u0439"
|
||||
],
|
||||
"ERAS": [
|
||||
"\u043c.\u044d.\u04e9",
|
||||
"\u043c.\u044d."
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440",
|
||||
"\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440",
|
||||
"\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440",
|
||||
"\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440",
|
||||
"\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"\u041d\u044f",
|
||||
"\u0414\u0430",
|
||||
"\u041c\u044f",
|
||||
"\u041b\u0445",
|
||||
"\u041f\u04af",
|
||||
"\u0411\u0430",
|
||||
"\u0411\u044f"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"1-\u0440 \u0441\u0430\u0440",
|
||||
"2-\u0440 \u0441\u0430\u0440",
|
||||
"3-\u0440 \u0441\u0430\u0440",
|
||||
"4-\u0440 \u0441\u0430\u0440",
|
||||
"5-\u0440 \u0441\u0430\u0440",
|
||||
"6-\u0440 \u0441\u0430\u0440",
|
||||
"7-\u0440 \u0441\u0430\u0440",
|
||||
"8-\u0440 \u0441\u0430\u0440",
|
||||
"9-\u0440 \u0441\u0430\u0440",
|
||||
"10-\u0440 \u0441\u0430\u0440",
|
||||
"11-\u0440 \u0441\u0430\u0440",
|
||||
"12-\u0440 \u0441\u0430\u0440"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440",
|
||||
"\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440",
|
||||
"\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440",
|
||||
"\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440",
|
||||
"\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440",
|
||||
"\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, y '\u043e\u043d\u044b' MM '\u0441\u0430\u0440\u044b\u043d' d",
|
||||
"longDate": "y '\u043e\u043d\u044b' MM '\u0441\u0430\u0440\u044b\u043d' d",
|
||||
"medium": "y MMM d HH:mm:ss",
|
||||
"mediumDate": "y MMM d",
|
||||
"mediumTime": "HH:mm:ss",
|
||||
"short": "y-MM-dd HH:mm",
|
||||
"shortDate": "y-MM-dd",
|
||||
"shortTime": "HH:mm"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "\u20ae",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4\u00a0",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "mn-mn",
|
||||
"localeID": "mn_MN",
|
||||
"pluralCat": function(n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
|
@ -16,6 +16,15 @@ $provide.value("$locale", {
|
|||
"Jumaat",
|
||||
"Sabtu"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"S.M.",
|
||||
"TM"
|
||||
],
|
||||
"ERAS": [
|
||||
"S.M.",
|
||||
"TM"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"Januari",
|
||||
"Februari",
|
||||
|
@ -47,30 +56,47 @@ $provide.value("$locale", {
|
|||
"Mei",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Ogos",
|
||||
"Ogo",
|
||||
"Sep",
|
||||
"Okt",
|
||||
"Nov",
|
||||
"Dis"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"Januari",
|
||||
"Februari",
|
||||
"Mac",
|
||||
"April",
|
||||
"Mei",
|
||||
"Jun",
|
||||
"Julai",
|
||||
"Ogos",
|
||||
"September",
|
||||
"Oktober",
|
||||
"November",
|
||||
"Disember"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "dd MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "dd/MM/yyyy h:mm:ss a",
|
||||
"mediumDate": "dd/MM/yyyy",
|
||||
"medium": "d MMM y h:mm:ss a",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "h:mm:ss a",
|
||||
"short": "d/MM/yy h:mm a",
|
||||
"shortDate": "d/MM/yy",
|
||||
"shortTime": "h:mm a"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "RM",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"CURRENCY_SYM": "$",
|
||||
"DECIMAL_SEP": ",",
|
||||
"GROUP_SEP": ".",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"macFrac": 0,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
|
@ -82,18 +108,18 @@ $provide.value("$locale", {
|
|||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"macFrac": 0,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "(\u00a4",
|
||||
"negSuf": ")",
|
||||
"posPre": "\u00a4",
|
||||
"negPre": "-\u00a4\u00a0",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4\u00a0",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "ms-bn",
|
||||
"pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;}
|
||||
"localeID": "ms_BN",
|
||||
"pluralCat": function(n, opt_precision) { return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
||||
}]);
|
||||
|
|
|
@ -16,6 +16,15 @@ $provide.value("$locale", {
|
|||
"Jumaat",
|
||||
"Sabtu"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"S.M.",
|
||||
"TM"
|
||||
],
|
||||
"ERAS": [
|
||||
"S.M.",
|
||||
"TM"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 0,
|
||||
"MONTH": [
|
||||
"Januari",
|
||||
"Februari",
|
||||
|
@ -47,16 +56,34 @@ $provide.value("$locale", {
|
|||
"Mei",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Ogos",
|
||||
"Ogo",
|
||||
"Sep",
|
||||
"Okt",
|
||||
"Nov",
|
||||
"Dis"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"Januari",
|
||||
"Februari",
|
||||
"Mac",
|
||||
"April",
|
||||
"Mei",
|
||||
"Jun",
|
||||
"Julai",
|
||||
"Ogos",
|
||||
"September",
|
||||
"Oktober",
|
||||
"November",
|
||||
"Disember"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "dd/MM/yyyy h:mm:ss a",
|
||||
"mediumDate": "dd/MM/yyyy",
|
||||
"medium": "d MMM y h:mm:ss a",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "h:mm:ss a",
|
||||
"short": "d/MM/yy h:mm a",
|
||||
"shortDate": "d/MM/yy",
|
||||
|
@ -70,7 +97,6 @@ $provide.value("$locale", {
|
|||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"macFrac": 0,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
|
@ -82,18 +108,18 @@ $provide.value("$locale", {
|
|||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"macFrac": 0,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "(\u00a4",
|
||||
"negSuf": ")",
|
||||
"negPre": "-\u00a4",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "ms-my",
|
||||
"pluralCat": function (n) { return PLURAL_CATEGORY.OTHER;}
|
||||
"localeID": "ms_MY",
|
||||
"pluralCat": function(n, opt_precision) { return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
||||
}]);
|
||||
|
|
|
@ -0,0 +1,125 @@
|
|||
'use strict';
|
||||
angular.module("ngLocale", [], ["$provide", function($provide) {
|
||||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
|
||||
$provide.value("$locale", {
|
||||
"DATETIME_FORMATS": {
|
||||
"AMPMS": [
|
||||
"PG",
|
||||
"PTG"
|
||||
],
|
||||
"DAY": [
|
||||
"Ahad",
|
||||
"Isnin",
|
||||
"Selasa",
|
||||
"Rabu",
|
||||
"Khamis",
|
||||
"Jumaat",
|
||||
"Sabtu"
|
||||
],
|
||||
"ERANAMES": [
|
||||
"S.M.",
|
||||
"TM"
|
||||
],
|
||||
"ERAS": [
|
||||
"S.M.",
|
||||
"TM"
|
||||
],
|
||||
"FIRSTDAYOFWEEK": 6,
|
||||
"MONTH": [
|
||||
"Januari",
|
||||
"Februari",
|
||||
"Mac",
|
||||
"April",
|
||||
"Mei",
|
||||
"Jun",
|
||||
"Julai",
|
||||
"Ogos",
|
||||
"September",
|
||||
"Oktober",
|
||||
"November",
|
||||
"Disember"
|
||||
],
|
||||
"SHORTDAY": [
|
||||
"Ahd",
|
||||
"Isn",
|
||||
"Sel",
|
||||
"Rab",
|
||||
"Kha",
|
||||
"Jum",
|
||||
"Sab"
|
||||
],
|
||||
"SHORTMONTH": [
|
||||
"Jan",
|
||||
"Feb",
|
||||
"Mac",
|
||||
"Apr",
|
||||
"Mei",
|
||||
"Jun",
|
||||
"Jul",
|
||||
"Ogo",
|
||||
"Sep",
|
||||
"Okt",
|
||||
"Nov",
|
||||
"Dis"
|
||||
],
|
||||
"STANDALONEMONTH": [
|
||||
"Januari",
|
||||
"Februari",
|
||||
"Mac",
|
||||
"April",
|
||||
"Mei",
|
||||
"Jun",
|
||||
"Julai",
|
||||
"Ogos",
|
||||
"September",
|
||||
"Oktober",
|
||||
"November",
|
||||
"Disember"
|
||||
],
|
||||
"WEEKENDRANGE": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"fullDate": "EEEE, d MMMM y",
|
||||
"longDate": "d MMMM y",
|
||||
"medium": "d MMM y h:mm:ss a",
|
||||
"mediumDate": "d MMM y",
|
||||
"mediumTime": "h:mm:ss a",
|
||||
"short": "d/MM/yy h:mm a",
|
||||
"shortDate": "d/MM/yy",
|
||||
"shortTime": "h:mm a"
|
||||
},
|
||||
"NUMBER_FORMATS": {
|
||||
"CURRENCY_SYM": "$",
|
||||
"DECIMAL_SEP": ".",
|
||||
"GROUP_SEP": ",",
|
||||
"PATTERNS": [
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 3,
|
||||
"minFrac": 0,
|
||||
"minInt": 1,
|
||||
"negPre": "-",
|
||||
"negSuf": "",
|
||||
"posPre": "",
|
||||
"posSuf": ""
|
||||
},
|
||||
{
|
||||
"gSize": 3,
|
||||
"lgSize": 3,
|
||||
"maxFrac": 2,
|
||||
"minFrac": 2,
|
||||
"minInt": 1,
|
||||
"negPre": "-\u00a4",
|
||||
"negSuf": "",
|
||||
"posPre": "\u00a4",
|
||||
"posSuf": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": "ms-sg",
|
||||
"localeID": "ms_SG",
|
||||
"pluralCat": function(n, opt_precision) { return PLURAL_CATEGORY.OTHER;}
|
||||
});
|
||||
}]);
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue