Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ioneyez committed Feb 12, 2016
1 parent 2694875 commit d93e801
Show file tree
Hide file tree
Showing 186 changed files with 93,345 additions and 0 deletions.
1 change: 1 addition & 0 deletions BAKELITE/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This directory contains pdmk libraries which are "in the oven".
76 changes: 76 additions & 0 deletions CREDITS
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
Copyright (c) 2014-2015 CenturyLink, Inc.


The Plastic Data Modeling Kit [pdmk] is a 100% JavaScript data modeling toolkit
which leverages many robust JavaScript frameworks and libraries to function.
This file contains a list of these libraries and official project contributors.
Without the support of these libraries and individuals this project [pdmk]
would not be possible.



Support Frameworks and Libraries -

Plastic -

jQuery - http://jquery.com/ [MIT License]
jQuery UI - http://jqueryui.com/ [MIT License]
jQuery Context Menu - http://medialize.github.com/jQuery-contextMenu/ [MIT License]
jQuery DynaTree - http://dynatree.googlecode.com/ [MIT License]
jQuery DataTables - http://www.datatables.net/ [BSD License]
jQuery Sparkline - http://omnipotent.net/jquery.sparkline/ [New BSD License]
QUnit - http://qunitjs.com/ [MIT License]
BigInt - http://leemon.com/crypto/BigInt.html [Public Domain]

Not-Plastic -

google-code-prettify - https://code.google.com/p/google-code-prettify/ [Apache License 2.0]


Core Software Architecture and Plastic Contributors [pdmk]
___
_______ / /\ ___
/ ___ \ ___/ / \__ / /\_________
/ /\ ) )__ / / / /__\ / / \ \
/ / \/ / \_\__/__/ / / /\\_ ____ / / _/__ /\
/ /___/ / / ____ / / ___ \/ \ / / _/ _/\ / \
/ _______/ / /\ / / / /\ \___/) /\___ / /_/ _/\\ \ / \
/ /\ \ / / \/ / / / \__\__/ / \ \/ _/\\ \\/ / \
/ / \______/ (__/ / / / / / / / // _ /\\ \\/ / /
/ / / (________/ /__/ / /__/ / // / \ \ \\/ / /
/__/ / /\ \ /\ \ / \ \ / //__/ \__\/ / /
\ \ / / /\_______\/ /\__\/ \__\/ / \ \ / \ \ / /
/ \__\/ / / /__________________/ / \_\/ \__\ / /
/ / \___________/ \= \ /____________ / /
\____________/ \= \ \== \ \= \ /
\= \ \== \ \=== \ \== \ /
\== \ \=== \ \====_____________\/\=== \ /
\=== \ / \====______\/ \====________\/
\====_______\/

Concept -

Chief Software Architect - John Woodworth <[email protected]>

Design -

Chief Software Architect - John Woodworth <[email protected]>
Software Consultant - Dean Ballew <[email protected]>
Graphical Consultant - Shashwath Bindinganaveli Raghavan

Development -

Lead Software Developer - John Woodworth <[email protected]>
Playbook Consultant - Dean Ballew <[email protected]>

Testing -

Chief Test Architect - Dean Ballew <[email protected]>
Test Architect - Shashwath Bindinganaveli Raghavan

Official [pdmk] Code Maintainers -

Chief Software Architect - John Woodworth <[email protected]>
Playbook Consultant - Dean Ballew <[email protected]>


23 changes: 23 additions & 0 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Copyright (c) 2014-2015 CenturyLink, 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.

1 change: 1 addition & 0 deletions MINIFY/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This directory will create a "minified" version of pdmk.
128 changes: 128 additions & 0 deletions MINIFY/minify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
#!/bin/bash

##-------------------------------------------------------------------##
##///////////////////////////////////////////////////////////////////##
VERSION=1.0.0b
COPYRIGHT='
/*!
/ COPYRIGHT (c) 2014 CenturyLink, Inc.
/ SEE LICENSE-MIT FOR LICENSE TERMS
/ SEE CREDITS FOR CONTRIBUTIONS AND CREDITS FOR THIS PROJECT
/ AUTHOR: John R B Woodworth <[email protected]>
/ SUPPORT CONTACT: [email protected]
___
_______ / /\ ___
/ ___ \ ___/ / \__ / /\_________
/ /\ ) )__ / / / /__\ / / \ \
/ / \/ / \_\__/__/ / / /\\_ ____ / / _/__ /\
/ /___/ / / ____ / / ___ \/ \ / / _/ _/\ / \
/ _______/ / /\ / / / /\ \___/) /\___ / /_/ _/\\ \ / \
/ /\ \ / / \/ / / / \__\__/ / \ \/ _/\\ \\/ / \
/ / \______/ (__/ / / / / / / / // _ /\\ \\/ / /
/ / / (________/ /__/ / /__/ / // / \ \ \\/ / /
/__/ / /\ \ /\ \ / \ \ / //__/ \__\/ / /
\ \ / / /\_______\/ /\__\/ \__\/ / \ \ / \ \ / /
/ \__\/ / / /__________________/ / \_\/ \__\ / /
/ / \___________/ \= \ /____________ / /
\____________/ \= \ \== \ \= \ /
\= \ \== \ \=== \ \== \ /
\== \ \=== \ \====_____________\/\=== \ /
\=== \ / \====______\/ \====________\/
\====_______\/
*/
'
##///////////////////////////////////////////////////////////////////##
##-------------------------------------------------------------------##

function dieError() {
echo $0 Ver. $VERSION
echo "Usage: $0"
echo "Terminating with exit code ${2-255}:"
echo " ${1-An error has occured}" # Message
exit ${2-255} # Exit Code
}

function sweepArgsFor() { # Bruteforce Option Matcher
matchTo=$1; shift;
retVal=0
while [ $# -gt 0 ]; do
[ "$1" = "$matchTo" ] && retVal=1
shift
done
return $retVal
}

# Check For Disabling Of Library Inclusion
sweepArgsFor 'nojq' $* # Disable jQuery Libraries ??
OPT_NOJQ=$?
sweepArgsFor 'nobi' $* # Disable BigInt Libraries ??
OPT_NOBI=$?
sweepArgsFor 'nora' $* # Disable rangy Libraries ??
OPT_NORA=$?
sweepArgsFor 'nocm' $* # Disable contextMenu Libraries ??
OPT_NOCM=$?
sweepArgsFor 'nosl' $* # Disable SparkLine Libraries ??
OPT_NOSL=$?
sweepArgsFor 'nody' $* # Disable Dynatree Libraries ??
OPT_NODY=$?
sweepArgsFor 'nodt' $* # Disable DataTables Libraries ??
OPT_NODT=$?
sweepArgsFor 'enqu' $* # Enable QUinit Libraries ??
OPT_ENQU=$?

export COPYRIGHT
[ -e "$(which dirname 2> /dev/null)" ] || dieError "Unable to locate 'dirname' utility" 10
[ -e "$(which xargs 2> /dev/null)" ] || dieError "Unable to locate 'xargs' utility" 15
[ -e "$(which echo 2> /dev/null)" ] || dieError "Unable to locate 'echo' utility" 20
[ -e "$(which java 2> /dev/null)" ] || dieError "Unable to locate 'java' utility" 25
[ -e "$(which perl 2> /dev/null)" ] || dieError "Unable to locate 'perl' utility" 30
[ -e "$(which grep 2> /dev/null)" ] || dieError "Unable to locate 'grep' utility" 35
[ -e "$(which sed 2> /dev/null)" ] || dieError "Unable to locate 'sed' utility" 40
[ -e "$(which cat 2> /dev/null)" ] || dieError "Unable to locate 'cat' utility" 45
[ -e "$(which cp 2> /dev/null)" ] || dieError "Unable to locate 'cp' utility" 50
cd "$(dirname $0)"
rm pdmk-min.js pdmk-min.css 2> /dev/null
echo "Minifying files:"

(
[ $OPT_NOJQ -gt 0 ] || echo ../scripts/jquery.js
[ $OPT_NOJQ -gt 0 ] || echo ../scripts/jquery-ui.custom.js
[ $OPT_NODY -gt 0 ] || echo ../scripts/jquery.dynatree.js
[ $OPT_NOCM -gt 0 ] || echo ../scripts/jquery.contextMenu.js
[ $OPT_NOBI -gt 0 ] || echo ../scripts/BigInt.js
[ $OPT_NORA -gt 0 ] || echo ../scripts/rangy.js
echo ../scripts/PlasticGlue.js
echo ../scripts/PlasticDatastore.js
echo ../scripts/PlasticStack.js
echo ../scripts/PlasticView.js
echo ../scripts/PlasticWidget.js
[ $OPT_NOSL -gt 0 ] || echo ../scripts/jquery.sparkline.js
[ $OPT_NODT -gt 0 ] || echo ../scripts/jquery.dataTables.js
[ $OPT_NODT -gt 0 ] || echo ../scripts/dataTables.scroller.js
[ $OPT_NODT -gt 0 ] || echo ../scripts/ui.multiselect.js
[ $OPT_ENQU -gt 0 ] && echo ../scripts/qunit.js
) | xargs cat \
| sed 's#/\*!#/\* #g' \
| ( [ $OPT_ENQU -gt 0 ] && cat || grep -v -- '-##QUNIT##-' ) \
| perl -ne 'print $_ unless ($_ =~ /(?<!_[.])_PlasticBug/)' \
| perl -ne 'if ($.==1){print $ENV{COPYRIGHT}.$_;}else{print $_}' \
| java -jar ../NOT-PLASTIC/yuicompressor-2.4.8.jar --type js -o pdmk-min.js

(
[ $OPT_ENQU -gt 0 ] && echo ../style/qunit.css
echo ../style/PlasticStyle.css
[ $OPT_NOJQ -gt 0 ] || echo ../style/jquery-ui.css
[ $OPT_NODY -gt 0 ] || echo ../skin/dynatree.css
[ $OPT_NOCM -gt 0 ] || echo ../style/jquery.contextMenu.css
[ $OPT_NODT -gt 0 ] || echo ../style/jquery.dataTables.css
[ $OPT_NODT -gt 0 ] || echo ../style/ui.multiselect.css
) | xargs cat \
| sed 's#/\*!#/\*#g' \
| perl -ne 'if ($.==1){print $ENV{COPYRIGHT}.$_;}else{print $_}' \
| java -jar ../NOT-PLASTIC/yuicompressor-2.4.8.jar --type css -o pdmk-min.css

echo "Copying minified files:"
cp -v pdmk-min.js ../scripts/
cp -v pdmk-min.css ../style/


26 changes: 26 additions & 0 deletions MINIFY/pdmk-min.css

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions MINIFY/pdmk-min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions NOT-PLASTIC/google-code-prettify/lang-apollo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions NOT-PLASTIC/google-code-prettify/lang-basic.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions NOT-PLASTIC/google-code-prettify/lang-clj.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
Copyright (C) 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
var a=null;
PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a],
["typ",/^:[\dA-Za-z-]+/]]),["clj"]);
2 changes: 2 additions & 0 deletions NOT-PLASTIC/google-code-prettify/lang-css.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions NOT-PLASTIC/google-code-prettify/lang-dart.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions NOT-PLASTIC/google-code-prettify/lang-erlang.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions NOT-PLASTIC/google-code-prettify/lang-go.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions NOT-PLASTIC/google-code-prettify/lang-hs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions NOT-PLASTIC/google-code-prettify/lang-lisp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions NOT-PLASTIC/google-code-prettify/lang-llvm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions NOT-PLASTIC/google-code-prettify/lang-lua.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d93e801

Please sign in to comment.