Skip to content

Commit

Permalink
start working on export to html/css
Browse files Browse the repository at this point in the history
  • Loading branch information
howlowck committed Oct 28, 2013
1 parent 3a2b8e0 commit 453d710
Show file tree
Hide file tree
Showing 43 changed files with 2,936 additions and 5 deletions.
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"backbone" : ">=0.0.1",
"jquery-timeago" : ">=0.0.1",
"CKEditor": "git://github.com/ckeditor/ckeditor-releases.git",
"scss-mixins" : ">=0.0.1"
"scss-mixins" : ">=0.0.1",
"highlightjs" : ">=0.0.1"
}
}
30 changes: 28 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<meta property="fb:admins" content="4713134" />

<link rel="stylesheet" href="public/assets/jquery.ui/dist/jquery-ui.min.css"/>
<!-- <link rel="stylesheet" href="public/assets/font-awesome/build/assets/font-awesome/css/font-awesome.min.css"/> -->
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="public/assets/highlightjs/styles/github.css">
<link rel="stylesheet" href="public/css/facebook.css"/>
<link rel="stylesheet" href="public/css/default.css"/>

<script src="//google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
<script data-main="public/js/main" src="public/assets/requirejs/require.js"></script>

</head>
Expand Down Expand Up @@ -45,6 +45,7 @@ <h1 class="title">
<button class="tool-view" data-trigger="EditWidthButton:click" data-title="Edit Viewports"><i class="fa fa-desktop"></i> </button>
<button class="tool-view" data-trigger="NewElementButton:click" data-title="New Element"><i class="fa fa-plus"></i> </button>
<button class="tool-view" data-trigger="ElementsOverviewButton:click" data-title="Sort Elements"><i class="fa fa-sort-amount-desc"></i></button>
<button class="tool-view" data-trigger="ExportCodeButton:click" data-title="Export To HTML/CSS (coming soon)"><i class="fa fa-code"></i></button>
<button class="tool-view" data-trigger="SaveLayoutButton:click" data-title="Save Layout"><i class="fa fa-cloud"></i> </button>
</aside>
<div class="container no-select">
Expand Down Expand Up @@ -152,6 +153,31 @@ <h3 class="instruction-title">Share Your Layout</h3>
<div class="width-overlay hidden overlay"></div>

<div class="edit-overlay hidden overlay"></div>
<div class="export-overlay hidden overlay">
<div class="window">
<h3>HTML/CSS (Coming Soon)</h3>
<button class="close" title="close window"><i class="fa fa-times"></i></button>
<div class="notes">This is just a code skeleton meant to make web developers happy. </div>

<div class="html">
<h4>HTML</h4>
<a id="raw-html" target="_blank" class="btn btn-small raw">View Raw</a>
<pre id="html-export" class="language-html">
<code>
</code>
</pre>
</div>
<div class="css">
<h4>CSS</h4>
<a id="raw-css" target="_blank" class="btn btn-small raw">View Raw</a>
<pre id="css-export" class="language-css">
<code>
(I said coming soon!)
</code>
</pre>
</div>
</div>
</div>
<div class="social-overlay hidden overlay">
<div class="window">
<button class="close"><i class="fa fa-times"></i></button>
Expand Down
27 changes: 27 additions & 0 deletions public/assets/highlightjs/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "highlightjs",
"version": "7.3.0",
"main": "highlight.pack.js",
"ignore": [
"**/.*",
"node_modules",
"vendor",
"components"
],
"scripts": [
"highlight.pack.js"
],
"files": [
"styles/default.css"
],
"homepage": "https://github.com/components/highlightjs",
"_release": "7.3.0",
"_resolution": {
"type": "version",
"tag": "7.3.0",
"commit": "60f5b260c3ae12578f7241e15e8102e9b65c4d3b"
},
"_source": "git://github.com/components/highlightjs.git",
"_target": ">=0.0.1",
"_originalSource": "highlightjs"
}
24 changes: 24 additions & 0 deletions public/assets/highlightjs/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Copyright (c) 2006, Ivan Sagalaev
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of highlight.js nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 changes: 14 additions & 0 deletions public/assets/highlightjs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
VERSION=7.3

default: highlight
@cp -f highlight/build/highlight.* .
@cp -f highlight/src/styles/* styles
@du -bh highlight.*

highlight:
@git clone git://github.com/isagalaev/highlight.js.git $@
@cd highlight && git pull && git checkout $(VERSION) && cd ..
# The master version requires "python3"
@python highlight/tools/build.py

.PHONY: default
11 changes: 11 additions & 0 deletions public/assets/highlightjs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Highlight.js
============

Shim repository for [Highlight.js](http://highlightjs.org/).

Package Managers
----------------

* [Bower](http://bower.io): `highlightjs`
* [Composer](http://packagist.org/packages/components/highlightjs): `components/highlightjs`
* [Component](http://component.io): `components/highlightjs`
17 changes: 17 additions & 0 deletions public/assets/highlightjs/component.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "highlightjs",
"version": "7.3.0",
"main": "highlight.pack.js",
"ignore": [
"**/.*",
"node_modules",
"vendor",
"components"
],
"scripts": [
"highlight.pack.js"
],
"files": [
"styles/default.css"
]
}
29 changes: 29 additions & 0 deletions public/assets/highlightjs/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "components/highlightjs",
"description": "Highlight.js highlights syntax in code examples on blogs, forums and in fact on any web pages.",
"type": "component",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Ivan Sagalaev",
"email": "maniac@softwaremaniacs.org",
"homepage": "http://softwaremaniacs.org"
}
],
"require": {
"robloach/component-installer": "*"
},
"extra": {
"component": {
"scripts": [
"highlight.pack.js"
],
"files": [
"styles/*"
],
"shim": {
"exports": "hljs"
}
}
}
}
1 change: 1 addition & 0 deletions public/assets/highlightjs/highlight.pack.js

Large diffs are not rendered by default.

158 changes: 158 additions & 0 deletions public/assets/highlightjs/styles/arta.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
/*
Date: 17.V.2011
Author: pumbur <pumbur@pumbur.net>
*/

pre code
{
display: block; padding: 0.5em;
background: #222;
}

pre .profile .header *,
pre .ini .title,
pre .nginx .title
{
color: #fff;
}

pre .comment,
pre .javadoc,
pre .preprocessor,
pre .preprocessor .title,
pre .shebang,
pre .profile .summary,
pre .diff,
pre .pi,
pre .doctype,
pre .tag,
pre .template_comment,
pre .css .rules,
pre .tex .special
{
color: #444;
}

pre .string,
pre .symbol,
pre .diff .change,
pre .regexp,
pre .xml .attribute,
pre .smalltalk .char,
pre .xml .value,
pre .ini .value,
pre .clojure .attribute
{
color: #ffcc33;
}

pre .number,
pre .addition
{
color: #00cc66;
}

pre .built_in,
pre .literal,
pre .vhdl .typename,
pre .go .constant,
pre .go .typename,
pre .ini .keyword,
pre .lua .title,
pre .perl .variable,
pre .php .variable,
pre .mel .variable,
pre .django .variable,
pre .css .funtion,
pre .smalltalk .method,
pre .hexcolor,
pre .important,
pre .flow,
pre .inheritance,
pre .parser3 .variable
{
color: #32AAEE;
}

pre .keyword,
pre .tag .title,
pre .css .tag,
pre .css .class,
pre .css .id,
pre .css .pseudo,
pre .css .attr_selector,
pre .lisp .title,
pre .clojure .built_in,
pre .winutils,
pre .tex .command,
pre .request,
pre .status
{
color: #6644aa;
}

pre .title,
pre .ruby .constant,
pre .vala .constant,
pre .parent,
pre .deletion,
pre .template_tag,
pre .css .keyword,
pre .objectivec .class .id,
pre .smalltalk .class,
pre .lisp .keyword,
pre .apache .tag,
pre .nginx .variable,
pre .envvar,
pre .bash .variable,
pre .go .built_in,
pre .vbscript .built_in,
pre .lua .built_in,
pre .rsl .built_in,
pre .tail,
pre .avrasm .label,
pre .tex .formula,
pre .tex .formula *
{
color: #bb1166;
}

pre .yardoctag,
pre .phpdoc,
pre .profile .header,
pre .ini .title,
pre .apache .tag,
pre .parser3 .title
{
font-weight: bold;
}

pre .coffeescript .javascript,
pre .javascript .xml,
pre .tex .formula,
pre .xml .javascript,
pre .xml .vbscript,
pre .xml .css,
pre .xml .cdata
{
opacity: 0.6;
}

pre code,
pre .javascript,
pre .css,
pre .xml,
pre .subst,
pre .diff .chunk,
pre .css .value,
pre .css .attribute,
pre .lisp .string,
pre .lisp .number,
pre .tail .params,
pre .container,
pre .haskell *,
pre .erlang *,
pre .erlang_repl *
{
color: #aaa;
}
Loading

0 comments on commit 453d710

Please sign in to comment.