Skip to content

Commit

Permalink
Fix getRandomInt, update example
Browse files Browse the repository at this point in the history
  • Loading branch information
Vic Shóstak committed Mar 17, 2019
1 parent 59ddd46 commit 21df5d5
Show file tree
Hide file tree
Showing 17 changed files with 17,802 additions and 3,676 deletions.
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ typings/
# dotenv environment variables file
.env

###GitBook
# GitBook
# Generated book
src/docs/_book/

###Example dir
examples/
examples/.babelrc
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.idea/
.github/
.editorconfig
.gitignore
.prettierignore
package-lock.json
node_modules/
**/*.html
*.md
File renamed without changes.
5 changes: 1 addition & 4 deletions examples/.babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"presets": [
"es2015",
"es2016"
]
"presets": ["@babel/preset-env"]
}
4 changes: 4 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ $ cd vue-goodshare/examples
$ npm install
$ npm run build # or npm run watch
```

#### Note

For this example, we do not use Webpack `-p` directive (UglifyJs). Yep, `./build/script.js` is too heavy for production, but still better to understand on localhost.
13,296 changes: 13,296 additions & 0 deletions examples/build/script.js

Large diffs are not rendered by default.

132 changes: 132 additions & 0 deletions examples/build/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
* {
box-sizing: border-box;
}

body {
font-size: 14px;
margin: 0;
padding: 0;
}

body,
h1,
h2,
h3,
h4 {
font-family: "Open Sans", Arial, sans-serif;
font-weight: normal;
}

h1,
h2,
h3,
h4 {
margin: 1.5rem 0 1rem;
}

h1 {
font-size: 2.4rem;
}

h2 {
font-size: 2rem;
}

h3 {
font-size: 1.6rem;
}

h4 {
font-size: 1.2rem;
}

pre,
code {
width: auto;
overflow-x: auto;
color: red;
}

pre {
background: #f4f4f4;
border-left: 10px solid #cccccc;
padding: 1rem;
}

pre span {
color: purple;
}

.slider {
padding: 3rem 1rem;
text-align: center;
}

.slider img {
width: 640px;
}

@supports (display: grid) {
.wrapper {
width: 100%;
display: grid;
grid-gap: 3rem;
grid-template-columns: 0.15fr 0.7fr 0.15fr;
background-color: #fefefe;
padding: 1rem 2.5rem 2.5rem;
}
.items {
width: 100%;
display: grid;
grid-gap: 15px;
grid-template-columns: 1fr;
align-items: center;
}
@media (max-width: 768px) {
.slider img {
width: 100%;
}
.wrapper {
grid-template-columns: 100%;
padding: 0.5rem;
}
.items {
grid-template-columns: 100%;
}
}
}

@supports not (display: grid) {
.wrapper,
.items {
display: flex;
display: -webkit-flex;
flex-flow: row wrap;
-webkit-flex-flow: row wrap;
}
.wrapper {
background-color: #fefefe;
padding: 1rem 2.5rem 2.5rem;
}
.wrapper .box-1 {
width: 100%;
}
.items {
align-items: center;
-webkit-align-items: center;
justify-content: space-between;
-webkit-justify-content: space-between;
}
.items > .item {
flex: 1 1 auto;
margin: 0 1rem;
}
@media (max-width: 768px) {
.slider img {
width: 100%;
}
.wrapper {
padding: 0.5rem;
}
}
}
6 changes: 0 additions & 6 deletions examples/dist/script.min.js

This file was deleted.

1 change: 0 additions & 1 deletion examples/dist/style.min.css

This file was deleted.

Loading

0 comments on commit 21df5d5

Please sign in to comment.