Skip to content

Commit

Permalink
Merge pull request #25 from jaredpetersen/feature-modernize-react
Browse files Browse the repository at this point in the history
Feature modernize react
  • Loading branch information
jaredpetersen authored Jul 16, 2018
2 parents 5b412e9 + 7a89cb1 commit b7744bb
Show file tree
Hide file tree
Showing 86 changed files with 16,268 additions and 10,617 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
2 changes: 2 additions & 0 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
16 changes: 16 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { configure } from '@storybook/react';

function loadStories() {
require('../src/common/dropdown-toggle-select/index.story.js');
require('../src/navbar/index.story.js');
require('../src/editor/index.story.js');
require('../src/editor/toolbar/index.story.js');
require('../src/editor/toolbar/font-dropdown/index.story.js');
require('../src/editor/toolbar/size-dropdown/index.story.js');
require('../src/editor/toolbar/theme-dropdown/index.story.js');
require('../src/editor/document/index.story.js');
require('../src/heart/index.story.js');
require('../src/not-found/index.story.js');
}

configure(loadStories, module);
3 changes: 3 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/solid.css" integrity="sha384-TbilV5Lbhlwdyc4RuIV/JhD8NR+BfMrvz4BL5QFa2we1hQu6wvREr3v6XSRfCTRp" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/brands.css" integrity="sha384-7xAnn7Zm3QC1jFjVc1A6v/toepoG3JXboQYzbM0jrPzou9OFXm/fY6Z/XiIebl/k" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/fontawesome.css" integrity="sha384-ozJwkrqb90Oa3ZNb+yKFW2lToAWYdTiF1vt8JiH5ptTGHTGcN7qdoR1F95e0kYyG" crossorigin="anonymous">
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: node_js
node_js:
- "node"
- "lts/*"
script:
- npm run build
- npm test -- --coverage
branches:
only:
- master
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Jared Petersen
Copyright (c) 2018 Jared Petersen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -19,4 +19,3 @@ 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.

21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
Codeprinter
============
Codeprinter's goal is pretty self-explanatory: to make it easier to print out code on paper. Many IDE's either don't allow you to print or have some weird quirks like adding unneccessary headers and footers, not allowing you to change your font size, or not providing syntax highlighting on your printout.
# codeprinter
[![Build Status](https://travis-ci.org/jaredpetersen/codeprinter.svg?branch=master)](https://travis-ci.org/jaredpetersen/codeprinter)

Codeprinter makes it easy. Simply copy your code into the text box, select your desired font, font size, and syntax highlighting theme and then hit print.
codeprinter's goal is pretty self-explanatory: to make it easier to print out code on paper. Many IDE's either don't allow you to print or have some weird quirks like adding unnecessary headers and footers, not allowing you to change your font size, or not providing syntax highlighting on your printout.

Screenshots
============
![Paste your code](/screenshots/home.png?raw=true)
![Change your font size](/screenshots/fontsize.png?raw=true)
![Print your code](/screenshots/print.png?raw=true)
codeprinter makes it easy. Simply copy your code into the text box, select your desired font, font size, syntax highlighting theme, and whether or not you would like line numbers and then hit print.

How to Contribute
============
## Screenshots
![Paste your code](https://i.imgur.com/adhS1Cz.png)
![Change your font size](https://i.imgur.com/TlgIxpi.png)
![Print your code](https://i.imgur.com/IYHqP0z.png)

## How to Contribute
Find a bug? Want to request a new feature? Awesome! Create an [issue](https://github.com/jaredpetersen/codeprinter/issues) and/or submit a [pull request](https://github.com/jaredpetersen/codeprinter/pulls). Just want to show your support for the project? [Buy me a coffee](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=JGJAC7UKRAB9J&lc=US&item_name=CodePrinter%20%2d%20Buy%20me%20a%20Coffee&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted).
Loading

0 comments on commit b7744bb

Please sign in to comment.