1
0
mirror of https://gitlab.com/JKANetwork/CheckServer.git synced 2026-06-23 00:26:18 +02:00

Start again

This commit is contained in:
2020-10-04 17:14:00 +02:00
parent c0d3912413
commit 091f119048
4382 changed files with 1762543 additions and 9606 deletions
+35
View File
@@ -0,0 +1,35 @@
{
"name": "DateJS",
"version": "1.0.0-rc3",
"homepage": "https://github.com/abritinthebay/datejs",
"authors": [
"Gregory Wild-Smith"
],
"description": "Datejs is an open-source JavaScript Date Library.",
"main": "build/production/date.min.js",
"keywords": [
"date",
"javascript",
"js",
"mit"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
"specs"
],
"_release": "1.0.0-rc3",
"_resolution": {
"type": "version",
"tag": "v1.0.0-rc3",
"commit": "a173b13c148b8b257c0ca58dea90cb7ad616f35b"
},
"_source": "https://github.com/abritinthebay/datejs.git",
"_target": "^1.0.0-rc3",
"_originalSource": "DateJS",
"_direct": true
}
+184
View File
@@ -0,0 +1,184 @@
// GruntFile for building the final compiled files from the core.
// Run using NodeJS and the Grunt module
var fs = require("fs");
var dirs = {
core: "src/core",
i18n: "src/i18n",
build: "build"
};
var getI18NFiles = function () {
return fs.readdirSync(dirs.i18n);
};
var buildMinifyFileList = function (dev) {
var output_path = dev ? "" : "production/";
var output_ext = dev ? "." : ".min.";
var files = getI18NFiles();
var output = {};
files.map(function(item){
var file_core_name = "date-" + item.replace(".js", "");
var dest = dirs.build + "/"+output_path + file_core_name + output_ext + "js";
output[dest] = [dirs.build + "/" + file_core_name + ".js"];
return dest;
});
output[dirs.build + "/"+output_path + "date"+output_ext+"js"] = [dirs.build + "/" + "date.js"];
return output;
};
var banner = "/** \n" +
" * @overview <%= pkg.name %>\n" +
" * @version <%= pkg.version %>\n" +
" * @author <%= pkg.author.name %> <<%= pkg.author.email %>>\n" +
" * @copyright <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>\n" +
" * @license <%= pkg.license %>\n" +
" * @homepage <%= pkg.homepage %>\n" +
" */";
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
dirs: dirs,
build_dev: {
description: "Builds files designed for easy debugging on dev enviroments (non-minified)"
},
build_prod: {
description: "Builds production ready files (minified)"
},
closurecompiler: {
minify: {
files: buildMinifyFileList(),
options: {
"compilation_level": "SIMPLE_OPTIMIZATIONS",
"max_processes": 5,
"banner": banner
}
}
},
concat: {
options: {
separator: "\n",
banner: banner,
nonull: true
},
core: {
src: [
"<%= dirs.core %>/i18n.js",
"<%= dirs.core %>/core.js",
"<%= dirs.core %>/core-prototypes.js",
"<%= dirs.core %>/sugarpak.js",
"<%= dirs.core %>/format_parser.js",
"<%= dirs.core %>/parsing_operators.js",
"<%= dirs.core %>/parsing_translator.js",
"<%= dirs.core %>/parsing_grammar.js",
"<%= dirs.core %>/parser.js",
"<%= dirs.core %>/extras.js",
"<%= dirs.core %>/time_span.js",
"<%= dirs.core %>/time_period.js"
],
dest: "<%= dirs.build %>/date-core.js"
},
basic: {
src: [
"<%= dirs.core %>/i18n.js",
"<%= dirs.core %>/core.js",
"<%= dirs.core %>/core-prototypes.js",
"<%= dirs.core %>/sugarpak.js",
"<%= dirs.core %>/format_parser.js",
"<%= dirs.core %>/parsing_operators.js",
"<%= dirs.core %>/parsing_translator.js",
"<%= dirs.core %>/parsing_grammar.js",
"<%= dirs.core %>/parser.js",
"<%= dirs.core %>/extras.js",
"<%= dirs.core %>/time_span.js",
"<%= dirs.core %>/time_period.js"
],
dest: "<%= dirs.build %>/date.js"
}
},
i18n: {
core: {
core: "<%= dirs.build %>/date-core.js",
src: ["<%= dirs.i18n %>/*.js"],
dest: "<%= dirs.build %>/" // destination *directory*, probably better than specifying same file names twice
}
},
shell: {
updateCodeClimate: {
command: "codeclimate < reports/lcov.info",
options: {
stdout: true,
stderr: true,
failOnError: true
}
}
},
jasmine : {
src : [
"src/core/i18n.js",
"src/core/core.js",
"src/core/core-prototypes.js",
"src/core/sugarpak.js",
"src/core/format_parser.js",
"src/core/parsing_operators.js",
"src/core/parsing_translator.js",
"src/core/parsing_grammar.js",
"src/core/parser.js",
"src/core/extras.js",
"src/core/time_period.js",
"src/core/time_span.js"
],
options : {
specs : "specs/*-spec.js",
template : require("grunt-template-jasmine-istanbul"),
templateOptions: {
template: "specs/jasmine-2.0.3/specrunner.tmpl",
coverage: "reports/coverage.json",
report: {
type: "lcov",
options: {
replace: true,
dir: "reports/"
}
}
}
}
},
});
grunt.registerMultiTask("i18n", "Wraps DateJS core with Internationalization info.", function() {
var data = this.data,
path = require("path"),
dest = grunt.template.process(data.dest),
files = grunt.file.expand(data.src),
core = grunt.file.read(grunt.template.process(data.core)),
sep = grunt.util.linefeed,
banner_compiled = grunt.template.process(banner);
files.forEach(function(f) {
var p = dest + "/" + "date-" + path.basename(f),
contents = grunt.file.read(f);
grunt.file.write(p, banner_compiled + sep + contents + sep + core );
grunt.log.writeln("File \"" + p + "\" created.");
});
grunt.file.delete(dirs.build+"/date-core.js");
});
grunt.registerMultiTask("build_dev", "Builds compiled, non-minfied, files for development enviroments", function() {
grunt.task.run(["concat:core", "concat:basic", "i18n:core"]);
});
grunt.registerMultiTask("build_prod", "Rebuilds dev and minifies files for production enviroments", function() {
grunt.task.run(["concat:core", "concat:basic", "i18n:core", "closurecompiler:minify"]);
});
grunt.loadNpmTasks("grunt-contrib-jasmine");
// now set the default
grunt.registerTask("default", ["build_dev"]);
// Load the plugin that provides the "minify" task.
grunt.loadNpmTasks("grunt-shell");
grunt.loadNpmTasks("grunt-closurecompiler");
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.registerTask("test", ["jasmine", "shell:updateCodeClimate"]);
};
+21
View File
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2013 Gregory Wild-Smith
Original Project Copyright (c) 2006-2008 Geoffrey McGill at Cooline Inc.
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.
+48
View File
@@ -0,0 +1,48 @@
# DateJS: Evolved
The JavaScript Date Library
[![Build Status](https://travis-ci.org/abritinthebay/datejs.svg?branch=master)](https://travis-ci.org/abritinthebay/datejs)
[![NPM version](https://badge.fury.io/js/datejs.svg)](http://badge.fury.io/js/datejs)
[![Code Climate](https://codeclimate.com/github/abritinthebay/datejs.svg)](https://codeclimate.com/github/abritinthebay/datejs)
[![Test Coverage](https://codeclimate.com/github/abritinthebay/datejs/badges/coverage.svg)](https://codeclimate.com/github/abritinthebay/datejs)
[![NPM](https://nodei.co/npm/datejs.png?downloadRank=true)](https://nodei.co/npm/datejs/)
## What is it?
DateJS extends the built-in JavaScript Date object to add much better parsing, internationalization support, and all the functions and syntactic sugar you could wish for.
### Background
Date JS was started by Geoffrey McGill in 2007, he abandoned it on May 13th 2008; leaving the Google Code repository stagnant and with many bugs unresolved.
This fork was started improve and maintain DateJS. To keep what is still the most full featured JavaScript Date library alive, maintained, and improved. Currently we're on track towards a 1.0 release - having fixed almost all the existing bugs and added several new features, improved parsing, and many other changes.
### How to Install/Use
DateJS supports running either your regular web browser as a client library or Node.js.
#### In Node.js
Installation is as easy as running:
npm install datejs
#### For a Browser
If you use [Bower](http://bower.io/) to manage your frontend packages then it's also really simple:
bower install datejs
Otherwise...
* For production environments include [the production ready minified file from the Build directory](https://github.com/abritinthebay/datejs/blob/master/build/production/date.min.js) on your page.
* For debugging (eg, in development) include [the unminified and fully commented version](https://github.com/abritinthebay/datejs/blob/master/build/date.js)
#### International Language Versions
In Node.js you can just call `Date.i18n.setLanguage` with the IETF appropriate code (e.g. "de-DE", or "es-MX") and DateJS will load the file automatically. For the browser DateJS has langauge support in one of two ways:
1. Either download the appropriate file from [the Build directory of your choice](https://github.com/abritinthebay/datejs/blob/master/build/). Files are named after the IETF code the load (i.e. `date-es-MX.js` loads Mexican Spanish).
2. Or set `Date.Config.i18n` to the location of [the internationalization files](https://github.com/abritinthebay/datejs/blob/master/build/i18n/) on your server and DateJS will dynamically load the files by script element insertion.
DateJS will always support loading US English via `Date.i18n.setLanguage("en-US")` no matter what other language is specifically loaded. So you can always support both your localization and the English speaking world.
## File Structure
* `build` Output from the Grunt powered build process
* `development` Non-minified files with full comments. Suitable for development environments.
* `production` Fully minified (by Google's Closure Compiler) files suitable for production.
* `src` All the source files used to build the final files.
* `core` The main DateJS source files.
* `i18n` Internationalization files. Language specifics (days of the week, regex formats,etc). Organized by IETF language tag (eg - en-US, etc).
* `specs` Unit Tests written using [Jasmine](http://pivotal.github.io/jasmine/). Code coverage is calculated by [BlanketJS](http://blanketjs.org/).
* `tests` Orginal unit tests for 2008 project. *Deprecated*
+25
View File
@@ -0,0 +1,25 @@
{
"name": "DateJS",
"version": "1.0.0-rc1",
"homepage": "https://github.com/abritinthebay/datejs",
"authors": [
"Gregory Wild-Smith"
],
"description": "Datejs is an open-source JavaScript Date Library.",
"main": "build/production/date.min.js",
"keywords": [
"date",
"javascript",
"js",
"mit"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
"specs"
]
}
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4096
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+4526
View File
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More