Permalink
Browse files

Transfer from hg

  • Loading branch information...
1 parent c0d1e12 commit ec1d7f962b0d821b6e935cfc9d4ef097b6d97ee7 @anthonyjb anthonyjb committed Sep 2, 2015
Showing with 26,116 additions and 3 deletions.
  1. +3 −0 .gitignore
  2. +143 −0 Gruntfile.coffee
  3. +2 −3 LICENSE
  4. +28 −0 SpecRunner.html
  5. +8,644 −0 build/content-tools.js
  6. +2 −0 build/content-tools.min.css
  7. +8 −0 build/content-tools.min.js
  8. BIN build/icons.woff
  9. BIN build/images/ce-drop-above.png
  10. BIN build/images/ce-drop-below.png
  11. BIN build/images/ce-drop-left.png
  12. BIN build/images/ce-drop-right.png
  13. BIN build/images/video.png
  14. +4,662 −0 external/scripts/content-edit.js
  15. +352 −0 external/styles/_content-edit.scss
  16. +427 −0 external/styles/_normalize.scss
  17. +402 −0 external/styles/bourbon/_bourbon-deprecated-upcoming.scss
  18. +86 −0 external/styles/bourbon/_bourbon.scss
  19. +18 −0 external/styles/bourbon/addons/_clearfix.scss
  20. +111 −0 external/styles/bourbon/addons/_directional-values.scss
  21. +8 −0 external/styles/bourbon/addons/_ellipsis.scss
  22. +5 −0 external/styles/bourbon/addons/_font-family.scss
  23. +12 −0 external/styles/bourbon/addons/_hide-text.scss
  24. +90 −0 external/styles/bourbon/addons/_html5-input-types.scss
  25. +26 −0 external/styles/bourbon/addons/_position.scss
  26. +45 −0 external/styles/bourbon/addons/_prefixer.scss
  27. +31 −0 external/styles/bourbon/addons/_retina-image.scss
  28. +26 −0 external/styles/bourbon/addons/_size.scss
  29. +32 −0 external/styles/bourbon/addons/_timing-functions.scss
  30. +83 −0 external/styles/bourbon/addons/_triangle.scss
  31. +10 −0 external/styles/bourbon/addons/_word-wrap.scss
  32. +52 −0 external/styles/bourbon/css3/_animation.scss
  33. +3 −0 external/styles/bourbon/css3/_appearance.scss
  34. +6 −0 external/styles/bourbon/css3/_backface-visibility.scss
  35. +42 −0 external/styles/bourbon/css3/_background-image.scss
  36. +55 −0 external/styles/bourbon/css3/_background.scss
  37. +59 −0 external/styles/bourbon/css3/_border-image.scss
  38. +22 −0 external/styles/bourbon/css3/_border-radius.scss
  39. +4 −0 external/styles/bourbon/css3/_box-sizing.scss
  40. +4 −0 external/styles/bourbon/css3/_calc.scss
  41. +47 −0 external/styles/bourbon/css3/_columns.scss
  42. +5 −0 external/styles/bourbon/css3/_filter.scss
  43. +320 −0 external/styles/bourbon/css3/_flex-box.scss
  44. +24 −0 external/styles/bourbon/css3/_font-face.scss
  45. +10 −0 external/styles/bourbon/css3/_font-feature-settings.scss
  46. +10 −0 external/styles/bourbon/css3/_hidpi-media-query.scss
  47. +4 −0 external/styles/bourbon/css3/_hyphens.scss
  48. +14 −0 external/styles/bourbon/css3/_image-rendering.scss
  49. +35 −0 external/styles/bourbon/css3/_keyframes.scss
  50. +38 −0 external/styles/bourbon/css3/_linear-gradient.scss
  51. +8 −0 external/styles/bourbon/css3/_perspective.scss
  52. +8 −0 external/styles/bourbon/css3/_placeholder.scss
  53. +39 −0 external/styles/bourbon/css3/_radial-gradient.scss
  54. +14 −0 external/styles/bourbon/css3/_selection.scss
  55. +19 −0 external/styles/bourbon/css3/_text-decoration.scss
  56. +15 −0 external/styles/bourbon/css3/_transform.scss
  57. +77 −0 external/styles/bourbon/css3/_transition.scss
  58. +3 −0 external/styles/bourbon/css3/_user-select.scss
  59. +11 −0 external/styles/bourbon/functions/_assign.scss
  60. +13 −0 external/styles/bourbon/functions/_color-lightness.scss
  61. +12 −0 external/styles/bourbon/functions/_contains.scss
  62. +7 −0 external/styles/bourbon/functions/_is-length.scss
  63. +6 −0 external/styles/bourbon/functions/_is-size.scss
  64. +69 −0 external/styles/bourbon/functions/_modular-scale.scss
  65. +13 −0 external/styles/bourbon/functions/_px-to-em.scss
  66. +15 −0 external/styles/bourbon/functions/_px-to-rem.scss
  67. +5 −0 external/styles/bourbon/functions/_strip-units.scss
  68. +9 −0 external/styles/bourbon/functions/_tint-shade.scss
  69. +22 −0 external/styles/bourbon/functions/_transition-property-name.scss
  70. +17 −0 external/styles/bourbon/functions/_unpack.scss
  71. +15 −0 external/styles/bourbon/helpers/_convert-units.scss
  72. +36 −0 external/styles/bourbon/helpers/_font-source-declaration.scss
  73. +13 −0 external/styles/bourbon/helpers/_gradient-positions-parser.scss
  74. +5 −0 external/styles/bourbon/helpers/_is-num.scss
  75. +25 −0 external/styles/bourbon/helpers/_linear-angle-parser.scss
  76. +41 −0 external/styles/bourbon/helpers/_linear-gradient-parser.scss
  77. +61 −0 external/styles/bourbon/helpers/_linear-positions-parser.scss
  78. +31 −0 external/styles/bourbon/helpers/_linear-side-corner-parser.scss
  79. +69 −0 external/styles/bourbon/helpers/_radial-arg-parser.scss
  80. +50 −0 external/styles/bourbon/helpers/_radial-gradient-parser.scss
  81. +18 −0 external/styles/bourbon/helpers/_radial-positions-parser.scss
  82. +26 −0 external/styles/bourbon/helpers/_render-gradients.scss
  83. +10 −0 external/styles/bourbon/helpers/_shape-size-stripper.scss
  84. +50 −0 external/styles/bourbon/helpers/_str-to-num.scss
  85. +1 −0 external/styles/bourbon/settings/_asset-pipeline.scss
  86. +6 −0 external/styles/bourbon/settings/_prefixer.scss
  87. +1 −0 external/styles/bourbon/settings/_px-to-em.scss
  88. +8 −0 external/styles/neat/_neat-helpers.scss
  89. +23 −0 external/styles/neat/_neat.scss
  90. +49 −0 external/styles/neat/functions/_new-breakpoint.scss
  91. +114 −0 external/styles/neat/functions/_private.scss
  92. +15 −0 external/styles/neat/grid/_box-sizing.scss
  93. +33 −0 external/styles/neat/grid/_direction-context.scss
  94. +28 −0 external/styles/neat/grid/_display-context.scss
  95. +24 −0 external/styles/neat/grid/_fill-parent.scss
  96. +92 −0 external/styles/neat/grid/_media.scss
  97. +87 −0 external/styles/neat/grid/_omega.scss
  98. +38 −0 external/styles/neat/grid/_outer-container.scss
  99. +25 −0 external/styles/neat/grid/_pad.scss
  100. +35 −0 external/styles/neat/grid/_private.scss
  101. +52 −0 external/styles/neat/grid/_row.scss
  102. +50 −0 external/styles/neat/grid/_shift.scss
  103. +92 −0 external/styles/neat/grid/_span-columns.scss
  104. +97 −0 external/styles/neat/grid/_to-deprecate.scss
  105. +42 −0 external/styles/neat/grid/_visual-grid.scss
  106. +13 −0 external/styles/neat/settings/_disable-warnings.scss
  107. +55 −0 external/styles/neat/settings/_grid.scss
  108. +27 −0 external/styles/neat/settings/_visual-grid.scss
  109. +46 −0 notes.txt
  110. +18 −0 package.json
  111. BIN sandbox/author-pic.jpg
  112. BIN sandbox/image.png
  113. +313 −0 sandbox/index.html
  114. +2 −0 sandbox/sandbox.css
  115. +158 −0 sandbox/sandbox.js
  116. +242 −0 spec/content-tools-spec.js
  117. +4 −0 spec/spec-helper.js
  118. +126 −0 src/sandbox/image-uploader.coffee
  119. +32 −0 src/sandbox/sandbox.coffee
  120. +260 −0 src/sandbox/sandbox.scss
  121. +519 −0 src/scripts/editor.coffee
  122. +173 −0 src/scripts/history.coffee
  123. +135 −0 src/scripts/namespace.coffee
  124. +64 −0 src/scripts/styles.coffee
  125. +1,062 −0 src/scripts/tools.coffee
  126. +178 −0 src/scripts/ui/dialogs/dialogs.coffee
  127. +528 −0 src/scripts/ui/dialogs/image.coffee
  128. +81 −0 src/scripts/ui/dialogs/link.coffee
  129. +615 −0 src/scripts/ui/dialogs/properties.coffee
  130. +186 −0 src/scripts/ui/dialogs/table.coffee
  131. +148 −0 src/scripts/ui/dialogs/video.coffee
  132. +52 −0 src/scripts/ui/flashes.coffee
  133. +131 −0 src/scripts/ui/ignition.coffee
  134. +230 −0 src/scripts/ui/inspector.coffee
  135. +60 −0 src/scripts/ui/modal.coffee
  136. +504 −0 src/scripts/ui/toolbox.coffee
  137. +231 −0 src/scripts/ui/ui.coffee
  138. 0 src/spec/history.coffee
  139. 0 src/spec/inspector.coffee
  140. 0 src/spec/namespace.coffee
  141. 0 src/spec/shortcuts.coffee
  142. +59 −0 src/spec/styles.coffee
  143. +259 −0 src/spec/tools.coffee
  144. 0 src/spec/ui.coffee
  145. +116 −0 src/styles/_settings.scss
  146. +68 −0 src/styles/content-tools.scss
  147. +55 −0 src/styles/ui/_attributes.scss
  148. +99 −0 src/styles/ui/_cropmarks.scss
  149. +632 −0 src/styles/ui/_dialogs.scss
  150. +118 −0 src/styles/ui/_flashes.scss
  151. +35 −0 src/styles/ui/_grips.scss
  152. +174 −0 src/styles/ui/_ignition.scss
  153. +127 −0 src/styles/ui/_inspector.scss
  154. +36 −0 src/styles/ui/_modal.scss
  155. +25 −0 src/styles/ui/_progress.scss
  156. +116 −0 src/styles/ui/_sections.scss
  157. +186 −0 src/styles/ui/_toolbox.scss
  158. +64 −0 src/styles/ui/_ui.scss
View
@@ -0,0 +1,3 @@
+.sass-cache
+jasmine
+node_modules
View
@@ -0,0 +1,143 @@
+module.exports = (grunt) ->
+
+ # Project configuration
+ grunt.initConfig({
+
+ pkg: grunt.file.readJSON('package.json')
+
+ coffee:
+ options:
+ join: true
+
+ build:
+ files:
+ 'src/tmp/content-tools.js': [
+ 'src/scripts/namespace.coffee'
+
+ # UI
+ 'src/scripts/ui/ui.coffee'
+ 'src/scripts/ui/dialogs.coffee'
+ 'src/scripts/ui/flashes.coffee'
+ 'src/scripts/ui/ignition.coffee'
+ 'src/scripts/ui/inspector.coffee'
+ 'src/scripts/ui/modal.coffee'
+ 'src/scripts/ui/toolbox.coffee'
+
+ # UI - Dialogs
+ 'src/scripts/ui/dialogs/dialogs.coffee'
+ 'src/scripts/ui/dialogs/image.coffee'
+ 'src/scripts/ui/dialogs/link.coffee'
+ 'src/scripts/ui/dialogs/properties.coffee'
+ 'src/scripts/ui/dialogs/table.coffee'
+ 'src/scripts/ui/dialogs/video.coffee'
+
+ # Other
+ 'src/scripts/editor.coffee'
+ 'src/scripts/history.coffee'
+ 'src/scripts/styles.coffee'
+ 'src/scripts/tools.coffee'
+ ]
+
+ sandbox:
+ files:
+ 'sandbox/sandbox.js': [
+ 'src/sandbox/image-uploader.coffee'
+ 'src/sandbox/sandbox.coffee'
+ ]
+
+ spec:
+ files:
+ 'spec/spec-helper.js': 'src/spec/spec-helper.coffee'
+ 'spec/content-tools-spec.js': [
+ 'src/spec/history.coffee'
+ 'src/spec/inspector.coffee'
+ 'src/spec/shortcuts.coffee'
+ 'src/spec/tools.coffee'
+ 'src/spec/styles.coffee'
+ 'src/spec/ui.coffee'
+ ]
+
+ sass:
+ options:
+ banner: '/*! <%= pkg.name %> v<%= pkg.version %> by <%= pkg.author.name %> <<%= pkg.author.email %>> (<%= pkg.author.url %>) */'
+ sourcemap: 'none'
+ style: 'compressed'
+
+ build:
+ files:
+ 'build/content-tools.min.css':
+ 'src/styles/content-tools.scss'
+
+ sandbox:
+ files:
+ 'sandbox/sandbox.css': 'src/sandbox/sandbox.scss'
+
+ uglify:
+ options:
+ banner: '/*! <%= pkg.name %> v<%= pkg.version %> by <%= pkg.author.name %> <<%= pkg.author.email %>> (<%= pkg.author.url %>) */\n'
+ mangle: false
+
+ build:
+ src: 'build/content-tools.js'
+ dest: 'build/content-tools.min.js'
+
+ concat:
+ build:
+ src: [
+ 'external/scripts/content-edit.js'
+ 'src/tmp/content-tools.js'
+ ]
+ dest: 'build/content-tools.js'
+
+ clean:
+ build: ['src/tmp']
+
+ watch:
+ build:
+ files: [
+ 'src/scripts/**/*.coffee',
+ 'src/styles/**/*.scss'
+ ]
+ tasks: ['build']
+
+ sandbox:
+ files: [
+ 'src/sandbox/*.coffee',
+ 'src/sandbox/*.scss'
+ ]
+ tasks: ['sandbox']
+
+ spec:
+ files: ['src/spec/*.coffee']
+ tasks: ['spec']
+ })
+
+ # Plug-ins
+ grunt.loadNpmTasks 'grunt-contrib-clean'
+ grunt.loadNpmTasks 'grunt-contrib-coffee'
+ grunt.loadNpmTasks 'grunt-contrib-concat'
+ grunt.loadNpmTasks 'grunt-contrib-sass'
+ grunt.loadNpmTasks 'grunt-contrib-uglify'
+ grunt.loadNpmTasks 'grunt-contrib-watch'
+
+ # Tasks
+ grunt.registerTask 'build', [
+ 'coffee:build'
+ 'sass:build'
+ 'concat:build'
+ 'uglify:build'
+ 'clean:build'
+ ]
+
+ grunt.registerTask 'sandbox', [
+ 'coffee:sandbox'
+ 'sass:sandbox'
+ ]
+
+ grunt.registerTask 'spec', [
+ 'coffee:spec'
+ ]
+
+ grunt.registerTask 'watch-build', ['watch:build']
+ grunt.registerTask 'watch-sandbox', ['watch:sandbox']
+ grunt.registerTask 'watch-spec', ['watch:spec']
View
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2015 Anthony Blackshaw
+Copyright (c) 2014 Getme Limited (http://getme.co.uk)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -18,5 +18,4 @@ 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.
-
+SOFTWARE.
View
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>ContentTools spec runner</title>
+
+ <!-- Jasmine -->
+ <link rel="shortcut icon" type="image/png" href="jasmine/lib/jasmine-2.0.3/jasmine_favicon.png">
+ <link rel="stylesheet" type="text/css" href="jasmine/lib/jasmine-2.0.3/jasmine.css">
+
+ <script type="text/javascript" src="jasmine/lib/jasmine-2.0.3/jasmine.js"></script>
+ <script type="text/javascript" src="jasmine/lib/jasmine-2.0.3/jasmine-html.js"></script>
+ <script type="text/javascript" src="jasmine/lib/jasmine-2.0.3/boot.js"></script>
+
+ <!-- Source -->
+ <script type="text/javascript" src="build/content-tools.js"></script>
+
+ <!-- Spec -->
+ <script type="text/javascript" src="spec/spec-helper.js"></script>
+ </head>
+ <body>
+ <div id="test"></div>
+ <script>
+
+ </script>
+ <script type="text/javascript" src="spec/content-tools-spec.js"></script>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit ec1d7f9

Please sign in to comment.