old_sql 1.16.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +24 -13
- data/app/controllers/old_sql/report_controller.rb +3 -17
- data/app/views/layouts/old_sql/chart.html.erb +11 -0
- data/app/views/old_sql/report/chart.html.erb +8 -25
- data/lib/generators/old_sql/templates/user_design_template.csv +2 -3
- data/lib/generators/old_sql/templates/user_old_sql_demo_chart_design.yml +18 -9
- data/lib/old_sql/report_design/chart.rb +2 -2
- data/lib/old_sql/report_design/chart_item.rb +4 -4
- data/lib/old_sql/report_design/chart_parser.rb +2 -2
- data/public/javascripts/old_sql/chart.js +33 -0
- metadata +5 -265
- data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +0 -362
- data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +0 -69
- data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +0 -179
- data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +0 -17
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +0 -814
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +0 -1703
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +0 -755
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +0 -1197
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +0 -168
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +0 -187
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +0 -300
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +0 -524
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +0 -420
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +0 -142
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +0 -240
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +0 -508
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +0 -244
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +0 -385
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +0 -384
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +0 -1161
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +0 -447
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +0 -113
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +0 -767
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +0 -1445
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +0 -651
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +0 -1143
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +0 -145
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +0 -197
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +0 -258
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +0 -454
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +0 -348
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +0 -128
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +0 -26
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +0 -203
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +0 -498
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +0 -186
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +0 -353
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +0 -362
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +0 -895
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +0 -83
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +0 -69
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +0 -401
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +0 -10
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +0 -96
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +0 -4
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +0 -95
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +0 -31
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +0 -23
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +0 -150
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +0 -42
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +0 -90
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +0 -29
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +0 -189
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +0 -28
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +0 -73
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +0 -36
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +0 -65
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +0 -31
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +0 -18
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +0 -61
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +0 -67
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +0 -67
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +0 -30
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +0 -483
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +0 -62
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +0 -71
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +0 -150
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +0 -88
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +0 -373
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +0 -78
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +0 -5
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +0 -85
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +0 -46
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +0 -78
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +0 -11
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +0 -74
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +0 -73
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +0 -125
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +0 -88
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +0 -17
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +0 -59
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +0 -28
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +0 -3
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +0 -19
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +0 -45
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +0 -119
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +0 -43
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +0 -91
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +0 -93
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +0 -64
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +0 -71
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +0 -66
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +0 -203
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +0 -177
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +0 -339
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +0 -30
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +0 -31
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +0 -22
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +0 -23
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +0 -71
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +0 -29
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +0 -61
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +0 -622
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +0 -1
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +0 -19
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +0 -70
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +0 -130
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +0 -48
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +0 -682
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +0 -1489
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +0 -863
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +0 -1256
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +0 -222
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +0 -793
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +0 -304
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +0 -844
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +0 -315
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +0 -353
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +0 -188
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +0 -115
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +0 -236
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +0 -415
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +0 -897
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +0 -589
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +0 -594
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +0 -162
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +0 -2026
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +0 -18
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +0 -7829
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +0 -6
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +0 -251
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +0 -381
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +0 -159
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +0 -28
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +0 -6
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +0 -25
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +0 -16
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +0 -577
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +0 -137
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +0 -52
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +0 -30
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +0 -89
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +0 -186
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +0 -88
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +0 -408
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +0 -1
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +0 -34
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +0 -84
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +0 -48
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +0 -363
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +0 -39
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +0 -54
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +0 -39
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +0 -38
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +0 -32
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +0 -40
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +0 -18
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +0 -295
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +0 -43
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +0 -223
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +0 -197
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +0 -481
- data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +0 -28
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +0 -406
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +0 -683
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +0 -161
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +0 -756
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +0 -151
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +0 -2177
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +0 -705
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +0 -348
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +0 -247
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +0 -9
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +0 -723
- data/public/javascripts/old_sql/plotkit-0.9.1/README +0 -1
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +0 -2
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +0 -2
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +0 -302
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +0 -139
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +0 -172
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +0 -81
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +0 -155
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +0 -50
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +0 -428
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +0 -330
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +0 -368
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +0 -256
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +0 -436
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +0 -299
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +0 -159
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +0 -64
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +0 -131
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +0 -34
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +0 -131
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +0 -34
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +0 -334
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +0 -151
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +0 -304
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +0 -144
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +0 -62
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +0 -37
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +0 -58
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +0 -31
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +0 -25
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +0 -143
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +0 -56
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +0 -58
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +0 -133
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +0 -57
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +0 -136
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +0 -161
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +0 -38
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +0 -43
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +0 -28
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +0 -29
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +0 -53
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +0 -29
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +0 -61
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +0 -57
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +0 -6
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +0 -29
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +0 -141
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +0 -26
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +0 -147
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +0 -24
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +0 -89
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +0 -66
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +0 -20
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +0 -31
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
h1 {
|
|
2
|
-
font-size: 2em;
|
|
3
|
-
color: #4B4545;
|
|
4
|
-
text-align: center;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
table.datagrid {
|
|
8
|
-
width: 100%;
|
|
9
|
-
border-collapse: collapse;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
table.datagrid thead th {
|
|
13
|
-
text-align: left;
|
|
14
|
-
background-color: #4B4545;
|
|
15
|
-
background-repeat: no-repeat;
|
|
16
|
-
background-position: right center;
|
|
17
|
-
color: white;
|
|
18
|
-
font-weight: bold;
|
|
19
|
-
padding: .3em .7em;
|
|
20
|
-
font-size: .9em;
|
|
21
|
-
padding-right: 5px;
|
|
22
|
-
background-repeat: no-repeat;
|
|
23
|
-
background-position: 95% right;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
table.datagrid thead th a {
|
|
27
|
-
color: white;
|
|
28
|
-
text-decoration: none;
|
|
29
|
-
font-size: 1.0em;
|
|
30
|
-
background-repeat: no-repeat;
|
|
31
|
-
background-position: center right;
|
|
32
|
-
padding-right: 15px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
table.datagrid thead th.over {
|
|
36
|
-
background-color: #746B6B;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
table.datagrid tbody th {
|
|
41
|
-
font-weight: bold;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
table.datagrid tbody td, table.datagrid tbody th {
|
|
45
|
-
text-align: left;
|
|
46
|
-
padding: .3em .7em;
|
|
47
|
-
border-bottom: 1px solid #eee;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
table.datagrid tbody tr.alternate td, table.datagrid tbody tr.alternate th {
|
|
51
|
-
background-color: #f1f1f1;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
table.datagrid tfoot td, table.datagrid tfoot th {
|
|
55
|
-
background-color: #FFFEE3;
|
|
56
|
-
color: #4B4545;
|
|
57
|
-
padding: .5em;
|
|
58
|
-
font-weight: bold;
|
|
59
|
-
border-top: 2px solid #4B4545;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
table.datagrid tfoot th { text-align: left; }
|
|
63
|
-
|
|
64
|
-
table.datagrid tfoot td { }
|
|
65
|
-
|
|
66
|
-
.invisible { display: none; }
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
On page load, the SortableManager:
|
|
4
|
-
|
|
5
|
-
- Finds the table by its id (sortable_table).
|
|
6
|
-
- Parses its thead for columns with a "mochi:format" attribute.
|
|
7
|
-
- Parses the data out of the tbody based upon information given in the
|
|
8
|
-
"mochi:format" attribute, and clones the tr elements for later re-use.
|
|
9
|
-
- Clones the column header th elements for use as a template when drawing
|
|
10
|
-
sort arrow columns.
|
|
11
|
-
- Stores away a reference to the tbody, as it will be replaced on each sort.
|
|
12
|
-
- Performs the first sort.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
On sort request:
|
|
16
|
-
|
|
17
|
-
- Sorts the data based on the given key and direction
|
|
18
|
-
- Creates a new tbody from the rows in the new ordering
|
|
19
|
-
- Replaces the column header th elements with clickable versions, adding an
|
|
20
|
-
indicator (↑ or ↓) to the most recently sorted column.
|
|
21
|
-
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
SortableManager = function () {
|
|
25
|
-
this.thead = null;
|
|
26
|
-
this.tbody = null;
|
|
27
|
-
this.columns = [];
|
|
28
|
-
this.rows = [];
|
|
29
|
-
this.sortState = {};
|
|
30
|
-
this.sortkey = 0;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
mouseOverFunc = function () {
|
|
34
|
-
addElementClass(this, "over");
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
mouseOutFunc = function () {
|
|
38
|
-
removeElementClass(this, "over");
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
ignoreEvent = function (ev) {
|
|
42
|
-
if (ev && ev.preventDefault) {
|
|
43
|
-
ev.preventDefault();
|
|
44
|
-
ev.stopPropagation();
|
|
45
|
-
} else if (typeof(event) != 'undefined') {
|
|
46
|
-
event.cancelBubble = false;
|
|
47
|
-
event.returnValue = false;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
update(SortableManager.prototype, {
|
|
53
|
-
|
|
54
|
-
"initWithTable": function (table) {
|
|
55
|
-
/***
|
|
56
|
-
|
|
57
|
-
Initialize the SortableManager with a table object
|
|
58
|
-
|
|
59
|
-
***/
|
|
60
|
-
// Ensure that it's a DOM element
|
|
61
|
-
table = getElement(table);
|
|
62
|
-
// Find the thead
|
|
63
|
-
this.thead = table.getElementsByTagName('thead')[0];
|
|
64
|
-
// get the mochi:format key and contents for each column header
|
|
65
|
-
var cols = this.thead.getElementsByTagName('th');
|
|
66
|
-
for (var i = 0; i < cols.length; i++) {
|
|
67
|
-
var node = cols[i];
|
|
68
|
-
var attr = null;
|
|
69
|
-
try {
|
|
70
|
-
attr = node.getAttribute("mochi:format");
|
|
71
|
-
} catch (err) {
|
|
72
|
-
// pass
|
|
73
|
-
}
|
|
74
|
-
var o = node.childNodes;
|
|
75
|
-
this.columns.push({
|
|
76
|
-
"format": attr,
|
|
77
|
-
"element": node,
|
|
78
|
-
"proto": node.cloneNode(true)
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
// scrape the tbody for data
|
|
82
|
-
this.tbody = table.getElementsByTagName('tbody')[0];
|
|
83
|
-
// every row
|
|
84
|
-
var rows = this.tbody.getElementsByTagName('tr');
|
|
85
|
-
for (var i = 0; i < rows.length; i++) {
|
|
86
|
-
// every cell
|
|
87
|
-
var row = rows[i];
|
|
88
|
-
var cols = row.getElementsByTagName('td');
|
|
89
|
-
var rowData = [];
|
|
90
|
-
for (var j = 0; j < cols.length; j++) {
|
|
91
|
-
// scrape the text and build the appropriate object out of it
|
|
92
|
-
var cell = cols[j];
|
|
93
|
-
var obj = scrapeText(cell);
|
|
94
|
-
switch (this.columns[j].format) {
|
|
95
|
-
case 'isodate':
|
|
96
|
-
obj = isoDate(obj);
|
|
97
|
-
break;
|
|
98
|
-
case 'str':
|
|
99
|
-
break;
|
|
100
|
-
case 'istr':
|
|
101
|
-
obj = obj.toLowerCase();
|
|
102
|
-
break;
|
|
103
|
-
// cases for numbers, etc. could be here
|
|
104
|
-
default:
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
rowData.push(obj);
|
|
108
|
-
}
|
|
109
|
-
// stow away a reference to the TR and save it
|
|
110
|
-
rowData.row = row.cloneNode(true);
|
|
111
|
-
this.rows.push(rowData);
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// do initial sort on first column
|
|
116
|
-
this.drawSortedRows(this.sortkey, true, false);
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
"onSortClick": function (name) {
|
|
121
|
-
/***
|
|
122
|
-
|
|
123
|
-
Return a sort function for click events
|
|
124
|
-
|
|
125
|
-
***/
|
|
126
|
-
return method(this, function () {
|
|
127
|
-
log('onSortClick', name);
|
|
128
|
-
var order = this.sortState[name];
|
|
129
|
-
if (order == null) {
|
|
130
|
-
order = true;
|
|
131
|
-
} else if (name == this.sortkey) {
|
|
132
|
-
order = !order;
|
|
133
|
-
}
|
|
134
|
-
this.drawSortedRows(name, order, true);
|
|
135
|
-
});
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
"drawSortedRows": function (key, forward, clicked) {
|
|
139
|
-
/***
|
|
140
|
-
|
|
141
|
-
Draw the new sorted table body, and modify the column headers
|
|
142
|
-
if appropriate
|
|
143
|
-
|
|
144
|
-
***/
|
|
145
|
-
log('drawSortedRows', key, forward);
|
|
146
|
-
this.sortkey = key;
|
|
147
|
-
// sort based on the state given (forward or reverse)
|
|
148
|
-
var cmp = (forward ? keyComparator : reverseKeyComparator);
|
|
149
|
-
this.rows.sort(cmp(key));
|
|
150
|
-
// save it so we can flip next time
|
|
151
|
-
this.sortState[key] = forward;
|
|
152
|
-
// get every "row" element from this.rows and make a new tbody
|
|
153
|
-
var newBody = TBODY(null, map(itemgetter("row"), this.rows));
|
|
154
|
-
// swap in the new tbody
|
|
155
|
-
this.tbody = swapDOM(this.tbody, newBody);
|
|
156
|
-
for (var i = 0; i < this.columns.length; i++) {
|
|
157
|
-
var col = this.columns[i];
|
|
158
|
-
var node = col.proto.cloneNode(true);
|
|
159
|
-
// remove the existing events to minimize IE leaks
|
|
160
|
-
col.element.onclick = null;
|
|
161
|
-
col.element.onmousedown = null;
|
|
162
|
-
col.element.onmouseover = null;
|
|
163
|
-
col.element.onmouseout = null;
|
|
164
|
-
// set new events for the new node
|
|
165
|
-
node.onclick = this.onSortClick(i);
|
|
166
|
-
node.onmousedown = ignoreEvent;
|
|
167
|
-
node.onmouseover = mouseOverFunc;
|
|
168
|
-
node.onmouseout = mouseOutFunc;
|
|
169
|
-
// if this is the sorted column
|
|
170
|
-
if (key == i) {
|
|
171
|
-
// \u2193 is down arrow, \u2191 is up arrow
|
|
172
|
-
// forward sorts mean the rows get bigger going down
|
|
173
|
-
var arrow = (forward ? "\u2193" : "\u2191");
|
|
174
|
-
// add the character to the column header
|
|
175
|
-
node.appendChild(SPAN(null, arrow));
|
|
176
|
-
if (clicked) {
|
|
177
|
-
node.onmouseover();
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
// swap in the new th
|
|
182
|
-
col.element = swapDOM(col.element, node);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
sortableManager = new SortableManager();
|
|
188
|
-
|
|
189
|
-
addLoadEvent(function () {
|
|
190
|
-
sortableManager.initWithTable('sortable_table');
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
// rewrite the view-source links
|
|
194
|
-
addLoadEvent(function () {
|
|
195
|
-
var elems = getElementsByTagAndClassName("A", "view-source");
|
|
196
|
-
var page = "sortable_tables/";
|
|
197
|
-
for (var i = 0; i < elems.length; i++) {
|
|
198
|
-
var elem = elems[i];
|
|
199
|
-
var href = elem.href.split(/\//).pop();
|
|
200
|
-
elem.target = "_blank";
|
|
201
|
-
elem.href = "../view-source/view-source.html#" + page + href;
|
|
202
|
-
}
|
|
203
|
-
});
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* Main style for the table */
|
|
3
|
-
|
|
4
|
-
.dp-highlighter {
|
|
5
|
-
width: 100%;
|
|
6
|
-
overflow: auto;
|
|
7
|
-
line-height: 100% !important;
|
|
8
|
-
margin: 18px 0px 18px 0px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.dp-highlighter table {
|
|
12
|
-
width: 100%;
|
|
13
|
-
margin: 2px 0px 2px 0px;
|
|
14
|
-
border-collapse: collapse;
|
|
15
|
-
border-bottom: 2px solid #eee;
|
|
16
|
-
background-color: #fff;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.dp-highlighter tbody.hide { display: none; }
|
|
20
|
-
.dp-highlighter tbody.show { display: table-row-group; _display: block; }
|
|
21
|
-
|
|
22
|
-
.dp-highlighter td
|
|
23
|
-
{
|
|
24
|
-
font-family: Courier New;
|
|
25
|
-
font-size: 11px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Styles for the tools */
|
|
29
|
-
|
|
30
|
-
.dp-highlighter .tools-corner {
|
|
31
|
-
background-color: #eee;
|
|
32
|
-
font-size: 9px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.dp-highlighter .tools {
|
|
36
|
-
background-color: #eee;
|
|
37
|
-
padding: 3px 8px 3px 10px;
|
|
38
|
-
border-bottom: 1px solid gray;
|
|
39
|
-
font: 9px Verdana, Geneva, Arial, Helvetica, sans-serif;
|
|
40
|
-
color: silver;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.dp-highlighter .tools-corner {
|
|
44
|
-
background-color: #eee;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.dp-highlighter .tools a {
|
|
48
|
-
font-size: 9px;
|
|
49
|
-
color: gray;
|
|
50
|
-
text-decoration: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.dp-highlighter .tools a:hover {
|
|
54
|
-
color: red;
|
|
55
|
-
text-decoration: underline;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* Gutter with line number */
|
|
59
|
-
|
|
60
|
-
.dp-highlighter .gutter {
|
|
61
|
-
padding-right: 5px;
|
|
62
|
-
padding-left: 10px;
|
|
63
|
-
width: 5px;
|
|
64
|
-
background-color: #eee;
|
|
65
|
-
border-right: 1px solid gray;
|
|
66
|
-
color: gray;
|
|
67
|
-
text-align: right;
|
|
68
|
-
vertical-align: top;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Single line style */
|
|
72
|
-
|
|
73
|
-
.dp-highlighter .line1, .line2 {
|
|
74
|
-
padding-left: 10px;
|
|
75
|
-
border-bottom: 1px solid #F7F7F7;
|
|
76
|
-
white-space:nowrap;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.dp-highlighter .line2 {
|
|
80
|
-
background-color: #F7F7F7;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/* About dialog styles */
|
|
84
|
-
|
|
85
|
-
.dp-about {
|
|
86
|
-
background-color: #fff;
|
|
87
|
-
margin: 0px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.dp-about table {
|
|
91
|
-
width: 100%;
|
|
92
|
-
height: 100%;
|
|
93
|
-
font-size: 11px;
|
|
94
|
-
font-family: Tahoma, Verdana, Arial, sans-serif !important;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.dp-about td {
|
|
98
|
-
padding: 10px;
|
|
99
|
-
vertical-align: top;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.dp-about .copy {
|
|
103
|
-
border-bottom: 1px solid #ACA899;
|
|
104
|
-
height: 95%;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.dp-about .title {
|
|
108
|
-
color: red;
|
|
109
|
-
font-weight: bold;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.dp-about .para {
|
|
113
|
-
margin-bottom: 4px;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.dp-about .footer {
|
|
117
|
-
background-color: #ECEADB;
|
|
118
|
-
border-top: 1px solid #fff;
|
|
119
|
-
text-align: right;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.dp-about .close {
|
|
123
|
-
font-size: 11px;
|
|
124
|
-
font-family: Tahoma, Verdana, Arial, sans-serif !important;
|
|
125
|
-
background-color: #ECEADB;
|
|
126
|
-
width: 60px;
|
|
127
|
-
height: 22px;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/* Language specific styles */
|
|
131
|
-
|
|
132
|
-
.dp-c {}
|
|
133
|
-
.dp-c .comment { color: green; }
|
|
134
|
-
.dp-c .string { color: blue; }
|
|
135
|
-
.dp-c .preprocessor { color: gray; }
|
|
136
|
-
.dp-c .keyword { color: blue; }
|
|
137
|
-
.dp-c .vars { color: #d00; }
|
|
138
|
-
|
|
139
|
-
.dp-vb {}
|
|
140
|
-
.dp-vb .comment { color: green; }
|
|
141
|
-
.dp-vb .string { color: blue; }
|
|
142
|
-
.dp-vb .preprocessor { color: gray; }
|
|
143
|
-
.dp-vb .keyword { color: blue; }
|
|
144
|
-
|
|
145
|
-
.dp-sql {}
|
|
146
|
-
.dp-sql .comment { color: green; }
|
|
147
|
-
.dp-sql .string { color: red; }
|
|
148
|
-
.dp-sql .keyword { color: blue; }
|
|
149
|
-
.dp-sql .func { color: #ff1493; }
|
|
150
|
-
.dp-sql .op { color: #808080; }
|
|
151
|
-
|
|
152
|
-
.dp-xml {}
|
|
153
|
-
.dp-xml .cdata { color: #ff1493; }
|
|
154
|
-
.dp-xml .comments { color: green; }
|
|
155
|
-
.dp-xml .tag { color: blue; }
|
|
156
|
-
.dp-xml .tag-name { color: black; font-weight: bold; }
|
|
157
|
-
.dp-xml .attribute { color: red; }
|
|
158
|
-
.dp-xml .attribute-value { color: blue; }
|
|
159
|
-
|
|
160
|
-
.dp-delphi {}
|
|
161
|
-
.dp-delphi .comment { color: #008200; font-style: italic; }
|
|
162
|
-
.dp-delphi .string { color: blue; }
|
|
163
|
-
.dp-delphi .number { color: blue; }
|
|
164
|
-
.dp-delphi .directive { color: #008284; }
|
|
165
|
-
.dp-delphi .keyword { font-weight: bold; color: navy; }
|
|
166
|
-
.dp-delphi .vars { color: #000; }
|
|
167
|
-
|
|
168
|
-
.dp-py {}
|
|
169
|
-
.dp-py .comment { color: green; }
|
|
170
|
-
.dp-py .string { color: red; }
|
|
171
|
-
.dp-py .docstring { color: brown; }
|
|
172
|
-
.dp-py .keyword { color: blue; font-weight: bold;}
|
|
173
|
-
.dp-py .builtins { color: #ff1493; }
|
|
174
|
-
.dp-py .magicmethods { color: #808080; }
|
|
175
|
-
.dp-py .exceptions { color: brown; }
|
|
176
|
-
.dp-py .types { color: brown; font-style: italic; }
|
|
177
|
-
.dp-py .commonlibs { color: #8A2BE2; font-style: italic; }
|
data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html
DELETED
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
2
|
-
"http://www.w3.org/TR/html4/loose.dtd">
|
|
3
|
-
<html>
|
|
4
|
-
<head>
|
|
5
|
-
<title>dp.SyntaxHighlighter testing</title>
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
7
|
-
|
|
8
|
-
<link type="text/css" rel="stylesheet" href="SyntaxHighlighter.css"></link>
|
|
9
|
-
|
|
10
|
-
<style>
|
|
11
|
-
/* @import url(SyntaxHighlighter.css); */
|
|
12
|
-
|
|
13
|
-
body {
|
|
14
|
-
font-family: Arial;
|
|
15
|
-
font-size: 12px;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
</head>
|
|
19
|
-
|
|
20
|
-
<body bgcolor="#cecece">
|
|
21
|
-
|
|
22
|
-
<h3>Smart Tabs & First Line</h3>
|
|
23
|
-
|
|
24
|
-
<textarea name="code" class="c#:firstline[42]">
|
|
25
|
-
1 2 3 4 5 6 7 8 9
|
|
26
|
-
string path = "";
|
|
27
|
-
string safeReferrer = null;
|
|
28
|
-
FileInfo fileInfo = new FileInfo(string.Format("{0}/{1}", path, image));
|
|
29
|
-
int index = 0;
|
|
30
|
-
</textarea>
|
|
31
|
-
|
|
32
|
-
<h3>C Sharp</h3>
|
|
33
|
-
|
|
34
|
-
<textarea name="code" class="c#:collapse">
|
|
35
|
-
// single line comments
|
|
36
|
-
// second single line
|
|
37
|
-
override protected void OnLoad(EventArgs e)
|
|
38
|
-
{
|
|
39
|
-
if(Attributes["class"] != null)
|
|
40
|
-
{
|
|
41
|
-
//_year.CssClass = _month.CssClass = _day.CssClass = Attributes["class"];
|
|
42
|
-
}
|
|
43
|
-
// base.OnLoad(e);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/***********************************
|
|
47
|
-
** Multiline block comments
|
|
48
|
-
**********************************/
|
|
49
|
-
|
|
50
|
-
/// <summary>
|
|
51
|
-
/// Gets or sets currently selected date of birth or <see cref="DateTime.MinValue"/> if selection is incomplete or invalid.
|
|
52
|
-
/// </summary>
|
|
53
|
-
public DateTime Date
|
|
54
|
-
{
|
|
55
|
-
String stringWithUrl = "http://blog.dreamprojections.com";
|
|
56
|
-
|
|
57
|
-
get
|
|
58
|
-
{
|
|
59
|
-
#region Hello world
|
|
60
|
-
try
|
|
61
|
-
{
|
|
62
|
-
/*
|
|
63
|
-
DateTime result = new DateTime(
|
|
64
|
-
int.Parse(_year.SelectedItem.Value),
|
|
65
|
-
int.Parse(_month.SelectedItem.Value),
|
|
66
|
-
int.Parse(_day.SelectedItem.Value)
|
|
67
|
-
);
|
|
68
|
-
|
|
69
|
-
i *= 2;
|
|
70
|
-
*/
|
|
71
|
-
return result;
|
|
72
|
-
}
|
|
73
|
-
catch
|
|
74
|
-
{
|
|
75
|
-
/* return _minDate; */
|
|
76
|
-
}
|
|
77
|
-
#endregion
|
|
78
|
-
}
|
|
79
|
-
set
|
|
80
|
-
{
|
|
81
|
-
Day = value.Day;
|
|
82
|
-
Month = value.Month;
|
|
83
|
-
Year = value.Year;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
</textarea>
|
|
87
|
-
|
|
88
|
-
<h3>JavaScript</h3>
|
|
89
|
-
|
|
90
|
-
<textarea name="code" class="javascript">
|
|
91
|
-
/***********************************
|
|
92
|
-
** Multiline block comments
|
|
93
|
-
**********************************/
|
|
94
|
-
|
|
95
|
-
var stringWithUrl1 = "http://blog.dreamprojections.com";
|
|
96
|
-
var stringWithUrl2 = 'http://www.dreamprojections.com';
|
|
97
|
-
|
|
98
|
-
// callback for the match sorting
|
|
99
|
-
dpSyntaxHighlighter.prototype.SortCallback = function(m1, m2)
|
|
100
|
-
{
|
|
101
|
-
// sort matches by index first
|
|
102
|
-
if(m1.index < m2.index)
|
|
103
|
-
return -1;
|
|
104
|
-
else if(m1.index > m2.index)
|
|
105
|
-
return 1;
|
|
106
|
-
else
|
|
107
|
-
{
|
|
108
|
-
/*
|
|
109
|
-
// if index is the same, sort by length
|
|
110
|
-
if(m1.length < m2.length)
|
|
111
|
-
return -1;
|
|
112
|
-
else if(m1.length > m2.length)
|
|
113
|
-
return 1;
|
|
114
|
-
*/
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
alert('hello // world');
|
|
118
|
-
return 0;
|
|
119
|
-
}
|
|
120
|
-
</textarea>
|
|
121
|
-
|
|
122
|
-
<h3>Visual Basic</h3>
|
|
123
|
-
|
|
124
|
-
<textarea name="code" class="vb">
|
|
125
|
-
'
|
|
126
|
-
' This is a VB test
|
|
127
|
-
'
|
|
128
|
-
|
|
129
|
-
Imports System.Collections
|
|
130
|
-
|
|
131
|
-
Dim stringWithUrl = "http://blog.dreamprojections.com"
|
|
132
|
-
|
|
133
|
-
Public Class MyVbClass
|
|
134
|
-
Private m_MyString As String
|
|
135
|
-
|
|
136
|
-
Public Sub New()
|
|
137
|
-
myString = "Hello there"
|
|
138
|
-
End Sub
|
|
139
|
-
|
|
140
|
-
Public Property MyString() As String
|
|
141
|
-
Get
|
|
142
|
-
Return m_MyString
|
|
143
|
-
End Get
|
|
144
|
-
Set(ByVal Value As String)
|
|
145
|
-
m_MyString = Value
|
|
146
|
-
End Set
|
|
147
|
-
End Property
|
|
148
|
-
|
|
149
|
-
#Region "This is my region"
|
|
150
|
-
' This is a comment
|
|
151
|
-
Public Function MyFunction( ByVal i as Integer ) As Double
|
|
152
|
-
MyFunction = 123.456
|
|
153
|
-
End Function
|
|
154
|
-
#End Region
|
|
155
|
-
End Class
|
|
156
|
-
</textarea>
|
|
157
|
-
|
|
158
|
-
<h3>XML / HTML</h3>
|
|
159
|
-
|
|
160
|
-
<textarea name="code" class="xml">
|
|
161
|
-
<?xml version="1.0" encoding="utf-8" ?>
|
|
162
|
-
|
|
163
|
-
<!-- comments -->
|
|
164
|
-
<rootNode>
|
|
165
|
-
<childNodes>
|
|
166
|
-
<childNode attribute = "value" attribute='value' attribute=/>
|
|
167
|
-
<childNode />
|
|
168
|
-
<childNode />
|
|
169
|
-
<childNode />
|
|
170
|
-
<childNode attribute="value"></childNode>
|
|
171
|
-
<childNode>
|
|
172
|
-
<![CDATA[
|
|
173
|
-
this is some CDATA content
|
|
174
|
-
<!-- comments inside cdata -->
|
|
175
|
-
<b alert='false'>tags inside cdata</b>
|
|
176
|
-
]]>
|
|
177
|
-
</childNode>
|
|
178
|
-
</childNodes>
|
|
179
|
-
</rootNode>
|
|
180
|
-
|
|
181
|
-
<!--
|
|
182
|
-
-- Multiline comments <b>tag</b>
|
|
183
|
-
-->
|
|
184
|
-
</textarea>
|
|
185
|
-
|
|
186
|
-
<h3>PHP</h3>
|
|
187
|
-
|
|
188
|
-
<textarea name="code" class="php">
|
|
189
|
-
/***********************************
|
|
190
|
-
** Multiline block comments
|
|
191
|
-
**********************************/
|
|
192
|
-
|
|
193
|
-
$stringWithUrl = "http://blog.dreamprojections.com";
|
|
194
|
-
$stringWithUrl = 'http://www.dreamprojections.com';
|
|
195
|
-
|
|
196
|
-
ob_start("parseOutputBuffer"); // Start Code Buffering
|
|
197
|
-
session_start();
|
|
198
|
-
|
|
199
|
-
function parseOutputBuffer($buf) {
|
|
200
|
-
global $portal_small_code, $portal_gzcompress;
|
|
201
|
-
global $PHP_SELF, $HTTP_ACCEPT_ENCODING;
|
|
202
|
-
|
|
203
|
-
// cleaning out the code.
|
|
204
|
-
if($portal_small_code && !$portal_gzcompress) {
|
|
205
|
-
$buf = str_replace(" ", "", $buf);
|
|
206
|
-
$buf = str_replace("\n", "", $buf);
|
|
207
|
-
$buf = str_replace(chr(13), "", $buf);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
</textarea>
|
|
211
|
-
|
|
212
|
-
<h3>SQL</h3>
|
|
213
|
-
|
|
214
|
-
<textarea name="code" class="sql">
|
|
215
|
-
SELECT TOP 10
|
|
216
|
-
FirstName,
|
|
217
|
-
LastName,
|
|
218
|
-
Email,
|
|
219
|
-
--SUBSTRING(Phone, 2, 3) AS CityCode,
|
|
220
|
-
SUBSTRING(Phone, 7, 8) AS PhoneNumber,
|
|
221
|
-
upper(LanguagePref) AS Language,
|
|
222
|
-
Address1,
|
|
223
|
-
UpdatedOn AS CreatedOn
|
|
224
|
-
FROM
|
|
225
|
-
profiles
|
|
226
|
-
WHERE
|
|
227
|
-
-- Exclude all test emails
|
|
228
|
-
Email NOT LIKE '%test%'
|
|
229
|
-
AND Email NOT LIKE '%asdf%'
|
|
230
|
-
ORDER BY
|
|
231
|
-
UpdatedOn DESC
|
|
232
|
-
</textarea>
|
|
233
|
-
|
|
234
|
-
<h3>Delphi</h3>
|
|
235
|
-
|
|
236
|
-
<textarea name="code" id="dd" class="delphi">
|
|
237
|
-
{$IFDEF VER140}
|
|
238
|
-
(***********************************
|
|
239
|
-
** Multiline block comments
|
|
240
|
-
**********************************)
|
|
241
|
-
procedure TForm1.Button1Click(Sender: TObject); var
|
|
242
|
-
Number, I, X: Integer;
|
|
243
|
-
Y: Integer;
|
|
244
|
-
begin
|
|
245
|
-
str := 'http://blog.dreamprojections.com';
|
|
246
|
-
|
|
247
|
-
Number := 12356;
|
|
248
|
-
Caption := 'The Number is ' + IntToStr(Number);
|
|
249
|
-
for I := 0 to Number do
|
|
250
|
-
begin
|
|
251
|
-
Inc(X);
|
|
252
|
-
{
|
|
253
|
-
Dec(X);
|
|
254
|
-
X := X * 1.0;
|
|
255
|
-
}
|
|
256
|
-
Y := $F5D3;
|
|
257
|
-
ListBox1.Items.Add(IntToStr(X));
|
|
258
|
-
|
|
259
|
-
(*
|
|
260
|
-
ShowMessage('Hello'); *)
|
|
261
|
-
end;
|
|
262
|
-
asm
|
|
263
|
-
MOV AX,1234H
|
|
264
|
-
// MOV Number,AX
|
|
265
|
-
end;
|
|
266
|
-
end;
|
|
267
|
-
</textarea>
|
|
268
|
-
|
|
269
|
-
<h3>Python</h3>
|
|
270
|
-
|
|
271
|
-
<textarea name="code" class="python:nogutter:nocontrols">
|
|
272
|
-
cache = {}
|
|
273
|
-
|
|
274
|
-
string s = "## comments inside a string"
|
|
275
|
-
|
|
276
|
-
def arrange(plans, lines, totalMinutes):
|
|
277
|
-
"""arrangements of plans taken lines times with an heuristic that the sum
|
|
278
|
-
of values in one arrangement is less then totalMinutes
|
|
279
|
-
"""
|
|
280
|
-
#if in cache we are done otherwise start calculating and save them to cache
|
|
281
|
-
if (plans, lines, totalMinutes) in cache:
|
|
282
|
-
return cache[(plans, lines, totalMinutes)]
|
|
283
|
-
if lines==1:
|
|
284
|
-
r = [[plan] for plan in plans]
|
|
285
|
-
cache[(plans, lines, totalMinutes)] = r
|
|
286
|
-
return r
|
|
287
|
-
solutions = []
|
|
288
|
-
for plan in plans:
|
|
289
|
-
for ar in sort(list(arrange(plans, lines-1, totalMinutes))):
|
|
290
|
-
try:
|
|
291
|
-
one_solution = tuple(sort([plan] + list(ar)))
|
|
292
|
-
if sum(one_solution) <= totalMinutes and one_solution not in solutions:
|
|
293
|
-
solutions.append(one_solution)
|
|
294
|
-
except Exception, e:
|
|
295
|
-
print "Error:", str(e)
|
|
296
|
-
cache[(plans, lines, totalMinutes)] = solutions
|
|
297
|
-
return solutions
|
|
298
|
-
|
|
299
|
-
if __name__ == "__main__":
|
|
300
|
-
import sys
|
|
301
|
-
lines, totalMinutes = int(sys.argv[1]), int(sys.argv[2])
|
|
302
|
-
plans = tuple([int(p) for p in sys.argv[3:]])
|
|
303
|
-
print "for", lines, totalMinutes, plans
|
|
304
|
-
for sol in arrange(plans, lines, totalMinutes):
|
|
305
|
-
print sol
|
|
306
|
-
</textarea>
|
|
307
|
-
|
|
308
|
-
<h3>Auto Overflow Test</h3>
|
|
309
|
-
|
|
310
|
-
400px
|
|
311
|
-
<div style="width: 400px; border-top: 2px solid black;">
|
|
312
|
-
|
|
313
|
-
<textarea id="Textarea1" name="code" class="xml">
|
|
314
|
-
// this is a long line that will stretch the whole box causing it to scroll horizontally.
|
|
315
|
-
if($portal_small_code && !$portal_gzcompress) {
|
|
316
|
-
$buf = str_replace(" ", "", $buf);
|
|
317
|
-
$buf = str_replace("\n", "", $buf);
|
|
318
|
-
$buf = str_replace(chr(13), "", $buf);
|
|
319
|
-
}
|
|
320
|
-
</textarea>
|
|
321
|
-
|
|
322
|
-
</div>
|
|
323
|
-
|
|
324
|
-
</div>
|
|
325
|
-
<script class="javascript" src="shCore.js"></script>
|
|
326
|
-
<script class="javascript" src="shBrushCSharp.js"></script>
|
|
327
|
-
<script class="javascript" src="shBrushPhp.js"></script>
|
|
328
|
-
<script class="javascript" src="shBrushJScript.js"></script>
|
|
329
|
-
<script class="javascript" src="shBrushVb.js"></script>
|
|
330
|
-
<script class="javascript" src="shBrushSql.js"></script>
|
|
331
|
-
<script class="javascript" src="shBrushXml.js"></script>
|
|
332
|
-
<script class="javascript" src="shBrushDelphi.js"></script>
|
|
333
|
-
<script class="javascript" src="shBrushPython.js"></script>
|
|
334
|
-
<script class="javascript">
|
|
335
|
-
dp.SyntaxHighlighter.HighlightAll('code');
|
|
336
|
-
</script>
|
|
337
|
-
|
|
338
|
-
</body>
|
|
339
|
-
</html>
|