added admin interface
This commit is contained in:
29
admin/template_assets/vendor/raphael/.bower.json
vendored
Normal file
29
admin/template_assets/vendor/raphael/.bower.json
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "raphael",
|
||||
"version": "2.1.4",
|
||||
"main": "raphael.js",
|
||||
"ignore": [
|
||||
"eve",
|
||||
"**/.*",
|
||||
"*.html",
|
||||
"*.json",
|
||||
"*.markdown",
|
||||
"*.md",
|
||||
"copy.js",
|
||||
"Gruntfile.js",
|
||||
"raphael.core.js",
|
||||
"raphael.svg.js",
|
||||
"raphael.vml.js",
|
||||
"reference.js"
|
||||
],
|
||||
"homepage": "https://github.com/DmitryBaranovskiy/raphael",
|
||||
"_release": "2.1.4",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v2.1.4",
|
||||
"commit": "a29d980d1f6b0aed9a0f18d751a76e862f5fbc4f"
|
||||
},
|
||||
"_source": "git://github.com/DmitryBaranovskiy/raphael.git",
|
||||
"_target": ">= 2.0",
|
||||
"_originalSource": "raphael"
|
||||
}
|
||||
72
admin/template_assets/vendor/raphael/Gruntfile.js
vendored
Normal file
72
admin/template_assets/vendor/raphael/Gruntfile.js
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function(grunt) {
|
||||
|
||||
var pkg = grunt.file.readJSON("package.json");
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
// Metadata.
|
||||
pkg: pkg,
|
||||
banner: grunt.file.read("dev/copy.js").replace(/@VERSION/, pkg.version),
|
||||
// Task configuration.
|
||||
uglify: {
|
||||
options: {
|
||||
banner: "<%= banner %>"
|
||||
},
|
||||
dist: {
|
||||
src: "<%= concat.dist.dest %>",
|
||||
dest: "<%= pkg.name %>-min.js"
|
||||
},
|
||||
nodeps: {
|
||||
src: "<%= concat.nodeps.dest %>",
|
||||
dest: "<%= pkg.name %>-nodeps-min.js"
|
||||
}
|
||||
},
|
||||
replace: {
|
||||
dist: {
|
||||
options: {
|
||||
patterns: [{
|
||||
match: "VERSION",
|
||||
replacement: "<%= pkg.version %>"
|
||||
}]
|
||||
},
|
||||
files: [{
|
||||
expand: true,
|
||||
flatten: true,
|
||||
src: ["<%= concat.dist.dest %>", "<%= concat.nodeps.dest %>"],
|
||||
dest: "./"
|
||||
}]
|
||||
}
|
||||
},
|
||||
concat: {
|
||||
dist: {
|
||||
dest: "<%= pkg.name %>.js",
|
||||
src: [
|
||||
"dev/eve.js",
|
||||
"dev/raphael.core.js",
|
||||
"dev/raphael.svg.js",
|
||||
"dev/raphael.vml.js",
|
||||
"dev/raphael.amd.js"
|
||||
]
|
||||
},
|
||||
nodeps: {
|
||||
dest: "<%= pkg.name %>-nodeps.js",
|
||||
src: [
|
||||
"dev/raphael.core.js",
|
||||
"dev/raphael.svg.js",
|
||||
"dev/raphael.vml.js",
|
||||
"dev/raphael.amd.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// These plugins provide necessary tasks.
|
||||
grunt.loadNpmTasks("grunt-contrib-concat");
|
||||
grunt.loadNpmTasks("grunt-contrib-uglify");
|
||||
grunt.loadNpmTasks("grunt-replace");
|
||||
|
||||
// Default task.
|
||||
grunt.registerTask("default", ["concat", "replace", "uglify"]);
|
||||
};
|
||||
19
admin/template_assets/vendor/raphael/bower.json
vendored
Normal file
19
admin/template_assets/vendor/raphael/bower.json
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "raphael",
|
||||
"version": "2.1.4",
|
||||
"main": "raphael.js",
|
||||
"ignore": [
|
||||
"eve",
|
||||
"**/.*",
|
||||
"*.html",
|
||||
"*.json",
|
||||
"*.markdown",
|
||||
"*.md",
|
||||
"copy.js",
|
||||
"Gruntfile.js",
|
||||
"raphael.core.js",
|
||||
"raphael.svg.js",
|
||||
"raphael.vml.js",
|
||||
"reference.js"
|
||||
]
|
||||
}
|
||||
6
admin/template_assets/vendor/raphael/dev/amdDev.js
vendored
Normal file
6
admin/template_assets/vendor/raphael/dev/amdDev.js
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
require(['../raphael'], function(Raphael){
|
||||
var paper = Raphael(0, 0, 640, 720, "container");
|
||||
//paper.circle(100, 100, 100); //example
|
||||
|
||||
// Work here
|
||||
});
|
||||
8
admin/template_assets/vendor/raphael/dev/index.js
vendored
Normal file
8
admin/template_assets/vendor/raphael/dev/index.js
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
var core = require('./raphael.core');
|
||||
if(core.svg){
|
||||
require('./raphael.svg');
|
||||
}
|
||||
if(core.vml){
|
||||
require('./raphael.vml');
|
||||
}
|
||||
module.exports = core;
|
||||
2053
admin/template_assets/vendor/raphael/dev/require.js
vendored
Normal file
2053
admin/template_assets/vendor/raphael/dev/require.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
21
admin/template_assets/vendor/raphael/license.txt
vendored
Normal file
21
admin/template_assets/vendor/raphael/license.txt
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2008-2010 Dmitry Baranovskiy
|
||||
|
||||
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.
|
||||
11
admin/template_assets/vendor/raphael/raphael-min.js
vendored
Normal file
11
admin/template_assets/vendor/raphael/raphael-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8239
admin/template_assets/vendor/raphael/raphael.js
vendored
Normal file
8239
admin/template_assets/vendor/raphael/raphael.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3
admin/template_assets/vendor/raphael/raphael.min.js
vendored
Normal file
3
admin/template_assets/vendor/raphael/raphael.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7922
admin/template_assets/vendor/raphael/raphael.no-deps.js
vendored
Normal file
7922
admin/template_assets/vendor/raphael/raphael.no-deps.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3
admin/template_assets/vendor/raphael/raphael.no-deps.min.js
vendored
Normal file
3
admin/template_assets/vendor/raphael/raphael.no-deps.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
61
admin/template_assets/vendor/raphael/webpack.config.js
vendored
Normal file
61
admin/template_assets/vendor/raphael/webpack.config.js
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
"use strict";
|
||||
|
||||
const webpack = require("webpack");
|
||||
const fs = require("fs");
|
||||
|
||||
const args = process.argv;
|
||||
|
||||
let plugins = [
|
||||
new webpack.BannerPlugin(fs.readFileSync('./dev/banner.txt', 'utf8'), { raw: true, entryOnly: true })
|
||||
];
|
||||
let externals = [];
|
||||
let filename = "raphael";
|
||||
|
||||
|
||||
if(args.indexOf('--no-deps') !== -1){
|
||||
console.log('Building version without deps');
|
||||
externals.push("eve");
|
||||
filename += ".no-deps"
|
||||
}
|
||||
|
||||
if(args.indexOf('--min') !== -1){
|
||||
console.log('Building minified version');
|
||||
plugins.push(
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
compress:{
|
||||
dead_code: false,
|
||||
unused: false
|
||||
}
|
||||
})
|
||||
);
|
||||
filename += ".min"
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
entry: './dev/raphael.amd.js',
|
||||
output: {
|
||||
filename: filename + ".js",
|
||||
libraryTarget: "umd",
|
||||
library: "Raphael"
|
||||
},
|
||||
|
||||
externals: externals,
|
||||
|
||||
plugins: plugins,
|
||||
|
||||
loaders: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: "eslint-loader",
|
||||
include: "./dev/"
|
||||
}
|
||||
],
|
||||
|
||||
eslint: {
|
||||
configFile: './.eslintrc'
|
||||
},
|
||||
|
||||
resolve: {
|
||||
modulesDirectories: ["bower_components"]
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user