-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
1,823 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
build/*.js | ||
config/*.js | ||
/build/ | ||
/config/ | ||
/dist/ | ||
/*.js | ||
/test/unit/coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"git.ignoreLimitWarning": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
# event-pwa | ||
view your event | ||
# flight-pwa | ||
|
||
+ you can sign in with facebook | ||
+ you can add home screen on google chrome app | ||
+ you can watch 1 event <example> | ||
> A Vue.js project | ||
## Build Setup | ||
|
||
``` bash | ||
# install dependencies | ||
npm install | ||
|
||
# serve with hot reload at localhost:8080 | ||
npm run dev | ||
|
||
# build for production with minification | ||
npm run build | ||
|
||
# build for production and view the bundle analyzer report | ||
npm run build --report | ||
|
||
# run unit tests | ||
npm run unit | ||
|
||
# run all tests | ||
npm test | ||
``` | ||
|
||
For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "slidereveal", | ||
"version": "1.1.2", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"qunit": "~1.12.0", | ||
"jquery": "~2.1.1" | ||
}, | ||
"homepage": "https://github.com/nnattawat/slideReveal", | ||
"_release": "1.1.2", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "v1.1.2", | ||
"commit": "22c1cd60bd870908c46533062494fadd94237f38" | ||
}, | ||
"_source": "https://github.com/nnattawat/slideReveal.git", | ||
"_target": "^1.1.2", | ||
"_originalSource": "slidereveal", | ||
"_direct": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "bower_components" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/bower_components/ | ||
/node_modules/ | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"boss": true, | ||
"browser": true, | ||
"curly": true, | ||
"devel": true, | ||
"eqeqeq": true, | ||
"eqnull": true, | ||
"esversion": 5, | ||
"expr": true, | ||
"immed": true, | ||
"newcap": false, | ||
"noarg": true, | ||
"onevar": true, | ||
"quotmark": false, | ||
"shadow": true, | ||
"trailing": true, | ||
"undef": true, | ||
"unused": true, | ||
"freeze": true, | ||
"maxstatements": 30, | ||
|
||
"globals": { | ||
"jQuery": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: node_js | ||
node_js: | ||
- '0.10' | ||
before_install: | ||
- npm install -g grunt-cli bower | ||
install: | ||
- npm install | ||
- bower install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Contributing | ||
|
||
## Important notes | ||
Please don't edit files in the `dist` subdirectory as they are generated via Grunt. You'll find source code in the `src` subdirectory! | ||
|
||
### Code style | ||
Regarding code style like indentation and whitespace, **follow the conventions you see used in the source already.** | ||
|
||
### PhantomJS | ||
While Grunt can run the included unit tests via [PhantomJS](http://phantomjs.org/), this shouldn't be considered a substitute for the real thing. Please be sure to test the `test/*.html` unit test file(s) in _actual_ browsers. | ||
|
||
## Modifying the code | ||
First, ensure that you have the latest [Node.js](http://nodejs.org/) and [npm](http://npmjs.org/) installed. | ||
|
||
Test that Grunt's CLI and Bower are installed by running `grunt --version` and `bower --version`. If the commands aren't found, run `npm install -g grunt-cli bower`. For more information about installing the tools, see the [getting started with Grunt guide](http://gruntjs.com/getting-started) or [bower.io](http://bower.io/) respectively. | ||
|
||
1. Fork and clone the repo. | ||
1. Run `npm install` to install all build dependencies (including Grunt). | ||
1. Run `bower install` to install the front-end dependencies. | ||
1. Run `grunt` to grunt this project. | ||
|
||
Assuming that you don't see any red, you're ready to go. Just be sure to run `grunt` after making any changes, to ensure that nothing is broken. | ||
|
||
## Submitting pull requests | ||
|
||
1. Create a new branch, please don't work in your `master` branch directly. | ||
1. Add failing tests for the change you want to make. Run `grunt` to see the tests fail. | ||
1. Fix stuff. | ||
1. Run `grunt` to see if the tests pass. Repeat steps 2-4 until done. | ||
1. Open `test/*.html` unit test file(s) in actual browser to ensure tests pass everywhere. | ||
1. Update the documentation to reflect any changes. | ||
1. Push to your fork and submit a pull request. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
'use strict'; | ||
|
||
module.exports = function (grunt) { | ||
// Load all grunt tasks | ||
require('load-grunt-tasks')(grunt); | ||
// Show elapsed time at the end | ||
require('time-grunt')(grunt); | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
// Metadata. | ||
pkg: grunt.file.readJSON('package.json'), | ||
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + | ||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' + | ||
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' + | ||
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + | ||
' Licensed MIT */\n', | ||
// Task configuration. | ||
clean: { | ||
files: ['dist'] | ||
}, | ||
concat: { | ||
options: { | ||
banner: '<%= banner %>', | ||
stripBanners: true | ||
}, | ||
dist: { | ||
src: ['src/<%= pkg.name %>.js'], | ||
dest: 'dist/jquery.<%= pkg.name %>.js' | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
banner: '<%= banner %>' | ||
}, | ||
dist: { | ||
src: '<%= concat.dist.src %>', | ||
dest: 'dist/jquery.<%= pkg.name %>.min.js' | ||
} | ||
}, | ||
qunit: { | ||
all: { | ||
options: { | ||
urls: ['http://localhost:9000/test/<%= pkg.name %>.html'] | ||
} | ||
} | ||
}, | ||
jshint: { | ||
options : { | ||
jshintrc : '.jshintrc' | ||
}, | ||
all: [ 'src/<%= pkg.name %>.js'] | ||
}, | ||
watch: { | ||
gruntfile: { | ||
files: '<%= jshint.gruntfile.src %>', | ||
tasks: ['jshint:gruntfile'] | ||
}, | ||
src: { | ||
files: '<%= jshint.src.src %>', | ||
tasks: ['jshint:src', 'qunit'] | ||
}, | ||
test: { | ||
files: '<%= jshint.test.src %>', | ||
tasks: ['jshint:test', 'qunit'] | ||
} | ||
}, | ||
connect: { | ||
server: { | ||
options: { | ||
hostname: '*', | ||
port: 9000 | ||
} | ||
} | ||
} | ||
}); | ||
|
||
// Default task. | ||
grunt.registerTask('default', ['jshint', 'connect', 'qunit', 'clean', 'concat', 'uglify']); | ||
grunt.registerTask('server', function () { | ||
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.'); | ||
grunt.task.run(['serve']); | ||
}); | ||
grunt.registerTask('serve', ['connect', 'watch']); | ||
grunt.registerTask('test', ['jshint', 'connect', 'qunit']); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[](https://travis-ci.org/nnattawat/slideReveal) | ||
# Slide Reveal | ||
|
||
Show side panel by sliding from the left or right of the page. | ||
|
||
## Getting Started | ||
|
||
Download the [production version][min] or the [development version][max]. | ||
|
||
[min]: https://raw.githubusercontent.com/nnattawat/slidereveal/master/dist/jquery.slidereveal.min.js | ||
[max]: https://raw.githubusercontent.com/nnattawat/slidereveal/master/dist/jquery.slidereveal.js | ||
|
||
Or install using bower. | ||
<pre>bower install slidereveal</pre> | ||
In your web page: | ||
|
||
```html | ||
<script src="jquery.js"></script> | ||
<script src="dist/jquery.slidereveal.min.js"></script> | ||
|
||
<div id="slider">Hello World!!</div> | ||
<button id="trigger">Hello World!!</button> | ||
|
||
<script> | ||
$(function($) { | ||
var slider = $("#slider").slideReveal({ | ||
trigger: $("#trigger") | ||
}); | ||
}); | ||
</script> | ||
``` | ||
|
||
The plugin does not add any CSS to your side panel. So, you need to style it yourself for a nice panel or a beautiful navigation. | ||
|
||
## Documentation and Examples | ||
Please refer to its [github.io](http://nnattawat.github.io/slideReveal) | ||
|
||
## Release History | ||
See the [release page](https://github.com/nnattawat/slideReveal/releases) | ||
|
||
## How to Contribute | ||
See the [contributing page](https://github.com/nnattawat/slideReveal/blob/master/CONTRIBUTING.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "slidereveal", | ||
"version": "1.1.2", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"qunit": "~1.12.0", | ||
"jquery": "~2.1.1" | ||
} | ||
} |
Oops, something went wrong.