Permalink
Browse files

big change: delete legacy files

  • Loading branch information...
1 parent 7c91c3e commit 7b3a9b0b3b53fd79b059133327c5cbbe83adcbc1 @tmtk75 committed Sep 18, 2012
Showing with 2 additions and 7,257 deletions.
  1. +1 −1 .gitignore
  2. +0 −72 app.coffee
  3. +0 −34 lib/css/theme/cool.scss
  4. +0 −25 lib/css/theme/monotone.scss
  5. +0 −121 lib/css/theme/pop.scss
  6. +0 −39 lib/js/legacy/0.1.0/class-diagramSpec.coffee
  7. +0 −114 lib/js/legacy/0.1.0/jumly.DSLSpec.coffee
  8. +0 −85 lib/js/legacy/0.1.0/jumly.attrsSpec.coffee
  9. +0 −187 lib/js/legacy/0.1.0/jumly.commonsSpec.coffee
  10. +0 −105 lib/js/legacy/0.1.0/jumly.diagramSpec.coffee
  11. +0 −36 lib/js/legacy/0.1.0/jumly.iconSpec.coffee
  12. +0 −134 lib/js/legacy/0.1.0/jumly.identificationSpec.coffee
  13. +0 −146 lib/js/legacy/0.1.0/jumly.objectSpec.coffee
  14. +0 −78 lib/js/legacy/0.1.0/jumly.propertySpec.coffee
  15. +0 −442 lib/js/legacy/0.1.0/jumlySpec.coffee
  16. +0 −1,030 lib/js/legacy/0.1.0/sequence-diagramSpec.coffee
  17. +0 −268 lib/js/legacy/0.1.0/sequence.DSLSpec.coffee
  18. +0 −62 lib/js/legacy/0.1.0/sequence.fragment.altSpec.coffee
  19. +0 −23 lib/js/legacy/0.1.0/sequence.fragment.loopSpec.coffee
  20. +0 −352 lib/js/legacy/0.1.0/sequence.fragmentSpec.coffee
  21. +0 −590 lib/js/legacy/0.1.0/sequence.interactionSpec.coffee
  22. +0 −173 lib/js/legacy/0.1.0/sequence.lifelineSpec.coffee
  23. +0 −117 lib/js/legacy/0.1.0/sequence.message.createSpec.coffee
  24. +0 −43 lib/js/legacy/0.1.0/sequence.message.returnSpec.coffee
  25. +0 −590 lib/js/legacy/0.1.0/sequence.messageSpec.coffee
  26. +0 −380 lib/js/legacy/0.1.0/sequence.refSpec.coffee
  27. +0 −23 lib/js/legacy/0.1.0/spec.coffee
  28. +0 −75 lib/js/legacy/0.1.0/usecase-diagramSpec.coffee
  29. +0 −302 lib/js/legacy/0.1.0/usecase.DSLSpec.coffee
  30. +0 −200 lib/js/legacy/0.1.1/JUMLYSpec.coffee
  31. +0 −115 lib/js/legacy/0.1.1/builderSpec.coffee
  32. +0 −97 lib/js/legacy/0.1.1/classSpec.coffee
  33. +0 −34 lib/js/legacy/0.1.1/diagramSpec.coffee
  34. +0 −25 lib/js/legacy/0.1.1/elementSpec.coffee
  35. +0 −132 lib/js/legacy/0.1.1/referingSpec.coffee
  36. +0 −186 lib/js/legacy/0.1.1/sequenceSpec.coffee
  37. +0 −8 lib/js/legacy/0.1.1/spec.coffee
  38. +0 −65 lib/js/legacy/0.1.1/usecaseSpec.coffee
  39. +0 −10 lib/js/legacy/0.1.2/JUMLYHTMLElementSpec.coffee
  40. +0 −23 lib/js/legacy/0.1.2/sequenceSpec.coffee
  41. +0 −2 lib/js/legacy/0.1.2/spec.coffee
  42. +0 −8 lib/js/legacy/NOTE.md
  43. +0 −34 lib/js/legacy/helper.coffee
  44. +0 −235 lib/js/legacy/jasmine-story.coffee
  45. +0 −32 lib/js/spec/layout/ElementLayoutSpec.coffee
  46. +0 −36 lib/js/spec/looks/fullSpec.coffee
  47. +0 −5 lib/js/spec/position/BrowserSpec.coffee
  48. +0 −160 lib/js/spec/position/PositionSpec.coffee
  49. +0 −38 lib/js/spec/position/SequenceDiagramSpec.coffee
  50. +0 −63 lib/js/spec/position/jQuerySpec.coffee
  51. +0 −4 lib/js/spec/requires.coffee
  52. +0 −13 lib/js/spec/struct/SequenceDiagramSpec.coffee
  53. +0 −14 lib/js/spec/struct/jQuerySpec.coffee
  54. +0 −19 lib/js/spec/struct/jasmine-node-helper.coffee
  55. +0 −25 lib/js/spec/struct/jumlySpec.coffee
  56. +0 −20 lib/js/spec/struct/metaSpec.coffee
  57. +0 −6 lib/js/spec/struct/notationSpec.coffee
  58. +1 −1 lib/version
View
@@ -1,4 +1,4 @@
.project
node_modules
-public/*.css
+views/static/*.css
*.swp
View
@@ -15,75 +15,3 @@ app.get "/", (req,res)->
app.listen port = 3000
console.log "Listening at #{port}"
-
-###
-fs = require "fs"
-express = require "express"
-assets = require "connect-assets"
-jade = require "jade"
-stylus = require 'stylus'
-_ = require 'underscore'
-yaml = require 'js-yaml'
-
-jumly = (str, type)->
- str = str.replace /\\n/g, '\n'
- js = str.replace(/\\/g, '\\\\').replace /\n/g, '\\n'
- """<script type="text/jumly+#{type}">\\n#{js}</script>"""
-
-jade.filters["jumly_sequence"] = (str)-> jumly str, "sequence"
-jade.filters["jumly_class"] = (str)-> jumly str, "class"
-jade.filters["jumly_usecase"] = (str)-> jumly str, "usecase"
-jade.filters["code"] = (str)->
- str = str.replace /\\n/g, '\n'
- js = str.replace(/\\/g, '\\\\').replace /\n/g, '\\n'
- """<pre class="brush: html">#{js}</pre>"""
-
-
-app = module.exports = express.createServer()
-app.configure ->
- app.set "views", __dirname + "/views"
- app.set "view engine", "jade"
- app.use stylus.middleware
- src:"#{__dirname}/views/stylesheets"
- dest:"#{__dirname}/public"
- app.use express.bodyParser()
- app.use express.methodOverride()
- app.use app.router
- app.use express.static __dirname + "/public"
- app.use assets src:"lib/jumly"
-app.configure "development", -> app.use express.errorHandler dumpExceptions: true, showStack: true
-app.configure "production", -> app.use express.errorHandler()
-
-
-lang_resources = yaml.load fs.readFileSync("views/tryjumly.i18n").toString()
-
-conf =
- VERSION: fs.readFileSync("lib/jumly/version").toString()
- markdown: (path)-> require("markdown-js").parse fs.readFileSync(path).toString()
- title: "JUMLY"
- layout: true
-
-i18n =
- value: (key, lang="en")->
- a = lang_resources[key.toLowerCase()]
- return key unless a
- a[lang] || key
-
-app.get "/", (req, res)-> res.render 'index', conf
-app.get /^\/([^;.]+)(;([a-z]+))?$/, (req, res)->
- mkparams = (req, opts)-> _.extend {}, conf, {i18n:_:(key)->i18n.value key, req.params[2]}, opts
- name = req.params[0]
- layouts =
- tryjumly :false
- spec :false
- reference:true
- legacy :false
- res.render name, mkparams req, layout:layouts[name]
-
-port = 3000
-if process.env.NODE_ENV is "heroku"
- console.log "run on heroku"
- port = process.env.PORT
-app.listen port, ->
- console.log "Express server listening on port %d in %s mode", app.address().port, app.settings.env
-###
View
@@ -1,34 +0,0 @@
-@import "../_commons";
-
-$c0: #527bc6;
-$c1: lighten($c0, 10%);
-$c2: lighten($c1, 10%);
-$c3: lighten($c2, 10%);
-$c4: lighten($c3, 10%);
-
-.sequence-diagram.theme-cool {
- .object .name {
- color: white;
- text-shadow: rgba(0,0,0,0.8) 3px 0px 2px;
- font-weight: bold;
- white-space: nowrap;
- padding: {
- left: 0.5em;
- right: 0.5em;
- }
- &:hover {
- color: complement($c0);
- }
- }
- .object .name, .occurrence {
- background-color: $c0;
- @include border_radius(4px);
- white-space: nowrap;
- }
- .message .name {
- &:hover {
- color: invert($c0);
- }
- }
-}
-
@@ -1,25 +0,0 @@
-/* Monotone-style */
-@import "../_commons";
-
-$darkgray: #444;
-$c1: lighten($darkgray, 65%);
-
-.sequence-diagram.theme-monotone {
- .object .name {
- @include border_radius(6px);
- background-color: $c1;
- text-shadow: 2px 0px white;
- }
- .message {
- .name {
- color: white;
- background-color: $darkgray;
- padding: 0.25em 0.5em 0.5em 0.5em;
- @include border_radius(6px);
- opacity: 0.66;
- @include box_shadow;
- border: 1px solid black;
- }
- }
-}
-
View
@@ -1,121 +0,0 @@
-@import "../_object";
-@import "../_relationship";
-
-.component-diagram {
- $min_width: 88*2;
- $min_height: $min_width*5/8;
- $r: 16;
-
- .component {
- > .frame {
- padding-top: 0.5em;
- padding-left: 1em;
- @include primary_border;
- min-width: #{$min_width}px;
- min-height: #{$min_height}px;
- @include box_shadow;
- margin-left: #{$r*2 + $primary_border_width}px; // Space to put interfaces
- margin-right: #{$r*2 + $primary_border_width}px; // Space to put interfaces
- background-color: white;
- -webkit-border-radius: 4px;
- > .stereotype {
- text-align: center;
- }
- > .name {
- text-align: center;
- font-weight: bold;
- }
- > .icon {
- $t: $r;
- width: #{$t*8/5}px;
- height: #{$t*8/5}px;
- margin-left: auto;
- margin-right: 1em;
- @include primary_border;
- @include box_shadow2;
- &:before, &:after {
- content: ' ';
- position: absolute;
- width: #{$t}px;
- height: #{$t/2}px;
- @include primary_border;
- margin-top : #{$primary_border_width}px;
- margin-left: -#{$t/2 + $primary_border_width}px;
- background-color: white;
- }
- &:after {
- margin-top: #{$t*8/5 - $t/2 - $primary_border_width*3}px;
- }
- }
- }
- .provided-interface, .required-interface {
- position: absolute;
- -z-index: -1; // ignore in order to show whole of name.
- > .icon {
- width: #{$r*2}px;
- height: #{$r + $primary_border_width*2}px;
- > * {
- position: absolute;
- @include box_shadow;
- }
- &:before, &:after { // 'after' is line.
- content: ' ';
- position: absolute;
- width: #{$r}px;
- }
- &:before {
- height: #{$r}px;
- @include box_shadow;
- }
- &:after {
- border-top: #{$primary_border_width}px $primary_border_style $primary_border_color;
- margin-top: #{$r/2}px;
- margin-left: #{$r+$primary_border_width}px;
- }
- }
- &.to-right .name {
- margin-left: 1em;
- }
- }
- .provided-interface > .icon {
- &:before {
- @include primary_border;
- background-color: white;
- -webkit-border-radius: #{$r}px;
- }
- }
- .required-interface > .icon { // 'U' shape icon
- &:before {
- border-right: #{$primary_border_width}px $primary_border_style $primary_border_color;
- border-top: #{$primary_border_width}px $primary_border_style $primary_border_color;
- border-bottom: #{$primary_border_width}px $primary_border_style $primary_border_color;
- -webkit-border-top-right-radius : #{$r}px;
- -webkit-border-bottom-right-radius: #{$r}px;
- }
- }
- .port {
- display: none;
- > .icon {
- width: #{$r*3/4}px;
- height: #{$r*3/4}px;
- @include primary_border;
- }
- }
- }
- .component {
- $mg: 10%;
- &:nth-child(odd) {
- float: left;
- margin-right: $mg;
- margin-left: $mg;
- margin-top: 8px;
- }
- &:nth-child(even) {
- float: right;
- margin-left: $mg;
- margin-right: $mg;
- margin-top: 24px;
- }
- }
-}
-
@@ -1,39 +0,0 @@
-u = $.jumly
-mkdiag = ->
- diag = u ".class-diagram"
- diag.appendTo $ "body"
- diag
-
-description "class-diagram", ->
-
- description "instanciation", ->
-
-
- description "width", ->
-
- it "should be greater than zero", ->
- diag = mkdiag()
-
- diag.append u ".class", "foobar"
- diag.compose()
-
- diag.width().shouldBeGreaterThan 0
- diag.width().shouldBeGreaterThan diag.find(".class .icon").width()
-
-
- description "height", ->
-
- it "should be greater than zero", ->
- diag = mkdiag()
-
- diag.append u ".class", "foobar"
- diag.compose()
-
- diag.height().shouldBeGreaterThan 0
- diag.height().shouldBeGreaterThan diag.find(".class .icon").height()
-
-
- description "method", ->
-
-
- description "DSL", ->
Oops, something went wrong.

0 comments on commit 7b3a9b0

Please sign in to comment.