Skip to content

Commit cacef89

Browse files
committed
create initial approach
1 parent a55b51e commit cacef89

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+16281
-0
lines changed

Diff for: .editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_size = 2
6+
indent_style = space
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

Diff for: .eslintrc.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
sourceType: 'module'
5+
},
6+
env: {
7+
browser: true,
8+
node: true,
9+
jest: true
10+
},
11+
extends: 'standard',
12+
plugins: [
13+
'jest',
14+
'vue'
15+
],
16+
rules: {
17+
// Allow paren-less arrow functions
18+
'arrow-parens': 0,
19+
// Allow async-await
20+
'generator-star-spacing': 0,
21+
// Allow debugger during development
22+
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
23+
// Do not allow console.logs etc...
24+
'no-console': 0
25+
},
26+
globals: {
27+
'jest/globals': true,
28+
jasmine: true
29+
}
30+
}

Diff for: .gitignore

+155
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
2+
# Created by https://www.gitignore.io/api/node,macos,linux,windows
3+
# Edit at https://www.gitignore.io/?templates=node,macos,linux,windows
4+
5+
### Linux ###
6+
*~
7+
8+
# temporary files which can be created if a process still has a handle open of a deleted file
9+
.fuse_hidden*
10+
11+
# KDE directory preferences
12+
.directory
13+
14+
# Linux trash folder which might appear on any partition or disk
15+
.Trash-*
16+
17+
# .nfs files are created when an open file is removed but is still being accessed
18+
.nfs*
19+
20+
### macOS ###
21+
# General
22+
.DS_Store
23+
.AppleDouble
24+
.LSOverride
25+
26+
# Icon must end with two \r
27+
Icon
28+
29+
# Thumbnails
30+
._*
31+
32+
# Files that might appear in the root of a volume
33+
.DocumentRevisions-V100
34+
.fseventsd
35+
.Spotlight-V100
36+
.TemporaryItems
37+
.Trashes
38+
.VolumeIcon.icns
39+
.com.apple.timemachine.donotpresent
40+
41+
# Directories potentially created on remote AFP share
42+
.AppleDB
43+
.AppleDesktop
44+
Network Trash Folder
45+
Temporary Items
46+
.apdisk
47+
48+
### Node ###
49+
# Logs
50+
logs
51+
*.log
52+
npm-debug.log*
53+
yarn-debug.log*
54+
yarn-error.log*
55+
56+
# Runtime data
57+
pids
58+
*.pid
59+
*.seed
60+
*.pid.lock
61+
62+
# Directory for instrumented libs generated by jscoverage/JSCover
63+
lib-cov
64+
65+
# Coverage directory used by tools like istanbul
66+
coverage
67+
68+
# nyc test coverage
69+
.nyc_output
70+
71+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
72+
.grunt
73+
74+
# Bower dependency directory (https://bower.io/)
75+
bower_components
76+
77+
# node-waf configuration
78+
.lock-wscript
79+
80+
# Compiled binary addons (https://nodejs.org/api/addons.html)
81+
build/Release
82+
83+
# Dependency directories
84+
node_modules/
85+
jspm_packages/
86+
87+
# TypeScript v1 declaration files
88+
typings/
89+
90+
# Optional npm cache directory
91+
.npm
92+
93+
# Optional eslint cache
94+
.eslintcache
95+
96+
# Optional REPL history
97+
.node_repl_history
98+
99+
# Output of 'npm pack'
100+
*.tgz
101+
102+
# Yarn Integrity file
103+
.yarn-integrity
104+
105+
# dotenv environment variables file
106+
.env
107+
.env.test
108+
109+
# parcel-bundler cache (https://parceljs.org/)
110+
.cache
111+
112+
# next.js build output
113+
.next
114+
115+
# nuxt.js build output
116+
.nuxt
117+
118+
# vuepress build output
119+
.vuepress/dist
120+
121+
# Serverless directories
122+
.serverless/
123+
124+
# FuseBox cache
125+
.fusebox/
126+
127+
# DynamoDB Local files
128+
.dynamodb/
129+
130+
### Windows ###
131+
# Windows thumbnail cache files
132+
Thumbs.db
133+
ehthumbs.db
134+
ehthumbs_vista.db
135+
136+
# Dump file
137+
*.stackdump
138+
139+
# Folder config file
140+
[Dd]esktop.ini
141+
142+
# Recycle Bin used on file shares
143+
$RECYCLE.BIN/
144+
145+
# Windows Installer files
146+
*.cab
147+
*.msi
148+
*.msix
149+
*.msm
150+
*.msp
151+
152+
# Windows shortcuts
153+
*.lnk
154+
155+
# End of https://www.gitignore.io/api/node,macos,linux,windows

Diff for: example/.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

Diff for: example/.gitignore

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (https://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# TypeScript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
62+
# parcel-bundler cache (https://parceljs.org/)
63+
.cache
64+
65+
# next.js build output
66+
.next
67+
68+
# nuxt.js build output
69+
.nuxt
70+
71+
# Nuxt generate
72+
dist
73+
74+
# vuepress build output
75+
.vuepress/dist
76+
77+
# Serverless directories
78+
.serverless
79+
80+
# IDE
81+
.idea
82+
83+
# Service worker
84+
sw.*

Diff for: example/README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# @bazzite/nuxt-optimized-images-example
2+
3+
> My well-made Nuxt.js project
4+
5+
## Build Setup
6+
7+
``` bash
8+
# install dependencies
9+
$ yarn install
10+
11+
# serve with hot reload at localhost:3000
12+
$ yarn run dev
13+
14+
# build for production and launch server
15+
$ yarn run build
16+
$ yarn start
17+
18+
# generate static project
19+
$ yarn run generate
20+
```
21+
22+
For detailed explanation on how things work, checkout [Nuxt.js docs](https://nuxtjs.org).

Diff for: example/assets/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# STATIC
2+
3+
**This directory is not required, you can delete it if you don't want to use it.**
4+
5+
This directory contains your static files.
6+
Each file inside this directory is mapped to `/`.
7+
Thus you'd want to delete this README.md before deploying to production.
8+
9+
Example: `/static/robots.txt` is mapped as `/robots.txt`.
10+
11+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#static).

Diff for: example/assets/favicon.ico

1.12 KB
Binary file not shown.

Diff for: example/assets/images/fontawesome/code-solid.svg

+1
Loading

Diff for: example/assets/images/fontawesome/desktop-solid.svg

+1
Loading

Diff for: example/assets/images/fontawesome/glasses-solid.svg

+1
Loading
+1
Loading

Diff for: example/assets/images/giphy-11JTxkrmq4bGE0.gif

116 KB
Loading

Diff for: example/assets/images/pexels-photo-707194.png

302 KB
Loading

Diff for: example/assets/images/pexels-photo-841303.jpg

246 KB
Loading

Diff for: example/assets/images/pexels-photo-841303.webp

108 KB
Binary file not shown.

Diff for: example/assets/images/pixabay-animals-1782013.svg

+29
Loading

Diff for: example/components/Navbar.vue

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<template>
2+
<nav class="navbar" role="navigation" aria-label="main navigation">
3+
<div class="navbar-brand">
4+
<NuxtLink class="navbar-item title" to="/">
5+
Nuxt Optimized Images - Examples
6+
</NuxtLink>
7+
</div>
8+
</nav>
9+
</template>

Diff for: example/components/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# COMPONENTS
2+
3+
**This directory is not required, you can delete it if you don't want to use it.**
4+
5+
The components directory contains your Vue.js Components.
6+
7+
_Nuxt.js doesn't supercharge these components._

Diff for: example/components/Sidebar.vue

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<template>
2+
<aside class="menu">
3+
<ul class="menu-list">
4+
<li>
5+
<NuxtLink to="/">Optimized</NuxtLink>
6+
</li>
7+
<li>
8+
<NuxtLink to="/webp">WebP</NuxtLink>
9+
</li>
10+
<li>
11+
<NuxtLink to="/inline">Inline</NuxtLink>
12+
</li>
13+
<li>
14+
<NuxtLink to="/lqi-placeholders">LQI placeholders</NuxtLink>
15+
</li>
16+
<li>
17+
<NuxtLink to="/responsive">Responsive</NuxtLink>
18+
</li>
19+
</ul>
20+
</aside>
21+
</template>

Diff for: example/layouts/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# LAYOUTS
2+
3+
**This directory is not required, you can delete it if you don't want to use it.**
4+
5+
This directory contains your Application Layouts.
6+
7+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/views#layouts).

0 commit comments

Comments
 (0)