Permalink
Browse files

0.0.0

Alpha
  • Loading branch information...
1 parent 62bc3ac commit 2a47347d20049e4f925702843889000928ed6bb8 @MohammadYounes committed Aug 1, 2014
Showing with 17,180 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +37 −0 .jshintrc
  3. +243 −0 Gruntfile.js
  4. +47 −0 README.md
  5. +2,769 −0 build/alertify.js
  6. +2 −0 build/alertify.min.js
  7. BIN build/alertifyjs.zip
  8. +799 −0 build/css/alertify.css
  9. +3 −0 build/css/alertify.min.css
  10. +799 −0 build/css/alertify.rtl.css
  11. +3 −0 build/css/alertify.rtl.min.css
  12. +34 −0 build/css/themes/bootstrap.css
  13. +3 −0 build/css/themes/bootstrap.min.css
  14. +34 −0 build/css/themes/bootstrap.rtl.css
  15. +3 −0 build/css/themes/bootstrap.rtl.min.css
  16. +63 −0 build/css/themes/default.css
  17. +3 −0 build/css/themes/default.min.css
  18. +63 −0 build/css/themes/default.rtl.css
  19. +3 −0 build/css/themes/default.rtl.min.css
  20. +59 −0 build/css/themes/semantic.css
  21. +3 −0 build/css/themes/semantic.min.css
  22. +59 −0 build/css/themes/semantic.rtl.css
  23. +3 −0 build/css/themes/semantic.rtl.min.css
  24. +185 −0 docpad.coffee
  25. +29 −0 docpad/data/alert.json
  26. +75 −0 docpad/data/confirm.json
  27. +211 −0 docpad/data/dialog.json
  28. +102 −0 docpad/data/notifier.json
  29. +48 −0 docpad/data/prompt.json
  30. +132 −0 docpad/documents/alert.html.eco
  31. +89 −0 docpad/documents/arabic.html
  32. +80 −0 docpad/documents/bootstrap.html
  33. +135 −0 docpad/documents/confirm.html.eco
  34. +228 −0 docpad/documents/examples.html.eco
  35. +239 −0 docpad/documents/factory.html.eco
  36. +365 −0 docpad/documents/index.html.eco
  37. +65 −0 docpad/documents/notifier.html.eco
  38. +139 −0 docpad/documents/prompt.html.eco
  39. +1 −0 docpad/documents/scripts/script.js
  40. +89 −0 docpad/documents/semantic.html
  41. +22 −0 docpad/documents/styles/style.css
  42. +540 −0 docpad/files/.htaccess
  43. +157 −0 docpad/files/404.html
  44. +1 −0 docpad/files/CNAME
  45. BIN docpad/files/apple-touch-icon-precomposed.png
  46. +2,769 −0 docpad/files/build/alertify.js
  47. +2 −0 docpad/files/build/alertify.min.js
  48. +799 −0 docpad/files/build/css/alertify.css
  49. +799 −0 docpad/files/build/css/alertify.rtl.css
  50. +34 −0 docpad/files/build/css/themes/bootstrap.css
  51. +34 −0 docpad/files/build/css/themes/bootstrap.rtl.css
  52. +63 −0 docpad/files/build/css/themes/default.css
  53. +63 −0 docpad/files/build/css/themes/default.rtl.css
  54. +59 −0 docpad/files/build/css/themes/semantic.css
  55. +59 −0 docpad/files/build/css/themes/semantic.rtl.css
  56. +15 −0 docpad/files/crossdomain.xml
  57. BIN docpad/files/css/alert.png
  58. +4 −0 docpad/files/css/font-awesome.min.css
  59. +1 −0 docpad/files/css/highlight.default.min.css
  60. +1 −0 docpad/files/css/highlight.min.css
  61. BIN docpad/files/css/logo.lg.png
  62. BIN docpad/files/css/logo.sm.png
  63. BIN docpad/files/css/logo.white.png
  64. +1 −0 docpad/files/css/normalize.min.css
  65. +1 −0 docpad/files/css/semantic.min.css
  66. +1 −0 docpad/files/css/site.min.css
  67. BIN docpad/files/favicon.ico
  68. BIN docpad/files/fonts/FontAwesome.otf
  69. BIN docpad/files/fonts/fontawesome-webfont.eot
  70. +504 −0 docpad/files/fonts/fontawesome-webfont.svg
  71. BIN docpad/files/fonts/fontawesome-webfont.ttf
  72. BIN docpad/files/fonts/fontawesome-webfont.woff
  73. +15 −0 docpad/files/humans.txt
  74. +4 −0 docpad/files/js/jquery-1.11.1.min.js
  75. +1 −0 docpad/files/js/semantic.min.js
  76. +1 −0 docpad/files/js/site.min.js
  77. +3 −0 docpad/files/robots.txt
  78. +8 −0 docpad/layouts/content.html.eco
  79. +118 −0 docpad/layouts/default.html.eco
  80. +67 −0 docpad/partials/segment.html.eco
  81. +51 −0 package.json
  82. +93 −0 src/js/alert.js
  83. +233 −0 src/js/alertify.js
  84. +186 −0 src/js/confirm.js
  85. +67 −0 src/js/dialog/actions.js
  86. +262 −0 src/js/dialog/commands.js
  87. +226 −0 src/js/dialog/dialog.js
  88. +189 −0 src/js/dialog/events.js
  89. +88 −0 src/js/dialog/focus.js
  90. +482 −0 src/js/dialog/intro.js
  91. +116 −0 src/js/dialog/move.js
  92. +1 −0 src/js/dialog/outro.js
  93. +192 −0 src/js/dialog/resize.js
  94. +56 −0 src/js/dialog/transition.js
  95. +118 −0 src/js/event.js
  96. +101 −0 src/js/intro.js
  97. +182 −0 src/js/notifier.js
  98. +10 −0 src/js/outro.js
  99. +150 −0 src/js/prompt.js
  100. +775 −0 src/less/alertify.less
  101. +44 −0 src/less/themes/bootstrap.less
  102. +91 −0 src/less/themes/default.less
  103. +71 −0 src/less/themes/semantic.less
View
@@ -1,3 +1,9 @@
+#docsite
+site
+#staging
+staging
+
+
# Logs
logs
*.log
View
@@ -0,0 +1,37 @@
+{
+ "boss": true,
+ "curly": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "es5": false,
+ "forin": true,
+ "immed": true,
+ "indent": 4,
+ "latedef": true,
+ "newcap": true,
+ "noarg": true,
+ "node": true,
+ "noempty": true,
+ "plusplus": true,
+ "quotmark": "single",
+ "smarttabs": false,
+ "scripturl": true,
+ "strict": false,
+ "sub": true,
+ "trailing": true,
+ "undef": true,
+ "unused": true,
+
+ "globals": {
+ "document": true,
+ "alertify": true,
+ "define": true,
+
+ "triggerEvent": true,
+ "suite": true,
+ "test": true,
+ "assert": true,
+ "setup": true,
+ "teardown": true
+ }
+}
View
@@ -0,0 +1,243 @@
+module.exports = function (grunt) {
+ 'use strict';
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+
+ clean: {
+ build: ['staging', 'build']
+ },
+
+ less: {
+ options: {
+ paths: ['./src/less'],
+ compress: false,
+ },
+ compile: {
+ expand: true,
+ cwd: 'src/less',
+ src: ['**/*.less'],
+ ext: '.css',
+ dest: 'staging'
+ }
+ },
+
+ autoprefixer: {
+ options: {
+ browsers: ['last 2 version']
+ },
+ build: {
+ expand: true,
+ cwd: 'staging/',
+ dest: 'staging/',
+ src: ['**/*.css'],
+ },
+ },
+
+ rtlcss: {
+ prefixRules: {
+ options: {
+ //extra rules
+ rules: [
+ {
+ 'name': 'prefix',
+ 'expr': /.*/img,
+ 'important': true,
+ 'action': function (rule) {
+ rule.selector = rule.selector.replace(/\.(?!alertify)/g, '.ajs-');
+ return true;
+ }
+ }
+ ],
+ declarations: [
+ {
+ 'name': 'do nothing',
+ 'expr': /.*/img,
+ 'important': true,
+ 'action': function (/*decl*/) {
+ return true;
+ }
+ }
+ ],
+ //extra properties
+ properties: [
+ {
+ 'name': 'direction',
+ 'expr': /direction/im,
+ 'important': true,
+ 'action': function (prop, value) {
+ return { 'prop': prop, 'value': value };
+ }
+ }
+ ]
+ },
+ expand: true,
+ cwd: 'staging',
+ src: ['**/*.css'],
+ dest: 'staging',
+ },
+ build: {
+ expand : true,
+ cwd: 'staging',
+ src: ['**/*.css'],
+ dest: 'staging/rtl',
+ ext: '.css',
+ }
+ },
+
+ cssmin: {
+ options: {
+ banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
+ '<%= pkg.author %> */\n',
+ report: 'gzip'
+ },
+ min: {
+ expand:true,
+ cwd:'staging',
+ src:['*.css', 'themes/*.css'],
+ dest:'build/css',
+ ext: '.min.css',
+ },
+ rtl: {
+ expand:true,
+ cwd:'staging/rtl',
+ src:['**/*.css'],
+ dest:'build/css',
+ ext: '.rtl.min.css',
+ }
+ },
+
+ copy: {
+ ltr:{
+ expand:true,
+ cwd:'staging',
+ src:['*.css', 'themes/*.css'],
+ dest:'build/css',
+ ext:'.css'
+ },
+ rtl:{
+ expand:true,
+ cwd:'staging/rtl',
+ src:['**/*.css'],
+ dest:'build/css',
+ ext:'.rtl.css'
+ },
+ build:{
+ expand:true,
+ cwd:'build',
+ src:['**'],
+ dest:'site/build'
+ }
+ },
+
+ concat: {
+ options: {
+ stripBanners: false,
+ banner: '/**\n' +
+ ' * <%= pkg.name %>\n' +
+ ' * <%= pkg.description %>\n' +
+ ' *\n' +
+ ' * @author <%= pkg.author %> \n' +
+ ' * @copyright <%= grunt.template.today("yyyy") %>\n' +
+ ' * @license <%= pkg.licenses[0].type %> <<%= pkg.licenses[0].url %>>\n' +
+ ' * @link <%= pkg.homepage %>\n' +
+ ' * @module <%= pkg.name %>\n' +
+ ' * @version <%= pkg.version %>\n' +
+ ' */\n'
+ },
+ dist: {
+ src: [
+ 'src/js/intro.js',
+ 'src/js/event.js',
+
+ 'src/js/dialog/intro.js',
+ 'src/js/dialog/commands.js',
+ 'src/js/dialog/actions.js',
+ 'src/js/dialog/focus.js',
+ 'src/js/dialog/transition.js',
+ 'src/js/dialog/move.js',
+ 'src/js/dialog/resize.js',
+ 'src/js/dialog/events.js',
+ 'src/js/dialog/dialog.js',
+ 'src/js/dialog/outro.js',
+
+ 'src/js/notifier.js',
+ 'src/js/alertify.js',
+ 'src/js/alert.js',
+ 'src/js/confirm.js',
+ 'src/js/prompt.js',
+ 'src/js/outro.js'
+ ],
+ dest: 'build/alertify.js'
+ }
+ },
+
+
+ jshint: {
+ files: {
+ src: [
+ 'Gruntfile.js',
+ 'build/alertify.js',
+ 'test/specs/*.js'
+ ]
+ },
+ options: {
+ jshintrc: '.jshintrc'
+ }
+ },
+
+ uglify: {
+ options: {
+ banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
+ '<%= pkg.author %> */\n',
+ report: 'gzip'
+ },
+ dist: {
+ files: {
+ 'build/alertify.min.js': ['<banner>', 'build/alertify.js']
+ }
+ }
+ },
+
+ watch: {
+ src: {
+ files: ['src/**/*.js'],
+ tasks: ['build']
+ }
+ },
+
+ compress: {
+ options: {
+ archive: 'build/alertifyjs.zip'
+ },
+ build: {
+ files: [
+ {
+ expand:true,
+ cwd: 'build',
+ src: ['**']
+ }
+ ]
+ }
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-rtlcss');
+ grunt.loadNpmTasks('grunt-autoprefixer');
+ grunt.loadNpmTasks('grunt-contrib-less');
+ grunt.loadNpmTasks('grunt-contrib-clean');
+ grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-connect');
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-contrib-cssmin');
+ grunt.loadNpmTasks('grunt-contrib-copy');
+ grunt.loadNpmTasks('grunt-contrib-watch');
+ grunt.loadNpmTasks('grunt-contrib-compress');
+
+ // Default task
+ grunt.registerTask('css', ['less', 'autoprefixer:build', 'rtlcss','copy:rtl', 'copy:ltr','cssmin']);
+ grunt.registerTask('build', ['clean:build', 'css', 'concat', 'uglify', 'compress', 'copy:build']);
+ grunt.registerTask('default', ['build', 'jshint']);
+};
View
@@ -2,3 +2,50 @@ AlertifyJS
==========
AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
+
+> AlertifyJS is an extreme makeover of <a href="http://www.github.com/fabien-d/alertify.js">alertify.js</a> by <a href="http://www.github.com/fabien-d">@fabien-d</a>
+
+Documentation
+==========
+Check out the interactive documentaion at http://alertifyjs.com
+
+
+Browser support
+==========
+Last two versions.
+
+
+
+Running documentation locally
+==========
+* Clone the repo
+```
+git clone git@github.com:Semantic-Org/Semantic-UI.git
+```
+
+* Install dev dependencies
+```
+npm update; npm install;
+```
+
+* Build the project
+```
+grunt build
+```
+
+* Start documnetation server
+```
+docpad run
+```
+* Open your browser to http://localhost:9778/
+
+
+Release history
+==========
+* **v0.0.0** [1 Aug. 2014]
+ * Initial commit.
+
+
+
+------
+Have a suggestion or a bug ? please [open a new issue.](https://github.com/MohammadYounes/AlertifyJS/issues?state=open)
Oops, something went wrong.

0 comments on commit 2a47347

Please sign in to comment.